Move web ui fw tests to tct branch.
authoryugang <yugang.fan@intel.com>
Mon, 20 May 2013 04:58:36 +0000 (12:58 +0800)
committeryugang <yugang.fan@intel.com>
Mon, 20 May 2013 05:24:13 +0000 (13:24 +0800)
Change-Id: I90f8d80d77a3480a70cf95c9c6e3c5f62d7b44a4

808 files changed:
Makefile.am
configure.ac
inst.sh [deleted file]
packaging/tct-webuifw.spec [new file with mode: 0644]
packaging/tct.spec [deleted file]
packaging/uifw.changes [deleted file]
tct-uifw-tests/Changelog [deleted file]
tct-uifw-tests/Makefile.am [deleted file]
tct-uifw-tests/autogen [deleted file]
tct-uifw-tests/configure.ac [deleted file]
tct-uifw-tests/pack.sh [deleted file]
tct-uifw-tests/tct-uifw-tests.spec [deleted file]
tct-uifw-tests/testcase.xsl [deleted file]
tct-uifw-tests/testresult.xsl [deleted file]
tct-uifw-tests/tests.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/COPYING [deleted file]
tct-uifw-tests/web-ui-fw-tests/config.xml [deleted file]
tct-uifw-tests/web-ui-fw-tests/custom.png [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/grid/virtualgrid-db-demo.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/00_winset_icon_favorite_on.png [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_76ers.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_bobcats.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_bucks.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_bulls.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_cavaliers.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_celtics.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_clippers.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_griz.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_hawks.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_heats.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_honets.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_jazz.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_kings.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_knics.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_lakers.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_magics.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_mavericks.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_nets.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_nuggets.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_pacers.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_pistons.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_raptors.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_rockets.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_sonics.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_spurs.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_suns.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_timberwolves.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_trail.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_warriors.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_wizards.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-bubble-sample1.png [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-bubble.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-dialogue.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-divider_check.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-divider_checkexpandable.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-divider_expandable.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-divider_groupped.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-divider_normal.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-email.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-expandable.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-extendable.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-multiline.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-normal.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-normal_anchor.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-normal_anchor_h3.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-normal_no_anchor.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-normal_no_anchor_h3.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-radio.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-swipe.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/thumbnail.jpg [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/virtuallist-db-demo.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal_3_1_14.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal_3_1_4.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal_3_1_6.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal_3_2_7.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-1.7.1.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-1.7.1.min.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/LICENSE-INFO.min.txt [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/LICENSE-INFO.txt [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/MIT-LICENSE.txt [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/Makefile [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/README.md [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/combine.php [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.button.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.collapsible.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.controlgroup.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.core.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.dialog.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.fixedToolbar.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.checkboxradio.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.fieldcontain.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.select.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.slider.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.textinput.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.grid.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.listview.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.navbar.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.structure.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.fade.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.flip.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.flow.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.pop.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slide.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slidedown.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slidefade.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slidein.keyframes.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slideout.keyframes.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slideup.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.turn.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/ajax-loader.gif [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/ajax-loader.png [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-18-black.png [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-18-white.png [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-36-black.png [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-36-white.png [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/index.php [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/jquery.mobile.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/jquery.mobile.theme.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/ajax-loader.png [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icon-search-black.png [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-18-black.png [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-18-white.png [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-36-black.png [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-36-white.png [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/texture_05.png [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/texture_075.png [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/index.php [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/jquery.mobile.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/jquery.mobile.theme.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/external/qunit.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/external/qunit.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/external/r.js/dist/r.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/external/requirejs/depend.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/external/requirejs/order.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/external/requirejs/require.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/external/requirejs/text.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/index.php [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery-1.6.4.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery-1.7.1.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.buttonMarkup.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.collapsible.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.collapsibleSet.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.controlGroup.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.core.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.define.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.degradeInputs.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.dialog.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.docs.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.event.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.fieldContain.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.fixedToolbar.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.button.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.checkboxradio.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.select.custom.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.select.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.slider.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.textinput.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.grid.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.hashchange.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.init.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.links.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.listview.filter.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.listview.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.media.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.navbar.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.navigation.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.navigation.pushstate.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.nojs.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.page.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.page.sections.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.support.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.support.orientation.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.support.touch.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.flip.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.flow.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.pop.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.slide.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.slidedown.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.slidefade.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.slideup.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.turn.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.vmouse.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.widget.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.zoom.iosorientationfix.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.zoom.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.tag.inserter.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.ui.widget.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/addrbar.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/button-markup.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/eventlogger.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/gridlayout.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/orientation.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/jquery.testHelper.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/button/button_core.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/button/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/buttonMarkup/buttonMarkup_core.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/buttonMarkup/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/checkboxradio/checkboxradio_core.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/checkboxradio/form-result.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/checkboxradio/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/collapsible/collapsible_core.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/collapsible/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/controlgroup/controlgroup_core.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/controlgroup/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/core/core.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/core/core_scroll.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/core/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/degradeInputs/degradeInputs.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/degradeInputs/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/dialog/dialog_count.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/dialog/dialog_events.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/dialog/index-count.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/dialog/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/event/event_core.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/event/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/fieldContain/fieldContain_events.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/fieldContain/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/fixedToolbar/fixedToolbar.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/fixedToolbar/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/dialog-load-test.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/init_core.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/init_core_nopage.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/init_dialog.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/nopage.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/jquery.setNameSpace.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/kitchensink/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/kitchensink/kitchensink_core.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/cache-tests/cached-nested.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/cache-tests/clear.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/cache-tests/uncached-nested.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/listview_core.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/listview_pushstate.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/pushstate-tests.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/ls.php [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/media/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/media/media_core.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navbar/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navbar/navbar_core.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests/app-base/base-page-1.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests/app-base/base-page-2.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests/content/content-page-1.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests/content/content-page-2.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/cached-external.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/data-url.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/nested.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/non-data-url.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/reverse-attr.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/single-quotes.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/dialog-param-test/dialog-param.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/external.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/file.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/form-tests/changepage-data.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/form-tests/form-no-action.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_base.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_core.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_dialog_pushstate.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_helpers.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_paths.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_transitions.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/file.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/parent-ref.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/parent/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/sub-dir/file.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/sub-dir/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/prefetched-dialog.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/prefetched.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/push-state-dialog-tests.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/push-state-disabled-base-tests.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/push-state-disabled-tests.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/title1.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/title2.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/title3.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/transition-tests.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/page-sections/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/page-sections/page_core.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/page/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/page/page_core.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/runner.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/cached-dom-cache-true.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/cached-tests.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/cached.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/defineKeepNative.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/select_cached.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/select_core.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/select_events.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/select_native.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/suite.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/uncached-dom-cached-false.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/slider/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/slider/slider_core.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/slider/slider_events.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/support/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/support/support_core.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/swarminject.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/textinput/external.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/textinput/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/textinput/settings.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/textinput/textinput_core.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/widget/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/widget/widget_core.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/widget/widget_init.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/zoom/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/zoom/initial-disable.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/zoom/zoom-initial-disable.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/zoom/zoom.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/version.txt [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery.easing.1.3.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery.mobile.loadstructure.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/jquery.tmpl.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/qunit/qunit.css [deleted file]
tct-uifw-tests/web-ui-fw-tests/libs/js/qunit/qunit.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/autodivider/autodivider-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/autodivider/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/button/button-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/button/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/check/check-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/check/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/collapsible/collapsible-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/collapsible/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/core/core-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/core/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/datetimepicker/datetimepicker-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/datetimepicker/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/dayselector/dayselector-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/dayselector/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/ensurens/ensurens-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/ensurens/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/extendablelist/extendablelist-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/extendablelist/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/fastscroll/fastscroll-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/fastscroll/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/fliptoggleswitch/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/fliptoggleswitch/toggleswitch-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/gallery/gallery-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/gallery/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/gallery3d/gallery3d-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/gallery3d/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/handler/handler-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/handler/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/imageloader/imageloader-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/imageloader/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/imageloader/test.png [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/list/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/list/list-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/listdivider/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/listdivider/listdivider-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/listdividers/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/listdividers/listdividers-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/loader/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/loader/loader-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/multimediaview/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/multimediaview/multimediaview-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/navigationbar/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/navigationbar/navigationbar-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/notification/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/notification/notification-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/page/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/page/page-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/popupwindow/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/popupwindow/popup-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/popupwindow_ctxpopup/ctxpopup-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/popupwindow_ctxpopup/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/progress/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/progress/progress-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/progressbar/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/progressbar/progressbar-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/radio/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/radio/radio-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/runner.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/searchbar/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/searchbar/searchbar-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/searchfilterbar/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/searchfilterbar/searchbar-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/segmentcontrol/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/segmentcontrol/segmentcontrol-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/slider/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/slider/slider-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/splitview/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/splitview/splitview-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/swipe/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/swipe/swipe-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/tabbar/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/tabbar/tabbar-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/toggleswitch/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/toggleswitch/toggleswitch-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/tokentextarea/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/tokentextarea/tokentextarea-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/virtualgrid/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/virtualgrid/virtualgrid-tests.js [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/virtuallist/index.html [deleted file]
tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/virtuallist/virtuallist-tests.js [deleted file]
tct-webuifw-tests/COPYING [new file with mode: 0644]
tct-webuifw-tests/Changelog [new file with mode: 0644]
tct-webuifw-tests/Makefile.am [new file with mode: 0644]
tct-webuifw-tests/autogen [new file with mode: 0755]
tct-webuifw-tests/config.xml [new file with mode: 0644]
tct-webuifw-tests/configure.ac [new file with mode: 0644]
tct-webuifw-tests/custom.png [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/grid/virtualgrid-db-demo.js [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/00_winset_icon_favorite_on.png [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_76ers.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_bobcats.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_bucks.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_bulls.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_cavaliers.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_celtics.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_clippers.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_griz.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_hawks.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_heats.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_honets.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_jazz.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_kings.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_knics.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_lakers.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_magics.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_mavericks.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_nets.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_nuggets.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_pacers.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_pistons.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_raptors.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_rockets.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_sonics.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_spurs.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_suns.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_timberwolves.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_trail.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_warriors.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_wizards.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-bubble-sample1.png [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-bubble.html [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-dialogue.html [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-divider_check.html [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-divider_checkexpandable.html [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-divider_expandable.html [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-divider_groupped.html [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-divider_normal.html [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-email.html [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-expandable.html [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-extendable.html [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-multiline.html [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-normal.html [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-normal_anchor.html [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-normal_anchor_h3.html [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-normal_no_anchor.html [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-normal_no_anchor_h3.html [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-radio.html [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-swipe.html [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/list.html [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/thumbnail.jpg [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/virtuallist-db-demo.js [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal.html [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal_3_1_14.html [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal_3_1_4.html [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal_3_1_6.html [new file with mode: 0644]
tct-webuifw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal_3_2_7.html [new file with mode: 0644]
tct-webuifw-tests/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-1.7.1.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-1.7.1.min.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/LICENSE-INFO.min.txt [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/LICENSE-INFO.txt [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/MIT-LICENSE.txt [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/Makefile [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/README.md [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/combine.php [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.button.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.collapsible.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.controlgroup.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.core.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.dialog.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.fixedToolbar.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.checkboxradio.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.fieldcontain.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.select.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.slider.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.textinput.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.grid.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.listview.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.navbar.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.structure.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.fade.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.flip.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.flow.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.pop.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slide.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slidedown.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slidefade.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slidein.keyframes.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slideout.keyframes.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slideup.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.turn.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/ajax-loader.gif [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/ajax-loader.png [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-18-black.png [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-18-white.png [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-36-black.png [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-36-white.png [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/index.php [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/jquery.mobile.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/jquery.mobile.theme.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/ajax-loader.png [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icon-search-black.png [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-18-black.png [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-18-white.png [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-36-black.png [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-36-white.png [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/texture_05.png [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/texture_075.png [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/index.php [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/jquery.mobile.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/jquery.mobile.theme.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/external/qunit.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/external/qunit.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/external/r.js/dist/r.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/external/requirejs/depend.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/external/requirejs/order.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/external/requirejs/require.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/external/requirejs/text.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/index.php [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery-1.6.4.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery-1.7.1.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.buttonMarkup.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.collapsible.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.collapsibleSet.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.controlGroup.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.core.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.define.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.degradeInputs.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.dialog.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.docs.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.event.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.fieldContain.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.fixedToolbar.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.button.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.checkboxradio.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.select.custom.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.select.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.slider.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.textinput.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.grid.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.hashchange.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.init.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.links.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.listview.filter.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.listview.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.media.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.navbar.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.navigation.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.navigation.pushstate.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.nojs.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.page.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.page.sections.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.support.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.support.orientation.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.support.touch.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.flip.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.flow.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.pop.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.slide.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.slidedown.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.slidefade.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.slideup.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.turn.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.vmouse.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.widget.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.zoom.iosorientationfix.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.zoom.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.tag.inserter.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.ui.widget.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/addrbar.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/button-markup.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/eventlogger.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/gridlayout.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/orientation.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/jquery.testHelper.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/button/button_core.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/button/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/buttonMarkup/buttonMarkup_core.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/buttonMarkup/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/checkboxradio/checkboxradio_core.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/checkboxradio/form-result.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/checkboxradio/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/collapsible/collapsible_core.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/collapsible/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/controlgroup/controlgroup_core.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/controlgroup/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/core/core.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/core/core_scroll.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/core/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/degradeInputs/degradeInputs.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/degradeInputs/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/dialog/dialog_count.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/dialog/dialog_events.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/dialog/index-count.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/dialog/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/event/event_core.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/event/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/fieldContain/fieldContain_events.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/fieldContain/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/fixedToolbar/fixedToolbar.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/fixedToolbar/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/dialog-load-test.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/init_core.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/init_core_nopage.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/init_dialog.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/nopage.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/jquery.setNameSpace.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/kitchensink/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/kitchensink/kitchensink_core.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/cache-tests/cached-nested.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/cache-tests/clear.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/cache-tests/uncached-nested.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/listview_core.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/listview_pushstate.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/pushstate-tests.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/ls.php [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/media/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/media/media_core.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navbar/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navbar/navbar_core.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests/app-base/base-page-1.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests/app-base/base-page-2.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests/content/content-page-1.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests/content/content-page-2.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/cached-external.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/data-url.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/nested.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/non-data-url.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/reverse-attr.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/single-quotes.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/dialog-param-test/dialog-param.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/external.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/file.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/form-tests/changepage-data.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/form-tests/form-no-action.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_base.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_core.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_dialog_pushstate.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_helpers.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_paths.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_transitions.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/file.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/parent-ref.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/parent/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/sub-dir/file.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/sub-dir/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/prefetched-dialog.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/prefetched.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/push-state-dialog-tests.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/push-state-disabled-base-tests.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/push-state-disabled-tests.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/title1.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/title2.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/title3.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/transition-tests.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/page-sections/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/page-sections/page_core.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/page/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/page/page_core.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/runner.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/cached-dom-cache-true.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/cached-tests.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/cached.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/defineKeepNative.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/select_cached.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/select_core.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/select_events.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/select_native.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/suite.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/uncached-dom-cached-false.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/slider/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/slider/slider_core.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/slider/slider_events.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/support/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/support/support_core.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/swarminject.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/textinput/external.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/textinput/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/textinput/settings.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/textinput/textinput_core.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/widget/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/widget/widget_core.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/widget/widget_init.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/zoom/index.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/zoom/initial-disable.html [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/zoom/zoom-initial-disable.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/zoom/zoom.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/version.txt [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery.easing.1.3.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery.mobile.loadstructure.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/jquery.tmpl.js [new file with mode: 0644]
tct-webuifw-tests/libs/js/qunit/qunit.css [new file with mode: 0644]
tct-webuifw-tests/libs/js/qunit/qunit.js [new file with mode: 0644]
tct-webuifw-tests/pack.sh [new file with mode: 0755]
tct-webuifw-tests/tct-webuifw-tests.spec [new file with mode: 0644]
tct-webuifw-tests/testcase.xsl [new file with mode: 0644]
tct-webuifw-tests/testresult.xsl [new file with mode: 0644]
tct-webuifw-tests/tests.css [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/autodivider/autodivider-tests.js [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/autodivider/index.html [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/button/button-tests.js [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/button/index.html [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/check/check-tests.js [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/check/index.html [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/collapsible/collapsible-tests.js [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/collapsible/index.html [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/core/core-tests.js [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/core/index.html [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/datetimepicker/datetimepicker-tests.js [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/datetimepicker/index.html [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/dayselector/dayselector-tests.js [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/dayselector/index.html [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/ensurens/ensurens-tests.js [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/ensurens/index.html [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/extendablelist/extendablelist-tests.js [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/extendablelist/index.html [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/fastscroll/fastscroll-tests.js [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/fastscroll/index.html [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/fliptoggleswitch/index.html [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/fliptoggleswitch/toggleswitch-tests.js [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/gallery/gallery-tests.js [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/gallery/index.html [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/gallery3d/gallery3d-tests.js [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/gallery3d/index.html [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/handler/handler-tests.js [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/handler/index.html [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/imageloader/imageloader-tests.js [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/imageloader/index.html [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/imageloader/test.png [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/index.html [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/list/index.html [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/list/list-tests.js [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/listdivider/index.html [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/listdivider/listdivider-tests.js [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/listdividers/index.html [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/listdividers/listdividers-tests.js [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/loader/index.html [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/loader/loader-tests.js [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/multimediaview/index.html [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/multimediaview/multimediaview-tests.js [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/navigationbar/index.html [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/navigationbar/navigationbar-tests.js [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/notification/index.html [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/notification/notification-tests.js [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/page/index.html [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/page/page-tests.js [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/popupwindow/index.html [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/popupwindow/popup-tests.js [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/popupwindow_ctxpopup/ctxpopup-tests.js [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/popupwindow_ctxpopup/index.html [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/progress/index.html [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/progress/progress-tests.js [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/progressbar/index.html [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/progressbar/progressbar-tests.js [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/radio/index.html [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/radio/radio-tests.js [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/runner.js [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/searchbar/index.html [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/searchbar/searchbar-tests.js [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/searchfilterbar/index.html [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/searchfilterbar/searchbar-tests.js [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/segmentcontrol/index.html [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/segmentcontrol/segmentcontrol-tests.js [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/slider/index.html [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/slider/slider-tests.js [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/splitview/index.html [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/splitview/splitview-tests.js [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/swipe/index.html [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/swipe/swipe-tests.js [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/tabbar/index.html [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/tabbar/tabbar-tests.js [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/tests.js [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/toggleswitch/index.html [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/toggleswitch/toggleswitch-tests.js [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/tokentextarea/index.html [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/tokentextarea/tokentextarea-tests.js [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/virtualgrid/index.html [new file with mode: 0644]
tct-webuifw-tests/tests/unit-tests/virtualgrid/virtualgrid-tests.js [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/virtuallist/index.html [new file with mode: 0755]
tct-webuifw-tests/tests/unit-tests/virtuallist/virtuallist-tests.js [new file with mode: 0755]

index 3478f2495b0aedec516188759a1643702ff3d863..2bb19e650c9b52de4f1812d0e10228d9f08cc229 100644 (file)
@@ -27,5 +27,4 @@
 # Authors:
 #               Fan, Yugang <yugang.fan@intel.com>
 #
-
-SUBDIRS = tct-uifw-tests
+SUBDIRS = tct-webuifw-tests
index cbb008ff4642ea0fd4d9fcd5bff0c6e3b40b4694..f468739b23d6cb1a14f336ca5f95cc36ccf93237 100644 (file)
@@ -28,9 +28,7 @@
 #               Fan, Yugang <yugang.fan@intel.com>
 #
 
-AC_INIT([uifw], [1.2.2], [yugang.fan@intel.com])
+AC_INIT([tct-webuifw-tests], [1.2.2], [yugang.fan@intel.com])
 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
-AC_CONFIG_FILES([Makefile \
-        tct-uifw-tests/Makefile
-])
+AC_CONFIG_FILES([Makefile tct-webuifw-tests/Makefile])
 AC_OUTPUT
diff --git a/inst.sh b/inst.sh
deleted file mode 100755 (executable)
index 348b6af..0000000
--- a/inst.sh
+++ /dev/null
@@ -1,85 +0,0 @@
-#!/bin/sh
-##
-# Copyright (c) 2012 Intel Corporation.
-#
-# Redistribution and use in source and binary forms, with or without modification,
-# are permitted provided that the following conditions are met:
-#
-# * Redistributions of works must retain the original copyright notice, this list
-#   of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the original 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 Intel Corporation nor the names of its contributors
-#   may be used to endorse or promote products derived from this work without
-#   specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "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 INTEL CORPORATION 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.
-#
-# Authors:
-#               Fan, Yugang <yugang.fan@intel.com>
-#
-
-suite_dir=$1
-all_dirs=`ls -l --time-style="long-iso" $suite_dir | grep '^d' | awk '{print $8}'`
-black_dirs=''
-pack_fail='FALSE'
-
-if [ -f "$suite_dir/blackdirs" ]; then
-    black_dirs=`cat $suite_dir/blackdirs`
-    echo "Got black dirs: $black_dirs"
-fi
-
-function check_blackdir()
-{
-  for bdir in ${black_dirs[@]}; do
-    if [ $1 == $bdir ]; then
-      return 1;
-    fi
-  done
-  return 0
-}
-
-echo "-->> Creating widgets >>--"
-cd $suite_dir
-for app in $all_dirs; do
-    check_blackdir $app
-    if [ $? == 1 ]; then
-       echo "Got a black dir: $app"
-        continue
-    elif [ $(find $app|wc -l) -eq 1 ]; then
-        echo "No files found in $app, skip it ..."
-        continue
-    else
-        if [ -f $app.wgt ]; then
-            echo "Delete old packaged file"
-            rm -rf $app.wgt
-        fi
-        cd $app
-        echo "Start pack $app ..."
-        zip -rq ../$app.wgt *
-       echo `pwd`
-        if [ $? -ne 0 ]; then
-            pack_fail='TRUE'
-            echo "Create $app.wgt fail, continue to pack others"
-        fi
-        cd ..
-        echo -e "Done\n"
-    fi
-done
-cd ..
-echo "-- Create widgets done --"
-
-if [ $pack_fail != 'FALSE' ]; then
-    echo "Fail to pack some packages ..."
-    exit 1
-fi
diff --git a/packaging/tct-webuifw.spec b/packaging/tct-webuifw.spec
new file mode 100644 (file)
index 0000000..fe2c1b0
--- /dev/null
@@ -0,0 +1,104 @@
+%define _unpackaged_files_terminate_build 0 
+
+Summary: Tizen Web UI FW Test Suite
+Name: tct
+Version: 1.1
+Release: 0
+License: BSD
+Group: test/tct/webuifw
+Source: %name-%version.tar.gz
+
+%description
+This is general Tizen Web UI FW test suite 
+
+%package webuifw-tests
+Summary: Tizen Web UI FW test suite
+Version: 1.2.2
+Release: 1
+License: BSD
+Group: test/tct/webuifw
+BuildRequires: zip
+
+%description webuifw-tests
+This is Tizen Web UI FW test suite package
+
+%prep
+%setup -q
+
+%build
+unset LD_AS_NEEDED  
+./autogen
+./configure --prefix=/usr
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+mkdir -p $RPM_BUILD_DIR/tct-webuifw-tests/opt/
+cp -a $RPM_BUILD_ROOT/opt/tct-webuifw-tests  $RPM_BUILD_DIR/tct-webuifw-tests/opt/
+cd $RPM_BUILD_DIR/tct-webuifw-tests
+cp -f $RPM_BUILD_DIR/%name-*/tct-webuifw-tests/config.xml ./
+cp -f $RPM_BUILD_DIR/%name-*/tct-webuifw-tests/custom.png ./
+cp -f $RPM_BUILD_DIR/%name-*/tct-webuifw-tests/index.html ./
+cp -f $RPM_BUILD_DIR/%name-*/tct-webuifw-tests/demos ./ -a
+cp -f $RPM_BUILD_DIR/%name-*/tct-webuifw-tests/tests ./ -a
+cp -f $RPM_BUILD_DIR/%name-*/tct-webuifw-tests/libs ./ -a
+
+zip -rq $RPM_BUILD_ROOT/opt/tct-webuifw-tests/tct-webuifw-tests.wgt *
+
+cd $RPM_BUILD_DIR
+rm -rf $RPM_BUILD_DIR/tct-webuifw-tests
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%changelog
+
+%files webuifw-tests
+/opt/tct-webuifw-tests
+
+%post webuifw-tests
+SUB_PKG_NAME=tct-webuifw-tests
+wgt_installer="wrt-installer"
+
+which $wgt_installer > /dev/null 2>&1
+if [ $? -eq 0 ]; then
+    [ -e /opt/$SUB_PKG_NAME/$SUB_PKG_NAME.wgt ] && $wgt_installer -i /opt/$SUB_PKG_NAME/$SUB_PKG_NAME.wgt
+    if [ $? -eq 0 ]; then
+        echo "Install /opt/$SUB_PKG_NAME/$SUB_PKG_NAME.wgt to /opt/apps/`wrt-launcher -l 2> /dev/null | grep $SUB_PKG_NAME | tail -n 1 | awk '{ print $NF }'` done"
+    else
+        echo "Install /opt/$SUB_PKG_NAME/$SUB_PKG_NAME.wgt fail ..."
+    fi
+    sync
+fi
+
+%postun webuifw-tests
+SUB_PKG_NAME=tct-webuifw-tests
+wgt_installer="wrt-installer"
+
+which $wgt_installer > /dev/null 2>&1
+if [ $? -eq 0 ]; then
+    package_id=`wrt-launcher -l 2> /dev/null | grep $SUB_PKG_NAME | tail -n 1 | awk '{ print $NF }'`
+    if [ -n "$(ps -ef | grep $package_id | grep -v grep | awk '{print $2}')" ]; then
+        for i in $(ps -ef | grep $package_id | grep -v grep | awk '{print $2}')
+        do
+            kill -9 $i
+            if [ "$?" -ne 0 ]; then
+                echo "Kill the processes of $SUB_PKG_NAME fail ..."
+            else
+                echo "Kill the processes of $SUB_PKG_NAME done"
+            fi
+        done
+    fi
+
+    if [ -n "$package_id" ]; then
+        $wgt_installer -un $package_id
+        if [ "$?" -ne 0 ]; then
+                echo "Uninstall $SUB_PKG_NAME fail ..."
+        else
+                echo "Uninstall $SUB_PKG_NAME done"
+        fi
+        sync
+    fi
+fi
diff --git a/packaging/tct.spec b/packaging/tct.spec
deleted file mode 100644 (file)
index 2625505..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-%define _unpackaged_files_terminate_build 0 
-
-Summary: Tizen UI FW Test Suite
-Name: tct
-Version: 1.1
-Release: 0
-License: BSD
-Group: test/uifw
-Source: %name-%version.tar.gz
-
-%description
-This is general Tizen UI FW test suite 
-
-%package uifw-tests
-Summary: Tizen UI FW test suite
-Version: 1.2.2
-Release: 1
-License: BSD
-Group: test/uifw
-BuildRequires: zip
-
-%description uifw-tests
-This is tizen UI FW test suite package
-
-%prep
-%setup -q
-
-%build
-unset LD_AS_NEEDED  
-sh inst.sh "tct-uifw-tests"
-./autogen
-./configure --prefix=/usr
-make
-
-%install
-rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-wgt_list=`find ./ -name "*.wgt"`
-for i_pkg in $wgt_list; do
-    rm -rf $i_pkg
-done
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%changelog
-
-%files uifw-tests
-/opt/tct-uifw-tests
-
-%post uifw-tests
-wgt_installer="wrt-installer"
-which $wgt_installer > /dev/null 2>&1
-if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/tct-uifw-tests -name "*.wgt"`
-    for i_pkg in $wgt_list; do
-      echo "Start install package $i_pkg"
-      [ -e $i_pkg ] && $wgt_installer -i $i_pkg
-      i_pkg_names=`basename $i_pkg`
-      i_pkg_name=${i_pkg_names%.*}
-    done
-fi
-
-%preun uifw-tests
-wgt_installer="wrt-installer"
-which $wgt_installer > /dev/null 2>&1
-if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/tct-uifw-tests -name "*.wgt"`
-    for i_pkg in $wgt_list; do
-      i_pkg_names=`basename $i_pkg`
-      i_pkg_name=${i_pkg_names%.*}
-      echo "Uninstall package $i_pkg_name"
-      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $5 }'`
-      for i_pkg_nn in $i_pkg_nns; do
-        echo "Package Name is $i_pkg_nn"
-        $wgt_installer -un $i_pkg_nn
-      done
-    done
-fi
diff --git a/packaging/uifw.changes b/packaging/uifw.changes
deleted file mode 100644 (file)
index bbe9ea5..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-# As GBS submit request, document the bug fix and/or features
-# in this changelog file before your submission.
-# One can generate changelog by
-# git log --name-status --date=iso --pretty=format:'%cd  %an <%ae>%n%s'
-
-----------------------------------------------
-Changelog
-----------------------------------------------
-
diff --git a/tct-uifw-tests/Changelog b/tct-uifw-tests/Changelog
deleted file mode 100644 (file)
index 9b70f64..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-----------------------------------------------
-Changelog
-----------------------------------------------
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without
-modification, 
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list 
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original 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 Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "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 INTEL CORPORATION 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.  
-
-Authors:
-        Liu Kai <kaix.b.liu@intel.com>
-
-----------------------------------------------
-Changelog
-----------------------------------------------
-
-
-
diff --git a/tct-uifw-tests/Makefile.am b/tct-uifw-tests/Makefile.am
deleted file mode 100644 (file)
index e87d79e..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-##
-# Copyright (c) 2012 Intel Corporation.
-#
-# Redistribution and use in source and binary forms, with or without modification,
-# are permitted provided that the following conditions are met:
-#
-# *Redistributions of works must retain the original copyright notice, this list
-# of conditions and the following disclaimer.
-# *Redistributions in binary form must reproduce the original 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 Intel Corporation nor the names of its contributors
-# may be used to endorse or promote products derived from this work without
-# specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "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 INTEL CORPORATION 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.
-#
-# Authors:
-#               Kaix, Liu <kaix.b.liu@intel.com>
-#
-docdir = /opt/tct-uifw-tests
-dist_doc_DATA = Changelog *.wgt
diff --git a/tct-uifw-tests/autogen b/tct-uifw-tests/autogen
deleted file mode 100755 (executable)
index d9fca87..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-##
-# Copyright (c) 2012 Intel Corporation.
-#
-# Redistribution and use in source and binary forms, with or without modification,
-# are permitted provided that the following conditions are met:
-#
-# *Redistributions of works must retain the original copyright notice, this list
-# of conditions and the following disclaimer.
-# *Redistributions in binary form must reproduce the original 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 Intel Corporation nor the names of its contributors
-# may be used to endorse or promote products derived from this work without
-# specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "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 INTEL CORPORATION 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.
-#
-# Authors:
-#               Liu Kai <kaix.b.liu@intel.com>
-#
-
-autoreconf --install
diff --git a/tct-uifw-tests/configure.ac b/tct-uifw-tests/configure.ac
deleted file mode 100644 (file)
index 7db0c66..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-##
-# Copyright (c) 2012 Intel Corporation.
-#
-# Redistribution and use in source and binary forms, with or without modification,
-# are permitted provided that the following conditions are met:
-#
-# *Redistributions of works must retain the original copyright notice, this list
-# of conditions and the following disclaimer.
-# *Redistributions in binary form must reproduce the original 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 Intel Corporation nor the names of its contributors
-# may be used to endorse or promote products derived from this work without
-# specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "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 INTEL CORPORATION 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.
-#
-# Authors:
-#               Fan, Yugang <yugang.fan@intel.com>
-#
-
-AC_INIT([tct-uifw-tests], [1.2.2], [yugang.fan@intel.com])
-AM_INIT_AUTOMAKE([-Wall -Werror foreign])
-
-# Checks for programs.
-#AC_PROG_CC
-
-AC_CONFIG_FILES([\
-Makefile \
-])
-AC_OUTPUT
diff --git a/tct-uifw-tests/pack.sh b/tct-uifw-tests/pack.sh
deleted file mode 100755 (executable)
index c697571..0000000
+++ /dev/null
@@ -1,237 +0,0 @@
-#!/bin/bash
-##
-# Copyright (c) 2012 Intel Corporation.
-#
-# Redistribution and use in source and binary forms, with or without modification,
-# are permitted provided that the following conditions are met:
-#
-# * Redistributions of works must retain the original copyright notice, this list
-#   of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the original 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 Intel Corporation nor the names of its contributors
-#   may be used to endorse or promote products derived from this work without
-#   specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "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 INTEL CORPORATION 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.
-#
-# Authors:
-#               Fan, Yugang <yugang.fan@intel.com>
-#
-
-USAGE="Usage: ./pack.sh [-t <package type: all | rpm | zip> -s <subtype: wgt>]"
-
-if [[ $1 == "-h" || $1 == "--help" ]]; then
-    echo $USAGE
-    exit 1
-fi
-
-type='None'
-subtype='None'
-
-while getopts t:s: o; do
-    case "$o" in
-    t)
-        type=$OPTARG
-        ;;
-    s)
-       subtype=$OPTARG
-        ;;
-    *)
-        echo $USAGE
-        exit 1
-        ;;
-    esac
-done
-
-if [ $type == 'None' ]; then
-    echo -e "Create package with default option \"all\""
-    type="all"
-fi
-
-if [ $subtype == 'None' ]; then
-    echo -e "Create sub package with default option \"wgt\""
-    subtype="wgt"
-fi
-
-pack_fail='FALSE'
-suite_dir=${PWD}
-all_dirs=`ls -l --time-style="long-iso" $suite_dir | grep '^d' | awk '{print $8}'`
-black_dirs=''
-
-#black list reserved for some non-suite folders.
-if [ -f "$suite_dir/blackdirs" ]; then
-    black_dirs=`cat $suite_dir/blackdirs`
-    echo "Got black dirs: $black_dirs"
-fi
-
-function check_blackdir()
-{
-  for bdir in ${black_dirs[@]}; do
-    if [ $1 == $bdir ]; then
-      return 1;
-    fi
-  done
-  return 0
-}
-
-if [ $subtype == "wgt" ]; then
-    echo "-->> Creating widgets >>--"
-    for app in $all_dirs; do
-        check_blackdir $app
-        if [ $? == 1 ]; then
-           echo "Got a black dir: $app"
-            continue
-        elif [ $(find $app|wc -l) -eq 1 ]; then
-            echo "No files found in $app, skip it ..."
-            continue
-        else
-            if [ -f $app.wgt ]; then
-                echo "Delete old packaged file"
-                rm -rf $app.wgt
-            fi 
-            cd $app
-            echo "Start pack $app ..."
-                 zip -rq ../$app.wgt *
-            if [ $? -ne 0 ]; then
-                pack_fail='TRUE'
-                echo "Create $app.wgt fail, continue to pack others"
-            fi
-            cd $suite_dir
-            echo -e "Done\n"
-             fi  
-    done
-    echo "-- Create widgets done --"
-fi
-   
-if [ $subtype == "crx" ]; then
-    echo "Reserved for crx format ..."
-fi
-
-if [ $pack_fail != 'FALSE' ]; then
-    echo "Fail to pack some packages ..."
-    exit 1
-fi
-
-#######################################################################################################
-# parse spec required name
-NAME=`grep "Name:" *.spec | awk '{print $2}'`
-if [ -z "$NAME" ];then
-        echo "Name not specified in spec file"
-        exit 1
-fi
-
-
-# parse spec required version
-VERSION=`grep "Version:" ${NAME}.spec | awk '{print $2}'`
-if [ -z "$VERSION" ];then
-        echo "Version not specified in spec file"
-        exit 1
-fi
-
-SRC_ROOT=${PWD}
-RPM_ROOT=/tmp/${NAME}_pack
-#tar.gz2
-ARCHIVE_TYPE=tar.gz
-#cjvf
-ARCHIVE_OPTION=czvf
-
-# check precondition
-check_precondition()
-{
-    which $1 > /dev/null 2>&1
-    if [ $? -ne 0 ]; then
-        echo "Error: no tool: $1"
-        exit 1
-    fi
-}
-check_precondition rpmbuild
-check_precondition gcc
-check_precondition make
-
-
-# clean
-echo "cleaning rpm workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
-rm -rf $RPM_ROOT
-
-# create workspace
-echo "create rpm workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
-mkdir -p $RPM_ROOT/RPMS $RPM_ROOT/SRPMS $RPM_ROOT/SPECS $RPM_ROOT/SOURCES $RPM_ROOT/BUILD $RPM_ROOT/src_tmp/$NAME-$VERSION
-
-# prepare
-echo "prepare workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
-rm -rf *.rpm *.tar.bz2 *.tar.gz *.zip
-cp -a $SRC_ROOT/* $RPM_ROOT/src_tmp/$NAME-$VERSION
-# create Makefile in top src folder
-#cp $SRC_ROOT/top_Makefile $RPM_ROOT/src_tmp/$NAME-$VERSION/Makefile
-cp $PWD/${NAME}.spec $RPM_ROOT/SPECS
-cd $RPM_ROOT/src_tmp
-tar $ARCHIVE_OPTION $RPM_ROOT/SOURCES/$NAME-$VERSION.$ARCHIVE_TYPE $NAME-$VERSION
-cd -
-
-# build
-echo "build from workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
-cd  $RPM_ROOT/SPECS
-rpmbuild -ba ${NAME}.spec --clean --define "_topdir $RPM_ROOT" --define="TYPE $type" --target=noarch
-cd -
-
-echo "copy from workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
-echo "get packages......"
-if [ $type == 'all' ]; then
-        find $RPM_ROOT -name "$NAME*.zip" | grep -v debuginfo | xargs -n1 -I {} mv {} $PWD -f
-        find $RPM_ROOT -name "$NAME*.rpm" | grep -v debuginfo | xargs -n1 -I {} mv {} $PWD -f
-elif [ $type == 'zip' ]; then
-        find $RPM_ROOT -name "$NAME*.zip" | grep -v debuginfo | xargs -n1 -I {} mv {} $PWD -f
-        find $RPM_ROOT -name "$NAME*.src.rpm" | grep -v debuginfo | xargs -n1 -I {} mv {} $PWD -f
-else
-        find $RPM_ROOT -name "$NAME*.rpm" | grep -v debuginfo | xargs -n1 -I {} mv {} $PWD -f
-fi
-
-if [[ $platform != "" && $platform != "default" ]]; then
-        cd $PWD
-        for file in `ls *.zip`; do
-                new_name=`echo $file | sed "s/\.zip/\.$platform\.zip/g"`
-                mv $file $new_name
-        done
-        for file in `ls *.rpm`; do
-                new_name=`echo $file | sed "s/\.rpm/\.$platform\.rpm/g"`
-                mv $file $new_name
-        done
-        cd -
-fi
-
-echo "get $NAME-$VERSION.$ARCHIVE_TYPE......"
-mv $RPM_ROOT/SOURCES/$NAME-$VERSION.$ARCHIVE_TYPE $PWD -f
-
-# clean
-echo "cleaning workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
-rm -rf $RPM_ROOT
-rm -rf *.wgt
-
-# validate
-echo "checking result... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
-if [ $type == 'all' ] || [ $type == 'zip' ]; then
-        if [ -z "`ls | grep "\.rpm"`" ] || [ -z "`ls | grep "\.$ARCHIVE_TYPE"`" ] || [ -z "`ls | grep "\.zip"`" ];then
-                echo "------------------------------ FAILED to build $NAME packages --------------------------"
-                exit 1
-        fi
-else
-        if [ -z "`ls | grep "\.rpm"`" ] || [ -z "`ls | grep "\.$ARCHIVE_TYPE"`" ];then
-                echo "------------------------------ FAILED to build $NAME packages --------------------------"
-                exit 1
-        fi
-fi
-
-echo "------------------------------ Done to build $NAME packages --------------------------"
-ls *.rpm *.$ARCHIVE_TYPE *.zip 2>/dev/null
-##############################################################################
diff --git a/tct-uifw-tests/tct-uifw-tests.spec b/tct-uifw-tests/tct-uifw-tests.spec
deleted file mode 100644 (file)
index d6c32e2..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-%define _unpackaged_files_terminate_build 0 
-
-Summary: Uiframework tests
-Name: tct-uifw-tests
-Version: 1.2.2
-Release: 1
-License: BSD
-Group: System/Libraries
-Source: %name-%version.tar.gz
-
-%description
-This is Ui framework test suite package
-
-
-%prep
-%setup -q
-
-%build
-./autogen
-./configure --prefix=/usr
-make
-
-%install
-rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-
-cp -a $RPM_BUILD_ROOT $RPM_BUILD_DIR/%name
-cd $RPM_BUILD_DIR
-zip -Drq %name-%version-%release.zip %name
-cd $RPM_BUILD_DIR/%name
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%files
-/opt/%name
-
-%changelog
-
-%post
-############## install/uninstall crx, wgt packge ####################
-crx_installer="chromium-browser"
-wgt_installer="wrt-installer"
-
-which $crx_installer > /dev/null 2>&1
-if [ $? -eq 0 ]; then
-    echo "Reserved for crx package"
-fi
-
-which $wgt_installer > /dev/null 2>&1
-if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/%name -name "*.wgt"`
-    for i_pkg in $wgt_list; do
-      echo "Start install package $i_pkg"
-      [ -e $i_pkg ] && $wgt_installer -i $i_pkg
-      i_pkg_names=`basename $i_pkg`
-      i_pkg_name=${i_pkg_names%.*}
-    done
-fi
-
-%preun
-crx_installer="chromium-browser"
-wgt_installer="wrt-installer"
-
-which $crx_installer > /dev/null 2>&1
-if [ $? -eq 0 ]; then
-    echo "Reserved for crx package"
-fi
-
-which $wgt_installer > /dev/null 2>&1
-if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/%name -name "*.wgt"`
-    for i_pkg in $wgt_list; do
-      i_pkg_names=`basename $i_pkg`
-      i_pkg_name=${i_pkg_names%.*}
-      echo "Uninstall package $i_pkg_name"
-      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $5 }'`
-      for i_pkg_nn in $i_pkg_nns; do
-        echo "Package Name is $i_pkg_nn"
-        $wgt_installer -un $i_pkg_nn
-      done
-    done
-fi
-########################## end ##############################
diff --git a/tct-uifw-tests/testcase.xsl b/tct-uifw-tests/testcase.xsl
deleted file mode 100644 (file)
index 8623c28..0000000
+++ /dev/null
@@ -1,181 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0"
-       xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-       <xsl:output method="html" version="1.0" encoding="UTF-8"
-               indent="yes" />
-       <xsl:template match="/">
-               <html>
-                       <STYLE type="text/css">
-                               @import "tests.css";
-                       </STYLE>
-
-                       <body>
-                               <div id="testcasepage">
-                                       <div id="title">
-                                               <table>
-                                                       <tr>
-                                                               <td>
-                                                                       <h1>Test Cases</h1>
-                                                               </td>
-                                                       </tr>
-                                               </table>
-                                       </div>
-                                       <div id="suites">
-                                               <table>
-                                                       <tr>
-                                                               <th>Test Suite</th>
-                                                               <th>Total</th>
-                                                               <th>Auto</th>
-                                                               <th>Manual</th>
-                                                       </tr>
-                                                       <tr>
-                                                               <td>
-                                                                       Total
-                                                               </td>
-                                                               <td>
-                                                                       <xsl:value-of select="count(test_definition/suite/set//testcase)" />
-                                                               </td>
-                                                               <td>
-                                                                       <xsl:value-of
-                                                                               select="count(test_definition/suite/set//testcase[@execution_type = 'auto'])" />
-                                                               </td>
-                                                               <td>
-                                                                       <xsl:value-of
-                                                                               select="count(test_definition/suite/set//testcase[@execution_type != 'auto'])" />
-                                                               </td>
-                                                       </tr>
-                                                       <xsl:for-each select="test_definition/suite">
-                                                               <tr>
-                                                                       <td>
-                                                                               <xsl:value-of select="@name" />
-                                                                       </td>
-                                                                       <td>
-                                                                               <xsl:value-of select="count(set//testcase)" />
-                                                                       </td>
-                                                                       <td>
-                                                                               <xsl:value-of select="count(set/testcase[@execution_type = 'auto'])" />
-                                                                       </td>
-                                                                       <td>
-                                                                               <xsl:value-of select="count(set/testcase[@execution_type != 'auto'])" />
-                                                                       </td>
-                                                               </tr>
-                                                       </xsl:for-each>
-                                               </table>
-                                       </div>
-                                       <div id="title">
-                                               <table>
-                                                       <tr>
-                                                               <td class="title">
-                                                                       <h1>Detailed Test Cases</h1>
-                                                               </td>
-                                                       </tr>
-                                               </table>
-                                       </div>
-                                       <div id="cases">
-                                               <xsl:for-each select="test_definition/suite">
-                                                       <xsl:sort select="@name" />
-                                                       <p>
-                                                               Test Suite:
-                                                               <xsl:value-of select="@name" />
-                                                       </p>
-                                                       <table>
-                                                               <tr>
-                                                                       <th>Case_ID</th>
-                                                                       <th>Purpose</th>
-                                                                       <th>Type</th>
-                                                                       <th>Component</th>
-                                                                       <th>Execution Type</th>
-                                                                       <th>Description</th>
-                                                                       <th>Specification</th>
-                                                               </tr>
-                                                               <xsl:for-each select=".//set">
-                                                                       <xsl:sort select="@name" />
-                                                                       <tr>
-                                                                               <td colspan="7">
-                                                                                       Test Set:
-                                                                                       <xsl:value-of select="@name" />
-                                                                               </td>
-                                                                       </tr>
-                                                                       <xsl:for-each select=".//testcase">
-                                                                               <xsl:sort select="@id" />
-                                                                               <tr>
-                                                                                       <td>
-                                                                                               <xsl:value-of select="@id" />
-                                                                                       </td>
-                                                                                       <td>
-                                                                                               <xsl:value-of select="@purpose" />
-                                                                                       </td>
-                                                                                       <td>
-                                                                                               <xsl:value-of select="@type" />
-                                                                                       </td>
-                                                                                       <td>
-                                                                                               <xsl:value-of select="@component" />
-                                                                                       </td>
-                                                                                       <td>
-                                                                                               <xsl:value-of select="@execution_type" />
-                                                                                       </td>
-                                                                                       <td>
-                                                                                               <p>
-                                                                                                       Pre_condition:
-                                                                                                       <xsl:value-of select=".//description/pre_condition" />
-                                                                                               </p>
-                                                                                               <p>
-                                                                                                       Post_condition:
-                                                                                                       <xsl:value-of select=".//description/post_condition" />
-                                                                                               </p>
-                                                                                               <p>
-                                                                                                       Test Script Entry:
-                                                                                                       <xsl:value-of select=".//description/test_script_entry" />
-                                                                                               </p>
-                                                                                               <p>
-                                                                                                       Steps:
-                                                                                                       <p />
-                                                                                                       <xsl:for-each select=".//description/steps/step">
-                                                                                                               <xsl:sort select="@order" />
-                                                                                                               Step
-                                                                                                               <xsl:value-of select="@order" />
-                                                                                                               :
-                                                                                                               <xsl:value-of select="./step_desc" />
-                                                                                                               ;
-                                                                                                               <p />
-                                                                                                               Expected Result:
-                                                                                                               <xsl:value-of select="./expected" />
-                                                                                                               <p />
-                                                                                                       </xsl:for-each>
-                                                                                               </p>
-                                                                                       </td>
-                                                                                       <td>
-                                                                                               <xsl:call-template name="br-replace">
-                                                                                                       <xsl:with-param name="word" select=".//spec" />
-                                                                                               </xsl:call-template>
-                                                                                       </td>
-                                                                               </tr>
-                                                                       </xsl:for-each>
-                                                               </xsl:for-each>
-                                                       </table>
-                                               </xsl:for-each>
-                                       </div>
-                               </div>
-                       </body>
-               </html>
-       </xsl:template>
-       <xsl:template name="br-replace">
-               <xsl:param name="word" />
-               <xsl:variable name="cr">
-                       <xsl:text>
-</xsl:text>
-               </xsl:variable>
-               <xsl:choose>
-                       <xsl:when test="contains($word,$cr)">
-                               <xsl:value-of select="substring-before($word,$cr)" />
-                               <br />
-                               <xsl:call-template name="br-replace">
-                                       <xsl:with-param name="word" select="substring-after($word,$cr)" />
-                               </xsl:call-template>
-                       </xsl:when>
-                       <xsl:otherwise>
-                               <xsl:value-of select="$word" />
-                       </xsl:otherwise>
-               </xsl:choose>
-       </xsl:template>
-</xsl:stylesheet>
\ No newline at end of file
diff --git a/tct-uifw-tests/testresult.xsl b/tct-uifw-tests/testresult.xsl
deleted file mode 100644 (file)
index d1ad1b9..0000000
+++ /dev/null
@@ -1,273 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0"
-       xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-       <xsl:output method="html" version="1.0" encoding="UTF-8"
-               indent="yes" />
-       <xsl:template match="/">
-               <html>
-                       <STYLE type="text/css">
-                               @import "tests.css";
-                       </STYLE>
-
-                       <body>
-                               <div id="testcasepage">
-                                       <div id="title">
-                                               <table>
-                                                       <tr>
-                                                               <td>
-                                                                       <h1>Test Report</h1>
-                                                               </td>
-                                                       </tr>
-                                               </table>
-                                       </div>
-                                       <div id="device">
-                                               <table>
-                                                       <tr>
-                                                               <th colspan="2">Device Information</th>
-                                                       </tr>
-                                                       <tr>
-                                                               <td>Device Name</td>
-                                                               <td>
-                                                                       <xsl:value-of select="test_definition/environment/@device_name" />
-                                                               </td>
-                                                       </tr>
-                                                       <tr>
-                                                               <td>Device Model</td>
-                                                               <td>
-                                                                       <xsl:value-of select="test_definition/environment/@device_model" />
-                                                               </td>
-                                                       </tr>
-                                                       <tr>
-                                                               <td>OS Version</td>
-                                                               <td>
-                                                                       <xsl:value-of select="test_definition/environment/@os_version" />
-                                                               </td>
-                                                       </tr>
-                                                       <tr>
-                                                               <td>Device ID</td>
-                                                               <td>
-                                                                       <xsl:value-of select="test_definition/environment/@device_id" />
-                                                               </td>
-                                                       </tr>
-                                                       <tr>
-                                                               <td>Firmware Version</td>
-                                                               <td>
-                                                                       <xsl:value-of select="test_definition/environment/@firmware_version" />
-                                                               </td>
-                                                       </tr>
-                                                       <tr>
-                                                               <td>Screen Size</td>
-                                                               <td>
-                                                                       <xsl:value-of select="test_definition/environment/@screen_size" />
-                                                               </td>
-                                                       </tr>
-                                                       <tr>
-                                                               <td>Resolution</td>
-                                                               <td>
-                                                                       <xsl:value-of select="test_definition/environment/@resolution" />
-                                                               </td>
-                                                       </tr>
-                                                       <tr>
-                                                               <td>Host Info</td>
-                                                               <td>
-                                                                       <xsl:value-of select="test_definition/environment/@host" />
-                                                               </td>
-                                                       </tr>
-                                                       <tr>
-                                                               <td>Others</td>
-                                                               <td>
-                                                                       <xsl:value-of select="test_definition/environment/other" />
-                                                               </td>
-                                                       </tr>
-                                               </table>
-                                       </div>
-
-                                       <div id="summary">
-                                               <table>
-                                                       <tr>
-                                                               <th colspan="2">Test Summary</th>
-                                                       </tr>
-                                                       <tr>
-                                                               <td>Test Plan Name</td>
-                                                               <td>
-                                                                       <xsl:value-of select="test_definition/summary/@test_plan_name" />
-                                                               </td>
-                                                       </tr>
-                                                       <tr>
-                                                               <td>Tests Total</td>
-                                                               <td>
-                                                                       <xsl:value-of select="count(test_definition//suite/set/testcase)" />
-                                                               </td>
-                                                       </tr>
-                                                       <tr>
-                                                               <td>Test Passed</td>
-                                                               <td>
-                                                                       <xsl:value-of
-                                                                               select="count(test_definition//suite/set/testcase[@result = 'PASS'])" />
-                                                               </td>
-                                                       </tr>
-                                                       <tr>
-                                                               <td>Test Failed</td>
-                                                               <td>
-                                                                       <xsl:value-of
-                                                                               select="count(test_definition//suite/set/testcase[@result = 'FAIL'])" />
-                                                               </td>
-                                                       </tr>
-                                                       <tr>
-                                                               <td>Test N/A</td>
-                                                               <td>
-                                                                       <xsl:value-of
-                                                                               select="count(test_definition//suite/set/testcase[@result = 'BLOCK'])" />
-                                                               </td>
-                                                       </tr>
-                                                       <tr>
-                                                               <td>Test Not Run</td>
-                                                               <td>
-                                                                       <xsl:value-of
-                                                                               select="count(test_definition//suite/set/testcase) - count(test_definition//suite/set/testcase[@result = 'PASS']) - count(test_definition//suite/set/testcase[@result = 'FAIL']) - count(test_definition//suite/set/testcase[@result = 'BLOCK'])" />
-                                                               </td>
-                                                       </tr>
-                                                       <tr>
-                                                               <td>Start time</td>
-                                                               <td>
-                                                                       <xsl:value-of select="test_definition/summary/start_at" />
-                                                               </td>
-                                                       </tr>
-                                                       <tr>
-                                                               <td>End time</td>
-                                                               <td>
-                                                                       <xsl:value-of select="test_definition/summary/end_at" />
-                                                               </td>
-                                                       </tr>
-                                               </table>
-                                       </div>
-
-
-                                       <div id="suite_summary">
-                                               <div id="title">
-                                                       <table>
-                                                               <tr>
-                                                                       <td class="title">
-                                                                               <h1>Test Summary by Suite</h1>
-                                                                       </td>
-                                                               </tr>
-                                                       </table>
-                                               </div>
-                                               <table>
-                                                       <tr>
-                                                               <th>Suite</th>
-                                                               <th>Passed</th>
-                                                               <th>Failed</th>
-                                                               <th>N/A</th>
-                                                               <th>Not Run</th>
-                                                               <th>Total</th>
-                                                       </tr>
-                                                       <xsl:for-each select="test_definition/suite">
-                                                               <xsl:sort select="@name" />
-                                                               <tr>
-                                                                       <td>
-                                                                               <xsl:value-of select="@name" />
-                                                                       </td>
-                                                                       <td>
-                                                                               <xsl:value-of select="count(set//testcase[@result = 'PASS'])" />
-                                                                       </td>
-                                                                       <td>
-                                                                               <xsl:value-of select="count(set//testcase[@result = 'FAIL'])" />
-                                                                       </td>
-                                                                       <td>
-                                                                               <xsl:value-of select="count(set//testcase[@result = 'BLOCK'])" />
-                                                                       </td>
-                                                                       <td>
-                                                                               <xsl:value-of
-                                                                                       select="count(set//testcase) - count(set//testcase[@result = 'PASS']) - count(set//testcase[@result = 'FAIL']) - count(set//testcase[@result = 'BLOCK'])" />
-                                                                       </td>
-                                                                       <td>
-                                                                               <xsl:value-of select="count(set//testcase)" />
-                                                                       </td>
-                                                               </tr>
-                                                       </xsl:for-each>
-                                               </table>
-                                       </div>
-
-                                       <div id="cases">
-                                               <div id="title">
-                                                       <table>
-                                                               <tr>
-                                                                       <td class="title">
-                                                                               <h1 align="center">Detailed Test Results</h1>
-                                                                       </td>
-                                                               </tr>
-                                                       </table>
-                                               </div>
-                                               <xsl:for-each select="test_definition/suite">
-                                                       <xsl:sort select="@name" />
-                                                       <p>
-                                                               Test Suite:
-                                                               <xsl:value-of select="@name" />
-                                                       </p>
-                                                       <table>
-                                                               <tr>
-                                                                       <th>Case_ID</th>
-                                                                       <th>Purpose</th>
-                                                                       <th>Result</th>
-                                                                       <th>Stdout</th>
-                                                               </tr>
-                                                               <xsl:for-each select=".//set">
-                                                                       <xsl:sort select="@name" />
-                                                                       <tr>
-                                                                               <td colspan="4">
-                                                                                       Test Set:
-                                                                                       <xsl:value-of select="@name" />
-                                                                               </td>
-                                                                       </tr>
-                                                                       <xsl:for-each select=".//testcase">
-                                                                               <xsl:sort select="@id" />
-                                                                               <tr>
-                                                                                       <td>
-                                                                                               <xsl:value-of select="@id" />
-                                                                                       </td>
-                                                                                       <td>
-                                                                                               <xsl:value-of select="@purpose" />
-                                                                                       </td>
-
-                                                                                       <xsl:choose>
-                                                                                               <xsl:when test="@result">
-                                                                                                       <xsl:if test="@result = 'FAIL'">
-                                                                                                               <td class="red_rate">
-                                                                                                                       <xsl:value-of select="@result" />
-                                                                                                               </td>
-                                                                                                       </xsl:if>
-                                                                                                       <xsl:if test="@result = 'PASS'">
-                                                                                                               <td class="green_rate">
-                                                                                                                       <xsl:value-of select="@result" />
-                                                                                                               </td>
-                                                                                                       </xsl:if>
-                                                                                                       <xsl:if test="@result = 'BLOCK' ">
-                                                                                                               <td>
-                                                                                                                       BLOCK
-                                                                                                               </td>
-                                                                                                       </xsl:if>
-                                                                                               </xsl:when>
-                                                                                               <xsl:otherwise>
-                                                                                                       <td>
-
-                                                                                                       </td>
-                                                                                               </xsl:otherwise>
-                                                                                       </xsl:choose>
-                                                                                       <td>
-                                                                                               <xsl:value-of select=".//result_info/stdout" />
-                                                                                               <xsl:if test=".//result_info/stdout = ''">
-                                                                                                       N/A
-                                                                                               </xsl:if>
-                                                                                       </td>
-                                                                               </tr>
-                                                                       </xsl:for-each>
-                                                               </xsl:for-each>
-                                                       </table>
-                                               </xsl:for-each>
-                                       </div>
-                               </div>
-                       </body>
-               </html>
-       </xsl:template>
-</xsl:stylesheet>
\ No newline at end of file
diff --git a/tct-uifw-tests/tests.css b/tct-uifw-tests/tests.css
deleted file mode 100644 (file)
index b5be58d..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-@charset "UTF-8";
-/* CSS Document */
-#testcasepage div,#testcasepage h1,#testcasepage p,#testcasepage table,#testcasepage tr,#testcasepage th,#testcasepage td {
-    border: 0;
-    font-family: arial;
-    font-size: 0.96em;
-    font-style: inherit;
-    font-weight: inherit;
-    padding: 0;
-    margin: 0;
-    vertical-align: baseline;
-}
-
-#testcasepage p {
-    text-align: left;
-}
-
-#testcasepage table {
-    border-collapse: separate;
-    border-spacing: 0;
-    margin-bottom: 1.4em;
-    vertical-align: middle;
-}
-
-#testcasepage th,#testcasepage td {
-    font-weight: normal;
-    padding: 4px 10px 4px 5px;
-    text-align: left;
-    vertical-align: middle;
-}
-
-#cases table {
-    width: 101%;
-}
-
-#title table {
-    width: 101%;
-}
-
-#device table {
-    width: 50%;
-}
-
-#summary table {
-    width: 50%;
-}
-
-#testcasepage th {
-    background-color: #AAAAAA;
-    border-bottom: 1px solid #000;
-    border-left: 1px solid #000;
-    border-top: 1px solid #000;
-    color: #000;
-    font-weight: bold;
-    vertical-align: bottom;
-}
-
-#testcasepage th:last-child, #testcasepage td:last-child {
-    border-right: 1px solid #000;
-}
-
-#testcasepage td {
-    border-bottom: 1px solid;
-    border-left: 1px solid;
-    font-weight: normal;
-}
-
-#testcasepage td.yellow_rate {
-    background-color: #ffcc00;
-}
-
-#testcasepage td.green_rate {
-    background-color: #33cc33;
-}
-
-#testcasepage td.dgreen_rate {
-    background-color: #339933;
-}
-
-#testcasepage td.red_rate {
-    background-color: #FF3333;
-}
-
-#title table, #title tr, #title td {
-    border-bottom: none;
-    border-left: none;
-    text-align: center;
-}
-
-#title td:last-child {
-    border-right: none;
-}
-
-#testcasepage h1 {
-    color: #000;
-    font-family: Arial, sans-serif;
-    font-size: 2em;
-    font-weight: bold;
-    line-height: 1;
-    margin-bottom: 0.75em;
-    padding-top: 0.25em;
-}
diff --git a/tct-uifw-tests/web-ui-fw-tests/COPYING b/tct-uifw-tests/web-ui-fw-tests/COPYING
deleted file mode 100644 (file)
index 23acf1f..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-This software is licensed under the MIT license (as defined
-by the OSI at http://www.opensource.org/licenses/mit-license.php)
-
-****************************************************************************
-Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd.
-Copyright (C) 2011 by Intel Corporation Ltd.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-****************************************************************************
-
-This software incorporates software from other sources, including:
-
-widgets/jquery.mobile.groupindex/
-       initial version taken from
-       git clone https://github.com/jquery/jquery-mobile.git
-       commit a197e17500ed9f4994f532ab384b0b45b414a1ea
-       including theme files (removed php files which required some changes), demo html, js, and also the
-       jquery.mobile.scrollview.{js/css} in the common directories (already copied as part of datetimepicker).
-
-widgets/jquery.mobile.maps/
-       initial version taken from :
-       svn checkout http://jquery-ui-map.googlecode.com/svn/trunk/ jquery-ui-map-read-only
-       Checked out revision 254.
-
-jQuery UI (http://jqueryui.com/) [MIT license]
-JQM-DateBox (https://github.com/jtsage/jquery-mobile-datebox) [CC 3.0 Attribution]
-developed by JTSage (http://dev.jtsage.com/blog/)
-
-jQuery Mobile (http://jquerymobile.com/) [MIT license]
-
-jQuery (http://jquery.com/) [MIT license]
-
-(parts of) Underscore (http://documentcloud.github.com/underscore/) [MIT license]
-
-jLayout (http://www.bramstein.com/projects/jlayout/) [BSD license]
-
-jSizes (http://www.bramstein.com/projects/jsizes/) [BSD license]
-
-Globalize (http://github.com/jquery/globalize/) [MIT license]
diff --git a/tct-uifw-tests/web-ui-fw-tests/config.xml b/tct-uifw-tests/web-ui-fw-tests/config.xml
deleted file mode 100644 (file)
index 67bde43..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-<widget id="http://tizen.org/web-ui-fw-tests" xmlns='http://www.w3.org/ns/widgets' xmlns:tizen='http://tizen.org/ns/widgets'> 
-  <access origin="*"/>
-  <icon src="custom.png" height="123" width="123"/>
-  <name>web-ui-fw-tests</name>
-  <content src="index.html"/>
-  <tizen:application id="wuf0wuf001.webuifwtests" package="wuf0wuf001" required_version="2.1"/>
-  <tizen:setting screen-orientation="portrait" contextmenu="disable"/>
-       <tizen:privilege name="http://tizen.org/privilege/content.read"/>
-       <tizen:privilege name="http://tizen.org/privilege/content.write"/>
-       <tizen:privilege name="http://tizen.org/privilege/systeminfo"/>
-       <tizen:privilege name="http://tizen.org/privilege/application.launch"/>
-       <tizen:privilege name="http://tizen.org/privilege/application.read"/>
-       <tizen:privilege name="http://tizen.org/privilege/filesystem.read"/>
-       <tizen:privilege name="http://tizen.org/privilege/filesystem.write"/>
-</widget>
diff --git a/tct-uifw-tests/web-ui-fw-tests/custom.png b/tct-uifw-tests/web-ui-fw-tests/custom.png
deleted file mode 100644 (file)
index 6bdebd1..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/custom.png and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/grid/virtualgrid-db-demo.js b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/grid/virtualgrid-db-demo.js
deleted file mode 100644 (file)
index 5aace82..0000000
+++ /dev/null
@@ -1,6291 +0,0 @@
-/*
- * jQuery Mobile Framework : Dummy data for Virtuallist demo
- * Copyright (c) Lee, Wongi (wongi11.lee@samsung.com)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- */
-
-/* Sample Data in JSON */
-var JSON_DATA = [{
-       ID :    "card_0000",
-       NAME : "Abdelnaby, Alaa",
-       ACTIVE : "1990 - 1994",
-       FROM : "College - Duke",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0001",
-       NAME : "Abdul-Aziz, Zaid",
-       ACTIVE : "1968 - 1977",
-       FROM : "College - Iowa State",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0002",
-       NAME : "Abdul-Jabbar, Kareem",
-       ACTIVE : "1969 - 1988",
-       FROM : "College - UCLA",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0003",
-       NAME : "Abdul-Rauf, Mahmoud",
-       ACTIVE : "1990 - 2000",
-       FROM : "College - Louisiana State",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0004",
-       NAME : "Abdul-Wahad, Tariq",
-       ACTIVE : "1997 - 2002",
-       FROM : "College - San Jose State",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_0005",
-       NAME : "Abdur-Rahim, Shareef",
-       ACTIVE : "2007 - 2007",
-       FROM : "College - California",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0006",
-       NAME : "Abernethy, Tom",
-       ACTIVE : "1976 - 1980",
-       FROM : "College - Indiana",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0007",
-       NAME : "Able, Forest Edward (Frosty)",
-       ACTIVE : "1956 - 1956",
-       FROM : "College - Western Kentucky; Louisville",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0008",
-       NAME : "Abramovic, John Jr. (Brooms)",
-       ACTIVE : "1946 - 1947",
-       FROM : "College - Salem (NC)",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0009",
-       NAME : "Acker, Alex",
-       ACTIVE : "2005 - 2008",
-       FROM : "College - Pepperdine",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0010",
-       NAME : "Ackerman, Donald D. (Buddy)",
-       ACTIVE : "1953 - 1953",
-       FROM : "College - Long Island University",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0011",
-       NAME : "Acres, Mark",
-       ACTIVE : "1987 - 1992",
-       FROM : "College - Oral Roberts",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0012",
-       NAME : "Acton, Charles R. (Bud)",
-       ACTIVE : "1967 - 1967",
-       FROM : "College - Alma; Hillsdale",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0013",
-       NAME : "Adams, Alvan",
-       ACTIVE : "1975 - 1987",
-       FROM : "College - Oklahoma",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_0014",
-       NAME : "Adams, Donald L. (Don)",
-       ACTIVE : "1970 - 1976",
-       FROM : "College - Northwestern",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0015",
-       NAME : "Adams, Hassan",
-       ACTIVE : "2006 - 2008",
-       FROM : "College - Arizona",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0016",
-       NAME : "Adams, Michael",
-       ACTIVE : "1985 - 1995",
-       FROM : "College - Boston College",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0017",
-       NAME : "Addison, Rafael",
-       ACTIVE : "1986 - 1996",
-       FROM : "College - Syracuse",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0018",
-       NAME : "Adelman, Rick",
-       ACTIVE : "1968 - 1974",
-       FROM : "College - Loyola Marymount",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0019",
-       NAME : "Adrien, Jeff",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Connecticut",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0020",
-       NAME : "Afflalo, Arron",
-       ACTIVE : "ACTIVE",
-       FROM : "College - UCLA",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0021",
-       NAME : "Ager, Maurice",
-       ACTIVE : "2007 - 2010",
-       FROM : "College - Michigan State",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0022",
-       NAME : "Aguirre, Mark",
-       ACTIVE : "1981 - 1993",
-       FROM : "College - DePaul",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0023",
-       NAME : "Ahearn, Blake",
-       ACTIVE : "2007 - 2008",
-       FROM : "College - Missouri State",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0024",
-       NAME : "Ainge, Danny",
-       ACTIVE : "1981 - 1994",
-       FROM : "College - Brigham Young",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0025",
-       NAME : "Ajinca, Alexis",
-       ACTIVE : "ACTIVE",
-       FROM : "From - Saint Etienne, France",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0026",
-       NAME : "Akin, Henry T.",
-       ACTIVE : "1966 - 1967",
-       FROM : "College - William Carey; Morehead State",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0027",
-       NAME : "Alabi, Solomon",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Florida State",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0028",
-       NAME : "Alarie, Mark",
-       ACTIVE : "1986 - 1990",
-       FROM : "College - Duke",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0029",
-       NAME : "Alcorn, Gary R.",
-       ACTIVE : "1959 - 1960",
-       FROM : "College - Fresno City Coll. CA (J.C.); Fresno State",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_0030",
-       NAME : "Aldrich, Cole",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Kansas",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0031",
-       NAME : "Aldridge, LaMarcus",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Texas",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0032",
-       NAME : "Aleksinas, Chuck",
-       ACTIVE : "1984 - 1984",
-       FROM : "College - Kentucky; Connecticut",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0033",
-       NAME : "Alexander, Cory",
-       ACTIVE : "1995 - 2004",
-       FROM : "College - Virginia",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0034",
-       NAME : "Alexander, Courtney",
-       ACTIVE : "2000 - 2002",
-       FROM : "College - Fresno State",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0035",
-       NAME : "Alexander, Gary",
-       ACTIVE : "1993 - 1993",
-       FROM : "College - South Florida",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0036",
-       NAME : "Alexander, Joe",
-       ACTIVE : "2008 - 2009",
-       FROM : "College - West Virginia",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0037",
-       NAME : "Alexander, Victor",
-       ACTIVE : "1991 - 2001",
-       FROM : "College - Iowa State",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_0038",
-       NAME : "Alford, Steve",
-       ACTIVE : "1987 - 1990",
-       FROM : "College - Indiana",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0039",
-       NAME : "Allen, Jerome",
-       ACTIVE : "1995 - 1996",
-       FROM : "College - Pennsylvania",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0040",
-       NAME : "Allen, Lucius",
-       ACTIVE : "1969 - 1978",
-       FROM : "College - UCLA",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0041",
-       NAME : "Allen, Malik",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Villanova",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0042",
-       NAME : "Allen, Randy",
-       ACTIVE : "1988 - 1989",
-       FROM : "College - Florida State",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0043",
-       NAME : "Allen, Ray",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Connecticut",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0044",
-       NAME : "Allen, Robert J. (Bob)",
-       ACTIVE : "1968 - 1968",
-       FROM : "College - Marshall",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0045",
-       NAME : "Allen, Tony",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Oklahoma State",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0046",
-       NAME : "Allison, Odis Jr.",
-       ACTIVE : "1971 - 1971",
-       FROM : "College - Laney Coll. CA (J.C.); Nevada-Las Vegas",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0047",
-       NAME : "Allred, Lance",
-       ACTIVE : "2007 - 2007",
-       FROM : "College - Weber State",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0048",
-       NAME : "Allums, Darrell",
-       ACTIVE : "1980 - 1980",
-       FROM : "College - UCLA",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0049",
-       NAME : "Almond, Morris",
-       ACTIVE : "2007 - 2008",
-       FROM : "College - Rice",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0050",
-       NAME : "Babbitt, Luke",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Nevada-Reno",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_0051",
-       NAME : "Babic, Milos",
-       ACTIVE : "1990 - 1991",
-       FROM : "College - Tennessee Tech",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0052",
-       NAME : "Bach, John William (Johnny)",
-       ACTIVE : "1948 - 1948",
-       FROM : "College - Fordham; Rochester; Brown",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_0053",
-       NAME : "Baechtold, James E. (Jim)",
-       ACTIVE : "1952 - 1956",
-       FROM : "College - Eastern Kentucky",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0054",
-       NAME : "Bagaric, Dalibor",
-       ACTIVE : "2000 - 2002",
-       FROM : "From - Croatia",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0055",
-       NAME : "Bagley, John",
-       ACTIVE : "1982 - 1993",
-       FROM : "College - Boston College",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0056",
-       NAME : "Bailey, Augustus (Gus)",
-       ACTIVE : "1974 - 1979",
-       FROM : "College - Texas-El Paso",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0057",
-       NAME : "Bailey, Carl",
-       ACTIVE : "1981 - 1981",
-       FROM : "College - Tuskegee",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0058",
-       NAME : "Bailey, James",
-       ACTIVE : "1979 - 1987",
-       FROM : "College - Rutgers",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0059",
-       NAME : "Bailey, Thurl",
-       ACTIVE : "1983 - 1998",
-       FROM : "College - North Carolina State",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0060",
-       NAME : "Bailey, Toby",
-       ACTIVE : "1998 - 1999",
-       FROM : "College - UCLA ''98",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0061",
-       NAME : "Baker, Mark",
-       ACTIVE : "1998 - 1998",
-       FROM : "College - Ohio State",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0062",
-       NAME : "Baker, Maurice",
-       ACTIVE : "2004 - 2004",
-       FROM : "College - Oklahoma State '02",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0063",
-       NAME : "Baker, Norman Henry (Norm)",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - No College",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0064",
-       NAME : "Baker, Vin",
-       ACTIVE : "1993 - 2005",
-       FROM : "College - Hartford",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0065",
-       NAME : "Balkman, Renaldo",
-       ACTIVE : "ACTIVE",
-       FROM : "College - South Carolina",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0066",
-       NAME : "Ball, Cedric",
-       ACTIVE : "1990 - 1990",
-       FROM : "College - North Carolina-Charlotte",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0067",
-       NAME : "Ballard, Greg",
-       ACTIVE : "1977 - 1988",
-       FROM : "College - Shasta Coll. CA (J.C.); Oregon",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0068",
-       NAME : "Baltimore, Herschel David (Herk)",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - Penn State",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0069",
-       NAME : "Banks, Gene",
-       ACTIVE : "1981 - 1986",
-       FROM : "College - Duke",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0070",
-       NAME : "Banks, Marcus",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Nevada-Las Vegas",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0071",
-       NAME : "Bannister, Ken",
-       ACTIVE : "1984 - 1990",
-       FROM : "College - Trinidad State JC CO; Indiana State; Saint Augustine College",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0072",
-       NAME : "Bantom, Mike",
-       ACTIVE : "1973 - 1981",
-       FROM : "College - St. Joseph's (PA)",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0073",
-       NAME : "Barber, John",
-       ACTIVE : "1956 - 1956",
-       FROM : "College - Los Angeles State",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0074",
-       NAME : "Barbosa, Leandro",
-       ACTIVE : "ACTIVE",
-       FROM : "From - Sau Paulo, Brazil",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0075",
-       NAME : "Bardo, Stephen",
-       ACTIVE : "1991 - 1995",
-       FROM : "College - Illinois",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0076",
-       NAME : "Barea, Jose",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Northeastern",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0077",
-       NAME : "Bargnani, Andrea",
-       ACTIVE : "ACTIVE",
-       FROM : "From - Rome, Italy",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0078",
-       NAME : "Barker, Clifford E. (Cliff)",
-       ACTIVE : "1949 - 1951",
-       FROM : "College - Kentucky",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0079",
-       NAME : "Barker, Thomas Kevin (Tom)",
-       ACTIVE : "1976 - 1978",
-       FROM : "College - Minnesota; Coll. of Southern Idaho (J.C.); Hawaii",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0080",
-       NAME : "Barkley, Charles",
-       ACTIVE : "1984 - 1999",
-       FROM : "College - Auburn",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0081",
-       NAME : "Barkley, Erick",
-       ACTIVE : "2000 - 2001",
-       FROM : "College - St. John''s '02",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0082",
-       NAME : "Barksdale, Don Angelo",
-       ACTIVE : "1951 - 1954",
-       FROM : "College - Coll. of Marin CA (J.C.); UCLA",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0083",
-       NAME : "Barnes, Harry J.",
-       ACTIVE : "1968 - 1968",
-       FROM : "College - Northeastern",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0084",
-       NAME : "Barnes, Marvin Jerome",
-       ACTIVE : "1976 - 1979",
-       FROM : "College - Providence",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0085",
-       NAME : "Barnes, Matt",
-       ACTIVE : "ACTIVE",
-       FROM : "College - UCLA",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0086",
-       NAME : "Barnes, V. James (Jim, Bad News)",
-       ACTIVE : "1964 - 1970",
-       FROM : "College - Cameron; Texas-El Paso",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0087",
-       NAME : "Barnett, Dick",
-       ACTIVE : "1959 - 1973",
-       FROM : "College - Tennessee State",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0088",
-       NAME : "Barnett, James Franklin (Jim)",
-       ACTIVE : "1966 - 1976",
-       FROM : "College - Oregon",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0089",
-       NAME : "Barnhill, John Anthony (Rabbit)",
-       ACTIVE : "1962 - 1968",
-       FROM : "College - Tennessee State",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0090",
-       NAME : "Barnhill, Norton",
-       ACTIVE : "1976 - 1976",
-       FROM : "College - Washington State",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0091",
-       NAME : "Barnhorst, Leo A. (Barney)",
-       ACTIVE : "1949 - 1953",
-       FROM : "College - Notre Dame",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0092",
-       NAME : "Barr, John E.",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - Penn State",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0093",
-       NAME : "Barr, Michael J. (Mike)",
-       ACTIVE : "1976 - 1976",
-       FROM : "College - Duquesne",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0094",
-       NAME : "Barr, Thomas L. (Moe)",
-       ACTIVE : "1970 - 1970",
-       FROM : "College - Duquesne",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0095",
-       NAME : "Barrett, Andre",
-       ACTIVE : "2007 - 2007",
-       FROM : "College - Seton Hall",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0096",
-       NAME : "Barrett, Ernie Drew",
-       ACTIVE : "1953 - 1955",
-       FROM : "College - Kansas State",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0097",
-       NAME : "Barron, Earl",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Memphis",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0098",
-       NAME : "Barros, Dana",
-       ACTIVE : "1989 - 2003",
-       FROM : "College - Boston College ''89",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0099",
-       NAME : "Barry, Brent",
-       ACTIVE : "2007 - 2008",
-       FROM : "College - Oregon State",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0100",
-       NAME : "Cabarkapa, Zarko",
-       ACTIVE : "2003 - 2005",
-       FROM : "From - Serbia & Montenegro",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0101",
-       NAME : "Cable, Byrum William (Barney)",
-       ACTIVE : "1958 - 1963",
-       FROM : "College - Bradley",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0102",
-       NAME : "Caffey, Jason",
-       ACTIVE : "1995 - 2002",
-       FROM : "College - Alabama ''95",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0103",
-       NAME : "Cage, Michael",
-       ACTIVE : "1984 - 1999",
-       FROM : "College - San Diego State",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0104",
-       NAME : "Calabrese, Gerald A. (Gerry)",
-       ACTIVE : "1950 - 1951",
-       FROM : "College - St. John's (N.Y.)",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0105",
-       NAME : "Calderon, Jose",
-       ACTIVE : "ACTIVE",
-       FROM : "From - Villanueva de la Serena, Spain",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0106",
-       NAME : "Caldwell, Adrian",
-       ACTIVE : "1989 - 1997",
-       FROM : "College - Navarro Coll. TX (J.C.); Southern Methodist; Lamar",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0107",
-       NAME : "Caldwell, James W. Jr. (Jim)",
-       ACTIVE : "1967 - 1967",
-       FROM : "College - Georgia Tech",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0108",
-       NAME : "Caldwell, Joe (Pogo)",
-       ACTIVE : "1964 - 1969",
-       FROM : "College - Arizona State",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0109",
-       NAME : "Calhoun, David L. (Corky)",
-       ACTIVE : "1972 - 1979",
-       FROM : "College - Pennsylvania",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0110",
-       NAME : "Calhoun, William C. (Bill)",
-       ACTIVE : "1948 - 1954",
-       FROM : "College - San Francisco City Coll. CA (J.C.)",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0111",
-       NAME : "Calip, Demetrius",
-       ACTIVE : "1991 - 1991",
-       FROM : "College - Michigan",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0112",
-       NAME : "Callahan, Thomas Francis (Tom)",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - Notre Dame; Rockhurst",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0113",
-       NAME : "Calloway, Rick",
-       ACTIVE : "1990 - 1990",
-       FROM : "College - Indiana; Kansas",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0114",
-       NAME : "Calverley, Ernest A. (Ernie)",
-       ACTIVE : "1946 - 1948",
-       FROM : "College - Rhode Island",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0115",
-       NAME : "Calvin, Mack",
-       ACTIVE : "1976 - 1980",
-       FROM : "College - Long Beach City Coll. CA (J.C.); USC",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0116",
-       NAME : "Cambridge, Dexter",
-       ACTIVE : "1992 - 1992",
-       FROM : "College - Lon Morris Coll. TX (J.C.); Texas",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0117",
-       NAME : "Camby, Marcus",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Massachusetts",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0118",
-       NAME : "Campbell, Elden",
-       ACTIVE : "1990 - 2004",
-       FROM : "College - Clemson",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0119",
-       NAME : "Campbell, Tony",
-       ACTIVE : "1984 - 1994",
-       FROM : "College - Ohio State",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0120",
-       NAME : "Cannon, Lawrence T. (Larry)",
-       ACTIVE : "1973 - 1973",
-       FROM : "College - La Salle",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0121",
-       NAME : "Caracter, Derrick",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Texas-El Paso",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0122",
-       NAME : "Cardinal, Brian",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Purdue",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0123",
-       NAME : "Carl, Howard Hershey (Howie)",
-       ACTIVE : "1961 - 1961",
-       FROM : "College - Illinois; DePaul",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0124",
-       NAME : "Carlisle, Chester G. (Chet)",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - California",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0125",
-       NAME : "Carlisle, Geno",
-       ACTIVE : "2004 - 2004",
-       FROM : "College - California '99",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0126",
-       NAME : "Carlisle, Rick",
-       ACTIVE : "1984 - 1989",
-       FROM : "College - Maine; Virginia",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0127",
-       NAME : "Carlson, Alvin Harold",
-       ACTIVE : "1975 - 1975",
-       FROM : "College - USC; Oregon",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0128",
-       NAME : "Carlson, Don Vernon (Swede)",
-       ACTIVE : "1946 - 1950",
-       FROM : "College - Minnesota",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0129",
-       NAME : "Carney, Robert Lee (Bob)",
-       ACTIVE : "1954 - 1954",
-       FROM : "College - Bradley",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0130",
-       NAME : "Carney, Rodney",
-       ACTIVE : "2007 - 2010",
-       FROM : "College - Memphis",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0131",
-       NAME : "Carpenter, Robert H. (Bob)",
-       ACTIVE : "1949 - 1950",
-       FROM : "College - Texas A&M-Commerce",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0132",
-       NAME : "Carr, Antoine",
-       ACTIVE : "1984 - 1999",
-       FROM : "College - Wichita State",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0133",
-       NAME : "Carr, Austin George",
-       ACTIVE : "1971 - 1980",
-       FROM : "College - Notre Dame",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0134",
-       NAME : "Carr, Chris",
-       ACTIVE : "1995 - 2000",
-       FROM : "College - Southern Illinois",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0135",
-       NAME : "Carr, Cory",
-       ACTIVE : "1998 - 1998",
-       FROM : "College - Texas Tech",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0136",
-       NAME : "Carr, Kenny",
-       ACTIVE : "1977 - 1986",
-       FROM : "College - North Carolina State",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0137",
-       NAME : "Carr, M.L.",
-       ACTIVE : "1976 - 1984",
-       FROM : "College - Guilford",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0138",
-       NAME : "Carrington, Robert Frederick (Bob)",
-       ACTIVE : "1977 - 1979",
-       FROM : "College - Boston College",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_0139",
-       NAME : "Carroll, DeMarre",
-       ACTIVE : "2009 - 2010",
-       FROM : "College - Missouri",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_0140",
-       NAME : "Carroll, Joe Barry",
-       ACTIVE : "1980 - 1990",
-       FROM : "College - Purdue",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0141",
-       NAME : "Carroll, Matt",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Notre Dame",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0142",
-       NAME : "Carruth, Jimmy",
-       ACTIVE : "1996 - 1996",
-       FROM : "College - Virginia Tech",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0143",
-       NAME : "Carter, Anthony",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Hawaii",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0144",
-       NAME : "Carter, Butch",
-       ACTIVE : "1980 - 1985",
-       FROM : "College - Indiana",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0145",
-       NAME : "Carter, Frederick James (Fred, Mad Dog)",
-       ACTIVE : "1969 - 1976",
-       FROM : "College - Mount St. Mary's",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0146",
-       NAME : "Carter, George",
-       ACTIVE : "1967 - 1967",
-       FROM : "College - St. Bonaventure",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0147",
-       NAME : "Carter, Howard",
-       ACTIVE : "1983 - 1984",
-       FROM : "College - Louisiana State",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0148",
-       NAME : "Carter, John D. (Jake)",
-       ACTIVE : "1949 - 1949",
-       FROM : "College - Texas A&M-Commerce",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0149",
-       NAME : "Carter, Maurice",
-       ACTIVE : "2003 - 2003",
-       FROM : "College - Louisiana State ''99",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_0150",
-       NAME : "D'Antoni, Michael Andrew (Mike)",
-       ACTIVE : "1973 - 1976",
-       FROM : "College - Marshall",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0151",
-       NAME : "Dahler, Edward Jr. (Ed)",
-       ACTIVE : "1951 - 1951",
-       FROM : "College - Duquesne",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0152",
-       NAME : "Dailey, Quintin",
-       ACTIVE : "1982 - 1991",
-       FROM : "College - San Francisco",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_0153",
-       NAME : "Dalembert, Samuel",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Seton Hall",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0154",
-       NAME : "Dallmar, Howard (Howie)",
-       ACTIVE : "1946 - 1948",
-       FROM : "College - Stanford; Pennsylvania",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0155",
-       NAME : "Dampier, Erick",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Mississippi State",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0156",
-       NAME : "Dampier, Louie (Lou)",
-       ACTIVE : "1976 - 1978",
-       FROM : "College - Kentucky",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0157",
-       NAME : "Dandridge, Robert L. Jr. (Bob)",
-       ACTIVE : "1969 - 1981",
-       FROM : "College - Norfolk State",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0158",
-       NAME : "Daniels, Antonio",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Bowling Green",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0159",
-       NAME : "Daniels, Erik",
-       ACTIVE : "2004 - 2004",
-       FROM : "College - Kentucky",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0160",
-       NAME : "Daniels, Lloyd",
-       ACTIVE : "1992 - 1997",
-       FROM : "College - Mount San Antonio Coll. CA (J.C.)",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0161",
-       NAME : "Daniels, Marquis",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Auburn",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_0162",
-       NAME : "Daniels, Mel",
-       ACTIVE : "1976 - 1976",
-       FROM : "College - Burlington Co. Coll. NJ (J.C.); New Mexico",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0163",
-       NAME : "Danilovic, Sasha",
-       ACTIVE : "1995 - 1996",
-       FROM : "College - Serbia",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0164",
-       NAME : "Dantley, Adrian",
-       ACTIVE : "1976 - 1990",
-       FROM : "College - Notre Dame",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0165",
-       NAME : "Darcey, Henry J. (Pete)",
-       ACTIVE : "1952 - 1952",
-       FROM : "College - Oklahoma State",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0166",
-       NAME : "Darden, James W. (Jimmy)",
-       ACTIVE : "1949 - 1949",
-       FROM : "College - Wyoming; Denver",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0167",
-       NAME : "Dare, Yinka",
-       ACTIVE : "1994 - 1997",
-       FROM : "College - George Washington",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0168",
-       NAME : "Dark, Jesse L.",
-       ACTIVE : "1974 - 1974",
-       FROM : "College - Virginia Commonwealth",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0169",
-       NAME : "Darrow, James K. (Jimmy)",
-       ACTIVE : "1961 - 1961",
-       FROM : "College - Bowling Green State",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0170",
-       NAME : "Daugherty, Brad",
-       ACTIVE : "1986 - 1993",
-       FROM : "College - North Carolina",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0171",
-       NAME : "David, Kornel",
-       ACTIVE : "1998 - 2000",
-       FROM : "College - Budapest AEH",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0172",
-       NAME : "Davidson, Jermareo",
-       ACTIVE : "2007 - 2008",
-       FROM : "College - Alabama",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0173",
-       NAME : "Davies, Robert Edris (Bob, Harrisburg Houdini)",
-       ACTIVE : "1948 - 1954",
-       FROM : "College - Franklin & Marshall; Seton Hall",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0174",
-       NAME : "Davis, Antonio",
-       ACTIVE : "1993 - 2005",
-       FROM : "College - Texas-El Paso",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0175",
-       NAME : "Davis, Aubrey D.",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - Oklahoma Baptist",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0176",
-       NAME : "Davis, Baron",
-       ACTIVE : "ACTIVE",
-       FROM : "College - UCLA",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0177",
-       NAME : "Davis, Ben",
-       ACTIVE : "1996 - 1999",
-       FROM : "College - Arizona ''96",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0178",
-       NAME : "Davis, Brad",
-       ACTIVE : "1977 - 1991",
-       FROM : "College - Maryland",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0179",
-       NAME : "Davis, Brian",
-       ACTIVE : "1993 - 1993",
-       FROM : "College - Duke",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0180",
-       NAME : "Davis, Charles Lawrence (Charlie)",
-       ACTIVE : "1971 - 1973",
-       FROM : "College - Wake Forest",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_0181",
-       NAME : "Davis, Charlie E.",
-       ACTIVE : "1981 - 1989",
-       FROM : "College - Vanderbilt",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0182",
-       NAME : "Davis, Dale",
-       ACTIVE : "1991 - 2006",
-       FROM : "College - Clemson",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0183",
-       NAME : "Davis, Damon William (Monti)",
-       ACTIVE : "1980 - 1980",
-       FROM : "College - Tennessee State",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0184",
-       NAME : "Davis, Dwight E. (Double D)",
-       ACTIVE : "1972 - 1976",
-       FROM : "College - Houston",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0185",
-       NAME : "Davis, Ed",
-       ACTIVE : "ACTIVE",
-       FROM : "College - North Carolina",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0186",
-       NAME : "Davis, Edward J. (Mickey)",
-       ACTIVE : "1972 - 1976",
-       FROM : "College - Duquesne",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0187",
-       NAME : "Davis, Emanual",
-       ACTIVE : "1996 - 2002",
-       FROM : "College - Delaware State ''91",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0188",
-       NAME : "Davis, Glen",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Louisiana State",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0189",
-       NAME : "Davis, Harry A.",
-       ACTIVE : "1978 - 1979",
-       FROM : "College - Florida State",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0190",
-       NAME : "Davis, Hubert",
-       ACTIVE : "1992 - 2003",
-       FROM : "College - North Carolina ''92",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0191",
-       NAME : "Davis, James R. (Red)",
-       ACTIVE : "1955 - 1955",
-       FROM : "College - St. John's (N.Y.)",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0192",
-       NAME : "Davis, James W. (Jim)",
-       ACTIVE : "1967 - 1974",
-       FROM : "College - Colorado",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0193",
-       NAME : "Davis, Johnny",
-       ACTIVE : "1976 - 1985",
-       FROM : "College - Dayton",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0194",
-       NAME : "Davis, Josh",
-       ACTIVE : "2003 - 2005",
-       FROM : "College - Wyoming",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0195",
-       NAME : "Davis, Mark",
-       ACTIVE : "1988 - 1988",
-       FROM : "College - Old Dominion",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0196",
-       NAME : "Davis, Mark",
-       ACTIVE : "1995 - 1999",
-       FROM : "College - Texas Tech",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0197",
-       NAME : "Davis, Melvyn Jerome (Mel, Killer)",
-       ACTIVE : "1973 - 1976",
-       FROM : "College - St. John's (N.Y.)",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0198",
-       NAME : "Davis, Michael",
-       ACTIVE : "1982 - 1982",
-       FROM : "College - Mercer Co. CC NJ; Maryland",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0199",
-       NAME : "Davis, Michael A. (Mike, Crusher)",
-       ACTIVE : "1969 - 1972",
-       FROM : "College - Virginia Union",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0200",
-       NAME : "Eackles, Ledell",
-       ACTIVE : "1988 - 1997",
-       FROM : "College - San Jacinto Coll. TX (J.C.); New Orleans",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0201",
-       NAME : "Eakins, James Scott (Jim, Jimbo)",
-       ACTIVE : "1976 - 1977",
-       FROM : "College - Brigham Young",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0202",
-       NAME : "Earl, Acie",
-       ACTIVE : "1993 - 1996",
-       FROM : "College - Iowa",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0203",
-       NAME : "Earle, Edwin (Ed)",
-       ACTIVE : "1953 - 1953",
-       FROM : "College - Loyola (Chicago)",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0204",
-       NAME : "Eaton, Mark",
-       ACTIVE : "1982 - 1992",
-       FROM : "College - Cypress Coll. CA (J.C.); UCLA",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0205",
-       NAME : "Eaves, Jerry",
-       ACTIVE : "1982 - 1986",
-       FROM : "College - Louisville",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0206",
-       NAME : "Ebanks, Devin",
-       ACTIVE : "ACTIVE",
-       FROM : "College - West Virginia",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0207",
-       NAME : "Ebben, William Edward (Bill)",
-       ACTIVE : "1957 - 1957",
-       FROM : "College - Detroit",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0208",
-       NAME : "Eberhard, Allen Dean (Al)",
-       ACTIVE : "1974 - 1977",
-       FROM : "College - Missouri",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0209",
-       NAME : "Ebi, Ndudi",
-       ACTIVE : "2003 - 2004",
-       FROM : "High School - Westbury Christian HS (TX)",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0210",
-       NAME : "Eddie, Patrick",
-       ACTIVE : "1991 - 1991",
-       FROM : "College - Arkansas State; Mississippi",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0211",
-       NAME : "Eddleman, Thomas Dwight (Dike)",
-       ACTIVE : "1949 - 1952",
-       FROM : "College - Illinois",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0212",
-       NAME : "Edelin, Kenton Scott (Kent)",
-       ACTIVE : "1984 - 1984",
-       FROM : "College - Virginia",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_0213",
-       NAME : "Edmonson, Keith",
-       ACTIVE : "1982 - 1983",
-       FROM : "College - Purdue",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0214",
-       NAME : "Edney, Tyus",
-       ACTIVE : "1995 - 2000",
-       FROM : "College - UCLA",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0215",
-       NAME : "Edwards, Bill",
-       ACTIVE : "1993 - 1993",
-       FROM : "College - Wright State",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0216",
-       NAME : "Edwards, Blue",
-       ACTIVE : "1989 - 1998",
-       FROM : "College - Louisburg; East Carolina",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0217",
-       NAME : "Edwards, Corsley",
-       ACTIVE : "2004 - 2004",
-       FROM : "College - Central Connecticut State '02",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0218",
-       NAME : "Edwards, Doug",
-       ACTIVE : "1993 - 1995",
-       FROM : "College - Florida State",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0219",
-       NAME : "Edwards, Franklin",
-       ACTIVE : "1981 - 1987",
-       FROM : "College - Cleveland State",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0220",
-       NAME : "Edwards, James",
-       ACTIVE : "1977 - 1995",
-       FROM : "College - Washington",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0221",
-       NAME : "Edwards, Jay",
-       ACTIVE : "1989 - 1989",
-       FROM : "College - Indiana",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0222",
-       NAME : "Edwards, John",
-       ACTIVE : "2004 - 2005",
-       FROM : "College - Kent State",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0223",
-       NAME : "Edwards, Kevin",
-       ACTIVE : "1988 - 2000",
-       FROM : "College - Lakeland CC OH; DePaul",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0224",
-       NAME : "Egan, John Francis (Johnny)",
-       ACTIVE : "1961 - 1971",
-       FROM : "College - Providence",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0225",
-       NAME : "Eggleston, Lonnie J.",
-       ACTIVE : "1948 - 1948",
-       FROM : "College - Oklahoma State",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0226",
-       NAME : "Ehlers, Edwin S. (Eddie, Bulbs)",
-       ACTIVE : "1947 - 1948",
-       FROM : "College - Purdue",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0227",
-       NAME : "Ehlo, Craig",
-       ACTIVE : "1983 - 1996",
-       FROM : "College - Odessa Coll. TX (J.C.); Washington State",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0228",
-       NAME : "Eichhorst, Richard A. (Dick)",
-       ACTIVE : "1961 - 1961",
-       FROM : "College - Southeast Missouri State",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0229",
-       NAME : "Eisley, Howard",
-       ACTIVE : "1994 - 2005",
-       FROM : "College - Boston College",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0230",
-       NAME : "Ekezie, Obinna",
-       ACTIVE : "1999 - 2004",
-       FROM : "College - Maryland",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0231",
-       NAME : "El-Amin, Khalid",
-       ACTIVE : "2000 - 2000",
-       FROM : "College - Connecticut ''01",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0232",
-       NAME : "Eliason, Donald Carlton (Don)",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - Hamline",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0233",
-       NAME : "Elie, Mario",
-       ACTIVE : "1990 - 2000",
-       FROM : "College - American International",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0234",
-       NAME : "Ellefson, E. Ray (Ray)",
-       ACTIVE : "1948 - 1950",
-       FROM : "College - Oklahoma State; Colorado; West Texas A&M",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0235",
-       NAME : "Ellington, Wayne",
-       ACTIVE : "ACTIVE",
-       FROM : "College - North Carolina",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0236",
-       NAME : "Elliott, Robert Alan (Bob)",
-       ACTIVE : "1978 - 1980",
-       FROM : "College - Arizona",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0237",
-       NAME : "Elliott, Sean",
-       ACTIVE : "1989 - 2000",
-       FROM : "College - Arizona",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0238",
-       NAME : "Ellis, Alexander (Boo)",
-       ACTIVE : "1958 - 1959",
-       FROM : "College - Niagara",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0239",
-       NAME : "Ellis, Dale",
-       ACTIVE : "1983 - 1999",
-       FROM : "College - Tennessee",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0240",
-       NAME : "Ellis, Harold",
-       ACTIVE : "1993 - 1997",
-       FROM : "College - Morehouse",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0241",
-       NAME : "Ellis, Joe",
-       ACTIVE : "1966 - 1973",
-       FROM : "College - San Francisco",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0242",
-       NAME : "Ellis, LaPhonso",
-       ACTIVE : "1992 - 2002",
-       FROM : "College - Notre Dame ''92",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0243",
-       NAME : "Ellis, LeRon",
-       ACTIVE : "1991 - 1995",
-       FROM : "College - Kentucky; Syracuse",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0244",
-       NAME : "Ellis, Leroy",
-       ACTIVE : "1962 - 1975",
-       FROM : "College - St. John's (N.Y.)",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0245",
-       NAME : "Ellis, Maurice H. (Bo)",
-       ACTIVE : "1977 - 1979",
-       FROM : "College - Marquette",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0246",
-       NAME : "Ellis, Monta",
-       ACTIVE : "ACTIVE",
-       FROM : "High School - Lanier HS (Jackson, MS)",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0247",
-       NAME : "Ellison, Pervis",
-       ACTIVE : "1989 - 2000",
-       FROM : "College - Louisville",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0248",
-       NAME : "Elmore, Len",
-       ACTIVE : "1976 - 1983",
-       FROM : "College - Maryland",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0249",
-       NAME : "Elson, Francisco",
-       ACTIVE : "ACTIVE",
-       FROM : "College - California",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0250",
-       NAME : "Fabel, Joseph (Joe)",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - Pittsburgh",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0251",
-       NAME : "Fairchild, John Russell",
-       ACTIVE : "1965 - 1965",
-       FROM : "College - Palomar Coll. CA (J.C.); Brigham Young",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0252",
-       NAME : "Farbman, Philip M. (Phil)",
-       ACTIVE : "1948 - 1948",
-       FROM : "College - CCNY; Brooklyn College",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0253",
-       NAME : "Farley, Richard L. (Dick)",
-       ACTIVE : "1954 - 1958",
-       FROM : "College - Indiana",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0254",
-       NAME : "Farmar, Jordan",
-       ACTIVE : "ACTIVE",
-       FROM : "College - UCLA",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0255",
-       NAME : "Farmer, Desmon",
-       ACTIVE : "2006 - 2008",
-       FROM : "College - USC",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0256",
-       NAME : "Farmer, Don Michael (Mike)",
-       ACTIVE : "1958 - 1965",
-       FROM : "College - San Francisco",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0257",
-       NAME : "Farmer, Jim",
-       ACTIVE : "1987 - 1993",
-       FROM : "College - Alabama",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0258",
-       NAME : "Farmer, Tony",
-       ACTIVE : "1997 - 1999",
-       FROM : "College - Nebraska",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0259",
-       NAME : "Faught, Robert Edward (Bob)",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - Notre Dame",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0260",
-       NAME : "Favors, Derrick",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Georgia Tech",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0261",
-       NAME : "Fazekas, Nick",
-       ACTIVE : "2007 - 2007",
-       FROM : "College - Nevada-Reno",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0262",
-       NAME : "Fedor, Samuel David (Dave)",
-       ACTIVE : "1962 - 1962",
-       FROM : "College - Florida State",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0263",
-       NAME : "Feerick, Robert Joseph (Bob)",
-       ACTIVE : "1946 - 1949",
-       FROM : "College - Santa Clara",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0264",
-       NAME : "Feher, Raymond G. (Butch)",
-       ACTIVE : "1976 - 1976",
-       FROM : "College - Vanderbilt",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0265",
-       NAME : "Feick, Jamie",
-       ACTIVE : "1996 - 2000",
-       FROM : "College - Michigan State ''96",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0266",
-       NAME : "Feiereisel, Ronald E. (Ron)",
-       ACTIVE : "1955 - 1955",
-       FROM : "College - DePaul",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0267",
-       NAME : "Feigenbaum, George",
-       ACTIVE : "1949 - 1952",
-       FROM : "College - Long Island University; Kentucky",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_0268",
-       NAME : "Feitl, Dave",
-       ACTIVE : "1986 - 1991",
-       FROM : "College - Texas-El Paso",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0269",
-       NAME : "Felix, Noel",
-       ACTIVE : "2005 - 2005",
-       FROM : "College - Fresno State",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0270",
-       NAME : "Felix, Ray",
-       ACTIVE : "1953 - 1961",
-       FROM : "College - Long Island University",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0271",
-       NAME : "Felton, Raymond",
-       ACTIVE : "ACTIVE",
-       FROM : "College - North Carolina",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0272",
-       NAME : "Fendley, John Phillip (Jake)",
-       ACTIVE : "1951 - 1952",
-       FROM : "College - Northwestern",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0273",
-       NAME : "Fenley, William Warren (Bill)",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - Manhattan",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0274",
-       NAME : "Ferguson, Desmond",
-       ACTIVE : "2003 - 2003",
-       FROM : "College - Detroit",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0275",
-       NAME : "Fernandez, Rudy",
-       ACTIVE : "ACTIVE",
-       FROM : "From - Palma de Mallorca, Spain",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0276",
-       NAME : "Fernsten, Eric",
-       ACTIVE : "1975 - 1983",
-       FROM : "College - San Francisco",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0277",
-       NAME : "Ferrari, Albert R. (Al)",
-       ACTIVE : "1955 - 1962",
-       FROM : "College - Michigan State",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0278",
-       NAME : "Ferreira, Rolando",
-       ACTIVE : "1988 - 1988",
-       FROM : "College - Houston",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0279",
-       NAME : "Ferrell, Duane",
-       ACTIVE : "1988 - 1998",
-       FROM : "College - Georgia Tech",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0280",
-       NAME : "Ferrin, C. Arnold Jr. (Arnie)",
-       ACTIVE : "1948 - 1950",
-       FROM : "College - Utah",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0281",
-       NAME : "Ferry, Danny",
-       ACTIVE : "1990 - 2002",
-       FROM : "College - Duke ''89",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0282",
-       NAME : "Ferry, Robert Dean (Bob)",
-       ACTIVE : "1959 - 1968",
-       FROM : "College - St. Louis",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0283",
-       NAME : "Fesenko, Kyrylo",
-       ACTIVE : "ACTIVE",
-       FROM : "From - Dnepropetrovsk, Ukraine",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0284",
-       NAME : "Fields, Kenny",
-       ACTIVE : "1984 - 1987",
-       FROM : "College - UCLA",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0285",
-       NAME : "Fields, Landry",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Stanford",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0286",
-       NAME : "Filipek, Ronald Stanley (Ron)",
-       ACTIVE : "1967 - 1967",
-       FROM : "College - Tennessee Tech",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0287",
-       NAME : "Fillmore, Gregory Paul (Greg)",
-       ACTIVE : "1970 - 1971",
-       FROM : "College - Iowa Central CC; Cheyney",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0288",
-       NAME : "Finkel, Henry J. (Hank)",
-       ACTIVE : "1966 - 1974",
-       FROM : "College - St. Peter's; Dayton",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0289",
-       NAME : "Finley, Michael",
-       ACTIVE : "2007 - 2009",
-       FROM : "College - Wisconsin",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0290",
-       NAME : "Finn, Daniel Lawrence Jr. (Danny)",
-       ACTIVE : "1952 - 1954",
-       FROM : "College - St. John's (N.Y.)",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0291",
-       NAME : "Fish, Matt",
-       ACTIVE : "1994 - 1996",
-       FROM : "College - Wilmington",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0292",
-       NAME : "Fisher, Derek",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Arkansas-Little Rock",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0293",
-       NAME : "Fitch, Gerald",
-       ACTIVE : "2005 - 2005",
-       FROM : "College - Kentucky",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0294",
-       NAME : "Fitzgerald, Richard (Dick)",
-       ACTIVE : "1946 - 1947",
-       FROM : "College - Seton Hall",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0295",
-       NAME : "Fitzgerald, Robert (Bob)",
-       ACTIVE : "1946 - 1948",
-       FROM : "College - Fordham",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0296",
-       NAME : "Fizer, Marcus",
-       ACTIVE : "2000 - 2005",
-       FROM : "College - Iowa State",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0297",
-       NAME : "Fleishman, Jerome (Jerry)",
-       ACTIVE : "1946 - 1952",
-       FROM : "College - N.Y.U.; Long Island University",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0298",
-       NAME : "Fleming, Albert Jr. (Al)",
-       ACTIVE : "1977 - 1977",
-       FROM : "College - Arizona",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0299",
-       NAME : "Fleming, Edward R. (Ed)",
-       ACTIVE : "1955 - 1959",
-       FROM : "College - Niagara",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0300",
-       NAME : "Gabor, William A. (Billy, The Human Projectile)",
-       ACTIVE : "1949 - 1954",
-       FROM : "College - Syracuse",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0301",
-       NAME : "Gadzuric, Dan",
-       ACTIVE : "ACTIVE",
-       FROM : "College - UCLA",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0302",
-       NAME : "Gai, Deng",
-       ACTIVE : "2005 - 2005",
-       FROM : "College - Fairfield",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0303",
-       NAME : "Gainer, Elmer R.",
-       ACTIVE : "1947 - 1949",
-       FROM : "College - DePaul",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0304",
-       NAME : "Gaines, Corey",
-       ACTIVE : "1988 - 1994",
-       FROM : "College - UCLA; Loyola Marymount",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0305",
-       NAME : "Gaines, Reece",
-       ACTIVE : "2003 - 2005",
-       FROM : "College - Louisville",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0306",
-       NAME : "Gaines, Sundiata",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Georgia",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0307",
-       NAME : "Gale, Mike",
-       ACTIVE : "1976 - 1981",
-       FROM : "College - Elizabeth City State",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_0308",
-       NAME : "Gallagher, Chad",
-       ACTIVE : "1993 - 1993",
-       FROM : "College - Creighton",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0309",
-       NAME : "Gallatin, Harry",
-       ACTIVE : "1948 - 1957",
-       FROM : "College - Northeast Missouri State",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0310",
-       NAME : "Gallinari, Danilo",
-       ACTIVE : "ACTIVE",
-       FROM : "From - Milan, Italy",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0311",
-       NAME : "Gambee, Dave",
-       ACTIVE : "1958 - 1969",
-       FROM : "College - Oregon State",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0312",
-       NAME : "Gamble, Kevin",
-       ACTIVE : "1987 - 1996",
-       FROM : "College - Lincoln Trail IL (J.C.); Iowa",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0313",
-       NAME : "Gantt, Robert M. Jr. (Bob)",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - Duke",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0314",
-       NAME : "Garbajosa, Jorge",
-       ACTIVE : "2007 - 2007",
-       FROM : "From - Spain",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0315",
-       NAME : "Garces, Ruben",
-       ACTIVE : "2000 - 2000",
-       FROM : "College - Providence",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0316",
-       NAME : "Garcia, Alex",
-       ACTIVE : "2003 - 2004",
-       FROM : "From - Brazil",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0317",
-       NAME : "Garcia, Francisco",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Louisville",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0318",
-       NAME : "Gardner, Earl Baker (Red)",
-       ACTIVE : "1948 - 1948",
-       FROM : "College - Wabash; DePauw",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0319",
-       NAME : "Gardner, Thomas",
-       ACTIVE : "2007 - 2008",
-       FROM : "College - Missouri",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0320",
-       NAME : "Gardner, Vern B.",
-       ACTIVE : "1949 - 1951",
-       FROM : "College - Wyoming; Utah",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0321",
-       NAME : "Garfinkel, Jack (Dutch)",
-       ACTIVE : "1946 - 1948",
-       FROM : "College - St. John's (N.Y.)",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0322",
-       NAME : "Garland, Gary J.",
-       ACTIVE : "1979 - 1979",
-       FROM : "College - DePaul",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0323",
-       NAME : "Garland, Winston",
-       ACTIVE : "1987 - 1994",
-       FROM : "College - Southeastern CC IA; Southwest Missouri State",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0324",
-       NAME : "Garmaker, Richard Eugene (Dick)",
-       ACTIVE : "1955 - 1960",
-       FROM : "College - Hibbing CC MN; Minnesota",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0325",
-       NAME : "Garner, Chris",
-       ACTIVE : "1997 - 2000",
-       FROM : "College - Memphis",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0326",
-       NAME : "Garnett, Bill",
-       ACTIVE : "1982 - 1985",
-       FROM : "College - Wyoming",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0327",
-       NAME : "Garnett, Kevin",
-       ACTIVE : "ACTIVE",
-       FROM : "High School - Farragut Academy HS (IL)",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0328",
-       NAME : "Garnett, Marlon",
-       ACTIVE : "1998 - 1998",
-       FROM : "College - Santa Clara",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0329",
-       NAME : "Garrett, Calvin",
-       ACTIVE : "1980 - 1983",
-       FROM : "College - Austin Peay State; Oral Roberts",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0330",
-       NAME : "Garrett, Dean",
-       ACTIVE : "1996 - 2001",
-       FROM : "College - Indiana",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0331",
-       NAME : "Garrett, Eldo (Dick)",
-       ACTIVE : "1969 - 1973",
-       FROM : "College - Southern Illinois",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0332",
-       NAME : "Garrett, Rowland G.",
-       ACTIVE : "1972 - 1976",
-       FROM : "College - Florida State",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0333",
-       NAME : "Garrick, Tom",
-       ACTIVE : "1988 - 1991",
-       FROM : "College - Rhode Island",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0334",
-       NAME : "Garris, John",
-       ACTIVE : "1983 - 1983",
-       FROM : "College - Michigan; Boston College",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0335",
-       NAME : "Garris, Kiwane",
-       ACTIVE : "1997 - 1999",
-       FROM : "College - Illinois",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0336",
-       NAME : "Garrity, Pat",
-       ACTIVE : "2007 - 2007",
-       FROM : "College - Notre Dame",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0337",
-       NAME : "Garvin, James D. (Jim)",
-       ACTIVE : "1973 - 1973",
-       FROM : "College - Boston U.",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0338",
-       NAME : "Gasol, Marc",
-       ACTIVE : "ACTIVE",
-       FROM : "From - Barcelona, Spain",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0339",
-       NAME : "Gasol, Pau",
-       ACTIVE : "ACTIVE",
-       FROM : "From - Barcelona, Spain",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0340",
-       NAME : "Gates, Ben Frank (Frank, Needle)",
-       ACTIVE : "1949 - 1949",
-       FROM : "College - Sam Houston State",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0341",
-       NAME : "Gatling, Chris",
-       ACTIVE : "1991 - 2001",
-       FROM : "College - Pittsburgh; Old Dominion",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0342",
-       NAME : "Gattison, Kenny",
-       ACTIVE : "1986 - 1995",
-       FROM : "College - Old Dominion",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0343",
-       NAME : "Gay, Rudy",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Connecticut",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0344",
-       NAME : "Gayda, Edward C. (Ed)",
-       ACTIVE : "1950 - 1950",
-       FROM : "College - Washington State",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0345",
-       NAME : "Gaze, Andrew",
-       ACTIVE : "1993 - 1998",
-       FROM : "College - Seton Hall",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0346",
-       NAME : "Geary, Reggie",
-       ACTIVE : "1996 - 1997",
-       FROM : "College - Arizona",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0347",
-       NAME : "Gee, Alonzo",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Alabama",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0348",
-       NAME : "Geiger, Matt",
-       ACTIVE : "1992 - 2001",
-       FROM : "College - Auburn; Georgia Tech",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0349",
-       NAME : "Gelabale, Mickael",
-       ACTIVE : "2007 - 2007",
-       FROM : "From - France",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0350",
-       NAME : "Hackett, Rudolph (Rudy)",
-       ACTIVE : "1976 - 1976",
-       FROM : "College - Syracuse",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0351",
-       NAME : "Haddadi, Hamed",
-       ACTIVE : "ACTIVE",
-       FROM : "From - Ahvaz, Iran",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0352",
-       NAME : "Haffner, Scott",
-       ACTIVE : "1989 - 1990",
-       FROM : "College - Illinois; Evansville",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0353",
-       NAME : "Hagan, Cliff",
-       ACTIVE : "1956 - 1965",
-       FROM : "College - Kentucky",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0354",
-       NAME : "Hagan, Glenn Kassabin",
-       ACTIVE : "1981 - 1981",
-       FROM : "College - St. Bonaventure",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0355",
-       NAME : "Hahn, Robert B. (Bob)",
-       ACTIVE : "1949 - 1949",
-       FROM : "College - North Carolina State",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0356",
-       NAME : "Hairston, Alan Leroy (Al)",
-       ACTIVE : "1968 - 1969",
-       FROM : "College - St. Clair Co. CC MI; Bowling Green State",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0357",
-       NAME : "Hairston, Happy",
-       ACTIVE : "1964 - 1974",
-       FROM : "College - N.Y.U.",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_0358",
-       NAME : "Hairston, Lindsay (Spider)",
-       ACTIVE : "1975 - 1975",
-       FROM : "College - Michigan State",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0359",
-       NAME : "Hairston, Malik",
-       ACTIVE : "2008 - 2009",
-       FROM : "College - Oregon",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0360",
-       NAME : "Haislip, Marcus",
-       ACTIVE : "2002 - 2009",
-       FROM : "College - Tennessee",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0361",
-       NAME : "Halbert, Charles P. (Chuck)",
-       ACTIVE : "1946 - 1950",
-       FROM : "College - West Texas A&M",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0362",
-       NAME : "Halbrook, Harvey Wade (Swede)",
-       ACTIVE : "1960 - 1961",
-       FROM : "College - Oregon State",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0363",
-       NAME : "Hale, William Bruce (Bruce)",
-       ACTIVE : "1948 - 1950",
-       FROM : "College - Santa Clara",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0364",
-       NAME : "Haley, Jack",
-       ACTIVE : "1988 - 1997",
-       FROM : "College - Golden West Coll. CA (J.C.); UCLA",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0365",
-       NAME : "Halimon, Shaler Jr.",
-       ACTIVE : "1968 - 1971",
-       FROM : "College - Imperial Valley Coll. CA (J.C.); Utah State",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0366",
-       NAME : "Hall, Mike",
-       ACTIVE : "2006 - 2006",
-       FROM : "College - George Washington",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0367",
-       NAME : "Halliburton, Jeffrey (Jeff)",
-       ACTIVE : "1971 - 1972",
-       FROM : "College - San Jacinto Coll. TX (J.C.); Drake",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0368",
-       NAME : "Ham, Darvin",
-       ACTIVE : "1996 - 2004",
-       FROM : "College - Texas Tech",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0369",
-       NAME : "Hamer, Steve",
-       ACTIVE : "1996 - 1996",
-       FROM : "College - Tennessee",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0370",
-       NAME : "Hamilton, Dale B.",
-       ACTIVE : "1949 - 1949",
-       FROM : "College - Franklin (Ind.)",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0371",
-       NAME : "Hamilton, Dennis Eugene",
-       ACTIVE : "1967 - 1968",
-       FROM : "College - Arizona State",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0372",
-       NAME : "Hamilton, Ralph Albert (Ham)",
-       ACTIVE : "1948 - 1948",
-       FROM : "College - Indiana",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0373",
-       NAME : "Hamilton, Richard",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Connecticut",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0374",
-       NAME : "Hamilton, Roy Lee",
-       ACTIVE : "1979 - 1980",
-       FROM : "College - UCLA",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0375",
-       NAME : "Hamilton, Steve Absher",
-       ACTIVE : "1958 - 1959",
-       FROM : "College - Purdue; Morehead State",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_0376",
-       NAME : "Hamilton, Tang",
-       ACTIVE : "2001 - 2001",
-       FROM : "College - Mississippi State ''01",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0377",
-       NAME : "Hamilton, Thomas",
-       ACTIVE : "1995 - 1999",
-       FROM : "College - No College",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0378",
-       NAME : "Hamilton, Zendon",
-       ACTIVE : "2000 - 2005",
-       FROM : "College - St. John's",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0379",
-       NAME : "Hammink, Geert",
-       ACTIVE : "1993 - 1995",
-       FROM : "College - Louisiana State",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0380",
-       NAME : "Hammonds, Tom",
-       ACTIVE : "1989 - 2000",
-       FROM : "College - Georgia Tech",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0381",
-       NAME : "Hancock, Darrin",
-       ACTIVE : "1994 - 1996",
-       FROM : "College - Garden City CC KS; Kansas",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0382",
-       NAME : "Handlogten, Ben",
-       ACTIVE : "2003 - 2004",
-       FROM : "College - Western Michigan",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0383",
-       NAME : "Hankins, Cecil O.",
-       ACTIVE : "1946 - 1947",
-       FROM : "College - Oklahoma State",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0384",
-       NAME : "Hankinson, Phil",
-       ACTIVE : "1973 - 1974",
-       FROM : "College - Pennsylvania",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0385",
-       NAME : "Hannum, Alexander Murray (Alex)",
-       ACTIVE : "1949 - 1956",
-       FROM : "College - USC",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0386",
-       NAME : "Hanrahan, Donald (Don)",
-       ACTIVE : "1952 - 1952",
-       FROM : "College - Loyola (Chicago)",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0387",
-       NAME : "Hans, Rollen F. (Rolly)",
-       ACTIVE : "1953 - 1954",
-       FROM : "College - Los Angeles City Coll. CA (J.C.); Long Island University",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0388",
-       NAME : "Hansbrough, Tyler",
-       ACTIVE : "ACTIVE",
-       FROM : "College - North Carolina",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0389",
-       NAME : "Hansen, Bob",
-       ACTIVE : "1983 - 1991",
-       FROM : "College - Iowa",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0390",
-       NAME : "Hansen, Glenn R.",
-       ACTIVE : "1975 - 1977",
-       FROM : "College - Utah State; Louisiana State",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0391",
-       NAME : "Hansen, Lars",
-       ACTIVE : "1978 - 1978",
-       FROM : "College - Washington",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0392",
-       NAME : "Hansen, Travis",
-       ACTIVE : "2003 - 2003",
-       FROM : "College - Brigham Young",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0393",
-       NAME : "Hanson, Reggie",
-       ACTIVE : "1997 - 1997",
-       FROM : "College - Kentucky",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0394",
-       NAME : "Hanzlik, Bill",
-       ACTIVE : "1980 - 1989",
-       FROM : "College - Notre Dame",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0395",
-       NAME : "Harangody, Luke",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Notre Dame",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0396",
-       NAME : "Hardaway, Anfernee",
-       ACTIVE : "2007 - 2007",
-       FROM : "College - Memphis",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_0397",
-       NAME : "Hardaway, Tim",
-       ACTIVE : "1989 - 2002",
-       FROM : "College - Texas-El Paso ''89",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0398",
-       NAME : "Harden, James",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Arizona State",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0399",
-       NAME : "Harding, Reginald (Reggie)",
-       ACTIVE : "1963 - 1967",
-       FROM : "College - No College",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0400",
-       NAME : "Iavaroni, Marc",
-       ACTIVE : "1982 - 1988",
-       FROM : "College - Virginia",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0401",
-       NAME : "Ibaka, Serge",
-       ACTIVE : "ACTIVE",
-       FROM : "From - Brazzaville, Republic of Congo",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0402",
-       NAME : "Iguodala, Andre",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Arizona",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0403",
-       NAME : "Ilgauskas, Zydrunas",
-       ACTIVE : "ACTIVE",
-       FROM : "From - Kaunas, Lithuania",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0404",
-       NAME : "Ilic, Mile",
-       ACTIVE : "2006 - 2006",
-       FROM : "From - Serbia & Montenegro",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0405",
-       NAME : "Ilunga-Mbenga, Didier",
-       ACTIVE : "ACTIVE",
-       FROM : "From - Kinshasa, DRC",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0406",
-       NAME : "Ilyasova, Ersan",
-       ACTIVE : "ACTIVE",
-       FROM : "From - Eskisehir, Turkey",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0407",
-       NAME : "Imhoff, Darrall Tucker (Big D)",
-       ACTIVE : "1960 - 1971",
-       FROM : "College - California",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0408",
-       NAME : "Ingelsby, Tom",
-       ACTIVE : "1973 - 1973",
-       FROM : "College - Villanova",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0409",
-       NAME : "Ingram, Joel McCoy (McCoy)",
-       ACTIVE : "1957 - 1957",
-       FROM : "College - Jackson State",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0410",
-       NAME : "Irvin, Byron",
-       ACTIVE : "1989 - 1992",
-       FROM : "College - Arkansas; Missouri",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0411",
-       NAME : "Issel, Dan",
-       ACTIVE : "1976 - 1984",
-       FROM : "College - Kentucky",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0412",
-       NAME : "Iuzzolino, Mike",
-       ACTIVE : "1991 - 1992",
-       FROM : "College - Penn State; St. Francis (PA)",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0413",
-       NAME : "Iverson, Allen",
-       ACTIVE : "2007 - 2009",
-       FROM : "College - Georgetown",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0414",
-       NAME : "Ivey, Royal",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Texas",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0415",
-       NAME : "Jack, Jarrett",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Georgia Tech",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0416",
-       NAME : "Jackson, Alvin (Al)",
-       ACTIVE : "1967 - 1967",
-       FROM : "College - Wilberforce",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0417",
-       NAME : "Jackson, Anthony Eugene (Tony)",
-       ACTIVE : "1980 - 1980",
-       FROM : "College - Florida State",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0418",
-       NAME : "Jackson, Bobby",
-       ACTIVE : "2007 - 2008",
-       FROM : "College - Minnesota",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0419",
-       NAME : "Jackson, Cedric",
-       ACTIVE : "2009 - 2009",
-       FROM : "College - Cleveland State",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0420",
-       NAME : "Jackson, Darnell",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Kansas",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0421",
-       NAME : "Jackson, Gregory (Greg)",
-       ACTIVE : "1974 - 1974",
-       FROM : "College - Guilford",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0422",
-       NAME : "Jackson, Jaren",
-       ACTIVE : "1989 - 2001",
-       FROM : "College - Georgetown",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0423",
-       NAME : "Jackson, Jermaine",
-       ACTIVE : "1999 - 2005",
-       FROM : "College - Detroit",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0424",
-       NAME : "Jackson, Jim",
-       ACTIVE : "1992 - 2005",
-       FROM : "College - Ohio State",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0425",
-       NAME : "Jackson, Lucious B. (Luke)",
-       ACTIVE : "1964 - 1971",
-       FROM : "College - Quincy; Texas Southern; Texas-Pan American",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0426",
-       NAME : "Jackson, Luke",
-       ACTIVE : "2007 - 2007",
-       FROM : "College - Oregon",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0427",
-       NAME : "Jackson, Marc",
-       ACTIVE : "2000 - 2006",
-       FROM : "College - Temple",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0428",
-       NAME : "Jackson, Mark",
-       ACTIVE : "1987 - 2003",
-       FROM : "College - St. John''s (N.Y.) '87",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0429",
-       NAME : "Jackson, Michael",
-       ACTIVE : "1987 - 1989",
-       FROM : "College - Georgetown",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0430",
-       NAME : "Jackson, Myron",
-       ACTIVE : "1986 - 1986",
-       FROM : "College - Arkansas-Little Rock",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0431",
-       NAME : "Jackson, Philip D. (Phil, Action)",
-       ACTIVE : "1967 - 1979",
-       FROM : "College - North Dakota",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0432",
-       NAME : "Jackson, Ralph A. III",
-       ACTIVE : "1984 - 1984",
-       FROM : "College - UCLA",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0433",
-       NAME : "Jackson, Randell",
-       ACTIVE : "1998 - 1999",
-       FROM : "College - Florida State",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0434",
-       NAME : "Jackson, Stanley",
-       ACTIVE : "1993 - 1993",
-       FROM : "College - Alabama-Birmingham",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0435",
-       NAME : "Jackson, Stephen",
-       ACTIVE : "ACTIVE",
-       FROM : "High School - Oak Hill Academy (Mouth of Wilson, VA)",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0436",
-       NAME : "Jackson, Tracy",
-       ACTIVE : "1981 - 1983",
-       FROM : "College - Notre Dame",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0437",
-       NAME : "Jackson, Wardell",
-       ACTIVE : "1974 - 1974",
-       FROM : "College - Ohio State",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0438",
-       NAME : "Jacobs, Winfred O. (Fred)",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - Denver",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0439",
-       NAME : "Jacobsen, Casey",
-       ACTIVE : "2007 - 2007",
-       FROM : "College - Stanford",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0440",
-       NAME : "Jacobson, Sam",
-       ACTIVE : "1998 - 2000",
-       FROM : "College - Minnesota",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0441",
-       NAME : "Jamerson, Dave",
-       ACTIVE : "1990 - 1993",
-       FROM : "College - Ohio U.",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0442",
-       NAME : "James, Aaron (A.J.)",
-       ACTIVE : "1974 - 1978",
-       FROM : "College - Grambling State",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0443",
-       NAME : "James, Damion",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Texas",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0444",
-       NAME : "James, Harold Gene (Gene, Goose)",
-       ACTIVE : "1948 - 1950",
-       FROM : "College - Marshall",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0445",
-       NAME : "James, Henry",
-       ACTIVE : "1990 - 1997",
-       FROM : "College - South Plains Coll. TX (J.C.); St. Mary's (Tex.)",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0446",
-       NAME : "James, Jerome",
-       ACTIVE : "2007 - 2008",
-       FROM : "College - Florida A&M",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0447",
-       NAME : "James, LeBron",
-       ACTIVE : "ACTIVE",
-       FROM : "High School - St. Vincent-St. Mary HS (OH)",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0448",
-       NAME : "James, Mike",
-       ACTIVE : "2007 - 2009",
-       FROM : "College - Duquesne",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_0449",
-       NAME : "James, Tim",
-       ACTIVE : "1999 - 2001",
-       FROM : "College - Miami (Fla.) ''99",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0450",
-       NAME : "Jamison, Antawn",
-       ACTIVE : "ACTIVE",
-       FROM : "College - North Carolina",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0451",
-       NAME : "Jamison, Harold",
-       ACTIVE : "1999 - 2001",
-       FROM : "College - Clemson ''99",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0452",
-       NAME : "Janisch, John Albert",
-       ACTIVE : "1946 - 1947",
-       FROM : "College - Valparaiso",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0453",
-       NAME : "Janotta, Howard (Howie)",
-       ACTIVE : "1949 - 1949",
-       FROM : "College - Seton Hall",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0454",
-       NAME : "Jaric, Marko",
-       ACTIVE : "2007 - 2008",
-       FROM : "From - Belgrade, Serbia",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0455",
-       NAME : "Jaros, Anthony Joseph (Tony)",
-       ACTIVE : "1946 - 1950",
-       FROM : "College - Minnesota",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0456",
-       NAME : "Jasikevicius, Sarunas",
-       ACTIVE : "2005 - 2006",
-       FROM : "College - Maryland",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0457",
-       NAME : "Jawai, Nathan",
-       ACTIVE : "2008 - 2009",
-       FROM : "From - Australia",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0458",
-       NAME : "Jeannette, Harry Edward (Buddy)",
-       ACTIVE : "1947 - 1949",
-       FROM : "College - Washington & Jefferson",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0459",
-       NAME : "Jeelani, Abdul Qadir (formerly Gary Cole)",
-       ACTIVE : "1979 - 1980",
-       FROM : "College - Wis.-Parkside",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0460",
-       NAME : "Jefferies, Chris",
-       ACTIVE : "2002 - 2003",
-       FROM : "College - Fresno State ''03",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0461",
-       NAME : "Jeffers, Othyus",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Robert Morris (Ill.)",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0462",
-       NAME : "Jefferson, Al",
-       ACTIVE : "ACTIVE",
-       FROM : "High School - Prentiss HS (MS)",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0463",
-       NAME : "Jefferson, Dontell",
-       ACTIVE : "2008 - 2008",
-       FROM : "College - Arkansas",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0464",
-       NAME : "Jefferson, Richard",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Arizona",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0465",
-       NAME : "Kachan, Edwin John (Whitey)",
-       ACTIVE : "1948 - 1948",
-       FROM : "College - DePaul",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0466",
-       NAME : "Kaftan, George A. (The Golden Greek)",
-       ACTIVE : "1948 - 1952",
-       FROM : "College - Holy Cross",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0467",
-       NAME : "Kalafat, Edward L. (Ed)",
-       ACTIVE : "1954 - 1956",
-       FROM : "College - Minnesota",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0468",
-       NAME : "Kaman, Chris",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Central Michigan",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_0469",
-       NAME : "Kaplowitz, Ralph (Kappy)",
-       ACTIVE : "1946 - 1947",
-       FROM : "College - N.Y.U.",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0470",
-       NAME : "Kapono, Jason",
-       ACTIVE : "ACTIVE",
-       FROM : "College - UCLA",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0471",
-       NAME : "Kappen, Anthony George (Tony)",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - No College",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0472",
-       NAME : "Karl, Coby",
-       ACTIVE : "2007 - 2009",
-       FROM : "College - Boise State",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0473",
-       NAME : "Karl, George Matthew",
-       ACTIVE : "1976 - 1977",
-       FROM : "College - North Carolina",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0474",
-       NAME : "Kasid, Edward (Ed)",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - No College",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0475",
-       NAME : "Kasun, Mario",
-       ACTIVE : "2004 - 2005",
-       FROM : "From - Croatia",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0476",
-       NAME : "Katkaveck, Leo Frank",
-       ACTIVE : "1948 - 1949",
-       FROM : "College - North Carolina State",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0477",
-       NAME : "Kauffman, Robert (Bob, Horse)",
-       ACTIVE : "1968 - 1974",
-       FROM : "College - Guilford",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0478",
-       NAME : "Kautz, Wilbert (Wibs)",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - Loyola (Chicago)",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0479",
-       NAME : "Kea, Clarence Leroy",
-       ACTIVE : "1980 - 1981",
-       FROM : "College - Lamar",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0480",
-       NAME : "Kearns, Michael Joseph",
-       ACTIVE : "1954 - 1954",
-       FROM : "College - Princeton",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_0481",
-       NAME : "Kearns, Thomas Francis Jr. (Tommy)",
-       ACTIVE : "1958 - 1958",
-       FROM : "College - North Carolina",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0482",
-       NAME : "Keefe, Adam",
-       ACTIVE : "1992 - 2000",
-       FROM : "College - Stanford",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0483",
-       NAME : "Keeling, Harold A.",
-       ACTIVE : "1985 - 1985",
-       FROM : "College - Santa Clara",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0484",
-       NAME : "Keller, Kenneth W. (Ken)",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - Vermont; St. John's (N.Y.)",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0485",
-       NAME : "Kelley, Rich",
-       ACTIVE : "1975 - 1985",
-       FROM : "College - Stanford",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0486",
-       NAME : "Kellogg, Clark",
-       ACTIVE : "1982 - 1986",
-       FROM : "College - Ohio State",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0487",
-       NAME : "Kelly, Gerard Allan (Jerry)",
-       ACTIVE : "1946 - 1947",
-       FROM : "College - Marshall",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0488",
-       NAME : "Kelly, Thomas Edward (Tom)",
-       ACTIVE : "1948 - 1948",
-       FROM : "College - N.Y.U.",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0489",
-       NAME : "Kelser, Greg",
-       ACTIVE : "1979 - 1984",
-       FROM : "College - Michigan State",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0490",
-       NAME : "Kelso, Ben",
-       ACTIVE : "1973 - 1973",
-       FROM : "College - Central Michigan",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0491",
-       NAME : "Kemp, Shawn",
-       ACTIVE : "1989 - 2002",
-       FROM : "High School - Concord HS (IN) ''87",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0492",
-       NAME : "Kempton, Tim",
-       ACTIVE : "1986 - 1997",
-       FROM : "College - Notre Dame",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0493",
-       NAME : "Kendrick, Frank Edward",
-       ACTIVE : "1974 - 1974",
-       FROM : "College - Purdue",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0494",
-       NAME : "Kennedy, Eugene (Goo)",
-       ACTIVE : "1976 - 1976",
-       FROM : "College - Texas Christian",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0495",
-       NAME : "Kennedy, Joseph A. (Joe)",
-       ACTIVE : "1968 - 1969",
-       FROM : "College - Duke",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0496",
-       NAME : "Kennedy, William F. (Pickles)",
-       ACTIVE : "1960 - 1960",
-       FROM : "College - Temple",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0497",
-       NAME : "Kenon, Larry",
-       ACTIVE : "1976 - 1982",
-       FROM : "College - Amarillo Coll. TX (J.C.); Memphis",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0498",
-       NAME : "Kenville, William McGill (Billy, The Kid)",
-       ACTIVE : "1953 - 1959",
-       FROM : "College - St. Bonaventure",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0499",
-       NAME : "Kerner, Jonathan",
-       ACTIVE : "1998 - 1998",
-       FROM : "College - East Carolina ''97",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0500",
-       NAME : "Kerr, Johnny",
-       ACTIVE : "1954 - 1965",
-       FROM : "College - Illinois",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0501",
-       NAME : "Kerr, Steve",
-       ACTIVE : "1988 - 2002",
-       FROM : "College - Arizona ''88",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0502",
-       NAME : "Kerris, John E. (Jack)",
-       ACTIVE : "1949 - 1952",
-       FROM : "College - Loyola (Chicago)",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0503",
-       NAME : "Kersey, Jerome",
-       ACTIVE : "1984 - 2000",
-       FROM : "College - Longwood",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0504",
-       NAME : "Kessler, Alec",
-       ACTIVE : "1990 - 1993",
-       FROM : "College - Georgia",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0505",
-       NAME : "Ketner, Lari",
-       ACTIVE : "1999 - 2000",
-       FROM : "College - Massachusetts",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0506",
-       NAME : "Keys, Randolph",
-       ACTIVE : "1988 - 1995",
-       FROM : "College - Southern Mississippi",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0507",
-       NAME : "Khryapa, Viktor",
-       ACTIVE : "2007 - 2007",
-       FROM : "From - Russia",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0508",
-       NAME : "Kidd, Jason",
-       ACTIVE : "ACTIVE",
-       FROM : "College - California",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0509",
-       NAME : "Kidd, Warren",
-       ACTIVE : "1993 - 1993",
-       FROM : "College - Middle Tennessee State",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0510",
-       NAME : "Kiffin, Irvin A. Jr.",
-       ACTIVE : "1979 - 1979",
-       FROM : "College - Virginia Union; Oklahoma Baptist",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0511",
-       NAME : "Kiley, John F. (Jack)",
-       ACTIVE : "1951 - 1952",
-       FROM : "College - Syracuse",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0512",
-       NAME : "Killum, Earnest (Ernie)",
-       ACTIVE : "1970 - 1970",
-       FROM : "College - Stetson",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0513",
-       NAME : "Kilpatrick, Carl",
-       ACTIVE : "1979 - 1979",
-       FROM : "College - Kilgore Coll. TX (J.C.); Louisiana-Monroe",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0514",
-       NAME : "Kimball, Toby",
-       ACTIVE : "1966 - 1974",
-       FROM : "College - Connecticut",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0515",
-       NAME : "Lacey, Sam",
-       ACTIVE : "1970 - 1982",
-       FROM : "College - New Mexico State",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0516",
-       NAME : "LaCour, Fred",
-       ACTIVE : "1960 - 1962",
-       FROM : "College - San Francisco",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0517",
-       NAME : "Laettner, Christian",
-       ACTIVE : "1992 - 2004",
-       FROM : "College - Duke",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0518",
-       NAME : "Lafayette, Oliver",
-       ACTIVE : "2009 - 2009",
-       FROM : "College - Houston",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0519",
-       NAME : "LaFrentz, Raef",
-       ACTIVE : "2007 - 2007",
-       FROM : "College - Kansas",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0520",
-       NAME : "LaGarde, Thomas Joseph (Tom)",
-       ACTIVE : "1977 - 1984",
-       FROM : "College - North Carolina",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0521",
-       NAME : "Laimbeer, Bill",
-       ACTIVE : "1980 - 1993",
-       FROM : "College - Owens CC OH; Notre Dame",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0522",
-       NAME : "Lalich, Peter T. (Pete)",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - Ohio U.",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0523",
-       NAME : "Lamar, Dwight (Bo)",
-       ACTIVE : "1976 - 1976",
-       FROM : "College - Louisiana-Lafayette",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0524",
-       NAME : "Lambert, John Edward",
-       ACTIVE : "1975 - 1981",
-       FROM : "College - USC",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0525",
-       NAME : "Lamp, Jeff",
-       ACTIVE : "1981 - 1988",
-       FROM : "College - Virginia",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0526",
-       NAME : "Lampe, Maciej",
-       ACTIVE : "2003 - 2005",
-       FROM : "From - Poland",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0527",
-       NAME : "Lampley, Jimmy",
-       ACTIVE : "1986 - 1986",
-       FROM : "College - Vanderbilt; Arkansas-Little Rock",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0528",
-       NAME : "Lampley, Sean",
-       ACTIVE : "2002 - 2003",
-       FROM : "College - California",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_0529",
-       NAME : "Landry, Carl",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Purdue",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0530",
-       NAME : "Landry, Marcus",
-       ACTIVE : "2009 - 2009",
-       FROM : "College - Wisconsin",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0531",
-       NAME : "Landsberger, Mark",
-       ACTIVE : "1977 - 1983",
-       FROM : "College - Allan Hancock Coll. CA (J.C.); Minnesota; Arizona State",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0532",
-       NAME : "Lane, Jerome",
-       ACTIVE : "1988 - 1992",
-       FROM : "College - Pittsburgh",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0533",
-       NAME : "Lang, Andrew",
-       ACTIVE : "1988 - 1999",
-       FROM : "College - Arkansas",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0534",
-       NAME : "Lang, Antonio",
-       ACTIVE : "1994 - 1999",
-       FROM : "College - Duke",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0535",
-       NAME : "Lang, James",
-       ACTIVE : "2006 - 2006",
-       FROM : "High School - Central Park Christian HS (AL)",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0536",
-       NAME : "Langdon, Trajan",
-       ACTIVE : "1999 - 2001",
-       FROM : "College - Duke",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0537",
-       NAME : "Langford, Keith",
-       ACTIVE : "2007 - 2007",
-       FROM : "College - Kansas",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0538",
-       NAME : "Langhi, Dan",
-       ACTIVE : "2000 - 2003",
-       FROM : "College - Vanderbilt ''00",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0539",
-       NAME : "Lanier, Bob",
-       ACTIVE : "1970 - 1983",
-       FROM : "College - St. Bonaventure",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0540",
-       NAME : "Lantz, Stuart Burrell (Stu)",
-       ACTIVE : "1968 - 1975",
-       FROM : "College - Nebraska",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0541",
-       NAME : "Larese, York Bruno",
-       ACTIVE : "1961 - 1961",
-       FROM : "College - North Carolina",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0542",
-       NAME : "LaRue, Rusty",
-       ACTIVE : "1997 - 2003",
-       FROM : "College - Wake Forest",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_0543",
-       NAME : "LaRusso, Rudolph A. (Rudy)",
-       ACTIVE : "1959 - 1968",
-       FROM : "College - Dartmouth",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0544",
-       NAME : "Laskowski, John",
-       ACTIVE : "1975 - 1976",
-       FROM : "College - Indiana",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0545",
-       NAME : "Lasme, Stephane",
-       ACTIVE : "2007 - 2007",
-       FROM : "College - Massachusetts",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0546",
-       NAME : "Lattin, David (Dave, Big Daddy)",
-       ACTIVE : "1967 - 1968",
-       FROM : "College - Texas-El Paso",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0547",
-       NAME : "Lauderdale, Priest",
-       ACTIVE : "1996 - 1997",
-       FROM : "College - Central State (Ohio)",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0548",
-       NAME : "Laurel, Richard",
-       ACTIVE : "1977 - 1977",
-       FROM : "College - Hofstra",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0549",
-       NAME : "Lautenbach, Walter Henry (Walt)",
-       ACTIVE : "1949 - 1949",
-       FROM : "College - Wisconsin",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0550",
-       NAME : "Lavelli, Anthony (Tony)",
-       ACTIVE : "1949 - 1950",
-       FROM : "College - Yale",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0551",
-       NAME : "Lavoy, Robert William (Bob)",
-       ACTIVE : "1950 - 1953",
-       FROM : "College - Illinois; Western Kentucky",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0552",
-       NAME : "Law, Acie",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Texas A&M",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0553",
-       NAME : "Lawal, Gani",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Georgia Tech",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0554",
-       NAME : "Lawrence, Edmund (Ed)",
-       ACTIVE : "1980 - 1980",
-       FROM : "College - McNeese State",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0555",
-       NAME : "Lawson, Jason",
-       ACTIVE : "1997 - 1997",
-       FROM : "College - Villanova ''97",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0556",
-       NAME : "Lawson, Ty",
-       ACTIVE : "ACTIVE",
-       FROM : "College - North Carolina",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0557",
-       NAME : "Layton, Dennis (Mo)",
-       ACTIVE : "1971 - 1977",
-       FROM : "College - Phoenix Coll. AZ (J.C.); USC",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0558",
-       NAME : "Leaks, Emanuel (Manny)",
-       ACTIVE : "1972 - 1973",
-       FROM : "College - Niagara",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0559",
-       NAME : "Lear, Harold C. Jr. (Hal, King)",
-       ACTIVE : "1956 - 1956",
-       FROM : "College - Temple",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0560",
-       NAME : "Leavell, Allen",
-       ACTIVE : "1979 - 1988",
-       FROM : "College - Oklahoma City",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0561",
-       NAME : "Lebo, Jeff",
-       ACTIVE : "1989 - 1989",
-       FROM : "College - North Carolina",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0562",
-       NAME : "Leckner, Eric",
-       ACTIVE : "1988 - 1996",
-       FROM : "College - Wyoming",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0563",
-       NAME : "Lee, Alfred (Butch)",
-       ACTIVE : "1978 - 1979",
-       FROM : "College - Marquette",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0564",
-       NAME : "Lee, Clyde",
-       ACTIVE : "1966 - 1975",
-       FROM : "College - Vanderbilt",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0565",
-       NAME : "Macaluso, Michael Emelius (Mike)",
-       ACTIVE : "1973 - 1973",
-       FROM : "College - Canisius",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0566",
-       NAME : "Macauley, Ed",
-       ACTIVE : "1949 - 1958",
-       FROM : "College - St. Louis",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_0567",
-       NAME : "MacCulloch, Todd",
-       ACTIVE : "1999 - 2002",
-       FROM : "College - Washington ''99",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0568",
-       NAME : "MacGilvray, Ronald (Ronnie)",
-       ACTIVE : "1954 - 1954",
-       FROM : "College - St. John's (N.Y.)",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0569",
-       NAME : "Macijauskas, Arvydas",
-       ACTIVE : "2005 - 2005",
-       FROM : "From - Lithuania",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0570",
-       NAME : "Mack, Oliver (Ollie)",
-       ACTIVE : "1979 - 1981",
-       FROM : "College - San Jacinto Coll. TX (J.C.); East Carolina",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0571",
-       NAME : "Mack, Sam",
-       ACTIVE : "1992 - 2001",
-       FROM : "College - Iowa State; Arizona State; Tyler JC TX; Houston",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_0572",
-       NAME : "Mackey, Malcolm",
-       ACTIVE : "1993 - 1993",
-       FROM : "College - Georgia Tech",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_0573",
-       NAME : "Macklin, Rudy",
-       ACTIVE : "1981 - 1983",
-       FROM : "College - Louisiana State",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0574",
-       NAME : "Macknowski, John Andrew (Johnny, Whitey)",
-       ACTIVE : "1949 - 1950",
-       FROM : "College - Seton Hall",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0575",
-       NAME : "MacLean, Don",
-       ACTIVE : "1992 - 2000",
-       FROM : "College - UCLA",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0576",
-       NAME : "Macon, Mark",
-       ACTIVE : "1991 - 1998",
-       FROM : "College - Temple",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0577",
-       NAME : "Macy, Kyle",
-       ACTIVE : "1980 - 1986",
-       FROM : "College - Purdue; Kentucky",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0578",
-       NAME : "Maddox, Jack C.",
-       ACTIVE : "1948 - 1948",
-       FROM : "College - West Texas A&M",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0579",
-       NAME : "Maddox, Tito",
-       ACTIVE : "2002 - 2002",
-       FROM : "College - Fresno State ''04",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0580",
-       NAME : "Madkins, Gerald",
-       ACTIVE : "1993 - 1997",
-       FROM : "College - UCLA",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0581",
-       NAME : "Madsen, Mark",
-       ACTIVE : "2007 - 2008",
-       FROM : "College - Stanford",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0582",
-       NAME : "Mager, Norman Clifford (Norm)",
-       ACTIVE : "1950 - 1950",
-       FROM : "College - St. John's (N.Y.); CCNY",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0583",
-       NAME : "Maggette, Corey",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Duke",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0584",
-       NAME : "Magley, Dave",
-       ACTIVE : "1982 - 1982",
-       FROM : "College - Kansas",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0585",
-       NAME : "Magloire, Jamaal",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Kentucky",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0586",
-       NAME : "Mahinmi, Ian",
-       ACTIVE : "ACTIVE",
-       FROM : "From - Rouen, France",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0587",
-       NAME : "Mahnken, John E. (Long John; Stretch)",
-       ACTIVE : "1946 - 1952",
-       FROM : "College - Georgetown",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0588",
-       NAME : "Mahoney, Francis H. (Mo)",
-       ACTIVE : "1952 - 1953",
-       FROM : "College - Brown",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0589",
-       NAME : "Mahorn, Rick",
-       ACTIVE : "1980 - 1998",
-       FROM : "College - Hampton",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0590",
-       NAME : "Majerle, Dan",
-       ACTIVE : "1988 - 2001",
-       FROM : "College - Central Michigan",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0591",
-       NAME : "Major, Renaldo",
-       ACTIVE : "2006 - 2006",
-       FROM : "College - Fresno State",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0592",
-       NAME : "Malamed, Lionel",
-       ACTIVE : "1948 - 1948",
-       FROM : "College - CCNY",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0593",
-       NAME : "Malone, Jeff",
-       ACTIVE : "1983 - 1995",
-       FROM : "College - Mississippi State",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0594",
-       NAME : "Malone, Karl",
-       ACTIVE : "1985 - 2003",
-       FROM : "College - Louisiana Tech ''86",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0595",
-       NAME : "Malone, Moses",
-       ACTIVE : "1976 - 1994",
-       FROM : "College - No College",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0596",
-       NAME : "Maloney, Matt",
-       ACTIVE : "1996 - 2002",
-       FROM : "College - Pennsylvania",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0597",
-       NAME : "Malovic, Stephen L.",
-       ACTIVE : "1979 - 1979",
-       FROM : "College - USC; San Diego State",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0598",
-       NAME : "Manakas, Theodore (Ted)",
-       ACTIVE : "1973 - 1973",
-       FROM : "College - Princeton",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0599",
-       NAME : "Mandic, John J.",
-       ACTIVE : "1948 - 1949",
-       FROM : "College - Oregon State",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0600",
-       NAME : "Mangiapane, Francis E. (Frank)",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - N.Y.U.",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0601",
-       NAME : "Manning, Danny",
-       ACTIVE : "1988 - 2002",
-       FROM : "College - Kansas ''88",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0602",
-       NAME : "Manning, Edward R. (Ed)",
-       ACTIVE : "1967 - 1970",
-       FROM : "College - Jackson State",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0603",
-       NAME : "Manning, Rich",
-       ACTIVE : "1995 - 1996",
-       FROM : "College - Syracuse; Washington",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0604",
-       NAME : "Mannion, Pace",
-       ACTIVE : "1983 - 1988",
-       FROM : "College - Utah",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0605",
-       NAME : "Mantis, Nicholas (Nick)",
-       ACTIVE : "1959 - 1962",
-       FROM : "College - Northwestern",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0606",
-       NAME : "Maravich, Pete",
-       ACTIVE : "1970 - 1979",
-       FROM : "College - Louisiana State",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0607",
-       NAME : "Maravich, Peter (Press)",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - Davis & Elkins",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0608",
-       NAME : "Marble, Roy",
-       ACTIVE : "1989 - 1993",
-       FROM : "College - Iowa",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0609",
-       NAME : "Marbury, Stephon",
-       ACTIVE : "2007 - 2008",
-       FROM : "College - Georgia Tech",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0610",
-       NAME : "Marciulionis, Sarunas",
-       ACTIVE : "1989 - 1996",
-       FROM : "College - Vilnius (Lithuania)",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_0611",
-       NAME : "Mariaschin, Saul George",
-       ACTIVE : "1947 - 1947",
-       FROM : "College - Bloomsburg; Syracuse; Harvard",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0612",
-       NAME : "Marin, John Warren (Jack)",
-       ACTIVE : "1966 - 1976",
-       FROM : "College - Duke",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0613",
-       NAME : "Marion, Shawn",
-       ACTIVE : "ACTIVE",
-       FROM : "College - UNLV",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0614",
-       NAME : "Markota, Damir",
-       ACTIVE : "2006 - 2006",
-       FROM : "From - Croatia",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0615",
-       NAME : "N'diaye, Mamadou",
-       ACTIVE : "2000 - 2004",
-       FROM : "College - Auburn",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0616",
-       NAME : "Naber, Robert E. (Bob)",
-       ACTIVE : "1952 - 1952",
-       FROM : "College - Louisville",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0617",
-       NAME : "Nachamkin, Boris Alexander",
-       ACTIVE : "1954 - 1954",
-       FROM : "College - N.Y.U.",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0618",
-       NAME : "Nachbar, Bostjan",
-       ACTIVE : "2007 - 2007",
-       FROM : "From - Slovenia",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0619",
-       NAME : "Nagel, Gerald R. (Jerry)",
-       ACTIVE : "1949 - 1949",
-       FROM : "College - Loyola (Chicago)",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0620",
-       NAME : "Nagy, Frederick Karl (Fritz)",
-       ACTIVE : "1948 - 1948",
-       FROM : "College - North Carolina; Akron",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0621",
-       NAME : "Nailon, Lee",
-       ACTIVE : "2000 - 2005",
-       FROM : "College - Texas Christian",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0622",
-       NAME : "Najera, Eduardo",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Oklahoma",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0623",
-       NAME : "Nance, Larry",
-       ACTIVE : "1981 - 1993",
-       FROM : "College - Clemson",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0624",
-       NAME : "Napolitano, Paul Wally",
-       ACTIVE : "1948 - 1948",
-       FROM : "College - San Francisco",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0625",
-       NAME : "Nash, Charles Francis (Cotton)",
-       ACTIVE : "1964 - 1964",
-       FROM : "College - Kentucky",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0626",
-       NAME : "Nash, Robert Lee Jr. (Bob)",
-       ACTIVE : "1972 - 1978",
-       FROM : "College - San Jacinto Coll. TX (J.C.); Hawaii",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0627",
-       NAME : "Nash, Steve",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Santa Clara",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0628",
-       NAME : "Nater, Swen",
-       ACTIVE : "1976 - 1983",
-       FROM : "College - Cypress Coll. CA (J.C.); UCLA",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0629",
-       NAME : "Nathan, Howard",
-       ACTIVE : "1995 - 1995",
-       FROM : "College - Louisiana-Monroe",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0630",
-       NAME : "Natt, Calvin",
-       ACTIVE : "1979 - 1989",
-       FROM : "College - Louisiana-Monroe",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0631",
-       NAME : "Natt, Kenny",
-       ACTIVE : "1980 - 1984",
-       FROM : "College - Louisiana-Monroe",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0632",
-       NAME : "Naulls, Willie",
-       ACTIVE : "1956 - 1965",
-       FROM : "College - UCLA",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0633",
-       NAME : "Navarro, Juan Carlos",
-       ACTIVE : "2007 - 2007",
-       FROM : "From - Spain",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_0634",
-       NAME : "Ndiaye, Hamady",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Rutgers",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0635",
-       NAME : "Ndiaye, Makhtar",
-       ACTIVE : "1998 - 1998",
-       FROM : "College - North Carolina",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0636",
-       NAME : "Ndong, Boniface",
-       ACTIVE : "2005 - 2005",
-       FROM : "-",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0637",
-       NAME : "Neal, Craig",
-       ACTIVE : "1988 - 1990",
-       FROM : "College - Georgia Tech",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0638",
-       NAME : "Neal, Gary",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Towson",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0639",
-       NAME : "Neal, James Ellerbe (Jim)",
-       ACTIVE : "1953 - 1954",
-       FROM : "College - Wofford",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0640",
-       NAME : "Neal, Lloyd",
-       ACTIVE : "1972 - 1978",
-       FROM : "College - Tennessee State",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0641",
-       NAME : "Nealy, Ed",
-       ACTIVE : "1982 - 1992",
-       FROM : "College - Kansas State",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_0642",
-       NAME : "Negratti, Albert Edward (Al)",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - Seton Hall",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0643",
-       NAME : "Nelson, Barry G.",
-       ACTIVE : "1971 - 1971",
-       FROM : "College - Duquesne",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0644",
-       NAME : "Nelson, DeMarcus",
-       ACTIVE : "2008 - 2008",
-       FROM : "College - Duke",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0645",
-       NAME : "Nelson, Donald Arvid (Don, Nellie)",
-       ACTIVE : "1962 - 1975",
-       FROM : "College - Iowa",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0646",
-       NAME : "Nelson, Jameer",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Saint Joseph's",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0647",
-       NAME : "Nelson, Louis (Louie, Sweets)",
-       ACTIVE : "1973 - 1977",
-       FROM : "College - Washington",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0648",
-       NAME : "Nembhard, Ruben",
-       ACTIVE : "1996 - 1996",
-       FROM : "College - Weber State",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0649",
-       NAME : "Nene",
-       ACTIVE : "ACTIVE",
-       FROM : "From - Sao Carlos, Brazil",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0650",
-       NAME : "Nesby, Tyrone",
-       ACTIVE : "1998 - 2001",
-       FROM : "College - Vincennes IN (J.C.); Nevada-Las Vegas",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0651",
-       NAME : "Nessley, Martin",
-       ACTIVE : "1987 - 1987",
-       FROM : "College - Duke",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0652",
-       NAME : "Nesterovic, Rasho",
-       ACTIVE : "2007 - 2009",
-       FROM : "From - Ljubljana, Slovenia",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0653",
-       NAME : "Neumann, Johnny",
-       ACTIVE : "1976 - 1977",
-       FROM : "College - Mississippi",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0654",
-       NAME : "Neumann, Paul R.",
-       ACTIVE : "1961 - 1966",
-       FROM : "College - Stanford",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0655",
-       NAME : "Nevitt, Chuck",
-       ACTIVE : "1982 - 1993",
-       FROM : "College - North Carolina State",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0656",
-       NAME : "Newbern, Melvin",
-       ACTIVE : "1992 - 1992",
-       FROM : "College - Minnesota",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0657",
-       NAME : "Newbill, Ivano",
-       ACTIVE : "1994 - 1997",
-       FROM : "College - Georgia Tech",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0658",
-       NAME : "Newble, Ira",
-       ACTIVE : "2007 - 2007",
-       FROM : "College - Miami (Ohio)",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0659",
-       NAME : "Newlin, Mike",
-       ACTIVE : "1971 - 1981",
-       FROM : "College - Utah",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0660",
-       NAME : "Newman, Johnny",
-       ACTIVE : "1986 - 2001",
-       FROM : "College - Richmond",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0661",
-       NAME : "Newmark, David L. (Dave)",
-       ACTIVE : "1968 - 1969",
-       FROM : "College - Columbia",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0662",
-       NAME : "Nichols, Demetris",
-       ACTIVE : "2007 - 2008",
-       FROM : "College - Syracuse",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0663",
-       NAME : "Nichols, Jack Edward",
-       ACTIVE : "1948 - 1957",
-       FROM : "College - Washington; USC",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0664",
-       NAME : "Nickerson, Gaylon",
-       ACTIVE : "1996 - 1996",
-       FROM : "College - Wichita State; Butler Co. CC PA; Kansas State; Northwestern O",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0665",
-       NAME : "O'Bannon, Charles",
-       ACTIVE : "1997 - 1998",
-       FROM : "College - UCLA",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0666",
-       NAME : "O'Bannon, Ed",
-       ACTIVE : "1995 - 1996",
-       FROM : "College - UCLA",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0667",
-       NAME : "O'Koren, Mike",
-       ACTIVE : "1980 - 1987",
-       FROM : "College - North Carolina",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0668",
-       NAME : "O'Sullivan, Dan",
-       ACTIVE : "1990 - 1995",
-       FROM : "College - Fordham",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0669",
-       NAME : "O'Boyle, John W.",
-       ACTIVE : "1952 - 1952",
-       FROM : "College - Modesto JC CA; Colorado State",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0670",
-       NAME : "O'Brien, Ralph E. (Buckshot)",
-       ACTIVE : "1951 - 1952",
-       FROM : "College - Butler",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0671",
-       NAME : "O'Brien, Robert (Bob)",
-       ACTIVE : "1947 - 1948",
-       FROM : "College - Kansas; Pepperdine",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0672",
-       NAME : "O'Bryant, Patrick",
-       ACTIVE : "2007 - 2009",
-       FROM : "College - Bradley",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0673",
-       NAME : "O'Connell, Dermott F. (Dermie)",
-       ACTIVE : "1948 - 1949",
-       FROM : "College - Holy Cross",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0674",
-       NAME : "O'Donnell, Andrew J. (Andy)",
-       ACTIVE : "1949 - 1949",
-       FROM : "College - Loyola (Balt.)",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0675",
-       NAME : "O'Grady, Francis David (Buddy)",
-       ACTIVE : "1946 - 1948",
-       FROM : "College - Georgetown",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0676",
-       NAME : "O'Keefe, Richard T. (Dick)",
-       ACTIVE : "1947 - 1950",
-       FROM : "College - Santa Clara",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0677",
-       NAME : "O'Keefe, Thomas V. (Tommy)",
-       ACTIVE : "1950 - 1950",
-       FROM : "College - Notre Dame; Georgetown",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0678",
-       NAME : "O'Malley, V. Grady (Grady)",
-       ACTIVE : "1969 - 1969",
-       FROM : "College - Manhattan",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_0679",
-       NAME : "O'Neal, Jermaine",
-       ACTIVE : "ACTIVE",
-       FROM : "High School - Eau Claire HS (SC)",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0680",
-       NAME : "O'Neal, Shaquille",
-       ACTIVE : "2007 - 2010",
-       FROM : "College - Louisiana State",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0681",
-       NAME : "O'Neill, Mike",
-       ACTIVE : "1952 - 1952",
-       FROM : "College - California",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0682",
-       NAME : "O'Shea, Kevin Christopher",
-       ACTIVE : "1950 - 1952",
-       FROM : "College - Notre Dame",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0683",
-       NAME : "O'Shields, Garland L. (Mule)",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - Spartanburg Tech SC (J.C.); Tennessee",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0684",
-       NAME : "Oakley, Charles",
-       ACTIVE : "1985 - 2003",
-       FROM : "College - Virginia Union ''85",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0685",
-       NAME : "Oberto, Fabricio",
-       ACTIVE : "2007 - 2010",
-       FROM : "From - Las Varillas, Argentina",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0686",
-       NAME : "Oden, Greg",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Ohio State",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0687",
-       NAME : "Odom, Lamar",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Rhode Island",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0688",
-       NAME : "Ogden, Carlos (Bud)",
-       ACTIVE : "1969 - 1970",
-       FROM : "College - Santa Clara",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0689",
-       NAME : "Ogden, Ralph",
-       ACTIVE : "1970 - 1970",
-       FROM : "College - Santa Clara",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0690",
-       NAME : "Ogg, Alan",
-       ACTIVE : "1990 - 1992",
-       FROM : "College - Alabama-Birmingham",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0691",
-       NAME : "Ohl, Donald Jay (Don)",
-       ACTIVE : "1960 - 1969",
-       FROM : "College - Illinois",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0692",
-       NAME : "Okafor, Emeka",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Connecticut",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0693",
-       NAME : "Okur, Mehmet",
-       ACTIVE : "ACTIVE",
-       FROM : "From - Yalova, Turkey",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0694",
-       NAME : "Olajuwon, Hakeem",
-       ACTIVE : "1984 - 2001",
-       FROM : "College - Houston ''84",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0695",
-       NAME : "Olberding, Mark",
-       ACTIVE : "1976 - 1986",
-       FROM : "College - Minnesota",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0696",
-       NAME : "Oldham, Jawann",
-       ACTIVE : "1980 - 1990",
-       FROM : "College - Seattle",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0697",
-       NAME : "Oldham, John O. (Johnny)",
-       ACTIVE : "1949 - 1950",
-       FROM : "College - Western Kentucky",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0698",
-       NAME : "Oleynick, Frank (Magic)",
-       ACTIVE : "1975 - 1976",
-       FROM : "College - Seattle",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0699",
-       NAME : "Olive, John",
-       ACTIVE : "1978 - 1979",
-       FROM : "College - Villanova",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0700",
-       NAME : "Oliver, Brian",
-       ACTIVE : "1990 - 1997",
-       FROM : "College - Georgia Tech",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0701",
-       NAME : "Oliver, Dean",
-       ACTIVE : "2001 - 2002",
-       FROM : "College - Iowa ''01",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0702",
-       NAME : "Oliver, Jimmy",
-       ACTIVE : "1991 - 1998",
-       FROM : "College - Purdue",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0703",
-       NAME : "Ollie, Kevin",
-       ACTIVE : "2007 - 2009",
-       FROM : "College - Connecticut",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0704",
-       NAME : "Ollrich, Gene W. (Moe)",
-       ACTIVE : "1949 - 1949",
-       FROM : "College - Drake",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0705",
-       NAME : "Olowokandi, Michael",
-       ACTIVE : "1998 - 2006",
-       FROM : "College - U. of Pacific",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0706",
-       NAME : "Olsen, Enoch Eli III (Bud)",
-       ACTIVE : "1962 - 1968",
-       FROM : "College - Louisville",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0707",
-       NAME : "Orms, Barry D.",
-       ACTIVE : "1968 - 1968",
-       FROM : "College - St. Louis",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0708",
-       NAME : "Orr, John M. (Johnny)",
-       ACTIVE : "1949 - 1949",
-       FROM : "College - Beloit; Illinois",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0709",
-       NAME : "Orr, Louis",
-       ACTIVE : "1980 - 1987",
-       FROM : "College - Syracuse",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0710",
-       NAME : "Ortiz, Jose",
-       ACTIVE : "1988 - 1989",
-       FROM : "College - Oregon State",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0711",
-       NAME : "Osborne, Charles H. (Chuck)",
-       ACTIVE : "1961 - 1961",
-       FROM : "College - Western Kentucky",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0712",
-       NAME : "Osterkorn, Walter Raymond (Wally)",
-       ACTIVE : "1951 - 1954",
-       FROM : "College - Illinois",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_0713",
-       NAME : "Ostertag, Greg",
-       ACTIVE : "1995 - 2005",
-       FROM : "College - Kansas",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0714",
-       NAME : "Othick, Matt",
-       ACTIVE : "1992 - 1992",
-       FROM : "College - Arizona",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0715",
-       NAME : "Pace, Joseph (Joe)",
-       ACTIVE : "1976 - 1977",
-       FROM : "College - Maryland East. Shore; Coppin State",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0716",
-       NAME : "Pachulia, Zaza",
-       ACTIVE : "ACTIVE",
-       FROM : "From - Tbilisi, Georgia",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0717",
-       NAME : "Pack, Robert",
-       ACTIVE : "1991 - 2003",
-       FROM : "College - USC",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0718",
-       NAME : "Paddio, Gerald",
-       ACTIVE : "1990 - 1993",
-       FROM : "College - Seminole JC OK; Kilgore Coll. TX (J.C.); Nevada-Las Vegas",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0719",
-       NAME : "Padgett, Scott",
-       ACTIVE : "1999 - 2006",
-       FROM : "College - Kentucky",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0720",
-       NAME : "Paine, Frederick Vincent Jr. (Fred)",
-       ACTIVE : "1948 - 1948",
-       FROM : "College - Westminster (PA)",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0721",
-       NAME : "Palacio, Milt",
-       ACTIVE : "1999 - 2005",
-       FROM : "College - Colorado State",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0722",
-       NAME : "Palazzi, Togo Anthony",
-       ACTIVE : "1954 - 1959",
-       FROM : "College - Holy Cross",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0723",
-       NAME : "Palmer, James G. (Jim)",
-       ACTIVE : "1958 - 1960",
-       FROM : "College - Dayton",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0724",
-       NAME : "Palmer, John S. (Bud)",
-       ACTIVE : "1946 - 1948",
-       FROM : "College - Princeton",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0725",
-       NAME : "Palmer, Walter",
-       ACTIVE : "1990 - 1992",
-       FROM : "College - Dartmouth",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0726",
-       NAME : "Panko, Andy",
-       ACTIVE : "2000 - 2000",
-       FROM : "College - Lebanon Valley",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0727",
-       NAME : "Pargo, Jannero",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Arkansas",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0728",
-       NAME : "Parham, Estes Foster (Easy)",
-       ACTIVE : "1948 - 1950",
-       FROM : "College - Texas Wesleyan",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0729",
-       NAME : "Parish, Robert",
-       ACTIVE : "1976 - 1996",
-       FROM : "College - Centenary",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_0730",
-       NAME : "Park, Medford R. (Med)",
-       ACTIVE : "1955 - 1959",
-       FROM : "College - Missouri",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0731",
-       NAME : "Parker, Anthony",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Bradley",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_0732",
-       NAME : "Parker, Robert S. Jr. (Sonny)",
-       ACTIVE : "1976 - 1981",
-       FROM : "College - Mineral Area Coll. MO (J.C.); Texas A&M",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0733",
-       NAME : "Parker, Smush",
-       ACTIVE : "2007 - 2007",
-       FROM : "College - Fordham",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0734",
-       NAME : "Parker, Tony",
-       ACTIVE : "ACTIVE",
-       FROM : "From - Paris, France",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_0735",
-       NAME : "Parkinson, Jack Gordon",
-       ACTIVE : "1949 - 1949",
-       FROM : "College - Kentucky",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0736",
-       NAME : "Parks, Cherokee",
-       ACTIVE : "1995 - 2003",
-       FROM : "College - Duke ''95",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0737",
-       NAME : "Parr, Jack",
-       ACTIVE : "1958 - 1958",
-       FROM : "College - Kansas State",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0738",
-       NAME : "Parrack, Doyle Kenneth",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - Oklahoma State",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0739",
-       NAME : "Parsley, Charles H. (Charlie)",
-       ACTIVE : "1949 - 1949",
-       FROM : "College - Western Kentucky",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0740",
-       NAME : "Paspalj, Zarko",
-       ACTIVE : "1989 - 1989",
-       FROM : "College - No College",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0741",
-       NAME : "Passaglia, Martin Harold (Marty)",
-       ACTIVE : "1946 - 1948",
-       FROM : "College - Santa Clara",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0742",
-       NAME : "Pastushok, George A.",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - Manhattan; St. John's (N.Y.)",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0743",
-       NAME : "Patrick, Myles",
-       ACTIVE : "1980 - 1980",
-       FROM : "College - Auburn",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0744",
-       NAME : "Patrick, Stanley A. (Stan)",
-       ACTIVE : "1949 - 1949",
-       FROM : "College - Santa Clara; Illinois",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0745",
-       NAME : "Patterson, Andrae",
-       ACTIVE : "1998 - 1999",
-       FROM : "College - Indiana",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0746",
-       NAME : "Patterson, George",
-       ACTIVE : "1967 - 1967",
-       FROM : "College - Toledo",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0747",
-       NAME : "Patterson, Patrick",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Kentucky",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0748",
-       NAME : "Patterson, Ruben",
-       ACTIVE : "2007 - 2007",
-       FROM : "College - Cincinnati",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0749",
-       NAME : "Patterson, Steven J. (Steve)",
-       ACTIVE : "1971 - 1975",
-       FROM : "College - UCLA",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0750",
-       NAME : "Patterson, Tommie J. (Tommy)",
-       ACTIVE : "1972 - 1973",
-       FROM : "College - Ouachita Baptist",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0751",
-       NAME : "Patterson, Worthington R. (Worthy)",
-       ACTIVE : "1957 - 1957",
-       FROM : "College - Connecticut",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0752",
-       NAME : "Paul, Chris",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Wake Forest",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0753",
-       NAME : "Paulk, Charles (Charlie)",
-       ACTIVE : "1968 - 1971",
-       FROM : "College - Tulsa; Northeastern State (Okla.)",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0754",
-       NAME : "Paulson, Gerald Arthur (Jerry)",
-       ACTIVE : "1957 - 1957",
-       FROM : "College - Manhattan",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0755",
-       NAME : "Paultz, Billy",
-       ACTIVE : "1976 - 1984",
-       FROM : "College - Cameron; St. John's (N.Y.)",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0756",
-       NAME : "Pavlovic, Aleksandar",
-       ACTIVE : "ACTIVE",
-       FROM : "From - Bar, Montenegro",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0757",
-       NAME : "Paxson, James Edward Sr. (Jim)",
-       ACTIVE : "1956 - 1957",
-       FROM : "College - Dayton",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0758",
-       NAME : "Paxson, Jim",
-       ACTIVE : "1979 - 1989",
-       FROM : "College - Dayton",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0759",
-       NAME : "Paxson, John",
-       ACTIVE : "1983 - 1993",
-       FROM : "College - Notre Dame",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0760",
-       NAME : "Payak, John Jr. (Johnny)",
-       ACTIVE : "1949 - 1952",
-       FROM : "College - Bowling Green State",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0761",
-       NAME : "Payne, Kenny",
-       ACTIVE : "1989 - 1992",
-       FROM : "College - Louisville",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0762",
-       NAME : "Payne, Tom",
-       ACTIVE : "1971 - 1971",
-       FROM : "College - Kentucky",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0763",
-       NAME : "Payton, Gary",
-       ACTIVE : "1990 - 2006",
-       FROM : "College - Oregon State",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0764",
-       NAME : "Payton, Melvin E. (Mel)",
-       ACTIVE : "1951 - 1952",
-       FROM : "College - Tulane",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0765",
-       NAME : "Quick, Robert L. (Bob)",
-       ACTIVE : "1968 - 1971",
-       FROM : "College - Xavier (Ohio)",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0766",
-       NAME : "Quinn, Chris",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Notre Dame",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0767",
-       NAME : "Quinnett, Brian",
-       ACTIVE : "1989 - 1991",
-       FROM : "College - Washington State",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0768",
-       NAME : "Rackley, Luther Jr. (Luke)",
-       ACTIVE : "1969 - 1973",
-       FROM : "College - Xavier (Ohio)",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_0769",
-       NAME : "Rader, Howard (Howie)",
-       ACTIVE : "1948 - 1948",
-       FROM : "College - Long Island University",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0770",
-       NAME : "Radford, Mark",
-       ACTIVE : "1981 - 1982",
-       FROM : "College - Oregon State",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0771",
-       NAME : "Radford, Wayne",
-       ACTIVE : "1978 - 1978",
-       FROM : "College - Indiana",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0772",
-       NAME : "Radja, Dino",
-       ACTIVE : "1993 - 1996",
-       FROM : "College - Croatia",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0773",
-       NAME : "Radmanovic, Vladimir",
-       ACTIVE : "ACTIVE",
-       FROM : "From - Belgrade, Serbia",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0774",
-       NAME : "Radojevic, Aleksandar",
-       ACTIVE : "1999 - 2004",
-       FROM : "From - Serbia-Montenegro",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0775",
-       NAME : "Radovich, Frank Raymond",
-       ACTIVE : "1961 - 1961",
-       FROM : "College - Indiana",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0776",
-       NAME : "Radovich, George Lewis (Moe)",
-       ACTIVE : "1952 - 1952",
-       FROM : "College - Wyoming",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0777",
-       NAME : "Radziszewski, Raymond A. (Ray)",
-       ACTIVE : "1957 - 1957",
-       FROM : "College - St. Joseph's (PA)",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0778",
-       NAME : "Ragelis, Raymond Ernest (Ray)",
-       ACTIVE : "1951 - 1951",
-       FROM : "College - Northwestern",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0779",
-       NAME : "Raiken, Sherwin H.",
-       ACTIVE : "1952 - 1952",
-       FROM : "College - Villanova",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0780",
-       NAME : "Rains, Ed",
-       ACTIVE : "1981 - 1982",
-       FROM : "College - South Alabama",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0781",
-       NAME : "Rakocevic, Igor",
-       ACTIVE : "2002 - 2002",
-       FROM : "College - No College",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0782",
-       NAME : "Rambis, Kurt",
-       ACTIVE : "1981 - 1994",
-       FROM : "College - Santa Clara",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0783",
-       NAME : "Ramos, Peter",
-       ACTIVE : "2004 - 2004",
-       FROM : "From - Puerto Rico",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0784",
-       NAME : "Ramsey, Calvin (Cal)",
-       ACTIVE : "1959 - 1960",
-       FROM : "College - N.Y.U.",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0785",
-       NAME : "Ramsey, Frank",
-       ACTIVE : "1954 - 1963",
-       FROM : "College - Kentucky",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0786",
-       NAME : "Ramsey, Raymond Leroy (Ray)",
-       ACTIVE : "1948 - 1948",
-       FROM : "College - Bradley",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_0787",
-       NAME : "Randall, Mark",
-       ACTIVE : "1991 - 1994",
-       FROM : "College - Kansas",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0788",
-       NAME : "Randolph, Anthony",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Louisiana State",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0789",
-       NAME : "Randolph, Shavlik",
-       ACTIVE : "2007 - 2009",
-       FROM : "College - Duke",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0790",
-       NAME : "Randolph, Zach",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Michigan State",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0791",
-       NAME : "Rank, Wallace Aliifua (Wally)",
-       ACTIVE : "1980 - 1980",
-       FROM : "College - San Jose State",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0792",
-       NAME : "Ransey, Kelvin",
-       ACTIVE : "1980 - 1985",
-       FROM : "College - Ohio State",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0793",
-       NAME : "Ranzino, Samuel Salvadore (Sam)",
-       ACTIVE : "1951 - 1951",
-       FROM : "College - North Carolina State",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0794",
-       NAME : "Rasmussen, Blair",
-       ACTIVE : "1985 - 1992",
-       FROM : "College - Oregon",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0795",
-       NAME : "Ratkovicz, George",
-       ACTIVE : "1949 - 1954",
-       FROM : "College - No College",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0796",
-       NAME : "Ratleff, Ed",
-       ACTIVE : "1973 - 1977",
-       FROM : "College - Long Beach State",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0797",
-       NAME : "Ratliff, Michael D. (Mike)",
-       ACTIVE : "1972 - 1973",
-       FROM : "College - Wis.-Eau Claire",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0798",
-       NAME : "Ratliff, Theo",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Wyoming",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0799",
-       NAME : "Rautins, Andy",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Syracuse",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_0800",
-       NAME : "Rautins, Leo",
-       ACTIVE : "1983 - 1984",
-       FROM : "College - Minnesota; Syracuse",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_0801",
-       NAME : "Ray, Allan",
-       ACTIVE : "2006 - 2006",
-       FROM : "College - Villanova",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0802",
-       NAME : "Ray, Clifford",
-       ACTIVE : "1971 - 1980",
-       FROM : "College - Oklahoma",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0803",
-       NAME : "Ray, Donald L. (Don, Duck)",
-       ACTIVE : "1949 - 1949",
-       FROM : "College - Western Kentucky",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0804",
-       NAME : "Ray, James E. (Jim)",
-       ACTIVE : "1956 - 1959",
-       FROM : "College - Toledo",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0805",
-       NAME : "Ray, James Earl",
-       ACTIVE : "1980 - 1982",
-       FROM : "College - Jacksonville",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0806",
-       NAME : "Raymond, Craig Milford",
-       ACTIVE : "1968 - 1968",
-       FROM : "College - Brigham Young",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0807",
-       NAME : "Rea, Connie Mack",
-       ACTIVE : "1953 - 1953",
-       FROM : "College - Centenary; Vanderbilt",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_0808",
-       NAME : "Reaves, Joe L.",
-       ACTIVE : "1973 - 1973",
-       FROM : "College - Bethel College (Tenn.)",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0809",
-       NAME : "Rebraca, Zeljko",
-       ACTIVE : "2001 - 2005",
-       FROM : "From - Serbia & Montenegro",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0810",
-       NAME : "Recasner, Eldridge",
-       ACTIVE : "1994 - 2001",
-       FROM : "College - Washington",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0811",
-       NAME : "Redd, Michael",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Ohio State",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0812",
-       NAME : "Reddout, Franklin P. (Frank)",
-       ACTIVE : "1953 - 1953",
-       FROM : "College - Syracuse",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_0813",
-       NAME : "Redick, J.J.",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Duke",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0814",
-       NAME : "Redmond, Marlon Bernard",
-       ACTIVE : "1978 - 1979",
-       FROM : "College - San Francisco",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0815",
-       NAME : "Reed, Hubert F. (Hub)",
-       ACTIVE : "1958 - 1964",
-       FROM : "College - Oklahoma City",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0816",
-       NAME : "Reed, Justin",
-       ACTIVE : "2004 - 2006",
-       FROM : "College - Mississippi",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0817",
-       NAME : "Reed, Ronald Lee (Ron)",
-       ACTIVE : "1965 - 1966",
-       FROM : "College - Notre Dame",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0818",
-       NAME : "Sabonis, Arvydas",
-       ACTIVE : "1995 - 2002",
-       FROM : "From - Lithuania",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0819",
-       NAME : "Sadowski, Edward Frank (Ed, Big Ed)",
-       ACTIVE : "1946 - 1949",
-       FROM : "College - Seton Hall",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0820",
-       NAME : "Sailors, Kenneth L. (Kenny)",
-       ACTIVE : "1946 - 1950",
-       FROM : "College - Wyoming",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0821",
-       NAME : "Salley, John",
-       ACTIVE : "1986 - 1999",
-       FROM : "College - Georgia Tech",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0822",
-       NAME : "Salmons, John",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Miami (Fla.)",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0823",
-       NAME : "Salvadori, Kevin",
-       ACTIVE : "1996 - 1997",
-       FROM : "College - North Carolina",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0824",
-       NAME : "Samake, Soumaila",
-       ACTIVE : "2000 - 2002",
-       FROM : "From - Republic of Mali",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0825",
-       NAME : "Samb, Cheikh",
-       ACTIVE : "2007 - 2008",
-       FROM : "From - Senegal",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0826",
-       NAME : "Sampson, Jamal",
-       ACTIVE : "2002 - 2006",
-       FROM : "College - California",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0827",
-       NAME : "Sampson, Ralph",
-       ACTIVE : "1983 - 1991",
-       FROM : "College - Virginia",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0828",
-       NAME : "Samuels, Samardo",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Louisville",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0829",
-       NAME : "Sanchez, Pepe",
-       ACTIVE : "2000 - 2002",
-       FROM : "College - Temple ''00",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0830",
-       NAME : "Sanders, Frankie J. (Frankie J.)",
-       ACTIVE : "1978 - 1980",
-       FROM : "College - Southern University",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0831",
-       NAME : "Sanders, Jeff",
-       ACTIVE : "1989 - 1992",
-       FROM : "College - Georgia Southern",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0832",
-       NAME : "Sanders, Larry",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Virginia Commonwealth",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0833",
-       NAME : "Sanders, Melvin",
-       ACTIVE : "2005 - 2005",
-       FROM : "College - Oklahoma State",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0834",
-       NAME : "Sanders, Mike",
-       ACTIVE : "1982 - 1992",
-       FROM : "College - UCLA",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0835",
-       NAME : "Sanders, Thomas Ernest (Satch)",
-       ACTIVE : "1960 - 1972",
-       FROM : "College - N.Y.U.",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0836",
-       NAME : "Santiago, Daniel",
-       ACTIVE : "2000 - 2004",
-       FROM : "College - St. Vincent",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0837",
-       NAME : "Santini, Robert (Bob)",
-       ACTIVE : "1955 - 1955",
-       FROM : "College - Iona",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0838",
-       NAME : "Sappleton, Wayne B.",
-       ACTIVE : "1984 - 1984",
-       FROM : "College - Loyola (Chicago)",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0839",
-       NAME : "Sasser, Jason",
-       ACTIVE : "1996 - 1998",
-       FROM : "College - Texas Tech ''96",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0840",
-       NAME : "Sasser, Jeryl",
-       ACTIVE : "2001 - 2002",
-       FROM : "College - Southern Methodist ''01",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0841",
-       NAME : "Satterfield, Kenny",
-       ACTIVE : "2001 - 2002",
-       FROM : "College - Cincinnati ''03",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0842",
-       NAME : "Saul, Frank Benjamin Jr. (Pep)",
-       ACTIVE : "1949 - 1954",
-       FROM : "College - Seton Hall",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0843",
-       NAME : "Sauldsberry, Woodrow Jr. (Woody)",
-       ACTIVE : "1957 - 1965",
-       FROM : "College - Texas Southern",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0844",
-       NAME : "Saunders, James Frederick (Fred)",
-       ACTIVE : "1974 - 1977",
-       FROM : "College - Syracuse",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0845",
-       NAME : "Savage, Donald Joseph (Don)",
-       ACTIVE : "1951 - 1956",
-       FROM : "College - Le Moyne",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0846",
-       NAME : "Savovic, Predrag",
-       ACTIVE : "2002 - 2002",
-       FROM : "College - Hawaii ''02",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0847",
-       NAME : "Sawyer, Alan Leigh",
-       ACTIVE : "1950 - 1950",
-       FROM : "College - UCLA",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0848",
-       NAME : "Scalabrine, Brian",
-       ACTIVE : "ACTIVE",
-       FROM : "College - USC",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0849",
-       NAME : "Scales, Alex",
-       ACTIVE : "2005 - 2005",
-       FROM : "College - Oregon",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0850",
-       NAME : "Scales, DeWayne",
-       ACTIVE : "1980 - 1983",
-       FROM : "College - Louisiana State",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0851",
-       NAME : "Schade, Frank",
-       ACTIVE : "1972 - 1972",
-       FROM : "College - Wis.-Eau Claire; Texas-El Paso",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0852",
-       NAME : "Schadler, Bernard R. (Ben)",
-       ACTIVE : "1947 - 1947",
-       FROM : "College - Northwestern",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0853",
-       NAME : "Schaefer, Herman H. (Herm)",
-       ACTIVE : "1948 - 1949",
-       FROM : "College - Indiana",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0854",
-       NAME : "Schafer, Robert Thomas (Bob)",
-       ACTIVE : "1955 - 1955",
-       FROM : "College - Villanova",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0855",
-       NAME : "Scharnus, Benedict Michael (Ben, Whitey)",
-       ACTIVE : "1946 - 1948",
-       FROM : "College - Seton Hall",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0856",
-       NAME : "Schatzman, Marvin J. (Marv)",
-       ACTIVE : "1949 - 1949",
-       FROM : "College - St. Louis",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0857",
-       NAME : "Schaus, Frederick Appleton (Fred)",
-       ACTIVE : "1949 - 1953",
-       FROM : "College - West Virginia",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0858",
-       NAME : "Schayes, Danny",
-       ACTIVE : "1981 - 1998",
-       FROM : "College - Syracuse",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0859",
-       NAME : "Schayes, Dolph",
-       ACTIVE : "1949 - 1963",
-       FROM : "College - N.Y.U.",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0860",
-       NAME : "Schectman, Oscar B. (Ossie)",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - Long Island University",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0861",
-       NAME : "Scheffler, Steve",
-       ACTIVE : "1990 - 1996",
-       FROM : "College - Purdue",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0862",
-       NAME : "Scheffler, Thomas Mark (Tom)",
-       ACTIVE : "1984 - 1984",
-       FROM : "College - Purdue",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0863",
-       NAME : "Schellhase, David Gene Jr. (Dave)",
-       ACTIVE : "1966 - 1967",
-       FROM : "College - Purdue",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_0864",
-       NAME : "Schenscher, Luke",
-       ACTIVE : "2005 - 2006",
-       FROM : "College - Georgia Tech",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0865",
-       NAME : "Scherer, Herbert Frederick (Herb)",
-       ACTIVE : "1950 - 1951",
-       FROM : "College - Long Island University",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0866",
-       NAME : "Schintzius, Dwayne",
-       ACTIVE : "1990 - 1998",
-       FROM : "College - Florida",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0867",
-       NAME : "Schlueter, Dale Wayne",
-       ACTIVE : "1968 - 1977",
-       FROM : "College - Colorado State",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0868",
-       NAME : "Tabak, Zan",
-       ACTIVE : "1994 - 2000",
-       FROM : "College - No College",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0869",
-       NAME : "Tabuse, Yuta",
-       ACTIVE : "2004 - 2004",
-       FROM : "College - BYU-Hawaii",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0870",
-       NAME : "Taft, Chris",
-       ACTIVE : "2005 - 2005",
-       FROM : "College - Pittsburgh",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0871",
-       NAME : "Tannenbaum, Sidney (Sid)",
-       ACTIVE : "1947 - 1948",
-       FROM : "College - N.Y.U.",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0872",
-       NAME : "Tarlac, Dragan",
-       ACTIVE : "2000 - 2000",
-       FROM : "College - Olympiakos (Greece)",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0873",
-       NAME : "Tarpley, Roy",
-       ACTIVE : "1986 - 1994",
-       FROM : "College - Michigan",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0874",
-       NAME : "Tatum, William Earl (Earl)",
-       ACTIVE : "1976 - 1979",
-       FROM : "College - Marquette",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0875",
-       NAME : "Taylor, Anthony",
-       ACTIVE : "1988 - 1988",
-       FROM : "College - Oregon",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0876",
-       NAME : "Taylor, Brian Dw.",
-       ACTIVE : "1976 - 1981",
-       FROM : "College - Princeton",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0877",
-       NAME : "Taylor, Donell",
-       ACTIVE : "2005 - 2006",
-       FROM : "College - Alabama-Birmingham",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0878",
-       NAME : "Taylor, Fredrick Ollie (Fred)",
-       ACTIVE : "1970 - 1971",
-       FROM : "College - Texas-Pan American",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0879",
-       NAME : "Taylor, Jay",
-       ACTIVE : "1989 - 1989",
-       FROM : "College - Eastern Illinois",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0880",
-       NAME : "Taylor, Jeff",
-       ACTIVE : "1982 - 1986",
-       FROM : "College - Texas Tech",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_0881",
-       NAME : "Taylor, Jermaine",
-       ACTIVE : "2009 - 2010",
-       FROM : "College - Central Florida",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0882",
-       NAME : "Taylor, Johnny",
-       ACTIVE : "1997 - 1999",
-       FROM : "College - Knoxville; Indian Hills CC IA; Tennessee-Chattanooga",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0883",
-       NAME : "Taylor, Leonard",
-       ACTIVE : "1989 - 1989",
-       FROM : "College - California",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0884",
-       NAME : "Taylor, Maurice",
-       ACTIVE : "1997 - 2006",
-       FROM : "College - Michigan",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0885",
-       NAME : "Taylor, Mike",
-       ACTIVE : "2008 - 2008",
-       FROM : "College - Iowa State",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0886",
-       NAME : "Taylor, Roland Morris (Fatty)",
-       ACTIVE : "1976 - 1976",
-       FROM : "College - Edison CC FL; La Salle",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0887",
-       NAME : "Taylor, Vince",
-       ACTIVE : "1982 - 1982",
-       FROM : "College - Duke",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0888",
-       NAME : "Teagle, Terry",
-       ACTIVE : "1982 - 1992",
-       FROM : "College - Baylor",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0889",
-       NAME : "Teague, Jeff",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Wake Forest",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0890",
-       NAME : "Telfair, Sebastian",
-       ACTIVE : "ACTIVE",
-       FROM : "High School - Abraham Lincoln HS (Brooklyn, NY)",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0891",
-       NAME : "Temple, Garrett",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Louisiana State",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0892",
-       NAME : "Terrell, Ira Edmondson",
-       ACTIVE : "1976 - 1978",
-       FROM : "College - Southern Methodist",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0893",
-       NAME : "Terry, Allen Charles (Chuck)",
-       ACTIVE : "1972 - 1976",
-       FROM : "College - Long Beach State",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0894",
-       NAME : "Terry, Carlos",
-       ACTIVE : "1980 - 1982",
-       FROM : "College - Winston-Salem State",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0895",
-       NAME : "Terry, Claude Lewis",
-       ACTIVE : "1976 - 1977",
-       FROM : "College - Stanford",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0896",
-       NAME : "Terry, Jason",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Arizona",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0897",
-       NAME : "Thabeet, Hasheem",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Connecticut",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0898",
-       NAME : "Thacker, Thomas Porter (Tom, Tack)",
-       ACTIVE : "1963 - 1967",
-       FROM : "College - Cincinnati",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0899",
-       NAME : "Theus, Reggie",
-       ACTIVE : "1978 - 1990",
-       FROM : "College - Nevada-Las Vegas",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0900",
-       NAME : "Thibeaux, Peter C.",
-       ACTIVE : "1984 - 1985",
-       FROM : "College - St. Mary's (CA)",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0901",
-       NAME : "Thieben, William Bernard (Bill)",
-       ACTIVE : "1956 - 1957",
-       FROM : "College - Hofstra",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0902",
-       NAME : "Thigpen, Justus",
-       ACTIVE : "1972 - 1973",
-       FROM : "College - Charles Stewart Mott CC MI; Weber State",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0903",
-       NAME : "Thirdkill, David",
-       ACTIVE : "1982 - 1986",
-       FROM : "College - Coll. of Southern Idaho (J.C.); Bradley",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_0904",
-       NAME : "Thomas, Billy",
-       ACTIVE : "2007 - 2007",
-       FROM : "College - Kansas",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0905",
-       NAME : "Thomas, Carl",
-       ACTIVE : "1991 - 1997",
-       FROM : "College - Eastern Michigan",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0906",
-       NAME : "Thomas, Charles",
-       ACTIVE : "1991 - 1991",
-       FROM : "College - Eastern Michigan",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0907",
-       NAME : "Thomas, Etan",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Syracuse",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0908",
-       NAME : "Thomas, Irving",
-       ACTIVE : "1990 - 1990",
-       FROM : "College - Kentucky; Florida State",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0909",
-       NAME : "Thomas, Isiah",
-       ACTIVE : "1981 - 1993",
-       FROM : "College - Indiana",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_0910",
-       NAME : "Thomas, Jamel",
-       ACTIVE : "1999 - 2000",
-       FROM : "College - Providence",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0911",
-       NAME : "Thomas, Jamel",
-       ACTIVE : "1999 - 2000",
-       FROM : "College - Providence",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_0912",
-       NAME : "Thomas, James",
-       ACTIVE : "2004 - 2005",
-       FROM : "College - Texas",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0913",
-       NAME : "Thomas, Jim",
-       ACTIVE : "1983 - 1990",
-       FROM : "College - Indiana",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0914",
-       NAME : "Thomas, John",
-       ACTIVE : "1997 - 2005",
-       FROM : "College - Minnesota",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0915",
-       NAME : "Thomas, Joseph Randle (Joe)",
-       ACTIVE : "1970 - 1970",
-       FROM : "College - Marquette",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0916",
-       NAME : "Thomas, Kenny",
-       ACTIVE : "2007 - 2009",
-       FROM : "College - New Mexico",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0917",
-       NAME : "Thomas, Kurt",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Texas Christian",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0918",
-       NAME : "Udoh, Ekpe",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Baylor",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0919",
-       NAME : "Udoka, Ime",
-       ACTIVE : "2007 - 2010",
-       FROM : "College - Portland State",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0920",
-       NAME : "Udrih, Beno",
-       ACTIVE : "ACTIVE",
-       FROM : "From - Sempeter, Slovenia",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0921",
-       NAME : "Ukic, Roko",
-       ACTIVE : "2008 - 2009",
-       FROM : "From - Split, Croatia",
-       TEAM_LOGO : "../test/10_raw.jpg"
-}, {
-       ID :    "card_0922",
-       NAME : "Unseld, Wes",
-       ACTIVE : "1968 - 1980",
-       FROM : "College - Louisville",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0923",
-       NAME : "Uplinger, Harold F. (Hal)",
-       ACTIVE : "1953 - 1953",
-       FROM : "College - Long Island University",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0924",
-       NAME : "Upshaw, Kelvin",
-       ACTIVE : "1988 - 1990",
-       FROM : "College - Northeastern State (Okla.); Utah",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0925",
-       NAME : "Uzoh, Ben",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Tulsa",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0926",
-       NAME : "Valentine, Darnell",
-       ACTIVE : "1981 - 1990",
-       FROM : "College - Kansas",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0927",
-       NAME : "Valentine, Ronnie L. (Ron)",
-       ACTIVE : "1980 - 1980",
-       FROM : "College - Old Dominion",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0928",
-       NAME : "Vallely, John Stephen",
-       ACTIVE : "1970 - 1971",
-       FROM : "College - Orange Coast Coll. CA (J.C.); UCLA",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0929",
-       NAME : "Van Arsdale, Dick",
-       ACTIVE : "1965 - 1976",
-       FROM : "College - Indiana",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0930",
-       NAME : "Van Arsdale, Thomas Arthur (Tom)",
-       ACTIVE : "1965 - 1976",
-       FROM : "College - Indiana",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0931",
-       NAME : "Van Breda Kolff, Jan",
-       ACTIVE : "1976 - 1982",
-       FROM : "College - Vanderbilt",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0932",
-       NAME : "Van Breda Kolff, Willem H. (Butch)",
-       ACTIVE : "1946 - 1949",
-       FROM : "College - Princeton; N.Y.U.",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0933",
-       NAME : "Van Exel, Nick",
-       ACTIVE : "1993 - 2005",
-       FROM : "College - Cincinnati",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0934",
-       NAME : "Van Horn, Keith",
-       ACTIVE : "1997 - 2005",
-       FROM : "College - Utah",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0935",
-       NAME : "Van Lier, Norm",
-       ACTIVE : "1969 - 1978",
-       FROM : "College - St. Francis (PA)",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0936",
-       NAME : "Vance, Ellis Eugene (Gene)",
-       ACTIVE : "1947 - 1951",
-       FROM : "College - Illinois",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0937",
-       NAME : "Vander Velden, Logan",
-       ACTIVE : "1995 - 1995",
-       FROM : "College - Wis.-Green Bay",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_0938",
-       NAME : "Vandeweghe, Ernest Maurice Jr. (Ernie, Doc)",
-       ACTIVE : "1949 - 1955",
-       FROM : "College - Colgate",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0939",
-       NAME : "Vandeweghe, Kiki",
-       ACTIVE : "1980 - 1992",
-       FROM : "College - UCLA",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_0940",
-       NAME : "Vanos, Nick",
-       ACTIVE : "1985 - 1986",
-       FROM : "College - Santa Clara",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_0941",
-       NAME : "Vanterpool, David",
-       ACTIVE : "2000 - 2000",
-       FROM : "College - St. Bonaventure",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0942",
-       NAME : "Varda, Ratko",
-       ACTIVE : "2001 - 2001",
-       FROM : "From - Serbia & Montenegro",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0943",
-       NAME : "Varejao, Anderson",
-       ACTIVE : "ACTIVE",
-       FROM : "From - Santa Teresa, Brazil",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0944",
-       NAME : "Vasquez, Greivis",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Maryland",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0945",
-       NAME : "Vaughn, Charles (Chico)",
-       ACTIVE : "1962 - 1966",
-       FROM : "College - Southern Illinois",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0946",
-       NAME : "Vaughn, David",
-       ACTIVE : "1995 - 1998",
-       FROM : "College - Memphis",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0947",
-       NAME : "Vaughn, Jacque",
-       ACTIVE : "2007 - 2008",
-       FROM : "College - Kansas",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_0948",
-       NAME : "Vaughn, Virgil V.",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - Kentucky Wesleyan",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0949",
-       NAME : "Vaught, Loy",
-       ACTIVE : "1990 - 2000",
-       FROM : "College - Michigan",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0950",
-       NAME : "Verga, Robert Bruce (Bob)",
-       ACTIVE : "1973 - 1973",
-       FROM : "College - Duke",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_0951",
-       NAME : "Verhoeven, Peter",
-       ACTIVE : "1981 - 1986",
-       FROM : "College - Fresno State",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_0952",
-       NAME : "Vetra, Gundars",
-       ACTIVE : "1992 - 1992",
-       FROM : "College - No College",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_0953",
-       NAME : "Vianna, Joao",
-       ACTIVE : "1991 - 1991",
-       FROM : "College - Travajara (Brazil)",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0954",
-       NAME : "Villanueva, Charlie",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Connecticut",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0955",
-       NAME : "Vincent, Jay",
-       ACTIVE : "1981 - 1989",
-       FROM : "College - Michigan State",
-       TEAM_LOGO : "../test/20_raw.jpg"
-}, {
-       ID :    "card_0956",
-       NAME : "Vincent, Sam",
-       ACTIVE : "1985 - 1991",
-       FROM : "College - Michigan State",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_0957",
-       NAME : "Vinicius, Marcus",
-       ACTIVE : "2007 - 2007",
-       FROM : "From - Brazil",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0958",
-       NAME : "Vinson, Fred",
-       ACTIVE : "1994 - 1999",
-       FROM : "College - Georgia Tech",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0959",
-       NAME : "Voce, Gary",
-       ACTIVE : "1989 - 1989",
-       FROM : "College - Notre Dame",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0960",
-       NAME : "Volker, Floyd W.",
-       ACTIVE : "1949 - 1949",
-       FROM : "College - Wyoming",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0961",
-       NAME : "Volkov, Alexander",
-       ACTIVE : "1989 - 1991",
-       FROM : "College - Kiev Institute (Ukraine)",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0962",
-       NAME : "Von Nieda, Stanley L. Jr. (Whitey)",
-       ACTIVE : "1949 - 1949",
-       FROM : "College - Penn State",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0963",
-       NAME : "Voskuhl, Jake",
-       ACTIVE : "2007 - 2008",
-       FROM : "College - Connecticut",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_0964",
-       NAME : "Vranes, Danny",
-       ACTIVE : "1981 - 1987",
-       FROM : "College - Utah",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_0965",
-       NAME : "Vranes, Slavko",
-       ACTIVE : "2003 - 2003",
-       FROM : "From - Serbia & Montenegro",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0966",
-       NAME : "Vrankovic, Stojko",
-       ACTIVE : "1990 - 1998",
-       FROM : "College - Croatia",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0967",
-       NAME : "Vroman, Brett Grant",
-       ACTIVE : "1980 - 1980",
-       FROM : "College - UCLA; Nevada-Las Vegas",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0968",
-       NAME : "Vroman, Jackson",
-       ACTIVE : "2004 - 2005",
-       FROM : "College - Iowa State",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0969",
-       NAME : "Vujacic, Sasha",
-       ACTIVE : "ACTIVE",
-       FROM : "From - Maribor, Slovenia",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0970",
-       NAME : "Wade, Dwyane",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Marquette",
-       TEAM_LOGO : "../test/5_raw.jpg"
-}, {
-       ID :    "card_0971",
-       NAME : "Wade, Mark",
-       ACTIVE : "1987 - 1989",
-       FROM : "College - El Camino Coll. CA (J.C.); Oklahoma; Nevada-Las Vegas",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_0972",
-       NAME : "Wafer, Von",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Florida State",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0973",
-       NAME : "Wager, Clinton B. (Clint)",
-       ACTIVE : "1949 - 1949",
-       FROM : "College - St. Mary's (Minn.)",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_0974",
-       NAME : "Wagner, Dajuan",
-       ACTIVE : "2002 - 2006",
-       FROM : "College - Memphis",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_0975",
-       NAME : "Wagner, Daniel Earnest (Danny)",
-       ACTIVE : "1949 - 1949",
-       FROM : "College - Schreiner Coll.; Texas",
-       TEAM_LOGO : "../test/19_raw.jpg"
-}, {
-       ID :    "card_0976",
-       NAME : "Wagner, Milt",
-       ACTIVE : "1987 - 1990",
-       FROM : "College - Louisville",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_0977",
-       NAME : "Waiters, Granville",
-       ACTIVE : "1983 - 1987",
-       FROM : "College - Ohio State",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_0978",
-       NAME : "Wakefield, Andre",
-       ACTIVE : "1978 - 1979",
-       FROM : "College - Coll. of Southern Idaho (J.C.); Loyola (Chicago)",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}, {
-       ID :    "card_0979",
-       NAME : "Walk, Neal",
-       ACTIVE : "1969 - 1976",
-       FROM : "College - Florida",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0980",
-       NAME : "Walker, Andrew Martin (Andy)",
-       ACTIVE : "1976 - 1976",
-       FROM : "College - Niagara",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0981",
-       NAME : "Walker, Antoine",
-       ACTIVE : "2007 - 2007",
-       FROM : "College - Kentucky",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_0982",
-       NAME : "Walker, Bill",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Kansas State",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0983",
-       NAME : "Walker, Brady W.",
-       ACTIVE : "1948 - 1951",
-       FROM : "College - Brigham Young",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0984",
-       NAME : "Walker, Chet",
-       ACTIVE : "1962 - 1974",
-       FROM : "College - Bradley",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0985",
-       NAME : "Walker, Darrell",
-       ACTIVE : "1983 - 1992",
-       FROM : "College - Westark CC; Arkansas",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_0986",
-       NAME : "Walker, Foots",
-       ACTIVE : "1974 - 1983",
-       FROM : "College - Vincennes IN (J.C.); West Georgia",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0987",
-       NAME : "Walker, Horace",
-       ACTIVE : "1961 - 1961",
-       FROM : "College - Michigan State",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0988",
-       NAME : "Walker, James (Jimmy)",
-       ACTIVE : "1967 - 1975",
-       FROM : "College - Providence",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0989",
-       NAME : "Walker, Kenny",
-       ACTIVE : "1986 - 1994",
-       FROM : "College - Kentucky",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_0990",
-       NAME : "Walker, Phillip B. (Phil)",
-       ACTIVE : "1977 - 1977",
-       FROM : "College - Millersville",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_0991",
-       NAME : "Walker, Samaki",
-       ACTIVE : "1996 - 2005",
-       FROM : "College - Louisville",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_0992",
-       NAME : "Walker, Wally",
-       ACTIVE : "1976 - 1983",
-       FROM : "College - Virginia",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_0993",
-       NAME : "Wall, John",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Kentucky",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_0994",
-       NAME : "Wallace, Ben",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Virginia Union",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_0995",
-       NAME : "Wallace, Gerald",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Alabama",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0996",
-       NAME : "Wallace, John",
-       ACTIVE : "1996 - 2003",
-       FROM : "College - Syracuse ''96",
-       TEAM_LOGO : "../test/25_raw.jpg"
-}, {
-       ID :    "card_0997",
-       NAME : "Wallace, Michael John (Red)",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - Scranton",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_0998",
-       NAME : "Wallace, Rasheed",
-       ACTIVE : "2007 - 2009",
-       FROM : "College - North Carolina",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_0999",
-       NAME : "Waller, Dwight",
-       ACTIVE : "1968 - 1968",
-       FROM : "College - Tennessee State",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_1000",
-       NAME : "Waller, Jamie",
-       ACTIVE : "1987 - 1987",
-       FROM : "College - Virginia Union",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_1001",
-       NAME : "Walsh, James Patrick (Jim)",
-       ACTIVE : "1957 - 1957",
-       FROM : "College - Stanford",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_1002",
-       NAME : "Walsh, Matt",
-       ACTIVE : "2005 - 2005",
-       FROM : "College - Florida",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_1003",
-       NAME : "Walters, Rex",
-       ACTIVE : "1993 - 1999",
-       FROM : "College - De Anza Coll. CA (J.C.); Northwestern; Kansas",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_1004",
-       NAME : "Walther, Paul P. (Lefty)",
-       ACTIVE : "1949 - 1954",
-       FROM : "College - Tennessee",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_1005",
-       NAME : "Walthour, Isaac (Rabbit)",
-       ACTIVE : "1953 - 1953",
-       FROM : "College - No College",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_1006",
-       NAME : "Walton, Bill",
-       ACTIVE : "1974 - 1986",
-       FROM : "College - UCLA",
-       TEAM_LOGO : "../test/28_raw.jpg"
-}, {
-       ID :    "card_1007",
-       NAME : "Walton, Lloyd",
-       ACTIVE : "1976 - 1980",
-       FROM : "College - Moberly Area CC; Marquette",
-       TEAM_LOGO : "../test/12_raw.jpg"
-}, {
-       ID :    "card_1008",
-       NAME : "Walton, Luke",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Arizona",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_1009",
-       NAME : "Wang Zhizhi",
-       ACTIVE : "2000 - 2004",
-       FROM : "From - China",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_1010",
-       NAME : "Wanzer, Robert Francis (Bobby)",
-       ACTIVE : "1948 - 1956",
-       FROM : "College - Colgate; Seton Hall",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_1011",
-       NAME : "Warbington, Perry",
-       ACTIVE : "1974 - 1974",
-       FROM : "College - Lake City CC FL; Georgia Southern",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_1012",
-       NAME : "Ward, Charlie",
-       ACTIVE : "1994 - 2004",
-       FROM : "College - Florida State",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_1013",
-       NAME : "Ward, Gerald W. (Gerry)",
-       ACTIVE : "1963 - 1966",
-       FROM : "College - Boston College",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_1014",
-       NAME : "Ward, Henry Lorette",
-       ACTIVE : "1976 - 1976",
-       FROM : "College - Jackson State",
-       TEAM_LOGO : "../test/13_raw.jpg"
-}, {
-       ID :    "card_1015",
-       NAME : "Ware, James Edward (Jim)",
-       ACTIVE : "1966 - 1967",
-       FROM : "College - Oklahoma City",
-       TEAM_LOGO : "../test/11_raw.jpg"
-}, {
-       ID :    "card_1016",
-       NAME : "Warley, Benjamin Vallintina (Ben)",
-       ACTIVE : "1962 - 1966",
-       FROM : "College - Tennessee State",
-       TEAM_LOGO : "../test/27_raw.jpg"
-}, {
-       ID :    "card_1017",
-       NAME : "Warlick, Robert Lee (Bob)",
-       ACTIVE : "1965 - 1968",
-       FROM : "College - Pueblo CC CO; Pepperdine; Denver",
-       TEAM_LOGO : "../test/29_raw.jpg"
-}, {
-       ID :    "card_1018",
-       NAME : "Warner, Cornell",
-       ACTIVE : "1970 - 1976",
-       FROM : "College - Jackson State",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_1019",
-       NAME : "Warren, John II (Johnny)",
-       ACTIVE : "1969 - 1973",
-       FROM : "College - St. John's (N.Y.)",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_1020",
-       NAME : "Yarbrough, Vincent",
-       ACTIVE : "2002 - 2002",
-       FROM : "College - Tennessee ''02",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_1021",
-       NAME : "Yardley, George",
-       ACTIVE : "1953 - 1959",
-       FROM : "College - Stanford",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_1022",
-       NAME : "Yates, Barry",
-       ACTIVE : "1971 - 1971",
-       FROM : "College - Nebraska; Maryland",
-       TEAM_LOGO : "../test/18_raw.jpg"
-}, {
-       ID :    "card_1023",
-       NAME : "Yates, Wayne E.",
-       ACTIVE : "1961 - 1961",
-       FROM : "College - Memphis",
-       TEAM_LOGO : "../test/4_raw.jpg"
-}, {
-       ID :    "card_1024",
-       NAME : "Yelverton, Charles W. (Charlie)",
-       ACTIVE : "1971 - 1971",
-       FROM : "College - Fordham",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_1025",
-       NAME : "Yonakor, Richard Robert (Rich)",
-       ACTIVE : "1981 - 1981",
-       FROM : "College - North Carolina",
-       TEAM_LOGO : "../test/16_raw.jpg"
-}, {
-       ID :    "card_1026",
-       NAME : "Young, Danny",
-       ACTIVE : "1984 - 1994",
-       FROM : "College - Wake Forest",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_1027",
-       NAME : "Young, Korleone",
-       ACTIVE : "1998 - 1998",
-       FROM : "College - No College",
-       TEAM_LOGO : "../test/6_raw.jpg"
-}, {
-       ID :    "card_1028",
-       NAME : "Young, Michael",
-       ACTIVE : "1984 - 1989",
-       FROM : "College - Houston",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_1029",
-       NAME : "Young, Nick",
-       ACTIVE : "ACTIVE",
-       FROM : "College - USC",
-       TEAM_LOGO : "../test/24_raw.jpg"
-}, {
-       ID :    "card_1030",
-       NAME : "Young, Perry",
-       ACTIVE : "1986 - 1986",
-       FROM : "College - Virginia Tech",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_1031",
-       NAME : "Young, Sam",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Pittsburgh",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_1032",
-       NAME : "Young, Thaddeus",
-       ACTIVE : "ACTIVE",
-       FROM : "College - Georgia Tech",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_1033",
-       NAME : "Young, Tim",
-       ACTIVE : "1999 - 1999",
-       FROM : "College - Stanford",
-       TEAM_LOGO : "../test/9_raw.jpg"
-}, {
-       ID :    "card_1034",
-       NAME : "Yue, Sun",
-       ACTIVE : "2008 - 2008",
-       FROM : "From - China",
-       TEAM_LOGO : "../test/26_raw.jpg"
-}, {
-       ID :    "card_1035",
-       NAME : "Zaslofsky, Max (Slats)",
-       ACTIVE : "1946 - 1955",
-       FROM : "College - Chicago; St. John's (N.Y.)",
-       TEAM_LOGO : "../test/23_raw.jpg"
-}, {
-       ID :    "card_1036",
-       NAME : "Zawoluk, Robert Michael (Zeke)",
-       ACTIVE : "1952 - 1954",
-       FROM : "College - St. John's (N.Y.)",
-       TEAM_LOGO : "../test/17_raw.jpg"
-}, {
-       ID :    "card_1037",
-       NAME : "Zeller, David A. (Dave)",
-       ACTIVE : "1961 - 1961",
-       FROM : "College - Miami (Ohio)",
-       TEAM_LOGO : "../test/8_raw.jpg"
-}, {
-       ID :    "card_1038",
-       NAME : "Zeller, Gary Lynn",
-       ACTIVE : "1970 - 1971",
-       FROM : "College - Drake",
-       TEAM_LOGO : "../test/15_raw.jpg"
-}, {
-       ID :    "card_1039",
-       NAME : "Zeller, Harry Raymond (Hank)",
-       ACTIVE : "1946 - 1946",
-       FROM : "College - Pittsburgh; Washington & Jefferson",
-       TEAM_LOGO : "../test/21_raw.jpg"
-}, {
-       ID :    "card_1040",
-       NAME : "Zeno, Anthony Michael (Tony)",
-       ACTIVE : "1979 - 1979",
-       FROM : "College - Arizona State",
-       TEAM_LOGO : "../test/22_raw.jpg"
-}, {
-       ID :    "card_1041",
-       NAME : "Zevenbergen, Phil",
-       ACTIVE : "1987 - 1987",
-       FROM : "College - Seattle Pacific; Edmonds CC WA; Washington",
-       TEAM_LOGO : "../test/14_raw.jpg"
-}, {
-       ID :    "card_1042",
-       NAME : "Zidek, George",
-       ACTIVE : "1995 - 1997",
-       FROM : "College - UCLA",
-       TEAM_LOGO : "../test/30_raw.jpg"
-}, {
-       ID :    "card_1043",
-       NAME : "Zimmerman, Derrick",
-       ACTIVE : "2005 - 2005",
-       FROM : "College - Mississippi State",
-       TEAM_LOGO : "../test/7_raw.jpg"
-}, {
-       ID :    "card_1044",
-       NAME : "Zoet, Jim",
-       ACTIVE : "1982 - 1982",
-       FROM : "College - Kent State",
-       TEAM_LOGO : "../test/2_raw.jpg"
-}, {
-       ID :    "card_1045",
-       NAME : "Zopf, William Charles Jr. (Bill, Zip)",
-       ACTIVE : "1970 - 1970",
-       FROM : "College - Duquesne",
-       TEAM_LOGO : "../test/1_raw.jpg"
-}, {
-       ID :    "card_1046",
-       NAME : "Zunic, Matthew (Matt, Mad Matt)",
-       ACTIVE : "1948 - 1948",
-       FROM : "College - George Washington",
-       TEAM_LOGO : "../test/3_raw.jpg"
-}];
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/00_winset_icon_favorite_on.png b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/00_winset_icon_favorite_on.png
deleted file mode 100644 (file)
index 1c024a5..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/00_winset_icon_favorite_on.png and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_76ers.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_76ers.jpg
deleted file mode 100644 (file)
index 35db118..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_76ers.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_bobcats.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_bobcats.jpg
deleted file mode 100644 (file)
index 6572396..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_bobcats.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_bucks.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_bucks.jpg
deleted file mode 100644 (file)
index 8b420ae..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_bucks.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_bulls.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_bulls.jpg
deleted file mode 100644 (file)
index 8c131e1..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_bulls.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_cavaliers.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_cavaliers.jpg
deleted file mode 100644 (file)
index 2a66daa..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_cavaliers.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_celtics.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_celtics.jpg
deleted file mode 100644 (file)
index 363f65b..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_celtics.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_clippers.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_clippers.jpg
deleted file mode 100644 (file)
index 9b042b9..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_clippers.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_griz.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_griz.jpg
deleted file mode 100644 (file)
index c521cc9..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_griz.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_hawks.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_hawks.jpg
deleted file mode 100644 (file)
index 208be2d..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_hawks.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_heats.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_heats.jpg
deleted file mode 100644 (file)
index 1c009d2..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_heats.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_honets.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_honets.jpg
deleted file mode 100644 (file)
index b2aa7ee..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_honets.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_jazz.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_jazz.jpg
deleted file mode 100644 (file)
index 1f1d221..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_jazz.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_kings.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_kings.jpg
deleted file mode 100644 (file)
index fc0e9f9..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_kings.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_knics.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_knics.jpg
deleted file mode 100644 (file)
index 70c8796..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_knics.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_lakers.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_lakers.jpg
deleted file mode 100644 (file)
index cb291b1..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_lakers.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_magics.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_magics.jpg
deleted file mode 100644 (file)
index 290b930..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_magics.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_mavericks.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_mavericks.jpg
deleted file mode 100644 (file)
index f8816a8..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_mavericks.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_nets.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_nets.jpg
deleted file mode 100644 (file)
index 3d2600c..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_nets.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_nuggets.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_nuggets.jpg
deleted file mode 100644 (file)
index a01e78e..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_nuggets.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_pacers.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_pacers.jpg
deleted file mode 100644 (file)
index be98506..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_pacers.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_pistons.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_pistons.jpg
deleted file mode 100644 (file)
index f13c851..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_pistons.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_raptors.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_raptors.jpg
deleted file mode 100644 (file)
index eb8d431..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_raptors.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_rockets.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_rockets.jpg
deleted file mode 100644 (file)
index 8cf2f17..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_rockets.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_sonics.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_sonics.jpg
deleted file mode 100644 (file)
index 2104e42..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_sonics.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_spurs.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_spurs.jpg
deleted file mode 100644 (file)
index 060002d..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_spurs.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_suns.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_suns.jpg
deleted file mode 100644 (file)
index 754769c..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_suns.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_timberwolves.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_timberwolves.jpg
deleted file mode 100644 (file)
index 79476a8..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_timberwolves.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_trail.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_trail.jpg
deleted file mode 100644 (file)
index 57168c9..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_trail.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_warriors.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_warriors.jpg
deleted file mode 100644 (file)
index 45440c4..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_warriors.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_wizards.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_wizards.jpg
deleted file mode 100644 (file)
index e98a491..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/images/nba_wizards.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-bubble-sample1.png b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-bubble-sample1.png
deleted file mode 100644 (file)
index 3c1d65e..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-bubble-sample1.png and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-bubble.html b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-bubble.html
deleted file mode 100644 (file)
index 9fe3725..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<div data-role="page" id="genlist-bubble" data-add-back-btn="true">
-       <div data-role="header" data-position="fixed">
-               <h1>bubble list (message bubble)</h1>
-       </div>
-       <div data-role="content">
-               <ul data-role="listview" data-style="bubble">
-                       <li class="ui-li-bubble-left">short left<span class="ui-li-bubble-time">9:20 PM</span></li>
-                       <li class="ui-li-bubble-right">But I have no choice. I have a big exam tomorrow. (bubble right)<span class="ui-li-bubble-time">9:26 PM</span></li>
-
-                       <li class="ui-li-bubble-left">Don't worry... I'm free. You're gonna get sick. (bubble left)<span class="ui-li-bubble-time">9:30 PM</span></li>
-                       <li class="ui-li-bubble-date">2010. 05. 20 (bubble date)</li>
-                       <li class="ui-li-bubble-right">Sorry I'm late. (bubble right)<span class="ui-li-bubble-time">9:26 PM</span></li>
-                       <li class="ui-li-bubble-left ui-li-bubble-sos">Don't worry... I'm free. You're gonna get sick. (bubble sos)<span class="ui-li-bubble-time">9:30 PM</span></li>
-                       <li class="ui-li-bubble-left"><p>Picture test</p><img src="list-bubble-sample1.png" /><span class="ui-li-bubble-time">9:40 PM</span></li>
-               </ul>
-       </div>
-</div>
-
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-dialogue.html b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-dialogue.html
deleted file mode 100644 (file)
index 2f9061a..0000000
+++ /dev/null
@@ -1,344 +0,0 @@
-<div data-role="page" id="genlist-dialog" data-add-back-btn="true" data-fit-page-to-window="true">
-       <div data-role="header" data-position="fixed">
-               <h1>Dialog lists</h1>
-       </div>
-       <div class="content" data-role="content" data-scroll="y">
-               <ul data-role="listview">
-
-                       <li class="ui-li-dialogue">
-                               1line
-                       </li>
-                       <li class="ui-li-dialogue">
-                               <a>1line (with link)</a>
-                       </li>
-                       <li class="ui-li-dialogue">
-                               1line-sub
-                               <span class="ui-li-text-sub">subtext</sub>
-                       </li>
-                       <li class="ui-li-dialogue">
-                               <a>
-                               1line-sub (with link)
-                               <span class="ui-li-text-sub">subtext</span>
-                               </a>
-                       </li>
-                       <li class="ui-li-dialogue">
-                               1line-setting
-                               <span class="ui-li-text-sub">Sub text</span>
-                       </li>
-                       <li class="ui-li-dialogue">
-                               1line-btn1
-                               <div data-role="button" data-inline="true">Text Button</div>
-                       </li>
-                       <li class="ui-li-dialogue">
-                               1line-btn2
-                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-                       <li class="ui-li-dialogue">
-                               1line-toggle
-                               <div data-role="toggleswitch"/></div>
-                       </li>
-                       <li class="ui-li-dialogue">
-                               1line-bigicon1
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-                       <li class="ui-li-dialogue">
-                               1line-bigicon2
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <span class="ui-li-text-sub">Sub text</span>
-                       </li>
-                       <li class="ui-li-dialogue">
-                               1line-bigicon4
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <div data-role="button" data-inline="true">Text Button</div>
-                       </li>
-                       <li class="ui-li-dialogue">
-                               1line-bigicon5
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-                       <li class="ui-li-dialogue">
-                               1line-bigicon6
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <div data-role="toggleswitch"/></div>
-                       </li>
-                       <li class="ui-li-has-checkbox ui-li-dialogue">
-                               <form><input type="checkbox" data-style="check" name="c1line-check1" /></form>
-                               1line-check1
-                       </li>
-                       <li class="ui-li-has-checkbox ui-li-dialogue">
-                               <form><input type="checkbox" data-style="check" name="c1line-check2" /></form>
-                               1line-check2
-                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-                       <li class="ui-li-has-checkbox ui-li-dialogue">
-                               <form><input type="checkbox" data-style="check" name="c1line-check3" /></form>
-                               1line-check3
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-                       <li class="ui-li-has-checkbox ui-li-dialogue">
-                               <form><input type="checkbox" data-style="check" name="c1line-check4" /></form>
-                               1line-check4
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-                       <li class="ui-li-has-radio ui-li-dialogue">
-                               <form><input type="radio" /></form>
-                               1line-radio1
-                       </li>
-                       <li class="ui-li-has-radio ui-li-dialogue">
-                               <form><input type="radio" /></form>
-                               1line-radio3
-                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-                       <li class="ui-li-has-radio ui-li-dialogue">
-                               <form><input type="radio" /></form>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               1line-radio4
-                       </li>
-                       <li class="ui-li-has-radio ui-li-dialogue">
-                               <form><input type="radio" /></form>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               1line-radio5
-                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-multiline ui-li-dialogue">
-                               2line
-                               <span class="ui-li-text-sub">Subtext</span>
-                       </li>
-
-                       <li class="ui-li-multiline ui-li-dialogue">
-                               2line-sub-main
-                               <span class="ui-li-text-sub">Subtext</span>
-                       </li>
-
-                       <li class="ui-li-multiline ui-li-dialogue">
-                               2line-2sub
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <span class="ui-li-text-sub2">Subtext2</span>
-                       </li>
-
-                       <li class="ui-li-multiline ui-li-dialogue">
-                               2line-btn1
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true">button</div>
-                       </li>
-
-                       <li class="ui-li-2line-btn1 ui-li-dialogue">
-                       <span class="ui-li-text-main">2line-btn1</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <div data-role="button" data-inline="true" data-icon="call"></div>
-                       </li>
-
-                       <li class="ui-li-2line-btn2 ui-li-dialogue">
-                       <span class="ui-li-text-main">2line-btn2</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-2line-star1 ui-li-dialogue">
-                       <span class="ui-li-text-main">2line-star1</span>
-                       <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <span class="ui-li-text-sub2">Subtext2</span>
-                       </li>
-
-                       <li class="ui-li-2line-star2 ui-li-dialogue">
-                       <span class="ui-li-text-main">2line-star2</span>
-                       <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
-                       <span class="ui-li-text-sub"><img src="00_winset_icon_favorite_on.png">Subtext</span>
-                       <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
-                       </li>
-
-                       <li class="ui-li-2line-setting ui-li-dialogue">
-                       <span class="ui-li-text-main">2line-setting</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       </li>
-
-                       <li class="ui-li-2line-toggle-setting ui-li-dialogue">
-                       <span class="ui-li-text-main">2line-toggle-setting</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <div data-role="toggleswitch"/></div>
-                       </li>
-
-                       <li class="ui-li-2line-btn-setting ui-li-dialogue">
-                       <span class="ui-li-text-main">2line-btn-setting</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-2line-bigicon0 ui-li-dialogue">
-                       <span class="ui-li-text-main">2line-bigicon0</span>
-                       <span class="ui-li-text-sub">Subtext<img src="00_winset_icon_favorite_on.png"></span>
-                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-2line-bigicon1 ui-li-dialogue">
-                       <span class="ui-li-text-main">2line-bigicon1</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-                       <li class="ui-li-2line-bigicon2 ui-li-dialogue">
-                       <span class="ui-li-text-main">2line-bigicon2</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       <span class="ui-li-text-sub2">Subtext2</span>
-                       </li>
-
-                       <li class="ui-li-2line-bigicon3 ui-li-dialogue">
-                       <span class="ui-li-text-main">2line-bigicon3</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-                       <li class="ui-li-2line-bigicon4 ui-li-dialogue">
-                       <span class="ui-li-text-main">2line-bigicon4</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-                       <li class="ui-li-2line-check1 ui-li-dialogue">
-                       <span class="ui-li-text-main">2line-check1</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <form><input type="checkbox" data-style="check" name="c2line-check1" /></form>
-                       </li>
-
-                       <li class="ui-li-2line-check2 ui-li-dialogue">
-                       <span class="ui-li-text-main">2line-check2</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <form><input type="checkbox" data-style="check" name="c2line-check2" /></form>
-                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-2line-check3 ui-li-dialogue">
-                       <span class="ui-li-text-main">2line-check3</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <form><input type="checkbox" data-style="check" name="c2line-check3" /></form>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-
-                       <li class="ui-li-2line-radio1 ui-li-dialogue">
-                       <span class="ui-li-text-main">2line-radio1</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <form><input type="radio" /></form>
-                       </li>
-
-                       <li class="ui-li-2line-radio2 ui-li-dialogue">
-                       <span class="ui-li-text-main">2line-radio2</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <form><input type="radio" /></form>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-
-                       <li class="ui-li-2line-colorbar1 ui-li-dialogue">
-                       <span class="ui-li-color-bar"></span>
-                       <span class="ui-li-text-main">2line-colorbar1</span>
-                       <span class="ui-li-text-sub">Subtext
-                               <img src="00_winset_icon_favorite_on.png">
-                               <img src="00_winset_icon_favorite_on.png">
-                               <img src="00_winset_icon_favorite_on.png">
-                       </span>
-                       <span class="ui-li-text-sub2">Subtext2</span>
-                       <div data-role="button" data-inline="true">button</div>
-                       </li>
-
-                       <li class="ui-li-2line-colorbar3 ui-li-dialogue">
-                       <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
-                       <span class="ui-li-text-main">2line-colorbar3<img src="00_winset_icon_favorite_on.png"></span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <div data-role="button" data-inline="true">button</div>
-                       </li>
-
-                       <li class="ui-li-2line-colorbar3 ui-li-dialogue">
-                       <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
-                       <span class="ui-li-text-main">2line-colorbar3<img src="00_winset_icon_favorite_on.png"></span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <div data-role="button" data-inline="true" data-icon="call"></div>
-                       </li>
-
-                       <li class="ui-li-2line-colorbar3 ui-li-dialogue">
-                       <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
-                       <span class="ui-li-text-main">2line-colorbar3</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-                       <li class="ui-li-2line-bigicon8 ui-li-dialogue">
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       <span class="ui-li-text-main">2line-bigicon8</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
-                       </li>
-
-                       <li class="ui-li-2line-thumb1 ui-li-dialogue">
-                       <span class="ui-li-text-main">2line-thumb1</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-                       <li class="ui-li-2line-thumb2 ui-li-dialogue">
-                       <span class="ui-li-text-main">2line-thumb2<img src="00_winset_icon_favorite_on.png"></span>
-                       <span class="ui-li-text-sub"><img src="00_winset_icon_favorite_on.png">Subtext</span>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-                       <li class="ui-li-2line-sub-main-bigicon1 ui-li-dialogue">
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <span class="ui-li-text-main">2line-sub-main-bigicon1</span>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-                       <li class="ui-li-2line-bigicon-pgbar1 ui-li-dialogue">
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       <span class="ui-li-text-main">2line-bigicon-pgbar1</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <span class="ui-li-text-sub2">Subtext2</span>
-                       <div data-role="button" data-inline="true">Cancel</div>
-                       <div data-role="progressbar"></div>
-                       </li>
-
-                       <li class="ui-li-2line-bigicon-pgbar2 ui-li-dialogue">
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       <span class="ui-li-text-main">2line-bigicon-pgbar2</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <div data-role="button" data-inline="true">button</div>
-                       </li>
-
-                       <li class="ui-li-2line-bigicon-pgbar2 ui-li-dialogue">
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       <span class="ui-li-text-main">2line-bigicon-pgbar2</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <div data-role="button" data-inline="true" data-icon="call"></div>
-                       </li>
-
-                       <li class="ui-li-2line-bigicon-pgbar3 ui-li-dialogue">
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       <span class="ui-li-text-main">2line-bigicon-pgbar3</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <span class="ui-li-text-sub2">Subtext2</span>
-                       <div data-role="progressbar"></div>
-                       </li>
-
-                       <li class="ui-li-2line-icon-bigicon-btn ui-li-dialogue">
-                       <form><input type="checkbox" data-style="check" name="c2line-icon-bigicon-btn" /></form>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       <span class="ui-li-text-main">2line-icon-bigicon-btn</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-2line-thumb3 ui-li-dialogue">
-                       <span class="ui-li-text-main">2line-thumb3<img src="00_winset_icon_favorite_on.png"></span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-               </ul>
-       </div>
-</div>
-
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-divider_check.html b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-divider_check.html
deleted file mode 100644 (file)
index 0210231..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<div data-role="page" data-add-back-btn="true">
-       <div data-role="header" data-position="fixed">
-               <h1>Normal Divider </h1>
-       </div>
-       <div class="content" data-role="content" data-scroll="y">
-               <ul data-role="listview">
-                       <li data-role="list-divider" data-style="check"><form><input type="checkbox"  name="c2line-check1" /></form></li>
-                       <li class="ui-li-has-checkbox"><a href="#" ><form><input type="checkbox"  name="c2line-check1" /></form>Normal lists</a></li>
-                       <li class="ui-li-has-checkbox"><a href="#" ><form><input type="checkbox"  name="c2line-check1" /></form>Normal lists</a></li>
-                       <li class="ui-li-has-checkbox"><a href="#" ><form><input type="checkbox"  name="c2line-check1" /></form>Normal lists</a></li>
-                       <li data-role="list-divider" data-style="check"><form><input type="checkbox"  name="c2line-check1" /></form></li>
-                       <li class="ui-li-has-checkbox"><a href="#" ><form><input type="checkbox"  name="c2line-check1" /></form>Normal lists</a></li>
-                       <li class="ui-li-has-checkbox"><a href="#" ><form><input type="checkbox"  name="c2line-check1" /></form>Normal lists</a></li>
-                       <li class="ui-li-has-checkbox"><a href="#" ><form><input type="checkbox"  name="c2line-check1" /></form>Normal lists</a></li>
-                       <li data-role="list-divider" data-style="check"><form><input type="checkbox"  name="c2line-check1" /></form></li>
-                       <li class="ui-li-has-checkbox">Normal lists</li>
-                       <li class="ui-li-has-checkbox">Normal lists</li>
-                       <li class="ui-li-has-checkbox">Normal lists</li>
-               </ul>
-       </div>
-</div>
-
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-divider_checkexpandable.html b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-divider_checkexpandable.html
deleted file mode 100644 (file)
index c624900..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<div data-role="page" data-add-back-btn="true">
-       <div data-role="header" data-position="fixed">
-               <h1>Normal Divider </h1>
-       </div>
-       <div class="content" data-role="content" data-scroll="y">
-               <ul data-role="listview">
-                       <li data-role="list-divider" data-style="checkexpandable"><form><input type="checkbox"  name="c2line-check1" /></form>Test</li>
-                       <li class="ui-li-has-checkbox"><a href="#" ><form><input type="checkbox"  name="c2line-check1" /></form>Normal lists</a></li>
-                       <li class="ui-li-has-checkbox"><a href="#" ><form><input type="checkbox"  name="c2line-check1" /></form>Normal lists</a></li>
-                       <li class="ui-li-has-checkbox"><a href="#" ><form><input type="checkbox"  name="c2line-check1" /></form>Normal lists</a></li>
-                       <li data-role="list-divider" data-style="checkexpandable"><form><input type="checkbox"  name="c2line-check1" /></form></li>
-                       <li class="ui-li-has-checkbox"><a href="#" ><form><input type="checkbox"  name="c2line-check1" /></form>Normal lists</a></li>
-                       <li class="ui-li-has-checkbox"><a href="#" ><form><input type="checkbox"  name="c2line-check1" /></form>Normal lists</a></li>
-                       <li class="ui-li-has-checkbox"><a href="#" ><form><input type="checkbox"  name="c2line-check1" /></form>Normal lists</a></li>
-                       <li data-role="list-divider" data-style="checkexpandable"><form><input type="checkbox"  name="c2line-check1" /></form></li>
-                       <li class="ui-li-has-checkbox">Normal lists</li>
-                       <li class="ui-li-has-checkbox">Normal lists</li>
-                       <li class="ui-li-has-checkbox">Normal lists</li>
-               </ul>
-       </div>
-</div>
-
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-divider_expandable.html b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-divider_expandable.html
deleted file mode 100644 (file)
index debb032..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<div data-role="page" data-add-back-btn="true">
-       <div data-role="header" data-position="fixed">
-               <h1>Normal Divider </h1>
-       </div>
-       <div class="content" data-role="content" data-scroll="y">
-               <ul data-role="listview">
-                       <li data-role="list-divider" data-style="expandable">Item styles</li>
-                       <li><a href="#" >Normal lists</a></li>
-                       <li><a href="#" >Normal lists</a></li>
-                       <li><a href="#" >Normal lists</a></li>
-                       <li data-role="list-divider" data-style="expandable">Item styles</li>
-                       <li><a href="#" >Normal lists</a></li>
-                       <li><a href="#" >Normal lists</a></li>
-                       <li><a href="#" >Normal lists</a></li>
-                       <li data-role="list-divider" data-style="expandable">Item styles</li>
-                       <li><a href="#" >Normal lists</a></li>
-                       <li><a href="#" >Normal lists</a></li>
-                       <li><a href="#" >Normal lists</a></li>
-               </ul>
-       </div>
-</div>
-
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-divider_groupped.html b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-divider_groupped.html
deleted file mode 100644 (file)
index 65ed720..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<div data-role="page" data-add-back-btn="true">
-       <div data-role="header" data-position="fixed">
-               <h1>Normal Divider </h1>
-       </div>
-       <div class="content" data-role="content" data-scroll="y">
-               <ul data-role="listview">
-                       <li data-role="list-divider" data-style="dialogue">Item styles</li>
-                       <li class="ui-li-dialogue"><a href="#" >Normal lists</a></li>
-                       <li class="ui-li-dialogue"><a href="#" >Normal lists</a></li>
-                       <li class="ui-li-dialogue"><a href="#" >Normal lists</a></li>
-                       <li data-role="list-divider" data-style="dialogue">Item styles</li>
-                       <li class="ui-li-dialogue"><a href="#" >Normal lists</a></li>
-                       <li class="ui-li-dialogue"><a href="#" >Normal lists</a></li>
-                       <li class="ui-li-dialogue"><a href="#" >Normal lists</a></li>
-                       <li data-role="list-divider" data-style="dialogue">Item styles</li>
-                       <li class="ui-li-dialogue">Normal lists</li>
-                       <li class="ui-li-dialogue">Normal lists</li>
-                       <li class="ui-li-dialogue">Normal lists</li>
-               </ul>
-       </div>
-</div>
-
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-divider_normal.html b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-divider_normal.html
deleted file mode 100644 (file)
index d13b96e..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<div data-role="page" data-add-back-btn="true">
-       <div data-role="header" data-position="fixed">
-               <h1>Normal Divider </h1>
-       </div>
-       <div class="content" data-role="content" data-scroll="y">
-               <ul data-role="listview">
-                       <li data-role="list-divider">Item styles</li>
-                       <li><a href="#">Normal lists</a></li>
-                       <li><a href="#">Normal lists</a></li>
-                       <li><a href="#">Normal lists</a></li>
-                       <li data-role="list-divider">Item styles</li>
-                       <li><a href="#">Normal lists</a></li>
-                       <li><a href="#">Normal lists</a></li>
-                       <li><a href="#">Normal lists</a></li>
-                       <li data-role="list-divider">Item styles</li>
-                       <li><a href="#">Normal lists</a></li>
-                       <li><a href="#">Normal lists</a></li>
-                       <li><a href="#">Normal lists</a></li>
-               </ul>
-       </div>
-</div>
-
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-email.html b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-email.html
deleted file mode 100644 (file)
index f7fbaef..0000000
+++ /dev/null
@@ -1,179 +0,0 @@
-<div data-role="page" id="genlist-email" data-add-back-btn="true" data-fit-page-to-window="true">
-       <div data-role="header" data-position="fixed">
-               <h1>Email lists</h1>
-       </div>
-       <div class="content" data-role="content" data-scroll="y">
-               <ul data-role="listview">
-                       <li class="ui-li-email-name1-btn">
-                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
-                               <form><input type="checkbox" name="c2line-icon-bigicon-btn" /></form>
-                               <span class="ui-li-text-main">email-name1-btn</span>
-                               <div data-role="button" data-inline="true">3 ></div>
-                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
-                               <span class="ui-li-text-sub1">Subtext 01</span>
-                               <span class="ui-li-text-sub2">Subtext 02</span>
-                               <span class="ui-li-text-sub3">Subtext 03</span>
-                       </li>
-                       <li class="ui-li-email-name2-btn">
-                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
-                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
-                               <span class="ui-li-text-main">email-name2-btn</span>
-                               <div data-role="button" data-inline="true">3 ></div>
-                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
-                               <span class="ui-li-text-sub1">Subtext 01</span>
-                               <span class="ui-li-text-sub2">Subtext 02</span>
-                               <span class="ui-li-text-sub3">Subtext 03</span>
-                       </li>
-                       <li class="ui-li-email-name1">
-                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
-                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
-                               <span class="ui-li-text-main">email-name1</span>
-                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
-                               <span class="ui-li-text-sub1">Subtext 01</span>
-                               <span class="ui-li-text-sub2">Subtext 02</span>
-                               <span class="ui-li-text-sub3">Subtext 03</span>
-                       </li>
-                       <li class="ui-li-email-name2">
-                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
-                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
-                               <span class="ui-li-text-main">email-name2</span>
-                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
-                               <span class="ui-li-text-sub1">Subtext 01</span>
-                               <span class="ui-li-text-sub2">Subtext 02</span>
-                               <span class="ui-li-text-sub3">Subtext 03</span>
-                       </li>
-                       <li class="ui-li-email-name1-btn-warning">
-                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
-                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
-                               <span class="ui-li-text-main">email-name1-btn-warning</span>
-                               <div data-role="button" data-inline="true">3 ></div>
-                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-warning">
-                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
-                               <span class="ui-li-text-sub1">Subtext 01</span>
-                               <span class="ui-li-text-sub2">Subtext 02</span>
-                               <span class="ui-li-text-sub3">Subtext 03</span>
-                       </li>
-                       <li class="ui-li-email-name2-btn-warning">
-                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
-                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
-                               <span class="ui-li-text-main">email-name2-btn-warning</span>
-                               <div data-role="button" data-inline="true">3 ></div>
-                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-warning">
-                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
-                               <span class="ui-li-text-sub1">Subtext 01</span>
-                               <span class="ui-li-text-sub2">Subtext 02</span>
-                               <span class="ui-li-text-sub3">Subtext 03</span>
-                       </li>
-                       <li class="ui-li-email-name1-warning">
-                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
-                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
-                               <span class="ui-li-text-main">email-name1-warning</span>
-                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-warning">
-                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
-                               <span class="ui-li-text-sub1">Subtext 01</span>
-                               <span class="ui-li-text-sub2">Subtext 02</span>
-                               <span class="ui-li-text-sub3">Subtext 03</span>
-                       </li>
-                       <li class="ui-li-email-name2-warning">
-                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
-                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
-                               <span class="ui-li-text-main">email-name2-warning</span>
-                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-warning">
-                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
-                               <span class="ui-li-text-sub1">Subtext 01</span>
-                               <span class="ui-li-text-sub2">Subtext 02</span>
-                               <span class="ui-li-text-sub3">Subtext 03</span>
-                       </li>
-                       <li class="ui-li-email-name1-btn-attach">
-                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
-                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
-                               <span class="ui-li-text-main">email-name1-btn-attach</span>
-                               <div data-role="button" data-inline="true">3 ></div>
-                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-attach">
-                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
-                               <span class="ui-li-text-sub1">Subtext 01</span>
-                               <span class="ui-li-text-sub2">Subtext 02</span>
-                               <span class="ui-li-text-sub3">Subtext 03</span>
-                       </li>
-                       <li class="ui-li-email-name2-btn-attach">
-                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
-                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
-                               <span class="ui-li-text-main">email-name2-btn-attach</span>
-                               <div data-role="button" data-inline="true">3 ></div>
-                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-attach">
-                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
-                               <span class="ui-li-text-sub1">Subtext 01</span>
-                               <span class="ui-li-text-sub2">Subtext 02</span>
-                               <span class="ui-li-text-sub3">Subtext 03</span>
-                       </li>
-                       <li class="ui-li-email-name1-attach">
-                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
-                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
-                               <span class="ui-li-text-main">email-name1-attach</span>
-                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-attach">
-                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
-                               <span class="ui-li-text-sub1">Subtext 01</span>
-                               <span class="ui-li-text-sub2">Subtext 02</span>
-                               <span class="ui-li-text-sub3">Subtext 03</span>
-                       </li>
-                       <li class="ui-li-email-name2-attach">
-                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
-                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
-                               <span class="ui-li-text-main">email-name2-attach</span>
-                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-attach">
-                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
-                               <span class="ui-li-text-sub1">Subtext 01</span>
-                               <span class="ui-li-text-sub2">Subtext 02</span>
-                               <span class="ui-li-text-sub3">Subtext 03</span>
-                       </li>
-                       <li class="ui-li-email-name1-btn-warning-attach">
-                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
-                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
-                               <span class="ui-li-text-main">email-name1-btn-warning-attach</span>
-                               <div data-role="button" data-inline="true">3 ></div>
-                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-attach">
-                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-warning">
-                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
-                               <span class="ui-li-text-sub1">Subtext 01</span>
-                               <span class="ui-li-text-sub2">Subtext 02</span>
-                               <span class="ui-li-text-sub3">Subtext 03</span>
-                       </li>
-                       <li class="ui-li-email-name2-btn-warning-attach">
-                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
-                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
-                               <span class="ui-li-text-main">email-name2-btn-warning-attach</span>
-                               <div data-role="button" data-inline="true">3 ></div>
-                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-attach">
-                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-warning">
-                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
-                               <span class="ui-li-text-sub1">Subtext 01</span>
-                               <span class="ui-li-text-sub2">Subtext 02</span>
-                               <span class="ui-li-text-sub3">Subtext 03</span>
-                       </li>
-                       <li class="ui-li-email-name1-warning-attach">
-                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
-                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
-                               <span class="ui-li-text-main">email-name1-warning-attach</span>
-                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-attach">
-                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-warning">
-                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
-                               <span class="ui-li-text-sub1">Subtext 01</span>
-                               <span class="ui-li-text-sub2">Subtext 02</span>
-                               <span class="ui-li-text-sub3">Subtext 03</span>
-                       </li>
-                       <li class="ui-li-email-name2-warning-attach">
-                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
-                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
-                               <span class="ui-li-text-main">email-name2-warning-attach</span>
-                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-attach">
-                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-warning">
-                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
-                               <span class="ui-li-text-sub1">Subtext 01</span>
-                               <span class="ui-li-text-sub2">Subtext 02</span>
-                               <span class="ui-li-text-sub3">Subtext 03</span>
-                       </li>
-
-               </ul>
-       </div>
-</div>
-
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-expandable.html b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-expandable.html
deleted file mode 100644 (file)
index 2d4ef69..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-<div data-role="page" id="genlist-expandable" data-add-back-btn="true">
-       <div data-role="header" data-position="fixed">
-               <h1>expandable list</h1>
-       </div>
-       <div data-role="content">
-               <ul data-role="listview">
-                       <li class="ui-li-dialogue" data-expandable="true" id="exp1" data-initial-expansion="true">1line</li>
-                       <li class="ui-li-dialogue" data-expanded-by="exp1">exp1-sub 1</li>
-                       <li class="ui-li-dialogue" data-expanded-by="exp1">exp1-sub 2</li>
-                       <li class="ui-li-dialogue" data-expanded-by="exp1">exp1-sub 3</li>
-                       <li class="ui-li-dialogue" data-expanded-by="exp1">exp1-sub 4</li>
-                       <li class="ui-li-dialogue" data-expanded-by="exp1">exp1-sub 5</li>
-                       <li class="ui-li-dialogue" data-expanded-by="exp1">exp1-sub 6</li>
-                       <li class="ui-li-dialogue" data-expanded-by="exp1">exp1-sub 7</li>
-                       <li class="ui-li-dialogue" data-expanded-by="exp1" data-expandable="true" id="exp2">exp1-sub 2 (exp2)</li>
-                       <li class="ui-li-dialogue" data-expanded-by="exp2">exp2-sub 1</li>
-                       <li class="ui-li-dialogue" data-expanded-by="exp2">exp2-sub 2</li>
-                       <li class="ui-li-dialogue" data-expanded-by="exp2">exp2-sub 3</li>
-                       <li class="ui-li-dialogue" data-expandable="true" id="exp3">
-                               <span class="ui-li-text-main">2line</span>
-                               <span class="ui-li-text-sub">Subtext</span>
-                       </li>
-                       <li class="ui-li-dialogue" data-expandable="true" id="exp4">
-                               <span class="ui-li-text-main">2line-sub-main</span>
-                               <span class="ui-li-text-sub">Subtext</span>
-                       </li>
-                       <li class="ui-li-has-radio ui-li-dialogue" data-expandable="true" id="exp5">
-                               <span class="ui-li-text-main">2line-radio1</span>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <form><input type="radio" /></form>
-                       </li>
-                       <li class="ui-li-dialogue" data-expandable="true" id="exp6">
-                               <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
-                               <span class="ui-li-text-main">2line-colorbar3</span>
-                               <span class="ui-li-text-sub">Subtext</span>
-<!--                           <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div> -->
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-               </ul>
-       </div>
-       <div data-role="footer">
-       </div>
-</div>
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-extendable.html b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-extendable.html
deleted file mode 100644 (file)
index 6aa0e73..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<div data-role="page" id="genlist_extendable_page" data-add-back-btn="true">
-       <script id="tmp-1line" type="text/x-jquery-tmpl">
-               <li class="ui-li-1line"><span class="ui-li-text-main">${NAME}</span></li>
-       </script>
-       <script id="tmp_load_more" type="text/x-jquery-tmpl">
-               <li class="ui-li-1line" style="text-align:center; margin:0 auto">
-                       <div data-role="button">Load ${NUM_MORE_ITEMS} more items</div>
-               </li>
-       </script>
-       
-       <div data-role="header" data-position="fixed">
-               <h1>extendable list</h1>
-       </div>
-       <div data-role="content">
-               <ul id = "extendable_list_main" data-role="extendablelist" data-extenditems="50" data-template="tmp-1line" data-dbtable="JSON_DATA">
-               </ul>
-       </div>
-       <div data-role="footer">
-       </div>
-</div>
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-multiline.html b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-multiline.html
deleted file mode 100644 (file)
index bbddd2b..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<div data-role="page" id="genlist-multiline" data-add-back-btn="true">
-
-<div data-role="header">
-       <h1>Multiline lists</h1>
-</div>
-
-<div data-role="content">
-       <ul data-role="listview">
-               <li class="ui-li-3-4-1">
-                       <h1>3-4-1 Main item</h1>
-                       Hundres of charities, hobby clubs and professional associations in the suburbs and thousands in the state could be forced to pay taxes for the first time next year.
-               </li>
-               <li class="ui-li-3-4-5">
-                       <h1>3-4-5</h1>
-                       Hundres of charities, hobby clubs and professional associations in the suburbs and thousands in the state could be forced to pay taxes for the first time next year.
-               </li>
-       </ul>
-</div>
-
-</div>
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-normal.html b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-normal.html
deleted file mode 100644 (file)
index 545bfdc..0000000
+++ /dev/null
@@ -1,341 +0,0 @@
-<div data-role="page" id="genlist-normal" data-add-back-btn="true" data-fit-page-to-window="true">
-       <div data-role="header" data-position="fixed">
-               <h1>Normal lists</h1>
-       </div>
-       <div class="content" data-role="content" data-scroll="y">
-               <ul data-role="listview">
-
-                       <li class="ui-li-1line">
-                       <span class="ui-li-text-main">1line</span>
-                       </li>
-
-                       <li class="ui-li-1line-sub">
-                       <span class="ui-li-text-main">1line-sub</span>
-                       <span class="ui-li-text-sub">subtext</sub>
-                       </li>
-                       <li class="ui-li-1line-setting">
-                       <span class="ui-li-text-main">1line-setting</span>
-                       <span class="ui-li-text-sub">Sub text</span>
-                       </li>
-                       <li class="ui-li-1line-btn1">
-                       <span class="ui-li-text-main">1line-btn1</span>
-                       <div data-role="button" data-inline="true">Text Button</div>
-                       </li>
-                       <li class="ui-li-1line-btn2">
-                       <span class="ui-li-text-main">1line-btn2</span>
-                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-                       <li class="ui-li-1line-toggle">
-                       <span class="ui-li-text-main">1line-toggle</span>
-                       <div data-role="toggleswitch"/></div>
-                       </li>
-
-                       <li class="ui-li-1line-bigicon1">
-                       <span class="ui-li-text-main">1line-bigicon1</span>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-                       <li class="ui-li-1line-bigicon2">
-                       <span class="ui-li-text-main">1line-bigicon2</span>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       <span class="ui-li-text-sub">Sub text</span>
-                       </li>
-                       <li class="ui-li-1line-bigicon4">
-                       <span class="ui-li-text-main">1line-bigicon4</span>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       <div data-role="button" data-inline="true">Text Button</div>
-                       </li>
-                       <li class="ui-li-1line-bigicon5">
-                       <span class="ui-li-text-main">1line-bigicon5</span>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-                       <li class="ui-li-1line-bigicon6">
-                       <span class="ui-li-text-main">1line-bigicon6</span>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       <div data-role="toggleswitch"/></div>
-                       </li>
-                       <li class="ui-li-1line-check1">
-                       <span class="ui-li-text-main">1line-check1</span>
-                       <form><input type="checkbox" name="c1line-check1" /></form>
-                       </li>
-                       <li class="ui-li-1line-check2">
-                       <span class="ui-li-text-main">1line-check2</span>
-                       <form><input type="checkbox" name="c1line-check2" /></form>
-                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-                       <li class="ui-li-1line-check3">
-                       <span class="ui-li-text-main">1line-check3</span>
-                       <form><input type="checkbox"  name="c1line-check3" /></form>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-                       <li class="ui-li-1line-check4">
-                       <span class="ui-li-text-main">1line-check4</span>
-                       <form><input type="checkbox"  name="c1line-check4" /></form>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-                       <li class="ui-li-1line-radio1">
-                       <span class="ui-li-text-main">1line-radio1</span>
-                       <form><input type="radio" /></form>
-                       </li>
-                       <li class="ui-li-1line-radio3">
-                       <span class="ui-li-text-main">1line-radio3</span>
-                       <form><input type="radio" /></form>
-                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-                       <li class="ui-li-1line-radio4">
-                       <span class="ui-li-text-main">1line-radio4</span>
-                       <form><input type="radio" /></form>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-                       <li class="ui-li-1line-radio5">
-                       <span class="ui-li-text-main">1line-radio5</span>
-                       <form><input type="radio" /></form>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-                       <li class="ui-li-1line-radio6">
-                       <span class="ui-li-text-main">1line-radio6</span>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-                       <li class="ui-li-2line">
-                       <span class="ui-li-text-main">2line</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       </li>
-
-                       <li class="ui-li-2line-sub-main">
-                       <span class="ui-li-text-main">2line-sub-main</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       </li>
-
-                       <li class="ui-li-2line-2sub">
-                       <span class="ui-li-text-main">2line-2sub</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <span class="ui-li-text-sub2">Subtext2</span>
-                       </li>
-
-                       <li class="ui-li-2line-btn1">
-                       <span class="ui-li-text-main">2line-btn1</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <div data-role="button" data-inline="true">button</div>
-                       </li>
-
-                       <li class="ui-li-2line-btn1">
-                       <span class="ui-li-text-main">2line-btn1</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <div data-role="button" data-inline="true" data-icon="call"></div>
-                       </li>
-
-                       <li class="ui-li-2line-btn2">
-                       <span class="ui-li-text-main">2line-btn2</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-2line-star1">
-                       <span class="ui-li-text-main">2line-star1</span>
-                       <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <span class="ui-li-text-sub2">Subtext2</span>
-                       </li>
-
-                       <li class="ui-li-2line-star2">
-                       <span class="ui-li-text-main">2line-star2</span>
-                       <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
-                       <span class="ui-li-text-sub"><img src="00_winset_icon_favorite_on.png">Subtext</span>
-                       <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
-                       </li>
-
-                       <li class="ui-li-2line-setting">
-                       <span class="ui-li-text-main">2line-setting</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       </li>
-
-                       <li class="ui-li-2line-toggle-setting">
-                       <span class="ui-li-text-main">2line-toggle-setting</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <div data-role="toggleswitch"/></div>
-                       </li>
-
-                       <li class="ui-li-2line-btn-setting">
-                       <span class="ui-li-text-main">2line-btn-setting</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-2line-bigicon0">
-                       <span class="ui-li-text-main">2line-bigicon0</span>
-                       <span class="ui-li-text-sub">Subtext<img src="00_winset_icon_favorite_on.png"></span>
-                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-2line-bigicon1">
-                       <span class="ui-li-text-main">2line-bigicon1</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-                       <li class="ui-li-2line-bigicon2">
-                       <span class="ui-li-text-main">2line-bigicon2</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       <span class="ui-li-text-sub2">Subtext2</span>
-                       </li>
-
-                       <li class="ui-li-2line-bigicon3">
-                       <span class="ui-li-text-main">2line-bigicon3</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-                       <li class="ui-li-2line-bigicon4">
-                       <span class="ui-li-text-main">2line-bigicon4</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-                       <li class="ui-li-2line-check1">
-                       <span class="ui-li-text-main">2line-check1</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <form><input type="checkbox"  name="c2line-check1" /></form>
-                       </li>
-
-                       <li class="ui-li-2line-check2">
-                       <span class="ui-li-text-main">2line-check2</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <form><input type="checkbox"  name="c2line-check2" /></form>
-                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-2line-check3">
-                       <span class="ui-li-text-main">2line-check3</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <form><input type="checkbox"  name="c2line-check3" /></form>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-
-                       <li class="ui-li-2line-radio1">
-                       <span class="ui-li-text-main">2line-radio1</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <form><input type="radio" /></form>
-                       </li>
-
-                       <li class="ui-li-2line-radio2">
-                       <span class="ui-li-text-main">2line-radio2</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <form><input type="radio" /></form>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-
-                       <li class="ui-li-2line-colorbar1">
-                       <span class="ui-li-color-bar"></span>
-                       <span class="ui-li-text-main">2line-colorbar1</span>
-                       <span class="ui-li-text-sub">Subtext
-                               <img src="00_winset_icon_favorite_on.png">
-                               <img src="00_winset_icon_favorite_on.png">
-                               <img src="00_winset_icon_favorite_on.png">
-                       </span>
-                       <span class="ui-li-text-sub2">Subtext2</span>
-                       <div data-role="button" data-inline="true">button</div>
-                       </li>
-
-                       <li class="ui-li-2line-colorbar2">
-                       <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
-                       <span class="ui-li-text-main">2line-colorbar2<img src="00_winset_icon_favorite_on.png"></span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <div data-role="button" data-inline="true">button</div>
-                       </li>
-
-                       <li class="ui-li-2line-colorbar2">
-                       <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
-                       <span class="ui-li-text-main">2line-colorbar2<img src="00_winset_icon_favorite_on.png"></span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <div data-role="button" data-inline="true" data-icon="call"></div>
-                       </li>
-
-                       <li class="ui-li-2line-colorbar3">
-                       <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
-                       <span class="ui-li-text-main">2line-colorbar3</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-                       <li class="ui-li-2line-bigicon8">
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       <span class="ui-li-text-main">2line-bigicon8</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
-                       </li>
-
-                       <li class="ui-li-2line-thumb1">
-                       <span class="ui-li-text-main">2line-thumb1</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-                       <li class="ui-li-2line-thumb2">
-                       <span class="ui-li-text-main">2line-thumb2<img src="00_winset_icon_favorite_on.png"></span>
-                       <span class="ui-li-text-sub"><img src="00_winset_icon_favorite_on.png">Subtext</span>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-                       <li class="ui-li-2line-sub-main-bigicon1">
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <span class="ui-li-text-main">2line-sub-main-bigicon1</span>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-                       <li class="ui-li-2line-bigicon-pgbar1">
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       <span class="ui-li-text-main">2line-bigicon-pgbar1</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <span class="ui-li-text-sub2">Subtext2</span>
-                       <div data-role="button" data-inline="true">Cancel</div>
-                       <div data-role="progressbar" id="progressbar"></div>
-                       </li>
-
-                       <li class="ui-li-2line-bigicon-pgbar2">
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       <span class="ui-li-text-main">2line-bigicon-pgbar2</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <div data-role="button" data-inline="true">button</div>
-                       </li>
-
-                       <li class="ui-li-2line-bigicon-pgbar2">
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       <span class="ui-li-text-main">2line-bigicon-pgbar2</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <div data-role="button" data-inline="true" data-icon="call"></div>
-                       </li>
-
-                       <li class="ui-li-2line-bigicon-pgbar3">
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       <span class="ui-li-text-main">2line-bigicon-pgbar3</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <span class="ui-li-text-sub2">Subtext2</span>
-                       <div data-role="progressing" data-style="pending" id="pending"></div>
-                       </li>
-
-                       <li class="ui-li-2line-icon-bigicon-btn">
-                       <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       <span class="ui-li-text-main">2line-icon-bigicon-btn</span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-2line-thumb3">
-                       <span class="ui-li-text-main">2line-thumb3<img src="00_winset_icon_favorite_on.png"></span>
-                       <span class="ui-li-text-sub">Subtext</span>
-                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-               </ul>
-       </div>
-</div>
-
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-normal_anchor.html b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-normal_anchor.html
deleted file mode 100644 (file)
index 0c98bdb..0000000
+++ /dev/null
@@ -1,459 +0,0 @@
-<div data-role="page" id="genlist-normal" data-add-back-btn="true">
-       <div data-role="header" data-position="fixed">
-               <h1>Normal anchor lists</h1>
-       </div>
-       <div class="content" data-role="content" data-scroll="y">
-               <ul data-role="listview">
-
-                       <li>
-                               <a href="#">
-                                       1line
-                               </a>
-                       </li>
-
-                       <li>
-                               <a href="#">
-                                       1line-sub
-                                       <span class="ui-li-text-sub">Sub text</span>
-                               </a>
-                       </li>
-
-                       <li>
-                               <a href="#">
-                                       1line-btn1
-                                       <div data-role="button" data-inline="true">Text Button</div>
-                               </a>
-                       </li>
-
-                       <li>
-                               <a href="#">
-                                       1line-btn2
-                                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li>
-                               <a href="#">
-                                       1line-toggle
-                                       <div data-role="toggleswitch"/></div>
-                               </a>
-                       </li>
-
-                       <li>
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       1line-bigicon1
-                               </a>
-                       </li>
-
-                       <li>
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       1line-bigicon2
-                                       <span class="ui-li-text-sub">Sub text</span>
-                               </a>
-                       </li>
-
-                       <li>
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       1line-bigicon4
-                                       <div data-role="button" data-inline="true">Text Button</div>
-                               </a>
-                       </li>
-
-                       <li>
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       1line-bigicon5
-                                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li>
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       1line-bigicon6
-                                       <div data-role="toggleswitch"/></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-checkbox">
-                               <a href="#">
-                                       <form><input type="checkbox" name="c1line-check1" /></form>
-                                       1line-check1
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-checkbox">
-                               <a href="#">
-                                       <form><input type="checkbox" name="c1line-check2" /></form>
-                                       1line-check2
-                                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-checkbox">
-                               <a href="#">
-                                       <form><input type="checkbox"  name="c1line-check3" /></form>
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon" >
-                                       1line-check3
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-checkbox">
-                               <a href="#">
-                                       <form><input type="checkbox"  name="c1line-check4" /></form>
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       1line-check4
-                                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-radio">
-                               <a href="#">
-                                       <form><input type="radio" /></form>
-                                       1line-radio1
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-radio">
-                               <a href="#">
-                                       <form><input type="radio" /></form>
-                                       1line-radio3
-                                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-radio">
-                               <a href="#">
-                                       <form><input type="radio" /></form>
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       1line-radio4
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-radio">
-                               <a href="#">
-                                       <form><input type="radio" /></form>
-                                       1line-radio5
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-radio">
-                               <a href="#">
-                                       <form><input type="radio" /></form>
-                                       1line-radio6
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       2line
-                                       <span class="ui-li-text-sub">Subtext</span>
-                               </a>
-                       </li>
-
-<!--                   <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       2line-sub-main
-                               </a>
-                       </li>-->
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       2line-2sub
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <span class="ui-li-text-sub2">Subtext2</span>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       2line-btn1
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="button" data-inline="true">button</div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       2line-btn1
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="button" data-inline="true" data-icon="call"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       2line-btn2
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       2line-star1
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <span style="position:absolute; right:16px; top:80px"><img class= "ui-li-icon-sub-right" src="00_winset_icon_favorite_on.png"></span>
-                                       <span class="ui-li-text-sub2">Subtext2</span>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       2line-star2
-                                       <span class="ui-li-text-sub"><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png">Subtext</span>
-                                       <span><img class="ui-li-icon-sub-right" src="00_winset_icon_favorite_on.png"></span>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       2line-setting
-                                       <span class="ui-li-text-sub">Subtext</span>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       2line-toggle-setting
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="toggleswitch"/></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       2line-btn-setting
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       2line-bigicon0
-                                       <span class="ui-li-text-sub">Subtext<img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
-                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       2line-bigicon1
-                                       <span class="ui-li-text-sub">Subtext</span>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       2line-bigicon2
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <span class="ui-li-text-sub2">Subtext2</span>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       2line-bigicon3
-                                       <span class="ui-li-text-sub">Subtext</span>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       2line-bigicon4
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-checkbox ui-li-has-multiline">
-                               <a href="#">
-                                       <form><input type="checkbox"  name="c2line-check1" /></form>
-                                       2line-check
-                                       <span class="ui-li-text-sub">Subtext</span>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-checkbox ui-li-has-multiline">
-                               <a href="#">
-                                       <form><input type="checkbox"  name="c2line-check2" /></form>
-                                       2line-check2
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-checkbox ui-li-has-multiline">
-                               <a href="#">
-                                       <form><input type="checkbox"  name="c2line-check3" /></form>
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       2line-check3
-                                       <span class="ui-li-text-sub">Subtext</span>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-checkbox ui-li-has-multiline">
-                               <a href="#">
-                                       <form><input type="radio" /></form>
-                                       2line-radio1
-                                       <span class="ui-li-text-sub">Subtext</span>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-checkbox ui-li-has-multiline">
-                               <a href="#">
-                                       <form><input type="radio" /></form>
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       2line-radio2
-                                       <span class="ui-li-text-sub">Subtext</span>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <span class="ui-li-color-bar"></span>
-                                       2line-colorbar1
-                                       <span class="ui-li-text-sub">Subtext
-                                               <img src="00_winset_icon_favorite_on.png">
-                                               <img src="00_winset_icon_favorite_on.png">
-                                               <img src="00_winset_icon_favorite_on.png">
-                                       </span>
-                                       <div data-role="button" data-inline="true">button</div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
-                                       2line-colorbar2
-                                       <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="button" data-inline="true">button</div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
-                                       2line-colorbar2
-                                       <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="button" data-inline="true" data-icon="call"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       2line-colorbar3
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       2line-bigicon8
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline ui-li-thumbnail-right">
-                               <a href="#">
-                                       2line-thumb1
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       2line-thumb2
-                                       <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
-                                       <span class="ui-li-text-sub"><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png">Subtext</span>
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline ui-li-thumbnail-right">
-                               <a href="#">
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       2line-sub-main-bigicon1
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       2line-bigicon-pgbar1
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="progressbar" id="progressbar"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       2line-bigicon-pgbar2
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="button" data-inline="true">button</div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       2line-bigicon-pgbar2
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="button" data-inline="true" data-icon="call"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       2line-bigicon-pgbar3
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <span class="ui-li-text-sub2">Subtext2</span>
-                                       <div data-role="progressing" data-style="pending" id="pending"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-checkbox ui-li-has-multiline">
-                               <a href="#">
-                                       <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       2line-icon-bigicon-btn
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       2line-thumb3
-                                       <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               </a>
-                       </li>
-               </ul>
-       </div>
-</div>
-
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-normal_anchor_h3.html b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-normal_anchor_h3.html
deleted file mode 100644 (file)
index 8a94f64..0000000
+++ /dev/null
@@ -1,460 +0,0 @@
-<div data-role="page" id="genlist-normal" data-add-back-btn="true">
-       <div data-role="header" data-position="fixed">
-               <h1>Normal anchor lists</h1>
-       </div>
-       <div class="content" data-role="content" data-scroll="y">
-               <ul data-role="listview">
-
-                       <li>
-                               <a href="#">
-                                       <h3>1line</h3>
-                               </a>
-                       </li>
-
-                       <li>
-                               <a href="#">
-                                       <h3>1line-setting</h3>
-                                       <span class="ui-li-text-sub">Sub text</span>
-                               </a>
-                       </li>
-
-                       <li>
-                               <a href="#">
-                                       <h3>1line-btn1</h3>
-                                       <div data-role="button" data-inline="true">Text Button</div>
-                               </a>
-                       </li>
-
-                       <li>
-                               <a href="#">
-                                       <h3>1line-btn2</h3>
-                                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li>
-                               <a href="#">
-                                       <h3>1line-toggle</h3>
-                                       <div data-role="toggleswitch"/></div>
-                               </a>
-                       </li>
-
-                       <li>
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       <h3>1line-bigicon1</h3>
-                               </a>
-                       </li>
-
-                       <li>
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       <h3>1line-bigicon2</h3>
-                                       <span class="ui-li-text-sub">Sub text</span>
-                               </a>
-                       </li>
-
-                       <li>
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       <h3>1line-bigicon4</h3>
-                                       <div data-role="button" data-inline="true">Text Button</div>
-                               </a>
-                       </li>
-
-                       <li>
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       <h3>1line-bigicon5</h3>
-                                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li>
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       <h3>1line-bigicon6</h3>
-                                       <div data-role="toggleswitch"/></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-checkbox">
-                               <a href="#">
-                                       <form><input type="checkbox" name="c1line-check1" /></form>
-                                       <h3>1line-check1</h3>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-checkbox">
-                               <a href="#">
-                                       <form><input type="checkbox" name="c1line-check2" /></form>
-                                       <h3>1line-check2</h3>
-                                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-checkbox">
-                               <a href="#">
-                                       <form><input type="checkbox"  name="c1line-check3" /></form>
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       <h3>1line-check3</h3>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-checkbox">
-                               <a href="#">
-                                       <form><input type="checkbox"  name="c1line-check4" /></form>
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       <h3>1line-check4</h3>
-                                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-radio">
-                               <a href="#">
-                                       <form><input type="radio" /></form>
-                                       <h3>1line-radio1</h3>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-radio">
-                               <a href="#">
-                                       <form><input type="radio" /></form>
-                                       <h3>1line-radio3</h3>
-                                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-radio">
-                               <a href="#">
-                                       <form><input type="radio" /></form>
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       <h3>1line-radio4</h3>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-radio">
-                               <a href="#">
-                                       <form><input type="radio" /></form>
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       <h3>1line-radio5</h3>
-                                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-radio">
-                               <a href="#">
-                                       <form><input type="radio" /></form>
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       <h3>1line-radio6</h3>
-                                       
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <h3>2line</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                               </a>
-                       </li>
-
-<!--                   <li class="ui-li-2line-sub-main">
-                               <a href="#">
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <h3>2line-sub-main</h3>
-                               </a>
-                       </li>-->
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <h3>2line-2sub</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <span class="ui-li-text-sub2">Subtext2</span>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <h3>2line-btn1</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="button" data-inline="true">button</div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <h3>2line-btn1</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="button" data-inline="true" data-icon="call"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <h3>2line-btn2</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <h3>line-star1</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <span style="position:absolute; right:16px; top:80px"><img class= "ui-li-icon-sub-right" src="00_winset_icon_favorite_on.png"></span>
-                                       <span class="ui-li-text-sub2">Subtext2</span>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <h3>2line-star</h3>
-                                       <span class="ui-li-text-sub"><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png">Subtext</span>
-                                       <span><img class="ui-li-icon-sub-right" src="00_winset_icon_favorite_on.png"></span>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <h3>2line-setting</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <h3>2line-toggle-setting</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="toggleswitch"/></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <h3>2line-btn-setting</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <h3>2line-bigicon0</h3>
-                                       <span class="ui-li-text-sub">Subtext<img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
-                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       <h3>2line-bigicon1</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       <h3>2line-bigicon2</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <span class="ui-li-text-sub2">Subtext2</span>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       <h3>2line-bigicon3</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       <h3>2line-bigicon4</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-checkbox ui-li-has-multiline">
-                               <a href="#">
-                                       <form><input type="checkbox"  name="c2line-check1" /></form>
-                                       <h3>2line-check</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-checkbox ui-li-has-multiline">
-                               <a href="#">
-                                       <form><input type="checkbox"  name="c2line-check2" /></form>
-                                       <h3>2line-check2</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-checkbox ui-li-has-multiline">
-                               <a href="#">
-                                       <form><input type="checkbox"  name="c2line-check3" /></form>
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       <h3>2line-check3</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-checkbox ui-li-has-multiline">
-                               <a href="#">
-                                       <form><input type="radio" /></form>
-                                       <h3>2line-radio1</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-checkbox ui-li-has-multiline">
-                               <a href="#">
-                                       <form><input type="radio" /></form>
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       <h3>2line-radio2</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <span class="ui-li-color-bar"></span>
-                                       <h3>2line-colorbar1</h3>
-                                       <span class="ui-li-text-sub">Subtext
-                                               <img src="00_winset_icon_favorite_on.png">
-                                               <img src="00_winset_icon_favorite_on.png">
-                                               <img src="00_winset_icon_favorite_on.png">
-                                       </span>
-                                       <div data-role="button" data-inline="true">button</div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
-                                       <h3>2line-colorbar2</h3>
-                                       <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="button" data-inline="true">button</div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
-                                       <h3>2line-colorbar2</h3>
-                                       <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="button" data-inline="true" data-icon="call"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       <h3>2line-colorbar3</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       <h3>2line-bigicon8</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline ui-li-thumbnail-right">
-                               <a href="#">
-                                       <h3>2line-thumb1</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <h3>2line-thumb2</h3>
-                                       <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
-                                       <span class="ui-li-text-sub"><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png">Subtext</span>
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline ui-li-thumbnail-right">
-                               <a href="#">
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <h3>2line-sub-main-bigicon1</h3>
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       <h3>2line-bigicon-pgbar1</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="progressbar" id="progressbar"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       <h3>2line-bigicon-pgbar2</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="button" data-inline="true">button</div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       <h3>2line-bigicon-pgbar2</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="button" data-inline="true" data-icon="call"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       <h3>2line-bigicon-pgbar3</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <span class="ui-li-text-sub2">Subtext2</span>
-                                       <div data-role="progressing" data-style="pending" id="pending"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-checkbox ui-li-has-multiline">
-                               <a href="#">
-                                       <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                                       <h3>2line-icon-bigicon-btn</h3>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                               </a>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <a href="#">
-                                       <h3>2line-thumb3</h3>
-                                       <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
-                                       <span class="ui-li-text-sub">Subtext</span>
-                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               </a>
-                       </li>
-               </ul>
-       </div>
-</div>
-
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-normal_no_anchor.html b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-normal_no_anchor.html
deleted file mode 100644 (file)
index ca02d8c..0000000
+++ /dev/null
@@ -1,346 +0,0 @@
-<div data-role="page" id="genlist-normal" data-add-back-btn="true" data-fit-page-to-window="true">
-       <div data-role="header" data-position="fixed">
-               <h1>Normal lists</h1>
-       </div>
-       <div class="content" data-role="content" data-scroll="y">
-               <ul data-role="listview">
-
-                       <li>
-                               1line
-                       </li>
-
-                       <li>
-                               1line-sub
-                               <span class="ui-li-text-sub">subtext</span>
-                       </li>
-
-                       <li>
-                               1line-btn1
-                               <div data-role="button" data-inline="true">Text Button</div>
-                       </li>
-
-                       <li>
-                               1line-btn2
-                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-
-                       <li>
-                               1line-toggle
-                               <div data-role="toggleswitch"/></div>
-                       </li>
-
-                       <li>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               1line-bigicon1
-                       </li>
-
-                       <li>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               1line-bigicon2
-                               <span class="ui-li-text-sub">Sub text</span>
-                       </li>
-
-                       <li>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               1line-bigicon4
-                               <div data-role="button" data-inline="true">Text Button</div>
-                       </li>
-
-                       <li>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               1line-bigicon5
-                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-
-                       <li>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               1line-bigicon6
-                               <div data-role="toggleswitch"/></div>
-                       </li>
-
-                       <li class="ui-li-has-checkbox">
-                               <input type="checkbox" name="c1line-check1" />
-                               1line-check1
-                       </li>
-
-                       <li class="ui-li-has-checkbox">
-                               <form><input type="checkbox" name="c1line-check2" /></form>
-                               1line-check2
-                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-has-checkbox">
-                               <form><input type="checkbox"  name="c1line-check3" /></form>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               1line-check3
-                       </li>
-
-                       <li class="ui-li-has-checkbox">
-                               <form><input type="checkbox"  name="c1line-check4" /></form>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               1line-check4
-                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-has-radio">
-                               <form><input type="radio" /></form>
-                               1line-radio1
-                       </li>
-
-                       <li class="ui-li-has-radio">
-                               <form><input type="radio" /></form>
-                               1line-radio3
-                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-has-radio">
-                               <form><input type="radio" /></form>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               1line-radio4
-                       </li>
-
-                       <li class="ui-li-has-radio">
-                               <form><input type="radio" /></form>
-                               1line-radio5
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-has-radio">
-                               <form><input type="radio" /></form>
-                               1line-radio
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               2line
-                               <span class="ui-li-text-sub">Subtext</span>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               2line-2sub
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <span class="ui-li-text-sub2">Subtext2</span>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               2line-btn1
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true">button</div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               2line-btn1
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true" data-icon="call"></div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               2line-btn2
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               2line-star1
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <span style="position:absolute; right:16px; top:80px"><img class= "ui-li-icon-sub-right" src="00_winset_icon_favorite_on.png"></span>
-                               <span class="ui-li-text-sub2">Subtext2</span>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               2line-star2
-                               <span class="ui-li-text-sub"><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png">Subtext</span>
-                               <span><img class="ui-li-icon-sub-right" src="00_winset_icon_favorite_on.png"></span>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               2line-setting
-                               <span class="ui-li-text-sub">Subtext</span>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               2line-toggle-setting
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="toggleswitch"/></div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               2line-btn-setting
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               2line-bigicon0
-                               <span class="ui-li-text-sub">Subtext<img src="00_winset_icon_favorite_on.png"></span>
-                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               2line-bigicon1
-                               <span class="ui-li-text-sub">Subtext</span>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               2line-bigicon2
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <span class="ui-li-text-sub2">Subtext2</span>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               2line-bigicon3
-                               <span class="ui-li-text-sub">Subtext</span>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               2line-bigicon4
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-has-checkbox ui-li-has-multiline">
-                               <form><input type="checkbox"  name="c2line-check1" /></form>
-                               2line-check
-                               <span class="ui-li-text-sub">Subtext</span>
-                       </li>
-
-                       <li class="ui-li-has-checkbox ui-li-has-multiline">
-                               <form><input type="checkbox"  name="c2line-check2" /></form>
-                               2line-check2
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-has-checkbox ui-li-has-multiline">
-                               <form><input type="checkbox"  name="c2line-check3" /></form>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               2line-check3
-                               <span class="ui-li-text-sub">Subtext</span>
-                       </li>
-
-                       <li class="ui-li-has-radio ui-li-has-multiline">
-                               <form><input type="radio" /></form>
-                               2line-radio1
-                               <span class="ui-li-text-sub">Subtext</span>
-                       </li>
-
-                       <li class="ui-li-has-radio ui-li-has-multiline">
-                               <form><input type="radio" /></form>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               2line-radio2
-                               <span class="ui-li-text-sub">Subtext</span>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <span class="ui-li-color-bar"></span>
-                               2line-colorbar1
-                               <span class="ui-li-text-sub">Subtext
-                                       <img src="00_winset_icon_favorite_on.png">
-                                       <img src="00_winset_icon_favorite_on.png">
-                                       <img src="00_winset_icon_favorite_on.png">
-                               </span>
-                               <div data-role="button" data-inline="true">button</div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
-                               2line-colorbar2
-                               <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true">button</div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
-                               2line-colorbar2
-                               <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true" data-icon="call"></div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               2line-colorbar3
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               2line-bigicon8
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
-                       </li>
-
-                       <li class="ui-li-has-multiline ui-li-thumbnail-right">
-                               2line-thumb1
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-                       <li class="ui-li-has-multiline ui-li-thumbnail-right">
-                               2line-thumb2
-                               <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
-                               <span class="ui-li-text-sub"><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png">Subtext</span>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-                       <li class="ui-li-has-multiline ui-li-thumbnail-right">
-                               <span class="ui-li-text-sub">Subtext</span>
-                               2line-sub-main-bigicon1
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               2line-bigicon-pgbar1
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <span class="ui-li-text-sub2">Subtext2</span>
-                               <div data-role="progressbar" id="progressbar"></div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               2line-bigicon-pgbar2
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true">button</div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               2line-bigicon-pgbar2
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true" data-icon="call"></div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               2line-bigicon-pgbar3
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <span class="ui-li-text-sub2">Subtext2</span>
-                               <div data-role="progressing" data-style="pending" id="pending"></div>
-                       </li>
-
-                       <li class="ui-li-has-checkbox ui-li-has-multiline">
-                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               2line-icon-bigicon-btn
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               2line-thumb3
-                               <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-               </ul>
-       </div>
-</div>
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-normal_no_anchor_h3.html b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-normal_no_anchor_h3.html
deleted file mode 100644 (file)
index 808020e..0000000
+++ /dev/null
@@ -1,346 +0,0 @@
-<div data-role="page" id="genlist-normal" data-add-back-btn="true" data-fit-page-to-window="true">
-       <div data-role="header" data-position="fixed">
-               <h1>Normal lists</h1>
-       </div>
-       <div class="content" data-role="content" data-scroll="y">
-               <ul data-role="listview">
-
-                       <li>
-                               <h3>1line</h3>
-                       </li>
-
-                       <li>
-                               <h3>1line-sub</h3>
-                               <span class="ui-li-text-sub">subtext</span>
-                       </li>
-
-                       <li>
-                               <h3>1line-btn1</h3>
-                               <div data-role="button" data-inline="true">Text Button</div>
-                       </li>
-
-                       <li>
-                               <h3>1line-btn2</h3>
-                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-
-                       <li>
-                               <h3>1line-toggle</h3>
-                               <div data-role="toggleswitch"/></div>
-                       </li>
-
-                       <li>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <h3>1line-bigicon1</h3>
-                       </li>
-
-                       <li>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <h3>1line-bigicon2</h3>
-                               <span class="ui-li-text-sub">Sub text</span>
-                       </li>
-
-                       <li>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <h3>1line-bigicon4</h3>
-                               <div data-role="button" data-inline="true">Text Button</div>
-                       </li>
-
-                       <li>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <h3>1line-bigicon5</h3>
-                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-
-                       <li>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <h3>1line-bigicon6</h3>
-                               <div data-role="toggleswitch"/></div>
-                       </li>
-
-                       <li class="ui-li-has-checkbox">
-                               <input type="checkbox" name="c1line-check1" />
-                               <h3>1line-check1</h3>
-                       </li>
-
-                       <li class="ui-li-has-checkbox">
-                               <form><input type="checkbox" name="c1line-check2" /></form>
-                               <h3>1line-check2</h3>
-                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-has-checkbox">
-                               <form><input type="checkbox"  name="c1line-check3" /></form>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <h3>1line-check3</h3>
-                       </li>
-
-                       <li class="ui-li-has-checkbox">
-                               <form><input type="checkbox"  name="c1line-check4" /></form>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <h3>1line-check4</h3>
-                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-has-radio">
-                               <form><input type="radio" /></form>
-                               <h3>1line-radio1</h3>
-                       </li>
-
-                       <li class="ui-li-has-radio">
-                               <form><input type="radio" /></form>
-                               <h3>1line-radio3</h3>
-                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-has-radio">
-                               <form><input type="radio" /></form>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <h3>1line-radio4</h3>
-                       </li>
-
-                       <li class="ui-li-has-radio">
-                               <form><input type="radio" /></form>
-                               <h3>1line-radio5</h3>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-has-radio">
-                               <form><input type="radio" /></form>
-                               <h3>1line-radio</h3>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <h3>2line</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <h3>2line-2sub</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <span class="ui-li-text-sub2">Subtext2</span>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <h3>2line-btn1</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true">button</div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <h3>2line-btn1</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true" data-icon="call"></div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <h3>2line-btn2</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <h3>2line-star1</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <span style="position:absolute; right:16px; top:80px"><img class= "ui-li-icon-sub-right" src="00_winset_icon_favorite_on.png"></span>
-                               <span class="ui-li-text-sub2">Subtext2</span>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <h3>2line-star</h3>
-                               <span class="ui-li-text-sub"><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png">Subtext</span>
-                               <span><img class="ui-li-icon-sub-right" src="00_winset_icon_favorite_on.png"></span>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <h3>2line-setting</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <h3>2line-toggle-setting</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="toggleswitch"/></div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <h3>2line-btn-setting</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <h3>2line-bigicon0</h3>
-                               <span class="ui-li-text-sub">Subtext<img src="00_winset_icon_favorite_on.png"></span>
-                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <h3>2line-bigicon1</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <h3>2line-bigicon2</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <span class="ui-li-text-sub2">Subtext2</span>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <h3>2line-bigicon3</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <h3>2line-bigicon4</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-has-checkbox ui-li-has-multiline">
-                               <form><input type="checkbox"  name="c2line-check1" /></form>
-                               <h3>2line-check</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                       </li>
-
-                       <li class="ui-li-has-checkbox ui-li-has-multiline">
-                               <form><input type="checkbox"  name="c2line-check2" /></form>
-                               <h3>2line-check2</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-has-checkbox ui-li-has-multiline">
-                               <form><input type="checkbox"  name="c2line-check3" /></form>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <h3>2line-check3</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                       </li>
-
-                       <li class="ui-li-has-radio ui-li-has-multiline">
-                               <form><input type="radio" /></form>
-                               <h3>2line-radio1</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                       </li>
-
-                       <li class="ui-li-has-radio ui-li-has-multiline">
-                               <form><input type="radio" /></form>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <h3>2line-radio2</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <span class="ui-li-color-bar"></span>
-                               <h3>2line-colorbar1</h3>
-                               <span class="ui-li-text-sub">Subtext
-                                       <img src="00_winset_icon_favorite_on.png">
-                                       <img src="00_winset_icon_favorite_on.png">
-                                       <img src="00_winset_icon_favorite_on.png">
-                               </span>
-                               <div data-role="button" data-inline="true">button</div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
-                               <h3>2line-colorbar2</h3>
-                               <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true">button</div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
-                               <h3>2line-colorbar2</h3>
-                               <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true" data-icon="call"></div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <h3>2line-colorbar3</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <h3>2line-bigicon8</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
-                       </li>
-
-                       <li class="ui-li-has-multiline ui-li-thumbnail-right">
-                               <h3>2line-thumb1</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <h3>2line-thumb2</h3>
-                               <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
-                               <span class="ui-li-text-sub"><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png">Subtext</span>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-                       <li class="ui-li-has-multiline ui-li-thumbnail-right">
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <h3>2line-sub-main-bigicon1</h3>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <h3>2line-bigicon-pgbar1</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <span class="ui-li-text-sub2">Subtext2</span>
-                               <div data-role="progressbar" id="progressbar"></div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <h3>2line-bigicon-pgbar2</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true">button</div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <h3>2line-bigicon-pgbar2</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true" data-icon="call"></div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <h3>2line-bigicon-pgbar3</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <span class="ui-li-text-sub2">Subtext2</span>
-                               <div data-role="progressing" data-style="pending" id="pending"></div>
-                       </li>
-
-                       <li class="ui-li-has-checkbox ui-li-has-multiline">
-                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               <h3>2line-icon-bigicon-btn</h3>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
-                       </li>
-
-                       <li class="ui-li-has-multiline">
-                               <h3>2line-thumb3</h3>
-                               <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
-                               <span class="ui-li-text-sub">Subtext</span>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-               </ul>
-       </div>
-</div>
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-radio.html b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-radio.html
deleted file mode 100644 (file)
index d209d47..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-<div data-role="page" id="genlist-radio" data-add-back-btn="footer">
-       <div data-role="header" data-position="fixed">
-               <h1>Radio Button lists</h1>
-       </div>
-       <div class="content" data-role="content" data-scroll="y">
-               <form>
-               <ul data-role="listview">
-                       <li class="ui-li-has-radio ui-list-link">
-                               <a href="#">
-                                       <input type="radio" name="radio-choice-1" id="radio-choice-1" value="choice-1" checked="checked"/>
-                               Radio</a>
-                       </li>
-                       <li class="ui-li-has-radio ui-list-link">
-                               <a href="#">
-                                       <input type="radio" name="radio-choice-1" id="radio-choice-2" value="choice-2"/>
-                               Radio 2</a>
-                       </li>
-                       <li class="ui-li-has-radio ui-list-link">
-                               <a href="#">
-                                       <input type="radio" name="radio-choice-1" id="radio-choice-3" value="choice-3"/>
-                               Radio3</a>
-                       </li>
-                       <li class="ui-li-has-radio">
-                               <input type="radio" name="radio-choice-1" id="radio-choice-4" value="choice-4"/>
-                               Radio Item 4
-                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-                       <li class="ui-li-has-radio">
-                               <input type="radio" name="radio-choice-1" id="radio-choice-5" value="choice-5"/>
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                               Radio Item 5
-                       </li>
-                       <li class="ui-li-has-radio">
-                               <input type="radio" name="radio-choice-1" id="radio-choice-6" value="choice-6"/>
-                               Radio Item 6
-                       </li>
-                       <li class="ui-li-has-radio">
-                               <input type="radio" name="radio-choice-1" id="radio-choice-7" value="choice-7"/>
-                               Radio Item 7
-                       </li>
-                       <li class="ui-li-has-radio">
-                               <input type="radio" name="radio-choice-1" id="radio-choice-8" value="choice-8"/>
-                               Radio Item 8
-                       </li>
-                       <li class="ui-li-has-radio">
-                               <input type="radio" name="radio-choice-1" id="radio-choice-9" value="choice-9"/>
-                               Radio Item 9
-                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-                       <li class="ui-li-has-radio">
-                               <input type="radio" name="radio-choice-1" id="radio-choice-10" value="choice-10"/>
-                               Radio Item 10
-                               <img src="thumbnail.jpg" class="ui-li-bigicon">
-                       </li>
-               </ul>
-       </form>
-       </div>
-</div>
-
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-swipe.html b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list-swipe.html
deleted file mode 100644 (file)
index 22b8a06..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-<div data-role="page" id="genlist-swipe" data-add-back-btn="true" data-fit-page-to-window="true">
-       <div data-role="header" data-position="fixed">
-               <h1>Swipe lists</h1>
-       </div>
-       <div class="content" data-role="content">
-               <ul data-role="listview">
-                       <ul data-role="swipelist">
-                               <li class="ui-li-multiline ui-li-dialogue">
-                                       <div data-role="button" data-inline="true">Twitter</div>
-                                       <div data-role="button" data-inline="true">Twitter</div>
-                                       <div data-role="button" data-inline="true">Facebook</div>
-                                       <div data-role="button" data-inline="true">Facebook</div>
-                                       <div data-role="swipelist-item-cover">
-                                               1line-leftsub1
-                                               <div class="ui-li-text-sub">subtext</div>
-                                       </div>
-                               </li>
-                               <li class="ui-li-dialogue">
-                                       <div data-role="button" data-inline="true">Twitter</div>
-                                       <div data-role="button" data-inline="true">Twitter</div>
-                                       <div data-role="button" data-inline="true">Facebook</div>
-                                       <div data-role="button" data-inline="true">Facebook</div>
-                                       <div data-role="swipelist-item-cover">
-                                               1line
-                                       </div>
-                               </li>
-                                       <li class="ui-li-multiline ui-li-dialogue">
-                                       <div data-role="button" data-inline="true">Twitter</div>
-                                       <div data-role="button" data-inline="true">Twitter</div>
-                                       <div data-role="button" data-inline="true">Facebook</div>
-                                       <div data-role="button" data-inline="true">Facebook</div>
-                                       <div data-role="swipelist-item-cover">
-                                               1line-leftsub1
-                                               <div class="ui-li-text-sub">subtext</div>
-                                       </div>
-                               </li>
-                               <li class="ui-li-dialogue">
-                                       <div data-role="button" data-inline="true">Twitter</div>
-                                       <div data-role="button" data-inline="true">Twitter</div>
-                                       <div data-role="button" data-inline="true">Facebook</div>
-                                       <div data-role="button" data-inline="true">Facebook</div>
-                                       <div data-role="swipelist-item-cover">
-                                               1line
-                                       </div>
-                               </li>
-                                       <li class="ui-li-multiline ui-li-dialogue">
-                                       <div data-role="button" data-inline="true">Twitter</div>
-                                       <div data-role="button" data-inline="true">Twitter</div>
-                                       <div data-role="button" data-inline="true">Facebook</div>
-                                       <div data-role="button" data-inline="true">Facebook</div>
-                                       <div data-role="swipelist-item-cover">
-                                               1line-leftsub1
-                                               <div class="ui-li-text-sub">subtext</div>
-                                       </div>
-                               </li>
-                               <li class="ui-li-dialogue">
-                                       <div data-role="button" data-inline="true">Twitter</div>
-                                       <div data-role="button" data-inline="true">Twitter</div>
-                                       <div data-role="button" data-inline="true">Facebook</div>
-                                       <div data-role="button" data-inline="true">Facebook</div>
-                                       <div data-role="swipelist-item-cover">
-                                               1line
-                                       </div>
-                               </li>
-                                       <li class="ui-li-multiline ui-li-dialogue">
-                                       <div data-role="button" data-inline="true">Twitter</div>
-                                       <div data-role="button" data-inline="true">Twitter</div>
-                                       <div data-role="button" data-inline="true">Facebook</div>
-                                       <div data-role="button" data-inline="true">Facebook</div>
-                                       <div data-role="swipelist-item-cover">
-                                               1line-leftsub1
-                                               <div class="ui-li-text-sub">subtext</div>
-                                       </div>
-                               </li>
-                               <li class="ui-li-dialogue">
-                                       <div data-role="button" data-inline="true">Twitter</div>
-                                       <div data-role="button" data-inline="true">Twitter</div>
-                                       <div data-role="button" data-inline="true">Facebook</div>
-                                       <div data-role="button" data-inline="true">Facebook</div>
-                                       <div data-role="swipelist-item-cover">
-                                               1line
-                                       </div>
-                               </li>
-                                       <li class="ui-li-multiline ui-li-dialogue">
-                                       <div data-role="button" data-inline="true">Twitter</div>
-                                       <div data-role="button" data-inline="true">Twitter</div>
-                                       <div data-role="button" data-inline="true">Facebook</div>
-                                       <div data-role="button" data-inline="true">Facebook</div>
-                                       <div data-role="swipelist-item-cover">
-                                               1line-leftsub1
-                                               <div class="ui-li-text-sub">subtext</div>
-                                       </div>
-                               </li>
-                               <li class="ui-li-dialogue">
-                                       <div data-role="button" data-inline="true">Twitter</div>
-                                       <div data-role="button" data-inline="true">Twitter</div>
-                                       <div data-role="button" data-inline="true">Facebook</div>
-                                       <div data-role="button" data-inline="true">Facebook</div>
-                                       <div data-role="swipelist-item-cover">
-                                               1line
-                                       </div>
-                               </li>
-                       </ul>
-               </ul>
-       </div>
-</div>
-
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list.html b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/list.html
deleted file mode 100644 (file)
index 1907922..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<!DOCTYPE html> 
-<html> 
-    <head>
-    </head>
-       <body> 
-
-
-<div data-role="page" id="list" data-add-back-btn="true">
-       <div data-role="header" data-position="fixed">
-               <h1>List</h1>
-       </div>
-       <div data-role="content">
-               <ul data-role="listview">
-                       <li data-role="list-divider">Item styles</li>
-<!--                   <li><a href="list-normal.html">Normal lists</a></li>-->
-                       <li><a href="list-normal_anchor.html">Normal lists add anchor</a></li>
-                       <li><a href="list-normal_no_anchor.html">Normal lists no anchor</a></li>
-                       <li><a href="list-normal_anchor_h3.html">Normal lists add anchor h3</a></li>
-                       <li><a href="list-normal_no_anchor_h3.html">Normal lists no anchor h3</a></li>
-                       <li data-role="list-divider">Divider style</li>
-                       <li><a href="list-divider_normal.html">Normal divider</a></li>
-                       <li><a href="list-divider_groupped.html">Groupped divider</a></li>
-                       <li><a href="list-divider_check.html">Check divider</a></li>
-                       <li><a href="list-divider_expandable.html">Expandable divider</a></li>
-                       <li><a href="list-divider_checkexpandable.html">CheckExpandable divider</a></li>
-                       
-                       <li data-role="list-divider">Etc...</li>
-                       <li><a href="list-bubble.html">bubble</a></li>
-                       <li><a href="list-expandable.html">expandable list</a></li>
-                       <li><a href="list-radio.html">Radio Button list</a></li>
-                       <li><a href="list-dialogue.html">Dialogue list</a></li>
-                       <li><a href="list-email.html">Email list</a></li>
-                       <li><a href="list-swipe.html">Swipe list</a></li>
-                       <li><a href="list-extendable.html">Extendable list</a></li>
-                       <li><a href="virtuallist-normal.html">Virtual List Normal Style 1line</a></li>
-                       <li><a href="virtuallist-normal_3_1_4.html">Virtual List Normal Style 1line-btn1</a></li>
-                       <li><a href="virtuallist-normal_3_1_6.html">Virtual List Normal Style 1line-toggle</a></li>
-                       <li><a href="virtuallist-normal_3_1_14.html">Virtual List Normal Style 1line-bigicon5</a></li>
-                       <li><a href="virtuallist-normal_3_2_7.html">Virtual List Normal Style 2line-star1</a></li>
-                       <li data-role="list-divider">(empty)</li>
-                       <li data-role="list-divider">Samples</li>
-               </ul>
-       </div>
-</div>
-
-
-
-<div data-role="page" id="3" data-add-back-btn="true">
-       <div data-role="header" data-position="fixed">
-               <h1></h1>
-       </div>
-       <div data-role="content">
-               <ul-data-role="listview">
-               </ul>
-       </div>
-</div>
-
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/thumbnail.jpg b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/thumbnail.jpg
deleted file mode 100644 (file)
index 7627ddc..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/thumbnail.jpg and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/virtuallist-db-demo.js b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/virtuallist-db-demo.js
deleted file mode 100644 (file)
index 69207c7..0000000
+++ /dev/null
@@ -1,1057 +0,0 @@
-/*
- * jQuery Mobile Framework : Dummy data for Virtuallist demo
- * Copyright (c) Lee, Wongi (wongi11.lee@samsung.com)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- */
-
-/* Sample Data in JSON : NBA Player list more than 1,000. */
-var JSON_DATA = [
-{NAME:"Abdelnaby, Alaa", ACTIVE:"1990 - 1994", FROM:"College - Duke", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Abdul-Aziz, Zaid", ACTIVE:"1968 - 1977", FROM:"College - Iowa State", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Abdul-Jabbar, Kareem", ACTIVE:"1969 - 1988", FROM:"College - UCLA", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Abdul-Rauf, Mahmoud", ACTIVE:"1990 - 2000", FROM:"College - Louisiana State", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Abdul-Wahad, Tariq", ACTIVE:"1997 - 2002", FROM:"College - San Jose State", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"Abdur-Rahim, Shareef", ACTIVE:"2007 - 2007", FROM:"College - California", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Abernethy, Tom", ACTIVE:"1976 - 1980", FROM:"College - Indiana", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Able, Forest Edward (Frosty)", ACTIVE:"1956 - 1956", FROM:"College - Western Kentucky; Louisville", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Abramovic, John Jr. (Brooms)", ACTIVE:"1946 - 1947", FROM:"College - Salem (NC)", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Acker, Alex", ACTIVE:"2005 - 2008", FROM:"College - Pepperdine", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Ackerman, Donald D. (Buddy)", ACTIVE:"1953 - 1953", FROM:"College - Long Island University", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Acres, Mark", ACTIVE:"1987 - 1992", FROM:"College - Oral Roberts", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Acton, Charles R. (Bud)", ACTIVE:"1967 - 1967", FROM:"College - Alma; Hillsdale", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Adams, Alvan", ACTIVE:"1975 - 1987", FROM:"College - Oklahoma", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"Adams, Donald L. (Don)", ACTIVE:"1970 - 1976", FROM:"College - Northwestern", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Adams, Hassan", ACTIVE:"2006 - 2008", FROM:"College - Arizona", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Adams, Michael", ACTIVE:"1985 - 1995", FROM:"College - Boston College", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Addison, Rafael", ACTIVE:"1986 - 1996", FROM:"College - Syracuse", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Adelman, Rick", ACTIVE:"1968 - 1974", FROM:"College - Loyola Marymount", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Adrien, Jeff", ACTIVE:"ACTIVE", FROM:"College - Connecticut", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Afflalo, Arron", ACTIVE:"ACTIVE", FROM:"College - UCLA", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Ager, Maurice", ACTIVE:"2007 - 2010", FROM:"College - Michigan State", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Aguirre, Mark", ACTIVE:"1981 - 1993", FROM:"College - DePaul", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Ahearn, Blake", ACTIVE:"2007 - 2008", FROM:"College - Missouri State", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Ainge, Danny", ACTIVE:"1981 - 1994", FROM:"College - Brigham Young", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Ajinca, Alexis", ACTIVE:"ACTIVE", FROM:"From - Saint Etienne, France", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Akin, Henry T.", ACTIVE:"1966 - 1967", FROM:"College - William Carey; Morehead State", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Alabi, Solomon", ACTIVE:"ACTIVE", FROM:"College - Florida State", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Alarie, Mark", ACTIVE:"1986 - 1990", FROM:"College - Duke", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Alcorn, Gary R.", ACTIVE:"1959 - 1960", FROM:"College - Fresno City Coll. CA (J.C.); Fresno State", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"Aldrich, Cole", ACTIVE:"ACTIVE", FROM:"College - Kansas", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Aldridge, LaMarcus", ACTIVE:"ACTIVE", FROM:"College - Texas", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Aleksinas, Chuck", ACTIVE:"1984 - 1984", FROM:"College - Kentucky; Connecticut", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Alexander, Cory", ACTIVE:"1995 - 2004", FROM:"College - Virginia", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Alexander, Courtney", ACTIVE:"2000 - 2002", FROM:"College - Fresno State", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Alexander, Gary", ACTIVE:"1993 - 1993", FROM:"College - South Florida", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Alexander, Joe", ACTIVE:"2008 - 2009", FROM:"College - West Virginia", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Alexander, Victor", ACTIVE:"1991 - 2001", FROM:"College - Iowa State", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"Alford, Steve", ACTIVE:"1987 - 1990", FROM:"College - Indiana", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Allen, Jerome", ACTIVE:"1995 - 1996", FROM:"College - Pennsylvania", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Allen, Lucius", ACTIVE:"1969 - 1978", FROM:"College - UCLA", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Allen, Malik", ACTIVE:"ACTIVE", FROM:"College - Villanova", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Allen, Randy", ACTIVE:"1988 - 1989", FROM:"College - Florida State", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Allen, Ray", ACTIVE:"ACTIVE", FROM:"College - Connecticut", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Allen, Robert J. (Bob)", ACTIVE:"1968 - 1968", FROM:"College - Marshall", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Allen, Tony", ACTIVE:"ACTIVE", FROM:"College - Oklahoma State", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Allison, Odis Jr.", ACTIVE:"1971 - 1971", FROM:"College - Laney Coll. CA (J.C.); Nevada-Las Vegas", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Allred, Lance", ACTIVE:"2007 - 2007", FROM:"College - Weber State", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Allums, Darrell", ACTIVE:"1980 - 1980", FROM:"College - UCLA", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Almond, Morris", ACTIVE:"2007 - 2008", FROM:"College - Rice", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Babbitt, Luke", ACTIVE:"ACTIVE", FROM:"College - Nevada-Reno", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"Babic, Milos", ACTIVE:"1990 - 1991", FROM:"College - Tennessee Tech", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Bach, John William (Johnny)", ACTIVE:"1948 - 1948", FROM:"College - Fordham; Rochester; Brown", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"Baechtold, James E. (Jim)", ACTIVE:"1952 - 1956", FROM:"College - Eastern Kentucky", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Bagaric, Dalibor", ACTIVE:"2000 - 2002", FROM:"From - Croatia", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Bagley, John", ACTIVE:"1982 - 1993", FROM:"College - Boston College", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Bailey, Augustus (Gus)", ACTIVE:"1974 - 1979", FROM:"College - Texas-El Paso", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Bailey, Carl", ACTIVE:"1981 - 1981", FROM:"College - Tuskegee", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Bailey, James", ACTIVE:"1979 - 1987", FROM:"College - Rutgers", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Bailey, Thurl", ACTIVE:"1983 - 1998", FROM:"College - North Carolina State", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Bailey, Toby", ACTIVE:"1998 - 1999", FROM:"College - UCLA ''98", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Baker, Mark", ACTIVE:"1998 - 1998", FROM:"College - Ohio State", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Baker, Maurice", ACTIVE:"2004 - 2004", FROM:"College - Oklahoma State '02", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Baker, Norman Henry (Norm)", ACTIVE:"1946 - 1946", FROM:"College - No College", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Baker, Vin", ACTIVE:"1993 - 2005", FROM:"College - Hartford", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Balkman, Renaldo", ACTIVE:"ACTIVE", FROM:"College - South Carolina", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Ball, Cedric", ACTIVE:"1990 - 1990", FROM:"College - North Carolina-Charlotte", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Ballard, Greg", ACTIVE:"1977 - 1988", FROM:"College - Shasta Coll. CA (J.C.); Oregon", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Baltimore, Herschel David (Herk)", ACTIVE:"1946 - 1946", FROM:"College - Penn State", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Banks, Gene", ACTIVE:"1981 - 1986", FROM:"College - Duke", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Banks, Marcus", ACTIVE:"ACTIVE", FROM:"College - Nevada-Las Vegas", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Bannister, Ken", ACTIVE:"1984 - 1990", FROM:"College - Trinidad State JC CO; Indiana State; Saint Augustine College", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Bantom, Mike", ACTIVE:"1973 - 1981", FROM:"College - St. Joseph's (PA)", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Barber, John", ACTIVE:"1956 - 1956", FROM:"College - Los Angeles State", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Barbosa, Leandro", ACTIVE:"ACTIVE", FROM:"From - Sau Paulo, Brazil", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Bardo, Stephen", ACTIVE:"1991 - 1995", FROM:"College - Illinois", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Barea, Jose", ACTIVE:"ACTIVE", FROM:"College - Northeastern", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Bargnani, Andrea", ACTIVE:"ACTIVE", FROM:"From - Rome, Italy", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Barker, Clifford E. (Cliff)", ACTIVE:"1949 - 1951", FROM:"College - Kentucky", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Barker, Thomas Kevin (Tom)", ACTIVE:"1976 - 1978", FROM:"College - Minnesota; Coll. of Southern Idaho (J.C.); Hawaii", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Barkley, Charles", ACTIVE:"1984 - 1999", FROM:"College - Auburn", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Barkley, Erick", ACTIVE:"2000 - 2001", FROM:"College - St. John''s '02", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Barksdale, Don Angelo", ACTIVE:"1951 - 1954", FROM:"College - Coll. of Marin CA (J.C.); UCLA", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Barnes, Harry J.", ACTIVE:"1968 - 1968", FROM:"College - Northeastern", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Barnes, Marvin Jerome", ACTIVE:"1976 - 1979", FROM:"College - Providence", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Barnes, Matt", ACTIVE:"ACTIVE", FROM:"College - UCLA", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Barnes, V. James (Jim, Bad News)", ACTIVE:"1964 - 1970", FROM:"College - Cameron; Texas-El Paso", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Barnett, Dick", ACTIVE:"1959 - 1973", FROM:"College - Tennessee State", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Barnett, James Franklin (Jim)", ACTIVE:"1966 - 1976", FROM:"College - Oregon", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Barnhill, John Anthony (Rabbit)", ACTIVE:"1962 - 1968", FROM:"College - Tennessee State", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Barnhill, Norton", ACTIVE:"1976 - 1976", FROM:"College - Washington State", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Barnhorst, Leo A. (Barney)", ACTIVE:"1949 - 1953", FROM:"College - Notre Dame", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Barr, John E.", ACTIVE:"1946 - 1946", FROM:"College - Penn State", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Barr, Michael J. (Mike)", ACTIVE:"1976 - 1976", FROM:"College - Duquesne", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Barr, Thomas L. (Moe)", ACTIVE:"1970 - 1970", FROM:"College - Duquesne", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Barrett, Andre", ACTIVE:"2007 - 2007", FROM:"College - Seton Hall", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Barrett, Ernie Drew", ACTIVE:"1953 - 1955", FROM:"College - Kansas State", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Barron, Earl", ACTIVE:"ACTIVE", FROM:"College - Memphis", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Barros, Dana", ACTIVE:"1989 - 2003", FROM:"College - Boston College ''89", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Barry, Brent", ACTIVE:"2007 - 2008", FROM:"College - Oregon State", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Cabarkapa, Zarko", ACTIVE:"2003 - 2005", FROM:"From - Serbia & Montenegro", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Cable, Byrum William (Barney)", ACTIVE:"1958 - 1963", FROM:"College - Bradley", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Caffey, Jason", ACTIVE:"1995 - 2002", FROM:"College - Alabama ''95", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Cage, Michael", ACTIVE:"1984 - 1999", FROM:"College - San Diego State", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Calabrese, Gerald A. (Gerry)", ACTIVE:"1950 - 1951", FROM:"College - St. John's (N.Y.)", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Calderon, Jose", ACTIVE:"ACTIVE", FROM:"From - Villanueva de la Serena, Spain", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Caldwell, Adrian", ACTIVE:"1989 - 1997", FROM:"College - Navarro Coll. TX (J.C.); Southern Methodist; Lamar", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Caldwell, James W. Jr. (Jim)", ACTIVE:"1967 - 1967", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Caldwell, Joe (Pogo)", ACTIVE:"1964 - 1969", FROM:"College - Arizona State", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Calhoun, David L. (Corky)", ACTIVE:"1972 - 1979", FROM:"College - Pennsylvania", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Calhoun, William C. (Bill)", ACTIVE:"1948 - 1954", FROM:"College - San Francisco City Coll. CA (J.C.)", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Calip, Demetrius", ACTIVE:"1991 - 1991", FROM:"College - Michigan", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Callahan, Thomas Francis (Tom)", ACTIVE:"1946 - 1946", FROM:"College - Notre Dame; Rockhurst", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Calloway, Rick", ACTIVE:"1990 - 1990", FROM:"College - Indiana; Kansas", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Calverley, Ernest A. (Ernie)", ACTIVE:"1946 - 1948", FROM:"College - Rhode Island", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Calvin, Mack", ACTIVE:"1976 - 1980", FROM:"College - Long Beach City Coll. CA (J.C.); USC", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Cambridge, Dexter", ACTIVE:"1992 - 1992", FROM:"College - Lon Morris Coll. TX (J.C.); Texas", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Camby, Marcus", ACTIVE:"ACTIVE", FROM:"College - Massachusetts", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Campbell, Elden", ACTIVE:"1990 - 2004", FROM:"College - Clemson", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Campbell, Tony", ACTIVE:"1984 - 1994", FROM:"College - Ohio State", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Cannon, Lawrence T. (Larry)", ACTIVE:"1973 - 1973", FROM:"College - La Salle", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Caracter, Derrick", ACTIVE:"ACTIVE", FROM:"College - Texas-El Paso", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Cardinal, Brian", ACTIVE:"ACTIVE", FROM:"College - Purdue", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Carl, Howard Hershey (Howie)", ACTIVE:"1961 - 1961", FROM:"College - Illinois; DePaul", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Carlisle, Chester G. (Chet)", ACTIVE:"1946 - 1946", FROM:"College - California", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Carlisle, Geno", ACTIVE:"2004 - 2004", FROM:"College - California '99", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Carlisle, Rick", ACTIVE:"1984 - 1989", FROM:"College - Maine; Virginia", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Carlson, Alvin Harold", ACTIVE:"1975 - 1975", FROM:"College - USC; Oregon", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Carlson, Don Vernon (Swede)", ACTIVE:"1946 - 1950", FROM:"College - Minnesota", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Carney, Robert Lee (Bob)", ACTIVE:"1954 - 1954", FROM:"College - Bradley", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Carney, Rodney", ACTIVE:"2007 - 2010", FROM:"College - Memphis", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Carpenter, Robert H. (Bob)", ACTIVE:"1949 - 1950", FROM:"College - Texas A&M-Commerce", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Carr, Antoine", ACTIVE:"1984 - 1999", FROM:"College - Wichita State", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Carr, Austin George", ACTIVE:"1971 - 1980", FROM:"College - Notre Dame", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Carr, Chris", ACTIVE:"1995 - 2000", FROM:"College - Southern Illinois", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Carr, Cory", ACTIVE:"1998 - 1998", FROM:"College - Texas Tech", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Carr, Kenny", ACTIVE:"1977 - 1986", FROM:"College - North Carolina State", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Carr, M.L.", ACTIVE:"1976 - 1984", FROM:"College - Guilford", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Carrington, Robert Frederick (Bob)", ACTIVE:"1977 - 1979", FROM:"College - Boston College", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"Carroll, DeMarre", ACTIVE:"2009 - 2010", FROM:"College - Missouri", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"Carroll, Joe Barry", ACTIVE:"1980 - 1990", FROM:"College - Purdue", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Carroll, Matt", ACTIVE:"ACTIVE", FROM:"College - Notre Dame", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Carruth, Jimmy", ACTIVE:"1996 - 1996", FROM:"College - Virginia Tech", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Carter, Anthony", ACTIVE:"ACTIVE", FROM:"College - Hawaii", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Carter, Butch", ACTIVE:"1980 - 1985", FROM:"College - Indiana", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Carter, Frederick James (Fred, Mad Dog)", ACTIVE:"1969 - 1976", FROM:"College - Mount St. Mary's", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Carter, George", ACTIVE:"1967 - 1967", FROM:"College - St. Bonaventure", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Carter, Howard", ACTIVE:"1983 - 1984", FROM:"College - Louisiana State", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Carter, John D. (Jake)", ACTIVE:"1949 - 1949", FROM:"College - Texas A&M-Commerce", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Carter, Maurice", ACTIVE:"2003 - 2003", FROM:"College - Louisiana State ''99", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"D'Antoni, Michael Andrew (Mike)", ACTIVE:"1973 - 1976", FROM:"College - Marshall", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Dahler, Edward Jr. (Ed)", ACTIVE:"1951 - 1951", FROM:"College - Duquesne", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Dailey, Quintin", ACTIVE:"1982 - 1991", FROM:"College - San Francisco", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"Dalembert, Samuel", ACTIVE:"ACTIVE", FROM:"College - Seton Hall", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Dallmar, Howard (Howie)", ACTIVE:"1946 - 1948", FROM:"College - Stanford; Pennsylvania", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Dampier, Erick", ACTIVE:"ACTIVE", FROM:"College - Mississippi State", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Dampier, Louie (Lou)", ACTIVE:"1976 - 1978", FROM:"College - Kentucky", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Dandridge, Robert L. Jr. (Bob)", ACTIVE:"1969 - 1981", FROM:"College - Norfolk State", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Daniels, Antonio", ACTIVE:"ACTIVE", FROM:"College - Bowling Green", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Daniels, Erik", ACTIVE:"2004 - 2004", FROM:"College - Kentucky", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Daniels, Lloyd", ACTIVE:"1992 - 1997", FROM:"College - Mount San Antonio Coll. CA (J.C.)", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Daniels, Marquis", ACTIVE:"ACTIVE", FROM:"College - Auburn", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"Daniels, Mel", ACTIVE:"1976 - 1976", FROM:"College - Burlington Co. Coll. NJ (J.C.); New Mexico", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Danilovic, Sasha", ACTIVE:"1995 - 1996", FROM:"College - Serbia", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Dantley, Adrian", ACTIVE:"1976 - 1990", FROM:"College - Notre Dame", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Darcey, Henry J. (Pete)", ACTIVE:"1952 - 1952", FROM:"College - Oklahoma State", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Darden, James W. (Jimmy)", ACTIVE:"1949 - 1949", FROM:"College - Wyoming; Denver", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Dare, Yinka", ACTIVE:"1994 - 1997", FROM:"College - George Washington", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Dark, Jesse L.", ACTIVE:"1974 - 1974", FROM:"College - Virginia Commonwealth", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Darrow, James K. (Jimmy)", ACTIVE:"1961 - 1961", FROM:"College - Bowling Green State", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Daugherty, Brad", ACTIVE:"1986 - 1993", FROM:"College - North Carolina", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"David, Kornel", ACTIVE:"1998 - 2000", FROM:"College - Budapest AEH", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Davidson, Jermareo", ACTIVE:"2007 - 2008", FROM:"College - Alabama", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Davies, Robert Edris (Bob, Harrisburg Houdini)", ACTIVE:"1948 - 1954", FROM:"College - Franklin & Marshall; Seton Hall", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Davis, Antonio", ACTIVE:"1993 - 2005", FROM:"College - Texas-El Paso", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Davis, Aubrey D.", ACTIVE:"1946 - 1946", FROM:"College - Oklahoma Baptist", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Davis, Baron", ACTIVE:"ACTIVE", FROM:"College - UCLA", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Davis, Ben", ACTIVE:"1996 - 1999", FROM:"College - Arizona ''96", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Davis, Brad", ACTIVE:"1977 - 1991", FROM:"College - Maryland", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Davis, Brian", ACTIVE:"1993 - 1993", FROM:"College - Duke", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Davis, Charles Lawrence (Charlie)", ACTIVE:"1971 - 1973", FROM:"College - Wake Forest", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"Davis, Charlie E.", ACTIVE:"1981 - 1989", FROM:"College - Vanderbilt", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Davis, Dale", ACTIVE:"1991 - 2006", FROM:"College - Clemson", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Davis, Damon William (Monti)", ACTIVE:"1980 - 1980", FROM:"College - Tennessee State", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Davis, Dwight E. (Double D)", ACTIVE:"1972 - 1976", FROM:"College - Houston", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Davis, Ed", ACTIVE:"ACTIVE", FROM:"College - North Carolina", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Davis, Edward J. (Mickey)", ACTIVE:"1972 - 1976", FROM:"College - Duquesne", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Davis, Emanual", ACTIVE:"1996 - 2002", FROM:"College - Delaware State ''91", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Davis, Glen", ACTIVE:"ACTIVE", FROM:"College - Louisiana State", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Davis, Harry A.", ACTIVE:"1978 - 1979", FROM:"College - Florida State", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Davis, Hubert", ACTIVE:"1992 - 2003", FROM:"College - North Carolina ''92", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Davis, James R. (Red)", ACTIVE:"1955 - 1955", FROM:"College - St. John's (N.Y.)", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Davis, James W. (Jim)", ACTIVE:"1967 - 1974", FROM:"College - Colorado", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Davis, Johnny", ACTIVE:"1976 - 1985", FROM:"College - Dayton", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Davis, Josh", ACTIVE:"2003 - 2005", FROM:"College - Wyoming", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Davis, Mark", ACTIVE:"1988 - 1988", FROM:"College - Old Dominion", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Davis, Mark", ACTIVE:"1995 - 1999", FROM:"College - Texas Tech", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Davis, Melvyn Jerome (Mel, Killer)", ACTIVE:"1973 - 1976", FROM:"College - St. John's (N.Y.)", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Davis, Michael", ACTIVE:"1982 - 1982", FROM:"College - Mercer Co. CC NJ; Maryland", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Davis, Michael A. (Mike, Crusher)", ACTIVE:"1969 - 1972", FROM:"College - Virginia Union", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Eackles, Ledell", ACTIVE:"1988 - 1997", FROM:"College - San Jacinto Coll. TX (J.C.); New Orleans", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Eakins, James Scott (Jim, Jimbo)", ACTIVE:"1976 - 1977", FROM:"College - Brigham Young", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Earl, Acie", ACTIVE:"1993 - 1996", FROM:"College - Iowa", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Earle, Edwin (Ed)", ACTIVE:"1953 - 1953", FROM:"College - Loyola (Chicago)", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Eaton, Mark", ACTIVE:"1982 - 1992", FROM:"College - Cypress Coll. CA (J.C.); UCLA", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Eaves, Jerry", ACTIVE:"1982 - 1986", FROM:"College - Louisville", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Ebanks, Devin", ACTIVE:"ACTIVE", FROM:"College - West Virginia", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Ebben, William Edward (Bill)", ACTIVE:"1957 - 1957", FROM:"College - Detroit", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Eberhard, Allen Dean (Al)", ACTIVE:"1974 - 1977", FROM:"College - Missouri", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Ebi, Ndudi", ACTIVE:"2003 - 2004", FROM:"High School - Westbury Christian HS (TX)", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Eddie, Patrick", ACTIVE:"1991 - 1991", FROM:"College - Arkansas State; Mississippi", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Eddleman, Thomas Dwight (Dike)", ACTIVE:"1949 - 1952", FROM:"College - Illinois", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Edelin, Kenton Scott (Kent)", ACTIVE:"1984 - 1984", FROM:"College - Virginia", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"Edmonson, Keith", ACTIVE:"1982 - 1983", FROM:"College - Purdue", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Edney, Tyus", ACTIVE:"1995 - 2000", FROM:"College - UCLA", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Edwards, Bill", ACTIVE:"1993 - 1993", FROM:"College - Wright State", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Edwards, Blue", ACTIVE:"1989 - 1998", FROM:"College - Louisburg; East Carolina", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Edwards, Corsley", ACTIVE:"2004 - 2004", FROM:"College - Central Connecticut State '02", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Edwards, Doug", ACTIVE:"1993 - 1995", FROM:"College - Florida State", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Edwards, Franklin", ACTIVE:"1981 - 1987", FROM:"College - Cleveland State", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Edwards, James", ACTIVE:"1977 - 1995", FROM:"College - Washington", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Edwards, Jay", ACTIVE:"1989 - 1989", FROM:"College - Indiana", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Edwards, John", ACTIVE:"2004 - 2005", FROM:"College - Kent State", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Edwards, Kevin", ACTIVE:"1988 - 2000", FROM:"College - Lakeland CC OH; DePaul", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Egan, John Francis (Johnny)", ACTIVE:"1961 - 1971", FROM:"College - Providence", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Eggleston, Lonnie J.", ACTIVE:"1948 - 1948", FROM:"College - Oklahoma State", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Ehlers, Edwin S. (Eddie, Bulbs)", ACTIVE:"1947 - 1948", FROM:"College - Purdue", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Ehlo, Craig", ACTIVE:"1983 - 1996", FROM:"College - Odessa Coll. TX (J.C.); Washington State", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Eichhorst, Richard A. (Dick)", ACTIVE:"1961 - 1961", FROM:"College - Southeast Missouri State", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Eisley, Howard", ACTIVE:"1994 - 2005", FROM:"College - Boston College", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Ekezie, Obinna", ACTIVE:"1999 - 2004", FROM:"College - Maryland", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"El-Amin, Khalid", ACTIVE:"2000 - 2000", FROM:"College - Connecticut ''01", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Eliason, Donald Carlton (Don)", ACTIVE:"1946 - 1946", FROM:"College - Hamline", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Elie, Mario", ACTIVE:"1990 - 2000", FROM:"College - American International", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Ellefson, E. Ray (Ray)", ACTIVE:"1948 - 1950", FROM:"College - Oklahoma State; Colorado; West Texas A&M", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Ellington, Wayne", ACTIVE:"ACTIVE", FROM:"College - North Carolina", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Elliott, Robert Alan (Bob)", ACTIVE:"1978 - 1980", FROM:"College - Arizona", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Elliott, Sean", ACTIVE:"1989 - 2000", FROM:"College - Arizona", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Ellis, Alexander (Boo)", ACTIVE:"1958 - 1959", FROM:"College - Niagara", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Ellis, Dale", ACTIVE:"1983 - 1999", FROM:"College - Tennessee", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Ellis, Harold", ACTIVE:"1993 - 1997", FROM:"College - Morehouse", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Ellis, Joe", ACTIVE:"1966 - 1973", FROM:"College - San Francisco", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Ellis, LaPhonso", ACTIVE:"1992 - 2002", FROM:"College - Notre Dame ''92", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Ellis, LeRon", ACTIVE:"1991 - 1995", FROM:"College - Kentucky; Syracuse", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Ellis, Leroy", ACTIVE:"1962 - 1975", FROM:"College - St. John's (N.Y.)", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Ellis, Maurice H. (Bo)", ACTIVE:"1977 - 1979", FROM:"College - Marquette", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Ellis, Monta", ACTIVE:"ACTIVE", FROM:"High School - Lanier HS (Jackson, MS)", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Ellison, Pervis", ACTIVE:"1989 - 2000", FROM:"College - Louisville", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Elmore, Len", ACTIVE:"1976 - 1983", FROM:"College - Maryland", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Elson, Francisco", ACTIVE:"ACTIVE", FROM:"College - California", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Fabel, Joseph (Joe)", ACTIVE:"1946 - 1946", FROM:"College - Pittsburgh", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Fairchild, John Russell", ACTIVE:"1965 - 1965", FROM:"College - Palomar Coll. CA (J.C.); Brigham Young", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Farbman, Philip M. (Phil)", ACTIVE:"1948 - 1948", FROM:"College - CCNY; Brooklyn College", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Farley, Richard L. (Dick)", ACTIVE:"1954 - 1958", FROM:"College - Indiana", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Farmar, Jordan", ACTIVE:"ACTIVE", FROM:"College - UCLA", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Farmer, Desmon", ACTIVE:"2006 - 2008", FROM:"College - USC", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Farmer, Don Michael (Mike)", ACTIVE:"1958 - 1965", FROM:"College - San Francisco", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Farmer, Jim", ACTIVE:"1987 - 1993", FROM:"College - Alabama", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Farmer, Tony", ACTIVE:"1997 - 1999", FROM:"College - Nebraska", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Faught, Robert Edward (Bob)", ACTIVE:"1946 - 1946", FROM:"College - Notre Dame", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Favors, Derrick", ACTIVE:"ACTIVE", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Fazekas, Nick", ACTIVE:"2007 - 2007", FROM:"College - Nevada-Reno", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Fedor, Samuel David (Dave)", ACTIVE:"1962 - 1962", FROM:"College - Florida State", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Feerick, Robert Joseph (Bob)", ACTIVE:"1946 - 1949", FROM:"College - Santa Clara", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Feher, Raymond G. (Butch)", ACTIVE:"1976 - 1976", FROM:"College - Vanderbilt", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Feick, Jamie", ACTIVE:"1996 - 2000", FROM:"College - Michigan State ''96", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Feiereisel, Ronald E. (Ron)", ACTIVE:"1955 - 1955", FROM:"College - DePaul", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Feigenbaum, George", ACTIVE:"1949 - 1952", FROM:"College - Long Island University; Kentucky", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"Feitl, Dave", ACTIVE:"1986 - 1991", FROM:"College - Texas-El Paso", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Felix, Noel", ACTIVE:"2005 - 2005", FROM:"College - Fresno State", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Felix, Ray", ACTIVE:"1953 - 1961", FROM:"College - Long Island University", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Felton, Raymond", ACTIVE:"ACTIVE", FROM:"College - North Carolina", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Fendley, John Phillip (Jake)", ACTIVE:"1951 - 1952", FROM:"College - Northwestern", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Fenley, William Warren (Bill)", ACTIVE:"1946 - 1946", FROM:"College - Manhattan", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Ferguson, Desmond", ACTIVE:"2003 - 2003", FROM:"College - Detroit", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Fernandez, Rudy", ACTIVE:"ACTIVE", FROM:"From - Palma de Mallorca, Spain", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Fernsten, Eric", ACTIVE:"1975 - 1983", FROM:"College - San Francisco", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Ferrari, Albert R. (Al)", ACTIVE:"1955 - 1962", FROM:"College - Michigan State", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Ferreira, Rolando", ACTIVE:"1988 - 1988", FROM:"College - Houston", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Ferrell, Duane", ACTIVE:"1988 - 1998", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Ferrin, C. Arnold Jr. (Arnie)", ACTIVE:"1948 - 1950", FROM:"College - Utah", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Ferry, Danny", ACTIVE:"1990 - 2002", FROM:"College - Duke ''89", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Ferry, Robert Dean (Bob)", ACTIVE:"1959 - 1968", FROM:"College - St. Louis", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Fesenko, Kyrylo", ACTIVE:"ACTIVE", FROM:"From - Dnepropetrovsk, Ukraine", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Fields, Kenny", ACTIVE:"1984 - 1987", FROM:"College - UCLA", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Fields, Landry", ACTIVE:"ACTIVE", FROM:"College - Stanford", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Filipek, Ronald Stanley (Ron)", ACTIVE:"1967 - 1967", FROM:"College - Tennessee Tech", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Fillmore, Gregory Paul (Greg)", ACTIVE:"1970 - 1971", FROM:"College - Iowa Central CC; Cheyney", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Finkel, Henry J. (Hank)", ACTIVE:"1966 - 1974", FROM:"College - St. Peter's; Dayton", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Finley, Michael", ACTIVE:"2007 - 2009", FROM:"College - Wisconsin", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Finn, Daniel Lawrence Jr. (Danny)", ACTIVE:"1952 - 1954", FROM:"College - St. John's (N.Y.)", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Fish, Matt", ACTIVE:"1994 - 1996", FROM:"College - Wilmington", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Fisher, Derek", ACTIVE:"ACTIVE", FROM:"College - Arkansas-Little Rock", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Fitch, Gerald", ACTIVE:"2005 - 2005", FROM:"College - Kentucky", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Fitzgerald, Richard (Dick)", ACTIVE:"1946 - 1947", FROM:"College - Seton Hall", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Fitzgerald, Robert (Bob)", ACTIVE:"1946 - 1948", FROM:"College - Fordham", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Fizer, Marcus", ACTIVE:"2000 - 2005", FROM:"College - Iowa State", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Fleishman, Jerome (Jerry)", ACTIVE:"1946 - 1952", FROM:"College - N.Y.U.; Long Island University", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Fleming, Albert Jr. (Al)", ACTIVE:"1977 - 1977", FROM:"College - Arizona", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Fleming, Edward R. (Ed)", ACTIVE:"1955 - 1959", FROM:"College - Niagara", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Gabor, William A. (Billy, The Human Projectile)", ACTIVE:"1949 - 1954", FROM:"College - Syracuse", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Gadzuric, Dan", ACTIVE:"ACTIVE", FROM:"College - UCLA", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Gai, Deng", ACTIVE:"2005 - 2005", FROM:"College - Fairfield", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Gainer, Elmer R.", ACTIVE:"1947 - 1949", FROM:"College - DePaul", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Gaines, Corey", ACTIVE:"1988 - 1994", FROM:"College - UCLA; Loyola Marymount", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Gaines, Reece", ACTIVE:"2003 - 2005", FROM:"College - Louisville", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Gaines, Sundiata", ACTIVE:"ACTIVE", FROM:"College - Georgia", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Gale, Mike", ACTIVE:"1976 - 1981", FROM:"College - Elizabeth City State", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"Gallagher, Chad", ACTIVE:"1993 - 1993", FROM:"College - Creighton", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Gallatin, Harry", ACTIVE:"1948 - 1957", FROM:"College - Northeast Missouri State", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Gallinari, Danilo", ACTIVE:"ACTIVE", FROM:"From - Milan, Italy", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Gambee, Dave", ACTIVE:"1958 - 1969", FROM:"College - Oregon State", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Gamble, Kevin", ACTIVE:"1987 - 1996", FROM:"College - Lincoln Trail IL (J.C.); Iowa", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Gantt, Robert M. Jr. (Bob)", ACTIVE:"1946 - 1946", FROM:"College - Duke", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Garbajosa, Jorge", ACTIVE:"2007 - 2007", FROM:"From - Spain", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Garces, Ruben", ACTIVE:"2000 - 2000", FROM:"College - Providence", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Garcia, Alex", ACTIVE:"2003 - 2004", FROM:"From - Brazil", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Garcia, Francisco", ACTIVE:"ACTIVE", FROM:"College - Louisville", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Gardner, Earl Baker (Red)", ACTIVE:"1948 - 1948", FROM:"College - Wabash; DePauw", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Gardner, Thomas", ACTIVE:"2007 - 2008", FROM:"College - Missouri", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Gardner, Vern B.", ACTIVE:"1949 - 1951", FROM:"College - Wyoming; Utah", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Garfinkel, Jack (Dutch)", ACTIVE:"1946 - 1948", FROM:"College - St. John's (N.Y.)", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Garland, Gary J.", ACTIVE:"1979 - 1979", FROM:"College - DePaul", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Garland, Winston", ACTIVE:"1987 - 1994", FROM:"College - Southeastern CC IA; Southwest Missouri State", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Garmaker, Richard Eugene (Dick)", ACTIVE:"1955 - 1960", FROM:"College - Hibbing CC MN; Minnesota", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Garner, Chris", ACTIVE:"1997 - 2000", FROM:"College - Memphis", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Garnett, Bill", ACTIVE:"1982 - 1985", FROM:"College - Wyoming", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Garnett, Kevin", ACTIVE:"ACTIVE", FROM:"High School - Farragut Academy HS (IL)", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Garnett, Marlon", ACTIVE:"1998 - 1998", FROM:"College - Santa Clara", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Garrett, Calvin", ACTIVE:"1980 - 1983", FROM:"College - Austin Peay State; Oral Roberts", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Garrett, Dean", ACTIVE:"1996 - 2001", FROM:"College - Indiana", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Garrett, Eldo (Dick)", ACTIVE:"1969 - 1973", FROM:"College - Southern Illinois", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Garrett, Rowland G.", ACTIVE:"1972 - 1976", FROM:"College - Florida State", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Garrick, Tom", ACTIVE:"1988 - 1991", FROM:"College - Rhode Island", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Garris, John", ACTIVE:"1983 - 1983", FROM:"College - Michigan; Boston College", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Garris, Kiwane", ACTIVE:"1997 - 1999", FROM:"College - Illinois", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Garrity, Pat", ACTIVE:"2007 - 2007", FROM:"College - Notre Dame", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Garvin, James D. (Jim)", ACTIVE:"1973 - 1973", FROM:"College - Boston U.", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Gasol, Marc", ACTIVE:"ACTIVE", FROM:"From - Barcelona, Spain", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Gasol, Pau", ACTIVE:"ACTIVE", FROM:"From - Barcelona, Spain", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Gates, Ben Frank (Frank, Needle)", ACTIVE:"1949 - 1949", FROM:"College - Sam Houston State", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Gatling, Chris", ACTIVE:"1991 - 2001", FROM:"College - Pittsburgh; Old Dominion", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Gattison, Kenny", ACTIVE:"1986 - 1995", FROM:"College - Old Dominion", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Gay, Rudy", ACTIVE:"ACTIVE", FROM:"College - Connecticut", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Gayda, Edward C. (Ed)", ACTIVE:"1950 - 1950", FROM:"College - Washington State", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Gaze, Andrew", ACTIVE:"1993 - 1998", FROM:"College - Seton Hall", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Geary, Reggie", ACTIVE:"1996 - 1997", FROM:"College - Arizona", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Gee, Alonzo", ACTIVE:"ACTIVE", FROM:"College - Alabama", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Geiger, Matt", ACTIVE:"1992 - 2001", FROM:"College - Auburn; Georgia Tech", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Gelabale, Mickael", ACTIVE:"2007 - 2007", FROM:"From - France", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Hackett, Rudolph (Rudy)", ACTIVE:"1976 - 1976", FROM:"College - Syracuse", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Haddadi, Hamed", ACTIVE:"ACTIVE", FROM:"From - Ahvaz, Iran", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Haffner, Scott", ACTIVE:"1989 - 1990", FROM:"College - Illinois; Evansville", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Hagan, Cliff", ACTIVE:"1956 - 1965", FROM:"College - Kentucky", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Hagan, Glenn Kassabin", ACTIVE:"1981 - 1981", FROM:"College - St. Bonaventure", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Hahn, Robert B. (Bob)", ACTIVE:"1949 - 1949", FROM:"College - North Carolina State", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Hairston, Alan Leroy (Al)", ACTIVE:"1968 - 1969", FROM:"College - St. Clair Co. CC MI; Bowling Green State", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Hairston, Happy", ACTIVE:"1964 - 1974", FROM:"College - N.Y.U.", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"Hairston, Lindsay (Spider)", ACTIVE:"1975 - 1975", FROM:"College - Michigan State", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Hairston, Malik", ACTIVE:"2008 - 2009", FROM:"College - Oregon", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Haislip, Marcus", ACTIVE:"2002 - 2009", FROM:"College - Tennessee", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Halbert, Charles P. (Chuck)", ACTIVE:"1946 - 1950", FROM:"College - West Texas A&M", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Halbrook, Harvey Wade (Swede)", ACTIVE:"1960 - 1961", FROM:"College - Oregon State", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Hale, William Bruce (Bruce)", ACTIVE:"1948 - 1950", FROM:"College - Santa Clara", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Haley, Jack", ACTIVE:"1988 - 1997", FROM:"College - Golden West Coll. CA (J.C.); UCLA", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Halimon, Shaler Jr.", ACTIVE:"1968 - 1971", FROM:"College - Imperial Valley Coll. CA (J.C.); Utah State", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Hall, Mike", ACTIVE:"2006 - 2006", FROM:"College - George Washington", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Halliburton, Jeffrey (Jeff)", ACTIVE:"1971 - 1972", FROM:"College - San Jacinto Coll. TX (J.C.); Drake", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Ham, Darvin", ACTIVE:"1996 - 2004", FROM:"College - Texas Tech", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Hamer, Steve", ACTIVE:"1996 - 1996", FROM:"College - Tennessee", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Hamilton, Dale B.", ACTIVE:"1949 - 1949", FROM:"College - Franklin (Ind.)", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Hamilton, Dennis Eugene", ACTIVE:"1967 - 1968", FROM:"College - Arizona State", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Hamilton, Ralph Albert (Ham)", ACTIVE:"1948 - 1948", FROM:"College - Indiana", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Hamilton, Richard", ACTIVE:"ACTIVE", FROM:"College - Connecticut", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Hamilton, Roy Lee", ACTIVE:"1979 - 1980", FROM:"College - UCLA", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Hamilton, Steve Absher", ACTIVE:"1958 - 1959", FROM:"College - Purdue; Morehead State", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"Hamilton, Tang", ACTIVE:"2001 - 2001", FROM:"College - Mississippi State ''01", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Hamilton, Thomas", ACTIVE:"1995 - 1999", FROM:"College - No College", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Hamilton, Zendon", ACTIVE:"2000 - 2005", FROM:"College - St. John's", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Hammink, Geert", ACTIVE:"1993 - 1995", FROM:"College - Louisiana State", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Hammonds, Tom", ACTIVE:"1989 - 2000", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Hancock, Darrin", ACTIVE:"1994 - 1996", FROM:"College - Garden City CC KS; Kansas", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Handlogten, Ben", ACTIVE:"2003 - 2004", FROM:"College - Western Michigan", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Hankins, Cecil O.", ACTIVE:"1946 - 1947", FROM:"College - Oklahoma State", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Hankinson, Phil", ACTIVE:"1973 - 1974", FROM:"College - Pennsylvania", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Hannum, Alexander Murray (Alex)", ACTIVE:"1949 - 1956", FROM:"College - USC", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Hanrahan, Donald (Don)", ACTIVE:"1952 - 1952", FROM:"College - Loyola (Chicago)", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Hans, Rollen F. (Rolly)", ACTIVE:"1953 - 1954", FROM:"College - Los Angeles City Coll. CA (J.C.); Long Island University", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Hansbrough, Tyler", ACTIVE:"ACTIVE", FROM:"College - North Carolina", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Hansen, Bob", ACTIVE:"1983 - 1991", FROM:"College - Iowa", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Hansen, Glenn R.", ACTIVE:"1975 - 1977", FROM:"College - Utah State; Louisiana State", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Hansen, Lars", ACTIVE:"1978 - 1978", FROM:"College - Washington", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Hansen, Travis", ACTIVE:"2003 - 2003", FROM:"College - Brigham Young", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Hanson, Reggie", ACTIVE:"1997 - 1997", FROM:"College - Kentucky", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Hanzlik, Bill", ACTIVE:"1980 - 1989", FROM:"College - Notre Dame", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Harangody, Luke", ACTIVE:"ACTIVE", FROM:"College - Notre Dame", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Hardaway, Anfernee", ACTIVE:"2007 - 2007", FROM:"College - Memphis", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"Hardaway, Tim", ACTIVE:"1989 - 2002", FROM:"College - Texas-El Paso ''89", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Harden, James", ACTIVE:"ACTIVE", FROM:"College - Arizona State", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Harding, Reginald (Reggie)", ACTIVE:"1963 - 1967", FROM:"College - No College", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Iavaroni, Marc", ACTIVE:"1982 - 1988", FROM:"College - Virginia", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Ibaka, Serge", ACTIVE:"ACTIVE", FROM:"From - Brazzaville, Republic of Congo", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Iguodala, Andre", ACTIVE:"ACTIVE", FROM:"College - Arizona", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Ilgauskas, Zydrunas", ACTIVE:"ACTIVE", FROM:"From - Kaunas, Lithuania", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Ilic, Mile", ACTIVE:"2006 - 2006", FROM:"From - Serbia & Montenegro", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Ilunga-Mbenga, Didier", ACTIVE:"ACTIVE", FROM:"From - Kinshasa, DRC", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Ilyasova, Ersan", ACTIVE:"ACTIVE", FROM:"From - Eskisehir, Turkey", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Imhoff, Darrall Tucker (Big D)", ACTIVE:"1960 - 1971", FROM:"College - California", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Ingelsby, Tom", ACTIVE:"1973 - 1973", FROM:"College - Villanova", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Ingram, Joel McCoy (McCoy)", ACTIVE:"1957 - 1957", FROM:"College - Jackson State", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Irvin, Byron", ACTIVE:"1989 - 1992", FROM:"College - Arkansas; Missouri", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Issel, Dan", ACTIVE:"1976 - 1984", FROM:"College - Kentucky", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Iuzzolino, Mike", ACTIVE:"1991 - 1992", FROM:"College - Penn State; St. Francis (PA)", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Iverson, Allen", ACTIVE:"2007 - 2009", FROM:"College - Georgetown", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Ivey, Royal", ACTIVE:"ACTIVE", FROM:"College - Texas", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Jack, Jarrett", ACTIVE:"ACTIVE", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Jackson, Alvin (Al)", ACTIVE:"1967 - 1967", FROM:"College - Wilberforce", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Jackson, Anthony Eugene (Tony)", ACTIVE:"1980 - 1980", FROM:"College - Florida State", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Jackson, Bobby", ACTIVE:"2007 - 2008", FROM:"College - Minnesota", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Jackson, Cedric", ACTIVE:"2009 - 2009", FROM:"College - Cleveland State", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Jackson, Darnell", ACTIVE:"ACTIVE", FROM:"College - Kansas", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Jackson, Gregory (Greg)", ACTIVE:"1974 - 1974", FROM:"College - Guilford", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Jackson, Jaren", ACTIVE:"1989 - 2001", FROM:"College - Georgetown", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Jackson, Jermaine", ACTIVE:"1999 - 2005", FROM:"College - Detroit", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Jackson, Jim", ACTIVE:"1992 - 2005", FROM:"College - Ohio State", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Jackson, Lucious B. (Luke)", ACTIVE:"1964 - 1971", FROM:"College - Quincy; Texas Southern; Texas-Pan American", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Jackson, Luke", ACTIVE:"2007 - 2007", FROM:"College - Oregon", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Jackson, Marc", ACTIVE:"2000 - 2006", FROM:"College - Temple", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Jackson, Mark", ACTIVE:"1987 - 2003", FROM:"College - St. John''s (N.Y.) '87", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Jackson, Michael", ACTIVE:"1987 - 1989", FROM:"College - Georgetown", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Jackson, Myron", ACTIVE:"1986 - 1986", FROM:"College - Arkansas-Little Rock", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Jackson, Philip D. (Phil, Action)", ACTIVE:"1967 - 1979", FROM:"College - North Dakota", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Jackson, Ralph A. III", ACTIVE:"1984 - 1984", FROM:"College - UCLA", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Jackson, Randell", ACTIVE:"1998 - 1999", FROM:"College - Florida State", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Jackson, Stanley", ACTIVE:"1993 - 1993", FROM:"College - Alabama-Birmingham", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Jackson, Stephen", ACTIVE:"ACTIVE", FROM:"High School - Oak Hill Academy (Mouth of Wilson, VA)", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Jackson, Tracy", ACTIVE:"1981 - 1983", FROM:"College - Notre Dame", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Jackson, Wardell", ACTIVE:"1974 - 1974", FROM:"College - Ohio State", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Jacobs, Winfred O. (Fred)", ACTIVE:"1946 - 1946", FROM:"College - Denver", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Jacobsen, Casey", ACTIVE:"2007 - 2007", FROM:"College - Stanford", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Jacobson, Sam", ACTIVE:"1998 - 2000", FROM:"College - Minnesota", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Jamerson, Dave", ACTIVE:"1990 - 1993", FROM:"College - Ohio U.", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"James, Aaron (A.J.)", ACTIVE:"1974 - 1978", FROM:"College - Grambling State", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"James, Damion", ACTIVE:"ACTIVE", FROM:"College - Texas", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"James, Harold Gene (Gene, Goose)", ACTIVE:"1948 - 1950", FROM:"College - Marshall", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"James, Henry", ACTIVE:"1990 - 1997", FROM:"College - South Plains Coll. TX (J.C.); St. Mary's (Tex.)", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"James, Jerome", ACTIVE:"2007 - 2008", FROM:"College - Florida A&M", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"James, LeBron", ACTIVE:"ACTIVE", FROM:"High School - St. Vincent-St. Mary HS (OH)", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"James, Mike", ACTIVE:"2007 - 2009", FROM:"College - Duquesne", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"James, Tim", ACTIVE:"1999 - 2001", FROM:"College - Miami (Fla.) ''99", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Jamison, Antawn", ACTIVE:"ACTIVE", FROM:"College - North Carolina", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Jamison, Harold", ACTIVE:"1999 - 2001", FROM:"College - Clemson ''99", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Janisch, John Albert", ACTIVE:"1946 - 1947", FROM:"College - Valparaiso", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Janotta, Howard (Howie)", ACTIVE:"1949 - 1949", FROM:"College - Seton Hall", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Jaric, Marko", ACTIVE:"2007 - 2008", FROM:"From - Belgrade, Serbia", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Jaros, Anthony Joseph (Tony)", ACTIVE:"1946 - 1950", FROM:"College - Minnesota", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Jasikevicius, Sarunas", ACTIVE:"2005 - 2006", FROM:"College - Maryland", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Jawai, Nathan", ACTIVE:"2008 - 2009", FROM:"From - Australia", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Jeannette, Harry Edward (Buddy)", ACTIVE:"1947 - 1949", FROM:"College - Washington & Jefferson", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Jeelani, Abdul Qadir (formerly Gary Cole)", ACTIVE:"1979 - 1980", FROM:"College - Wis.-Parkside", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Jefferies, Chris", ACTIVE:"2002 - 2003", FROM:"College - Fresno State ''03", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Jeffers, Othyus", ACTIVE:"ACTIVE", FROM:"College - Robert Morris (Ill.)", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Jefferson, Al", ACTIVE:"ACTIVE", FROM:"High School - Prentiss HS (MS)", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Jefferson, Dontell", ACTIVE:"2008 - 2008", FROM:"College - Arkansas", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Jefferson, Richard", ACTIVE:"ACTIVE", FROM:"College - Arizona", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Kachan, Edwin John (Whitey)", ACTIVE:"1948 - 1948", FROM:"College - DePaul", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Kaftan, George A. (The Golden Greek)", ACTIVE:"1948 - 1952", FROM:"College - Holy Cross", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Kalafat, Edward L. (Ed)", ACTIVE:"1954 - 1956", FROM:"College - Minnesota", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Kaman, Chris", ACTIVE:"ACTIVE", FROM:"College - Central Michigan", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"Kaplowitz, Ralph (Kappy)", ACTIVE:"1946 - 1947", FROM:"College - N.Y.U.", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Kapono, Jason", ACTIVE:"ACTIVE", FROM:"College - UCLA", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Kappen, Anthony George (Tony)", ACTIVE:"1946 - 1946", FROM:"College - No College", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Karl, Coby", ACTIVE:"2007 - 2009", FROM:"College - Boise State", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Karl, George Matthew", ACTIVE:"1976 - 1977", FROM:"College - North Carolina", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Kasid, Edward (Ed)", ACTIVE:"1946 - 1946", FROM:"College - No College", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Kasun, Mario", ACTIVE:"2004 - 2005", FROM:"From - Croatia", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Katkaveck, Leo Frank", ACTIVE:"1948 - 1949", FROM:"College - North Carolina State", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Kauffman, Robert (Bob, Horse)", ACTIVE:"1968 - 1974", FROM:"College - Guilford", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Kautz, Wilbert (Wibs)", ACTIVE:"1946 - 1946", FROM:"College - Loyola (Chicago)", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Kea, Clarence Leroy", ACTIVE:"1980 - 1981", FROM:"College - Lamar", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Kearns, Michael Joseph", ACTIVE:"1954 - 1954", FROM:"College - Princeton", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"Kearns, Thomas Francis Jr. (Tommy)", ACTIVE:"1958 - 1958", FROM:"College - North Carolina", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Keefe, Adam", ACTIVE:"1992 - 2000", FROM:"College - Stanford", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Keeling, Harold A.", ACTIVE:"1985 - 1985", FROM:"College - Santa Clara", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Keller, Kenneth W. (Ken)", ACTIVE:"1946 - 1946", FROM:"College - Vermont; St. John's (N.Y.)", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Kelley, Rich", ACTIVE:"1975 - 1985", FROM:"College - Stanford", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Kellogg, Clark", ACTIVE:"1982 - 1986", FROM:"College - Ohio State", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Kelly, Gerard Allan (Jerry)", ACTIVE:"1946 - 1947", FROM:"College - Marshall", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Kelly, Thomas Edward (Tom)", ACTIVE:"1948 - 1948", FROM:"College - N.Y.U.", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Kelser, Greg", ACTIVE:"1979 - 1984", FROM:"College - Michigan State", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Kelso, Ben", ACTIVE:"1973 - 1973", FROM:"College - Central Michigan", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Kemp, Shawn", ACTIVE:"1989 - 2002", FROM:"High School - Concord HS (IN) ''87", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Kempton, Tim", ACTIVE:"1986 - 1997", FROM:"College - Notre Dame", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Kendrick, Frank Edward", ACTIVE:"1974 - 1974", FROM:"College - Purdue", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Kennedy, Eugene (Goo)", ACTIVE:"1976 - 1976", FROM:"College - Texas Christian", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Kennedy, Joseph A. (Joe)", ACTIVE:"1968 - 1969", FROM:"College - Duke", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Kennedy, William F. (Pickles)", ACTIVE:"1960 - 1960", FROM:"College - Temple", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Kenon, Larry", ACTIVE:"1976 - 1982", FROM:"College - Amarillo Coll. TX (J.C.); Memphis", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Kenville, William McGill (Billy, The Kid)", ACTIVE:"1953 - 1959", FROM:"College - St. Bonaventure", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Kerner, Jonathan", ACTIVE:"1998 - 1998", FROM:"College - East Carolina ''97", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Kerr, Johnny", ACTIVE:"1954 - 1965", FROM:"College - Illinois", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Kerr, Steve", ACTIVE:"1988 - 2002", FROM:"College - Arizona ''88", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Kerris, John E. (Jack)", ACTIVE:"1949 - 1952", FROM:"College - Loyola (Chicago)", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Kersey, Jerome", ACTIVE:"1984 - 2000", FROM:"College - Longwood", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Kessler, Alec", ACTIVE:"1990 - 1993", FROM:"College - Georgia", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Ketner, Lari", ACTIVE:"1999 - 2000", FROM:"College - Massachusetts", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Keys, Randolph", ACTIVE:"1988 - 1995", FROM:"College - Southern Mississippi", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Khryapa, Viktor", ACTIVE:"2007 - 2007", FROM:"From - Russia", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Kidd, Jason", ACTIVE:"ACTIVE", FROM:"College - California", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Kidd, Warren", ACTIVE:"1993 - 1993", FROM:"College - Middle Tennessee State", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Kiffin, Irvin A. Jr.", ACTIVE:"1979 - 1979", FROM:"College - Virginia Union; Oklahoma Baptist", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Kiley, John F. (Jack)", ACTIVE:"1951 - 1952", FROM:"College - Syracuse", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Killum, Earnest (Ernie)", ACTIVE:"1970 - 1970", FROM:"College - Stetson", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Kilpatrick, Carl", ACTIVE:"1979 - 1979", FROM:"College - Kilgore Coll. TX (J.C.); Louisiana-Monroe", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Kimball, Toby", ACTIVE:"1966 - 1974", FROM:"College - Connecticut", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Lacey, Sam", ACTIVE:"1970 - 1982", FROM:"College - New Mexico State", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"LaCour, Fred", ACTIVE:"1960 - 1962", FROM:"College - San Francisco", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Laettner, Christian", ACTIVE:"1992 - 2004", FROM:"College - Duke", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Lafayette, Oliver", ACTIVE:"2009 - 2009", FROM:"College - Houston", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"LaFrentz, Raef", ACTIVE:"2007 - 2007", FROM:"College - Kansas", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"LaGarde, Thomas Joseph (Tom)", ACTIVE:"1977 - 1984", FROM:"College - North Carolina", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Laimbeer, Bill", ACTIVE:"1980 - 1993", FROM:"College - Owens CC OH; Notre Dame", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Lalich, Peter T. (Pete)", ACTIVE:"1946 - 1946", FROM:"College - Ohio U.", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Lamar, Dwight (Bo)", ACTIVE:"1976 - 1976", FROM:"College - Louisiana-Lafayette", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Lambert, John Edward", ACTIVE:"1975 - 1981", FROM:"College - USC", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Lamp, Jeff", ACTIVE:"1981 - 1988", FROM:"College - Virginia", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Lampe, Maciej", ACTIVE:"2003 - 2005", FROM:"From - Poland", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Lampley, Jimmy", ACTIVE:"1986 - 1986", FROM:"College - Vanderbilt; Arkansas-Little Rock", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Lampley, Sean", ACTIVE:"2002 - 2003", FROM:"College - California", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"Landry, Carl", ACTIVE:"ACTIVE", FROM:"College - Purdue", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Landry, Marcus", ACTIVE:"2009 - 2009", FROM:"College - Wisconsin", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Landsberger, Mark", ACTIVE:"1977 - 1983", FROM:"College - Allan Hancock Coll. CA (J.C.); Minnesota; Arizona State", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Lane, Jerome", ACTIVE:"1988 - 1992", FROM:"College - Pittsburgh", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Lang, Andrew", ACTIVE:"1988 - 1999", FROM:"College - Arkansas", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Lang, Antonio", ACTIVE:"1994 - 1999", FROM:"College - Duke", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Lang, James", ACTIVE:"2006 - 2006", FROM:"High School - Central Park Christian HS (AL)", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Langdon, Trajan", ACTIVE:"1999 - 2001", FROM:"College - Duke", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Langford, Keith", ACTIVE:"2007 - 2007", FROM:"College - Kansas", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Langhi, Dan", ACTIVE:"2000 - 2003", FROM:"College - Vanderbilt ''00", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Lanier, Bob", ACTIVE:"1970 - 1983", FROM:"College - St. Bonaventure", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Lantz, Stuart Burrell (Stu)", ACTIVE:"1968 - 1975", FROM:"College - Nebraska", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Larese, York Bruno", ACTIVE:"1961 - 1961", FROM:"College - North Carolina", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"LaRue, Rusty", ACTIVE:"1997 - 2003", FROM:"College - Wake Forest", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"LaRusso, Rudolph A. (Rudy)", ACTIVE:"1959 - 1968", FROM:"College - Dartmouth", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Laskowski, John", ACTIVE:"1975 - 1976", FROM:"College - Indiana", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Lasme, Stephane", ACTIVE:"2007 - 2007", FROM:"College - Massachusetts", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Lattin, David (Dave, Big Daddy)", ACTIVE:"1967 - 1968", FROM:"College - Texas-El Paso", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Lauderdale, Priest", ACTIVE:"1996 - 1997", FROM:"College - Central State (Ohio)", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Laurel, Richard", ACTIVE:"1977 - 1977", FROM:"College - Hofstra", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Lautenbach, Walter Henry (Walt)", ACTIVE:"1949 - 1949", FROM:"College - Wisconsin", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Lavelli, Anthony (Tony)", ACTIVE:"1949 - 1950", FROM:"College - Yale", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Lavoy, Robert William (Bob)", ACTIVE:"1950 - 1953", FROM:"College - Illinois; Western Kentucky", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Law, Acie", ACTIVE:"ACTIVE", FROM:"College - Texas A&M", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Lawal, Gani", ACTIVE:"ACTIVE", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Lawrence, Edmund (Ed)", ACTIVE:"1980 - 1980", FROM:"College - McNeese State", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Lawson, Jason", ACTIVE:"1997 - 1997", FROM:"College - Villanova ''97", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Lawson, Ty", ACTIVE:"ACTIVE", FROM:"College - North Carolina", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Layton, Dennis (Mo)", ACTIVE:"1971 - 1977", FROM:"College - Phoenix Coll. AZ (J.C.); USC", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Leaks, Emanuel (Manny)", ACTIVE:"1972 - 1973", FROM:"College - Niagara", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Lear, Harold C. Jr. (Hal, King)", ACTIVE:"1956 - 1956", FROM:"College - Temple", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Leavell, Allen", ACTIVE:"1979 - 1988", FROM:"College - Oklahoma City", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Lebo, Jeff", ACTIVE:"1989 - 1989", FROM:"College - North Carolina", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Leckner, Eric", ACTIVE:"1988 - 1996", FROM:"College - Wyoming", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Lee, Alfred (Butch)", ACTIVE:"1978 - 1979", FROM:"College - Marquette", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Lee, Clyde", ACTIVE:"1966 - 1975", FROM:"College - Vanderbilt", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Macaluso, Michael Emelius (Mike)", ACTIVE:"1973 - 1973", FROM:"College - Canisius", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Macauley, Ed", ACTIVE:"1949 - 1958", FROM:"College - St. Louis", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"MacCulloch, Todd", ACTIVE:"1999 - 2002", FROM:"College - Washington ''99", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"MacGilvray, Ronald (Ronnie)", ACTIVE:"1954 - 1954", FROM:"College - St. John's (N.Y.)", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Macijauskas, Arvydas", ACTIVE:"2005 - 2005", FROM:"From - Lithuania", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Mack, Oliver (Ollie)", ACTIVE:"1979 - 1981", FROM:"College - San Jacinto Coll. TX (J.C.); East Carolina", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Mack, Sam", ACTIVE:"1992 - 2001", FROM:"College - Iowa State; Arizona State; Tyler JC TX; Houston", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"Mackey, Malcolm", ACTIVE:"1993 - 1993", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"Macklin, Rudy", ACTIVE:"1981 - 1983", FROM:"College - Louisiana State", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Macknowski, John Andrew (Johnny, Whitey)", ACTIVE:"1949 - 1950", FROM:"College - Seton Hall", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"MacLean, Don", ACTIVE:"1992 - 2000", FROM:"College - UCLA", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Macon, Mark", ACTIVE:"1991 - 1998", FROM:"College - Temple", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Macy, Kyle", ACTIVE:"1980 - 1986", FROM:"College - Purdue; Kentucky", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Maddox, Jack C.", ACTIVE:"1948 - 1948", FROM:"College - West Texas A&M", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Maddox, Tito", ACTIVE:"2002 - 2002", FROM:"College - Fresno State ''04", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Madkins, Gerald", ACTIVE:"1993 - 1997", FROM:"College - UCLA", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Madsen, Mark", ACTIVE:"2007 - 2008", FROM:"College - Stanford", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Mager, Norman Clifford (Norm)", ACTIVE:"1950 - 1950", FROM:"College - St. John's (N.Y.); CCNY", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Maggette, Corey", ACTIVE:"ACTIVE", FROM:"College - Duke", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Magley, Dave", ACTIVE:"1982 - 1982", FROM:"College - Kansas", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Magloire, Jamaal", ACTIVE:"ACTIVE", FROM:"College - Kentucky", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Mahinmi, Ian", ACTIVE:"ACTIVE", FROM:"From - Rouen, France", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Mahnken, John E. (Long John; Stretch)", ACTIVE:"1946 - 1952", FROM:"College - Georgetown", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Mahoney, Francis H. (Mo)", ACTIVE:"1952 - 1953", FROM:"College - Brown", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Mahorn, Rick", ACTIVE:"1980 - 1998", FROM:"College - Hampton", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Majerle, Dan", ACTIVE:"1988 - 2001", FROM:"College - Central Michigan", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Major, Renaldo", ACTIVE:"2006 - 2006", FROM:"College - Fresno State", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Malamed, Lionel", ACTIVE:"1948 - 1948", FROM:"College - CCNY", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Malone, Jeff", ACTIVE:"1983 - 1995", FROM:"College - Mississippi State", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Malone, Karl", ACTIVE:"1985 - 2003", FROM:"College - Louisiana Tech ''86", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Malone, Moses", ACTIVE:"1976 - 1994", FROM:"College - No College", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Maloney, Matt", ACTIVE:"1996 - 2002", FROM:"College - Pennsylvania", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Malovic, Stephen L.", ACTIVE:"1979 - 1979", FROM:"College - USC; San Diego State", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Manakas, Theodore (Ted)", ACTIVE:"1973 - 1973", FROM:"College - Princeton", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Mandic, John J.", ACTIVE:"1948 - 1949", FROM:"College - Oregon State", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Mangiapane, Francis E. (Frank)", ACTIVE:"1946 - 1946", FROM:"College - N.Y.U.", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Manning, Danny", ACTIVE:"1988 - 2002", FROM:"College - Kansas ''88", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Manning, Edward R. (Ed)", ACTIVE:"1967 - 1970", FROM:"College - Jackson State", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Manning, Rich", ACTIVE:"1995 - 1996", FROM:"College - Syracuse; Washington", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Mannion, Pace", ACTIVE:"1983 - 1988", FROM:"College - Utah", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Mantis, Nicholas (Nick)", ACTIVE:"1959 - 1962", FROM:"College - Northwestern", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Maravich, Pete", ACTIVE:"1970 - 1979", FROM:"College - Louisiana State", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Maravich, Peter (Press)", ACTIVE:"1946 - 1946", FROM:"College - Davis & Elkins", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Marble, Roy", ACTIVE:"1989 - 1993", FROM:"College - Iowa", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Marbury, Stephon", ACTIVE:"2007 - 2008", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Marciulionis, Sarunas", ACTIVE:"1989 - 1996", FROM:"College - Vilnius (Lithuania)", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"Mariaschin, Saul George", ACTIVE:"1947 - 1947", FROM:"College - Bloomsburg; Syracuse; Harvard", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Marin, John Warren (Jack)", ACTIVE:"1966 - 1976", FROM:"College - Duke", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Marion, Shawn", ACTIVE:"ACTIVE", FROM:"College - UNLV", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Markota, Damir", ACTIVE:"2006 - 2006", FROM:"From - Croatia", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"N'diaye, Mamadou", ACTIVE:"2000 - 2004", FROM:"College - Auburn", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Naber, Robert E. (Bob)", ACTIVE:"1952 - 1952", FROM:"College - Louisville", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Nachamkin, Boris Alexander", ACTIVE:"1954 - 1954", FROM:"College - N.Y.U.", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Nachbar, Bostjan", ACTIVE:"2007 - 2007", FROM:"From - Slovenia", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Nagel, Gerald R. (Jerry)", ACTIVE:"1949 - 1949", FROM:"College - Loyola (Chicago)", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Nagy, Frederick Karl (Fritz)", ACTIVE:"1948 - 1948", FROM:"College - North Carolina; Akron", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Nailon, Lee", ACTIVE:"2000 - 2005", FROM:"College - Texas Christian", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Najera, Eduardo", ACTIVE:"ACTIVE", FROM:"College - Oklahoma", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Nance, Larry", ACTIVE:"1981 - 1993", FROM:"College - Clemson", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Napolitano, Paul Wally", ACTIVE:"1948 - 1948", FROM:"College - San Francisco", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Nash, Charles Francis (Cotton)", ACTIVE:"1964 - 1964", FROM:"College - Kentucky", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Nash, Robert Lee Jr. (Bob)", ACTIVE:"1972 - 1978", FROM:"College - San Jacinto Coll. TX (J.C.); Hawaii", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Nash, Steve", ACTIVE:"ACTIVE", FROM:"College - Santa Clara", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Nater, Swen", ACTIVE:"1976 - 1983", FROM:"College - Cypress Coll. CA (J.C.); UCLA", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Nathan, Howard", ACTIVE:"1995 - 1995", FROM:"College - Louisiana-Monroe", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Natt, Calvin", ACTIVE:"1979 - 1989", FROM:"College - Louisiana-Monroe", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Natt, Kenny", ACTIVE:"1980 - 1984", FROM:"College - Louisiana-Monroe", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Naulls, Willie", ACTIVE:"1956 - 1965", FROM:"College - UCLA", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Navarro, Juan Carlos", ACTIVE:"2007 - 2007", FROM:"From - Spain", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"Ndiaye, Hamady", ACTIVE:"ACTIVE", FROM:"College - Rutgers", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Ndiaye, Makhtar", ACTIVE:"1998 - 1998", FROM:"College - North Carolina", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Ndong, Boniface", ACTIVE:"2005 - 2005", FROM:"-", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Neal, Craig", ACTIVE:"1988 - 1990", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Neal, Gary", ACTIVE:"ACTIVE", FROM:"College - Towson", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Neal, James Ellerbe (Jim)", ACTIVE:"1953 - 1954", FROM:"College - Wofford", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Neal, Lloyd", ACTIVE:"1972 - 1978", FROM:"College - Tennessee State", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Nealy, Ed", ACTIVE:"1982 - 1992", FROM:"College - Kansas State", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"Negratti, Albert Edward (Al)", ACTIVE:"1946 - 1946", FROM:"College - Seton Hall", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Nelson, Barry G.", ACTIVE:"1971 - 1971", FROM:"College - Duquesne", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Nelson, DeMarcus", ACTIVE:"2008 - 2008", FROM:"College - Duke", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Nelson, Donald Arvid (Don, Nellie)", ACTIVE:"1962 - 1975", FROM:"College - Iowa", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Nelson, Jameer", ACTIVE:"ACTIVE", FROM:"College - Saint Joseph's", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Nelson, Louis (Louie, Sweets)", ACTIVE:"1973 - 1977", FROM:"College - Washington", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Nembhard, Ruben", ACTIVE:"1996 - 1996", FROM:"College - Weber State", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Nene", ACTIVE:"ACTIVE", FROM:"From - Sao Carlos, Brazil", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Nesby, Tyrone", ACTIVE:"1998 - 2001", FROM:"College - Vincennes IN (J.C.); Nevada-Las Vegas", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Nessley, Martin", ACTIVE:"1987 - 1987", FROM:"College - Duke", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Nesterovic, Rasho", ACTIVE:"2007 - 2009", FROM:"From - Ljubljana, Slovenia", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Neumann, Johnny", ACTIVE:"1976 - 1977", FROM:"College - Mississippi", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Neumann, Paul R.", ACTIVE:"1961 - 1966", FROM:"College - Stanford", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Nevitt, Chuck", ACTIVE:"1982 - 1993", FROM:"College - North Carolina State", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Newbern, Melvin", ACTIVE:"1992 - 1992", FROM:"College - Minnesota", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Newbill, Ivano", ACTIVE:"1994 - 1997", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Newble, Ira", ACTIVE:"2007 - 2007", FROM:"College - Miami (Ohio)", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Newlin, Mike", ACTIVE:"1971 - 1981", FROM:"College - Utah", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Newman, Johnny", ACTIVE:"1986 - 2001", FROM:"College - Richmond", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Newmark, David L. (Dave)", ACTIVE:"1968 - 1969", FROM:"College - Columbia", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Nichols, Demetris", ACTIVE:"2007 - 2008", FROM:"College - Syracuse", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Nichols, Jack Edward", ACTIVE:"1948 - 1957", FROM:"College - Washington; USC", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Nickerson, Gaylon", ACTIVE:"1996 - 1996", FROM:"College - Wichita State; Butler Co. CC PA; Kansas State; Northwestern O", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"O'Bannon, Charles", ACTIVE:"1997 - 1998", FROM:"College - UCLA", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"O'Bannon, Ed", ACTIVE:"1995 - 1996", FROM:"College - UCLA", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"O'Koren, Mike", ACTIVE:"1980 - 1987", FROM:"College - North Carolina", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"O'Sullivan, Dan", ACTIVE:"1990 - 1995", FROM:"College - Fordham", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"O'Boyle, John W.", ACTIVE:"1952 - 1952", FROM:"College - Modesto JC CA; Colorado State", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"O'Brien, Ralph E. (Buckshot)", ACTIVE:"1951 - 1952", FROM:"College - Butler", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"O'Brien, Robert (Bob)", ACTIVE:"1947 - 1948", FROM:"College - Kansas; Pepperdine", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"O'Bryant, Patrick", ACTIVE:"2007 - 2009", FROM:"College - Bradley", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"O'Connell, Dermott F. (Dermie)", ACTIVE:"1948 - 1949", FROM:"College - Holy Cross", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"O'Donnell, Andrew J. (Andy)", ACTIVE:"1949 - 1949", FROM:"College - Loyola (Balt.)", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"O'Grady, Francis David (Buddy)", ACTIVE:"1946 - 1948", FROM:"College - Georgetown", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"O'Keefe, Richard T. (Dick)", ACTIVE:"1947 - 1950", FROM:"College - Santa Clara", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"O'Keefe, Thomas V. (Tommy)", ACTIVE:"1950 - 1950", FROM:"College - Notre Dame; Georgetown", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"O'Malley, V. Grady (Grady)", ACTIVE:"1969 - 1969", FROM:"College - Manhattan", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"O'Neal, Jermaine", ACTIVE:"ACTIVE", FROM:"High School - Eau Claire HS (SC)", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"O'Neal, Shaquille", ACTIVE:"2007 - 2010", FROM:"College - Louisiana State", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"O'Neill, Mike", ACTIVE:"1952 - 1952", FROM:"College - California", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"O'Shea, Kevin Christopher", ACTIVE:"1950 - 1952", FROM:"College - Notre Dame", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"O'Shields, Garland L. (Mule)", ACTIVE:"1946 - 1946", FROM:"College - Spartanburg Tech SC (J.C.); Tennessee", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Oakley, Charles", ACTIVE:"1985 - 2003", FROM:"College - Virginia Union ''85", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Oberto, Fabricio", ACTIVE:"2007 - 2010", FROM:"From - Las Varillas, Argentina", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Oden, Greg", ACTIVE:"ACTIVE", FROM:"College - Ohio State", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Odom, Lamar", ACTIVE:"ACTIVE", FROM:"College - Rhode Island", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Ogden, Carlos (Bud)", ACTIVE:"1969 - 1970", FROM:"College - Santa Clara", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Ogden, Ralph", ACTIVE:"1970 - 1970", FROM:"College - Santa Clara", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Ogg, Alan", ACTIVE:"1990 - 1992", FROM:"College - Alabama-Birmingham", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Ohl, Donald Jay (Don)", ACTIVE:"1960 - 1969", FROM:"College - Illinois", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Okafor, Emeka", ACTIVE:"ACTIVE", FROM:"College - Connecticut", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Okur, Mehmet", ACTIVE:"ACTIVE", FROM:"From - Yalova, Turkey", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Olajuwon, Hakeem", ACTIVE:"1984 - 2001", FROM:"College - Houston ''84", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Olberding, Mark", ACTIVE:"1976 - 1986", FROM:"College - Minnesota", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Oldham, Jawann", ACTIVE:"1980 - 1990", FROM:"College - Seattle", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Oldham, John O. (Johnny)", ACTIVE:"1949 - 1950", FROM:"College - Western Kentucky", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Oleynick, Frank (Magic)", ACTIVE:"1975 - 1976", FROM:"College - Seattle", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Olive, John", ACTIVE:"1978 - 1979", FROM:"College - Villanova", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Oliver, Brian", ACTIVE:"1990 - 1997", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Oliver, Dean", ACTIVE:"2001 - 2002", FROM:"College - Iowa ''01", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Oliver, Jimmy", ACTIVE:"1991 - 1998", FROM:"College - Purdue", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Ollie, Kevin", ACTIVE:"2007 - 2009", FROM:"College - Connecticut", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Ollrich, Gene W. (Moe)", ACTIVE:"1949 - 1949", FROM:"College - Drake", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Olowokandi, Michael", ACTIVE:"1998 - 2006", FROM:"College - U. of Pacific", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Olsen, Enoch Eli III (Bud)", ACTIVE:"1962 - 1968", FROM:"College - Louisville", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Orms, Barry D.", ACTIVE:"1968 - 1968", FROM:"College - St. Louis", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Orr, John M. (Johnny)", ACTIVE:"1949 - 1949", FROM:"College - Beloit; Illinois", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Orr, Louis", ACTIVE:"1980 - 1987", FROM:"College - Syracuse", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Ortiz, Jose", ACTIVE:"1988 - 1989", FROM:"College - Oregon State", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Osborne, Charles H. (Chuck)", ACTIVE:"1961 - 1961", FROM:"College - Western Kentucky", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Osterkorn, Walter Raymond (Wally)", ACTIVE:"1951 - 1954", FROM:"College - Illinois", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"Ostertag, Greg", ACTIVE:"1995 - 2005", FROM:"College - Kansas", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Othick, Matt", ACTIVE:"1992 - 1992", FROM:"College - Arizona", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Pace, Joseph (Joe)", ACTIVE:"1976 - 1977", FROM:"College - Maryland East. Shore; Coppin State", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Pachulia, Zaza", ACTIVE:"ACTIVE", FROM:"From - Tbilisi, Georgia", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Pack, Robert", ACTIVE:"1991 - 2003", FROM:"College - USC", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Paddio, Gerald", ACTIVE:"1990 - 1993", FROM:"College - Seminole JC OK; Kilgore Coll. TX (J.C.); Nevada-Las Vegas", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Padgett, Scott", ACTIVE:"1999 - 2006", FROM:"College - Kentucky", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Paine, Frederick Vincent Jr. (Fred)", ACTIVE:"1948 - 1948", FROM:"College - Westminster (PA)", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Palacio, Milt", ACTIVE:"1999 - 2005", FROM:"College - Colorado State", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Palazzi, Togo Anthony", ACTIVE:"1954 - 1959", FROM:"College - Holy Cross", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Palmer, James G. (Jim)", ACTIVE:"1958 - 1960", FROM:"College - Dayton", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Palmer, John S. (Bud)", ACTIVE:"1946 - 1948", FROM:"College - Princeton", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Palmer, Walter", ACTIVE:"1990 - 1992", FROM:"College - Dartmouth", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Panko, Andy", ACTIVE:"2000 - 2000", FROM:"College - Lebanon Valley", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Pargo, Jannero", ACTIVE:"ACTIVE", FROM:"College - Arkansas", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Parham, Estes Foster (Easy)", ACTIVE:"1948 - 1950", FROM:"College - Texas Wesleyan", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Parish, Robert", ACTIVE:"1976 - 1996", FROM:"College - Centenary", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"Park, Medford R. (Med)", ACTIVE:"1955 - 1959", FROM:"College - Missouri", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Parker, Anthony", ACTIVE:"ACTIVE", FROM:"College - Bradley", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"Parker, Robert S. Jr. (Sonny)", ACTIVE:"1976 - 1981", FROM:"College - Mineral Area Coll. MO (J.C.); Texas A&M", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Parker, Smush", ACTIVE:"2007 - 2007", FROM:"College - Fordham", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Parker, Tony", ACTIVE:"ACTIVE", FROM:"From - Paris, France", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"Parkinson, Jack Gordon", ACTIVE:"1949 - 1949", FROM:"College - Kentucky", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Parks, Cherokee", ACTIVE:"1995 - 2003", FROM:"College - Duke ''95", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Parr, Jack", ACTIVE:"1958 - 1958", FROM:"College - Kansas State", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Parrack, Doyle Kenneth", ACTIVE:"1946 - 1946", FROM:"College - Oklahoma State", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Parsley, Charles H. (Charlie)", ACTIVE:"1949 - 1949", FROM:"College - Western Kentucky", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Paspalj, Zarko", ACTIVE:"1989 - 1989", FROM:"College - No College", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Passaglia, Martin Harold (Marty)", ACTIVE:"1946 - 1948", FROM:"College - Santa Clara", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Pastushok, George A.", ACTIVE:"1946 - 1946", FROM:"College - Manhattan; St. John's (N.Y.)", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Patrick, Myles", ACTIVE:"1980 - 1980", FROM:"College - Auburn", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Patrick, Stanley A. (Stan)", ACTIVE:"1949 - 1949", FROM:"College - Santa Clara; Illinois", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Patterson, Andrae", ACTIVE:"1998 - 1999", FROM:"College - Indiana", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Patterson, George", ACTIVE:"1967 - 1967", FROM:"College - Toledo", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Patterson, Patrick", ACTIVE:"ACTIVE", FROM:"College - Kentucky", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Patterson, Ruben", ACTIVE:"2007 - 2007", FROM:"College - Cincinnati", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Patterson, Steven J. (Steve)", ACTIVE:"1971 - 1975", FROM:"College - UCLA", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Patterson, Tommie J. (Tommy)", ACTIVE:"1972 - 1973", FROM:"College - Ouachita Baptist", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Patterson, Worthington R. (Worthy)", ACTIVE:"1957 - 1957", FROM:"College - Connecticut", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Paul, Chris", ACTIVE:"ACTIVE", FROM:"College - Wake Forest", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Paulk, Charles (Charlie)", ACTIVE:"1968 - 1971", FROM:"College - Tulsa; Northeastern State (Okla.)", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Paulson, Gerald Arthur (Jerry)", ACTIVE:"1957 - 1957", FROM:"College - Manhattan", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Paultz, Billy", ACTIVE:"1976 - 1984", FROM:"College - Cameron; St. John's (N.Y.)", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Pavlovic, Aleksandar", ACTIVE:"ACTIVE", FROM:"From - Bar, Montenegro", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Paxson, James Edward Sr. (Jim)", ACTIVE:"1956 - 1957", FROM:"College - Dayton", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Paxson, Jim", ACTIVE:"1979 - 1989", FROM:"College - Dayton", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Paxson, John", ACTIVE:"1983 - 1993", FROM:"College - Notre Dame", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Payak, John Jr. (Johnny)", ACTIVE:"1949 - 1952", FROM:"College - Bowling Green State", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Payne, Kenny", ACTIVE:"1989 - 1992", FROM:"College - Louisville", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Payne, Tom", ACTIVE:"1971 - 1971", FROM:"College - Kentucky", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Payton, Gary", ACTIVE:"1990 - 2006", FROM:"College - Oregon State", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Payton, Melvin E. (Mel)", ACTIVE:"1951 - 1952", FROM:"College - Tulane", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Quick, Robert L. (Bob)", ACTIVE:"1968 - 1971", FROM:"College - Xavier (Ohio)", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Quinn, Chris", ACTIVE:"ACTIVE", FROM:"College - Notre Dame", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Quinnett, Brian", ACTIVE:"1989 - 1991", FROM:"College - Washington State", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Rackley, Luther Jr. (Luke)", ACTIVE:"1969 - 1973", FROM:"College - Xavier (Ohio)", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"Rader, Howard (Howie)", ACTIVE:"1948 - 1948", FROM:"College - Long Island University", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Radford, Mark", ACTIVE:"1981 - 1982", FROM:"College - Oregon State", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Radford, Wayne", ACTIVE:"1978 - 1978", FROM:"College - Indiana", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Radja, Dino", ACTIVE:"1993 - 1996", FROM:"College - Croatia", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Radmanovic, Vladimir", ACTIVE:"ACTIVE", FROM:"From - Belgrade, Serbia", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Radojevic, Aleksandar", ACTIVE:"1999 - 2004", FROM:"From - Serbia-Montenegro", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Radovich, Frank Raymond", ACTIVE:"1961 - 1961", FROM:"College - Indiana", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Radovich, George Lewis (Moe)", ACTIVE:"1952 - 1952", FROM:"College - Wyoming", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Radziszewski, Raymond A. (Ray)", ACTIVE:"1957 - 1957", FROM:"College - St. Joseph's (PA)", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Ragelis, Raymond Ernest (Ray)", ACTIVE:"1951 - 1951", FROM:"College - Northwestern", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Raiken, Sherwin H.", ACTIVE:"1952 - 1952", FROM:"College - Villanova", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Rains, Ed", ACTIVE:"1981 - 1982", FROM:"College - South Alabama", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Rakocevic, Igor", ACTIVE:"2002 - 2002", FROM:"College - No College", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Rambis, Kurt", ACTIVE:"1981 - 1994", FROM:"College - Santa Clara", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Ramos, Peter", ACTIVE:"2004 - 2004", FROM:"From - Puerto Rico", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Ramsey, Calvin (Cal)", ACTIVE:"1959 - 1960", FROM:"College - N.Y.U.", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Ramsey, Frank", ACTIVE:"1954 - 1963", FROM:"College - Kentucky", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Ramsey, Raymond Leroy (Ray)", ACTIVE:"1948 - 1948", FROM:"College - Bradley", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"Randall, Mark", ACTIVE:"1991 - 1994", FROM:"College - Kansas", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Randolph, Anthony", ACTIVE:"ACTIVE", FROM:"College - Louisiana State", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Randolph, Shavlik", ACTIVE:"2007 - 2009", FROM:"College - Duke", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Randolph, Zach", ACTIVE:"ACTIVE", FROM:"College - Michigan State", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Rank, Wallace Aliifua (Wally)", ACTIVE:"1980 - 1980", FROM:"College - San Jose State", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Ransey, Kelvin", ACTIVE:"1980 - 1985", FROM:"College - Ohio State", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Ranzino, Samuel Salvadore (Sam)", ACTIVE:"1951 - 1951", FROM:"College - North Carolina State", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Rasmussen, Blair", ACTIVE:"1985 - 1992", FROM:"College - Oregon", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Ratkovicz, George", ACTIVE:"1949 - 1954", FROM:"College - No College", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Ratleff, Ed", ACTIVE:"1973 - 1977", FROM:"College - Long Beach State", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Ratliff, Michael D. (Mike)", ACTIVE:"1972 - 1973", FROM:"College - Wis.-Eau Claire", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Ratliff, Theo", ACTIVE:"ACTIVE", FROM:"College - Wyoming", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Rautins, Andy", ACTIVE:"ACTIVE", FROM:"College - Syracuse", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"Rautins, Leo", ACTIVE:"1983 - 1984", FROM:"College - Minnesota; Syracuse", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"Ray, Allan", ACTIVE:"2006 - 2006", FROM:"College - Villanova", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Ray, Clifford", ACTIVE:"1971 - 1980", FROM:"College - Oklahoma", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Ray, Donald L. (Don, Duck)", ACTIVE:"1949 - 1949", FROM:"College - Western Kentucky", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Ray, James E. (Jim)", ACTIVE:"1956 - 1959", FROM:"College - Toledo", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Ray, James Earl", ACTIVE:"1980 - 1982", FROM:"College - Jacksonville", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Raymond, Craig Milford", ACTIVE:"1968 - 1968", FROM:"College - Brigham Young", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Rea, Connie Mack", ACTIVE:"1953 - 1953", FROM:"College - Centenary; Vanderbilt", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"Reaves, Joe L.", ACTIVE:"1973 - 1973", FROM:"College - Bethel College (Tenn.)", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Rebraca, Zeljko", ACTIVE:"2001 - 2005", FROM:"From - Serbia & Montenegro", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Recasner, Eldridge", ACTIVE:"1994 - 2001", FROM:"College - Washington", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Redd, Michael", ACTIVE:"ACTIVE", FROM:"College - Ohio State", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Reddout, Franklin P. (Frank)", ACTIVE:"1953 - 1953", FROM:"College - Syracuse", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"Redick, J.J.", ACTIVE:"ACTIVE", FROM:"College - Duke", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Redmond, Marlon Bernard", ACTIVE:"1978 - 1979", FROM:"College - San Francisco", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Reed, Hubert F. (Hub)", ACTIVE:"1958 - 1964", FROM:"College - Oklahoma City", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Reed, Justin", ACTIVE:"2004 - 2006", FROM:"College - Mississippi", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Reed, Ronald Lee (Ron)", ACTIVE:"1965 - 1966", FROM:"College - Notre Dame", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Sabonis, Arvydas", ACTIVE:"1995 - 2002", FROM:"From - Lithuania", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Sadowski, Edward Frank (Ed, Big Ed)", ACTIVE:"1946 - 1949", FROM:"College - Seton Hall", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Sailors, Kenneth L. (Kenny)", ACTIVE:"1946 - 1950", FROM:"College - Wyoming", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Salley, John", ACTIVE:"1986 - 1999", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Salmons, John", ACTIVE:"ACTIVE", FROM:"College - Miami (Fla.)", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Salvadori, Kevin", ACTIVE:"1996 - 1997", FROM:"College - North Carolina", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Samake, Soumaila", ACTIVE:"2000 - 2002", FROM:"From - Republic of Mali", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Samb, Cheikh", ACTIVE:"2007 - 2008", FROM:"From - Senegal", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Sampson, Jamal", ACTIVE:"2002 - 2006", FROM:"College - California", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Sampson, Ralph", ACTIVE:"1983 - 1991", FROM:"College - Virginia", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Samuels, Samardo", ACTIVE:"ACTIVE", FROM:"College - Louisville", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Sanchez, Pepe", ACTIVE:"2000 - 2002", FROM:"College - Temple ''00", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Sanders, Frankie J. (Frankie J.)", ACTIVE:"1978 - 1980", FROM:"College - Southern University", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Sanders, Jeff", ACTIVE:"1989 - 1992", FROM:"College - Georgia Southern", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Sanders, Larry", ACTIVE:"ACTIVE", FROM:"College - Virginia Commonwealth", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Sanders, Melvin", ACTIVE:"2005 - 2005", FROM:"College - Oklahoma State", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Sanders, Mike", ACTIVE:"1982 - 1992", FROM:"College - UCLA", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Sanders, Thomas Ernest (Satch)", ACTIVE:"1960 - 1972", FROM:"College - N.Y.U.", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Santiago, Daniel", ACTIVE:"2000 - 2004", FROM:"College - St. Vincent", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Santini, Robert (Bob)", ACTIVE:"1955 - 1955", FROM:"College - Iona", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Sappleton, Wayne B.", ACTIVE:"1984 - 1984", FROM:"College - Loyola (Chicago)", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Sasser, Jason", ACTIVE:"1996 - 1998", FROM:"College - Texas Tech ''96", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Sasser, Jeryl", ACTIVE:"2001 - 2002", FROM:"College - Southern Methodist ''01", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Satterfield, Kenny", ACTIVE:"2001 - 2002", FROM:"College - Cincinnati ''03", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Saul, Frank Benjamin Jr. (Pep)", ACTIVE:"1949 - 1954", FROM:"College - Seton Hall", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Sauldsberry, Woodrow Jr. (Woody)", ACTIVE:"1957 - 1965", FROM:"College - Texas Southern", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Saunders, James Frederick (Fred)", ACTIVE:"1974 - 1977", FROM:"College - Syracuse", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Savage, Donald Joseph (Don)", ACTIVE:"1951 - 1956", FROM:"College - Le Moyne", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Savovic, Predrag", ACTIVE:"2002 - 2002", FROM:"College - Hawaii ''02", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Sawyer, Alan Leigh", ACTIVE:"1950 - 1950", FROM:"College - UCLA", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Scalabrine, Brian", ACTIVE:"ACTIVE", FROM:"College - USC", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Scales, Alex", ACTIVE:"2005 - 2005", FROM:"College - Oregon", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Scales, DeWayne", ACTIVE:"1980 - 1983", FROM:"College - Louisiana State", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Schade, Frank", ACTIVE:"1972 - 1972", FROM:"College - Wis.-Eau Claire; Texas-El Paso", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Schadler, Bernard R. (Ben)", ACTIVE:"1947 - 1947", FROM:"College - Northwestern", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Schaefer, Herman H. (Herm)", ACTIVE:"1948 - 1949", FROM:"College - Indiana", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Schafer, Robert Thomas (Bob)", ACTIVE:"1955 - 1955", FROM:"College - Villanova", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Scharnus, Benedict Michael (Ben, Whitey)", ACTIVE:"1946 - 1948", FROM:"College - Seton Hall", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Schatzman, Marvin J. (Marv)", ACTIVE:"1949 - 1949", FROM:"College - St. Louis", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Schaus, Frederick Appleton (Fred)", ACTIVE:"1949 - 1953", FROM:"College - West Virginia", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Schayes, Danny", ACTIVE:"1981 - 1998", FROM:"College - Syracuse", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Schayes, Dolph", ACTIVE:"1949 - 1963", FROM:"College - N.Y.U.", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Schectman, Oscar B. (Ossie)", ACTIVE:"1946 - 1946", FROM:"College - Long Island University", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Scheffler, Steve", ACTIVE:"1990 - 1996", FROM:"College - Purdue", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Scheffler, Thomas Mark (Tom)", ACTIVE:"1984 - 1984", FROM:"College - Purdue", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Schellhase, David Gene Jr. (Dave)", ACTIVE:"1966 - 1967", FROM:"College - Purdue", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"Schenscher, Luke", ACTIVE:"2005 - 2006", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Scherer, Herbert Frederick (Herb)", ACTIVE:"1950 - 1951", FROM:"College - Long Island University", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Schintzius, Dwayne", ACTIVE:"1990 - 1998", FROM:"College - Florida", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Schlueter, Dale Wayne", ACTIVE:"1968 - 1977", FROM:"College - Colorado State", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Tabak, Zan", ACTIVE:"1994 - 2000", FROM:"College - No College", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Tabuse, Yuta", ACTIVE:"2004 - 2004", FROM:"College - BYU-Hawaii", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Taft, Chris", ACTIVE:"2005 - 2005", FROM:"College - Pittsburgh", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Tannenbaum, Sidney (Sid)", ACTIVE:"1947 - 1948", FROM:"College - N.Y.U.", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Tarlac, Dragan", ACTIVE:"2000 - 2000", FROM:"College - Olympiakos (Greece)", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Tarpley, Roy", ACTIVE:"1986 - 1994", FROM:"College - Michigan", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Tatum, William Earl (Earl)", ACTIVE:"1976 - 1979", FROM:"College - Marquette", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Taylor, Anthony", ACTIVE:"1988 - 1988", FROM:"College - Oregon", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Taylor, Brian Dw.", ACTIVE:"1976 - 1981", FROM:"College - Princeton", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Taylor, Donell", ACTIVE:"2005 - 2006", FROM:"College - Alabama-Birmingham", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Taylor, Fredrick Ollie (Fred)", ACTIVE:"1970 - 1971", FROM:"College - Texas-Pan American", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Taylor, Jay", ACTIVE:"1989 - 1989", FROM:"College - Eastern Illinois", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Taylor, Jeff", ACTIVE:"1982 - 1986", FROM:"College - Texas Tech", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Taylor, Jermaine", ACTIVE:"2009 - 2010", FROM:"College - Central Florida", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Taylor, Johnny", ACTIVE:"1997 - 1999", FROM:"College - Knoxville; Indian Hills CC IA; Tennessee-Chattanooga", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Taylor, Leonard", ACTIVE:"1989 - 1989", FROM:"College - California", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Taylor, Maurice", ACTIVE:"1997 - 2006", FROM:"College - Michigan", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Taylor, Mike", ACTIVE:"2008 - 2008", FROM:"College - Iowa State", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Taylor, Roland Morris (Fatty)", ACTIVE:"1976 - 1976", FROM:"College - Edison CC FL; La Salle", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Taylor, Vince", ACTIVE:"1982 - 1982", FROM:"College - Duke", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Teagle, Terry", ACTIVE:"1982 - 1992", FROM:"College - Baylor", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Teague, Jeff", ACTIVE:"ACTIVE", FROM:"College - Wake Forest", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Telfair, Sebastian", ACTIVE:"ACTIVE", FROM:"High School - Abraham Lincoln HS (Brooklyn, NY)", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Temple, Garrett", ACTIVE:"ACTIVE", FROM:"College - Louisiana State", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Terrell, Ira Edmondson", ACTIVE:"1976 - 1978", FROM:"College - Southern Methodist", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Terry, Allen Charles (Chuck)", ACTIVE:"1972 - 1976", FROM:"College - Long Beach State", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Terry, Carlos", ACTIVE:"1980 - 1982", FROM:"College - Winston-Salem State", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Terry, Claude Lewis", ACTIVE:"1976 - 1977", FROM:"College - Stanford", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Terry, Jason", ACTIVE:"ACTIVE", FROM:"College - Arizona", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Thabeet, Hasheem", ACTIVE:"ACTIVE", FROM:"College - Connecticut", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Thacker, Thomas Porter (Tom, Tack)", ACTIVE:"1963 - 1967", FROM:"College - Cincinnati", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Theus, Reggie", ACTIVE:"1978 - 1990", FROM:"College - Nevada-Las Vegas", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Thibeaux, Peter C.", ACTIVE:"1984 - 1985", FROM:"College - St. Mary's (CA)", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Thieben, William Bernard (Bill)", ACTIVE:"1956 - 1957", FROM:"College - Hofstra", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Thigpen, Justus", ACTIVE:"1972 - 1973", FROM:"College - Charles Stewart Mott CC MI; Weber State", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Thirdkill, David", ACTIVE:"1982 - 1986", FROM:"College - Coll. of Southern Idaho (J.C.); Bradley", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"Thomas, Billy", ACTIVE:"2007 - 2007", FROM:"College - Kansas", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Thomas, Carl", ACTIVE:"1991 - 1997", FROM:"College - Eastern Michigan", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Thomas, Charles", ACTIVE:"1991 - 1991", FROM:"College - Eastern Michigan", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Thomas, Etan", ACTIVE:"ACTIVE", FROM:"College - Syracuse", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Thomas, Irving", ACTIVE:"1990 - 1990", FROM:"College - Kentucky; Florida State", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Thomas, Isiah", ACTIVE:"1981 - 1993", FROM:"College - Indiana", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"Thomas, Jamel", ACTIVE:"1999 - 2000", FROM:"College - Providence", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Thomas, Jamel", ACTIVE:"1999 - 2000", FROM:"College - Providence", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"Thomas, James", ACTIVE:"2004 - 2005", FROM:"College - Texas", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Thomas, Jim", ACTIVE:"1983 - 1990", FROM:"College - Indiana", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Thomas, John", ACTIVE:"1997 - 2005", FROM:"College - Minnesota", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Thomas, Joseph Randle (Joe)", ACTIVE:"1970 - 1970", FROM:"College - Marquette", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Thomas, Kenny", ACTIVE:"2007 - 2009", FROM:"College - New Mexico", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Thomas, Kurt", ACTIVE:"ACTIVE", FROM:"College - Texas Christian", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Udoh, Ekpe", ACTIVE:"ACTIVE", FROM:"College - Baylor", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Udoka, Ime", ACTIVE:"2007 - 2010", FROM:"College - Portland State", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Udrih, Beno", ACTIVE:"ACTIVE", FROM:"From - Sempeter, Slovenia", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Ukic, Roko", ACTIVE:"2008 - 2009", FROM:"From - Split, Croatia", TEAM_LOGO:"../test/10_raw.jpg"},
-{NAME:"Unseld, Wes", ACTIVE:"1968 - 1980", FROM:"College - Louisville", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Uplinger, Harold F. (Hal)", ACTIVE:"1953 - 1953", FROM:"College - Long Island University", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Upshaw, Kelvin", ACTIVE:"1988 - 1990", FROM:"College - Northeastern State (Okla.); Utah", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Uzoh, Ben", ACTIVE:"ACTIVE", FROM:"College - Tulsa", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Valentine, Darnell", ACTIVE:"1981 - 1990", FROM:"College - Kansas", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Valentine, Ronnie L. (Ron)", ACTIVE:"1980 - 1980", FROM:"College - Old Dominion", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Vallely, John Stephen", ACTIVE:"1970 - 1971", FROM:"College - Orange Coast Coll. CA (J.C.); UCLA", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Van Arsdale, Dick", ACTIVE:"1965 - 1976", FROM:"College - Indiana", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Van Arsdale, Thomas Arthur (Tom)", ACTIVE:"1965 - 1976", FROM:"College - Indiana", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Van Breda Kolff, Jan", ACTIVE:"1976 - 1982", FROM:"College - Vanderbilt", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Van Breda Kolff, Willem H. (Butch)", ACTIVE:"1946 - 1949", FROM:"College - Princeton; N.Y.U.", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Van Exel, Nick", ACTIVE:"1993 - 2005", FROM:"College - Cincinnati", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Van Horn, Keith", ACTIVE:"1997 - 2005", FROM:"College - Utah", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Van Lier, Norm", ACTIVE:"1969 - 1978", FROM:"College - St. Francis (PA)", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Vance, Ellis Eugene (Gene)", ACTIVE:"1947 - 1951", FROM:"College - Illinois", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Vander Velden, Logan", ACTIVE:"1995 - 1995", FROM:"College - Wis.-Green Bay", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Vandeweghe, Ernest Maurice Jr. (Ernie, Doc)", ACTIVE:"1949 - 1955", FROM:"College - Colgate", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Vandeweghe, Kiki", ACTIVE:"1980 - 1992", FROM:"College - UCLA", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Vanos, Nick", ACTIVE:"1985 - 1986", FROM:"College - Santa Clara", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"Vanterpool, David", ACTIVE:"2000 - 2000", FROM:"College - St. Bonaventure", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Varda, Ratko", ACTIVE:"2001 - 2001", FROM:"From - Serbia & Montenegro", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Varejao, Anderson", ACTIVE:"ACTIVE", FROM:"From - Santa Teresa, Brazil", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Vasquez, Greivis", ACTIVE:"ACTIVE", FROM:"College - Maryland", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Vaughn, Charles (Chico)", ACTIVE:"1962 - 1966", FROM:"College - Southern Illinois", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Vaughn, David", ACTIVE:"1995 - 1998", FROM:"College - Memphis", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Vaughn, Jacque", ACTIVE:"2007 - 2008", FROM:"College - Kansas", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Vaughn, Virgil V.", ACTIVE:"1946 - 1946", FROM:"College - Kentucky Wesleyan", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Vaught, Loy", ACTIVE:"1990 - 2000", FROM:"College - Michigan", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Verga, Robert Bruce (Bob)", ACTIVE:"1973 - 1973", FROM:"College - Duke", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Verhoeven, Peter", ACTIVE:"1981 - 1986", FROM:"College - Fresno State", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Vetra, Gundars", ACTIVE:"1992 - 1992", FROM:"College - No College", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Vianna, Joao", ACTIVE:"1991 - 1991", FROM:"College - Travajara (Brazil)", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Villanueva, Charlie", ACTIVE:"ACTIVE", FROM:"College - Connecticut", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Vincent, Jay", ACTIVE:"1981 - 1989", FROM:"College - Michigan State", TEAM_LOGO:"../test/20_raw.jpg"},
-{NAME:"Vincent, Sam", ACTIVE:"1985 - 1991", FROM:"College - Michigan State", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Vinicius, Marcus", ACTIVE:"2007 - 2007", FROM:"From - Brazil", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Vinson, Fred", ACTIVE:"1994 - 1999", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Voce, Gary", ACTIVE:"1989 - 1989", FROM:"College - Notre Dame", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Volker, Floyd W.", ACTIVE:"1949 - 1949", FROM:"College - Wyoming", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Volkov, Alexander", ACTIVE:"1989 - 1991", FROM:"College - Kiev Institute (Ukraine)", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Von Nieda, Stanley L. Jr. (Whitey)", ACTIVE:"1949 - 1949", FROM:"College - Penn State", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Voskuhl, Jake", ACTIVE:"2007 - 2008", FROM:"College - Connecticut", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Vranes, Danny", ACTIVE:"1981 - 1987", FROM:"College - Utah", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Vranes, Slavko", ACTIVE:"2003 - 2003", FROM:"From - Serbia & Montenegro", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Vrankovic, Stojko", ACTIVE:"1990 - 1998", FROM:"College - Croatia", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Vroman, Brett Grant", ACTIVE:"1980 - 1980", FROM:"College - UCLA; Nevada-Las Vegas", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Vroman, Jackson", ACTIVE:"2004 - 2005", FROM:"College - Iowa State", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Vujacic, Sasha", ACTIVE:"ACTIVE", FROM:"From - Maribor, Slovenia", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Wade, Dwyane", ACTIVE:"ACTIVE", FROM:"College - Marquette", TEAM_LOGO:"../test/5_raw.jpg"},
-{NAME:"Wade, Mark", ACTIVE:"1987 - 1989", FROM:"College - El Camino Coll. CA (J.C.); Oklahoma; Nevada-Las Vegas", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Wafer, Von", ACTIVE:"ACTIVE", FROM:"College - Florida State", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Wager, Clinton B. (Clint)", ACTIVE:"1949 - 1949", FROM:"College - St. Mary's (Minn.)", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Wagner, Dajuan", ACTIVE:"2002 - 2006", FROM:"College - Memphis", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Wagner, Daniel Earnest (Danny)", ACTIVE:"1949 - 1949", FROM:"College - Schreiner Coll.; Texas", TEAM_LOGO:"../test/19_raw.jpg"},
-{NAME:"Wagner, Milt", ACTIVE:"1987 - 1990", FROM:"College - Louisville", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Waiters, Granville", ACTIVE:"1983 - 1987", FROM:"College - Ohio State", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"Wakefield, Andre", ACTIVE:"1978 - 1979", FROM:"College - Coll. of Southern Idaho (J.C.); Loyola (Chicago)", TEAM_LOGO:"../test/3_raw.jpg"},
-{NAME:"Walk, Neal", ACTIVE:"1969 - 1976", FROM:"College - Florida", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Walker, Andrew Martin (Andy)", ACTIVE:"1976 - 1976", FROM:"College - Niagara", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Walker, Antoine", ACTIVE:"2007 - 2007", FROM:"College - Kentucky", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"Walker, Bill", ACTIVE:"ACTIVE", FROM:"College - Kansas State", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Walker, Brady W.", ACTIVE:"1948 - 1951", FROM:"College - Brigham Young", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Walker, Chet", ACTIVE:"1962 - 1974", FROM:"College - Bradley", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Walker, Darrell", ACTIVE:"1983 - 1992", FROM:"College - Westark CC; Arkansas", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Walker, Foots", ACTIVE:"1974 - 1983", FROM:"College - Vincennes IN (J.C.); West Georgia", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Walker, Horace", ACTIVE:"1961 - 1961", FROM:"College - Michigan State", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Walker, James (Jimmy)", ACTIVE:"1967 - 1975", FROM:"College - Providence", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Walker, Kenny", ACTIVE:"1986 - 1994", FROM:"College - Kentucky", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"Walker, Phillip B. (Phil)", ACTIVE:"1977 - 1977", FROM:"College - Millersville", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Walker, Samaki", ACTIVE:"1996 - 2005", FROM:"College - Louisville", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Walker, Wally", ACTIVE:"1976 - 1983", FROM:"College - Virginia", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Wall, John", ACTIVE:"ACTIVE", FROM:"College - Kentucky", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Wallace, Ben", ACTIVE:"ACTIVE", FROM:"College - Virginia Union", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Wallace, Gerald", ACTIVE:"ACTIVE", FROM:"College - Alabama", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Wallace, John", ACTIVE:"1996 - 2003", FROM:"College - Syracuse ''96", TEAM_LOGO:"../test/25_raw.jpg"},
-{NAME:"Wallace, Michael John (Red)", ACTIVE:"1946 - 1946", FROM:"College - Scranton", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Wallace, Rasheed", ACTIVE:"2007 - 2009", FROM:"College - North Carolina", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Waller, Dwight", ACTIVE:"1968 - 1968", FROM:"College - Tennessee State", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Waller, Jamie", ACTIVE:"1987 - 1987", FROM:"College - Virginia Union", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Walsh, James Patrick (Jim)", ACTIVE:"1957 - 1957", FROM:"College - Stanford", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Walsh, Matt", ACTIVE:"2005 - 2005", FROM:"College - Florida", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Walters, Rex", ACTIVE:"1993 - 1999", FROM:"College - De Anza Coll. CA (J.C.); Northwestern; Kansas", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Walther, Paul P. (Lefty)", ACTIVE:"1949 - 1954", FROM:"College - Tennessee", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Walthour, Isaac (Rabbit)", ACTIVE:"1953 - 1953", FROM:"College - No College", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Walton, Bill", ACTIVE:"1974 - 1986", FROM:"College - UCLA", TEAM_LOGO:"../test/28_raw.jpg"},
-{NAME:"Walton, Lloyd", ACTIVE:"1976 - 1980", FROM:"College - Moberly Area CC; Marquette", TEAM_LOGO:"../test/12_raw.jpg"},
-{NAME:"Walton, Luke", ACTIVE:"ACTIVE", FROM:"College - Arizona", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Wang Zhizhi", ACTIVE:"2000 - 2004", FROM:"From - China", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Wanzer, Robert Francis (Bobby)", ACTIVE:"1948 - 1956", FROM:"College - Colgate; Seton Hall", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"Warbington, Perry", ACTIVE:"1974 - 1974", FROM:"College - Lake City CC FL; Georgia Southern", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Ward, Charlie", ACTIVE:"1994 - 2004", FROM:"College - Florida State", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Ward, Gerald W. (Gerry)", ACTIVE:"1963 - 1966", FROM:"College - Boston College", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Ward, Henry Lorette", ACTIVE:"1976 - 1976", FROM:"College - Jackson State", TEAM_LOGO:"../test/13_raw.jpg"},
-{NAME:"Ware, James Edward (Jim)", ACTIVE:"1966 - 1967", FROM:"College - Oklahoma City", TEAM_LOGO:"../test/11_raw.jpg"},
-{NAME:"Warley, Benjamin Vallintina (Ben)", ACTIVE:"1962 - 1966", FROM:"College - Tennessee State", TEAM_LOGO:"../test/27_raw.jpg"},
-{NAME:"Warlick, Robert Lee (Bob)", ACTIVE:"1965 - 1968", FROM:"College - Pueblo CC CO; Pepperdine; Denver", TEAM_LOGO:"../test/29_raw.jpg"},
-{NAME:"Warner, Cornell", ACTIVE:"1970 - 1976", FROM:"College - Jackson State", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Warren, John II (Johnny)", ACTIVE:"1969 - 1973", FROM:"College - St. John's (N.Y.)", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Yarbrough, Vincent", ACTIVE:"2002 - 2002", FROM:"College - Tennessee ''02", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Yardley, George", ACTIVE:"1953 - 1959", FROM:"College - Stanford", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"Yates, Barry", ACTIVE:"1971 - 1971", FROM:"College - Nebraska; Maryland", TEAM_LOGO:"../test/18_raw.jpg"},
-{NAME:"Yates, Wayne E.", ACTIVE:"1961 - 1961", FROM:"College - Memphis", TEAM_LOGO:"../test/4_raw.jpg"},
-{NAME:"Yelverton, Charles W. (Charlie)", ACTIVE:"1971 - 1971", FROM:"College - Fordham", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Yonakor, Richard Robert (Rich)", ACTIVE:"1981 - 1981", FROM:"College - North Carolina", TEAM_LOGO:"../test/16_raw.jpg"},
-{NAME:"Young, Danny", ACTIVE:"1984 - 1994", FROM:"College - Wake Forest", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Young, Korleone", ACTIVE:"1998 - 1998", FROM:"College - No College", TEAM_LOGO:"../test/6_raw.jpg"},
-{NAME:"Young, Michael", ACTIVE:"1984 - 1989", FROM:"College - Houston", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Young, Nick", ACTIVE:"ACTIVE", FROM:"College - USC", TEAM_LOGO:"../test/24_raw.jpg"},
-{NAME:"Young, Perry", ACTIVE:"1986 - 1986", FROM:"College - Virginia Tech", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Young, Sam", ACTIVE:"ACTIVE", FROM:"College - Pittsburgh", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Young, Thaddeus", ACTIVE:"ACTIVE", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Young, Tim", ACTIVE:"1999 - 1999", FROM:"College - Stanford", TEAM_LOGO:"../test/9_raw.jpg"},
-{NAME:"Yue, Sun", ACTIVE:"2008 - 2008", FROM:"From - China", TEAM_LOGO:"../test/26_raw.jpg"},
-{NAME:"Zaslofsky, Max (Slats)", ACTIVE:"1946 - 1955", FROM:"College - Chicago; St. John's (N.Y.)", TEAM_LOGO:"../test/23_raw.jpg"},
-{NAME:"Zawoluk, Robert Michael (Zeke)", ACTIVE:"1952 - 1954", FROM:"College - St. John's (N.Y.)", TEAM_LOGO:"../test/17_raw.jpg"},
-{NAME:"Zeller, David A. (Dave)", ACTIVE:"1961 - 1961", FROM:"College - Miami (Ohio)", TEAM_LOGO:"../test/8_raw.jpg"},
-{NAME:"Zeller, Gary Lynn", ACTIVE:"1970 - 1971", FROM:"College - Drake", TEAM_LOGO:"../test/15_raw.jpg"},
-{NAME:"Zeller, Harry Raymond (Hank)", ACTIVE:"1946 - 1946", FROM:"College - Pittsburgh; Washington & Jefferson", TEAM_LOGO:"../test/21_raw.jpg"},
-{NAME:"Zeno, Anthony Michael (Tony)", ACTIVE:"1979 - 1979", FROM:"College - Arizona State", TEAM_LOGO:"../test/22_raw.jpg"},
-{NAME:"Zevenbergen, Phil", ACTIVE:"1987 - 1987", FROM:"College - Seattle Pacific; Edmonds CC WA; Washington", TEAM_LOGO:"../test/14_raw.jpg"},
-{NAME:"Zidek, George", ACTIVE:"1995 - 1997", FROM:"College - UCLA", TEAM_LOGO:"../test/30_raw.jpg"},
-{NAME:"Zimmerman, Derrick", ACTIVE:"2005 - 2005", FROM:"College - Mississippi State", TEAM_LOGO:"../test/7_raw.jpg"},
-{NAME:"Zoet, Jim", ACTIVE:"1982 - 1982", FROM:"College - Kent State", TEAM_LOGO:"../test/2_raw.jpg"},
-{NAME:"Zopf, William Charles Jr. (Bill, Zip)", ACTIVE:"1970 - 1970", FROM:"College - Duquesne", TEAM_LOGO:"../test/1_raw.jpg"},
-{NAME:"Zunic, Matthew (Matt, Mad Matt)", ACTIVE:"1948 - 1948", FROM:"College - George Washington", TEAM_LOGO:"../test/3_raw.jpg"}
-];
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal.html b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal.html
deleted file mode 100644 (file)
index 06379f8..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-       <div data-role="page" id="virtuallist-normal_1line" class="virtuallist_demo_page" data-add-back-btn="true">
-               <div data-role="header" data-position="fixed">
-                       <h1>Virtual List - Normal Style 1line</h1>
-               </div>
-               <div data-role="content">
-                       <script id="tmp-1line" type="text/x-jquery-tmpl">
-                               <li class="ui-li-1line"><span class="ui-li-text-main">${NAME}</span></li>
-                       </script>
-                       
-                       <ul id="virtuallist-normal_1line_ul" data-role="virtuallistview" data-template="tmp-1line" data-dbtable="JSON_DATA" data-row="100">
-                       </ul>
-               </div>
-       </div>
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal_3_1_14.html b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal_3_1_14.html
deleted file mode 100644 (file)
index 7d65ed1..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-
-<div data-role="page" id="virtuallist-normal_1line-bigicon5" class="virtuallist_demo_page"
-       data-add-back-btn="true">
-       <div data-role="header" data-position="fixed">
-               <h1>Virtual List - Normal Style 1line-bigicon5</h1>
-       </div>
-       <div data-role="content">
-               <script id="tmp-1line-bigicon5" type="text/x-jquery-tmpl">
-                       <li class="ui-li-1line-bigicon5">       
-                               <span class="ui-li-text-main">${NAME}</span>
-                               <img src=${TEAM_LOGO} class="ui-li-bigicon">
-                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
-                       </li>
-               </script>
-               <ul id="virtuallist-normal_1line-bigicon5_ul" data-role="virtuallistview" data-template="tmp-1line-bigicon5" data-dbtable="JSON_DATA" data-row="100">
-               </ul>
-       </div>
-</div>
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal_3_1_4.html b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal_3_1_4.html
deleted file mode 100644 (file)
index 7ef26a4..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-       <div data-role="page" id="virtuallist-normal_1line-btn1" class="virtuallist_demo_page" data-add-back-btn="true">
-               <div data-role="header" data-position="fixed">
-                       <h1>Virtual List - Normal Style 1line-btn1</h1>
-               </div>
-               <div data-role="content">
-                       <script id="tmp-1line-btn1" type="text/x-jquery-tmpl">
-                               <li class="ui-li-1line-btn1">
-                                       <span class="ui-li-text-main">${NAME}</span>
-                                       <div data-role="button" data-inline="true">${ACTIVE}</div>
-                               </li>
-                       </script>               
-                       <ul id="virtuallist-normal_1line-btn1_ul" data-role="virtuallistview" data-template="tmp-1line-btn1" data-dbtable="JSON_DATA" data-row="100">
-                       </ul>
-               </div>
-       </div>
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal_3_1_6.html b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal_3_1_6.html
deleted file mode 100644 (file)
index cbde96c..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-
-<div data-role="page" id="virtuallist-normal_1line-toggle" class="virtuallist_demo_page" data-add-back-btn="true">
-       <div data-role="header" data-position="fixed">
-               <h1>Virtual List - Normal Style 1line-toggle</h1>
-       </div>
-       <div data-role="content">
-               <script id="tmp-1line-toggle" type="text/x-jquery-tmpl">
-                       <li class="ui-li-1line-toggle">
-                               <span class="ui-li-text-main">${NAME}</span>
-                               <div data-role="toggleswitch"/></div>
-                       </li>
-               </script>
-               <ul id="virtuallist-normal_1line-toggle_ul" data-role="virtuallistview" data-template="tmp-1line-toggle" data-dbtable="JSON_DATA" data-row="100">
-               </ul>
-       </div>
-</div>
diff --git a/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal_3_2_7.html b/tct-uifw-tests/web-ui-fw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal_3_2_7.html
deleted file mode 100644 (file)
index f06d891..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-
-<div data-role="page" id="virtuallist-normal_2line-star1" class="virtuallist_demo_page"
-       data-add-back-btn="true">
-       <div data-role="header" data-position="fixed">
-               <h1>Virtual List - Normal Style 2line-star1</h1>
-       </div>
-       <div data-role="content">
-               <script id="tmp-2line-star1" type="text/x-jquery-tmpl">
-                       <li class="ui-li-2line-star1">
-                               <span class="ui-li-text-main">${NAME}</span>
-                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
-                               <span class="ui-li-text-sub">${ACTIVE}</span>
-                               <span class="ui-li-text-sub2">${FROM}</span>
-                       </li>
-
-                       </script>
-
-               <ul id="virtuallist-normal_2line-star1_ul" data-role="virtuallistview" data-template="tmp-2line-star1" data-dbtable="JSON_DATA" data-row="100">
-               </ul>
-       </div>
-</div>
diff --git a/tct-uifw-tests/web-ui-fw-tests/index.html b/tct-uifw-tests/web-ui-fw-tests/index.html
deleted file mode 100644 (file)
index 85c2c86..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-<!--
-Copyright (c) 2012 Intel Corporation. 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 works must retain the original copyright notice, this list
-of conditions and the following disclaimer.
-*Redistributions in binary form must reproduce the original 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 Intel Corporation nor the names of its contributors
-may be used to endorse or promote products derived from this work without
-specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "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 INTEL CORPORATION 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.
-
-Authors:
-        Fan, Yugang <yugang.fan@intel.com>
--->
-
-<!doctype html>
-<head>
-    <meta http-equiv="Refresh" content="1; url=tests/unit-tests/index.html">
-</head>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-1.7.1.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-1.7.1.js
deleted file mode 100644 (file)
index 8ccd0ea..0000000
+++ /dev/null
@@ -1,9266 +0,0 @@
-/*!
- * jQuery JavaScript Library v1.7.1
- * http://jquery.com/
- *
- * Copyright 2011, John Resig
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- * Copyright 2011, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- *
- * Date: Mon Nov 21 21:11:03 2011 -0500
- */
-(function( window, undefined ) {
-
-// Use the correct document accordingly with window argument (sandbox)
-var document = window.document,
-       navigator = window.navigator,
-       location = window.location;
-var jQuery = (function() {
-
-// Define a local copy of jQuery
-var jQuery = function( selector, context ) {
-               // The jQuery object is actually just the init constructor 'enhanced'
-               return new jQuery.fn.init( selector, context, rootjQuery );
-       },
-
-       // Map over jQuery in case of overwrite
-       _jQuery = window.jQuery,
-
-       // Map over the $ in case of overwrite
-       _$ = window.$,
-
-       // A central reference to the root jQuery(document)
-       rootjQuery,
-
-       // A simple way to check for HTML strings or ID strings
-       // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
-       quickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
-
-       // Check if a string has a non-whitespace character in it
-       rnotwhite = /\S/,
-
-       // Used for trimming whitespace
-       trimLeft = /^\s+/,
-       trimRight = /\s+$/,
-
-       // Match a standalone tag
-       rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
-
-       // JSON RegExp
-       rvalidchars = /^[\],:{}\s]*$/,
-       rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
-       rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
-       rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
-
-       // Useragent RegExp
-       rwebkit = /(webkit)[ \/]([\w.]+)/,
-       ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,
-       rmsie = /(msie) ([\w.]+)/,
-       rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
-
-       // Matches dashed string for camelizing
-       rdashAlpha = /-([a-z]|[0-9])/ig,
-       rmsPrefix = /^-ms-/,
-
-       // Used by jQuery.camelCase as callback to replace()
-       fcamelCase = function( all, letter ) {
-               return ( letter + "" ).toUpperCase();
-       },
-
-       // Keep a UserAgent string for use with jQuery.browser
-       userAgent = navigator.userAgent,
-
-       // For matching the engine and version of the browser
-       browserMatch,
-
-       // The deferred used on DOM ready
-       readyList,
-
-       // The ready event handler
-       DOMContentLoaded,
-
-       // Save a reference to some core methods
-       toString = Object.prototype.toString,
-       hasOwn = Object.prototype.hasOwnProperty,
-       push = Array.prototype.push,
-       slice = Array.prototype.slice,
-       trim = String.prototype.trim,
-       indexOf = Array.prototype.indexOf,
-
-       // [[Class]] -> type pairs
-       class2type = {};
-
-jQuery.fn = jQuery.prototype = {
-       constructor: jQuery,
-       init: function( selector, context, rootjQuery ) {
-               var match, elem, ret, doc;
-
-               // Handle $(""), $(null), or $(undefined)
-               if ( !selector ) {
-                       return this;
-               }
-
-               // Handle $(DOMElement)
-               if ( selector.nodeType ) {
-                       this.context = this[0] = selector;
-                       this.length = 1;
-                       return this;
-               }
-
-               // The body element only exists once, optimize finding it
-               if ( selector === "body" && !context && document.body ) {
-                       this.context = document;
-                       this[0] = document.body;
-                       this.selector = selector;
-                       this.length = 1;
-                       return this;
-               }
-
-               // Handle HTML strings
-               if ( typeof selector === "string" ) {
-                       // Are we dealing with HTML string or an ID?
-                       if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
-                               // Assume that strings that start and end with <> are HTML and skip the regex check
-                               match = [ null, selector, null ];
-
-                       } else {
-                               match = quickExpr.exec( selector );
-                       }
-
-                       // Verify a match, and that no context was specified for #id
-                       if ( match && (match[1] || !context) ) {
-
-                               // HANDLE: $(html) -> $(array)
-                               if ( match[1] ) {
-                                       context = context instanceof jQuery ? context[0] : context;
-                                       doc = ( context ? context.ownerDocument || context : document );
-
-                                       // If a single string is passed in and it's a single tag
-                                       // just do a createElement and skip the rest
-                                       ret = rsingleTag.exec( selector );
-
-                                       if ( ret ) {
-                                               if ( jQuery.isPlainObject( context ) ) {
-                                                       selector = [ document.createElement( ret[1] ) ];
-                                                       jQuery.fn.attr.call( selector, context, true );
-
-                                               } else {
-                                                       selector = [ doc.createElement( ret[1] ) ];
-                                               }
-
-                                       } else {
-                                               ret = jQuery.buildFragment( [ match[1] ], [ doc ] );
-                                               selector = ( ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment ).childNodes;
-                                       }
-
-                                       return jQuery.merge( this, selector );
-
-                               // HANDLE: $("#id")
-                               } else {
-                                       elem = document.getElementById( match[2] );
-
-                                       // Check parentNode to catch when Blackberry 4.6 returns
-                                       // nodes that are no longer in the document #6963
-                                       if ( elem && elem.parentNode ) {
-                                               // Handle the case where IE and Opera return items
-                                               // by name instead of ID
-                                               if ( elem.id !== match[2] ) {
-                                                       return rootjQuery.find( selector );
-                                               }
-
-                                               // Otherwise, we inject the element directly into the jQuery object
-                                               this.length = 1;
-                                               this[0] = elem;
-                                       }
-
-                                       this.context = document;
-                                       this.selector = selector;
-                                       return this;
-                               }
-
-                       // HANDLE: $(expr, $(...))
-                       } else if ( !context || context.jquery ) {
-                               return ( context || rootjQuery ).find( selector );
-
-                       // HANDLE: $(expr, context)
-                       // (which is just equivalent to: $(context).find(expr)
-                       } else {
-                               return this.constructor( context ).find( selector );
-                       }
-
-               // HANDLE: $(function)
-               // Shortcut for document ready
-               } else if ( jQuery.isFunction( selector ) ) {
-                       return rootjQuery.ready( selector );
-               }
-
-               if ( selector.selector !== undefined ) {
-                       this.selector = selector.selector;
-                       this.context = selector.context;
-               }
-
-               return jQuery.makeArray( selector, this );
-       },
-
-       // Start with an empty selector
-       selector: "",
-
-       // The current version of jQuery being used
-       jquery: "1.7.1",
-
-       // The default length of a jQuery object is 0
-       length: 0,
-
-       // The number of elements contained in the matched element set
-       size: function() {
-               return this.length;
-       },
-
-       toArray: function() {
-               return slice.call( this, 0 );
-       },
-
-       // Get the Nth element in the matched element set OR
-       // Get the whole matched element set as a clean array
-       get: function( num ) {
-               return num == null ?
-
-                       // Return a 'clean' array
-                       this.toArray() :
-
-                       // Return just the object
-                       ( num < 0 ? this[ this.length + num ] : this[ num ] );
-       },
-
-       // Take an array of elements and push it onto the stack
-       // (returning the new matched element set)
-       pushStack: function( elems, name, selector ) {
-               // Build a new jQuery matched element set
-               var ret = this.constructor();
-
-               if ( jQuery.isArray( elems ) ) {
-                       push.apply( ret, elems );
-
-               } else {
-                       jQuery.merge( ret, elems );
-               }
-
-               // Add the old object onto the stack (as a reference)
-               ret.prevObject = this;
-
-               ret.context = this.context;
-
-               if ( name === "find" ) {
-                       ret.selector = this.selector + ( this.selector ? " " : "" ) + selector;
-               } else if ( name ) {
-                       ret.selector = this.selector + "." + name + "(" + selector + ")";
-               }
-
-               // Return the newly-formed element set
-               return ret;
-       },
-
-       // Execute a callback for every element in the matched set.
-       // (You can seed the arguments with an array of args, but this is
-       // only used internally.)
-       each: function( callback, args ) {
-               return jQuery.each( this, callback, args );
-       },
-
-       ready: function( fn ) {
-               // Attach the listeners
-               jQuery.bindReady();
-
-               // Add the callback
-               readyList.add( fn );
-
-               return this;
-       },
-
-       eq: function( i ) {
-               i = +i;
-               return i === -1 ?
-                       this.slice( i ) :
-                       this.slice( i, i + 1 );
-       },
-
-       first: function() {
-               return this.eq( 0 );
-       },
-
-       last: function() {
-               return this.eq( -1 );
-       },
-
-       slice: function() {
-               return this.pushStack( slice.apply( this, arguments ),
-                       "slice", slice.call(arguments).join(",") );
-       },
-
-       map: function( callback ) {
-               return this.pushStack( jQuery.map(this, function( elem, i ) {
-                       return callback.call( elem, i, elem );
-               }));
-       },
-
-       end: function() {
-               return this.prevObject || this.constructor(null);
-       },
-
-       // For internal use only.
-       // Behaves like an Array's method, not like a jQuery method.
-       push: push,
-       sort: [].sort,
-       splice: [].splice
-};
-
-// Give the init function the jQuery prototype for later instantiation
-jQuery.fn.init.prototype = jQuery.fn;
-
-jQuery.extend = jQuery.fn.extend = function() {
-       var options, name, src, copy, copyIsArray, clone,
-               target = arguments[0] || {},
-               i = 1,
-               length = arguments.length,
-               deep = false;
-
-       // Handle a deep copy situation
-       if ( typeof target === "boolean" ) {
-               deep = target;
-               target = arguments[1] || {};
-               // skip the boolean and the target
-               i = 2;
-       }
-
-       // Handle case when target is a string or something (possible in deep copy)
-       if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
-               target = {};
-       }
-
-       // extend jQuery itself if only one argument is passed
-       if ( length === i ) {
-               target = this;
-               --i;
-       }
-
-       for ( ; i < length; i++ ) {
-               // Only deal with non-null/undefined values
-               if ( (options = arguments[ i ]) != null ) {
-                       // Extend the base object
-                       for ( name in options ) {
-                               src = target[ name ];
-                               copy = options[ name ];
-
-                               // Prevent never-ending loop
-                               if ( target === copy ) {
-                                       continue;
-                               }
-
-                               // Recurse if we're merging plain objects or arrays
-                               if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
-                                       if ( copyIsArray ) {
-                                               copyIsArray = false;
-                                               clone = src && jQuery.isArray(src) ? src : [];
-
-                                       } else {
-                                               clone = src && jQuery.isPlainObject(src) ? src : {};
-                                       }
-
-                                       // Never move original objects, clone them
-                                       target[ name ] = jQuery.extend( deep, clone, copy );
-
-                               // Don't bring in undefined values
-                               } else if ( copy !== undefined ) {
-                                       target[ name ] = copy;
-                               }
-                       }
-               }
-       }
-
-       // Return the modified object
-       return target;
-};
-
-jQuery.extend({
-       noConflict: function( deep ) {
-               if ( window.$ === jQuery ) {
-                       window.$ = _$;
-               }
-
-               if ( deep && window.jQuery === jQuery ) {
-                       window.jQuery = _jQuery;
-               }
-
-               return jQuery;
-       },
-
-       // Is the DOM ready to be used? Set to true once it occurs.
-       isReady: false,
-
-       // A counter to track how many items to wait for before
-       // the ready event fires. See #6781
-       readyWait: 1,
-
-       // Hold (or release) the ready event
-       holdReady: function( hold ) {
-               if ( hold ) {
-                       jQuery.readyWait++;
-               } else {
-                       jQuery.ready( true );
-               }
-       },
-
-       // Handle when the DOM is ready
-       ready: function( wait ) {
-               // Either a released hold or an DOMready/load event and not yet ready
-               if ( (wait === true && !--jQuery.readyWait) || (wait !== true && !jQuery.isReady) ) {
-                       // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
-                       if ( !document.body ) {
-                               return setTimeout( jQuery.ready, 1 );
-                       }
-
-                       // Remember that the DOM is ready
-                       jQuery.isReady = true;
-
-                       // If a normal DOM Ready event fired, decrement, and wait if need be
-                       if ( wait !== true && --jQuery.readyWait > 0 ) {
-                               return;
-                       }
-
-                       // If there are functions bound, to execute
-                       readyList.fireWith( document, [ jQuery ] );
-
-                       // Trigger any bound ready events
-                       if ( jQuery.fn.trigger ) {
-                               jQuery( document ).trigger( "ready" ).off( "ready" );
-                       }
-               }
-       },
-
-       bindReady: function() {
-               if ( readyList ) {
-                       return;
-               }
-
-               readyList = jQuery.Callbacks( "once memory" );
-
-               // Catch cases where $(document).ready() is called after the
-               // browser event has already occurred.
-               if ( document.readyState === "complete" ) {
-                       // Handle it asynchronously to allow scripts the opportunity to delay ready
-                       return setTimeout( jQuery.ready, 1 );
-               }
-
-               // Mozilla, Opera and webkit nightlies currently support this event
-               if ( document.addEventListener ) {
-                       // Use the handy event callback
-                       document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
-
-                       // A fallback to window.onload, that will always work
-                       window.addEventListener( "load", jQuery.ready, false );
-
-               // If IE event model is used
-               } else if ( document.attachEvent ) {
-                       // ensure firing before onload,
-                       // maybe late but safe also for iframes
-                       document.attachEvent( "onreadystatechange", DOMContentLoaded );
-
-                       // A fallback to window.onload, that will always work
-                       window.attachEvent( "onload", jQuery.ready );
-
-                       // If IE and not a frame
-                       // continually check to see if the document is ready
-                       var toplevel = false;
-
-                       try {
-                               toplevel = window.frameElement == null;
-                       } catch(e) {}
-
-                       if ( document.documentElement.doScroll && toplevel ) {
-                               doScrollCheck();
-                       }
-               }
-       },
-
-       // See test/unit/core.js for details concerning isFunction.
-       // Since version 1.3, DOM methods and functions like alert
-       // aren't supported. They return false on IE (#2968).
-       isFunction: function( obj ) {
-               return jQuery.type(obj) === "function";
-       },
-
-       isArray: Array.isArray || function( obj ) {
-               return jQuery.type(obj) === "array";
-       },
-
-       // A crude way of determining if an object is a window
-       isWindow: function( obj ) {
-               return obj && typeof obj === "object" && "setInterval" in obj;
-       },
-
-       isNumeric: function( obj ) {
-               return !isNaN( parseFloat(obj) ) && isFinite( obj );
-       },
-
-       type: function( obj ) {
-               return obj == null ?
-                       String( obj ) :
-                       class2type[ toString.call(obj) ] || "object";
-       },
-
-       isPlainObject: function( obj ) {
-               // Must be an Object.
-               // Because of IE, we also have to check the presence of the constructor property.
-               // Make sure that DOM nodes and window objects don't pass through, as well
-               if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
-                       return false;
-               }
-
-               try {
-                       // Not own constructor property must be Object
-                       if ( obj.constructor &&
-                               !hasOwn.call(obj, "constructor") &&
-                               !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
-                               return false;
-                       }
-               } catch ( e ) {
-                       // IE8,9 Will throw exceptions on certain host objects #9897
-                       return false;
-               }
-
-               // Own properties are enumerated firstly, so to speed up,
-               // if last one is own, then all properties are own.
-
-               var key;
-               for ( key in obj ) {}
-
-               return key === undefined || hasOwn.call( obj, key );
-       },
-
-       isEmptyObject: function( obj ) {
-               for ( var name in obj ) {
-                       return false;
-               }
-               return true;
-       },
-
-       error: function( msg ) {
-               throw new Error( msg );
-       },
-
-       parseJSON: function( data ) {
-               if ( typeof data !== "string" || !data ) {
-                       return null;
-               }
-
-               // Make sure leading/trailing whitespace is removed (IE can't handle it)
-               data = jQuery.trim( data );
-
-               // Attempt to parse using the native JSON parser first
-               if ( window.JSON && window.JSON.parse ) {
-                       return window.JSON.parse( data );
-               }
-
-               // Make sure the incoming data is actual JSON
-               // Logic borrowed from http://json.org/json2.js
-               if ( rvalidchars.test( data.replace( rvalidescape, "@" )
-                       .replace( rvalidtokens, "]" )
-                       .replace( rvalidbraces, "")) ) {
-
-                       return ( new Function( "return " + data ) )();
-
-               }
-               jQuery.error( "Invalid JSON: " + data );
-       },
-
-       // Cross-browser xml parsing
-       parseXML: function( data ) {
-               var xml, tmp;
-               try {
-                       if ( window.DOMParser ) { // Standard
-                               tmp = new DOMParser();
-                               xml = tmp.parseFromString( data , "text/xml" );
-                       } else { // IE
-                               xml = new ActiveXObject( "Microsoft.XMLDOM" );
-                               xml.async = "false";
-                               xml.loadXML( data );
-                       }
-               } catch( e ) {
-                       xml = undefined;
-               }
-               if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
-                       jQuery.error( "Invalid XML: " + data );
-               }
-               return xml;
-       },
-
-       noop: function() {},
-
-       // Evaluates a script in a global context
-       // Workarounds based on findings by Jim Driscoll
-       // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
-       globalEval: function( data ) {
-               if ( data && rnotwhite.test( data ) ) {
-                       // We use execScript on Internet Explorer
-                       // We use an anonymous function so that context is window
-                       // rather than jQuery in Firefox
-                       ( window.execScript || function( data ) {
-                               window[ "eval" ].call( window, data );
-                       } )( data );
-               }
-       },
-
-       // Convert dashed to camelCase; used by the css and data modules
-       // Microsoft forgot to hump their vendor prefix (#9572)
-       camelCase: function( string ) {
-               return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
-       },
-
-       nodeName: function( elem, name ) {
-               return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
-       },
-
-       // args is for internal usage only
-       each: function( object, callback, args ) {
-               var name, i = 0,
-                       length = object.length,
-                       isObj = length === undefined || jQuery.isFunction( object );
-
-               if ( args ) {
-                       if ( isObj ) {
-                               for ( name in object ) {
-                                       if ( callback.apply( object[ name ], args ) === false ) {
-                                               break;
-                                       }
-                               }
-                       } else {
-                               for ( ; i < length; ) {
-                                       if ( callback.apply( object[ i++ ], args ) === false ) {
-                                               break;
-                                       }
-                               }
-                       }
-
-               // A special, fast, case for the most common use of each
-               } else {
-                       if ( isObj ) {
-                               for ( name in object ) {
-                                       if ( callback.call( object[ name ], name, object[ name ] ) === false ) {
-                                               break;
-                                       }
-                               }
-                       } else {
-                               for ( ; i < length; ) {
-                                       if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) {
-                                               break;
-                                       }
-                               }
-                       }
-               }
-
-               return object;
-       },
-
-       // Use native String.trim function wherever possible
-       trim: trim ?
-               function( text ) {
-                       return text == null ?
-                               "" :
-                               trim.call( text );
-               } :
-
-               // Otherwise use our own trimming functionality
-               function( text ) {
-                       return text == null ?
-                               "" :
-                               text.toString().replace( trimLeft, "" ).replace( trimRight, "" );
-               },
-
-       // results is for internal usage only
-       makeArray: function( array, results ) {
-               var ret = results || [];
-
-               if ( array != null ) {
-                       // The window, strings (and functions) also have 'length'
-                       // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
-                       var type = jQuery.type( array );
-
-                       if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) {
-                               push.call( ret, array );
-                       } else {
-                               jQuery.merge( ret, array );
-                       }
-               }
-
-               return ret;
-       },
-
-       inArray: function( elem, array, i ) {
-               var len;
-
-               if ( array ) {
-                       if ( indexOf ) {
-                               return indexOf.call( array, elem, i );
-                       }
-
-                       len = array.length;
-                       i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;
-
-                       for ( ; i < len; i++ ) {
-                               // Skip accessing in sparse arrays
-                               if ( i in array && array[ i ] === elem ) {
-                                       return i;
-                               }
-                       }
-               }
-
-               return -1;
-       },
-
-       merge: function( first, second ) {
-               var i = first.length,
-                       j = 0;
-
-               if ( typeof second.length === "number" ) {
-                       for ( var l = second.length; j < l; j++ ) {
-                               first[ i++ ] = second[ j ];
-                       }
-
-               } else {
-                       while ( second[j] !== undefined ) {
-                               first[ i++ ] = second[ j++ ];
-                       }
-               }
-
-               first.length = i;
-
-               return first;
-       },
-
-       grep: function( elems, callback, inv ) {
-               var ret = [], retVal;
-               inv = !!inv;
-
-               // Go through the array, only saving the items
-               // that pass the validator function
-               for ( var i = 0, length = elems.length; i < length; i++ ) {
-                       retVal = !!callback( elems[ i ], i );
-                       if ( inv !== retVal ) {
-                               ret.push( elems[ i ] );
-                       }
-               }
-
-               return ret;
-       },
-
-       // arg is for internal usage only
-       map: function( elems, callback, arg ) {
-               var value, key, ret = [],
-                       i = 0,
-                       length = elems.length,
-                       // jquery objects are treated as arrays
-                       isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ;
-
-               // Go through the array, translating each of the items to their
-               if ( isArray ) {
-                       for ( ; i < length; i++ ) {
-                               value = callback( elems[ i ], i, arg );
-
-                               if ( value != null ) {
-                                       ret[ ret.length ] = value;
-                               }
-                       }
-
-               // Go through every key on the object,
-               } else {
-                       for ( key in elems ) {
-                               value = callback( elems[ key ], key, arg );
-
-                               if ( value != null ) {
-                                       ret[ ret.length ] = value;
-                               }
-                       }
-               }
-
-               // Flatten any nested arrays
-               return ret.concat.apply( [], ret );
-       },
-
-       // A global GUID counter for objects
-       guid: 1,
-
-       // Bind a function to a context, optionally partially applying any
-       // arguments.
-       proxy: function( fn, context ) {
-               if ( typeof context === "string" ) {
-                       var tmp = fn[ context ];
-                       context = fn;
-                       fn = tmp;
-               }
-
-               // Quick check to determine if target is callable, in the spec
-               // this throws a TypeError, but we will just return undefined.
-               if ( !jQuery.isFunction( fn ) ) {
-                       return undefined;
-               }
-
-               // Simulated bind
-               var args = slice.call( arguments, 2 ),
-                       proxy = function() {
-                               return fn.apply( context, args.concat( slice.call( arguments ) ) );
-                       };
-
-               // Set the guid of unique handler to the same of original handler, so it can be removed
-               proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;
-
-               return proxy;
-       },
-
-       // Mutifunctional method to get and set values to a collection
-       // The value/s can optionally be executed if it's a function
-       access: function( elems, key, value, exec, fn, pass ) {
-               var length = elems.length;
-
-               // Setting many attributes
-               if ( typeof key === "object" ) {
-                       for ( var k in key ) {
-                               jQuery.access( elems, k, key[k], exec, fn, value );
-                       }
-                       return elems;
-               }
-
-               // Setting one attribute
-               if ( value !== undefined ) {
-                       // Optionally, function values get executed if exec is true
-                       exec = !pass && exec && jQuery.isFunction(value);
-
-                       for ( var i = 0; i < length; i++ ) {
-                               fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
-                       }
-
-                       return elems;
-               }
-
-               // Getting an attribute
-               return length ? fn( elems[0], key ) : undefined;
-       },
-
-       now: function() {
-               return ( new Date() ).getTime();
-       },
-
-       // Use of jQuery.browser is frowned upon.
-       // More details: http://docs.jquery.com/Utilities/jQuery.browser
-       uaMatch: function( ua ) {
-               ua = ua.toLowerCase();
-
-               var match = rwebkit.exec( ua ) ||
-                       ropera.exec( ua ) ||
-                       rmsie.exec( ua ) ||
-                       ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||
-                       [];
-
-               return { browser: match[1] || "", version: match[2] || "0" };
-       },
-
-       sub: function() {
-               function jQuerySub( selector, context ) {
-                       return new jQuerySub.fn.init( selector, context );
-               }
-               jQuery.extend( true, jQuerySub, this );
-               jQuerySub.superclass = this;
-               jQuerySub.fn = jQuerySub.prototype = this();
-               jQuerySub.fn.constructor = jQuerySub;
-               jQuerySub.sub = this.sub;
-               jQuerySub.fn.init = function init( selector, context ) {
-                       if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {
-                               context = jQuerySub( context );
-                       }
-
-                       return jQuery.fn.init.call( this, selector, context, rootjQuerySub );
-               };
-               jQuerySub.fn.init.prototype = jQuerySub.fn;
-               var rootjQuerySub = jQuerySub(document);
-               return jQuerySub;
-       },
-
-       browser: {}
-});
-
-// Populate the class2type map
-jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {
-       class2type[ "[object " + name + "]" ] = name.toLowerCase();
-});
-
-browserMatch = jQuery.uaMatch( userAgent );
-if ( browserMatch.browser ) {
-       jQuery.browser[ browserMatch.browser ] = true;
-       jQuery.browser.version = browserMatch.version;
-}
-
-// Deprecated, use jQuery.browser.webkit instead
-if ( jQuery.browser.webkit ) {
-       jQuery.browser.safari = true;
-}
-
-// IE doesn't match non-breaking spaces with \s
-if ( rnotwhite.test( "\xA0" ) ) {
-       trimLeft = /^[\s\xA0]+/;
-       trimRight = /[\s\xA0]+$/;
-}
-
-// All jQuery objects should point back to these
-rootjQuery = jQuery(document);
-
-// Cleanup functions for the document ready method
-if ( document.addEventListener ) {
-       DOMContentLoaded = function() {
-               document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
-               jQuery.ready();
-       };
-
-} else if ( document.attachEvent ) {
-       DOMContentLoaded = function() {
-               // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
-               if ( document.readyState === "complete" ) {
-                       document.detachEvent( "onreadystatechange", DOMContentLoaded );
-                       jQuery.ready();
-               }
-       };
-}
-
-// The DOM ready check for Internet Explorer
-function doScrollCheck() {
-       if ( jQuery.isReady ) {
-               return;
-       }
-
-       try {
-               // If IE is used, use the trick by Diego Perini
-               // http://javascript.nwbox.com/IEContentLoaded/
-               document.documentElement.doScroll("left");
-       } catch(e) {
-               setTimeout( doScrollCheck, 1 );
-               return;
-       }
-
-       // and execute any waiting functions
-       jQuery.ready();
-}
-
-return jQuery;
-
-})();
-
-
-// String to Object flags format cache
-var flagsCache = {};
-
-// Convert String-formatted flags into Object-formatted ones and store in cache
-function createFlags( flags ) {
-       var object = flagsCache[ flags ] = {},
-               i, length;
-       flags = flags.split( /\s+/ );
-       for ( i = 0, length = flags.length; i < length; i++ ) {
-               object[ flags[i] ] = true;
-       }
-       return object;
-}
-
-/*
- * Create a callback list using the following parameters:
- *
- *     flags:  an optional list of space-separated flags that will change how
- *                     the callback list behaves
- *
- * By default a callback list will act like an event callback list and can be
- * "fired" multiple times.
- *
- * Possible flags:
- *
- *     once:                   will ensure the callback list can only be fired once (like a Deferred)
- *
- *     memory:                 will keep track of previous values and will call any callback added
- *                                     after the list has been fired right away with the latest "memorized"
- *                                     values (like a Deferred)
- *
- *     unique:                 will ensure a callback can only be added once (no duplicate in the list)
- *
- *     stopOnFalse:    interrupt callings when a callback returns false
- *
- */
-jQuery.Callbacks = function( flags ) {
-
-       // Convert flags from String-formatted to Object-formatted
-       // (we check in cache first)
-       flags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {};
-
-       var // Actual callback list
-               list = [],
-               // Stack of fire calls for repeatable lists
-               stack = [],
-               // Last fire value (for non-forgettable lists)
-               memory,
-               // Flag to know if list is currently firing
-               firing,
-               // First callback to fire (used internally by add and fireWith)
-               firingStart,
-               // End of the loop when firing
-               firingLength,
-               // Index of currently firing callback (modified by remove if needed)
-               firingIndex,
-               // Add one or several callbacks to the list
-               add = function( args ) {
-                       var i,
-                               length,
-                               elem,
-                               type,
-                               actual;
-                       for ( i = 0, length = args.length; i < length; i++ ) {
-                               elem = args[ i ];
-                               type = jQuery.type( elem );
-                               if ( type === "array" ) {
-                                       // Inspect recursively
-                                       add( elem );
-                               } else if ( type === "function" ) {
-                                       // Add if not in unique mode and callback is not in
-                                       if ( !flags.unique || !self.has( elem ) ) {
-                                               list.push( elem );
-                                       }
-                               }
-                       }
-               },
-               // Fire callbacks
-               fire = function( context, args ) {
-                       args = args || [];
-                       memory = !flags.memory || [ context, args ];
-                       firing = true;
-                       firingIndex = firingStart || 0;
-                       firingStart = 0;
-                       firingLength = list.length;
-                       for ( ; list && firingIndex < firingLength; firingIndex++ ) {
-                               if ( list[ firingIndex ].apply( context, args ) === false && flags.stopOnFalse ) {
-                                       memory = true; // Mark as halted
-                                       break;
-                               }
-                       }
-                       firing = false;
-                       if ( list ) {
-                               if ( !flags.once ) {
-                                       if ( stack && stack.length ) {
-                                               memory = stack.shift();
-                                               self.fireWith( memory[ 0 ], memory[ 1 ] );
-                                       }
-                               } else if ( memory === true ) {
-                                       self.disable();
-                               } else {
-                                       list = [];
-                               }
-                       }
-               },
-               // Actual Callbacks object
-               self = {
-                       // Add a callback or a collection of callbacks to the list
-                       add: function() {
-                               if ( list ) {
-                                       var length = list.length;
-                                       add( arguments );
-                                       // Do we need to add the callbacks to the
-                                       // current firing batch?
-                                       if ( firing ) {
-                                               firingLength = list.length;
-                                       // With memory, if we're not firing then
-                                       // we should call right away, unless previous
-                                       // firing was halted (stopOnFalse)
-                                       } else if ( memory && memory !== true ) {
-                                               firingStart = length;
-                                               fire( memory[ 0 ], memory[ 1 ] );
-                                       }
-                               }
-                               return this;
-                       },
-                       // Remove a callback from the list
-                       remove: function() {
-                               if ( list ) {
-                                       var args = arguments,
-                                               argIndex = 0,
-                                               argLength = args.length;
-                                       for ( ; argIndex < argLength ; argIndex++ ) {
-                                               for ( var i = 0; i < list.length; i++ ) {
-                                                       if ( args[ argIndex ] === list[ i ] ) {
-                                                               // Handle firingIndex and firingLength
-                                                               if ( firing ) {
-                                                                       if ( i <= firingLength ) {
-                                                                               firingLength--;
-                                                                               if ( i <= firingIndex ) {
-                                                                                       firingIndex--;
-                                                                               }
-                                                                       }
-                                                               }
-                                                               // Remove the element
-                                                               list.splice( i--, 1 );
-                                                               // If we have some unicity property then
-                                                               // we only need to do this once
-                                                               if ( flags.unique ) {
-                                                                       break;
-                                                               }
-                                                       }
-                                               }
-                                       }
-                               }
-                               return this;
-                       },
-                       // Control if a given callback is in the list
-                       has: function( fn ) {
-                               if ( list ) {
-                                       var i = 0,
-                                               length = list.length;
-                                       for ( ; i < length; i++ ) {
-                                               if ( fn === list[ i ] ) {
-                                                       return true;
-                                               }
-                                       }
-                               }
-                               return false;
-                       },
-                       // Remove all callbacks from the list
-                       empty: function() {
-                               list = [];
-                               return this;
-                       },
-                       // Have the list do nothing anymore
-                       disable: function() {
-                               list = stack = memory = undefined;
-                               return this;
-                       },
-                       // Is it disabled?
-                       disabled: function() {
-                               return !list;
-                       },
-                       // Lock the list in its current state
-                       lock: function() {
-                               stack = undefined;
-                               if ( !memory || memory === true ) {
-                                       self.disable();
-                               }
-                               return this;
-                       },
-                       // Is it locked?
-                       locked: function() {
-                               return !stack;
-                       },
-                       // Call all callbacks with the given context and arguments
-                       fireWith: function( context, args ) {
-                               if ( stack ) {
-                                       if ( firing ) {
-                                               if ( !flags.once ) {
-                                                       stack.push( [ context, args ] );
-                                               }
-                                       } else if ( !( flags.once && memory ) ) {
-                                               fire( context, args );
-                                       }
-                               }
-                               return this;
-                       },
-                       // Call all the callbacks with the given arguments
-                       fire: function() {
-                               self.fireWith( this, arguments );
-                               return this;
-                       },
-                       // To know if the callbacks have already been called at least once
-                       fired: function() {
-                               return !!memory;
-                       }
-               };
-
-       return self;
-};
-
-
-
-
-var // Static reference to slice
-       sliceDeferred = [].slice;
-
-jQuery.extend({
-
-       Deferred: function( func ) {
-               var doneList = jQuery.Callbacks( "once memory" ),
-                       failList = jQuery.Callbacks( "once memory" ),
-                       progressList = jQuery.Callbacks( "memory" ),
-                       state = "pending",
-                       lists = {
-                               resolve: doneList,
-                               reject: failList,
-                               notify: progressList
-                       },
-                       promise = {
-                               done: doneList.add,
-                               fail: failList.add,
-                               progress: progressList.add,
-
-                               state: function() {
-                                       return state;
-                               },
-
-                               // Deprecated
-                               isResolved: doneList.fired,
-                               isRejected: failList.fired,
-
-                               then: function( doneCallbacks, failCallbacks, progressCallbacks ) {
-                                       deferred.done( doneCallbacks ).fail( failCallbacks ).progress( progressCallbacks );
-                                       return this;
-                               },
-                               always: function() {
-                                       deferred.done.apply( deferred, arguments ).fail.apply( deferred, arguments );
-                                       return this;
-                               },
-                               pipe: function( fnDone, fnFail, fnProgress ) {
-                                       return jQuery.Deferred(function( newDefer ) {
-                                               jQuery.each( {
-                                                       done: [ fnDone, "resolve" ],
-                                                       fail: [ fnFail, "reject" ],
-                                                       progress: [ fnProgress, "notify" ]
-                                               }, function( handler, data ) {
-                                                       var fn = data[ 0 ],
-                                                               action = data[ 1 ],
-                                                               returned;
-                                                       if ( jQuery.isFunction( fn ) ) {
-                                                               deferred[ handler ](function() {
-                                                                       returned = fn.apply( this, arguments );
-                                                                       if ( returned && jQuery.isFunction( returned.promise ) ) {
-                                                                               returned.promise().then( newDefer.resolve, newDefer.reject, newDefer.notify );
-                                                                       } else {
-                                                                               newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] );
-                                                                       }
-                                                               });
-                                                       } else {
-                                                               deferred[ handler ]( newDefer[ action ] );
-                                                       }
-                                               });
-                                       }).promise();
-                               },
-                               // Get a promise for this deferred
-                               // If obj is provided, the promise aspect is added to the object
-                               promise: function( obj ) {
-                                       if ( obj == null ) {
-                                               obj = promise;
-                                       } else {
-                                               for ( var key in promise ) {
-                                                       obj[ key ] = promise[ key ];
-                                               }
-                                       }
-                                       return obj;
-                               }
-                       },
-                       deferred = promise.promise({}),
-                       key;
-
-               for ( key in lists ) {
-                       deferred[ key ] = lists[ key ].fire;
-                       deferred[ key + "With" ] = lists[ key ].fireWith;
-               }
-
-               // Handle state
-               deferred.done( function() {
-                       state = "resolved";
-               }, failList.disable, progressList.lock ).fail( function() {
-                       state = "rejected";
-               }, doneList.disable, progressList.lock );
-
-               // Call given func if any
-               if ( func ) {
-                       func.call( deferred, deferred );
-               }
-
-               // All done!
-               return deferred;
-       },
-
-       // Deferred helper
-       when: function( firstParam ) {
-               var args = sliceDeferred.call( arguments, 0 ),
-                       i = 0,
-                       length = args.length,
-                       pValues = new Array( length ),
-                       count = length,
-                       pCount = length,
-                       deferred = length <= 1 && firstParam && jQuery.isFunction( firstParam.promise ) ?
-                               firstParam :
-                               jQuery.Deferred(),
-                       promise = deferred.promise();
-               function resolveFunc( i ) {
-                       return function( value ) {
-                               args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
-                               if ( !( --count ) ) {
-                                       deferred.resolveWith( deferred, args );
-                               }
-                       };
-               }
-               function progressFunc( i ) {
-                       return function( value ) {
-                               pValues[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
-                               deferred.notifyWith( promise, pValues );
-                       };
-               }
-               if ( length > 1 ) {
-                       for ( ; i < length; i++ ) {
-                               if ( args[ i ] && args[ i ].promise && jQuery.isFunction( args[ i ].promise ) ) {
-                                       args[ i ].promise().then( resolveFunc(i), deferred.reject, progressFunc(i) );
-                               } else {
-                                       --count;
-                               }
-                       }
-                       if ( !count ) {
-                               deferred.resolveWith( deferred, args );
-                       }
-               } else if ( deferred !== firstParam ) {
-                       deferred.resolveWith( deferred, length ? [ firstParam ] : [] );
-               }
-               return promise;
-       }
-});
-
-
-
-
-jQuery.support = (function() {
-
-       var support,
-               all,
-               a,
-               select,
-               opt,
-               input,
-               marginDiv,
-               fragment,
-               tds,
-               events,
-               eventName,
-               i,
-               isSupported,
-               div = document.createElement( "div" ),
-               documentElement = document.documentElement;
-
-       // Preliminary tests
-       div.setAttribute("className", "t");
-       div.innerHTML = "   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
-
-       all = div.getElementsByTagName( "*" );
-       a = div.getElementsByTagName( "a" )[ 0 ];
-
-       // Can't get basic test support
-       if ( !all || !all.length || !a ) {
-               return {};
-       }
-
-       // First batch of supports tests
-       select = document.createElement( "select" );
-       opt = select.appendChild( document.createElement("option") );
-       input = div.getElementsByTagName( "input" )[ 0 ];
-
-       support = {
-               // IE strips leading whitespace when .innerHTML is used
-               leadingWhitespace: ( div.firstChild.nodeType === 3 ),
-
-               // Make sure that tbody elements aren't automatically inserted
-               // IE will insert them into empty tables
-               tbody: !div.getElementsByTagName("tbody").length,
-
-               // Make sure that link elements get serialized correctly by innerHTML
-               // This requires a wrapper element in IE
-               htmlSerialize: !!div.getElementsByTagName("link").length,
-
-               // Get the style information from getAttribute
-               // (IE uses .cssText instead)
-               style: /top/.test( a.getAttribute("style") ),
-
-               // Make sure that URLs aren't manipulated
-               // (IE normalizes it by default)
-               hrefNormalized: ( a.getAttribute("href") === "/a" ),
-
-               // Make sure that element opacity exists
-               // (IE uses filter instead)
-               // Use a regex to work around a WebKit issue. See #5145
-               opacity: /^0.55/.test( a.style.opacity ),
-
-               // Verify style float existence
-               // (IE uses styleFloat instead of cssFloat)
-               cssFloat: !!a.style.cssFloat,
-
-               // Make sure that if no value is specified for a checkbox
-               // that it defaults to "on".
-               // (WebKit defaults to "" instead)
-               checkOn: ( input.value === "on" ),
-
-               // Make sure that a selected-by-default option has a working selected property.
-               // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
-               optSelected: opt.selected,
-
-               // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
-               getSetAttribute: div.className !== "t",
-
-               // Tests for enctype support on a form(#6743)
-               enctype: !!document.createElement("form").enctype,
-
-               // Makes sure cloning an html5 element does not cause problems
-               // Where outerHTML is undefined, this still works
-               html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav></:nav>",
-
-               // Will be defined later
-               submitBubbles: true,
-               changeBubbles: true,
-               focusinBubbles: false,
-               deleteExpando: true,
-               noCloneEvent: true,
-               inlineBlockNeedsLayout: false,
-               shrinkWrapBlocks: false,
-               reliableMarginRight: true
-       };
-
-       // Make sure checked status is properly cloned
-       input.checked = true;
-       support.noCloneChecked = input.cloneNode( true ).checked;
-
-       // Make sure that the options inside disabled selects aren't marked as disabled
-       // (WebKit marks them as disabled)
-       select.disabled = true;
-       support.optDisabled = !opt.disabled;
-
-       // Test to see if it's possible to delete an expando from an element
-       // Fails in Internet Explorer
-       try {
-               delete div.test;
-       } catch( e ) {
-               support.deleteExpando = false;
-       }
-
-       if ( !div.addEventListener && div.attachEvent && div.fireEvent ) {
-               div.attachEvent( "onclick", function() {
-                       // Cloning a node shouldn't copy over any
-                       // bound event handlers (IE does this)
-                       support.noCloneEvent = false;
-               });
-               div.cloneNode( true ).fireEvent( "onclick" );
-       }
-
-       // Check if a radio maintains its value
-       // after being appended to the DOM
-       input = document.createElement("input");
-       input.value = "t";
-       input.setAttribute("type", "radio");
-       support.radioValue = input.value === "t";
-
-       input.setAttribute("checked", "checked");
-       div.appendChild( input );
-       fragment = document.createDocumentFragment();
-       fragment.appendChild( div.lastChild );
-
-       // WebKit doesn't clone checked state correctly in fragments
-       support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;
-
-       // Check if a disconnected checkbox will retain its checked
-       // value of true after appended to the DOM (IE6/7)
-       support.appendChecked = input.checked;
-
-       fragment.removeChild( input );
-       fragment.appendChild( div );
-
-       div.innerHTML = "";
-
-       // Check if div with explicit width and no margin-right incorrectly
-       // gets computed margin-right based on width of container. For more
-       // info see bug #3333
-       // Fails in WebKit before Feb 2011 nightlies
-       // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
-       if ( window.getComputedStyle ) {
-               marginDiv = document.createElement( "div" );
-               marginDiv.style.width = "0";
-               marginDiv.style.marginRight = "0";
-               div.style.width = "2px";
-               div.appendChild( marginDiv );
-               support.reliableMarginRight =
-                       ( parseInt( ( window.getComputedStyle( marginDiv, null ) || { marginRight: 0 } ).marginRight, 10 ) || 0 ) === 0;
-       }
-
-       // Technique from Juriy Zaytsev
-       // http://perfectionkills.com/detecting-event-support-without-browser-sniffing/
-       // We only care about the case where non-standard event systems
-       // are used, namely in IE. Short-circuiting here helps us to
-       // avoid an eval call (in setAttribute) which can cause CSP
-       // to go haywire. See: https://developer.mozilla.org/en/Security/CSP
-       if ( div.attachEvent ) {
-               for( i in {
-                       submit: 1,
-                       change: 1,
-                       focusin: 1
-               }) {
-                       eventName = "on" + i;
-                       isSupported = ( eventName in div );
-                       if ( !isSupported ) {
-                               div.setAttribute( eventName, "return;" );
-                               isSupported = ( typeof div[ eventName ] === "function" );
-                       }
-                       support[ i + "Bubbles" ] = isSupported;
-               }
-       }
-
-       fragment.removeChild( div );
-
-       // Null elements to avoid leaks in IE
-       fragment = select = opt = marginDiv = div = input = null;
-
-       // Run tests that need a body at doc ready
-       jQuery(function() {
-               var container, outer, inner, table, td, offsetSupport,
-                       conMarginTop, ptlm, vb, style, html,
-                       body = document.getElementsByTagName("body")[0];
-
-               if ( !body ) {
-                       // Return for frameset docs that don't have a body
-                       return;
-               }
-
-               conMarginTop = 1;
-               ptlm = "position:absolute;top:0;left:0;width:1px;height:1px;margin:0;";
-               vb = "visibility:hidden;border:0;";
-               style = "style='" + ptlm + "border:5px solid #000;padding:0;'";
-               html = "<div " + style + "><div></div></div>" +
-                       "<table " + style + " cellpadding='0' cellspacing='0'>" +
-                       "<tr><td></td></tr></table>";
-
-               container = document.createElement("div");
-               container.style.cssText = vb + "width:0;height:0;position:static;top:0;margin-top:" + conMarginTop + "px";
-               body.insertBefore( container, body.firstChild );
-
-               // Construct the test element
-               div = document.createElement("div");
-               container.appendChild( div );
-
-               // Check if table cells still have offsetWidth/Height when they are set
-               // to display:none and there are still other visible table cells in a
-               // table row; if so, offsetWidth/Height are not reliable for use when
-               // determining if an element has been hidden directly using
-               // display:none (it is still safe to use offsets if a parent element is
-               // hidden; don safety goggles and see bug #4512 for more information).
-               // (only IE 8 fails this test)
-               div.innerHTML = "<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";
-               tds = div.getElementsByTagName( "td" );
-               isSupported = ( tds[ 0 ].offsetHeight === 0 );
-
-               tds[ 0 ].style.display = "";
-               tds[ 1 ].style.display = "none";
-
-               // Check if empty table cells still have offsetWidth/Height
-               // (IE <= 8 fail this test)
-               support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 );
-
-               // Figure out if the W3C box model works as expected
-               div.innerHTML = "";
-               div.style.width = div.style.paddingLeft = "1px";
-               jQuery.boxModel = support.boxModel = div.offsetWidth === 2;
-
-               if ( typeof div.style.zoom !== "undefined" ) {
-                       // Check if natively block-level elements act like inline-block
-                       // elements when setting their display to 'inline' and giving
-                       // them layout
-                       // (IE < 8 does this)
-                       div.style.display = "inline";
-                       div.style.zoom = 1;
-                       support.inlineBlockNeedsLayout = ( div.offsetWidth === 2 );
-
-                       // Check if elements with layout shrink-wrap their children
-                       // (IE 6 does this)
-                       div.style.display = "";
-                       div.innerHTML = "<div style='width:4px;'></div>";
-                       support.shrinkWrapBlocks = ( div.offsetWidth !== 2 );
-               }
-
-               div.style.cssText = ptlm + vb;
-               div.innerHTML = html;
-
-               outer = div.firstChild;
-               inner = outer.firstChild;
-               td = outer.nextSibling.firstChild.firstChild;
-
-               offsetSupport = {
-                       doesNotAddBorder: ( inner.offsetTop !== 5 ),
-                       doesAddBorderForTableAndCells: ( td.offsetTop === 5 )
-               };
-
-               inner.style.position = "fixed";
-               inner.style.top = "20px";
-
-               // safari subtracts parent border width here which is 5px
-               offsetSupport.fixedPosition = ( inner.offsetTop === 20 || inner.offsetTop === 15 );
-               inner.style.position = inner.style.top = "";
-
-               outer.style.overflow = "hidden";
-               outer.style.position = "relative";
-
-               offsetSupport.subtractsBorderForOverflowNotVisible = ( inner.offsetTop === -5 );
-               offsetSupport.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== conMarginTop );
-
-               body.removeChild( container );
-               div  = container = null;
-
-               jQuery.extend( support, offsetSupport );
-       });
-
-       return support;
-})();
-
-
-
-
-var rbrace = /^(?:\{.*\}|\[.*\])$/,
-       rmultiDash = /([A-Z])/g;
-
-jQuery.extend({
-       cache: {},
-
-       // Please use with caution
-       uuid: 0,
-
-       // Unique for each copy of jQuery on the page
-       // Non-digits removed to match rinlinejQuery
-       expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ),
-
-       // The following elements throw uncatchable exceptions if you
-       // attempt to add expando properties to them.
-       noData: {
-               "embed": true,
-               // Ban all objects except for Flash (which handle expandos)
-               "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
-               "applet": true
-       },
-
-       hasData: function( elem ) {
-               elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];
-               return !!elem && !isEmptyDataObject( elem );
-       },
-
-       data: function( elem, name, data, pvt /* Internal Use Only */ ) {
-               if ( !jQuery.acceptData( elem ) ) {
-                       return;
-               }
-
-               var privateCache, thisCache, ret,
-                       internalKey = jQuery.expando,
-                       getByName = typeof name === "string",
-
-                       // We have to handle DOM nodes and JS objects differently because IE6-7
-                       // can't GC object references properly across the DOM-JS boundary
-                       isNode = elem.nodeType,
-
-                       // Only DOM nodes need the global jQuery cache; JS object data is
-                       // attached directly to the object so GC can occur automatically
-                       cache = isNode ? jQuery.cache : elem,
-
-                       // Only defining an ID for JS objects if its cache already exists allows
-                       // the code to shortcut on the same path as a DOM node with no cache
-                       id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey,
-                       isEvents = name === "events";
-
-               // Avoid doing any more work than we need to when trying to get data on an
-               // object that has no data at all
-               if ( (!id || !cache[id] || (!isEvents && !pvt && !cache[id].data)) && getByName && data === undefined ) {
-                       return;
-               }
-
-               if ( !id ) {
-                       // Only DOM nodes need a new unique ID for each element since their data
-                       // ends up in the global cache
-                       if ( isNode ) {
-                               elem[ internalKey ] = id = ++jQuery.uuid;
-                       } else {
-                               id = internalKey;
-                       }
-               }
-
-               if ( !cache[ id ] ) {
-                       cache[ id ] = {};
-
-                       // Avoids exposing jQuery metadata on plain JS objects when the object
-                       // is serialized using JSON.stringify
-                       if ( !isNode ) {
-                               cache[ id ].toJSON = jQuery.noop;
-                       }
-               }
-
-               // An object can be passed to jQuery.data instead of a key/value pair; this gets
-               // shallow copied over onto the existing cache
-               if ( typeof name === "object" || typeof name === "function" ) {
-                       if ( pvt ) {
-                               cache[ id ] = jQuery.extend( cache[ id ], name );
-                       } else {
-                               cache[ id ].data = jQuery.extend( cache[ id ].data, name );
-                       }
-               }
-
-               privateCache = thisCache = cache[ id ];
-
-               // jQuery data() is stored in a separate object inside the object's internal data
-               // cache in order to avoid key collisions between internal data and user-defined
-               // data.
-               if ( !pvt ) {
-                       if ( !thisCache.data ) {
-                               thisCache.data = {};
-                       }
-
-                       thisCache = thisCache.data;
-               }
-
-               if ( data !== undefined ) {
-                       thisCache[ jQuery.camelCase( name ) ] = data;
-               }
-
-               // Users should not attempt to inspect the internal events object using jQuery.data,
-               // it is undocumented and subject to change. But does anyone listen? No.
-               if ( isEvents && !thisCache[ name ] ) {
-                       return privateCache.events;
-               }
-
-               // Check for both converted-to-camel and non-converted data property names
-               // If a data property was specified
-               if ( getByName ) {
-
-                       // First Try to find as-is property data
-                       ret = thisCache[ name ];
-
-                       // Test for null|undefined property data
-                       if ( ret == null ) {
-
-                               // Try to find the camelCased property
-                               ret = thisCache[ jQuery.camelCase( name ) ];
-                       }
-               } else {
-                       ret = thisCache;
-               }
-
-               return ret;
-       },
-
-       removeData: function( elem, name, pvt /* Internal Use Only */ ) {
-               if ( !jQuery.acceptData( elem ) ) {
-                       return;
-               }
-
-               var thisCache, i, l,
-
-                       // Reference to internal data cache key
-                       internalKey = jQuery.expando,
-
-                       isNode = elem.nodeType,
-
-                       // See jQuery.data for more information
-                       cache = isNode ? jQuery.cache : elem,
-
-                       // See jQuery.data for more information
-                       id = isNode ? elem[ internalKey ] : internalKey;
-
-               // If there is already no cache entry for this object, there is no
-               // purpose in continuing
-               if ( !cache[ id ] ) {
-                       return;
-               }
-
-               if ( name ) {
-
-                       thisCache = pvt ? cache[ id ] : cache[ id ].data;
-
-                       if ( thisCache ) {
-
-                               // Support array or space separated string names for data keys
-                               if ( !jQuery.isArray( name ) ) {
-
-                                       // try the string as a key before any manipulation
-                                       if ( name in thisCache ) {
-                                               name = [ name ];
-                                       } else {
-
-                                               // split the camel cased version by spaces unless a key with the spaces exists
-                                               name = jQuery.camelCase( name );
-                                               if ( name in thisCache ) {
-                                                       name = [ name ];
-                                               } else {
-                                                       name = name.split( " " );
-                                               }
-                                       }
-                               }
-
-                               for ( i = 0, l = name.length; i < l; i++ ) {
-                                       delete thisCache[ name[i] ];
-                               }
-
-                               // If there is no data left in the cache, we want to continue
-                               // and let the cache object itself get destroyed
-                               if ( !( pvt ? isEmptyDataObject : jQuery.isEmptyObject )( thisCache ) ) {
-                                       return;
-                               }
-                       }
-               }
-
-               // See jQuery.data for more information
-               if ( !pvt ) {
-                       delete cache[ id ].data;
-
-                       // Don't destroy the parent cache unless the internal data object
-                       // had been the only thing left in it
-                       if ( !isEmptyDataObject(cache[ id ]) ) {
-                               return;
-                       }
-               }
-
-               // Browsers that fail expando deletion also refuse to delete expandos on
-               // the window, but it will allow it on all other JS objects; other browsers
-               // don't care
-               // Ensure that `cache` is not a window object #10080
-               if ( jQuery.support.deleteExpando || !cache.setInterval ) {
-                       delete cache[ id ];
-               } else {
-                       cache[ id ] = null;
-               }
-
-               // We destroyed the cache and need to eliminate the expando on the node to avoid
-               // false lookups in the cache for entries that no longer exist
-               if ( isNode ) {
-                       // IE does not allow us to delete expando properties from nodes,
-                       // nor does it have a removeAttribute function on Document nodes;
-                       // we must handle all of these cases
-                       if ( jQuery.support.deleteExpando ) {
-                               delete elem[ internalKey ];
-                       } else if ( elem.removeAttribute ) {
-                               elem.removeAttribute( internalKey );
-                       } else {
-                               elem[ internalKey ] = null;
-                       }
-               }
-       },
-
-       // For internal use only.
-       _data: function( elem, name, data ) {
-               return jQuery.data( elem, name, data, true );
-       },
-
-       // A method for determining if a DOM node can handle the data expando
-       acceptData: function( elem ) {
-               if ( elem.nodeName ) {
-                       var match = jQuery.noData[ elem.nodeName.toLowerCase() ];
-
-                       if ( match ) {
-                               return !(match === true || elem.getAttribute("classid") !== match);
-                       }
-               }
-
-               return true;
-       }
-});
-
-jQuery.fn.extend({
-       data: function( key, value ) {
-               var parts, attr, name,
-                       data = null;
-
-               if ( typeof key === "undefined" ) {
-                       if ( this.length ) {
-                               data = jQuery.data( this[0] );
-
-                               if ( this[0].nodeType === 1 && !jQuery._data( this[0], "parsedAttrs" ) ) {
-                                       attr = this[0].attributes;
-                                       for ( var i = 0, l = attr.length; i < l; i++ ) {
-                                               name = attr[i].name;
-
-                                               if ( name.indexOf( "data-" ) === 0 ) {
-                                                       name = jQuery.camelCase( name.substring(5) );
-
-                                                       dataAttr( this[0], name, data[ name ] );
-                                               }
-                                       }
-                                       jQuery._data( this[0], "parsedAttrs", true );
-                               }
-                       }
-
-                       return data;
-
-               } else if ( typeof key === "object" ) {
-                       return this.each(function() {
-                               jQuery.data( this, key );
-                       });
-               }
-
-               parts = key.split(".");
-               parts[1] = parts[1] ? "." + parts[1] : "";
-
-               if ( value === undefined ) {
-                       data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
-
-                       // Try to fetch any internally stored data first
-                       if ( data === undefined && this.length ) {
-                               data = jQuery.data( this[0], key );
-                               data = dataAttr( this[0], key, data );
-                       }
-
-                       return data === undefined && parts[1] ?
-                               this.data( parts[0] ) :
-                               data;
-
-               } else {
-                       return this.each(function() {
-                               var self = jQuery( this ),
-                                       args = [ parts[0], value ];
-
-                               self.triggerHandler( "setData" + parts[1] + "!", args );
-                               jQuery.data( this, key, value );
-                               self.triggerHandler( "changeData" + parts[1] + "!", args );
-                       });
-               }
-       },
-
-       removeData: function( key ) {
-               return this.each(function() {
-                       jQuery.removeData( this, key );
-               });
-       }
-});
-
-function dataAttr( elem, key, data ) {
-       // If nothing was found internally, try to fetch any
-       // data from the HTML5 data-* attribute
-       if ( data === undefined && elem.nodeType === 1 ) {
-
-               var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
-
-               data = elem.getAttribute( name );
-
-               if ( typeof data === "string" ) {
-                       try {
-                               data = data === "true" ? true :
-                               data === "false" ? false :
-                               data === "null" ? null :
-                               jQuery.isNumeric( data ) ? parseFloat( data ) :
-                                       rbrace.test( data ) ? jQuery.parseJSON( data ) :
-                                       data;
-                       } catch( e ) {}
-
-                       // Make sure we set the data so it isn't changed later
-                       jQuery.data( elem, key, data );
-
-               } else {
-                       data = undefined;
-               }
-       }
-
-       return data;
-}
-
-// checks a cache object for emptiness
-function isEmptyDataObject( obj ) {
-       for ( var name in obj ) {
-
-               // if the public data object is empty, the private is still empty
-               if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {
-                       continue;
-               }
-               if ( name !== "toJSON" ) {
-                       return false;
-               }
-       }
-
-       return true;
-}
-
-
-
-
-function handleQueueMarkDefer( elem, type, src ) {
-       var deferDataKey = type + "defer",
-               queueDataKey = type + "queue",
-               markDataKey = type + "mark",
-               defer = jQuery._data( elem, deferDataKey );
-       if ( defer &&
-               ( src === "queue" || !jQuery._data(elem, queueDataKey) ) &&
-               ( src === "mark" || !jQuery._data(elem, markDataKey) ) ) {
-               // Give room for hard-coded callbacks to fire first
-               // and eventually mark/queue something else on the element
-               setTimeout( function() {
-                       if ( !jQuery._data( elem, queueDataKey ) &&
-                               !jQuery._data( elem, markDataKey ) ) {
-                               jQuery.removeData( elem, deferDataKey, true );
-                               defer.fire();
-                       }
-               }, 0 );
-       }
-}
-
-jQuery.extend({
-
-       _mark: function( elem, type ) {
-               if ( elem ) {
-                       type = ( type || "fx" ) + "mark";
-                       jQuery._data( elem, type, (jQuery._data( elem, type ) || 0) + 1 );
-               }
-       },
-
-       _unmark: function( force, elem, type ) {
-               if ( force !== true ) {
-                       type = elem;
-                       elem = force;
-                       force = false;
-               }
-               if ( elem ) {
-                       type = type || "fx";
-                       var key = type + "mark",
-                               count = force ? 0 : ( (jQuery._data( elem, key ) || 1) - 1 );
-                       if ( count ) {
-                               jQuery._data( elem, key, count );
-                       } else {
-                               jQuery.removeData( elem, key, true );
-                               handleQueueMarkDefer( elem, type, "mark" );
-                       }
-               }
-       },
-
-       queue: function( elem, type, data ) {
-               var q;
-               if ( elem ) {
-                       type = ( type || "fx" ) + "queue";
-                       q = jQuery._data( elem, type );
-
-                       // Speed up dequeue by getting out quickly if this is just a lookup
-                       if ( data ) {
-                               if ( !q || jQuery.isArray(data) ) {
-                                       q = jQuery._data( elem, type, jQuery.makeArray(data) );
-                               } else {
-                                       q.push( data );
-                               }
-                       }
-                       return q || [];
-               }
-       },
-
-       dequeue: function( elem, type ) {
-               type = type || "fx";
-
-               var queue = jQuery.queue( elem, type ),
-                       fn = queue.shift(),
-                       hooks = {};
-
-               // If the fx queue is dequeued, always remove the progress sentinel
-               if ( fn === "inprogress" ) {
-                       fn = queue.shift();
-               }
-
-               if ( fn ) {
-                       // Add a progress sentinel to prevent the fx queue from being
-                       // automatically dequeued
-                       if ( type === "fx" ) {
-                               queue.unshift( "inprogress" );
-                       }
-
-                       jQuery._data( elem, type + ".run", hooks );
-                       fn.call( elem, function() {
-                               jQuery.dequeue( elem, type );
-                       }, hooks );
-               }
-
-               if ( !queue.length ) {
-                       jQuery.removeData( elem, type + "queue " + type + ".run", true );
-                       handleQueueMarkDefer( elem, type, "queue" );
-               }
-       }
-});
-
-jQuery.fn.extend({
-       queue: function( type, data ) {
-               if ( typeof type !== "string" ) {
-                       data = type;
-                       type = "fx";
-               }
-
-               if ( data === undefined ) {
-                       return jQuery.queue( this[0], type );
-               }
-               return this.each(function() {
-                       var queue = jQuery.queue( this, type, data );
-
-                       if ( type === "fx" && queue[0] !== "inprogress" ) {
-                               jQuery.dequeue( this, type );
-                       }
-               });
-       },
-       dequeue: function( type ) {
-               return this.each(function() {
-                       jQuery.dequeue( this, type );
-               });
-       },
-       // Based off of the plugin by Clint Helfers, with permission.
-       // http://blindsignals.com/index.php/2009/07/jquery-delay/
-       delay: function( time, type ) {
-               time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
-               type = type || "fx";
-
-               return this.queue( type, function( next, hooks ) {
-                       var timeout = setTimeout( next, time );
-                       hooks.stop = function() {
-                               clearTimeout( timeout );
-                       };
-               });
-       },
-       clearQueue: function( type ) {
-               return this.queue( type || "fx", [] );
-       },
-       // Get a promise resolved when queues of a certain type
-       // are emptied (fx is the type by default)
-       promise: function( type, object ) {
-               if ( typeof type !== "string" ) {
-                       object = type;
-                       type = undefined;
-               }
-               type = type || "fx";
-               var defer = jQuery.Deferred(),
-                       elements = this,
-                       i = elements.length,
-                       count = 1,
-                       deferDataKey = type + "defer",
-                       queueDataKey = type + "queue",
-                       markDataKey = type + "mark",
-                       tmp;
-               function resolve() {
-                       if ( !( --count ) ) {
-                               defer.resolveWith( elements, [ elements ] );
-                       }
-               }
-               while( i-- ) {
-                       if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) ||
-                                       ( jQuery.data( elements[ i ], queueDataKey, undefined, true ) ||
-                                               jQuery.data( elements[ i ], markDataKey, undefined, true ) ) &&
-                                       jQuery.data( elements[ i ], deferDataKey, jQuery.Callbacks( "once memory" ), true ) )) {
-                               count++;
-                               tmp.add( resolve );
-                       }
-               }
-               resolve();
-               return defer.promise();
-       }
-});
-
-
-
-
-var rclass = /[\n\t\r]/g,
-       rspace = /\s+/,
-       rreturn = /\r/g,
-       rtype = /^(?:button|input)$/i,
-       rfocusable = /^(?:button|input|object|select|textarea)$/i,
-       rclickable = /^a(?:rea)?$/i,
-       rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
-       getSetAttribute = jQuery.support.getSetAttribute,
-       nodeHook, boolHook, fixSpecified;
-
-jQuery.fn.extend({
-       attr: function( name, value ) {
-               return jQuery.access( this, name, value, true, jQuery.attr );
-       },
-
-       removeAttr: function( name ) {
-               return this.each(function() {
-                       jQuery.removeAttr( this, name );
-               });
-       },
-
-       prop: function( name, value ) {
-               return jQuery.access( this, name, value, true, jQuery.prop );
-       },
-
-       removeProp: function( name ) {
-               name = jQuery.propFix[ name ] || name;
-               return this.each(function() {
-                       // try/catch handles cases where IE balks (such as removing a property on window)
-                       try {
-                               this[ name ] = undefined;
-                               delete this[ name ];
-                       } catch( e ) {}
-               });
-       },
-
-       addClass: function( value ) {
-               var classNames, i, l, elem,
-                       setClass, c, cl;
-
-               if ( jQuery.isFunction( value ) ) {
-                       return this.each(function( j ) {
-                               jQuery( this ).addClass( value.call(this, j, this.className) );
-                       });
-               }
-
-               if ( value && typeof value === "string" ) {
-                       classNames = value.split( rspace );
-
-                       for ( i = 0, l = this.length; i < l; i++ ) {
-                               elem = this[ i ];
-
-                               if ( elem.nodeType === 1 ) {
-                                       if ( !elem.className && classNames.length === 1 ) {
-                                               elem.className = value;
-
-                                       } else {
-                                               setClass = " " + elem.className + " ";
-
-                                               for ( c = 0, cl = classNames.length; c < cl; c++ ) {
-                                                       if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) {
-                                                               setClass += classNames[ c ] + " ";
-                                                       }
-                                               }
-                                               elem.className = jQuery.trim( setClass );
-                                       }
-                               }
-                       }
-               }
-
-               return this;
-       },
-
-       removeClass: function( value ) {
-               var classNames, i, l, elem, className, c, cl;
-
-               if ( jQuery.isFunction( value ) ) {
-                       return this.each(function( j ) {
-                               jQuery( this ).removeClass( value.call(this, j, this.className) );
-                       });
-               }
-
-               if ( (value && typeof value === "string") || value === undefined ) {
-                       classNames = ( value || "" ).split( rspace );
-
-                       for ( i = 0, l = this.length; i < l; i++ ) {
-                               elem = this[ i ];
-
-                               if ( elem.nodeType === 1 && elem.className ) {
-                                       if ( value ) {
-                                               className = (" " + elem.className + " ").replace( rclass, " " );
-                                               for ( c = 0, cl = classNames.length; c < cl; c++ ) {
-                                                       className = className.replace(" " + classNames[ c ] + " ", " ");
-                                               }
-                                               elem.className = jQuery.trim( className );
-
-                                       } else {
-                                               elem.className = "";
-                                       }
-                               }
-                       }
-               }
-
-               return this;
-       },
-
-       toggleClass: function( value, stateVal ) {
-               var type = typeof value,
-                       isBool = typeof stateVal === "boolean";
-
-               if ( jQuery.isFunction( value ) ) {
-                       return this.each(function( i ) {
-                               jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
-                       });
-               }
-
-               return this.each(function() {
-                       if ( type === "string" ) {
-                               // toggle individual class names
-                               var className,
-                                       i = 0,
-                                       self = jQuery( this ),
-                                       state = stateVal,
-                                       classNames = value.split( rspace );
-
-                               while ( (className = classNames[ i++ ]) ) {
-                                       // check each className given, space seperated list
-                                       state = isBool ? state : !self.hasClass( className );
-                                       self[ state ? "addClass" : "removeClass" ]( className );
-                               }
-
-                       } else if ( type === "undefined" || type === "boolean" ) {
-                               if ( this.className ) {
-                                       // store className if set
-                                       jQuery._data( this, "__className__", this.className );
-                               }
-
-                               // toggle whole className
-                               this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";
-                       }
-               });
-       },
-
-       hasClass: function( selector ) {
-               var className = " " + selector + " ",
-                       i = 0,
-                       l = this.length;
-               for ( ; i < l; i++ ) {
-                       if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
-                               return true;
-                       }
-               }
-
-               return false;
-       },
-
-       val: function( value ) {
-               var hooks, ret, isFunction,
-                       elem = this[0];
-
-               if ( !arguments.length ) {
-                       if ( elem ) {
-                               hooks = jQuery.valHooks[ elem.nodeName.toLowerCase() ] || jQuery.valHooks[ elem.type ];
-
-                               if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
-                                       return ret;
-                               }
-
-                               ret = elem.value;
-
-                               return typeof ret === "string" ?
-                                       // handle most common string cases
-                                       ret.replace(rreturn, "") :
-                                       // handle cases where value is null/undef or number
-                                       ret == null ? "" : ret;
-                       }
-
-                       return;
-               }
-
-               isFunction = jQuery.isFunction( value );
-
-               return this.each(function( i ) {
-                       var self = jQuery(this), val;
-
-                       if ( this.nodeType !== 1 ) {
-                               return;
-                       }
-
-                       if ( isFunction ) {
-                               val = value.call( this, i, self.val() );
-                       } else {
-                               val = value;
-                       }
-
-                       // Treat null/undefined as ""; convert numbers to string
-                       if ( val == null ) {
-                               val = "";
-                       } else if ( typeof val === "number" ) {
-                               val += "";
-                       } else if ( jQuery.isArray( val ) ) {
-                               val = jQuery.map(val, function ( value ) {
-                                       return value == null ? "" : value + "";
-                               });
-                       }
-
-                       hooks = jQuery.valHooks[ this.nodeName.toLowerCase() ] || jQuery.valHooks[ this.type ];
-
-                       // If set returns undefined, fall back to normal setting
-                       if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
-                               this.value = val;
-                       }
-               });
-       }
-});
-
-jQuery.extend({
-       valHooks: {
-               option: {
-                       get: function( elem ) {
-                               // attributes.value is undefined in Blackberry 4.7 but
-                               // uses .value. See #6932
-                               var val = elem.attributes.value;
-                               return !val || val.specified ? elem.value : elem.text;
-                       }
-               },
-               select: {
-                       get: function( elem ) {
-                               var value, i, max, option,
-                                       index = elem.selectedIndex,
-                                       values = [],
-                                       options = elem.options,
-                                       one = elem.type === "select-one";
-
-                               // Nothing was selected
-                               if ( index < 0 ) {
-                                       return null;
-                               }
-
-                               // Loop through all the selected options
-                               i = one ? index : 0;
-                               max = one ? index + 1 : options.length;
-                               for ( ; i < max; i++ ) {
-                                       option = options[ i ];
-
-                                       // Don't return options that are disabled or in a disabled optgroup
-                                       if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) &&
-                                                       (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
-
-                                               // Get the specific value for the option
-                                               value = jQuery( option ).val();
-
-                                               // We don't need an array for one selects
-                                               if ( one ) {
-                                                       return value;
-                                               }
-
-                                               // Multi-Selects return an array
-                                               values.push( value );
-                                       }
-                               }
-
-                               // Fixes Bug #2551 -- select.val() broken in IE after form.reset()
-                               if ( one && !values.length && options.length ) {
-                                       return jQuery( options[ index ] ).val();
-                               }
-
-                               return values;
-                       },
-
-                       set: function( elem, value ) {
-                               var values = jQuery.makeArray( value );
-
-                               jQuery(elem).find("option").each(function() {
-                                       this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
-                               });
-
-                               if ( !values.length ) {
-                                       elem.selectedIndex = -1;
-                               }
-                               return values;
-                       }
-               }
-       },
-
-       attrFn: {
-               val: true,
-               css: true,
-               html: true,
-               text: true,
-               data: true,
-               width: true,
-               height: true,
-               offset: true
-       },
-
-       attr: function( elem, name, value, pass ) {
-               var ret, hooks, notxml,
-                       nType = elem.nodeType;
-
-               // don't get/set attributes on text, comment and attribute nodes
-               if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
-                       return;
-               }
-
-               if ( pass && name in jQuery.attrFn ) {
-                       return jQuery( elem )[ name ]( value );
-               }
-
-               // Fallback to prop when attributes are not supported
-               if ( typeof elem.getAttribute === "undefined" ) {
-                       return jQuery.prop( elem, name, value );
-               }
-
-               notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
-
-               // All attributes are lowercase
-               // Grab necessary hook if one is defined
-               if ( notxml ) {
-                       name = name.toLowerCase();
-                       hooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook );
-               }
-
-               if ( value !== undefined ) {
-
-                       if ( value === null ) {
-                               jQuery.removeAttr( elem, name );
-                               return;
-
-                       } else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) {
-                               return ret;
-
-                       } else {
-                               elem.setAttribute( name, "" + value );
-                               return value;
-                       }
-
-               } else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) {
-                       return ret;
-
-               } else {
-
-                       ret = elem.getAttribute( name );
-
-                       // Non-existent attributes return null, we normalize to undefined
-                       return ret === null ?
-                               undefined :
-                               ret;
-               }
-       },
-
-       removeAttr: function( elem, value ) {
-               var propName, attrNames, name, l,
-                       i = 0;
-
-               if ( value && elem.nodeType === 1 ) {
-                       attrNames = value.toLowerCase().split( rspace );
-                       l = attrNames.length;
-
-                       for ( ; i < l; i++ ) {
-                               name = attrNames[ i ];
-
-                               if ( name ) {
-                                       propName = jQuery.propFix[ name ] || name;
-
-                                       // See #9699 for explanation of this approach (setting first, then removal)
-                                       jQuery.attr( elem, name, "" );
-                                       elem.removeAttribute( getSetAttribute ? name : propName );
-
-                                       // Set corresponding property to false for boolean attributes
-                                       if ( rboolean.test( name ) && propName in elem ) {
-                                               elem[ propName ] = false;
-                                       }
-                               }
-                       }
-               }
-       },
-
-       attrHooks: {
-               type: {
-                       set: function( elem, value ) {
-                               // We can't allow the type property to be changed (since it causes problems in IE)
-                               if ( rtype.test( elem.nodeName ) && elem.parentNode ) {
-                                       jQuery.error( "type property can't be changed" );
-                               } else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
-                                       // Setting the type on a radio button after the value resets the value in IE6-9
-                                       // Reset value to it's default in case type is set after value
-                                       // This is for element creation
-                                       var val = elem.value;
-                                       elem.setAttribute( "type", value );
-                                       if ( val ) {
-                                               elem.value = val;
-                                       }
-                                       return value;
-                               }
-                       }
-               },
-               // Use the value property for back compat
-               // Use the nodeHook for button elements in IE6/7 (#1954)
-               value: {
-                       get: function( elem, name ) {
-                               if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
-                                       return nodeHook.get( elem, name );
-                               }
-                               return name in elem ?
-                                       elem.value :
-                                       null;
-                       },
-                       set: function( elem, value, name ) {
-                               if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
-                                       return nodeHook.set( elem, value, name );
-                               }
-                               // Does not return so that setAttribute is also used
-                               elem.value = value;
-                       }
-               }
-       },
-
-       propFix: {
-               tabindex: "tabIndex",
-               readonly: "readOnly",
-               "for": "htmlFor",
-               "class": "className",
-               maxlength: "maxLength",
-               cellspacing: "cellSpacing",
-               cellpadding: "cellPadding",
-               rowspan: "rowSpan",
-               colspan: "colSpan",
-               usemap: "useMap",
-               frameborder: "frameBorder",
-               contenteditable: "contentEditable"
-       },
-
-       prop: function( elem, name, value ) {
-               var ret, hooks, notxml,
-                       nType = elem.nodeType;
-
-               // don't get/set properties on text, comment and attribute nodes
-               if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
-                       return;
-               }
-
-               notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
-
-               if ( notxml ) {
-                       // Fix name and attach hooks
-                       name = jQuery.propFix[ name ] || name;
-                       hooks = jQuery.propHooks[ name ];
-               }
-
-               if ( value !== undefined ) {
-                       if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
-                               return ret;
-
-                       } else {
-                               return ( elem[ name ] = value );
-                       }
-
-               } else {
-                       if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
-                               return ret;
-
-                       } else {
-                               return elem[ name ];
-                       }
-               }
-       },
-
-       propHooks: {
-               tabIndex: {
-                       get: function( elem ) {
-                               // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
-                               // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
-                               var attributeNode = elem.getAttributeNode("tabindex");
-
-                               return attributeNode && attributeNode.specified ?
-                                       parseInt( attributeNode.value, 10 ) :
-                                       rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
-                                               0 :
-                                               undefined;
-                       }
-               }
-       }
-});
-
-// Add the tabIndex propHook to attrHooks for back-compat (different case is intentional)
-jQuery.attrHooks.tabindex = jQuery.propHooks.tabIndex;
-
-// Hook for boolean attributes
-boolHook = {
-       get: function( elem, name ) {
-               // Align boolean attributes with corresponding properties
-               // Fall back to attribute presence where some booleans are not supported
-               var attrNode,
-                       property = jQuery.prop( elem, name );
-               return property === true || typeof property !== "boolean" && ( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ?
-                       name.toLowerCase() :
-                       undefined;
-       },
-       set: function( elem, value, name ) {
-               var propName;
-               if ( value === false ) {
-                       // Remove boolean attributes when set to false
-                       jQuery.removeAttr( elem, name );
-               } else {
-                       // value is true since we know at this point it's type boolean and not false
-                       // Set boolean attributes to the same name and set the DOM property
-                       propName = jQuery.propFix[ name ] || name;
-                       if ( propName in elem ) {
-                               // Only set the IDL specifically if it already exists on the element
-                               elem[ propName ] = true;
-                       }
-
-                       elem.setAttribute( name, name.toLowerCase() );
-               }
-               return name;
-       }
-};
-
-// IE6/7 do not support getting/setting some attributes with get/setAttribute
-if ( !getSetAttribute ) {
-
-       fixSpecified = {
-               name: true,
-               id: true
-       };
-
-       // Use this for any attribute in IE6/7
-       // This fixes almost every IE6/7 issue
-       nodeHook = jQuery.valHooks.button = {
-               get: function( elem, name ) {
-                       var ret;
-                       ret = elem.getAttributeNode( name );
-                       return ret && ( fixSpecified[ name ] ? ret.nodeValue !== "" : ret.specified ) ?
-                               ret.nodeValue :
-                               undefined;
-               },
-               set: function( elem, value, name ) {
-                       // Set the existing or create a new attribute node
-                       var ret = elem.getAttributeNode( name );
-                       if ( !ret ) {
-                               ret = document.createAttribute( name );
-                               elem.setAttributeNode( ret );
-                       }
-                       return ( ret.nodeValue = value + "" );
-               }
-       };
-
-       // Apply the nodeHook to tabindex
-       jQuery.attrHooks.tabindex.set = nodeHook.set;
-
-       // Set width and height to auto instead of 0 on empty string( Bug #8150 )
-       // This is for removals
-       jQuery.each([ "width", "height" ], function( i, name ) {
-               jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
-                       set: function( elem, value ) {
-                               if ( value === "" ) {
-                                       elem.setAttribute( name, "auto" );
-                                       return value;
-                               }
-                       }
-               });
-       });
-
-       // Set contenteditable to false on removals(#10429)
-       // Setting to empty string throws an error as an invalid value
-       jQuery.attrHooks.contenteditable = {
-               get: nodeHook.get,
-               set: function( elem, value, name ) {
-                       if ( value === "" ) {
-                               value = "false";
-                       }
-                       nodeHook.set( elem, value, name );
-               }
-       };
-}
-
-
-// Some attributes require a special call on IE
-if ( !jQuery.support.hrefNormalized ) {
-       jQuery.each([ "href", "src", "width", "height" ], function( i, name ) {
-               jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
-                       get: function( elem ) {
-                               var ret = elem.getAttribute( name, 2 );
-                               return ret === null ? undefined : ret;
-                       }
-               });
-       });
-}
-
-if ( !jQuery.support.style ) {
-       jQuery.attrHooks.style = {
-               get: function( elem ) {
-                       // Return undefined in the case of empty string
-                       // Normalize to lowercase since IE uppercases css property names
-                       return elem.style.cssText.toLowerCase() || undefined;
-               },
-               set: function( elem, value ) {
-                       return ( elem.style.cssText = "" + value );
-               }
-       };
-}
-
-// Safari mis-reports the default selected property of an option
-// Accessing the parent's selectedIndex property fixes it
-if ( !jQuery.support.optSelected ) {
-       jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {
-               get: function( elem ) {
-                       var parent = elem.parentNode;
-
-                       if ( parent ) {
-                               parent.selectedIndex;
-
-                               // Make sure that it also works with optgroups, see #5701
-                               if ( parent.parentNode ) {
-                                       parent.parentNode.selectedIndex;
-                               }
-                       }
-                       return null;
-               }
-       });
-}
-
-// IE6/7 call enctype encoding
-if ( !jQuery.support.enctype ) {
-       jQuery.propFix.enctype = "encoding";
-}
-
-// Radios and checkboxes getter/setter
-if ( !jQuery.support.checkOn ) {
-       jQuery.each([ "radio", "checkbox" ], function() {
-               jQuery.valHooks[ this ] = {
-                       get: function( elem ) {
-                               // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
-                               return elem.getAttribute("value") === null ? "on" : elem.value;
-                       }
-               };
-       });
-}
-jQuery.each([ "radio", "checkbox" ], function() {
-       jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {
-               set: function( elem, value ) {
-                       if ( jQuery.isArray( value ) ) {
-                               return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
-                       }
-               }
-       });
-});
-
-
-
-
-var rformElems = /^(?:textarea|input|select)$/i,
-       rtypenamespace = /^([^\.]*)?(?:\.(.+))?$/,
-       rhoverHack = /\bhover(\.\S+)?\b/,
-       rkeyEvent = /^key/,
-       rmouseEvent = /^(?:mouse|contextmenu)|click/,
-       rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
-       rquickIs = /^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,
-       quickParse = function( selector ) {
-               var quick = rquickIs.exec( selector );
-               if ( quick ) {
-                       //   0  1    2   3
-                       // [ _, tag, id, class ]
-                       quick[1] = ( quick[1] || "" ).toLowerCase();
-                       quick[3] = quick[3] && new RegExp( "(?:^|\\s)" + quick[3] + "(?:\\s|$)" );
-               }
-               return quick;
-       },
-       quickIs = function( elem, m ) {
-               var attrs = elem.attributes || {};
-               return (
-                       (!m[1] || elem.nodeName.toLowerCase() === m[1]) &&
-                       (!m[2] || (attrs.id || {}).value === m[2]) &&
-                       (!m[3] || m[3].test( (attrs[ "class" ] || {}).value ))
-               );
-       },
-       hoverHack = function( events ) {
-               return jQuery.event.special.hover ? events : events.replace( rhoverHack, "mouseenter$1 mouseleave$1" );
-       };
-
-/*
- * Helper functions for managing events -- not part of the public interface.
- * Props to Dean Edwards' addEvent library for many of the ideas.
- */
-jQuery.event = {
-
-       add: function( elem, types, handler, data, selector ) {
-
-               var elemData, eventHandle, events,
-                       t, tns, type, namespaces, handleObj,
-                       handleObjIn, quick, handlers, special;
-
-               // Don't attach events to noData or text/comment nodes (allow plain objects tho)
-               if ( elem.nodeType === 3 || elem.nodeType === 8 || !types || !handler || !(elemData = jQuery._data( elem )) ) {
-                       return;
-               }
-
-               // Caller can pass in an object of custom data in lieu of the handler
-               if ( handler.handler ) {
-                       handleObjIn = handler;
-                       handler = handleObjIn.handler;
-               }
-
-               // Make sure that the handler has a unique ID, used to find/remove it later
-               if ( !handler.guid ) {
-                       handler.guid = jQuery.guid++;
-               }
-
-               // Init the element's event structure and main handler, if this is the first
-               events = elemData.events;
-               if ( !events ) {
-                       elemData.events = events = {};
-               }
-               eventHandle = elemData.handle;
-               if ( !eventHandle ) {
-                       elemData.handle = eventHandle = function( e ) {
-                               // Discard the second event of a jQuery.event.trigger() and
-                               // when an event is called after a page has unloaded
-                               return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ?
-                                       jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
-                                       undefined;
-                       };
-                       // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events
-                       eventHandle.elem = elem;
-               }
-
-               // Handle multiple events separated by a space
-               // jQuery(...).bind("mouseover mouseout", fn);
-               types = jQuery.trim( hoverHack(types) ).split( " " );
-               for ( t = 0; t < types.length; t++ ) {
-
-                       tns = rtypenamespace.exec( types[t] ) || [];
-                       type = tns[1];
-                       namespaces = ( tns[2] || "" ).split( "." ).sort();
-
-                       // If event changes its type, use the special event handlers for the changed type
-                       special = jQuery.event.special[ type ] || {};
-
-                       // If selector defined, determine special event api type, otherwise given type
-                       type = ( selector ? special.delegateType : special.bindType ) || type;
-
-                       // Update special based on newly reset type
-                       special = jQuery.event.special[ type ] || {};
-
-                       // handleObj is passed to all event handlers
-                       handleObj = jQuery.extend({
-                               type: type,
-                               origType: tns[1],
-                               data: data,
-                               handler: handler,
-                               guid: handler.guid,
-                               selector: selector,
-                               quick: quickParse( selector ),
-                               namespace: namespaces.join(".")
-                       }, handleObjIn );
-
-                       // Init the event handler queue if we're the first
-                       handlers = events[ type ];
-                       if ( !handlers ) {
-                               handlers = events[ type ] = [];
-                               handlers.delegateCount = 0;
-
-                               // Only use addEventListener/attachEvent if the special events handler returns false
-                               if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
-                                       // Bind the global event handler to the element
-                                       if ( elem.addEventListener ) {
-                                               elem.addEventListener( type, eventHandle, false );
-
-                                       } else if ( elem.attachEvent ) {
-                                               elem.attachEvent( "on" + type, eventHandle );
-                                       }
-                               }
-                       }
-
-                       if ( special.add ) {
-                               special.add.call( elem, handleObj );
-
-                               if ( !handleObj.handler.guid ) {
-                                       handleObj.handler.guid = handler.guid;
-                               }
-                       }
-
-                       // Add to the element's handler list, delegates in front
-                       if ( selector ) {
-                               handlers.splice( handlers.delegateCount++, 0, handleObj );
-                       } else {
-                               handlers.push( handleObj );
-                       }
-
-                       // Keep track of which events have ever been used, for event optimization
-                       jQuery.event.global[ type ] = true;
-               }
-
-               // Nullify elem to prevent memory leaks in IE
-               elem = null;
-       },
-
-       global: {},
-
-       // Detach an event or set of events from an element
-       remove: function( elem, types, handler, selector, mappedTypes ) {
-
-               var elemData = jQuery.hasData( elem ) && jQuery._data( elem ),
-                       t, tns, type, origType, namespaces, origCount,
-                       j, events, special, handle, eventType, handleObj;
-
-               if ( !elemData || !(events = elemData.events) ) {
-                       return;
-               }
-
-               // Once for each type.namespace in types; type may be omitted
-               types = jQuery.trim( hoverHack( types || "" ) ).split(" ");
-               for ( t = 0; t < types.length; t++ ) {
-                       tns = rtypenamespace.exec( types[t] ) || [];
-                       type = origType = tns[1];
-                       namespaces = tns[2];
-
-                       // Unbind all events (on this namespace, if provided) for the element
-                       if ( !type ) {
-                               for ( type in events ) {
-                                       jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
-                               }
-                               continue;
-                       }
-
-                       special = jQuery.event.special[ type ] || {};
-                       type = ( selector? special.delegateType : special.bindType ) || type;
-                       eventType = events[ type ] || [];
-                       origCount = eventType.length;
-                       namespaces = namespaces ? new RegExp("(^|\\.)" + namespaces.split(".").sort().join("\\.(?:.*\\.)?") + "(\\.|$)") : null;
-
-                       // Remove matching events
-                       for ( j = 0; j < eventType.length; j++ ) {
-                               handleObj = eventType[ j ];
-
-                               if ( ( mappedTypes || origType === handleObj.origType ) &&
-                                        ( !handler || handler.guid === handleObj.guid ) &&
-                                        ( !namespaces || namespaces.test( handleObj.namespace ) ) &&
-                                        ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
-                                       eventType.splice( j--, 1 );
-
-                                       if ( handleObj.selector ) {
-                                               eventType.delegateCount--;
-                                       }
-                                       if ( special.remove ) {
-                                               special.remove.call( elem, handleObj );
-                                       }
-                               }
-                       }
-
-                       // Remove generic event handler if we removed something and no more handlers exist
-                       // (avoids potential for endless recursion during removal of special event handlers)
-                       if ( eventType.length === 0 && origCount !== eventType.length ) {
-                               if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {
-                                       jQuery.removeEvent( elem, type, elemData.handle );
-                               }
-
-                               delete events[ type ];
-                       }
-               }
-
-               // Remove the expando if it's no longer used
-               if ( jQuery.isEmptyObject( events ) ) {
-                       handle = elemData.handle;
-                       if ( handle ) {
-                               handle.elem = null;
-                       }
-
-                       // removeData also checks for emptiness and clears the expando if empty
-                       // so use it instead of delete
-                       jQuery.removeData( elem, [ "events", "handle" ], true );
-               }
-       },
-
-       // Events that are safe to short-circuit if no handlers are attached.
-       // Native DOM events should not be added, they may have inline handlers.
-       customEvent: {
-               "getData": true,
-               "setData": true,
-               "changeData": true
-       },
-
-       trigger: function( event, data, elem, onlyHandlers ) {
-               // Don't do events on text and comment nodes
-               if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {
-                       return;
-               }
-
-               // Event object or event type
-               var type = event.type || event,
-                       namespaces = [],
-                       cache, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType;
-
-               // focus/blur morphs to focusin/out; ensure we're not firing them right now
-               if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
-                       return;
-               }
-
-               if ( type.indexOf( "!" ) >= 0 ) {
-                       // Exclusive events trigger only for the exact event (no namespaces)
-                       type = type.slice(0, -1);
-                       exclusive = true;
-               }
-
-               if ( type.indexOf( "." ) >= 0 ) {
-                       // Namespaced trigger; create a regexp to match event type in handle()
-                       namespaces = type.split(".");
-                       type = namespaces.shift();
-                       namespaces.sort();
-               }
-
-               if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) {
-                       // No jQuery handlers for this event type, and it can't have inline handlers
-                       return;
-               }
-
-               // Caller can pass in an Event, Object, or just an event type string
-               event = typeof event === "object" ?
-                       // jQuery.Event object
-                       event[ jQuery.expando ] ? event :
-                       // Object literal
-                       new jQuery.Event( type, event ) :
-                       // Just the event type (string)
-                       new jQuery.Event( type );
-
-               event.type = type;
-               event.isTrigger = true;
-               event.exclusive = exclusive;
-               event.namespace = namespaces.join( "." );
-               event.namespace_re = event.namespace? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)") : null;
-               ontype = type.indexOf( ":" ) < 0 ? "on" + type : "";
-
-               // Handle a global trigger
-               if ( !elem ) {
-
-                       // TODO: Stop taunting the data cache; remove global events and always attach to document
-                       cache = jQuery.cache;
-                       for ( i in cache ) {
-                               if ( cache[ i ].events && cache[ i ].events[ type ] ) {
-                                       jQuery.event.trigger( event, data, cache[ i ].handle.elem, true );
-                               }
-                       }
-                       return;
-               }
-
-               // Clean up the event in case it is being reused
-               event.result = undefined;
-               if ( !event.target ) {
-                       event.target = elem;
-               }
-
-               // Clone any incoming data and prepend the event, creating the handler arg list
-               data = data != null ? jQuery.makeArray( data ) : [];
-               data.unshift( event );
-
-               // Allow special events to draw outside the lines
-               special = jQuery.event.special[ type ] || {};
-               if ( special.trigger && special.trigger.apply( elem, data ) === false ) {
-                       return;
-               }
-
-               // Determine event propagation path in advance, per W3C events spec (#9951)
-               // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
-               eventPath = [[ elem, special.bindType || type ]];
-               if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
-
-                       bubbleType = special.delegateType || type;
-                       cur = rfocusMorph.test( bubbleType + type ) ? elem : elem.parentNode;
-                       old = null;
-                       for ( ; cur; cur = cur.parentNode ) {
-                               eventPath.push([ cur, bubbleType ]);
-                               old = cur;
-                       }
-
-                       // Only add window if we got to document (e.g., not plain obj or detached DOM)
-                       if ( old && old === elem.ownerDocument ) {
-                               eventPath.push([ old.defaultView || old.parentWindow || window, bubbleType ]);
-                       }
-               }
-
-               // Fire handlers on the event path
-               for ( i = 0; i < eventPath.length && !event.isPropagationStopped(); i++ ) {
-
-                       cur = eventPath[i][0];
-                       event.type = eventPath[i][1];
-
-                       handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" );
-                       if ( handle ) {
-                               handle.apply( cur, data );
-                       }
-                       // Note that this is a bare JS function and not a jQuery handler
-                       handle = ontype && cur[ ontype ];
-                       if ( handle && jQuery.acceptData( cur ) && handle.apply( cur, data ) === false ) {
-                               event.preventDefault();
-                       }
-               }
-               event.type = type;
-
-               // If nobody prevented the default action, do it now
-               if ( !onlyHandlers && !event.isDefaultPrevented() ) {
-
-                       if ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) &&
-                               !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) {
-
-                               // Call a native DOM method on the target with the same name name as the event.
-                               // Can't use an .isFunction() check here because IE6/7 fails that test.
-                               // Don't do default actions on window, that's where global variables be (#6170)
-                               // IE<9 dies on focus/blur to hidden element (#1486)
-                               if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {
-
-                                       // Don't re-trigger an onFOO event when we call its FOO() method
-                                       old = elem[ ontype ];
-
-                                       if ( old ) {
-                                               elem[ ontype ] = null;
-                                       }
-
-                                       // Prevent re-triggering of the same event, since we already bubbled it above
-                                       jQuery.event.triggered = type;
-                                       elem[ type ]();
-                                       jQuery.event.triggered = undefined;
-
-                                       if ( old ) {
-                                               elem[ ontype ] = old;
-                                       }
-                               }
-                       }
-               }
-
-               return event.result;
-       },
-
-       dispatch: function( event ) {
-
-               // Make a writable jQuery.Event from the native event object
-               event = jQuery.event.fix( event || window.event );
-
-               var handlers = ( (jQuery._data( this, "events" ) || {} )[ event.type ] || []),
-                       delegateCount = handlers.delegateCount,
-                       args = [].slice.call( arguments, 0 ),
-                       run_all = !event.exclusive && !event.namespace,
-                       handlerQueue = [],
-                       i, j, cur, jqcur, ret, selMatch, matched, matches, handleObj, sel, related;
-
-               // Use the fix-ed jQuery.Event rather than the (read-only) native event
-               args[0] = event;
-               event.delegateTarget = this;
-
-               // Determine handlers that should run if there are delegated events
-               // Avoid disabled elements in IE (#6911) and non-left-click bubbling in Firefox (#3861)
-               if ( delegateCount && !event.target.disabled && !(event.button && event.type === "click") ) {
-
-                       // Pregenerate a single jQuery object for reuse with .is()
-                       jqcur = jQuery(this);
-                       jqcur.context = this.ownerDocument || this;
-
-                       for ( cur = event.target; cur != this; cur = cur.parentNode || this ) {
-                               selMatch = {};
-                               matches = [];
-                               jqcur[0] = cur;
-                               for ( i = 0; i < delegateCount; i++ ) {
-                                       handleObj = handlers[ i ];
-                                       sel = handleObj.selector;
-
-                                       if ( selMatch[ sel ] === undefined ) {
-                                               selMatch[ sel ] = (
-                                                       handleObj.quick ? quickIs( cur, handleObj.quick ) : jqcur.is( sel )
-                                               );
-                                       }
-                                       if ( selMatch[ sel ] ) {
-                                               matches.push( handleObj );
-                                       }
-                               }
-                               if ( matches.length ) {
-                                       handlerQueue.push({ elem: cur, matches: matches });
-                               }
-                       }
-               }
-
-               // Add the remaining (directly-bound) handlers
-               if ( handlers.length > delegateCount ) {
-                       handlerQueue.push({ elem: this, matches: handlers.slice( delegateCount ) });
-               }
-
-               // Run delegates first; they may want to stop propagation beneath us
-               for ( i = 0; i < handlerQueue.length && !event.isPropagationStopped(); i++ ) {
-                       matched = handlerQueue[ i ];
-                       event.currentTarget = matched.elem;
-
-                       for ( j = 0; j < matched.matches.length && !event.isImmediatePropagationStopped(); j++ ) {
-                               handleObj = matched.matches[ j ];
-
-                               // Triggered event must either 1) be non-exclusive and have no namespace, or
-                               // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).
-                               if ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) {
-
-                                       event.data = handleObj.data;
-                                       event.handleObj = handleObj;
-
-                                       ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )
-                                                       .apply( matched.elem, args );
-
-                                       if ( ret !== undefined ) {
-                                               event.result = ret;
-                                               if ( ret === false ) {
-                                                       event.preventDefault();
-                                                       event.stopPropagation();
-                                               }
-                                       }
-                               }
-                       }
-               }
-
-               return event.result;
-       },
-
-       // Includes some event props shared by KeyEvent and MouseEvent
-       // *** attrChange attrName relatedNode srcElement  are not normalized, non-W3C, deprecated, will be removed in 1.8 ***
-       props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
-
-       fixHooks: {},
-
-       keyHooks: {
-               props: "char charCode key keyCode".split(" "),
-               filter: function( event, original ) {
-
-                       // Add which for key events
-                       if ( event.which == null ) {
-                               event.which = original.charCode != null ? original.charCode : original.keyCode;
-                       }
-
-                       return event;
-               }
-       },
-
-       mouseHooks: {
-               props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
-               filter: function( event, original ) {
-                       var eventDoc, doc, body,
-                               button = original.button,
-                               fromElement = original.fromElement;
-
-                       // Calculate pageX/Y if missing and clientX/Y available
-                       if ( event.pageX == null && original.clientX != null ) {
-                               eventDoc = event.target.ownerDocument || document;
-                               doc = eventDoc.documentElement;
-                               body = eventDoc.body;
-
-                               event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
-                               event.pageY = original.clientY + ( doc && doc.scrollTop  || body && body.scrollTop  || 0 ) - ( doc && doc.clientTop  || body && body.clientTop  || 0 );
-                       }
-
-                       // Add relatedTarget, if necessary
-                       if ( !event.relatedTarget && fromElement ) {
-                               event.relatedTarget = fromElement === event.target ? original.toElement : fromElement;
-                       }
-
-                       // Add which for click: 1 === left; 2 === middle; 3 === right
-                       // Note: button is not normalized, so don't use it
-                       if ( !event.which && button !== undefined ) {
-                               event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
-                       }
-
-                       return event;
-               }
-       },
-
-       fix: function( event ) {
-               if ( event[ jQuery.expando ] ) {
-                       return event;
-               }
-
-               // Create a writable copy of the event object and normalize some properties
-               var i, prop,
-                       originalEvent = event,
-                       fixHook = jQuery.event.fixHooks[ event.type ] || {},
-                       copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
-
-               event = jQuery.Event( originalEvent );
-
-               for ( i = copy.length; i; ) {
-                       prop = copy[ --i ];
-                       event[ prop ] = originalEvent[ prop ];
-               }
-
-               // Fix target property, if necessary (#1925, IE 6/7/8 & Safari2)
-               if ( !event.target ) {
-                       event.target = originalEvent.srcElement || document;
-               }
-
-               // Target should not be a text node (#504, Safari)
-               if ( event.target.nodeType === 3 ) {
-                       event.target = event.target.parentNode;
-               }
-
-               // For mouse/key events; add metaKey if it's not there (#3368, IE6/7/8)
-               if ( event.metaKey === undefined ) {
-                       event.metaKey = event.ctrlKey;
-               }
-
-               return fixHook.filter? fixHook.filter( event, originalEvent ) : event;
-       },
-
-       special: {
-               ready: {
-                       // Make sure the ready event is setup
-                       setup: jQuery.bindReady
-               },
-
-               load: {
-                       // Prevent triggered image.load events from bubbling to window.load
-                       noBubble: true
-               },
-
-               focus: {
-                       delegateType: "focusin"
-               },
-               blur: {
-                       delegateType: "focusout"
-               },
-
-               beforeunload: {
-                       setup: function( data, namespaces, eventHandle ) {
-                               // We only want to do this special case on windows
-                               if ( jQuery.isWindow( this ) ) {
-                                       this.onbeforeunload = eventHandle;
-                               }
-                       },
-
-                       teardown: function( namespaces, eventHandle ) {
-                               if ( this.onbeforeunload === eventHandle ) {
-                                       this.onbeforeunload = null;
-                               }
-                       }
-               }
-       },
-
-       simulate: function( type, elem, event, bubble ) {
-               // Piggyback on a donor event to simulate a different one.
-               // Fake originalEvent to avoid donor's stopPropagation, but if the
-               // simulated event prevents default then we do the same on the donor.
-               var e = jQuery.extend(
-                       new jQuery.Event(),
-                       event,
-                       { type: type,
-                               isSimulated: true,
-                               originalEvent: {}
-                       }
-               );
-               if ( bubble ) {
-                       jQuery.event.trigger( e, null, elem );
-               } else {
-                       jQuery.event.dispatch.call( elem, e );
-               }
-               if ( e.isDefaultPrevented() ) {
-                       event.preventDefault();
-               }
-       }
-};
-
-// Some plugins are using, but it's undocumented/deprecated and will be removed.
-// The 1.7 special event interface should provide all the hooks needed now.
-jQuery.event.handle = jQuery.event.dispatch;
-
-jQuery.removeEvent = document.removeEventListener ?
-       function( elem, type, handle ) {
-               if ( elem.removeEventListener ) {
-                       elem.removeEventListener( type, handle, false );
-               }
-       } :
-       function( elem, type, handle ) {
-               if ( elem.detachEvent ) {
-                       elem.detachEvent( "on" + type, handle );
-               }
-       };
-
-jQuery.Event = function( src, props ) {
-       // Allow instantiation without the 'new' keyword
-       if ( !(this instanceof jQuery.Event) ) {
-               return new jQuery.Event( src, props );
-       }
-
-       // Event object
-       if ( src && src.type ) {
-               this.originalEvent = src;
-               this.type = src.type;
-
-               // Events bubbling up the document may have been marked as prevented
-               // by a handler lower down the tree; reflect the correct value.
-               this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false ||
-                       src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;
-
-       // Event type
-       } else {
-               this.type = src;
-       }
-
-       // Put explicitly provided properties onto the event object
-       if ( props ) {
-               jQuery.extend( this, props );
-       }
-
-       // Create a timestamp if incoming event doesn't have one
-       this.timeStamp = src && src.timeStamp || jQuery.now();
-
-       // Mark it as fixed
-       this[ jQuery.expando ] = true;
-};
-
-function returnFalse() {
-       return false;
-}
-function returnTrue() {
-       return true;
-}
-
-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
-// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
-jQuery.Event.prototype = {
-       preventDefault: function() {
-               this.isDefaultPrevented = returnTrue;
-
-               var e = this.originalEvent;
-               if ( !e ) {
-                       return;
-               }
-
-               // if preventDefault exists run it on the original event
-               if ( e.preventDefault ) {
-                       e.preventDefault();
-
-               // otherwise set the returnValue property of the original event to false (IE)
-               } else {
-                       e.returnValue = false;
-               }
-       },
-       stopPropagation: function() {
-               this.isPropagationStopped = returnTrue;
-
-               var e = this.originalEvent;
-               if ( !e ) {
-                       return;
-               }
-               // if stopPropagation exists run it on the original event
-               if ( e.stopPropagation ) {
-                       e.stopPropagation();
-               }
-               // otherwise set the cancelBubble property of the original event to true (IE)
-               e.cancelBubble = true;
-       },
-       stopImmediatePropagation: function() {
-               this.isImmediatePropagationStopped = returnTrue;
-               this.stopPropagation();
-       },
-       isDefaultPrevented: returnFalse,
-       isPropagationStopped: returnFalse,
-       isImmediatePropagationStopped: returnFalse
-};
-
-// Create mouseenter/leave events using mouseover/out and event-time checks
-jQuery.each({
-       mouseenter: "mouseover",
-       mouseleave: "mouseout"
-}, function( orig, fix ) {
-       jQuery.event.special[ orig ] = {
-               delegateType: fix,
-               bindType: fix,
-
-               handle: function( event ) {
-                       var target = this,
-                               related = event.relatedTarget,
-                               handleObj = event.handleObj,
-                               selector = handleObj.selector,
-                               ret;
-
-                       // For mousenter/leave call the handler if related is outside the target.
-                       // NB: No relatedTarget if the mouse left/entered the browser window
-                       if ( !related || (related !== target && !jQuery.contains( target, related )) ) {
-                               event.type = handleObj.origType;
-                               ret = handleObj.handler.apply( this, arguments );
-                               event.type = fix;
-                       }
-                       return ret;
-               }
-       };
-});
-
-// IE submit delegation
-if ( !jQuery.support.submitBubbles ) {
-
-       jQuery.event.special.submit = {
-               setup: function() {
-                       // Only need this for delegated form submit events
-                       if ( jQuery.nodeName( this, "form" ) ) {
-                               return false;
-                       }
-
-                       // Lazy-add a submit handler when a descendant form may potentially be submitted
-                       jQuery.event.add( this, "click._submit keypress._submit", function( e ) {
-                               // Node name check avoids a VML-related crash in IE (#9807)
-                               var elem = e.target,
-                                       form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined;
-                               if ( form && !form._submit_attached ) {
-                                       jQuery.event.add( form, "submit._submit", function( event ) {
-                                               // If form was submitted by the user, bubble the event up the tree
-                                               if ( this.parentNode && !event.isTrigger ) {
-                                                       jQuery.event.simulate( "submit", this.parentNode, event, true );
-                                               }
-                                       });
-                                       form._submit_attached = true;
-                               }
-                       });
-                       // return undefined since we don't need an event listener
-               },
-
-               teardown: function() {
-                       // Only need this for delegated form submit events
-                       if ( jQuery.nodeName( this, "form" ) ) {
-                               return false;
-                       }
-
-                       // Remove delegated handlers; cleanData eventually reaps submit handlers attached above
-                       jQuery.event.remove( this, "._submit" );
-               }
-       };
-}
-
-// IE change delegation and checkbox/radio fix
-if ( !jQuery.support.changeBubbles ) {
-
-       jQuery.event.special.change = {
-
-               setup: function() {
-
-                       if ( rformElems.test( this.nodeName ) ) {
-                               // IE doesn't fire change on a check/radio until blur; trigger it on click
-                               // after a propertychange. Eat the blur-change in special.change.handle.
-                               // This still fires onchange a second time for check/radio after blur.
-                               if ( this.type === "checkbox" || this.type === "radio" ) {
-                                       jQuery.event.add( this, "propertychange._change", function( event ) {
-                                               if ( event.originalEvent.propertyName === "checked" ) {
-                                                       this._just_changed = true;
-                                               }
-                                       });
-                                       jQuery.event.add( this, "click._change", function( event ) {
-                                               if ( this._just_changed && !event.isTrigger ) {
-                                                       this._just_changed = false;
-                                                       jQuery.event.simulate( "change", this, event, true );
-                                               }
-                                       });
-                               }
-                               return false;
-                       }
-                       // Delegated event; lazy-add a change handler on descendant inputs
-                       jQuery.event.add( this, "beforeactivate._change", function( e ) {
-                               var elem = e.target;
-
-                               if ( rformElems.test( elem.nodeName ) && !elem._change_attached ) {
-                                       jQuery.event.add( elem, "change._change", function( event ) {
-                                               if ( this.parentNode && !event.isSimulated && !event.isTrigger ) {
-                                                       jQuery.event.simulate( "change", this.parentNode, event, true );
-                                               }
-                                       });
-                                       elem._change_attached = true;
-                               }
-                       });
-               },
-
-               handle: function( event ) {
-                       var elem = event.target;
-
-                       // Swallow native change events from checkbox/radio, we already triggered them above
-                       if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) {
-                               return event.handleObj.handler.apply( this, arguments );
-                       }
-               },
-
-               teardown: function() {
-                       jQuery.event.remove( this, "._change" );
-
-                       return rformElems.test( this.nodeName );
-               }
-       };
-}
-
-// Create "bubbling" focus and blur events
-if ( !jQuery.support.focusinBubbles ) {
-       jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
-
-               // Attach a single capturing handler while someone wants focusin/focusout
-               var attaches = 0,
-                       handler = function( event ) {
-                               jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
-                       };
-
-               jQuery.event.special[ fix ] = {
-                       setup: function() {
-                               if ( attaches++ === 0 ) {
-                                       document.addEventListener( orig, handler, true );
-                               }
-                       },
-                       teardown: function() {
-                               if ( --attaches === 0 ) {
-                                       document.removeEventListener( orig, handler, true );
-                               }
-                       }
-               };
-       });
-}
-
-jQuery.fn.extend({
-
-       on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
-               var origFn, type;
-
-               // Types can be a map of types/handlers
-               if ( typeof types === "object" ) {
-                       // ( types-Object, selector, data )
-                       if ( typeof selector !== "string" ) {
-                               // ( types-Object, data )
-                               data = selector;
-                               selector = undefined;
-                       }
-                       for ( type in types ) {
-                               this.on( type, selector, data, types[ type ], one );
-                       }
-                       return this;
-               }
-
-               if ( data == null && fn == null ) {
-                       // ( types, fn )
-                       fn = selector;
-                       data = selector = undefined;
-               } else if ( fn == null ) {
-                       if ( typeof selector === "string" ) {
-                               // ( types, selector, fn )
-                               fn = data;
-                               data = undefined;
-                       } else {
-                               // ( types, data, fn )
-                               fn = data;
-                               data = selector;
-                               selector = undefined;
-                       }
-               }
-               if ( fn === false ) {
-                       fn = returnFalse;
-               } else if ( !fn ) {
-                       return this;
-               }
-
-               if ( one === 1 ) {
-                       origFn = fn;
-                       fn = function( event ) {
-                               // Can use an empty set, since event contains the info
-                               jQuery().off( event );
-                               return origFn.apply( this, arguments );
-                       };
-                       // Use same guid so caller can remove using origFn
-                       fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
-               }
-               return this.each( function() {
-                       jQuery.event.add( this, types, fn, data, selector );
-               });
-       },
-       one: function( types, selector, data, fn ) {
-               return this.on.call( this, types, selector, data, fn, 1 );
-       },
-       off: function( types, selector, fn ) {
-               if ( types && types.preventDefault && types.handleObj ) {
-                       // ( event )  dispatched jQuery.Event
-                       var handleObj = types.handleObj;
-                       jQuery( types.delegateTarget ).off(
-                               handleObj.namespace? handleObj.type + "." + handleObj.namespace : handleObj.type,
-                               handleObj.selector,
-                               handleObj.handler
-                       );
-                       return this;
-               }
-               if ( typeof types === "object" ) {
-                       // ( types-object [, selector] )
-                       for ( var type in types ) {
-                               this.off( type, selector, types[ type ] );
-                       }
-                       return this;
-               }
-               if ( selector === false || typeof selector === "function" ) {
-                       // ( types [, fn] )
-                       fn = selector;
-                       selector = undefined;
-               }
-               if ( fn === false ) {
-                       fn = returnFalse;
-               }
-               return this.each(function() {
-                       jQuery.event.remove( this, types, fn, selector );
-               });
-       },
-
-       bind: function( types, data, fn ) {
-               return this.on( types, null, data, fn );
-       },
-       unbind: function( types, fn ) {
-               return this.off( types, null, fn );
-       },
-
-       live: function( types, data, fn ) {
-               jQuery( this.context ).on( types, this.selector, data, fn );
-               return this;
-       },
-       die: function( types, fn ) {
-               jQuery( this.context ).off( types, this.selector || "**", fn );
-               return this;
-       },
-
-       delegate: function( selector, types, data, fn ) {
-               return this.on( types, selector, data, fn );
-       },
-       undelegate: function( selector, types, fn ) {
-               // ( namespace ) or ( selector, types [, fn] )
-               return arguments.length == 1? this.off( selector, "**" ) : this.off( types, selector, fn );
-       },
-
-       trigger: function( type, data ) {
-               return this.each(function() {
-                       jQuery.event.trigger( type, data, this );
-               });
-       },
-       triggerHandler: function( type, data ) {
-               if ( this[0] ) {
-                       return jQuery.event.trigger( type, data, this[0], true );
-               }
-       },
-
-       toggle: function( fn ) {
-               // Save reference to arguments for access in closure
-               var args = arguments,
-                       guid = fn.guid || jQuery.guid++,
-                       i = 0,
-                       toggler = function( event ) {
-                               // Figure out which function to execute
-                               var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i;
-                               jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 );
-
-                               // Make sure that clicks stop
-                               event.preventDefault();
-
-                               // and execute the function
-                               return args[ lastToggle ].apply( this, arguments ) || false;
-                       };
-
-               // link all the functions, so any of them can unbind this click handler
-               toggler.guid = guid;
-               while ( i < args.length ) {
-                       args[ i++ ].guid = guid;
-               }
-
-               return this.click( toggler );
-       },
-
-       hover: function( fnOver, fnOut ) {
-               return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
-       }
-});
-
-jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
-       "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
-       "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {
-
-       // Handle event binding
-       jQuery.fn[ name ] = function( data, fn ) {
-               if ( fn == null ) {
-                       fn = data;
-                       data = null;
-               }
-
-               return arguments.length > 0 ?
-                       this.on( name, null, data, fn ) :
-                       this.trigger( name );
-       };
-
-       if ( jQuery.attrFn ) {
-               jQuery.attrFn[ name ] = true;
-       }
-
-       if ( rkeyEvent.test( name ) ) {
-               jQuery.event.fixHooks[ name ] = jQuery.event.keyHooks;
-       }
-
-       if ( rmouseEvent.test( name ) ) {
-               jQuery.event.fixHooks[ name ] = jQuery.event.mouseHooks;
-       }
-});
-
-
-
-/*!
- * Sizzle CSS Selector Engine
- *  Copyright 2011, The Dojo Foundation
- *  Released under the MIT, BSD, and GPL Licenses.
- *  More information: http://sizzlejs.com/
- */
-(function(){
-
-var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
-       expando = "sizcache" + (Math.random() + '').replace('.', ''),
-       done = 0,
-       toString = Object.prototype.toString,
-       hasDuplicate = false,
-       baseHasDuplicate = true,
-       rBackslash = /\\/g,
-       rReturn = /\r\n/g,
-       rNonWord = /\W/;
-
-// Here we check if the JavaScript engine is using some sort of
-// optimization where it does not always call our comparision
-// function. If that is the case, discard the hasDuplicate value.
-//   Thus far that includes Google Chrome.
-[0, 0].sort(function() {
-       baseHasDuplicate = false;
-       return 0;
-});
-
-var Sizzle = function( selector, context, results, seed ) {
-       results = results || [];
-       context = context || document;
-
-       var origContext = context;
-
-       if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
-               return [];
-       }
-       
-       if ( !selector || typeof selector !== "string" ) {
-               return results;
-       }
-
-       var m, set, checkSet, extra, ret, cur, pop, i,
-               prune = true,
-               contextXML = Sizzle.isXML( context ),
-               parts = [],
-               soFar = selector;
-       
-       // Reset the position of the chunker regexp (start from head)
-       do {
-               chunker.exec( "" );
-               m = chunker.exec( soFar );
-
-               if ( m ) {
-                       soFar = m[3];
-               
-                       parts.push( m[1] );
-               
-                       if ( m[2] ) {
-                               extra = m[3];
-                               break;
-                       }
-               }
-       } while ( m );
-
-       if ( parts.length > 1 && origPOS.exec( selector ) ) {
-
-               if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
-                       set = posProcess( parts[0] + parts[1], context, seed );
-
-               } else {
-                       set = Expr.relative[ parts[0] ] ?
-                               [ context ] :
-                               Sizzle( parts.shift(), context );
-
-                       while ( parts.length ) {
-                               selector = parts.shift();
-
-                               if ( Expr.relative[ selector ] ) {
-                                       selector += parts.shift();
-                               }
-                               
-                               set = posProcess( selector, set, seed );
-                       }
-               }
-
-       } else {
-               // Take a shortcut and set the context if the root selector is an ID
-               // (but not if it'll be faster if the inner selector is an ID)
-               if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
-                               Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
-
-                       ret = Sizzle.find( parts.shift(), context, contextXML );
-                       context = ret.expr ?
-                               Sizzle.filter( ret.expr, ret.set )[0] :
-                               ret.set[0];
-               }
-
-               if ( context ) {
-                       ret = seed ?
-                               { expr: parts.pop(), set: makeArray(seed) } :
-                               Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );
-
-                       set = ret.expr ?
-                               Sizzle.filter( ret.expr, ret.set ) :
-                               ret.set;
-
-                       if ( parts.length > 0 ) {
-                               checkSet = makeArray( set );
-
-                       } else {
-                               prune = false;
-                       }
-
-                       while ( parts.length ) {
-                               cur = parts.pop();
-                               pop = cur;
-
-                               if ( !Expr.relative[ cur ] ) {
-                                       cur = "";
-                               } else {
-                                       pop = parts.pop();
-                               }
-
-                               if ( pop == null ) {
-                                       pop = context;
-                               }
-
-                               Expr.relative[ cur ]( checkSet, pop, contextXML );
-                       }
-
-               } else {
-                       checkSet = parts = [];
-               }
-       }
-
-       if ( !checkSet ) {
-               checkSet = set;
-       }
-
-       if ( !checkSet ) {
-               Sizzle.error( cur || selector );
-       }
-
-       if ( toString.call(checkSet) === "[object Array]" ) {
-               if ( !prune ) {
-                       results.push.apply( results, checkSet );
-
-               } else if ( context && context.nodeType === 1 ) {
-                       for ( i = 0; checkSet[i] != null; i++ ) {
-                               if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {
-                                       results.push( set[i] );
-                               }
-                       }
-
-               } else {
-                       for ( i = 0; checkSet[i] != null; i++ ) {
-                               if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
-                                       results.push( set[i] );
-                               }
-                       }
-               }
-
-       } else {
-               makeArray( checkSet, results );
-       }
-
-       if ( extra ) {
-               Sizzle( extra, origContext, results, seed );
-               Sizzle.uniqueSort( results );
-       }
-
-       return results;
-};
-
-Sizzle.uniqueSort = function( results ) {
-       if ( sortOrder ) {
-               hasDuplicate = baseHasDuplicate;
-               results.sort( sortOrder );
-
-               if ( hasDuplicate ) {
-                       for ( var i = 1; i < results.length; i++ ) {
-                               if ( results[i] === results[ i - 1 ] ) {
-                                       results.splice( i--, 1 );
-                               }
-                       }
-               }
-       }
-
-       return results;
-};
-
-Sizzle.matches = function( expr, set ) {
-       return Sizzle( expr, null, null, set );
-};
-
-Sizzle.matchesSelector = function( node, expr ) {
-       return Sizzle( expr, null, null, [node] ).length > 0;
-};
-
-Sizzle.find = function( expr, context, isXML ) {
-       var set, i, len, match, type, left;
-
-       if ( !expr ) {
-               return [];
-       }
-
-       for ( i = 0, len = Expr.order.length; i < len; i++ ) {
-               type = Expr.order[i];
-               
-               if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
-                       left = match[1];
-                       match.splice( 1, 1 );
-
-                       if ( left.substr( left.length - 1 ) !== "\\" ) {
-                               match[1] = (match[1] || "").replace( rBackslash, "" );
-                               set = Expr.find[ type ]( match, context, isXML );
-
-                               if ( set != null ) {
-                                       expr = expr.replace( Expr.match[ type ], "" );
-                                       break;
-                               }
-                       }
-               }
-       }
-
-       if ( !set ) {
-               set = typeof context.getElementsByTagName !== "undefined" ?
-                       context.getElementsByTagName( "*" ) :
-                       [];
-       }
-
-       return { set: set, expr: expr };
-};
-
-Sizzle.filter = function( expr, set, inplace, not ) {
-       var match, anyFound,
-               type, found, item, filter, left,
-               i, pass,
-               old = expr,
-               result = [],
-               curLoop = set,
-               isXMLFilter = set && set[0] && Sizzle.isXML( set[0] );
-
-       while ( expr && set.length ) {
-               for ( type in Expr.filter ) {
-                       if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
-                               filter = Expr.filter[ type ];
-                               left = match[1];
-
-                               anyFound = false;
-
-                               match.splice(1,1);
-
-                               if ( left.substr( left.length - 1 ) === "\\" ) {
-                                       continue;
-                               }
-
-                               if ( curLoop === result ) {
-                                       result = [];
-                               }
-
-                               if ( Expr.preFilter[ type ] ) {
-                                       match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
-
-                                       if ( !match ) {
-                                               anyFound = found = true;
-
-                                       } else if ( match === true ) {
-                                               continue;
-                                       }
-                               }
-
-                               if ( match ) {
-                                       for ( i = 0; (item = curLoop[i]) != null; i++ ) {
-                                               if ( item ) {
-                                                       found = filter( item, match, i, curLoop );
-                                                       pass = not ^ found;
-
-                                                       if ( inplace && found != null ) {
-                                                               if ( pass ) {
-                                                                       anyFound = true;
-
-                                                               } else {
-                                                                       curLoop[i] = false;
-                                                               }
-
-                                                       } else if ( pass ) {
-                                                               result.push( item );
-                                                               anyFound = true;
-                                                       }
-                                               }
-                                       }
-                               }
-
-                               if ( found !== undefined ) {
-                                       if ( !inplace ) {
-                                               curLoop = result;
-                                       }
-
-                                       expr = expr.replace( Expr.match[ type ], "" );
-
-                                       if ( !anyFound ) {
-                                               return [];
-                                       }
-
-                                       break;
-                               }
-                       }
-               }
-
-               // Improper expression
-               if ( expr === old ) {
-                       if ( anyFound == null ) {
-                               Sizzle.error( expr );
-
-                       } else {
-                               break;
-                       }
-               }
-
-               old = expr;
-       }
-
-       return curLoop;
-};
-
-Sizzle.error = function( msg ) {
-       throw new Error( "Syntax error, unrecognized expression: " + msg );
-};
-
-/**
- * Utility function for retreiving the text value of an array of DOM nodes
- * @param {Array|Element} elem
- */
-var getText = Sizzle.getText = function( elem ) {
-    var i, node,
-               nodeType = elem.nodeType,
-               ret = "";
-
-       if ( nodeType ) {
-               if ( nodeType === 1 || nodeType === 9 ) {
-                       // Use textContent || innerText for elements
-                       if ( typeof elem.textContent === 'string' ) {
-                               return elem.textContent;
-                       } else if ( typeof elem.innerText === 'string' ) {
-                               // Replace IE's carriage returns
-                               return elem.innerText.replace( rReturn, '' );
-                       } else {
-                               // Traverse it's children
-                               for ( elem = elem.firstChild; elem; elem = elem.nextSibling) {
-                                       ret += getText( elem );
-                               }
-                       }
-               } else if ( nodeType === 3 || nodeType === 4 ) {
-                       return elem.nodeValue;
-               }
-       } else {
-
-               // If no nodeType, this is expected to be an array
-               for ( i = 0; (node = elem[i]); i++ ) {
-                       // Do not traverse comment nodes
-                       if ( node.nodeType !== 8 ) {
-                               ret += getText( node );
-                       }
-               }
-       }
-       return ret;
-};
-
-var Expr = Sizzle.selectors = {
-       order: [ "ID", "NAME", "TAG" ],
-
-       match: {
-               ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
-               CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
-               NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
-               ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
-               TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,
-               CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,
-               POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,
-               PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
-       },
-
-       leftMatch: {},
-
-       attrMap: {
-               "class": "className",
-               "for": "htmlFor"
-       },
-
-       attrHandle: {
-               href: function( elem ) {
-                       return elem.getAttribute( "href" );
-               },
-               type: function( elem ) {
-                       return elem.getAttribute( "type" );
-               }
-       },
-
-       relative: {
-               "+": function(checkSet, part){
-                       var isPartStr = typeof part === "string",
-                               isTag = isPartStr && !rNonWord.test( part ),
-                               isPartStrNotTag = isPartStr && !isTag;
-
-                       if ( isTag ) {
-                               part = part.toLowerCase();
-                       }
-
-                       for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
-                               if ( (elem = checkSet[i]) ) {
-                                       while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
-
-                                       checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?
-                                               elem || false :
-                                               elem === part;
-                               }
-                       }
-
-                       if ( isPartStrNotTag ) {
-                               Sizzle.filter( part, checkSet, true );
-                       }
-               },
-
-               ">": function( checkSet, part ) {
-                       var elem,
-                               isPartStr = typeof part === "string",
-                               i = 0,
-                               l = checkSet.length;
-
-                       if ( isPartStr && !rNonWord.test( part ) ) {
-                               part = part.toLowerCase();
-
-                               for ( ; i < l; i++ ) {
-                                       elem = checkSet[i];
-
-                                       if ( elem ) {
-                                               var parent = elem.parentNode;
-                                               checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
-                                       }
-                               }
-
-                       } else {
-                               for ( ; i < l; i++ ) {
-                                       elem = checkSet[i];
-
-                                       if ( elem ) {
-                                               checkSet[i] = isPartStr ?
-                                                       elem.parentNode :
-                                                       elem.parentNode === part;
-                                       }
-                               }
-
-                               if ( isPartStr ) {
-                                       Sizzle.filter( part, checkSet, true );
-                               }
-                       }
-               },
-
-               "": function(checkSet, part, isXML){
-                       var nodeCheck,
-                               doneName = done++,
-                               checkFn = dirCheck;
-
-                       if ( typeof part === "string" && !rNonWord.test( part ) ) {
-                               part = part.toLowerCase();
-                               nodeCheck = part;
-                               checkFn = dirNodeCheck;
-                       }
-
-                       checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML );
-               },
-
-               "~": function( checkSet, part, isXML ) {
-                       var nodeCheck,
-                               doneName = done++,
-                               checkFn = dirCheck;
-
-                       if ( typeof part === "string" && !rNonWord.test( part ) ) {
-                               part = part.toLowerCase();
-                               nodeCheck = part;
-                               checkFn = dirNodeCheck;
-                       }
-
-                       checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML );
-               }
-       },
-
-       find: {
-               ID: function( match, context, isXML ) {
-                       if ( typeof context.getElementById !== "undefined" && !isXML ) {
-                               var m = context.getElementById(match[1]);
-                               // Check parentNode to catch when Blackberry 4.6 returns
-                               // nodes that are no longer in the document #6963
-                               return m && m.parentNode ? [m] : [];
-                       }
-               },
-
-               NAME: function( match, context ) {
-                       if ( typeof context.getElementsByName !== "undefined" ) {
-                               var ret = [],
-                                       results = context.getElementsByName( match[1] );
-
-                               for ( var i = 0, l = results.length; i < l; i++ ) {
-                                       if ( results[i].getAttribute("name") === match[1] ) {
-                                               ret.push( results[i] );
-                                       }
-                               }
-
-                               return ret.length === 0 ? null : ret;
-                       }
-               },
-
-               TAG: function( match, context ) {
-                       if ( typeof context.getElementsByTagName !== "undefined" ) {
-                               return context.getElementsByTagName( match[1] );
-                       }
-               }
-       },
-       preFilter: {
-               CLASS: function( match, curLoop, inplace, result, not, isXML ) {
-                       match = " " + match[1].replace( rBackslash, "" ) + " ";
-
-                       if ( isXML ) {
-                               return match;
-                       }
-
-                       for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
-                               if ( elem ) {
-                                       if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) {
-                                               if ( !inplace ) {
-                                                       result.push( elem );
-                                               }
-
-                                       } else if ( inplace ) {
-                                               curLoop[i] = false;
-                                       }
-                               }
-                       }
-
-                       return false;
-               },
-
-               ID: function( match ) {
-                       return match[1].replace( rBackslash, "" );
-               },
-
-               TAG: function( match, curLoop ) {
-                       return match[1].replace( rBackslash, "" ).toLowerCase();
-               },
-
-               CHILD: function( match ) {
-                       if ( match[1] === "nth" ) {
-                               if ( !match[2] ) {
-                                       Sizzle.error( match[0] );
-                               }
-
-                               match[2] = match[2].replace(/^\+|\s*/g, '');
-
-                               // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
-                               var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec(
-                                       match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
-                                       !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
-
-                               // calculate the numbers (first)n+(last) including if they are negative
-                               match[2] = (test[1] + (test[2] || 1)) - 0;
-                               match[3] = test[3] - 0;
-                       }
-                       else if ( match[2] ) {
-                               Sizzle.error( match[0] );
-                       }
-
-                       // TODO: Move to normal caching system
-                       match[0] = done++;
-
-                       return match;
-               },
-
-               ATTR: function( match, curLoop, inplace, result, not, isXML ) {
-                       var name = match[1] = match[1].replace( rBackslash, "" );
-                       
-                       if ( !isXML && Expr.attrMap[name] ) {
-                               match[1] = Expr.attrMap[name];
-                       }
-
-                       // Handle if an un-quoted value was used
-                       match[4] = ( match[4] || match[5] || "" ).replace( rBackslash, "" );
-
-                       if ( match[2] === "~=" ) {
-                               match[4] = " " + match[4] + " ";
-                       }
-
-                       return match;
-               },
-
-               PSEUDO: function( match, curLoop, inplace, result, not ) {
-                       if ( match[1] === "not" ) {
-                               // If we're dealing with a complex expression, or a simple one
-                               if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
-                                       match[3] = Sizzle(match[3], null, null, curLoop);
-
-                               } else {
-                                       var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
-
-                                       if ( !inplace ) {
-                                               result.push.apply( result, ret );
-                                       }
-
-                                       return false;
-                               }
-
-                       } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
-                               return true;
-                       }
-                       
-                       return match;
-               },
-
-               POS: function( match ) {
-                       match.unshift( true );
-
-                       return match;
-               }
-       },
-       
-       filters: {
-               enabled: function( elem ) {
-                       return elem.disabled === false && elem.type !== "hidden";
-               },
-
-               disabled: function( elem ) {
-                       return elem.disabled === true;
-               },
-
-               checked: function( elem ) {
-                       return elem.checked === true;
-               },
-               
-               selected: function( elem ) {
-                       // Accessing this property makes selected-by-default
-                       // options in Safari work properly
-                       if ( elem.parentNode ) {
-                               elem.parentNode.selectedIndex;
-                       }
-                       
-                       return elem.selected === true;
-               },
-
-               parent: function( elem ) {
-                       return !!elem.firstChild;
-               },
-
-               empty: function( elem ) {
-                       return !elem.firstChild;
-               },
-
-               has: function( elem, i, match ) {
-                       return !!Sizzle( match[3], elem ).length;
-               },
-
-               header: function( elem ) {
-                       return (/h\d/i).test( elem.nodeName );
-               },
-
-               text: function( elem ) {
-                       var attr = elem.getAttribute( "type" ), type = elem.type;
-                       // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) 
-                       // use getAttribute instead to test this case
-                       return elem.nodeName.toLowerCase() === "input" && "text" === type && ( attr === type || attr === null );
-               },
-
-               radio: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "radio" === elem.type;
-               },
-
-               checkbox: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "checkbox" === elem.type;
-               },
-
-               file: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "file" === elem.type;
-               },
-
-               password: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "password" === elem.type;
-               },
-
-               submit: function( elem ) {
-                       var name = elem.nodeName.toLowerCase();
-                       return (name === "input" || name === "button") && "submit" === elem.type;
-               },
-
-               image: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "image" === elem.type;
-               },
-
-               reset: function( elem ) {
-                       var name = elem.nodeName.toLowerCase();
-                       return (name === "input" || name === "button") && "reset" === elem.type;
-               },
-
-               button: function( elem ) {
-                       var name = elem.nodeName.toLowerCase();
-                       return name === "input" && "button" === elem.type || name === "button";
-               },
-
-               input: function( elem ) {
-                       return (/input|select|textarea|button/i).test( elem.nodeName );
-               },
-
-               focus: function( elem ) {
-                       return elem === elem.ownerDocument.activeElement;
-               }
-       },
-       setFilters: {
-               first: function( elem, i ) {
-                       return i === 0;
-               },
-
-               last: function( elem, i, match, array ) {
-                       return i === array.length - 1;
-               },
-
-               even: function( elem, i ) {
-                       return i % 2 === 0;
-               },
-
-               odd: function( elem, i ) {
-                       return i % 2 === 1;
-               },
-
-               lt: function( elem, i, match ) {
-                       return i < match[3] - 0;
-               },
-
-               gt: function( elem, i, match ) {
-                       return i > match[3] - 0;
-               },
-
-               nth: function( elem, i, match ) {
-                       return match[3] - 0 === i;
-               },
-
-               eq: function( elem, i, match ) {
-                       return match[3] - 0 === i;
-               }
-       },
-       filter: {
-               PSEUDO: function( elem, match, i, array ) {
-                       var name = match[1],
-                               filter = Expr.filters[ name ];
-
-                       if ( filter ) {
-                               return filter( elem, i, match, array );
-
-                       } else if ( name === "contains" ) {
-                               return (elem.textContent || elem.innerText || getText([ elem ]) || "").indexOf(match[3]) >= 0;
-
-                       } else if ( name === "not" ) {
-                               var not = match[3];
-
-                               for ( var j = 0, l = not.length; j < l; j++ ) {
-                                       if ( not[j] === elem ) {
-                                               return false;
-                                       }
-                               }
-
-                               return true;
-
-                       } else {
-                               Sizzle.error( name );
-                       }
-               },
-
-               CHILD: function( elem, match ) {
-                       var first, last,
-                               doneName, parent, cache,
-                               count, diff,
-                               type = match[1],
-                               node = elem;
-
-                       switch ( type ) {
-                               case "only":
-                               case "first":
-                                       while ( (node = node.previousSibling) )  {
-                                               if ( node.nodeType === 1 ) { 
-                                                       return false; 
-                                               }
-                                       }
-
-                                       if ( type === "first" ) { 
-                                               return true; 
-                                       }
-
-                                       node = elem;
-
-                               case "last":
-                                       while ( (node = node.nextSibling) )      {
-                                               if ( node.nodeType === 1 ) { 
-                                                       return false; 
-                                               }
-                                       }
-
-                                       return true;
-
-                               case "nth":
-                                       first = match[2];
-                                       last = match[3];
-
-                                       if ( first === 1 && last === 0 ) {
-                                               return true;
-                                       }
-                                       
-                                       doneName = match[0];
-                                       parent = elem.parentNode;
-       
-                                       if ( parent && (parent[ expando ] !== doneName || !elem.nodeIndex) ) {
-                                               count = 0;
-                                               
-                                               for ( node = parent.firstChild; node; node = node.nextSibling ) {
-                                                       if ( node.nodeType === 1 ) {
-                                                               node.nodeIndex = ++count;
-                                                       }
-                                               } 
-
-                                               parent[ expando ] = doneName;
-                                       }
-                                       
-                                       diff = elem.nodeIndex - last;
-
-                                       if ( first === 0 ) {
-                                               return diff === 0;
-
-                                       } else {
-                                               return ( diff % first === 0 && diff / first >= 0 );
-                                       }
-                       }
-               },
-
-               ID: function( elem, match ) {
-                       return elem.nodeType === 1 && elem.getAttribute("id") === match;
-               },
-
-               TAG: function( elem, match ) {
-                       return (match === "*" && elem.nodeType === 1) || !!elem.nodeName && elem.nodeName.toLowerCase() === match;
-               },
-               
-               CLASS: function( elem, match ) {
-                       return (" " + (elem.className || elem.getAttribute("class")) + " ")
-                               .indexOf( match ) > -1;
-               },
-
-               ATTR: function( elem, match ) {
-                       var name = match[1],
-                               result = Sizzle.attr ?
-                                       Sizzle.attr( elem, name ) :
-                                       Expr.attrHandle[ name ] ?
-                                       Expr.attrHandle[ name ]( elem ) :
-                                       elem[ name ] != null ?
-                                               elem[ name ] :
-                                               elem.getAttribute( name ),
-                               value = result + "",
-                               type = match[2],
-                               check = match[4];
-
-                       return result == null ?
-                               type === "!=" :
-                               !type && Sizzle.attr ?
-                               result != null :
-                               type === "=" ?
-                               value === check :
-                               type === "*=" ?
-                               value.indexOf(check) >= 0 :
-                               type === "~=" ?
-                               (" " + value + " ").indexOf(check) >= 0 :
-                               !check ?
-                               value && result !== false :
-                               type === "!=" ?
-                               value !== check :
-                               type === "^=" ?
-                               value.indexOf(check) === 0 :
-                               type === "$=" ?
-                               value.substr(value.length - check.length) === check :
-                               type === "|=" ?
-                               value === check || value.substr(0, check.length + 1) === check + "-" :
-                               false;
-               },
-
-               POS: function( elem, match, i, array ) {
-                       var name = match[2],
-                               filter = Expr.setFilters[ name ];
-
-                       if ( filter ) {
-                               return filter( elem, i, match, array );
-                       }
-               }
-       }
-};
-
-var origPOS = Expr.match.POS,
-       fescape = function(all, num){
-               return "\\" + (num - 0 + 1);
-       };
-
-for ( var type in Expr.match ) {
-       Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) );
-       Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) );
-}
-
-var makeArray = function( array, results ) {
-       array = Array.prototype.slice.call( array, 0 );
-
-       if ( results ) {
-               results.push.apply( results, array );
-               return results;
-       }
-       
-       return array;
-};
-
-// Perform a simple check to determine if the browser is capable of
-// converting a NodeList to an array using builtin methods.
-// Also verifies that the returned array holds DOM nodes
-// (which is not the case in the Blackberry browser)
-try {
-       Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;
-
-// Provide a fallback method if it does not work
-} catch( e ) {
-       makeArray = function( array, results ) {
-               var i = 0,
-                       ret = results || [];
-
-               if ( toString.call(array) === "[object Array]" ) {
-                       Array.prototype.push.apply( ret, array );
-
-               } else {
-                       if ( typeof array.length === "number" ) {
-                               for ( var l = array.length; i < l; i++ ) {
-                                       ret.push( array[i] );
-                               }
-
-                       } else {
-                               for ( ; array[i]; i++ ) {
-                                       ret.push( array[i] );
-                               }
-                       }
-               }
-
-               return ret;
-       };
-}
-
-var sortOrder, siblingCheck;
-
-if ( document.documentElement.compareDocumentPosition ) {
-       sortOrder = function( a, b ) {
-               if ( a === b ) {
-                       hasDuplicate = true;
-                       return 0;
-               }
-
-               if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
-                       return a.compareDocumentPosition ? -1 : 1;
-               }
-
-               return a.compareDocumentPosition(b) & 4 ? -1 : 1;
-       };
-
-} else {
-       sortOrder = function( a, b ) {
-               // The nodes are identical, we can exit early
-               if ( a === b ) {
-                       hasDuplicate = true;
-                       return 0;
-
-               // Fallback to using sourceIndex (in IE) if it's available on both nodes
-               } else if ( a.sourceIndex && b.sourceIndex ) {
-                       return a.sourceIndex - b.sourceIndex;
-               }
-
-               var al, bl,
-                       ap = [],
-                       bp = [],
-                       aup = a.parentNode,
-                       bup = b.parentNode,
-                       cur = aup;
-
-               // If the nodes are siblings (or identical) we can do a quick check
-               if ( aup === bup ) {
-                       return siblingCheck( a, b );
-
-               // If no parents were found then the nodes are disconnected
-               } else if ( !aup ) {
-                       return -1;
-
-               } else if ( !bup ) {
-                       return 1;
-               }
-
-               // Otherwise they're somewhere else in the tree so we need
-               // to build up a full list of the parentNodes for comparison
-               while ( cur ) {
-                       ap.unshift( cur );
-                       cur = cur.parentNode;
-               }
-
-               cur = bup;
-
-               while ( cur ) {
-                       bp.unshift( cur );
-                       cur = cur.parentNode;
-               }
-
-               al = ap.length;
-               bl = bp.length;
-
-               // Start walking down the tree looking for a discrepancy
-               for ( var i = 0; i < al && i < bl; i++ ) {
-                       if ( ap[i] !== bp[i] ) {
-                               return siblingCheck( ap[i], bp[i] );
-                       }
-               }
-
-               // We ended someplace up the tree so do a sibling check
-               return i === al ?
-                       siblingCheck( a, bp[i], -1 ) :
-                       siblingCheck( ap[i], b, 1 );
-       };
-
-       siblingCheck = function( a, b, ret ) {
-               if ( a === b ) {
-                       return ret;
-               }
-
-               var cur = a.nextSibling;
-
-               while ( cur ) {
-                       if ( cur === b ) {
-                               return -1;
-                       }
-
-                       cur = cur.nextSibling;
-               }
-
-               return 1;
-       };
-}
-
-// Check to see if the browser returns elements by name when
-// querying by getElementById (and provide a workaround)
-(function(){
-       // We're going to inject a fake input element with a specified name
-       var form = document.createElement("div"),
-               id = "script" + (new Date()).getTime(),
-               root = document.documentElement;
-
-       form.innerHTML = "<a name='" + id + "'/>";
-
-       // Inject it into the root element, check its status, and remove it quickly
-       root.insertBefore( form, root.firstChild );
-
-       // The workaround has to do additional checks after a getElementById
-       // Which slows things down for other browsers (hence the branching)
-       if ( document.getElementById( id ) ) {
-               Expr.find.ID = function( match, context, isXML ) {
-                       if ( typeof context.getElementById !== "undefined" && !isXML ) {
-                               var m = context.getElementById(match[1]);
-
-                               return m ?
-                                       m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ?
-                                               [m] :
-                                               undefined :
-                                       [];
-                       }
-               };
-
-               Expr.filter.ID = function( elem, match ) {
-                       var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
-
-                       return elem.nodeType === 1 && node && node.nodeValue === match;
-               };
-       }
-
-       root.removeChild( form );
-
-       // release memory in IE
-       root = form = null;
-})();
-
-(function(){
-       // Check to see if the browser returns only elements
-       // when doing getElementsByTagName("*")
-
-       // Create a fake element
-       var div = document.createElement("div");
-       div.appendChild( document.createComment("") );
-
-       // Make sure no comments are found
-       if ( div.getElementsByTagName("*").length > 0 ) {
-               Expr.find.TAG = function( match, context ) {
-                       var results = context.getElementsByTagName( match[1] );
-
-                       // Filter out possible comments
-                       if ( match[1] === "*" ) {
-                               var tmp = [];
-
-                               for ( var i = 0; results[i]; i++ ) {
-                                       if ( results[i].nodeType === 1 ) {
-                                               tmp.push( results[i] );
-                                       }
-                               }
-
-                               results = tmp;
-                       }
-
-                       return results;
-               };
-       }
-
-       // Check to see if an attribute returns normalized href attributes
-       div.innerHTML = "<a href='#'></a>";
-
-       if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
-                       div.firstChild.getAttribute("href") !== "#" ) {
-
-               Expr.attrHandle.href = function( elem ) {
-                       return elem.getAttribute( "href", 2 );
-               };
-       }
-
-       // release memory in IE
-       div = null;
-})();
-
-if ( document.querySelectorAll ) {
-       (function(){
-               var oldSizzle = Sizzle,
-                       div = document.createElement("div"),
-                       id = "__sizzle__";
-
-               div.innerHTML = "<p class='TEST'></p>";
-
-               // Safari can't handle uppercase or unicode characters when
-               // in quirks mode.
-               if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
-                       return;
-               }
-       
-               Sizzle = function( query, context, extra, seed ) {
-                       context = context || document;
-
-                       // Only use querySelectorAll on non-XML documents
-                       // (ID selectors don't work in non-HTML documents)
-                       if ( !seed && !Sizzle.isXML(context) ) {
-                               // See if we find a selector to speed up
-                               var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query );
-                               
-                               if ( match && (context.nodeType === 1 || context.nodeType === 9) ) {
-                                       // Speed-up: Sizzle("TAG")
-                                       if ( match[1] ) {
-                                               return makeArray( context.getElementsByTagName( query ), extra );
-                                       
-                                       // Speed-up: Sizzle(".CLASS")
-                                       } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) {
-                                               return makeArray( context.getElementsByClassName( match[2] ), extra );
-                                       }
-                               }
-                               
-                               if ( context.nodeType === 9 ) {
-                                       // Speed-up: Sizzle("body")
-                                       // The body element only exists once, optimize finding it
-                                       if ( query === "body" && context.body ) {
-                                               return makeArray( [ context.body ], extra );
-                                               
-                                       // Speed-up: Sizzle("#ID")
-                                       } else if ( match && match[3] ) {
-                                               var elem = context.getElementById( match[3] );
-
-                                               // Check parentNode to catch when Blackberry 4.6 returns
-                                               // nodes that are no longer in the document #6963
-                                               if ( elem && elem.parentNode ) {
-                                                       // Handle the case where IE and Opera return items
-                                                       // by name instead of ID
-                                                       if ( elem.id === match[3] ) {
-                                                               return makeArray( [ elem ], extra );
-                                                       }
-                                                       
-                                               } else {
-                                                       return makeArray( [], extra );
-                                               }
-                                       }
-                                       
-                                       try {
-                                               return makeArray( context.querySelectorAll(query), extra );
-                                       } catch(qsaError) {}
-
-                               // qSA works strangely on Element-rooted queries
-                               // We can work around this by specifying an extra ID on the root
-                               // and working up from there (Thanks to Andrew Dupont for the technique)
-                               // IE 8 doesn't work on object elements
-                               } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
-                                       var oldContext = context,
-                                               old = context.getAttribute( "id" ),
-                                               nid = old || id,
-                                               hasParent = context.parentNode,
-                                               relativeHierarchySelector = /^\s*[+~]/.test( query );
-
-                                       if ( !old ) {
-                                               context.setAttribute( "id", nid );
-                                       } else {
-                                               nid = nid.replace( /'/g, "\\$&" );
-                                       }
-                                       if ( relativeHierarchySelector && hasParent ) {
-                                               context = context.parentNode;
-                                       }
-
-                                       try {
-                                               if ( !relativeHierarchySelector || hasParent ) {
-                                                       return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
-                                               }
-
-                                       } catch(pseudoError) {
-                                       } finally {
-                                               if ( !old ) {
-                                                       oldContext.removeAttribute( "id" );
-                                               }
-                                       }
-                               }
-                       }
-               
-                       return oldSizzle(query, context, extra, seed);
-               };
-
-               for ( var prop in oldSizzle ) {
-                       Sizzle[ prop ] = oldSizzle[ prop ];
-               }
-
-               // release memory in IE
-               div = null;
-       })();
-}
-
-(function(){
-       var html = document.documentElement,
-               matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector;
-
-       if ( matches ) {
-               // Check to see if it's possible to do matchesSelector
-               // on a disconnected node (IE 9 fails this)
-               var disconnectedMatch = !matches.call( document.createElement( "div" ), "div" ),
-                       pseudoWorks = false;
-
-               try {
-                       // This should fail with an exception
-                       // Gecko does not error, returns false instead
-                       matches.call( document.documentElement, "[test!='']:sizzle" );
-       
-               } catch( pseudoError ) {
-                       pseudoWorks = true;
-               }
-
-               Sizzle.matchesSelector = function( node, expr ) {
-                       // Make sure that attribute selectors are quoted
-                       expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']");
-
-                       if ( !Sizzle.isXML( node ) ) {
-                               try { 
-                                       if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) {
-                                               var ret = matches.call( node, expr );
-
-                                               // IE 9's matchesSelector returns false on disconnected nodes
-                                               if ( ret || !disconnectedMatch ||
-                                                               // As well, disconnected nodes are said to be in a document
-                                                               // fragment in IE 9, so check for that
-                                                               node.document && node.document.nodeType !== 11 ) {
-                                                       return ret;
-                                               }
-                                       }
-                               } catch(e) {}
-                       }
-
-                       return Sizzle(expr, null, null, [node]).length > 0;
-               };
-       }
-})();
-
-(function(){
-       var div = document.createElement("div");
-
-       div.innerHTML = "<div class='test e'></div><div class='test'></div>";
-
-       // Opera can't find a second classname (in 9.6)
-       // Also, make sure that getElementsByClassName actually exists
-       if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
-               return;
-       }
-
-       // Safari caches class attributes, doesn't catch changes (in 3.2)
-       div.lastChild.className = "e";
-
-       if ( div.getElementsByClassName("e").length === 1 ) {
-               return;
-       }
-       
-       Expr.order.splice(1, 0, "CLASS");
-       Expr.find.CLASS = function( match, context, isXML ) {
-               if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
-                       return context.getElementsByClassName(match[1]);
-               }
-       };
-
-       // release memory in IE
-       div = null;
-})();
-
-function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
-       for ( var i = 0, l = checkSet.length; i < l; i++ ) {
-               var elem = checkSet[i];
-
-               if ( elem ) {
-                       var match = false;
-
-                       elem = elem[dir];
-
-                       while ( elem ) {
-                               if ( elem[ expando ] === doneName ) {
-                                       match = checkSet[elem.sizset];
-                                       break;
-                               }
-
-                               if ( elem.nodeType === 1 && !isXML ){
-                                       elem[ expando ] = doneName;
-                                       elem.sizset = i;
-                               }
-
-                               if ( elem.nodeName.toLowerCase() === cur ) {
-                                       match = elem;
-                                       break;
-                               }
-
-                               elem = elem[dir];
-                       }
-
-                       checkSet[i] = match;
-               }
-       }
-}
-
-function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
-       for ( var i = 0, l = checkSet.length; i < l; i++ ) {
-               var elem = checkSet[i];
-
-               if ( elem ) {
-                       var match = false;
-                       
-                       elem = elem[dir];
-
-                       while ( elem ) {
-                               if ( elem[ expando ] === doneName ) {
-                                       match = checkSet[elem.sizset];
-                                       break;
-                               }
-
-                               if ( elem.nodeType === 1 ) {
-                                       if ( !isXML ) {
-                                               elem[ expando ] = doneName;
-                                               elem.sizset = i;
-                                       }
-
-                                       if ( typeof cur !== "string" ) {
-                                               if ( elem === cur ) {
-                                                       match = true;
-                                                       break;
-                                               }
-
-                                       } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
-                                               match = elem;
-                                               break;
-                                       }
-                               }
-
-                               elem = elem[dir];
-                       }
-
-                       checkSet[i] = match;
-               }
-       }
-}
-
-if ( document.documentElement.contains ) {
-       Sizzle.contains = function( a, b ) {
-               return a !== b && (a.contains ? a.contains(b) : true);
-       };
-
-} else if ( document.documentElement.compareDocumentPosition ) {
-       Sizzle.contains = function( a, b ) {
-               return !!(a.compareDocumentPosition(b) & 16);
-       };
-
-} else {
-       Sizzle.contains = function() {
-               return false;
-       };
-}
-
-Sizzle.isXML = function( elem ) {
-       // documentElement is verified for cases where it doesn't yet exist
-       // (such as loading iframes in IE - #4833) 
-       var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
-
-       return documentElement ? documentElement.nodeName !== "HTML" : false;
-};
-
-var posProcess = function( selector, context, seed ) {
-       var match,
-               tmpSet = [],
-               later = "",
-               root = context.nodeType ? [context] : context;
-
-       // Position selectors must be done after the filter
-       // And so must :not(positional) so we move all PSEUDOs to the end
-       while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
-               later += match[0];
-               selector = selector.replace( Expr.match.PSEUDO, "" );
-       }
-
-       selector = Expr.relative[selector] ? selector + "*" : selector;
-
-       for ( var i = 0, l = root.length; i < l; i++ ) {
-               Sizzle( selector, root[i], tmpSet, seed );
-       }
-
-       return Sizzle.filter( later, tmpSet );
-};
-
-// EXPOSE
-// Override sizzle attribute retrieval
-Sizzle.attr = jQuery.attr;
-Sizzle.selectors.attrMap = {};
-jQuery.find = Sizzle;
-jQuery.expr = Sizzle.selectors;
-jQuery.expr[":"] = jQuery.expr.filters;
-jQuery.unique = Sizzle.uniqueSort;
-jQuery.text = Sizzle.getText;
-jQuery.isXMLDoc = Sizzle.isXML;
-jQuery.contains = Sizzle.contains;
-
-
-})();
-
-
-var runtil = /Until$/,
-       rparentsprev = /^(?:parents|prevUntil|prevAll)/,
-       // Note: This RegExp should be improved, or likely pulled from Sizzle
-       rmultiselector = /,/,
-       isSimple = /^.[^:#\[\.,]*$/,
-       slice = Array.prototype.slice,
-       POS = jQuery.expr.match.POS,
-       // methods guaranteed to produce a unique set when starting from a unique set
-       guaranteedUnique = {
-               children: true,
-               contents: true,
-               next: true,
-               prev: true
-       };
-
-jQuery.fn.extend({
-       find: function( selector ) {
-               var self = this,
-                       i, l;
-
-               if ( typeof selector !== "string" ) {
-                       return jQuery( selector ).filter(function() {
-                               for ( i = 0, l = self.length; i < l; i++ ) {
-                                       if ( jQuery.contains( self[ i ], this ) ) {
-                                               return true;
-                                       }
-                               }
-                       });
-               }
-
-               var ret = this.pushStack( "", "find", selector ),
-                       length, n, r;
-
-               for ( i = 0, l = this.length; i < l; i++ ) {
-                       length = ret.length;
-                       jQuery.find( selector, this[i], ret );
-
-                       if ( i > 0 ) {
-                               // Make sure that the results are unique
-                               for ( n = length; n < ret.length; n++ ) {
-                                       for ( r = 0; r < length; r++ ) {
-                                               if ( ret[r] === ret[n] ) {
-                                                       ret.splice(n--, 1);
-                                                       break;
-                                               }
-                                       }
-                               }
-                       }
-               }
-
-               return ret;
-       },
-
-       has: function( target ) {
-               var targets = jQuery( target );
-               return this.filter(function() {
-                       for ( var i = 0, l = targets.length; i < l; i++ ) {
-                               if ( jQuery.contains( this, targets[i] ) ) {
-                                       return true;
-                               }
-                       }
-               });
-       },
-
-       not: function( selector ) {
-               return this.pushStack( winnow(this, selector, false), "not", selector);
-       },
-
-       filter: function( selector ) {
-               return this.pushStack( winnow(this, selector, true), "filter", selector );
-       },
-
-       is: function( selector ) {
-               return !!selector && ( 
-                       typeof selector === "string" ?
-                               // If this is a positional selector, check membership in the returned set
-                               // so $("p:first").is("p:last") won't return true for a doc with two "p".
-                               POS.test( selector ) ? 
-                                       jQuery( selector, this.context ).index( this[0] ) >= 0 :
-                                       jQuery.filter( selector, this ).length > 0 :
-                               this.filter( selector ).length > 0 );
-       },
-
-       closest: function( selectors, context ) {
-               var ret = [], i, l, cur = this[0];
-               
-               // Array (deprecated as of jQuery 1.7)
-               if ( jQuery.isArray( selectors ) ) {
-                       var level = 1;
-
-                       while ( cur && cur.ownerDocument && cur !== context ) {
-                               for ( i = 0; i < selectors.length; i++ ) {
-
-                                       if ( jQuery( cur ).is( selectors[ i ] ) ) {
-                                               ret.push({ selector: selectors[ i ], elem: cur, level: level });
-                                       }
-                               }
-
-                               cur = cur.parentNode;
-                               level++;
-                       }
-
-                       return ret;
-               }
-
-               // String
-               var pos = POS.test( selectors ) || typeof selectors !== "string" ?
-                               jQuery( selectors, context || this.context ) :
-                               0;
-
-               for ( i = 0, l = this.length; i < l; i++ ) {
-                       cur = this[i];
-
-                       while ( cur ) {
-                               if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {
-                                       ret.push( cur );
-                                       break;
-
-                               } else {
-                                       cur = cur.parentNode;
-                                       if ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) {
-                                               break;
-                                       }
-                               }
-                       }
-               }
-
-               ret = ret.length > 1 ? jQuery.unique( ret ) : ret;
-
-               return this.pushStack( ret, "closest", selectors );
-       },
-
-       // Determine the position of an element within
-       // the matched set of elements
-       index: function( elem ) {
-
-               // No argument, return index in parent
-               if ( !elem ) {
-                       return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1;
-               }
-
-               // index in selector
-               if ( typeof elem === "string" ) {
-                       return jQuery.inArray( this[0], jQuery( elem ) );
-               }
-
-               // Locate the position of the desired element
-               return jQuery.inArray(
-                       // If it receives a jQuery object, the first element is used
-                       elem.jquery ? elem[0] : elem, this );
-       },
-
-       add: function( selector, context ) {
-               var set = typeof selector === "string" ?
-                               jQuery( selector, context ) :
-                               jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),
-                       all = jQuery.merge( this.get(), set );
-
-               return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?
-                       all :
-                       jQuery.unique( all ) );
-       },
-
-       andSelf: function() {
-               return this.add( this.prevObject );
-       }
-});
-
-// A painfully simple check to see if an element is disconnected
-// from a document (should be improved, where feasible).
-function isDisconnected( node ) {
-       return !node || !node.parentNode || node.parentNode.nodeType === 11;
-}
-
-jQuery.each({
-       parent: function( elem ) {
-               var parent = elem.parentNode;
-               return parent && parent.nodeType !== 11 ? parent : null;
-       },
-       parents: function( elem ) {
-               return jQuery.dir( elem, "parentNode" );
-       },
-       parentsUntil: function( elem, i, until ) {
-               return jQuery.dir( elem, "parentNode", until );
-       },
-       next: function( elem ) {
-               return jQuery.nth( elem, 2, "nextSibling" );
-       },
-       prev: function( elem ) {
-               return jQuery.nth( elem, 2, "previousSibling" );
-       },
-       nextAll: function( elem ) {
-               return jQuery.dir( elem, "nextSibling" );
-       },
-       prevAll: function( elem ) {
-               return jQuery.dir( elem, "previousSibling" );
-       },
-       nextUntil: function( elem, i, until ) {
-               return jQuery.dir( elem, "nextSibling", until );
-       },
-       prevUntil: function( elem, i, until ) {
-               return jQuery.dir( elem, "previousSibling", until );
-       },
-       siblings: function( elem ) {
-               return jQuery.sibling( elem.parentNode.firstChild, elem );
-       },
-       children: function( elem ) {
-               return jQuery.sibling( elem.firstChild );
-       },
-       contents: function( elem ) {
-               return jQuery.nodeName( elem, "iframe" ) ?
-                       elem.contentDocument || elem.contentWindow.document :
-                       jQuery.makeArray( elem.childNodes );
-       }
-}, function( name, fn ) {
-       jQuery.fn[ name ] = function( until, selector ) {
-               var ret = jQuery.map( this, fn, until );
-
-               if ( !runtil.test( name ) ) {
-                       selector = until;
-               }
-
-               if ( selector && typeof selector === "string" ) {
-                       ret = jQuery.filter( selector, ret );
-               }
-
-               ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;
-
-               if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {
-                       ret = ret.reverse();
-               }
-
-               return this.pushStack( ret, name, slice.call( arguments ).join(",") );
-       };
-});
-
-jQuery.extend({
-       filter: function( expr, elems, not ) {
-               if ( not ) {
-                       expr = ":not(" + expr + ")";
-               }
-
-               return elems.length === 1 ?
-                       jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :
-                       jQuery.find.matches(expr, elems);
-       },
-
-       dir: function( elem, dir, until ) {
-               var matched = [],
-                       cur = elem[ dir ];
-
-               while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
-                       if ( cur.nodeType === 1 ) {
-                               matched.push( cur );
-                       }
-                       cur = cur[dir];
-               }
-               return matched;
-       },
-
-       nth: function( cur, result, dir, elem ) {
-               result = result || 1;
-               var num = 0;
-
-               for ( ; cur; cur = cur[dir] ) {
-                       if ( cur.nodeType === 1 && ++num === result ) {
-                               break;
-                       }
-               }
-
-               return cur;
-       },
-
-       sibling: function( n, elem ) {
-               var r = [];
-
-               for ( ; n; n = n.nextSibling ) {
-                       if ( n.nodeType === 1 && n !== elem ) {
-                               r.push( n );
-                       }
-               }
-
-               return r;
-       }
-});
-
-// Implement the identical functionality for filter and not
-function winnow( elements, qualifier, keep ) {
-
-       // Can't pass null or undefined to indexOf in Firefox 4
-       // Set to 0 to skip string check
-       qualifier = qualifier || 0;
-
-       if ( jQuery.isFunction( qualifier ) ) {
-               return jQuery.grep(elements, function( elem, i ) {
-                       var retVal = !!qualifier.call( elem, i, elem );
-                       return retVal === keep;
-               });
-
-       } else if ( qualifier.nodeType ) {
-               return jQuery.grep(elements, function( elem, i ) {
-                       return ( elem === qualifier ) === keep;
-               });
-
-       } else if ( typeof qualifier === "string" ) {
-               var filtered = jQuery.grep(elements, function( elem ) {
-                       return elem.nodeType === 1;
-               });
-
-               if ( isSimple.test( qualifier ) ) {
-                       return jQuery.filter(qualifier, filtered, !keep);
-               } else {
-                       qualifier = jQuery.filter( qualifier, filtered );
-               }
-       }
-
-       return jQuery.grep(elements, function( elem, i ) {
-               return ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep;
-       });
-}
-
-
-
-
-function createSafeFragment( document ) {
-       var list = nodeNames.split( "|" ),
-       safeFrag = document.createDocumentFragment();
-
-       if ( safeFrag.createElement ) {
-               while ( list.length ) {
-                       safeFrag.createElement(
-                               list.pop()
-                       );
-               }
-       }
-       return safeFrag;
-}
-
-var nodeNames = "abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|" +
-               "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
-       rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
-       rleadingWhitespace = /^\s+/,
-       rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,
-       rtagName = /<([\w:]+)/,
-       rtbody = /<tbody/i,
-       rhtml = /<|&#?\w+;/,
-       rnoInnerhtml = /<(?:script|style)/i,
-       rnocache = /<(?:script|object|embed|option|style)/i,
-       rnoshimcache = new RegExp("<(?:" + nodeNames + ")", "i"),
-       // checked="checked" or checked
-       rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
-       rscriptType = /\/(java|ecma)script/i,
-       rcleanScript = /^\s*<!(?:\[CDATA\[|\-\-)/,
-       wrapMap = {
-               option: [ 1, "<select multiple='multiple'>", "</select>" ],
-               legend: [ 1, "<fieldset>", "</fieldset>" ],
-               thead: [ 1, "<table>", "</table>" ],
-               tr: [ 2, "<table><tbody>", "</tbody></table>" ],
-               td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
-               col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
-               area: [ 1, "<map>", "</map>" ],
-               _default: [ 0, "", "" ]
-       },
-       safeFragment = createSafeFragment( document );
-
-wrapMap.optgroup = wrapMap.option;
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
-wrapMap.th = wrapMap.td;
-
-// IE can't serialize <link> and <script> tags normally
-if ( !jQuery.support.htmlSerialize ) {
-       wrapMap._default = [ 1, "div<div>", "</div>" ];
-}
-
-jQuery.fn.extend({
-       text: function( text ) {
-               if ( jQuery.isFunction(text) ) {
-                       return this.each(function(i) {
-                               var self = jQuery( this );
-
-                               self.text( text.call(this, i, self.text()) );
-                       });
-               }
-
-               if ( typeof text !== "object" && text !== undefined ) {
-                       return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
-               }
-
-               return jQuery.text( this );
-       },
-
-       wrapAll: function( html ) {
-               if ( jQuery.isFunction( html ) ) {
-                       return this.each(function(i) {
-                               jQuery(this).wrapAll( html.call(this, i) );
-                       });
-               }
-
-               if ( this[0] ) {
-                       // The elements to wrap the target around
-                       var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
-
-                       if ( this[0].parentNode ) {
-                               wrap.insertBefore( this[0] );
-                       }
-
-                       wrap.map(function() {
-                               var elem = this;
-
-                               while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
-                                       elem = elem.firstChild;
-                               }
-
-                               return elem;
-                       }).append( this );
-               }
-
-               return this;
-       },
-
-       wrapInner: function( html ) {
-               if ( jQuery.isFunction( html ) ) {
-                       return this.each(function(i) {
-                               jQuery(this).wrapInner( html.call(this, i) );
-                       });
-               }
-
-               return this.each(function() {
-                       var self = jQuery( this ),
-                               contents = self.contents();
-
-                       if ( contents.length ) {
-                               contents.wrapAll( html );
-
-                       } else {
-                               self.append( html );
-                       }
-               });
-       },
-
-       wrap: function( html ) {
-               var isFunction = jQuery.isFunction( html );
-
-               return this.each(function(i) {
-                       jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
-               });
-       },
-
-       unwrap: function() {
-               return this.parent().each(function() {
-                       if ( !jQuery.nodeName( this, "body" ) ) {
-                               jQuery( this ).replaceWith( this.childNodes );
-                       }
-               }).end();
-       },
-
-       append: function() {
-               return this.domManip(arguments, true, function( elem ) {
-                       if ( this.nodeType === 1 ) {
-                               this.appendChild( elem );
-                       }
-               });
-       },
-
-       prepend: function() {
-               return this.domManip(arguments, true, function( elem ) {
-                       if ( this.nodeType === 1 ) {
-                               this.insertBefore( elem, this.firstChild );
-                       }
-               });
-       },
-
-       before: function() {
-               if ( this[0] && this[0].parentNode ) {
-                       return this.domManip(arguments, false, function( elem ) {
-                               this.parentNode.insertBefore( elem, this );
-                       });
-               } else if ( arguments.length ) {
-                       var set = jQuery.clean( arguments );
-                       set.push.apply( set, this.toArray() );
-                       return this.pushStack( set, "before", arguments );
-               }
-       },
-
-       after: function() {
-               if ( this[0] && this[0].parentNode ) {
-                       return this.domManip(arguments, false, function( elem ) {
-                               this.parentNode.insertBefore( elem, this.nextSibling );
-                       });
-               } else if ( arguments.length ) {
-                       var set = this.pushStack( this, "after", arguments );
-                       set.push.apply( set, jQuery.clean(arguments) );
-                       return set;
-               }
-       },
-
-       // keepData is for internal use only--do not document
-       remove: function( selector, keepData ) {
-               for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
-                       if ( !selector || jQuery.filter( selector, [ elem ] ).length ) {
-                               if ( !keepData && elem.nodeType === 1 ) {
-                                       jQuery.cleanData( elem.getElementsByTagName("*") );
-                                       jQuery.cleanData( [ elem ] );
-                               }
-
-                               if ( elem.parentNode ) {
-                                       elem.parentNode.removeChild( elem );
-                               }
-                       }
-               }
-
-               return this;
-       },
-
-       empty: function() {
-               for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
-                       // Remove element nodes and prevent memory leaks
-                       if ( elem.nodeType === 1 ) {
-                               jQuery.cleanData( elem.getElementsByTagName("*") );
-                       }
-
-                       // Remove any remaining nodes
-                       while ( elem.firstChild ) {
-                               elem.removeChild( elem.firstChild );
-                       }
-               }
-
-               return this;
-       },
-
-       clone: function( dataAndEvents, deepDataAndEvents ) {
-               dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
-               deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
-
-               return this.map( function () {
-                       return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
-               });
-       },
-
-       html: function( value ) {
-               if ( value === undefined ) {
-                       return this[0] && this[0].nodeType === 1 ?
-                               this[0].innerHTML.replace(rinlinejQuery, "") :
-                               null;
-
-               // See if we can take a shortcut and just use innerHTML
-               } else if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
-                       (jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
-                       !wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {
-
-                       value = value.replace(rxhtmlTag, "<$1></$2>");
-
-                       try {
-                               for ( var i = 0, l = this.length; i < l; i++ ) {
-                                       // Remove element nodes and prevent memory leaks
-                                       if ( this[i].nodeType === 1 ) {
-                                               jQuery.cleanData( this[i].getElementsByTagName("*") );
-                                               this[i].innerHTML = value;
-                                       }
-                               }
-
-                       // If using innerHTML throws an exception, use the fallback method
-                       } catch(e) {
-                               this.empty().append( value );
-                       }
-
-               } else if ( jQuery.isFunction( value ) ) {
-                       this.each(function(i){
-                               var self = jQuery( this );
-
-                               self.html( value.call(this, i, self.html()) );
-                       });
-
-               } else {
-                       this.empty().append( value );
-               }
-
-               return this;
-       },
-
-       replaceWith: function( value ) {
-               if ( this[0] && this[0].parentNode ) {
-                       // Make sure that the elements are removed from the DOM before they are inserted
-                       // this can help fix replacing a parent with child elements
-                       if ( jQuery.isFunction( value ) ) {
-                               return this.each(function(i) {
-                                       var self = jQuery(this), old = self.html();
-                                       self.replaceWith( value.call( this, i, old ) );
-                               });
-                       }
-
-                       if ( typeof value !== "string" ) {
-                               value = jQuery( value ).detach();
-                       }
-
-                       return this.each(function() {
-                               var next = this.nextSibling,
-                                       parent = this.parentNode;
-
-                               jQuery( this ).remove();
-
-                               if ( next ) {
-                                       jQuery(next).before( value );
-                               } else {
-                                       jQuery(parent).append( value );
-                               }
-                       });
-               } else {
-                       return this.length ?
-                               this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value ) :
-                               this;
-               }
-       },
-
-       detach: function( selector ) {
-               return this.remove( selector, true );
-       },
-
-       domManip: function( args, table, callback ) {
-               var results, first, fragment, parent,
-                       value = args[0],
-                       scripts = [];
-
-               // We can't cloneNode fragments that contain checked, in WebKit
-               if ( !jQuery.support.checkClone && arguments.length === 3 && typeof value === "string" && rchecked.test( value ) ) {
-                       return this.each(function() {
-                               jQuery(this).domManip( args, table, callback, true );
-                       });
-               }
-
-               if ( jQuery.isFunction(value) ) {
-                       return this.each(function(i) {
-                               var self = jQuery(this);
-                               args[0] = value.call(this, i, table ? self.html() : undefined);
-                               self.domManip( args, table, callback );
-                       });
-               }
-
-               if ( this[0] ) {
-                       parent = value && value.parentNode;
-
-                       // If we're in a fragment, just use that instead of building a new one
-                       if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
-                               results = { fragment: parent };
-
-                       } else {
-                               results = jQuery.buildFragment( args, this, scripts );
-                       }
-
-                       fragment = results.fragment;
-
-                       if ( fragment.childNodes.length === 1 ) {
-                               first = fragment = fragment.firstChild;
-                       } else {
-                               first = fragment.firstChild;
-                       }
-
-                       if ( first ) {
-                               table = table && jQuery.nodeName( first, "tr" );
-
-                               for ( var i = 0, l = this.length, lastIndex = l - 1; i < l; i++ ) {
-                                       callback.call(
-                                               table ?
-                                                       root(this[i], first) :
-                                                       this[i],
-                                               // Make sure that we do not leak memory by inadvertently discarding
-                                               // the original fragment (which might have attached data) instead of
-                                               // using it; in addition, use the original fragment object for the last
-                                               // item instead of first because it can end up being emptied incorrectly
-                                               // in certain situations (Bug #8070).
-                                               // Fragments from the fragment cache must always be cloned and never used
-                                               // in place.
-                                               results.cacheable || ( l > 1 && i < lastIndex ) ?
-                                                       jQuery.clone( fragment, true, true ) :
-                                                       fragment
-                                       );
-                               }
-                       }
-
-                       if ( scripts.length ) {
-                               jQuery.each( scripts, evalScript );
-                       }
-               }
-
-               return this;
-       }
-});
-
-function root( elem, cur ) {
-       return jQuery.nodeName(elem, "table") ?
-               (elem.getElementsByTagName("tbody")[0] ||
-               elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
-               elem;
-}
-
-function cloneCopyEvent( src, dest ) {
-
-       if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {
-               return;
-       }
-
-       var type, i, l,
-               oldData = jQuery._data( src ),
-               curData = jQuery._data( dest, oldData ),
-               events = oldData.events;
-
-       if ( events ) {
-               delete curData.handle;
-               curData.events = {};
-
-               for ( type in events ) {
-                       for ( i = 0, l = events[ type ].length; i < l; i++ ) {
-                               jQuery.event.add( dest, type + ( events[ type ][ i ].namespace ? "." : "" ) + events[ type ][ i ].namespace, events[ type ][ i ], events[ type ][ i ].data );
-                       }
-               }
-       }
-
-       // make the cloned public data object a copy from the original
-       if ( curData.data ) {
-               curData.data = jQuery.extend( {}, curData.data );
-       }
-}
-
-function cloneFixAttributes( src, dest ) {
-       var nodeName;
-
-       // We do not need to do anything for non-Elements
-       if ( dest.nodeType !== 1 ) {
-               return;
-       }
-
-       // clearAttributes removes the attributes, which we don't want,
-       // but also removes the attachEvent events, which we *do* want
-       if ( dest.clearAttributes ) {
-               dest.clearAttributes();
-       }
-
-       // mergeAttributes, in contrast, only merges back on the
-       // original attributes, not the events
-       if ( dest.mergeAttributes ) {
-               dest.mergeAttributes( src );
-       }
-
-       nodeName = dest.nodeName.toLowerCase();
-
-       // IE6-8 fail to clone children inside object elements that use
-       // the proprietary classid attribute value (rather than the type
-       // attribute) to identify the type of content to display
-       if ( nodeName === "object" ) {
-               dest.outerHTML = src.outerHTML;
-
-       } else if ( nodeName === "input" && (src.type === "checkbox" || src.type === "radio") ) {
-               // IE6-8 fails to persist the checked state of a cloned checkbox
-               // or radio button. Worse, IE6-7 fail to give the cloned element
-               // a checked appearance if the defaultChecked value isn't also set
-               if ( src.checked ) {
-                       dest.defaultChecked = dest.checked = src.checked;
-               }
-
-               // IE6-7 get confused and end up setting the value of a cloned
-               // checkbox/radio button to an empty string instead of "on"
-               if ( dest.value !== src.value ) {
-                       dest.value = src.value;
-               }
-
-       // IE6-8 fails to return the selected option to the default selected
-       // state when cloning options
-       } else if ( nodeName === "option" ) {
-               dest.selected = src.defaultSelected;
-
-       // IE6-8 fails to set the defaultValue to the correct value when
-       // cloning other types of input fields
-       } else if ( nodeName === "input" || nodeName === "textarea" ) {
-               dest.defaultValue = src.defaultValue;
-       }
-
-       // Event data gets referenced instead of copied if the expando
-       // gets copied too
-       dest.removeAttribute( jQuery.expando );
-}
-
-jQuery.buildFragment = function( args, nodes, scripts ) {
-       var fragment, cacheable, cacheresults, doc,
-       first = args[ 0 ];
-
-       // nodes may contain either an explicit document object,
-       // a jQuery collection or context object.
-       // If nodes[0] contains a valid object to assign to doc
-       if ( nodes && nodes[0] ) {
-               doc = nodes[0].ownerDocument || nodes[0];
-       }
-
-       // Ensure that an attr object doesn't incorrectly stand in as a document object
-       // Chrome and Firefox seem to allow this to occur and will throw exception
-       // Fixes #8950
-       if ( !doc.createDocumentFragment ) {
-               doc = document;
-       }
-
-       // Only cache "small" (1/2 KB) HTML strings that are associated with the main document
-       // Cloning options loses the selected state, so don't cache them
-       // IE 6 doesn't like it when you put <object> or <embed> elements in a fragment
-       // Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache
-       // Lastly, IE6,7,8 will not correctly reuse cached fragments that were created from unknown elems #10501
-       if ( args.length === 1 && typeof first === "string" && first.length < 512 && doc === document &&
-               first.charAt(0) === "<" && !rnocache.test( first ) &&
-               (jQuery.support.checkClone || !rchecked.test( first )) &&
-               (jQuery.support.html5Clone || !rnoshimcache.test( first )) ) {
-
-               cacheable = true;
-
-               cacheresults = jQuery.fragments[ first ];
-               if ( cacheresults && cacheresults !== 1 ) {
-                       fragment = cacheresults;
-               }
-       }
-
-       if ( !fragment ) {
-               fragment = doc.createDocumentFragment();
-               jQuery.clean( args, doc, fragment, scripts );
-       }
-
-       if ( cacheable ) {
-               jQuery.fragments[ first ] = cacheresults ? fragment : 1;
-       }
-
-       return { fragment: fragment, cacheable: cacheable };
-};
-
-jQuery.fragments = {};
-
-jQuery.each({
-       appendTo: "append",
-       prependTo: "prepend",
-       insertBefore: "before",
-       insertAfter: "after",
-       replaceAll: "replaceWith"
-}, function( name, original ) {
-       jQuery.fn[ name ] = function( selector ) {
-               var ret = [],
-                       insert = jQuery( selector ),
-                       parent = this.length === 1 && this[0].parentNode;
-
-               if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {
-                       insert[ original ]( this[0] );
-                       return this;
-
-               } else {
-                       for ( var i = 0, l = insert.length; i < l; i++ ) {
-                               var elems = ( i > 0 ? this.clone(true) : this ).get();
-                               jQuery( insert[i] )[ original ]( elems );
-                               ret = ret.concat( elems );
-                       }
-
-                       return this.pushStack( ret, name, insert.selector );
-               }
-       };
-});
-
-function getAll( elem ) {
-       if ( typeof elem.getElementsByTagName !== "undefined" ) {
-               return elem.getElementsByTagName( "*" );
-
-       } else if ( typeof elem.querySelectorAll !== "undefined" ) {
-               return elem.querySelectorAll( "*" );
-
-       } else {
-               return [];
-       }
-}
-
-// Used in clean, fixes the defaultChecked property
-function fixDefaultChecked( elem ) {
-       if ( elem.type === "checkbox" || elem.type === "radio" ) {
-               elem.defaultChecked = elem.checked;
-       }
-}
-// Finds all inputs and passes them to fixDefaultChecked
-function findInputs( elem ) {
-       var nodeName = ( elem.nodeName || "" ).toLowerCase();
-       if ( nodeName === "input" ) {
-               fixDefaultChecked( elem );
-       // Skip scripts, get other children
-       } else if ( nodeName !== "script" && typeof elem.getElementsByTagName !== "undefined" ) {
-               jQuery.grep( elem.getElementsByTagName("input"), fixDefaultChecked );
-       }
-}
-
-// Derived From: http://www.iecss.com/shimprove/javascript/shimprove.1-0-1.js
-function shimCloneNode( elem ) {
-       var div = document.createElement( "div" );
-       safeFragment.appendChild( div );
-
-       div.innerHTML = elem.outerHTML;
-       return div.firstChild;
-}
-
-jQuery.extend({
-       clone: function( elem, dataAndEvents, deepDataAndEvents ) {
-               var srcElements,
-                       destElements,
-                       i,
-                       // IE<=8 does not properly clone detached, unknown element nodes
-                       clone = jQuery.support.html5Clone || !rnoshimcache.test( "<" + elem.nodeName ) ?
-                               elem.cloneNode( true ) :
-                               shimCloneNode( elem );
-
-               if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) &&
-                               (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {
-                       // IE copies events bound via attachEvent when using cloneNode.
-                       // Calling detachEvent on the clone will also remove the events
-                       // from the original. In order to get around this, we use some
-                       // proprietary methods to clear the events. Thanks to MooTools
-                       // guys for this hotness.
-
-                       cloneFixAttributes( elem, clone );
-
-                       // Using Sizzle here is crazy slow, so we use getElementsByTagName instead
-                       srcElements = getAll( elem );
-                       destElements = getAll( clone );
-
-                       // Weird iteration because IE will replace the length property
-                       // with an element if you are cloning the body and one of the
-                       // elements on the page has a name or id of "length"
-                       for ( i = 0; srcElements[i]; ++i ) {
-                               // Ensure that the destination node is not null; Fixes #9587
-                               if ( destElements[i] ) {
-                                       cloneFixAttributes( srcElements[i], destElements[i] );
-                               }
-                       }
-               }
-
-               // Copy the events from the original to the clone
-               if ( dataAndEvents ) {
-                       cloneCopyEvent( elem, clone );
-
-                       if ( deepDataAndEvents ) {
-                               srcElements = getAll( elem );
-                               destElements = getAll( clone );
-
-                               for ( i = 0; srcElements[i]; ++i ) {
-                                       cloneCopyEvent( srcElements[i], destElements[i] );
-                               }
-                       }
-               }
-
-               srcElements = destElements = null;
-
-               // Return the cloned set
-               return clone;
-       },
-
-       clean: function( elems, context, fragment, scripts ) {
-               var checkScriptType;
-
-               context = context || document;
-
-               // !context.createElement fails in IE with an error but returns typeof 'object'
-               if ( typeof context.createElement === "undefined" ) {
-                       context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
-               }
-
-               var ret = [], j;
-
-               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
-                       if ( typeof elem === "number" ) {
-                               elem += "";
-                       }
-
-                       if ( !elem ) {
-                               continue;
-                       }
-
-                       // Convert html string into DOM nodes
-                       if ( typeof elem === "string" ) {
-                               if ( !rhtml.test( elem ) ) {
-                                       elem = context.createTextNode( elem );
-                               } else {
-                                       // Fix "XHTML"-style tags in all browsers
-                                       elem = elem.replace(rxhtmlTag, "<$1></$2>");
-
-                                       // Trim whitespace, otherwise indexOf won't work as expected
-                                       var tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase(),
-                                               wrap = wrapMap[ tag ] || wrapMap._default,
-                                               depth = wrap[0],
-                                               div = context.createElement("div");
-
-                                       // Append wrapper element to unknown element safe doc fragment
-                                       if ( context === document ) {
-                                               // Use the fragment we've already created for this document
-                                               safeFragment.appendChild( div );
-                                       } else {
-                                               // Use a fragment created with the owner document
-                                               createSafeFragment( context ).appendChild( div );
-                                       }
-
-                                       // Go to html and back, then peel off extra wrappers
-                                       div.innerHTML = wrap[1] + elem + wrap[2];
-
-                                       // Move to the right depth
-                                       while ( depth-- ) {
-                                               div = div.lastChild;
-                                       }
-
-                                       // Remove IE's autoinserted <tbody> from table fragments
-                                       if ( !jQuery.support.tbody ) {
-
-                                               // String was a <table>, *may* have spurious <tbody>
-                                               var hasBody = rtbody.test(elem),
-                                                       tbody = tag === "table" && !hasBody ?
-                                                               div.firstChild && div.firstChild.childNodes :
-
-                                                               // String was a bare <thead> or <tfoot>
-                                                               wrap[1] === "<table>" && !hasBody ?
-                                                                       div.childNodes :
-                                                                       [];
-
-                                               for ( j = tbody.length - 1; j >= 0 ; --j ) {
-                                                       if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
-                                                               tbody[ j ].parentNode.removeChild( tbody[ j ] );
-                                                       }
-                                               }
-                                       }
-
-                                       // IE completely kills leading whitespace when innerHTML is used
-                                       if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
-                                               div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );
-                                       }
-
-                                       elem = div.childNodes;
-                               }
-                       }
-
-                       // Resets defaultChecked for any radios and checkboxes
-                       // about to be appended to the DOM in IE 6/7 (#8060)
-                       var len;
-                       if ( !jQuery.support.appendChecked ) {
-                               if ( elem[0] && typeof (len = elem.length) === "number" ) {
-                                       for ( j = 0; j < len; j++ ) {
-                                               findInputs( elem[j] );
-                                       }
-                               } else {
-                                       findInputs( elem );
-                               }
-                       }
-
-                       if ( elem.nodeType ) {
-                               ret.push( elem );
-                       } else {
-                               ret = jQuery.merge( ret, elem );
-                       }
-               }
-
-               if ( fragment ) {
-                       checkScriptType = function( elem ) {
-                               return !elem.type || rscriptType.test( elem.type );
-                       };
-                       for ( i = 0; ret[i]; i++ ) {
-                               if ( scripts && jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
-                                       scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
-
-                               } else {
-                                       if ( ret[i].nodeType === 1 ) {
-                                               var jsTags = jQuery.grep( ret[i].getElementsByTagName( "script" ), checkScriptType );
-
-                                               ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) );
-                                       }
-                                       fragment.appendChild( ret[i] );
-                               }
-                       }
-               }
-
-               return ret;
-       },
-
-       cleanData: function( elems ) {
-               var data, id,
-                       cache = jQuery.cache,
-                       special = jQuery.event.special,
-                       deleteExpando = jQuery.support.deleteExpando;
-
-               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
-                       if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
-                               continue;
-                       }
-
-                       id = elem[ jQuery.expando ];
-
-                       if ( id ) {
-                               data = cache[ id ];
-
-                               if ( data && data.events ) {
-                                       for ( var type in data.events ) {
-                                               if ( special[ type ] ) {
-                                                       jQuery.event.remove( elem, type );
-
-                                               // This is a shortcut to avoid jQuery.event.remove's overhead
-                                               } else {
-                                                       jQuery.removeEvent( elem, type, data.handle );
-                                               }
-                                       }
-
-                                       // Null the DOM reference to avoid IE6/7/8 leak (#7054)
-                                       if ( data.handle ) {
-                                               data.handle.elem = null;
-                                       }
-                               }
-
-                               if ( deleteExpando ) {
-                                       delete elem[ jQuery.expando ];
-
-                               } else if ( elem.removeAttribute ) {
-                                       elem.removeAttribute( jQuery.expando );
-                               }
-
-                               delete cache[ id ];
-                       }
-               }
-       }
-});
-
-function evalScript( i, elem ) {
-       if ( elem.src ) {
-               jQuery.ajax({
-                       url: elem.src,
-                       async: false,
-                       dataType: "script"
-               });
-       } else {
-               jQuery.globalEval( ( elem.text || elem.textContent || elem.innerHTML || "" ).replace( rcleanScript, "/*$0*/" ) );
-       }
-
-       if ( elem.parentNode ) {
-               elem.parentNode.removeChild( elem );
-       }
-}
-
-
-
-
-var ralpha = /alpha\([^)]*\)/i,
-       ropacity = /opacity=([^)]*)/,
-       // fixed for IE9, see #8346
-       rupper = /([A-Z]|^ms)/g,
-       rnumpx = /^-?\d+(?:px)?$/i,
-       rnum = /^-?\d/,
-       rrelNum = /^([\-+])=([\-+.\de]+)/,
-
-       cssShow = { position: "absolute", visibility: "hidden", display: "block" },
-       cssWidth = [ "Left", "Right" ],
-       cssHeight = [ "Top", "Bottom" ],
-       curCSS,
-
-       getComputedStyle,
-       currentStyle;
-
-jQuery.fn.css = function( name, value ) {
-       // Setting 'undefined' is a no-op
-       if ( arguments.length === 2 && value === undefined ) {
-               return this;
-       }
-
-       return jQuery.access( this, name, value, true, function( elem, name, value ) {
-               return value !== undefined ?
-                       jQuery.style( elem, name, value ) :
-                       jQuery.css( elem, name );
-       });
-};
-
-jQuery.extend({
-       // Add in style property hooks for overriding the default
-       // behavior of getting and setting a style property
-       cssHooks: {
-               opacity: {
-                       get: function( elem, computed ) {
-                               if ( computed ) {
-                                       // We should always get a number back from opacity
-                                       var ret = curCSS( elem, "opacity", "opacity" );
-                                       return ret === "" ? "1" : ret;
-
-                               } else {
-                                       return elem.style.opacity;
-                               }
-                       }
-               }
-       },
-
-       // Exclude the following css properties to add px
-       cssNumber: {
-               "fillOpacity": true,
-               "fontWeight": true,
-               "lineHeight": true,
-               "opacity": true,
-               "orphans": true,
-               "widows": true,
-               "zIndex": true,
-               "zoom": true
-       },
-
-       // Add in properties whose names you wish to fix before
-       // setting or getting the value
-       cssProps: {
-               // normalize float css property
-               "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat"
-       },
-
-       // Get and set the style property on a DOM Node
-       style: function( elem, name, value, extra ) {
-               // Don't set styles on text and comment nodes
-               if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
-                       return;
-               }
-
-               // Make sure that we're working with the right name
-               var ret, type, origName = jQuery.camelCase( name ),
-                       style = elem.style, hooks = jQuery.cssHooks[ origName ];
-
-               name = jQuery.cssProps[ origName ] || origName;
-
-               // Check if we're setting a value
-               if ( value !== undefined ) {
-                       type = typeof value;
-
-                       // convert relative number strings (+= or -=) to relative numbers. #7345
-                       if ( type === "string" && (ret = rrelNum.exec( value )) ) {
-                               value = ( +( ret[1] + 1) * +ret[2] ) + parseFloat( jQuery.css( elem, name ) );
-                               // Fixes bug #9237
-                               type = "number";
-                       }
-
-                       // Make sure that NaN and null values aren't set. See: #7116
-                       if ( value == null || type === "number" && isNaN( value ) ) {
-                               return;
-                       }
-
-                       // If a number was passed in, add 'px' to the (except for certain CSS properties)
-                       if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
-                               value += "px";
-                       }
-
-                       // If a hook was provided, use that value, otherwise just set the specified value
-                       if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value )) !== undefined ) {
-                               // Wrapped to prevent IE from throwing errors when 'invalid' values are provided
-                               // Fixes bug #5509
-                               try {
-                                       style[ name ] = value;
-                               } catch(e) {}
-                       }
-
-               } else {
-                       // If a hook was provided get the non-computed value from there
-                       if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
-                               return ret;
-                       }
-
-                       // Otherwise just get the value from the style object
-                       return style[ name ];
-               }
-       },
-
-       css: function( elem, name, extra ) {
-               var ret, hooks;
-
-               // Make sure that we're working with the right name
-               name = jQuery.camelCase( name );
-               hooks = jQuery.cssHooks[ name ];
-               name = jQuery.cssProps[ name ] || name;
-
-               // cssFloat needs a special treatment
-               if ( name === "cssFloat" ) {
-                       name = "float";
-               }
-
-               // If a hook was provided get the computed value from there
-               if ( hooks && "get" in hooks && (ret = hooks.get( elem, true, extra )) !== undefined ) {
-                       return ret;
-
-               // Otherwise, if a way to get the computed value exists, use that
-               } else if ( curCSS ) {
-                       return curCSS( elem, name );
-               }
-       },
-
-       // A method for quickly swapping in/out CSS properties to get correct calculations
-       swap: function( elem, options, callback ) {
-               var old = {};
-
-               // Remember the old values, and insert the new ones
-               for ( var name in options ) {
-                       old[ name ] = elem.style[ name ];
-                       elem.style[ name ] = options[ name ];
-               }
-
-               callback.call( elem );
-
-               // Revert the old values
-               for ( name in options ) {
-                       elem.style[ name ] = old[ name ];
-               }
-       }
-});
-
-// DEPRECATED, Use jQuery.css() instead
-jQuery.curCSS = jQuery.css;
-
-jQuery.each(["height", "width"], function( i, name ) {
-       jQuery.cssHooks[ name ] = {
-               get: function( elem, computed, extra ) {
-                       var val;
-
-                       if ( computed ) {
-                               if ( elem.offsetWidth !== 0 ) {
-                                       return getWH( elem, name, extra );
-                               } else {
-                                       jQuery.swap( elem, cssShow, function() {
-                                               val = getWH( elem, name, extra );
-                                       });
-                               }
-
-                               return val;
-                       }
-               },
-
-               set: function( elem, value ) {
-                       if ( rnumpx.test( value ) ) {
-                               // ignore negative width and height values #1599
-                               value = parseFloat( value );
-
-                               if ( value >= 0 ) {
-                                       return value + "px";
-                               }
-
-                       } else {
-                               return value;
-                       }
-               }
-       };
-});
-
-if ( !jQuery.support.opacity ) {
-       jQuery.cssHooks.opacity = {
-               get: function( elem, computed ) {
-                       // IE uses filters for opacity
-                       return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
-                               ( parseFloat( RegExp.$1 ) / 100 ) + "" :
-                               computed ? "1" : "";
-               },
-
-               set: function( elem, value ) {
-                       var style = elem.style,
-                               currentStyle = elem.currentStyle,
-                               opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "",
-                               filter = currentStyle && currentStyle.filter || style.filter || "";
-
-                       // IE has trouble with opacity if it does not have layout
-                       // Force it by setting the zoom level
-                       style.zoom = 1;
-
-                       // if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
-                       if ( value >= 1 && jQuery.trim( filter.replace( ralpha, "" ) ) === "" ) {
-
-                               // Setting style.filter to null, "" & " " still leave "filter:" in the cssText
-                               // if "filter:" is present at all, clearType is disabled, we want to avoid this
-                               // style.removeAttribute is IE Only, but so apparently is this code path...
-                               style.removeAttribute( "filter" );
-
-                               // if there there is no filter style applied in a css rule, we are done
-                               if ( currentStyle && !currentStyle.filter ) {
-                                       return;
-                               }
-                       }
-
-                       // otherwise, set new filter values
-                       style.filter = ralpha.test( filter ) ?
-                               filter.replace( ralpha, opacity ) :
-                               filter + " " + opacity;
-               }
-       };
-}
-
-jQuery(function() {
-       // This hook cannot be added until DOM ready because the support test
-       // for it is not run until after DOM ready
-       if ( !jQuery.support.reliableMarginRight ) {
-               jQuery.cssHooks.marginRight = {
-                       get: function( elem, computed ) {
-                               // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
-                               // Work around by temporarily setting element display to inline-block
-                               var ret;
-                               jQuery.swap( elem, { "display": "inline-block" }, function() {
-                                       if ( computed ) {
-                                               ret = curCSS( elem, "margin-right", "marginRight" );
-                                       } else {
-                                               ret = elem.style.marginRight;
-                                       }
-                               });
-                               return ret;
-                       }
-               };
-       }
-});
-
-if ( document.defaultView && document.defaultView.getComputedStyle ) {
-       getComputedStyle = function( elem, name ) {
-               var ret, defaultView, computedStyle;
-
-               name = name.replace( rupper, "-$1" ).toLowerCase();
-
-               if ( (defaultView = elem.ownerDocument.defaultView) &&
-                               (computedStyle = defaultView.getComputedStyle( elem, null )) ) {
-                       ret = computedStyle.getPropertyValue( name );
-                       if ( ret === "" && !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) {
-                               ret = jQuery.style( elem, name );
-                       }
-               }
-
-               return ret;
-       };
-}
-
-if ( document.documentElement.currentStyle ) {
-       currentStyle = function( elem, name ) {
-               var left, rsLeft, uncomputed,
-                       ret = elem.currentStyle && elem.currentStyle[ name ],
-                       style = elem.style;
-
-               // Avoid setting ret to empty string here
-               // so we don't default to auto
-               if ( ret === null && style && (uncomputed = style[ name ]) ) {
-                       ret = uncomputed;
-               }
-
-               // From the awesome hack by Dean Edwards
-               // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
-
-               // If we're not dealing with a regular pixel number
-               // but a number that has a weird ending, we need to convert it to pixels
-               if ( !rnumpx.test( ret ) && rnum.test( ret ) ) {
-
-                       // Remember the original values
-                       left = style.left;
-                       rsLeft = elem.runtimeStyle && elem.runtimeStyle.left;
-
-                       // Put in the new values to get a computed value out
-                       if ( rsLeft ) {
-                               elem.runtimeStyle.left = elem.currentStyle.left;
-                       }
-                       style.left = name === "fontSize" ? "1em" : ( ret || 0 );
-                       ret = style.pixelLeft + "px";
-
-                       // Revert the changed values
-                       style.left = left;
-                       if ( rsLeft ) {
-                               elem.runtimeStyle.left = rsLeft;
-                       }
-               }
-
-               return ret === "" ? "auto" : ret;
-       };
-}
-
-curCSS = getComputedStyle || currentStyle;
-
-function getWH( elem, name, extra ) {
-
-       // Start with offset property
-       var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
-               which = name === "width" ? cssWidth : cssHeight,
-               i = 0,
-               len = which.length;
-
-       if ( val > 0 ) {
-               if ( extra !== "border" ) {
-                       for ( ; i < len; i++ ) {
-                               if ( !extra ) {
-                                       val -= parseFloat( jQuery.css( elem, "padding" + which[ i ] ) ) || 0;
-                               }
-                               if ( extra === "margin" ) {
-                                       val += parseFloat( jQuery.css( elem, extra + which[ i ] ) ) || 0;
-                               } else {
-                                       val -= parseFloat( jQuery.css( elem, "border" + which[ i ] + "Width" ) ) || 0;
-                               }
-                       }
-               }
-
-               return val + "px";
-       }
-
-       // Fall back to computed then uncomputed css if necessary
-       val = curCSS( elem, name, name );
-       if ( val < 0 || val == null ) {
-               val = elem.style[ name ] || 0;
-       }
-       // Normalize "", auto, and prepare for extra
-       val = parseFloat( val ) || 0;
-
-       // Add padding, border, margin
-       if ( extra ) {
-               for ( ; i < len; i++ ) {
-                       val += parseFloat( jQuery.css( elem, "padding" + which[ i ] ) ) || 0;
-                       if ( extra !== "padding" ) {
-                               val += parseFloat( jQuery.css( elem, "border" + which[ i ] + "Width" ) ) || 0;
-                       }
-                       if ( extra === "margin" ) {
-                               val += parseFloat( jQuery.css( elem, extra + which[ i ] ) ) || 0;
-                       }
-               }
-       }
-
-       return val + "px";
-}
-
-if ( jQuery.expr && jQuery.expr.filters ) {
-       jQuery.expr.filters.hidden = function( elem ) {
-               var width = elem.offsetWidth,
-                       height = elem.offsetHeight;
-
-               return ( width === 0 && height === 0 ) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");
-       };
-
-       jQuery.expr.filters.visible = function( elem ) {
-               return !jQuery.expr.filters.hidden( elem );
-       };
-}
-
-
-
-
-var r20 = /%20/g,
-       rbracket = /\[\]$/,
-       rCRLF = /\r?\n/g,
-       rhash = /#.*$/,
-       rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
-       rinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
-       // #7653, #8125, #8152: local protocol detection
-       rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,
-       rnoContent = /^(?:GET|HEAD)$/,
-       rprotocol = /^\/\//,
-       rquery = /\?/,
-       rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
-       rselectTextarea = /^(?:select|textarea)/i,
-       rspacesAjax = /\s+/,
-       rts = /([?&])_=[^&]*/,
-       rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,
-
-       // Keep a copy of the old load method
-       _load = jQuery.fn.load,
-
-       /* Prefilters
-        * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
-        * 2) These are called:
-        *    - BEFORE asking for a transport
-        *    - AFTER param serialization (s.data is a string if s.processData is true)
-        * 3) key is the dataType
-        * 4) the catchall symbol "*" can be used
-        * 5) execution will start with transport dataType and THEN continue down to "*" if needed
-        */
-       prefilters = {},
-
-       /* Transports bindings
-        * 1) key is the dataType
-        * 2) the catchall symbol "*" can be used
-        * 3) selection will start with transport dataType and THEN go to "*" if needed
-        */
-       transports = {},
-
-       // Document location
-       ajaxLocation,
-
-       // Document location segments
-       ajaxLocParts,
-
-       // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
-       allTypes = ["*/"] + ["*"];
-
-// #8138, IE may throw an exception when accessing
-// a field from window.location if document.domain has been set
-try {
-       ajaxLocation = location.href;
-} catch( e ) {
-       // Use the href attribute of an A element
-       // since IE will modify it given document.location
-       ajaxLocation = document.createElement( "a" );
-       ajaxLocation.href = "";
-       ajaxLocation = ajaxLocation.href;
-}
-
-// Segment location into parts
-ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
-
-// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
-function addToPrefiltersOrTransports( structure ) {
-
-       // dataTypeExpression is optional and defaults to "*"
-       return function( dataTypeExpression, func ) {
-
-               if ( typeof dataTypeExpression !== "string" ) {
-                       func = dataTypeExpression;
-                       dataTypeExpression = "*";
-               }
-
-               if ( jQuery.isFunction( func ) ) {
-                       var dataTypes = dataTypeExpression.toLowerCase().split( rspacesAjax ),
-                               i = 0,
-                               length = dataTypes.length,
-                               dataType,
-                               list,
-                               placeBefore;
-
-                       // For each dataType in the dataTypeExpression
-                       for ( ; i < length; i++ ) {
-                               dataType = dataTypes[ i ];
-                               // We control if we're asked to add before
-                               // any existing element
-                               placeBefore = /^\+/.test( dataType );
-                               if ( placeBefore ) {
-                                       dataType = dataType.substr( 1 ) || "*";
-                               }
-                               list = structure[ dataType ] = structure[ dataType ] || [];
-                               // then we add to the structure accordingly
-                               list[ placeBefore ? "unshift" : "push" ]( func );
-                       }
-               }
-       };
-}
-
-// Base inspection function for prefilters and transports
-function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR,
-               dataType /* internal */, inspected /* internal */ ) {
-
-       dataType = dataType || options.dataTypes[ 0 ];
-       inspected = inspected || {};
-
-       inspected[ dataType ] = true;
-
-       var list = structure[ dataType ],
-               i = 0,
-               length = list ? list.length : 0,
-               executeOnly = ( structure === prefilters ),
-               selection;
-
-       for ( ; i < length && ( executeOnly || !selection ); i++ ) {
-               selection = list[ i ]( options, originalOptions, jqXHR );
-               // If we got redirected to another dataType
-               // we try there if executing only and not done already
-               if ( typeof selection === "string" ) {
-                       if ( !executeOnly || inspected[ selection ] ) {
-                               selection = undefined;
-                       } else {
-                               options.dataTypes.unshift( selection );
-                               selection = inspectPrefiltersOrTransports(
-                                               structure, options, originalOptions, jqXHR, selection, inspected );
-                       }
-               }
-       }
-       // If we're only executing or nothing was selected
-       // we try the catchall dataType if not done already
-       if ( ( executeOnly || !selection ) && !inspected[ "*" ] ) {
-               selection = inspectPrefiltersOrTransports(
-                               structure, options, originalOptions, jqXHR, "*", inspected );
-       }
-       // unnecessary when only executing (prefilters)
-       // but it'll be ignored by the caller in that case
-       return selection;
-}
-
-// A special extend for ajax options
-// that takes "flat" options (not to be deep extended)
-// Fixes #9887
-function ajaxExtend( target, src ) {
-       var key, deep,
-               flatOptions = jQuery.ajaxSettings.flatOptions || {};
-       for ( key in src ) {
-               if ( src[ key ] !== undefined ) {
-                       ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
-               }
-       }
-       if ( deep ) {
-               jQuery.extend( true, target, deep );
-       }
-}
-
-jQuery.fn.extend({
-       load: function( url, params, callback ) {
-               if ( typeof url !== "string" && _load ) {
-                       return _load.apply( this, arguments );
-
-               // Don't do a request if no elements are being requested
-               } else if ( !this.length ) {
-                       return this;
-               }
-
-               var off = url.indexOf( " " );
-               if ( off >= 0 ) {
-                       var selector = url.slice( off, url.length );
-                       url = url.slice( 0, off );
-               }
-
-               // Default to a GET request
-               var type = "GET";
-
-               // If the second parameter was provided
-               if ( params ) {
-                       // If it's a function
-                       if ( jQuery.isFunction( params ) ) {
-                               // We assume that it's the callback
-                               callback = params;
-                               params = undefined;
-
-                       // Otherwise, build a param string
-                       } else if ( typeof params === "object" ) {
-                               params = jQuery.param( params, jQuery.ajaxSettings.traditional );
-                               type = "POST";
-                       }
-               }
-
-               var self = this;
-
-               // Request the remote document
-               jQuery.ajax({
-                       url: url,
-                       type: type,
-                       dataType: "html",
-                       data: params,
-                       // Complete callback (responseText is used internally)
-                       complete: function( jqXHR, status, responseText ) {
-                               // Store the response as specified by the jqXHR object
-                               responseText = jqXHR.responseText;
-                               // If successful, inject the HTML into all the matched elements
-                               if ( jqXHR.isResolved() ) {
-                                       // #4825: Get the actual response in case
-                                       // a dataFilter is present in ajaxSettings
-                                       jqXHR.done(function( r ) {
-                                               responseText = r;
-                                       });
-                                       // See if a selector was specified
-                                       self.html( selector ?
-                                               // Create a dummy div to hold the results
-                                               jQuery("<div>")
-                                                       // inject the contents of the document in, removing the scripts
-                                                       // to avoid any 'Permission Denied' errors in IE
-                                                       .append(responseText.replace(rscript, ""))
-
-                                                       // Locate the specified elements
-                                                       .find(selector) :
-
-                                               // If not, just inject the full result
-                                               responseText );
-                               }
-
-                               if ( callback ) {
-                                       self.each( callback, [ responseText, status, jqXHR ] );
-                               }
-                       }
-               });
-
-               return this;
-       },
-
-       serialize: function() {
-               return jQuery.param( this.serializeArray() );
-       },
-
-       serializeArray: function() {
-               return this.map(function(){
-                       return this.elements ? jQuery.makeArray( this.elements ) : this;
-               })
-               .filter(function(){
-                       return this.name && !this.disabled &&
-                               ( this.checked || rselectTextarea.test( this.nodeName ) ||
-                                       rinput.test( this.type ) );
-               })
-               .map(function( i, elem ){
-                       var val = jQuery( this ).val();
-
-                       return val == null ?
-                               null :
-                               jQuery.isArray( val ) ?
-                                       jQuery.map( val, function( val, i ){
-                                               return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
-                                       }) :
-                                       { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
-               }).get();
-       }
-});
-
-// Attach a bunch of functions for handling common AJAX events
-jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split( " " ), function( i, o ){
-       jQuery.fn[ o ] = function( f ){
-               return this.on( o, f );
-       };
-});
-
-jQuery.each( [ "get", "post" ], function( i, method ) {
-       jQuery[ method ] = function( url, data, callback, type ) {
-               // shift arguments if data argument was omitted
-               if ( jQuery.isFunction( data ) ) {
-                       type = type || callback;
-                       callback = data;
-                       data = undefined;
-               }
-
-               return jQuery.ajax({
-                       type: method,
-                       url: url,
-                       data: data,
-                       success: callback,
-                       dataType: type
-               });
-       };
-});
-
-jQuery.extend({
-
-       getScript: function( url, callback ) {
-               return jQuery.get( url, undefined, callback, "script" );
-       },
-
-       getJSON: function( url, data, callback ) {
-               return jQuery.get( url, data, callback, "json" );
-       },
-
-       // Creates a full fledged settings object into target
-       // with both ajaxSettings and settings fields.
-       // If target is omitted, writes into ajaxSettings.
-       ajaxSetup: function( target, settings ) {
-               if ( settings ) {
-                       // Building a settings object
-                       ajaxExtend( target, jQuery.ajaxSettings );
-               } else {
-                       // Extending ajaxSettings
-                       settings = target;
-                       target = jQuery.ajaxSettings;
-               }
-               ajaxExtend( target, settings );
-               return target;
-       },
-
-       ajaxSettings: {
-               url: ajaxLocation,
-               isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
-               global: true,
-               type: "GET",
-               contentType: "application/x-www-form-urlencoded",
-               processData: true,
-               async: true,
-               /*
-               timeout: 0,
-               data: null,
-               dataType: null,
-               username: null,
-               password: null,
-               cache: null,
-               traditional: false,
-               headers: {},
-               */
-
-               accepts: {
-                       xml: "application/xml, text/xml",
-                       html: "text/html",
-                       text: "text/plain",
-                       json: "application/json, text/javascript",
-                       "*": allTypes
-               },
-
-               contents: {
-                       xml: /xml/,
-                       html: /html/,
-                       json: /json/
-               },
-
-               responseFields: {
-                       xml: "responseXML",
-                       text: "responseText"
-               },
-
-               // List of data converters
-               // 1) key format is "source_type destination_type" (a single space in-between)
-               // 2) the catchall symbol "*" can be used for source_type
-               converters: {
-
-                       // Convert anything to text
-                       "* text": window.String,
-
-                       // Text to html (true = no transformation)
-                       "text html": true,
-
-                       // Evaluate text as a json expression
-                       "text json": jQuery.parseJSON,
-
-                       // Parse text as xml
-                       "text xml": jQuery.parseXML
-               },
-
-               // For options that shouldn't be deep extended:
-               // you can add your own custom options here if
-               // and when you create one that shouldn't be
-               // deep extended (see ajaxExtend)
-               flatOptions: {
-                       context: true,
-                       url: true
-               }
-       },
-
-       ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
-       ajaxTransport: addToPrefiltersOrTransports( transports ),
-
-       // Main method
-       ajax: function( url, options ) {
-
-               // If url is an object, simulate pre-1.5 signature
-               if ( typeof url === "object" ) {
-                       options = url;
-                       url = undefined;
-               }
-
-               // Force options to be an object
-               options = options || {};
-
-               var // Create the final options object
-                       s = jQuery.ajaxSetup( {}, options ),
-                       // Callbacks context
-                       callbackContext = s.context || s,
-                       // Context for global events
-                       // It's the callbackContext if one was provided in the options
-                       // and if it's a DOM node or a jQuery collection
-                       globalEventContext = callbackContext !== s &&
-                               ( callbackContext.nodeType || callbackContext instanceof jQuery ) ?
-                                               jQuery( callbackContext ) : jQuery.event,
-                       // Deferreds
-                       deferred = jQuery.Deferred(),
-                       completeDeferred = jQuery.Callbacks( "once memory" ),
-                       // Status-dependent callbacks
-                       statusCode = s.statusCode || {},
-                       // ifModified key
-                       ifModifiedKey,
-                       // Headers (they are sent all at once)
-                       requestHeaders = {},
-                       requestHeadersNames = {},
-                       // Response headers
-                       responseHeadersString,
-                       responseHeaders,
-                       // transport
-                       transport,
-                       // timeout handle
-                       timeoutTimer,
-                       // Cross-domain detection vars
-                       parts,
-                       // The jqXHR state
-                       state = 0,
-                       // To know if global events are to be dispatched
-                       fireGlobals,
-                       // Loop variable
-                       i,
-                       // Fake xhr
-                       jqXHR = {
-
-                               readyState: 0,
-
-                               // Caches the header
-                               setRequestHeader: function( name, value ) {
-                                       if ( !state ) {
-                                               var lname = name.toLowerCase();
-                                               name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
-                                               requestHeaders[ name ] = value;
-                                       }
-                                       return this;
-                               },
-
-                               // Raw string
-                               getAllResponseHeaders: function() {
-                                       return state === 2 ? responseHeadersString : null;
-                               },
-
-                               // Builds headers hashtable if needed
-                               getResponseHeader: function( key ) {
-                                       var match;
-                                       if ( state === 2 ) {
-                                               if ( !responseHeaders ) {
-                                                       responseHeaders = {};
-                                                       while( ( match = rheaders.exec( responseHeadersString ) ) ) {
-                                                               responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
-                                                       }
-                                               }
-                                               match = responseHeaders[ key.toLowerCase() ];
-                                       }
-                                       return match === undefined ? null : match;
-                               },
-
-                               // Overrides response content-type header
-                               overrideMimeType: function( type ) {
-                                       if ( !state ) {
-                                               s.mimeType = type;
-                                       }
-                                       return this;
-                               },
-
-                               // Cancel the request
-                               abort: function( statusText ) {
-                                       statusText = statusText || "abort";
-                                       if ( transport ) {
-                                               transport.abort( statusText );
-                                       }
-                                       done( 0, statusText );
-                                       return this;
-                               }
-                       };
-
-               // Callback for when everything is done
-               // It is defined here because jslint complains if it is declared
-               // at the end of the function (which would be more logical and readable)
-               function done( status, nativeStatusText, responses, headers ) {
-
-                       // Called once
-                       if ( state === 2 ) {
-                               return;
-                       }
-
-                       // State is "done" now
-                       state = 2;
-
-                       // Clear timeout if it exists
-                       if ( timeoutTimer ) {
-                               clearTimeout( timeoutTimer );
-                       }
-
-                       // Dereference transport for early garbage collection
-                       // (no matter how long the jqXHR object will be used)
-                       transport = undefined;
-
-                       // Cache response headers
-                       responseHeadersString = headers || "";
-
-                       // Set readyState
-                       jqXHR.readyState = status > 0 ? 4 : 0;
-
-                       var isSuccess,
-                               success,
-                               error,
-                               statusText = nativeStatusText,
-                               response = responses ? ajaxHandleResponses( s, jqXHR, responses ) : undefined,
-                               lastModified,
-                               etag;
-
-                       // If successful, handle type chaining
-                       if ( status >= 200 && status < 300 || status === 304 ) {
-
-                               // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
-                               if ( s.ifModified ) {
-
-                                       if ( ( lastModified = jqXHR.getResponseHeader( "Last-Modified" ) ) ) {
-                                               jQuery.lastModified[ ifModifiedKey ] = lastModified;
-                                       }
-                                       if ( ( etag = jqXHR.getResponseHeader( "Etag" ) ) ) {
-                                               jQuery.etag[ ifModifiedKey ] = etag;
-                                       }
-                               }
-
-                               // If not modified
-                               if ( status === 304 ) {
-
-                                       statusText = "notmodified";
-                                       isSuccess = true;
-
-                               // If we have data
-                               } else {
-
-                                       try {
-                                               success = ajaxConvert( s, response );
-                                               statusText = "success";
-                                               isSuccess = true;
-                                       } catch(e) {
-                                               // We have a parsererror
-                                               statusText = "parsererror";
-                                               error = e;
-                                       }
-                               }
-                       } else {
-                               // We extract error from statusText
-                               // then normalize statusText and status for non-aborts
-                               error = statusText;
-                               if ( !statusText || status ) {
-                                       statusText = "error";
-                                       if ( status < 0 ) {
-                                               status = 0;
-                                       }
-                               }
-                       }
-
-                       // Set data for the fake xhr object
-                       jqXHR.status = status;
-                       jqXHR.statusText = "" + ( nativeStatusText || statusText );
-
-                       // Success/Error
-                       if ( isSuccess ) {
-                               deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
-                       } else {
-                               deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
-                       }
-
-                       // Status-dependent callbacks
-                       jqXHR.statusCode( statusCode );
-                       statusCode = undefined;
-
-                       if ( fireGlobals ) {
-                               globalEventContext.trigger( "ajax" + ( isSuccess ? "Success" : "Error" ),
-                                               [ jqXHR, s, isSuccess ? success : error ] );
-                       }
-
-                       // Complete
-                       completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
-
-                       if ( fireGlobals ) {
-                               globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
-                               // Handle the global AJAX counter
-                               if ( !( --jQuery.active ) ) {
-                                       jQuery.event.trigger( "ajaxStop" );
-                               }
-                       }
-               }
-
-               // Attach deferreds
-               deferred.promise( jqXHR );
-               jqXHR.success = jqXHR.done;
-               jqXHR.error = jqXHR.fail;
-               jqXHR.complete = completeDeferred.add;
-
-               // Status-dependent callbacks
-               jqXHR.statusCode = function( map ) {
-                       if ( map ) {
-                               var tmp;
-                               if ( state < 2 ) {
-                                       for ( tmp in map ) {
-                                               statusCode[ tmp ] = [ statusCode[tmp], map[tmp] ];
-                                       }
-                               } else {
-                                       tmp = map[ jqXHR.status ];
-                                       jqXHR.then( tmp, tmp );
-                               }
-                       }
-                       return this;
-               };
-
-               // Remove hash character (#7531: and string promotion)
-               // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
-               // We also use the url parameter if available
-               s.url = ( ( url || s.url ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
-
-               // Extract dataTypes list
-               s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( rspacesAjax );
-
-               // Determine if a cross-domain request is in order
-               if ( s.crossDomain == null ) {
-                       parts = rurl.exec( s.url.toLowerCase() );
-                       s.crossDomain = !!( parts &&
-                               ( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||
-                                       ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
-                                               ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) )
-                       );
-               }
-
-               // Convert data if not already a string
-               if ( s.data && s.processData && typeof s.data !== "string" ) {
-                       s.data = jQuery.param( s.data, s.traditional );
-               }
-
-               // Apply prefilters
-               inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
-
-               // If request was aborted inside a prefiler, stop there
-               if ( state === 2 ) {
-                       return false;
-               }
-
-               // We can fire global events as of now if asked to
-               fireGlobals = s.global;
-
-               // Uppercase the type
-               s.type = s.type.toUpperCase();
-
-               // Determine if request has content
-               s.hasContent = !rnoContent.test( s.type );
-
-               // Watch for a new set of requests
-               if ( fireGlobals && jQuery.active++ === 0 ) {
-                       jQuery.event.trigger( "ajaxStart" );
-               }
-
-               // More options handling for requests with no content
-               if ( !s.hasContent ) {
-
-                       // If data is available, append data to url
-                       if ( s.data ) {
-                               s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.data;
-                               // #9682: remove data so that it's not used in an eventual retry
-                               delete s.data;
-                       }
-
-                       // Get ifModifiedKey before adding the anti-cache parameter
-                       ifModifiedKey = s.url;
-
-                       // Add anti-cache in url if needed
-                       if ( s.cache === false ) {
-
-                               var ts = jQuery.now(),
-                                       // try replacing _= if it is there
-                                       ret = s.url.replace( rts, "$1_=" + ts );
-
-                               // if nothing was replaced, add timestamp to the end
-                               s.url = ret + ( ( ret === s.url ) ? ( rquery.test( s.url ) ? "&" : "?" ) + "_=" + ts : "" );
-                       }
-               }
-
-               // Set the correct header, if data is being sent
-               if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
-                       jqXHR.setRequestHeader( "Content-Type", s.contentType );
-               }
-
-               // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
-               if ( s.ifModified ) {
-                       ifModifiedKey = ifModifiedKey || s.url;
-                       if ( jQuery.lastModified[ ifModifiedKey ] ) {
-                               jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ ifModifiedKey ] );
-                       }
-                       if ( jQuery.etag[ ifModifiedKey ] ) {
-                               jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ ifModifiedKey ] );
-                       }
-               }
-
-               // Set the Accepts header for the server, depending on the dataType
-               jqXHR.setRequestHeader(
-                       "Accept",
-                       s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
-                               s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
-                               s.accepts[ "*" ]
-               );
-
-               // Check for headers option
-               for ( i in s.headers ) {
-                       jqXHR.setRequestHeader( i, s.headers[ i ] );
-               }
-
-               // Allow custom headers/mimetypes and early abort
-               if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
-                               // Abort if not done already
-                               jqXHR.abort();
-                               return false;
-
-               }
-
-               // Install callbacks on deferreds
-               for ( i in { success: 1, error: 1, complete: 1 } ) {
-                       jqXHR[ i ]( s[ i ] );
-               }
-
-               // Get transport
-               transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
-
-               // If no transport, we auto-abort
-               if ( !transport ) {
-                       done( -1, "No Transport" );
-               } else {
-                       jqXHR.readyState = 1;
-                       // Send global event
-                       if ( fireGlobals ) {
-                               globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
-                       }
-                       // Timeout
-                       if ( s.async && s.timeout > 0 ) {
-                               timeoutTimer = setTimeout( function(){
-                                       jqXHR.abort( "timeout" );
-                               }, s.timeout );
-                       }
-
-                       try {
-                               state = 1;
-                               transport.send( requestHeaders, done );
-                       } catch (e) {
-                               // Propagate exception as error if not done
-                               if ( state < 2 ) {
-                                       done( -1, e );
-                               // Simply rethrow otherwise
-                               } else {
-                                       throw e;
-                               }
-                       }
-               }
-
-               return jqXHR;
-       },
-
-       // Serialize an array of form elements or a set of
-       // key/values into a query string
-       param: function( a, traditional ) {
-               var s = [],
-                       add = function( key, value ) {
-                               // If value is a function, invoke it and return its value
-                               value = jQuery.isFunction( value ) ? value() : value;
-                               s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
-                       };
-
-               // Set traditional to true for jQuery <= 1.3.2 behavior.
-               if ( traditional === undefined ) {
-                       traditional = jQuery.ajaxSettings.traditional;
-               }
-
-               // If an array was passed in, assume that it is an array of form elements.
-               if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
-                       // Serialize the form elements
-                       jQuery.each( a, function() {
-                               add( this.name, this.value );
-                       });
-
-               } else {
-                       // If traditional, encode the "old" way (the way 1.3.2 or older
-                       // did it), otherwise encode params recursively.
-                       for ( var prefix in a ) {
-                               buildParams( prefix, a[ prefix ], traditional, add );
-                       }
-               }
-
-               // Return the resulting serialization
-               return s.join( "&" ).replace( r20, "+" );
-       }
-});
-
-function buildParams( prefix, obj, traditional, add ) {
-       if ( jQuery.isArray( obj ) ) {
-               // Serialize array item.
-               jQuery.each( obj, function( i, v ) {
-                       if ( traditional || rbracket.test( prefix ) ) {
-                               // Treat each array item as a scalar.
-                               add( prefix, v );
-
-                       } else {
-                               // If array item is non-scalar (array or object), encode its
-                               // numeric index to resolve deserialization ambiguity issues.
-                               // Note that rack (as of 1.0.0) can't currently deserialize
-                               // nested arrays properly, and attempting to do so may cause
-                               // a server error. Possible fixes are to modify rack's
-                               // deserialization algorithm or to provide an option or flag
-                               // to force array serialization to be shallow.
-                               buildParams( prefix + "[" + ( typeof v === "object" || jQuery.isArray(v) ? i : "" ) + "]", v, traditional, add );
-                       }
-               });
-
-       } else if ( !traditional && obj != null && typeof obj === "object" ) {
-               // Serialize object item.
-               for ( var name in obj ) {
-                       buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
-               }
-
-       } else {
-               // Serialize scalar item.
-               add( prefix, obj );
-       }
-}
-
-// This is still on the jQuery object... for now
-// Want to move this to jQuery.ajax some day
-jQuery.extend({
-
-       // Counter for holding the number of active queries
-       active: 0,
-
-       // Last-Modified header cache for next request
-       lastModified: {},
-       etag: {}
-
-});
-
-/* Handles responses to an ajax request:
- * - sets all responseXXX fields accordingly
- * - finds the right dataType (mediates between content-type and expected dataType)
- * - returns the corresponding response
- */
-function ajaxHandleResponses( s, jqXHR, responses ) {
-
-       var contents = s.contents,
-               dataTypes = s.dataTypes,
-               responseFields = s.responseFields,
-               ct,
-               type,
-               finalDataType,
-               firstDataType;
-
-       // Fill responseXXX fields
-       for ( type in responseFields ) {
-               if ( type in responses ) {
-                       jqXHR[ responseFields[type] ] = responses[ type ];
-               }
-       }
-
-       // Remove auto dataType and get content-type in the process
-       while( dataTypes[ 0 ] === "*" ) {
-               dataTypes.shift();
-               if ( ct === undefined ) {
-                       ct = s.mimeType || jqXHR.getResponseHeader( "content-type" );
-               }
-       }
-
-       // Check if we're dealing with a known content-type
-       if ( ct ) {
-               for ( type in contents ) {
-                       if ( contents[ type ] && contents[ type ].test( ct ) ) {
-                               dataTypes.unshift( type );
-                               break;
-                       }
-               }
-       }
-
-       // Check to see if we have a response for the expected dataType
-       if ( dataTypes[ 0 ] in responses ) {
-               finalDataType = dataTypes[ 0 ];
-       } else {
-               // Try convertible dataTypes
-               for ( type in responses ) {
-                       if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
-                               finalDataType = type;
-                               break;
-                       }
-                       if ( !firstDataType ) {
-                               firstDataType = type;
-                       }
-               }
-               // Or just use first one
-               finalDataType = finalDataType || firstDataType;
-       }
-
-       // If we found a dataType
-       // We add the dataType to the list if needed
-       // and return the corresponding response
-       if ( finalDataType ) {
-               if ( finalDataType !== dataTypes[ 0 ] ) {
-                       dataTypes.unshift( finalDataType );
-               }
-               return responses[ finalDataType ];
-       }
-}
-
-// Chain conversions given the request and the original response
-function ajaxConvert( s, response ) {
-
-       // Apply the dataFilter if provided
-       if ( s.dataFilter ) {
-               response = s.dataFilter( response, s.dataType );
-       }
-
-       var dataTypes = s.dataTypes,
-               converters = {},
-               i,
-               key,
-               length = dataTypes.length,
-               tmp,
-               // Current and previous dataTypes
-               current = dataTypes[ 0 ],
-               prev,
-               // Conversion expression
-               conversion,
-               // Conversion function
-               conv,
-               // Conversion functions (transitive conversion)
-               conv1,
-               conv2;
-
-       // For each dataType in the chain
-       for ( i = 1; i < length; i++ ) {
-
-               // Create converters map
-               // with lowercased keys
-               if ( i === 1 ) {
-                       for ( key in s.converters ) {
-                               if ( typeof key === "string" ) {
-                                       converters[ key.toLowerCase() ] = s.converters[ key ];
-                               }
-                       }
-               }
-
-               // Get the dataTypes
-               prev = current;
-               current = dataTypes[ i ];
-
-               // If current is auto dataType, update it to prev
-               if ( current === "*" ) {
-                       current = prev;
-               // If no auto and dataTypes are actually different
-               } else if ( prev !== "*" && prev !== current ) {
-
-                       // Get the converter
-                       conversion = prev + " " + current;
-                       conv = converters[ conversion ] || converters[ "* " + current ];
-
-                       // If there is no direct converter, search transitively
-                       if ( !conv ) {
-                               conv2 = undefined;
-                               for ( conv1 in converters ) {
-                                       tmp = conv1.split( " " );
-                                       if ( tmp[ 0 ] === prev || tmp[ 0 ] === "*" ) {
-                                               conv2 = converters[ tmp[1] + " " + current ];
-                                               if ( conv2 ) {
-                                                       conv1 = converters[ conv1 ];
-                                                       if ( conv1 === true ) {
-                                                               conv = conv2;
-                                                       } else if ( conv2 === true ) {
-                                                               conv = conv1;
-                                                       }
-                                                       break;
-                                               }
-                                       }
-                               }
-                       }
-                       // If we found no converter, dispatch an error
-                       if ( !( conv || conv2 ) ) {
-                               jQuery.error( "No conversion from " + conversion.replace(" "," to ") );
-                       }
-                       // If found converter is not an equivalence
-                       if ( conv !== true ) {
-                               // Convert with 1 or 2 converters accordingly
-                               response = conv ? conv( response ) : conv2( conv1(response) );
-                       }
-               }
-       }
-       return response;
-}
-
-
-
-
-var jsc = jQuery.now(),
-       jsre = /(\=)\?(&|$)|\?\?/i;
-
-// Default jsonp settings
-jQuery.ajaxSetup({
-       jsonp: "callback",
-       jsonpCallback: function() {
-               return jQuery.expando + "_" + ( jsc++ );
-       }
-});
-
-// Detect, normalize options and install callbacks for jsonp requests
-jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
-
-       var inspectData = s.contentType === "application/x-www-form-urlencoded" &&
-               ( typeof s.data === "string" );
-
-       if ( s.dataTypes[ 0 ] === "jsonp" ||
-               s.jsonp !== false && ( jsre.test( s.url ) ||
-                               inspectData && jsre.test( s.data ) ) ) {
-
-               var responseContainer,
-                       jsonpCallback = s.jsonpCallback =
-                               jQuery.isFunction( s.jsonpCallback ) ? s.jsonpCallback() : s.jsonpCallback,
-                       previous = window[ jsonpCallback ],
-                       url = s.url,
-                       data = s.data,
-                       replace = "$1" + jsonpCallback + "$2";
-
-               if ( s.jsonp !== false ) {
-                       url = url.replace( jsre, replace );
-                       if ( s.url === url ) {
-                               if ( inspectData ) {
-                                       data = data.replace( jsre, replace );
-                               }
-                               if ( s.data === data ) {
-                                       // Add callback manually
-                                       url += (/\?/.test( url ) ? "&" : "?") + s.jsonp + "=" + jsonpCallback;
-                               }
-                       }
-               }
-
-               s.url = url;
-               s.data = data;
-
-               // Install callback
-               window[ jsonpCallback ] = function( response ) {
-                       responseContainer = [ response ];
-               };
-
-               // Clean-up function
-               jqXHR.always(function() {
-                       // Set callback back to previous value
-                       window[ jsonpCallback ] = previous;
-                       // Call if it was a function and we have a response
-                       if ( responseContainer && jQuery.isFunction( previous ) ) {
-                               window[ jsonpCallback ]( responseContainer[ 0 ] );
-                       }
-               });
-
-               // Use data converter to retrieve json after script execution
-               s.converters["script json"] = function() {
-                       if ( !responseContainer ) {
-                               jQuery.error( jsonpCallback + " was not called" );
-                       }
-                       return responseContainer[ 0 ];
-               };
-
-               // force json dataType
-               s.dataTypes[ 0 ] = "json";
-
-               // Delegate to script
-               return "script";
-       }
-});
-
-
-
-
-// Install script dataType
-jQuery.ajaxSetup({
-       accepts: {
-               script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
-       },
-       contents: {
-               script: /javascript|ecmascript/
-       },
-       converters: {
-               "text script": function( text ) {
-                       jQuery.globalEval( text );
-                       return text;
-               }
-       }
-});
-
-// Handle cache's special case and global
-jQuery.ajaxPrefilter( "script", function( s ) {
-       if ( s.cache === undefined ) {
-               s.cache = false;
-       }
-       if ( s.crossDomain ) {
-               s.type = "GET";
-               s.global = false;
-       }
-});
-
-// Bind script tag hack transport
-jQuery.ajaxTransport( "script", function(s) {
-
-       // This transport only deals with cross domain requests
-       if ( s.crossDomain ) {
-
-               var script,
-                       head = document.head || document.getElementsByTagName( "head" )[0] || document.documentElement;
-
-               return {
-
-                       send: function( _, callback ) {
-
-                               script = document.createElement( "script" );
-
-                               script.async = "async";
-
-                               if ( s.scriptCharset ) {
-                                       script.charset = s.scriptCharset;
-                               }
-
-                               script.src = s.url;
-
-                               // Attach handlers for all browsers
-                               script.onload = script.onreadystatechange = function( _, isAbort ) {
-
-                                       if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {
-
-                                               // Handle memory leak in IE
-                                               script.onload = script.onreadystatechange = null;
-
-                                               // Remove the script
-                                               if ( head && script.parentNode ) {
-                                                       head.removeChild( script );
-                                               }
-
-                                               // Dereference the script
-                                               script = undefined;
-
-                                               // Callback if not abort
-                                               if ( !isAbort ) {
-                                                       callback( 200, "success" );
-                                               }
-                                       }
-                               };
-                               // Use insertBefore instead of appendChild  to circumvent an IE6 bug.
-                               // This arises when a base node is used (#2709 and #4378).
-                               head.insertBefore( script, head.firstChild );
-                       },
-
-                       abort: function() {
-                               if ( script ) {
-                                       script.onload( 0, 1 );
-                               }
-                       }
-               };
-       }
-});
-
-
-
-
-var // #5280: Internet Explorer will keep connections alive if we don't abort on unload
-       xhrOnUnloadAbort = window.ActiveXObject ? function() {
-               // Abort all pending requests
-               for ( var key in xhrCallbacks ) {
-                       xhrCallbacks[ key ]( 0, 1 );
-               }
-       } : false,
-       xhrId = 0,
-       xhrCallbacks;
-
-// Functions to create xhrs
-function createStandardXHR() {
-       try {
-               return new window.XMLHttpRequest();
-       } catch( e ) {}
-}
-
-function createActiveXHR() {
-       try {
-               return new window.ActiveXObject( "Microsoft.XMLHTTP" );
-       } catch( e ) {}
-}
-
-// Create the request object
-// (This is still attached to ajaxSettings for backward compatibility)
-jQuery.ajaxSettings.xhr = window.ActiveXObject ?
-       /* Microsoft failed to properly
-        * implement the XMLHttpRequest in IE7 (can't request local files),
-        * so we use the ActiveXObject when it is available
-        * Additionally XMLHttpRequest can be disabled in IE7/IE8 so
-        * we need a fallback.
-        */
-       function() {
-               return !this.isLocal && createStandardXHR() || createActiveXHR();
-       } :
-       // For all other browsers, use the standard XMLHttpRequest object
-       createStandardXHR;
-
-// Determine support properties
-(function( xhr ) {
-       jQuery.extend( jQuery.support, {
-               ajax: !!xhr,
-               cors: !!xhr && ( "withCredentials" in xhr )
-       });
-})( jQuery.ajaxSettings.xhr() );
-
-// Create transport if the browser can provide an xhr
-if ( jQuery.support.ajax ) {
-
-       jQuery.ajaxTransport(function( s ) {
-               // Cross domain only allowed if supported through XMLHttpRequest
-               if ( !s.crossDomain || jQuery.support.cors ) {
-
-                       var callback;
-
-                       return {
-                               send: function( headers, complete ) {
-
-                                       // Get a new xhr
-                                       var xhr = s.xhr(),
-                                               handle,
-                                               i;
-
-                                       // Open the socket
-                                       // Passing null username, generates a login popup on Opera (#2865)
-                                       if ( s.username ) {
-                                               xhr.open( s.type, s.url, s.async, s.username, s.password );
-                                       } else {
-                                               xhr.open( s.type, s.url, s.async );
-                                       }
-
-                                       // Apply custom fields if provided
-                                       if ( s.xhrFields ) {
-                                               for ( i in s.xhrFields ) {
-                                                       xhr[ i ] = s.xhrFields[ i ];
-                                               }
-                                       }
-
-                                       // Override mime type if needed
-                                       if ( s.mimeType && xhr.overrideMimeType ) {
-                                               xhr.overrideMimeType( s.mimeType );
-                                       }
-
-                                       // X-Requested-With header
-                                       // For cross-domain requests, seeing as conditions for a preflight are
-                                       // akin to a jigsaw puzzle, we simply never set it to be sure.
-                                       // (it can always be set on a per-request basis or even using ajaxSetup)
-                                       // For same-domain requests, won't change header if already provided.
-                                       if ( !s.crossDomain && !headers["X-Requested-With"] ) {
-                                               headers[ "X-Requested-With" ] = "XMLHttpRequest";
-                                       }
-
-                                       // Need an extra try/catch for cross domain requests in Firefox 3
-                                       try {
-                                               for ( i in headers ) {
-                                                       xhr.setRequestHeader( i, headers[ i ] );
-                                               }
-                                       } catch( _ ) {}
-
-                                       // Do send the request
-                                       // This may raise an exception which is actually
-                                       // handled in jQuery.ajax (so no try/catch here)
-                                       xhr.send( ( s.hasContent && s.data ) || null );
-
-                                       // Listener
-                                       callback = function( _, isAbort ) {
-
-                                               var status,
-                                                       statusText,
-                                                       responseHeaders,
-                                                       responses,
-                                                       xml;
-
-                                               // Firefox throws exceptions when accessing properties
-                                               // of an xhr when a network error occured
-                                               // http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
-                                               try {
-
-                                                       // Was never called and is aborted or complete
-                                                       if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
-
-                                                               // Only called once
-                                                               callback = undefined;
-
-                                                               // Do not keep as active anymore
-                                                               if ( handle ) {
-                                                                       xhr.onreadystatechange = jQuery.noop;
-                                                                       if ( xhrOnUnloadAbort ) {
-                                                                               delete xhrCallbacks[ handle ];
-                                                                       }
-                                                               }
-
-                                                               // If it's an abort
-                                                               if ( isAbort ) {
-                                                                       // Abort it manually if needed
-                                                                       if ( xhr.readyState !== 4 ) {
-                                                                               xhr.abort();
-                                                                       }
-                                                               } else {
-                                                                       status = xhr.status;
-                                                                       responseHeaders = xhr.getAllResponseHeaders();
-                                                                       responses = {};
-                                                                       xml = xhr.responseXML;
-
-                                                                       // Construct response list
-                                                                       if ( xml && xml.documentElement /* #4958 */ ) {
-                                                                               responses.xml = xml;
-                                                                       }
-                                                                       responses.text = xhr.responseText;
-
-                                                                       // Firefox throws an exception when accessing
-                                                                       // statusText for faulty cross-domain requests
-                                                                       try {
-                                                                               statusText = xhr.statusText;
-                                                                       } catch( e ) {
-                                                                               // We normalize with Webkit giving an empty statusText
-                                                                               statusText = "";
-                                                                       }
-
-                                                                       // Filter status for non standard behaviors
-
-                                                                       // If the request is local and we have data: assume a success
-                                                                       // (success with no data won't get notified, that's the best we
-                                                                       // can do given current implementations)
-                                                                       if ( !status && s.isLocal && !s.crossDomain ) {
-                                                                               status = responses.text ? 200 : 404;
-                                                                       // IE - #1450: sometimes returns 1223 when it should be 204
-                                                                       } else if ( status === 1223 ) {
-                                                                               status = 204;
-                                                                       }
-                                                               }
-                                                       }
-                                               } catch( firefoxAccessException ) {
-                                                       if ( !isAbort ) {
-                                                               complete( -1, firefoxAccessException );
-                                                       }
-                                               }
-
-                                               // Call complete if needed
-                                               if ( responses ) {
-                                                       complete( status, statusText, responses, responseHeaders );
-                                               }
-                                       };
-
-                                       // if we're in sync mode or it's in cache
-                                       // and has been retrieved directly (IE6 & IE7)
-                                       // we need to manually fire the callback
-                                       if ( !s.async || xhr.readyState === 4 ) {
-                                               callback();
-                                       } else {
-                                               handle = ++xhrId;
-                                               if ( xhrOnUnloadAbort ) {
-                                                       // Create the active xhrs callbacks list if needed
-                                                       // and attach the unload handler
-                                                       if ( !xhrCallbacks ) {
-                                                               xhrCallbacks = {};
-                                                               jQuery( window ).unload( xhrOnUnloadAbort );
-                                                       }
-                                                       // Add to list of active xhrs callbacks
-                                                       xhrCallbacks[ handle ] = callback;
-                                               }
-                                               xhr.onreadystatechange = callback;
-                                       }
-                               },
-
-                               abort: function() {
-                                       if ( callback ) {
-                                               callback(0,1);
-                                       }
-                               }
-                       };
-               }
-       });
-}
-
-
-
-
-var elemdisplay = {},
-       iframe, iframeDoc,
-       rfxtypes = /^(?:toggle|show|hide)$/,
-       rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
-       timerId,
-       fxAttrs = [
-               // height animations
-               [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
-               // width animations
-               [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
-               // opacity animations
-               [ "opacity" ]
-       ],
-       fxNow;
-
-jQuery.fn.extend({
-       show: function( speed, easing, callback ) {
-               var elem, display;
-
-               if ( speed || speed === 0 ) {
-                       return this.animate( genFx("show", 3), speed, easing, callback );
-
-               } else {
-                       for ( var i = 0, j = this.length; i < j; i++ ) {
-                               elem = this[ i ];
-
-                               if ( elem.style ) {
-                                       display = elem.style.display;
-
-                                       // Reset the inline display of this element to learn if it is
-                                       // being hidden by cascaded rules or not
-                                       if ( !jQuery._data(elem, "olddisplay") && display === "none" ) {
-                                               display = elem.style.display = "";
-                                       }
-
-                                       // Set elements which have been overridden with display: none
-                                       // in a stylesheet to whatever the default browser style is
-                                       // for such an element
-                                       if ( display === "" && jQuery.css(elem, "display") === "none" ) {
-                                               jQuery._data( elem, "olddisplay", defaultDisplay(elem.nodeName) );
-                                       }
-                               }
-                       }
-
-                       // Set the display of most of the elements in a second loop
-                       // to avoid the constant reflow
-                       for ( i = 0; i < j; i++ ) {
-                               elem = this[ i ];
-
-                               if ( elem.style ) {
-                                       display = elem.style.display;
-
-                                       if ( display === "" || display === "none" ) {
-                                               elem.style.display = jQuery._data( elem, "olddisplay" ) || "";
-                                       }
-                               }
-                       }
-
-                       return this;
-               }
-       },
-
-       hide: function( speed, easing, callback ) {
-               if ( speed || speed === 0 ) {
-                       return this.animate( genFx("hide", 3), speed, easing, callback);
-
-               } else {
-                       var elem, display,
-                               i = 0,
-                               j = this.length;
-
-                       for ( ; i < j; i++ ) {
-                               elem = this[i];
-                               if ( elem.style ) {
-                                       display = jQuery.css( elem, "display" );
-
-                                       if ( display !== "none" && !jQuery._data( elem, "olddisplay" ) ) {
-                                               jQuery._data( elem, "olddisplay", display );
-                                       }
-                               }
-                       }
-
-                       // Set the display of the elements in a second loop
-                       // to avoid the constant reflow
-                       for ( i = 0; i < j; i++ ) {
-                               if ( this[i].style ) {
-                                       this[i].style.display = "none";
-                               }
-                       }
-
-                       return this;
-               }
-       },
-
-       // Save the old toggle function
-       _toggle: jQuery.fn.toggle,
-
-       toggle: function( fn, fn2, callback ) {
-               var bool = typeof fn === "boolean";
-
-               if ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) {
-                       this._toggle.apply( this, arguments );
-
-               } else if ( fn == null || bool ) {
-                       this.each(function() {
-                               var state = bool ? fn : jQuery(this).is(":hidden");
-                               jQuery(this)[ state ? "show" : "hide" ]();
-                       });
-
-               } else {
-                       this.animate(genFx("toggle", 3), fn, fn2, callback);
-               }
-
-               return this;
-       },
-
-       fadeTo: function( speed, to, easing, callback ) {
-               return this.filter(":hidden").css("opacity", 0).show().end()
-                                       .animate({opacity: to}, speed, easing, callback);
-       },
-
-       animate: function( prop, speed, easing, callback ) {
-               var optall = jQuery.speed( speed, easing, callback );
-
-               if ( jQuery.isEmptyObject( prop ) ) {
-                       return this.each( optall.complete, [ false ] );
-               }
-
-               // Do not change referenced properties as per-property easing will be lost
-               prop = jQuery.extend( {}, prop );
-
-               function doAnimation() {
-                       // XXX 'this' does not always have a nodeName when running the
-                       // test suite
-
-                       if ( optall.queue === false ) {
-                               jQuery._mark( this );
-                       }
-
-                       var opt = jQuery.extend( {}, optall ),
-                               isElement = this.nodeType === 1,
-                               hidden = isElement && jQuery(this).is(":hidden"),
-                               name, val, p, e,
-                               parts, start, end, unit,
-                               method;
-
-                       // will store per property easing and be used to determine when an animation is complete
-                       opt.animatedProperties = {};
-
-                       for ( p in prop ) {
-
-                               // property name normalization
-                               name = jQuery.camelCase( p );
-                               if ( p !== name ) {
-                                       prop[ name ] = prop[ p ];
-                                       delete prop[ p ];
-                               }
-
-                               val = prop[ name ];
-
-                               // easing resolution: per property > opt.specialEasing > opt.easing > 'swing' (default)
-                               if ( jQuery.isArray( val ) ) {
-                                       opt.animatedProperties[ name ] = val[ 1 ];
-                                       val = prop[ name ] = val[ 0 ];
-                               } else {
-                                       opt.animatedProperties[ name ] = opt.specialEasing && opt.specialEasing[ name ] || opt.easing || 'swing';
-                               }
-
-                               if ( val === "hide" && hidden || val === "show" && !hidden ) {
-                                       return opt.complete.call( this );
-                               }
-
-                               if ( isElement && ( name === "height" || name === "width" ) ) {
-                                       // Make sure that nothing sneaks out
-                                       // Record all 3 overflow attributes because IE does not
-                                       // change the overflow attribute when overflowX and
-                                       // overflowY are set to the same value
-                                       opt.overflow = [ this.style.overflow, this.style.overflowX, this.style.overflowY ];
-
-                                       // Set display property to inline-block for height/width
-                                       // animations on inline elements that are having width/height animated
-                                       if ( jQuery.css( this, "display" ) === "inline" &&
-                                                       jQuery.css( this, "float" ) === "none" ) {
-
-                                               // inline-level elements accept inline-block;
-                                               // block-level elements need to be inline with layout
-                                               if ( !jQuery.support.inlineBlockNeedsLayout || defaultDisplay( this.nodeName ) === "inline" ) {
-                                                       this.style.display = "inline-block";
-
-                                               } else {
-                                                       this.style.zoom = 1;
-                                               }
-                                       }
-                               }
-                       }
-
-                       if ( opt.overflow != null ) {
-                               this.style.overflow = "hidden";
-                       }
-
-                       for ( p in prop ) {
-                               e = new jQuery.fx( this, opt, p );
-                               val = prop[ p ];
-
-                               if ( rfxtypes.test( val ) ) {
-
-                                       // Tracks whether to show or hide based on private
-                                       // data attached to the element
-                                       method = jQuery._data( this, "toggle" + p ) || ( val === "toggle" ? hidden ? "show" : "hide" : 0 );
-                                       if ( method ) {
-                                               jQuery._data( this, "toggle" + p, method === "show" ? "hide" : "show" );
-                                               e[ method ]();
-                                       } else {
-                                               e[ val ]();
-                                       }
-
-                               } else {
-                                       parts = rfxnum.exec( val );
-                                       start = e.cur();
-
-                                       if ( parts ) {
-                                               end = parseFloat( parts[2] );
-                                               unit = parts[3] || ( jQuery.cssNumber[ p ] ? "" : "px" );
-
-                                               // We need to compute starting value
-                                               if ( unit !== "px" ) {
-                                                       jQuery.style( this, p, (end || 1) + unit);
-                                                       start = ( (end || 1) / e.cur() ) * start;
-                                                       jQuery.style( this, p, start + unit);
-                                               }
-
-                                               // If a +=/-= token was provided, we're doing a relative animation
-                                               if ( parts[1] ) {
-                                                       end = ( (parts[ 1 ] === "-=" ? -1 : 1) * end ) + start;
-                                               }
-
-                                               e.custom( start, end, unit );
-
-                                       } else {
-                                               e.custom( start, val, "" );
-                                       }
-                               }
-                       }
-
-                       // For JS strict compliance
-                       return true;
-               }
-
-               return optall.queue === false ?
-                       this.each( doAnimation ) :
-                       this.queue( optall.queue, doAnimation );
-       },
-
-       stop: function( type, clearQueue, gotoEnd ) {
-               if ( typeof type !== "string" ) {
-                       gotoEnd = clearQueue;
-                       clearQueue = type;
-                       type = undefined;
-               }
-               if ( clearQueue && type !== false ) {
-                       this.queue( type || "fx", [] );
-               }
-
-               return this.each(function() {
-                       var index,
-                               hadTimers = false,
-                               timers = jQuery.timers,
-                               data = jQuery._data( this );
-
-                       // clear marker counters if we know they won't be
-                       if ( !gotoEnd ) {
-                               jQuery._unmark( true, this );
-                       }
-
-                       function stopQueue( elem, data, index ) {
-                               var hooks = data[ index ];
-                               jQuery.removeData( elem, index, true );
-                               hooks.stop( gotoEnd );
-                       }
-
-                       if ( type == null ) {
-                               for ( index in data ) {
-                                       if ( data[ index ] && data[ index ].stop && index.indexOf(".run") === index.length - 4 ) {
-                                               stopQueue( this, data, index );
-                                       }
-                               }
-                       } else if ( data[ index = type + ".run" ] && data[ index ].stop ){
-                               stopQueue( this, data, index );
-                       }
-
-                       for ( index = timers.length; index--; ) {
-                               if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {
-                                       if ( gotoEnd ) {
-
-                                               // force the next step to be the last
-                                               timers[ index ]( true );
-                                       } else {
-                                               timers[ index ].saveState();
-                                       }
-                                       hadTimers = true;
-                                       timers.splice( index, 1 );
-                               }
-                       }
-
-                       // start the next in the queue if the last step wasn't forced
-                       // timers currently will call their complete callbacks, which will dequeue
-                       // but only if they were gotoEnd
-                       if ( !( gotoEnd && hadTimers ) ) {
-                               jQuery.dequeue( this, type );
-                       }
-               });
-       }
-
-});
-
-// Animations created synchronously will run synchronously
-function createFxNow() {
-       setTimeout( clearFxNow, 0 );
-       return ( fxNow = jQuery.now() );
-}
-
-function clearFxNow() {
-       fxNow = undefined;
-}
-
-// Generate parameters to create a standard animation
-function genFx( type, num ) {
-       var obj = {};
-
-       jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice( 0, num )), function() {
-               obj[ this ] = type;
-       });
-
-       return obj;
-}
-
-// Generate shortcuts for custom animations
-jQuery.each({
-       slideDown: genFx( "show", 1 ),
-       slideUp: genFx( "hide", 1 ),
-       slideToggle: genFx( "toggle", 1 ),
-       fadeIn: { opacity: "show" },
-       fadeOut: { opacity: "hide" },
-       fadeToggle: { opacity: "toggle" }
-}, function( name, props ) {
-       jQuery.fn[ name ] = function( speed, easing, callback ) {
-               return this.animate( props, speed, easing, callback );
-       };
-});
-
-jQuery.extend({
-       speed: function( speed, easing, fn ) {
-               var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
-                       complete: fn || !fn && easing ||
-                               jQuery.isFunction( speed ) && speed,
-                       duration: speed,
-                       easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
-               };
-
-               opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
-                       opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
-
-               // normalize opt.queue - true/undefined/null -> "fx"
-               if ( opt.queue == null || opt.queue === true ) {
-                       opt.queue = "fx";
-               }
-
-               // Queueing
-               opt.old = opt.complete;
-
-               opt.complete = function( noUnmark ) {
-                       if ( jQuery.isFunction( opt.old ) ) {
-                               opt.old.call( this );
-                       }
-
-                       if ( opt.queue ) {
-                               jQuery.dequeue( this, opt.queue );
-                       } else if ( noUnmark !== false ) {
-                               jQuery._unmark( this );
-                       }
-               };
-
-               return opt;
-       },
-
-       easing: {
-               linear: function( p, n, firstNum, diff ) {
-                       return firstNum + diff * p;
-               },
-               swing: function( p, n, firstNum, diff ) {
-                       return ( ( -Math.cos( p*Math.PI ) / 2 ) + 0.5 ) * diff + firstNum;
-               }
-       },
-
-       timers: [],
-
-       fx: function( elem, options, prop ) {
-               this.options = options;
-               this.elem = elem;
-               this.prop = prop;
-
-               options.orig = options.orig || {};
-       }
-
-});
-
-jQuery.fx.prototype = {
-       // Simple function for setting a style value
-       update: function() {
-               if ( this.options.step ) {
-                       this.options.step.call( this.elem, this.now, this );
-               }
-
-               ( jQuery.fx.step[ this.prop ] || jQuery.fx.step._default )( this );
-       },
-
-       // Get the current size
-       cur: function() {
-               if ( this.elem[ this.prop ] != null && (!this.elem.style || this.elem.style[ this.prop ] == null) ) {
-                       return this.elem[ this.prop ];
-               }
-
-               var parsed,
-                       r = jQuery.css( this.elem, this.prop );
-               // Empty strings, null, undefined and "auto" are converted to 0,
-               // complex values such as "rotate(1rad)" are returned as is,
-               // simple values such as "10px" are parsed to Float.
-               return isNaN( parsed = parseFloat( r ) ) ? !r || r === "auto" ? 0 : r : parsed;
-       },
-
-       // Start an animation from one number to another
-       custom: function( from, to, unit ) {
-               var self = this,
-                       fx = jQuery.fx;
-
-               this.startTime = fxNow || createFxNow();
-               this.end = to;
-               this.now = this.start = from;
-               this.pos = this.state = 0;
-               this.unit = unit || this.unit || ( jQuery.cssNumber[ this.prop ] ? "" : "px" );
-
-               function t( gotoEnd ) {
-                       return self.step( gotoEnd );
-               }
-
-               t.queue = this.options.queue;
-               t.elem = this.elem;
-               t.saveState = function() {
-                       if ( self.options.hide && jQuery._data( self.elem, "fxshow" + self.prop ) === undefined ) {
-                               jQuery._data( self.elem, "fxshow" + self.prop, self.start );
-                       }
-               };
-
-               if ( t() && jQuery.timers.push(t) && !timerId ) {
-                       timerId = setInterval( fx.tick, fx.interval );
-               }
-       },
-
-       // Simple 'show' function
-       show: function() {
-               var dataShow = jQuery._data( this.elem, "fxshow" + this.prop );
-
-               // Remember where we started, so that we can go back to it later
-               this.options.orig[ this.prop ] = dataShow || jQuery.style( this.elem, this.prop );
-               this.options.show = true;
-
-               // Begin the animation
-               // Make sure that we start at a small width/height to avoid any flash of content
-               if ( dataShow !== undefined ) {
-                       // This show is picking up where a previous hide or show left off
-                       this.custom( this.cur(), dataShow );
-               } else {
-                       this.custom( this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur() );
-               }
-
-               // Start by showing the element
-               jQuery( this.elem ).show();
-       },
-
-       // Simple 'hide' function
-       hide: function() {
-               // Remember where we started, so that we can go back to it later
-               this.options.orig[ this.prop ] = jQuery._data( this.elem, "fxshow" + this.prop ) || jQuery.style( this.elem, this.prop );
-               this.options.hide = true;
-
-               // Begin the animation
-               this.custom( this.cur(), 0 );
-       },
-
-       // Each step of an animation
-       step: function( gotoEnd ) {
-               var p, n, complete,
-                       t = fxNow || createFxNow(),
-                       done = true,
-                       elem = this.elem,
-                       options = this.options;
-
-               if ( gotoEnd || t >= options.duration + this.startTime ) {
-                       this.now = this.end;
-                       this.pos = this.state = 1;
-                       this.update();
-
-                       options.animatedProperties[ this.prop ] = true;
-
-                       for ( p in options.animatedProperties ) {
-                               if ( options.animatedProperties[ p ] !== true ) {
-                                       done = false;
-                               }
-                       }
-
-                       if ( done ) {
-                               // Reset the overflow
-                               if ( options.overflow != null && !jQuery.support.shrinkWrapBlocks ) {
-
-                                       jQuery.each( [ "", "X", "Y" ], function( index, value ) {
-                                               elem.style[ "overflow" + value ] = options.overflow[ index ];
-                                       });
-                               }
-
-                               // Hide the element if the "hide" operation was done
-                               if ( options.hide ) {
-                                       jQuery( elem ).hide();
-                               }
-
-                               // Reset the properties, if the item has been hidden or shown
-                               if ( options.hide || options.show ) {
-                                       for ( p in options.animatedProperties ) {
-                                               jQuery.style( elem, p, options.orig[ p ] );
-                                               jQuery.removeData( elem, "fxshow" + p, true );
-                                               // Toggle data is no longer needed
-                                               jQuery.removeData( elem, "toggle" + p, true );
-                                       }
-                               }
-
-                               // Execute the complete function
-                               // in the event that the complete function throws an exception
-                               // we must ensure it won't be called twice. #5684
-
-                               complete = options.complete;
-                               if ( complete ) {
-
-                                       options.complete = false;
-                                       complete.call( elem );
-                               }
-                       }
-
-                       return false;
-
-               } else {
-                       // classical easing cannot be used with an Infinity duration
-                       if ( options.duration == Infinity ) {
-                               this.now = t;
-                       } else {
-                               n = t - this.startTime;
-                               this.state = n / options.duration;
-
-                               // Perform the easing function, defaults to swing
-                               this.pos = jQuery.easing[ options.animatedProperties[this.prop] ]( this.state, n, 0, 1, options.duration );
-                               this.now = this.start + ( (this.end - this.start) * this.pos );
-                       }
-                       // Perform the next step of the animation
-                       this.update();
-               }
-
-               return true;
-       }
-};
-
-jQuery.extend( jQuery.fx, {
-       tick: function() {
-               var timer,
-                       timers = jQuery.timers,
-                       i = 0;
-
-               for ( ; i < timers.length; i++ ) {
-                       timer = timers[ i ];
-                       // Checks the timer has not already been removed
-                       if ( !timer() && timers[ i ] === timer ) {
-                               timers.splice( i--, 1 );
-                       }
-               }
-
-               if ( !timers.length ) {
-                       jQuery.fx.stop();
-               }
-       },
-
-       interval: 13,
-
-       stop: function() {
-               clearInterval( timerId );
-               timerId = null;
-       },
-
-       speeds: {
-               slow: 600,
-               fast: 200,
-               // Default speed
-               _default: 400
-       },
-
-       step: {
-               opacity: function( fx ) {
-                       jQuery.style( fx.elem, "opacity", fx.now );
-               },
-
-               _default: function( fx ) {
-                       if ( fx.elem.style && fx.elem.style[ fx.prop ] != null ) {
-                               fx.elem.style[ fx.prop ] = fx.now + fx.unit;
-                       } else {
-                               fx.elem[ fx.prop ] = fx.now;
-                       }
-               }
-       }
-});
-
-// Adds width/height step functions
-// Do not set anything below 0
-jQuery.each([ "width", "height" ], function( i, prop ) {
-       jQuery.fx.step[ prop ] = function( fx ) {
-               jQuery.style( fx.elem, prop, Math.max(0, fx.now) + fx.unit );
-       };
-});
-
-if ( jQuery.expr && jQuery.expr.filters ) {
-       jQuery.expr.filters.animated = function( elem ) {
-               return jQuery.grep(jQuery.timers, function( fn ) {
-                       return elem === fn.elem;
-               }).length;
-       };
-}
-
-// Try to restore the default display value of an element
-function defaultDisplay( nodeName ) {
-
-       if ( !elemdisplay[ nodeName ] ) {
-
-               var body = document.body,
-                       elem = jQuery( "<" + nodeName + ">" ).appendTo( body ),
-                       display = elem.css( "display" );
-               elem.remove();
-
-               // If the simple way fails,
-               // get element's real default display by attaching it to a temp iframe
-               if ( display === "none" || display === "" ) {
-                       // No iframe to use yet, so create it
-                       if ( !iframe ) {
-                               iframe = document.createElement( "iframe" );
-                               iframe.frameBorder = iframe.width = iframe.height = 0;
-                       }
-
-                       body.appendChild( iframe );
-
-                       // Create a cacheable copy of the iframe document on first call.
-                       // IE and Opera will allow us to reuse the iframeDoc without re-writing the fake HTML
-                       // document to it; WebKit & Firefox won't allow reusing the iframe document.
-                       if ( !iframeDoc || !iframe.createElement ) {
-                               iframeDoc = ( iframe.contentWindow || iframe.contentDocument ).document;
-                               iframeDoc.write( ( document.compatMode === "CSS1Compat" ? "<!doctype html>" : "" ) + "<html><body>" );
-                               iframeDoc.close();
-                       }
-
-                       elem = iframeDoc.createElement( nodeName );
-
-                       iframeDoc.body.appendChild( elem );
-
-                       display = jQuery.css( elem, "display" );
-                       body.removeChild( iframe );
-               }
-
-               // Store the correct default display
-               elemdisplay[ nodeName ] = display;
-       }
-
-       return elemdisplay[ nodeName ];
-}
-
-
-
-
-var rtable = /^t(?:able|d|h)$/i,
-       rroot = /^(?:body|html)$/i;
-
-if ( "getBoundingClientRect" in document.documentElement ) {
-       jQuery.fn.offset = function( options ) {
-               var elem = this[0], box;
-
-               if ( options ) {
-                       return this.each(function( i ) {
-                               jQuery.offset.setOffset( this, options, i );
-                       });
-               }
-
-               if ( !elem || !elem.ownerDocument ) {
-                       return null;
-               }
-
-               if ( elem === elem.ownerDocument.body ) {
-                       return jQuery.offset.bodyOffset( elem );
-               }
-
-               try {
-                       box = elem.getBoundingClientRect();
-               } catch(e) {}
-
-               var doc = elem.ownerDocument,
-                       docElem = doc.documentElement;
-
-               // Make sure we're not dealing with a disconnected DOM node
-               if ( !box || !jQuery.contains( docElem, elem ) ) {
-                       return box ? { top: box.top, left: box.left } : { top: 0, left: 0 };
-               }
-
-               var body = doc.body,
-                       win = getWindow(doc),
-                       clientTop  = docElem.clientTop  || body.clientTop  || 0,
-                       clientLeft = docElem.clientLeft || body.clientLeft || 0,
-                       scrollTop  = win.pageYOffset || jQuery.support.boxModel && docElem.scrollTop  || body.scrollTop,
-                       scrollLeft = win.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft,
-                       top  = box.top  + scrollTop  - clientTop,
-                       left = box.left + scrollLeft - clientLeft;
-
-               return { top: top, left: left };
-       };
-
-} else {
-       jQuery.fn.offset = function( options ) {
-               var elem = this[0];
-
-               if ( options ) {
-                       return this.each(function( i ) {
-                               jQuery.offset.setOffset( this, options, i );
-                       });
-               }
-
-               if ( !elem || !elem.ownerDocument ) {
-                       return null;
-               }
-
-               if ( elem === elem.ownerDocument.body ) {
-                       return jQuery.offset.bodyOffset( elem );
-               }
-
-               var computedStyle,
-                       offsetParent = elem.offsetParent,
-                       prevOffsetParent = elem,
-                       doc = elem.ownerDocument,
-                       docElem = doc.documentElement,
-                       body = doc.body,
-                       defaultView = doc.defaultView,
-                       prevComputedStyle = defaultView ? defaultView.getComputedStyle( elem, null ) : elem.currentStyle,
-                       top = elem.offsetTop,
-                       left = elem.offsetLeft;
-
-               while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
-                       if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {
-                               break;
-                       }
-
-                       computedStyle = defaultView ? defaultView.getComputedStyle(elem, null) : elem.currentStyle;
-                       top  -= elem.scrollTop;
-                       left -= elem.scrollLeft;
-
-                       if ( elem === offsetParent ) {
-                               top  += elem.offsetTop;
-                               left += elem.offsetLeft;
-
-                               if ( jQuery.support.doesNotAddBorder && !(jQuery.support.doesAddBorderForTableAndCells && rtable.test(elem.nodeName)) ) {
-                                       top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
-                                       left += parseFloat( computedStyle.borderLeftWidth ) || 0;
-                               }
-
-                               prevOffsetParent = offsetParent;
-                               offsetParent = elem.offsetParent;
-                       }
-
-                       if ( jQuery.support.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" ) {
-                               top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
-                               left += parseFloat( computedStyle.borderLeftWidth ) || 0;
-                       }
-
-                       prevComputedStyle = computedStyle;
-               }
-
-               if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" ) {
-                       top  += body.offsetTop;
-                       left += body.offsetLeft;
-               }
-
-               if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {
-                       top  += Math.max( docElem.scrollTop, body.scrollTop );
-                       left += Math.max( docElem.scrollLeft, body.scrollLeft );
-               }
-
-               return { top: top, left: left };
-       };
-}
-
-jQuery.offset = {
-
-       bodyOffset: function( body ) {
-               var top = body.offsetTop,
-                       left = body.offsetLeft;
-
-               if ( jQuery.support.doesNotIncludeMarginInBodyOffset ) {
-                       top  += parseFloat( jQuery.css(body, "marginTop") ) || 0;
-                       left += parseFloat( jQuery.css(body, "marginLeft") ) || 0;
-               }
-
-               return { top: top, left: left };
-       },
-
-       setOffset: function( elem, options, i ) {
-               var position = jQuery.css( elem, "position" );
-
-               // set position first, in-case top/left are set even on static elem
-               if ( position === "static" ) {
-                       elem.style.position = "relative";
-               }
-
-               var curElem = jQuery( elem ),
-                       curOffset = curElem.offset(),
-                       curCSSTop = jQuery.css( elem, "top" ),
-                       curCSSLeft = jQuery.css( elem, "left" ),
-                       calculatePosition = ( position === "absolute" || position === "fixed" ) && jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1,
-                       props = {}, curPosition = {}, curTop, curLeft;
-
-               // need to be able to calculate position if either top or left is auto and position is either absolute or fixed
-               if ( calculatePosition ) {
-                       curPosition = curElem.position();
-                       curTop = curPosition.top;
-                       curLeft = curPosition.left;
-               } else {
-                       curTop = parseFloat( curCSSTop ) || 0;
-                       curLeft = parseFloat( curCSSLeft ) || 0;
-               }
-
-               if ( jQuery.isFunction( options ) ) {
-                       options = options.call( elem, i, curOffset );
-               }
-
-               if ( options.top != null ) {
-                       props.top = ( options.top - curOffset.top ) + curTop;
-               }
-               if ( options.left != null ) {
-                       props.left = ( options.left - curOffset.left ) + curLeft;
-               }
-
-               if ( "using" in options ) {
-                       options.using.call( elem, props );
-               } else {
-                       curElem.css( props );
-               }
-       }
-};
-
-
-jQuery.fn.extend({
-
-       position: function() {
-               if ( !this[0] ) {
-                       return null;
-               }
-
-               var elem = this[0],
-
-               // Get *real* offsetParent
-               offsetParent = this.offsetParent(),
-
-               // Get correct offsets
-               offset       = this.offset(),
-               parentOffset = rroot.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset();
-
-               // Subtract element margins
-               // note: when an element has margin: auto the offsetLeft and marginLeft
-               // are the same in Safari causing offset.left to incorrectly be 0
-               offset.top  -= parseFloat( jQuery.css(elem, "marginTop") ) || 0;
-               offset.left -= parseFloat( jQuery.css(elem, "marginLeft") ) || 0;
-
-               // Add offsetParent borders
-               parentOffset.top  += parseFloat( jQuery.css(offsetParent[0], "borderTopWidth") ) || 0;
-               parentOffset.left += parseFloat( jQuery.css(offsetParent[0], "borderLeftWidth") ) || 0;
-
-               // Subtract the two offsets
-               return {
-                       top:  offset.top  - parentOffset.top,
-                       left: offset.left - parentOffset.left
-               };
-       },
-
-       offsetParent: function() {
-               return this.map(function() {
-                       var offsetParent = this.offsetParent || document.body;
-                       while ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) {
-                               offsetParent = offsetParent.offsetParent;
-                       }
-                       return offsetParent;
-               });
-       }
-});
-
-
-// Create scrollLeft and scrollTop methods
-jQuery.each( ["Left", "Top"], function( i, name ) {
-       var method = "scroll" + name;
-
-       jQuery.fn[ method ] = function( val ) {
-               var elem, win;
-
-               if ( val === undefined ) {
-                       elem = this[ 0 ];
-
-                       if ( !elem ) {
-                               return null;
-                       }
-
-                       win = getWindow( elem );
-
-                       // Return the scroll offset
-                       return win ? ("pageXOffset" in win) ? win[ i ? "pageYOffset" : "pageXOffset" ] :
-                               jQuery.support.boxModel && win.document.documentElement[ method ] ||
-                                       win.document.body[ method ] :
-                               elem[ method ];
-               }
-
-               // Set the scroll offset
-               return this.each(function() {
-                       win = getWindow( this );
-
-                       if ( win ) {
-                               win.scrollTo(
-                                       !i ? val : jQuery( win ).scrollLeft(),
-                                        i ? val : jQuery( win ).scrollTop()
-                               );
-
-                       } else {
-                               this[ method ] = val;
-                       }
-               });
-       };
-});
-
-function getWindow( elem ) {
-       return jQuery.isWindow( elem ) ?
-               elem :
-               elem.nodeType === 9 ?
-                       elem.defaultView || elem.parentWindow :
-                       false;
-}
-
-
-
-
-// Create width, height, innerHeight, innerWidth, outerHeight and outerWidth methods
-jQuery.each([ "Height", "Width" ], function( i, name ) {
-
-       var type = name.toLowerCase();
-
-       // innerHeight and innerWidth
-       jQuery.fn[ "inner" + name ] = function() {
-               var elem = this[0];
-               return elem ?
-                       elem.style ?
-                       parseFloat( jQuery.css( elem, type, "padding" ) ) :
-                       this[ type ]() :
-                       null;
-       };
-
-       // outerHeight and outerWidth
-       jQuery.fn[ "outer" + name ] = function( margin ) {
-               var elem = this[0];
-               return elem ?
-                       elem.style ?
-                       parseFloat( jQuery.css( elem, type, margin ? "margin" : "border" ) ) :
-                       this[ type ]() :
-                       null;
-       };
-
-       jQuery.fn[ type ] = function( size ) {
-               // Get window width or height
-               var elem = this[0];
-               if ( !elem ) {
-                       return size == null ? null : this;
-               }
-
-               if ( jQuery.isFunction( size ) ) {
-                       return this.each(function( i ) {
-                               var self = jQuery( this );
-                               self[ type ]( size.call( this, i, self[ type ]() ) );
-                       });
-               }
-
-               if ( jQuery.isWindow( elem ) ) {
-                       // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
-                       // 3rd condition allows Nokia support, as it supports the docElem prop but not CSS1Compat
-                       var docElemProp = elem.document.documentElement[ "client" + name ],
-                               body = elem.document.body;
-                       return elem.document.compatMode === "CSS1Compat" && docElemProp ||
-                               body && body[ "client" + name ] || docElemProp;
-
-               // Get document width or height
-               } else if ( elem.nodeType === 9 ) {
-                       // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
-                       return Math.max(
-                               elem.documentElement["client" + name],
-                               elem.body["scroll" + name], elem.documentElement["scroll" + name],
-                               elem.body["offset" + name], elem.documentElement["offset" + name]
-                       );
-
-               // Get or set width or height on the element
-               } else if ( size === undefined ) {
-                       var orig = jQuery.css( elem, type ),
-                               ret = parseFloat( orig );
-
-                       return jQuery.isNumeric( ret ) ? ret : orig;
-
-               // Set the width or height on the element (default to pixels if value is unitless)
-               } else {
-                       return this.css( type, typeof size === "string" ? size : size + "px" );
-               }
-       };
-
-});
-
-
-
-
-// Expose jQuery to the global object
-window.jQuery = window.$ = jQuery;
-
-// Expose jQuery as an AMD module, but only for AMD loaders that
-// understand the issues with loading multiple versions of jQuery
-// in a page that all might call define(). The loader will indicate
-// they have special allowances for multiple jQuery versions by
-// specifying define.amd.jQuery = true. Register as a named module,
-// since jQuery can be concatenated with other files that may use define,
-// but not use a proper concatenation script that understands anonymous
-// AMD modules. A named AMD is safest and most robust way to register.
-// Lowercase jquery is used because AMD module names are derived from
-// file names, and jQuery is normally delivered in a lowercase file name.
-// Do this after creating the global so that if an AMD module wants to call
-// noConflict to hide this version of jQuery, it will work.
-if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
-       define( "jquery", [], function () { return jQuery; } );
-}
-
-
-
-})( window );
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-1.7.1.min.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-1.7.1.min.js
deleted file mode 100644 (file)
index 198b3ff..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-/*! jQuery v1.7.1 jquery.com | jquery.org/license */
-(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorder=cl.width=cl.height=0),b.appendChild(cl);if(!cm||!cl.createElement)cm=(cl.contentWindow||cl.contentDocument).document,cm.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),cm.close();d=cm.createElement(a),cm.body.appendChild(d),e=f.css(d,"display"),b.removeChild(cl)}ck[a]=e}return ck[a]}function cu(a,b){var c={};f.each(cq.concat.apply([],cq.slice(0,b)),function(){c[this]=a});return c}function ct(){cr=b}function cs(){setTimeout(ct,0);return cr=f.now()}function cj(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ci(){try{return new a.XMLHttpRequest}catch(b){}}function cc(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function cb(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function ca(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bE.test(a)?d(a,e):ca(a+"["+(typeof e=="object"||f.isArray(e)?b:"")+"]",e,c,d)});else if(!c&&b!=null&&typeof b=="object")for(var e in b)ca(a+"["+e+"]",b[e],c,d);else d(a,b)}function b_(a,c){var d,e,g=f.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((g[d]?a:e||(e={}))[d]=c[d]);e&&f.extend(!0,a,e)}function b$(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bT,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=b$(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=b$(a,c,d,e,"*",g));return l}function bZ(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bP),e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bC(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?bx:by,g=0,h=e.length;if(d>0){if(c!=="border")for(;g<h;g++)c||(d-=parseFloat(f.css(a,"padding"+e[g]))||0),c==="margin"?d+=parseFloat(f.css(a,c+e[g]))||0:d-=parseFloat(f.css(a,"border"+e[g]+"Width"))||0;return d+"px"}d=bz(a,b,b);if(d<0||d==null)d=a.style[b]||0;d=parseFloat(d)||0;if(c)for(;g<h;g++)d+=parseFloat(f.css(a,"padding"+e[g]))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+e[g]+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+e[g]))||0);return d+"px"}function bp(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bf,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bo(a){var b=c.createElement("div");bh.appendChild(b),b.innerHTML=a.outerHTML;return b.firstChild}function bn(a){var b=(a.nodeName||"").toLowerCase();b==="input"?bm(a):b!=="script"&&typeof a.getElementsByTagName!="undefined"&&f.grep(a.getElementsByTagName("input"),bm)}function bm(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bl(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function bk(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bj(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c,d,e,g=f._data(a),h=f._data(b,g),i=g.events;if(i){delete h.handle,h.events={};for(c in i)for(d=0,e=i[c].length;d<e;d++)f.event.add(b,c+(i[c][d].namespace?".":"")+i[c][d].namespace,i[c][d],i[c][d].data)}h.data&&(h.data=f.extend({},h.data))}}function bi(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function U(a){var b=V.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function T(a,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(O.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?parseFloat(d):j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c<d;c++)b[a[c]]=!0;return b}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.readyWait>0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a[g],g,a[g++])===!1)break;return a},trim:G?function(a){return a==null?"":G.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?E.call(c,a):e.merge(c,a)}return c},inArray:function(a,b,c){var d;if(b){if(H)return H.call(b,a,c);d=b.length,c=c?c<0?Math.max(0,d+c):c:0;for(;c<d;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i],i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.length]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=F.call(arguments,2),g=function(){return a.apply(c,f.concat(F.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h){var i=a.length;if(typeof c=="object"){for(var j in c)e.access(a,j,c[j],f,g,d);return a}if(d!==b){f=!h&&f&&e.isFunction(d);for(var k=0;k<i;k++)g(a[k],c,f?d.call(a[k],k,g(a[k],c)):d,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){I["[object "+b+"]"]=b.toLowerCase()}),z=e.uaMatch(y),z.browser&&(e.browser[z.browser]=!0,e.browser.version=z.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?B=function(){c.removeEventListener("DOMContentLoaded",B,!1),e.ready()}:c.attachEvent&&(B=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",B),e.ready())});return e}(),g={};f.Callbacks=function(a){a=a?g[a]||h(a):{};var c=[],d=[],e,i,j,k,l,m=function(b){var d,e,g,h,i;for(d=0,e=b.length;d<e;d++)g=b[d],h=f.type(g),h==="array"?m(g):h==="function"&&(!a.unique||!o.has(g))&&c.push(g)},n=function(b,f){f=f||[],e=!a.memory||[b,f],i=!0,l=j||0,j=0,k=c.length;for(;c&&l<k;l++)if(c[l].apply(b,f)===!1&&a.stopOnFalse){e=!0;break}i=!1,c&&(a.once?e===!0?o.disable():c=[]:d&&d.length&&(e=d.shift(),o.fireWith(e[0],e[1])))},o={add:function(){if(c){var a=c.length;m(arguments),i?k=c.length:e&&e!==!0&&(j=a,n(e[0],e[1]))}return this},remove:function(){if(c){var b=arguments,d=0,e=b.length;for(;d<e;d++)for(var f=0;f<c.length;f++)if(b[d]===c[f]){i&&f<=k&&(k--,f<=l&&l--),c.splice(f--,1);if(a.unique)break}}return this},has:function(a){if(c){var b=0,d=c.length;for(;b<d;b++)if(a===c[b])return!0}return!1},empty:function(){c=[];return this},disable:function(){c=d=e=b;return this},disabled:function(){return!c},lock:function(){d=b,(!e||e===!0)&&o.disable();return this},locked:function(){return!d},fireWith:function(b,c){d&&(i?a.once||d.push([b,c]):(!a.once||!e)&&n(b,c));return this},fire:function(){o.fireWith(this,arguments);return this},fired:function(){return!!e}};return o};var i=[].slice;f.extend({Deferred:function(a){var b=f.Callbacks("once memory"),c=f.Callbacks("once memory"),d=f.Callbacks("memory"),e="pending",g={resolve:b,reject:c,notify:d},h={done:b.add,fail:c.add,progress:d.add,state:function(){return e},isResolved:b.fired,isRejected:c.fired,then:function(a,b,c){i.done(a).fail(b).progress(c);return this},always:function(){i.done.apply(i,arguments).fail.apply(i,arguments);return this},pipe:function(a,b,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[b,"reject"],progress:[c,"notify"]},function(a,b){var c=b[0],e=b[1],g;f.isFunction(c)?i[a](function(){g=c.apply(this,arguments),g&&f.isFunction(g.promise)?g.promise().then(d.resolve,d.reject,d.notify):d[e+"With"](this===i?d:this,[g])}):i[a](d[e])})}).promise()},promise:function(a){if(a==null)a=h;else for(var b in h)a[b]=h[b];return a}},i=h.promise({}),j;for(j in g)i[j]=g[j].fire,i[j+"With"]=g[j].fireWith;i.done(function(){e="resolved"},c.disable,d.lock).fail(function(){e="rejected"},b.disable,d.lock),a&&a.call(i,i);return i},when:function(a){function m(a){return function(b){e[a]=arguments.length>1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c<d;c++)b[c]&&b[c].promise&&f.isFunction(b[c].promise)?b[c].promise().then(l(c),j.reject,m(c)):--g;g||j.resolveWith(j,b)}else j!==a&&j.resolveWith(j,d?[a]:[]);return k}}),f.support=function(){var b,d,e,g,h,i,j,k,l,m,n,o,p,q=c.createElement("div"),r=c.documentElement;q.setAttribute("className","t"),q.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=q.getElementsByTagName("*"),e=q.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=q.getElementsByTagName("input")[0],b={leadingWhitespace:q.firstChild.nodeType===3,tbody:!q.getElementsByTagName("tbody").length,htmlSerialize:!!q.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:q.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete q.test}catch(s){b.deleteExpando=!1}!q.addEventListener&&q.attachEvent&&q.fireEvent&&(q.attachEvent("onclick",function(){b.noCloneEvent=!1}),q.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),q.appendChild(i),k=c.createDocumentFragment(),k.appendChild(q.lastChild),b.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,k.removeChild(i),k.appendChild(q),q.innerHTML="",a.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",q.style.width="2px",q.appendChild(j),b.reliableMarginRight=(parseInt((a.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0);if(q.attachEvent)for(o in{submit:1,change:1,focusin:1})n="on"+o,p=n in q,p||(q.setAttribute(n,"return;"),p=typeof q[n]=="function"),b[o+"Bubbles"]=p;k.removeChild(q),k=g=h=j=q=i=null,f(function(){var a,d,e,g,h,i,j,k,m,n,o,r=c.getElementsByTagName("body")[0];!r||(j=1,k="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",m="visibility:hidden;border:0;",n="style='"+k+"border:5px solid #000;padding:0;'",o="<div "+n+"><div></div></div>"+"<table "+n+" cellpadding='0' cellspacing='0'>"+"<tr><td></td></tr></table>",a=c.createElement("div"),a.style.cssText=m+"width:0;height:0;position:static;top:0;margin-top:"+j+"px",r.insertBefore(a,r.firstChild),q=c.createElement("div"),a.appendChild(q),q.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",l=q.getElementsByTagName("td"),p=l[0].offsetHeight===0,l[0].style.display="",l[1].style.display="none",b.reliableHiddenOffsets=p&&l[0].offsetHeight===0,q.innerHTML="",q.style.width=q.style.paddingLeft="1px",f.boxModel=b.boxModel=q.offsetWidth===2,typeof q.style.zoom!="undefined"&&(q.style.display="inline",q.style.zoom=1,b.inlineBlockNeedsLayout=q.offsetWidth===2,q.style.display="",q.innerHTML="<div style='width:4px;'></div>",b.shrinkWrapBlocks=q.offsetWidth!==2),q.style.cssText=k+m,q.innerHTML=o,d=q.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,i={doesNotAddBorder:e.offsetTop!==5,doesAddBorderForTableAndCells:h.offsetTop===5},e.style.position="fixed",e.style.top="20px",i.fixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",i.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,i.doesNotIncludeMarginInBodyOffset=r.offsetTop!==j,r.removeChild(a),q=a=null,f.extend(b,i))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e<g;e++)delete d[b[e]];if(!(c?m:f.isEmptyObject)(d))return}}if(!c){delete j[k].data;if(!m(j[k]))return}f.support.deleteExpando||!j.setInterval?delete j[k]:j[k]=null,i&&(f.support.deleteExpando?delete a[h]:a.removeAttribute?a.removeAttribute(h):a[h]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d,e,g,h=null;if(typeof a=="undefined"){if(this.length){h=f.data(this[0]);if(this[0].nodeType===1&&!f._data(this[0],"parsedAttrs")){e=this[0].attributes;for(var i=0,j=e.length;i<j;i++)g=e[i].name,g.indexOf("data-")===0&&(g=f.camelCase(g.substring(5)),l(this[0],g,h[g]));f._data(this[0],"parsedAttrs",!0)}}return h}if(typeof a=="object")return this.each(function(){f.data(this,a)});d=a.split("."),d[1]=d[1]?"."+d[1]:"";if(c===b){h=this.triggerHandler("getData"+d[1]+"!",[d[0]]),h===b&&this.length&&(h=f.data(this[0],a),h=l(this[0],a,h));return h===b&&d[1]?this.data(d[0]):h}return this.each(function(){var b=f(this),e=[d[0],c];b.triggerHandler("setData"+d[1]+"!",e),f.data(this,a,c),b.triggerHandler("changeData"+d[1]+"!",e)})},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){typeof a!="string"&&(c=a,a="fx");if(c===b)return f.queue(this[0],a);return this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f.Callbacks("once memory"),!0))h++,l.add(m);m();return d.promise()}});var o=/[\n\t\r]/g,p=/\s+/,q=/\r/g,r=/^(?:button|input)$/i,s=/^(?:button|input|object|select|textarea)$/i,t=/^a(?:rea)?$/i,u=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,v=f.support.getSetAttribute,w,x,y;f.fn.extend({attr:function(a,b){return f.access(this,a,b,!0,f.attr)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,a,b,!0,f.prop)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(p);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className)if(a){h=(" "+g.className+" ").replace(o," ");for(i=0,j=c.length;i<j;i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a))return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)});return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(p);while(e=j[g++])i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(o," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.nodeName.toLowerCase()]||f.valHooks[g.type];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c<d;c++){e=i[c];if(e.selected&&(f.support.optDisabled?!e.disabled:e.getAttribute("disabled")===null)&&(!e.parentNode.disabled||!f.nodeName(e.parentNode,"optgroup"))){b=f(e).val();if(j)return b;h.push(b)}}if(j&&!h.length&&i.length)return f(i[g]).val();return h},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;h<g;h++)e=d[h],e&&(c=f.propFix[e]||e,f.attr(a,e,""),a.removeAttribute(v?e:c),u.test(e)&&c in a&&(a[c]=!1))}},attrHooks:{type:{set:function(a,b){if(r.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},value:{get:function(a,b){if(w&&f.nodeName(a,"button"))return w.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(w&&f.nodeName(a,"button"))return w.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e,g,h,i=a.nodeType;if(!!a&&i!==3&&i!==8&&i!==2){h=i!==1||!f.isXMLDoc(a),h&&(c=f.propFix[c]||c,g=f.propHooks[c]);return d!==b?g&&"set"in g&&(e=g.set(a,d,c))!==b?e:a[c]=d:g&&"get"in g&&(e=g.get(a,c))!==null?e:a[c]}},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):s.test(a.nodeName)||t.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabindex=f.propHooks.tabIndex,x={get:function(a,c){var d,e=f.prop(a,c);return e===!0||typeof e!="boolean"&&(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},v||(y={name:!0,id:!0},w=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&(y[c]?d.nodeValue!=="":d.specified)?d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttribute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.attrHooks.tabindex.set=w.set,f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})}),f.attrHooks.contenteditable={get:w.get,set:function(a,b,c){b===""&&(b="false"),w.set(a,b,c)}}),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null}})),f.support.enctype||(f.propFix.enctype="encoding"),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/\bhover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};
-f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k<c.length;k++){l=A.exec(c[k])||[],m=l[1],n=(l[2]||"").split(".").sort(),s=f.event.special[m]||{},m=(g?s.delegateType:s.bindType)||m,s=f.event.special[m]||{},o=f.extend({type:m,origType:l[1],data:e,handler:d,guid:d.guid,selector:g,quick:G(g),namespace:n.join(".")},p),r=j[m];if(!r){r=j[m]=[],r.delegateCount=0;if(!s.setup||s.setup.call(a,e,n,i)===!1)a.addEventListener?a.addEventListener(m,i,!1):a.attachEvent&&a.attachEvent("on"+m,i)}s.add&&(s.add.call(a,o),o.handler.guid||(o.handler.guid=d.guid)),g?r.splice(r.delegateCount++,0,o):r.push(o),f.event.global[m]=!0}a=null}},global:{},remove:function(a,b,c,d,e){var g=f.hasData(a)&&f._data(a),h,i,j,k,l,m,n,o,p,q,r,s;if(!!g&&!!(o=g.events)){b=f.trim(I(b||"")).split(" ");for(h=0;h<b.length;h++){i=A.exec(b[h])||[],j=k=i[1],l=i[2];if(!j){for(j in o)f.event.remove(a,j+b[h],c,d,!0);continue}p=f.event.special[j]||{},j=(d?p.delegateType:p.bindType)||j,r=o[j]||[],m=r.length,l=l?new RegExp("(^|\\.)"+l.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(n=0;n<r.length;n++)s=r[n],(e||k===s.origType)&&(!c||c.guid===s.guid)&&(!l||l.test(s.namespace))&&(!d||d===s.selector||d==="**"&&s.selector)&&(r.splice(n--,1),s.selector&&r.delegateCount--,p.remove&&p.remove.call(a,s));r.length===0&&m!==r.length&&((!p.teardown||p.teardown.call(a,l)===!1)&&f.removeEvent(a,j,g.handle),delete o[j])}f.isEmptyObject(o)&&(q=g.handle,q&&(q.elem=null),f.removeData(a,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){if(!e||e.nodeType!==3&&e.nodeType!==8){var h=c.type||c,i=[],j,k,l,m,n,o,p,q,r,s;if(E.test(h+f.event.triggered))return;h.indexOf("!")>=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;l<r.length&&!c.isPropagationStopped();l++)m=r[l][0],c.type=r[l][1],q=(f._data(m,"events")||{})[c.type]&&f._data(m,"handle"),q&&q.apply(m,d),q=o&&m[o],q&&f.acceptData(m)&&q.apply(m,d)===!1&&c.preventDefault();c.type=h,!g&&!c.isDefaultPrevented()&&(!p._default||p._default.apply(e.ownerDocument,d)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)&&o&&e[h]&&(h!=="focus"&&h!=="blur"||c.target.offsetWidth!==0)&&!f.isWindow(e)&&(n=e[o],n&&(e[o]=null),f.event.triggered=h,e[h](),f.event.triggered=b,n&&(e[o]=n));return c.result}},dispatch:function(c){c=f.event.fix(c||a.event);var d=(f._data(this,"events")||{})[c.type]||[],e=d.delegateCount,g=[].slice.call(arguments,0),h=!c.exclusive&&!c.namespace,i=[],j,k,l,m,n,o,p,q,r,s,t;g[0]=c,c.delegateTarget=this;if(e&&!c.target.disabled&&(!c.button||c.type!=="click")){m=f(this),m.context=this.ownerDocument||this;for(l=c.target;l!=this;l=l.parentNode||this){o={},q=[],m[0]=l;for(j=0;j<e;j++)r=d[j],s=r.selector,o[s]===b&&(o[s]=r.quick?H(l,r.quick):m.is(s)),o[s]&&q.push(r);q.length&&i.push({elem:l,matches:q})}}d.length>e&&i.push({elem:this,matches:d.slice(e)});for(j=0;j<i.length&&!c.isPropagationStopped();j++){p=i[j],c.currentTarget=p.elem;for(k=0;k<p.matches.length&&!c.isImmediatePropagationStopped();k++){r=p.matches[k];if(h||!c.namespace&&!r.namespace||c.namespace_re&&c.namespace_re.test(r.namespace))c.data=r.data,c.handleObj=r,n=((f.event.special[r.origType]||{}).handle||r.handler).apply(p.elem,g),n!==b&&(c.result=n,n===!1&&(c.preventDefault(),c.stopPropagation()))}}return c.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,d){var e,f,g,h=d.button,i=d.fromElement;a.pageX==null&&d.clientX!=null&&(e=a.target.ownerDocument||c,f=e.documentElement,g=e.body,a.pageX=d.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0),a.pageY=d.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&i&&(a.relatedTarget=i===a.target?d.toElement:i),!a.which&&h!==b&&(a.which=h&1?1:h&2?3:h&4?2:0);return a}},fix:function(a){if(a[f.expando])return a;var d,e,g=a,h=f.event.fixHooks[a.type]||{},i=h.props?this.props.concat(h.props):this.props;a=f.Event(g);for(d=i.length;d;)e=i[--d],a[e]=g[e];a.target||(a.target=g.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),a.metaKey===b&&(a.metaKey=a.ctrlKey);return h.filter?h.filter(a,g):a},special:{ready:{setup:f.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}},simulate:function(a,b,c,d){var e=f.extend(new f.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?f.event.trigger(e,null,b):f.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},f.event.handle=f.event.dispatch,f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!(this instanceof f.Event))return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?K:J):this.type=a,b&&f.extend(this,b),this.timeStamp=a&&a.timeStamp||f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=K;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=K;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=K,this.stopPropagation()},isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J},f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c=this,d=a.relatedTarget,e=a.handleObj,g=e.selector,h;if(!d||d!==c&&!f.contains(c,d))a.type=e.origType,h=e.handler.apply(this,arguments),a.type=b;return h}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(){if(f.nodeName(this,"form"))return!1;f.event.add(this,"click._submit keypress._submit",function(a){var c=a.target,d=f.nodeName(c,"input")||f.nodeName(c,"button")?c.form:b;d&&!d._submit_attached&&(f.event.add(d,"submit._submit",function(a){this.parentNode&&!a.isTrigger&&f.event.simulate("submit",this.parentNode,a,!0)}),d._submit_attached=!0)})},teardown:function(){if(f.nodeName(this,"form"))return!1;f.event.remove(this,"._submit")}}),f.support.changeBubbles||(f.event.special.change={setup:function(){if(z.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")f.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),f.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1,f.event.simulate("change",this,a,!0))});return!1}f.event.add(this,"beforeactivate._change",function(a){var b=a.target;z.test(b.nodeName)&&!b._change_attached&&(f.event.add(b,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&f.event.simulate("change",this.parentNode,a,!0)}),b._change_attached=!0)})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){f.event.remove(this,"._change");return z.test(this.nodeName)}}),f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){var d=0,e=function(a){f.event.simulate(b,a.target,f.event.fix(a),!0)};f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.fn.extend({on:function(a,c,d,e,g){var h,i;if(typeof a=="object"){typeof c!="string"&&(d=c,c=b);for(i in a)this.on(i,c,d,a[i],g);return this}d==null&&e==null?(e=c,d=c=b):e==null&&(typeof c=="string"?(e=d,d=b):(e=d,d=c,c=b));if(e===!1)e=J;else if(!e)return this;g===1&&(h=e,e=function(a){f().off(a);return h.apply(this,arguments)},e.guid=h.guid||(h.guid=f.guid++));return this.each(function(){f.event.add(this,a,e,d,c)})},one:function(a,b,c,d){return this.on.call(this,a,b,c,d,1)},off:function(a,c,d){if(a&&a.preventDefault&&a.handleObj){var e=a.handleObj;f(a.delegateTarget).off(e.namespace?e.type+"."+e.namespace:e.type,e.selector,e.handler);return this}if(typeof a=="object"){for(var g in a)this.off(g,c,a[g]);return this}if(c===!1||typeof c=="function")d=c,c=b;d===!1&&(d=J);return this.each(function(){f.event.remove(this,a,d,c)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){f(this.context).on(a,this.selector,b,c);return this},die:function(a,b){f(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length==1?this.off(a,"**"):this.off(b,a,c)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f._data(this,"lastToggle"+a.guid)||0)%d;f._data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}if(j.nodeType===1){g||(j[d]=c,j.sizset=h);if(typeof b!="string"){if(j===b){k=!0;break}}else if(m.filter(b,[j]).length>0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}j.nodeType===1&&!g&&(j[d]=c,j.sizset=h);if(j.nodeName.toLowerCase()===b){k=j;break}j=j[a]}e[h]=k}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},m.matches=function(a,b){return m(a,null,null,b)},m.matchesSelector=function(a,b){return m(b,null,null,[a]).length>0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e<f;e++){h=o.order[e];if(g=o.leftMatch[h].exec(a)){i=g[1],g.splice(1,1);if(i.substr(i.length-1)!=="\\"){g[1]=(g[1]||"").replace(j,""),d=o.find[h](g,b,c);if(d!=null){a=a.replace(o.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},m.filter=function(a,c,d,e){var f,g,h,i,j,k,l,n,p,q=a,r=[],s=c,t=c&&c[0]&&m.isXML(c[0]);while(a&&c.length){for(h in o.filter)if((f=o.leftMatch[h].exec(a))!=null&&f[2]){k=o.filter[h],l=f[1],g=!1,f.splice(1,1);if(l.substr(l.length-1)==="\\")continue;s===r&&(r=[]);if(o.preFilter[h]){f=o.preFilter[h](f,s,d,r,e,t);if(!f)g=i=!0;else if(f===!0)continue}if(f)for(n=0;(j=s[n])!=null;n++)j&&(i=k(j,f,n,s),p=e^i,d&&i!=null?p?g=!0:s[n]=!1:p&&(r.push(j),g=!0));if(i!==b){d||(s=r),a=a.replace(o.match[h],"");if(!g)return[];break}}if(a===q)if(g==null)m.error(a);else break;q=a}return s},m.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)};var n=m.getText=function(a){var b,c,d=a.nodeType,e="";if(d){if(d===1||d===9){if(typeof a.textContent=="string")return a.textContent;if(typeof a.innerText=="string")return a.innerText.replace(k,"");for(a=a.firstChild;a;a=a.nextSibling)e+=n(a)}else if(d===3||d===4)return a.nodeValue}else for(b=0;c=a[b];b++)c.nodeType!==8&&(e+=n(c));return e},o=m.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!l.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&m.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&m.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(j,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}m.error(e)},CHILD:function(a,b){var c,e,f,g,h,i,j,k=b[1],l=a;switch(k){case"only":case"first":while(l=l.previousSibling)if(l.nodeType===1)return!1;if(k==="first")return!0;l=a;case"last":while(l=l.nextSibling)if(l.nodeType===1)return!1;return!0;case"nth":c=b[2],e=b[3];if(c===1&&e===0)return!0;f=b[0],g=a.parentNode;if(g&&(g[d]!==f||!a.nodeIndex)){i=0;for(l=g.firstChild;l;l=l.nextSibling)l.nodeType===1&&(l.nodeIndex=++i);g[d]=f}j=a.nodeIndex-e;return c===0?j===0:j%c===0&&j/c>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var u,v;c.documentElement.compareDocumentPosition?u=function(a,b){if(a===b){h=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(u=function(a,b){if(a===b){h=!0;return 0}if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],g=a.parentNode,i=b.parentNode,j=g;if(g===i)return v(a,b);if(!g)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return v(e[k],f[k]);return k===c?v(a,f[k],-1):v(e[k],b,1)},v=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h<i;h++)m(a,g[h],e,c);return m.filter(f,e)};m.attr=f.attr,m.selectors.attrMap={},f.find=m,f.expr=m.selectors,f.expr[":"]=f.expr.filters,f.unique=m.uniqueSort,f.text=m.getText,f.isXMLDoc=m.isXML,f.contains=m.contains}();var L=/Until$/,M=/^(?:parents|prevUntil|prevAll)/,N=/,/,O=/^.[^:#\[\.,]*$/,P=Array.prototype.slice,Q=f.expr.match.POS,R={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],this))return!0});var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g;i++)if(e[i]===e[h]){e.splice(h--,1);break}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(T(this,a,!1),"not",a)},filter:function(a){return this.pushStack(T(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?Q.test(a)?f(a,this.context).index(this[0])>=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d<a.length;d++)f(g).is(a[d])&&c.push({selector:a[d],elem:g,level:h});g=g.parentNode,h++}return c}var i=Q.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(i?i.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/<tbody/i,_=/<|&#?\w+;/,ba=/<(?:script|style)/i,bb=/<(?:script|object|embed|option|style)/i,bc=new RegExp("<(?:"+V+")","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*<!(?:\[CDATA\[|\-\-)/,bg={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function()
-{for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1></$2>");try{for(var c=0,d=this.length;c<d;c++)this[c].nodeType===1&&(f.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(e){this.empty().append(a)}}else f.isFunction(a)?this.each(function(b){var c=f(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a))return this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))});typeof a!="string"&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bd.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});if(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)d.call(c?bi(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,bp)}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i,j=a[0];b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof j=="string"&&j.length<512&&i===c&&j.charAt(0)==="<"&&!bb.test(j)&&(f.support.checkClone||!bd.test(j))&&(f.support.html5Clone||!bc.test(j))&&(g=!0,h=f.fragments[j],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[j]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||!bc.test("<"+a.nodeName)?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!_.test(k))k=b.createTextNode(k);else{k=k.replace(Y,"<$1></$2>");var l=(Z.exec(k)||["",""])[1].toLowerCase(),m=bg[l]||bg._default,n=m[0],o=b.createElement("div");b===c?bh.appendChild(o):U(b).appendChild(o),o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=$.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]==="<table>"&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(b.createTextNode(X.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i<r;i++)bn(k[i]);else bn(k);k.nodeType?h.push(k):h=f.merge(h,k)}if(d){g=function(a){return!a.type||be.test(a.type)};for(j=0;h[j];j++)if(e&&f.nodeName(h[j],"script")&&(!h[j].type||h[j].type.toLowerCase()==="text/javascript"))e.push(h[j].parentNode?h[j].parentNode.removeChild(h[j]):h[j]);else{if(h[j].nodeType===1){var s=f.grep(h[j].getElementsByTagName("script"),g);h.splice.apply(h,[j+1,0].concat(s))}d.appendChild(h[j])}}return h},cleanData:function(a){var b,c,d=f.cache,e=f.event.special,g=f.support.deleteExpando;for(var h=0,i;(i=a[h])!=null;h++){if(i.nodeName&&f.noData[i.nodeName.toLowerCase()])continue;c=i[f.expando];if(c){b=d[c];if(b&&b.events){for(var j in b.events)e[j]?f.event.remove(i,j):f.removeEvent(i,j,b.handle);b.handle&&(b.handle.elem=null)}g?delete i[f.expando]:i.removeAttribute&&i.removeAttribute(f.expando),delete d[c]}}}});var bq=/alpha\([^)]*\)/i,br=/opacity=([^)]*)/,bs=/([A-Z]|^ms)/g,bt=/^-?\d+(?:px)?$/i,bu=/^-?\d/,bv=/^([\-+])=([\-+.\de]+)/,bw={position:"absolute",visibility:"hidden",display:"block"},bx=["Left","Right"],by=["Top","Bottom"],bz,bA,bB;f.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return f.access(this,a,c,!0,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)})},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bz(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bv.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(bz)return bz(a,c)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]}}),f.curCSS=f.css,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){var e;if(c){if(a.offsetWidth!==0)return bC(a,b,d);f.swap(a,bw,function(){e=bC(a,b,d)});return e}},set:function(a,b){if(!bt.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return br.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bq,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bq.test(g)?g.replace(bq,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bz(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bA=function(a,b){var c,d,e;b=b.replace(bs,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b)));return c}),c.documentElement.currentStyle&&(bB=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f===null&&g&&(e=g[b])&&(f=e),!bt.test(f)&&bu.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f||0,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),bz=bA||bB,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bD=/%20/g,bE=/\[\]$/,bF=/\r?\n/g,bG=/#.*$/,bH=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bI=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bJ=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bK=/^(?:GET|HEAD)$/,bL=/^\/\//,bM=/\?/,bN=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bO=/^(?:select|textarea)/i,bP=/\s+/,bQ=/([?&])_=[^&]*/,bR=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bS=f.fn.load,bT={},bU={},bV,bW,bX=["*/"]+["*"];try{bV=e.href}catch(bY){bV=c.createElement("a"),bV.href="",bV=bV.href}bW=bR.exec(bV.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bS)return bS.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bN,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bO.test(this.nodeName)||bI.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bF,"\r\n")}}):{name:b.name,value:c.replace(bF,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b_(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b_(a,b);return a},ajaxSettings:{url:bV,isLocal:bJ.test(bW[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bX},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bZ(bT),ajaxTransport:bZ(bU),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?cb(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cc(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bH.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bG,"").replace(bL,bW[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bP),d.crossDomain==null&&(r=bR.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bW[1]&&r[2]==bW[2]&&(r[3]||(r[1]==="http:"?80:443))==(bW[3]||(bW[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),b$(bT,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bK.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bM.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bQ,"$1_="+x);d.url=y+(y===d.url?(bM.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bX+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=b$(bU,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)ca(g,a[g],c,e);return d.join("&").replace(bD,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cd=f.now(),ce=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cd++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ce.test(b.url)||e&&ce.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ce,l),b.url===j&&(e&&(k=k.replace(ce,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cf=a.ActiveXObject?function(){for(var a in ch)ch[a](0,1)}:!1,cg=0,ch;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ci()||cj()}:ci,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cf&&delete ch[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cg,cf&&(ch||(ch={},f(a).unload(cf)),ch[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var ck={},cl,cm,cn=/^(?:toggle|show|hide)$/,co=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cp,cq=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cr;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cu("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),e===""&&f.css(d,"display")==="none"&&f._data(d,"olddisplay",cv(d.nodeName)));for(g=0;g<h;g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none")d.style.display=f._data(d,"olddisplay")||""}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(cu("hide",3),a,b,c);var d,e,g=0,h=this.length;for(;g<h;g++)d=this[g],d.style&&(e=f.css(d,"display"),e!=="none"&&!f._data(d,"olddisplay")&&f._data(d,"olddisplay",e));for(g=0;g<h;g++)this[g].style&&(this[g].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(cu("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){function g(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]),h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.call(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(!f.support.inlineBlockNeedsLayout||cv(this.nodeName)==="inline"?this.style.display="inline-block":this.style.zoom=1))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a)j=new f.fx(this,b,i),h=a[i],cn.test(h)?(o=f._data(this,"toggle"+i)||(h==="toggle"?d?"show":"hide":0),o?(f._data(this,"toggle"+i,o==="show"?"hide":"show"),j[o]()):j[h]()):(k=co.exec(h),l=j.cur(),k?(m=parseFloat(k[2]),n=k[3]||(f.cssNumber[i]?"":"px"),n!=="px"&&(f.style(this,i,(m||1)+n),l=(m||1)/j.cur()*l,f.style(this,i,l+n)),k[1]&&(m=(k[1]==="-="?-1:1)*m+l),j.custom(l,m,n)):j.custom(l,h,""));return!0}var e=f.speed(b,c,d);if(f.isEmptyObject(a))return this.each(e.complete,[!1]);a=f.extend({},a);return e.queue===!1?this.each(g):this.queue(e.queue,g)},stop:function(a,c,d){typeof a!="string"&&(d=c,c=a,a=b),c&&a!==!1&&this.queue(a||"fx",[]);return this.each(function(){function h(a,b,c){var e=b[c];f.removeData(a,c,!0),e.stop(d)}var b,c=!1,e=f.timers,g=f._data(this);d||f._unmark(!0,this);if(a==null)for(b in g)g[b]&&g[b].stop&&b.indexOf(".run")===b.length-4&&h(this,g,b);else g[b=a+".run"]&&g[b].stop&&h(this,g,b);for(b=e.length;b--;)e[b].elem===this&&(a==null||e[b].queue===a)&&(d?e[b](!0):e[b].saveState(),c=!0,e.splice(b,1));(!d||!c)&&f.dequeue(this,a)})}}),f.each({slideDown:cu("show",1),slideUp:cu("hide",1),slideToggle:cu("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default;if(d.queue==null||d.queue===!0)d.queue="fx";d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue?f.dequeue(this,d.queue):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,c,d){function h(a){return e.step(a)}var e=this,g=f.fx;this.startTime=cr||cs(),this.end=c,this.now=this.start=a,this.pos=this.state=0,this.unit=d||this.unit||(f.cssNumber[this.prop]?"":"px"),h.queue=this.options.queue,h.elem=this.elem,h.saveState=function(){e.options.hide&&f._data(e.elem,"fxshow"+e.prop)===b&&f._data(e.elem,"fxshow"+e.prop,e.start)},h()&&f.timers.push(h)&&!cp&&(cp=setInterval(g.tick,g.interval))},show:function(){var a=f._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||f.style(this.elem,this.prop),this.options.show=!0,a!==b?this.custom(this.cur(),a):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f._data(this.elem,"fxshow"+this.prop)||f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b,c,d,e=cr||cs(),g=!0,h=this.elem,i=this.options;if(a||e>=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c<b.length;c++)a=b[c],!a()&&b[c]===a&&b.splice(c--,1);b.length||f.fx.stop()},interval:13,stop:function(){clearInterval(cp),cp=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}}}),f.each(["width","height"],function(a,b){f.fx.step[b]=function(a){f.style(a.elem,b,Math.max(0,a.now)+a.unit)}}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var cw=/^t(?:able|d|h)$/i,cx=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?f.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(d){}var e=b.ownerDocument,g=e.documentElement;if(!c||!f.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=e.body,i=cy(e),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||f.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||f.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:f.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);var c,d=b.offsetParent,e=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(f.support.fixedPosition&&k.position==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===d&&(l+=b.offsetTop,m+=b.offsetLeft,f.support.doesNotAddBorder&&(!f.support.doesAddBorderForTableAndCells||!cw.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),e=d,d=b.offsetParent),f.support.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;f.support.fixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},f.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cy(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cy(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,d,"padding")):this[d]():null},f.fn["outer"+c]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,d,a?"margin":"border")):this[d]():null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c],h=e.document.body;return e.document.compatMode==="CSS1Compat"&&g||h&&h["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var i=f.css(e,d),j=parseFloat(i);return f.isNumeric(j)?j:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window);
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/LICENSE-INFO.min.txt b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/LICENSE-INFO.min.txt
deleted file mode 100644 (file)
index 5f585c2..0000000
+++ /dev/null
@@ -1 +0,0 @@
-/*! jQuery Mobile v@VERSION jquerymobile.com | jquery.org/license */
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/LICENSE-INFO.txt b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/LICENSE-INFO.txt
deleted file mode 100644 (file)
index 4b99089..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
-* jQuery Mobile Framework v@VERSION
-* http://jquerymobile.com
-*
-* Copyright 2011 (c) jQuery Project
-* Dual licensed under the MIT or GPL Version 2 licenses.
-* http://jquery.org/license
-*
-*/
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/MIT-LICENSE.txt b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/MIT-LICENSE.txt
deleted file mode 100644 (file)
index 5327046..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-Copyright (c) 2011 John Resig, http://jquery.com/
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/Makefile b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/Makefile
deleted file mode 100644 (file)
index ddcfa01..0000000
+++ /dev/null
@@ -1,218 +0,0 @@
-# Helper Variables
-# The command to replace the @VERSION in the files with the actual version
-HEAD_SHA = $(shell git log -1 --format=format:"%H")
-VER = sed "s/v@VERSION/$$(git log -1 --format=format:"Git Build: SHA1: %H <> Date: %cd")/"
-VER_MIN = "/*! jQuery Mobile v$$(git log -1 --format=format:"Git Build: SHA1: %H <> Date: %cd") jquerymobile.com | jquery.org/license */"
-VER_OFFICIAL = $(shell cat version.txt)
-SED_VER_REPLACE = 's/__version__/"${VER_OFFICIAL}"/g'
-SED_VER_API = sed ${SED_VER_REPLACE}
-SED_INPLACE_EXT = "whyunowork"
-deploy: VER = sed "s/v@VERSION/${VER_OFFICIAL} ${HEAD_SHA}/"
-deploy: VER_MIN = "/*! jQuery Mobile v${VER_OFFICIAL} ${HEAD_SHA} jquerymobile.com | jquery.org/license */"
-
-# The output folder for the finished files
-OUTPUT = compiled
-
-# The name of the files
-NAME = jquery.mobile
-BASE_NAME = jquery.mobile
-THEME_FILENAME = jquery.mobile.theme
-STRUCTURE = jquery.mobile.structure
-deploy: NAME = jquery.mobile-${VER_OFFICIAL}
-deploy: THEME_FILENAME = jquery.mobile.theme-${VER_OFFICIAL}
-deploy: STRUCTURE = jquery.mobile.structure-${VER_OFFICIAL}
-
-# The CSS theme being used
-THEME = default
-
-# If node is available then use node to run r.js
-# otherwise use good old rhino/java
-NODE ?= /usr/local/bin/node
-HAS_NODE = $(shell if test -x ${NODE} ;then echo true; fi)
-
-ifeq ($(HAS_NODE), true)
-       RUN_JS = @@${NODE}
-else
-       RUN_JS = @@java -XX:ReservedCodeCacheSize=64m -classpath build/js.jar:build/google-compiler-20111003.jar org.mozilla.javascript.tools.shell.Main
-endif
-
-# Build Targets
-
-# When no build target is specified, all gets ran
-all: css js zip notify
-
-clean:
-       # -------------------------------------------------
-       # Cleaning build output
-       @@rm -rf ${OUTPUT}
-       @@rm -rf tmp
-
-# Create the output directory.
-init:
-       @@mkdir -p ${OUTPUT}
-
-# Build and minify the CSS files
-css: init
-       # Build the CSS file with the theme included
-       ${RUN_JS} \
-               external/r.js/dist/r.js \
-               -o cssIn=css/themes/default/jquery.mobile.css \
-               optimizeCss=standard.keepComments.keepLines \
-               out=${OUTPUT}/${NAME}.compiled.css
-       @@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT}/${NAME}.css
-       @@cat ${OUTPUT}/${NAME}.compiled.css >> ${OUTPUT}/${NAME}.css
-       @@echo ${VER_MIN} > ${OUTPUT}/${NAME}.min.css
-       @@java -XX:ReservedCodeCacheSize=64m \
-               -jar build/yuicompressor-2.4.6.jar \
-               --type css ${OUTPUT}/${NAME}.compiled.css >> ${OUTPUT}/${NAME}.min.css
-       @@rm ${OUTPUT}/${NAME}.compiled.css
-       # Build the CSS Structure-only file
-       ${RUN_JS} \
-               external/r.js/dist/r.js \
-               -o cssIn=css/structure/jquery.mobile.structure.css \
-               out=${OUTPUT}/${STRUCTURE}.compiled.css
-       @@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT}/${STRUCTURE}.css
-       @@cat ${OUTPUT}/${STRUCTURE}.compiled.css >> ${OUTPUT}/${STRUCTURE}.css
-       # ..... and then minify it
-       @@echo ${VER_MIN} > ${OUTPUT}/${STRUCTURE}.min.css
-       @@java -XX:ReservedCodeCacheSize=64m \
-               -jar build/yuicompressor-2.4.6.jar \
-               --type css ${OUTPUT}/${STRUCTURE}.compiled.css >> ${OUTPUT}/${STRUCTURE}.min.css
-       @@rm ${OUTPUT}/${STRUCTURE}.compiled.css
-       # Build the theme only file
-       @@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT}/${THEME_FILENAME}.css
-       @@cat css/themes/default/jquery.mobile.theme.css >> ${OUTPUT}/${THEME_FILENAME}.css
-       # ..... and then minify it
-       @@echo ${VER_MIN} > ${OUTPUT}/${THEME_FILENAME}.min.css
-       @@java -XX:ReservedCodeCacheSize=64m \
-               -jar build/yuicompressor-2.4.6.jar \
-               --type css ${OUTPUT}/${THEME_FILENAME}.css >> ${OUTPUT}/${THEME_FILENAME}.min.css
-       # Copy in the images
-       @@cp -R css/themes/${THEME}/images ${OUTPUT}/
-       # Css portion is complete.
-       # -------------------------------------------------
-
-
-docs: init js css
-       # Create the Demos/Docs/Tests/Tools
-       # ... Create staging directories
-       @@mkdir -p tmp/demos/js
-       @@mkdir -p tmp/demos/css/themes/${THEME}
-       # ... Copy script files
-       @@cp compiled/*.js tmp/demos/js
-       @@cp js/jquery.js tmp/demos/js
-       # ... Copy html files
-       @@cp index.html tmp/demos
-       @@cp -r docs tmp/demos
-       # ... Copy css and images
-       @@cp compiled/*.css tmp/demos/css/themes/${THEME}
-       @@cp -r compiled/images tmp/demos/css/themes/${THEME}
-       # ... replace "js/" with "js/jquery.mobile.js"
-       @@ # NOTE the deletion here is required by gnu/bsd sed differences
-       @@find tmp/demos -name "*.html" -exec sed -i${SED_INPLACE_EXT} -e 's@js/"@js/jquery.mobile.js"@' {} \;
-       @@find tmp/demos -name "*${SED_INPLACE_EXT}" -exec rm {} \;
-       # ... Move and zip up the the whole folder
-       @@rm -f ${OUTPUT}/${BASE_NAME}.docs.zip
-       @@cd tmp/demos && zip -rq ../../${OUTPUT}/${NAME}.docs.zip *
-       @@rm -rf ${OUTPUT}/demos && mv -f tmp/demos ${OUTPUT}
-       # Finish by removing the temporary files
-       @@rm -rf tmp
-       # -------------------------------------------------
-
-# Build and minify the JS files
-js: init
-       # Build the JavaScript file
-       ${RUN_JS} \
-               external/r.js/dist/r.js \
-               -o baseUrl="js" \
-               name=jquery.mobile \
-               exclude=jquery,../external/requirejs/order,../external/requirejs/depend,../external/requirejs/text,../external/requirejs/text!../version.txt \
-               out=${OUTPUT}/${NAME}.compiled.js \
-               pragmasOnSave.jqmBuildExclude=true \
-               wrap.startFile=build/wrap.start \
-               wrap.endFile=build/wrap.end \
-               findNestedDependencies=true \
-               skipModuleInsertion=true \
-               optimize=none
-       @@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT}/${NAME}.js
-       @@cat ${OUTPUT}/${NAME}.compiled.js | ${SED_VER_API} >> ${OUTPUT}/${NAME}.js
-       @@rm ${OUTPUT}/${NAME}.compiled.js
-       ## ..... and then minify it
-       ##@@echo ${VER_MIN} > ${OUTPUT}/${NAME}.min.js
-       ##@@java -XX:ReservedCodeCacheSize=64m \
-       ##      -jar build/google-compiler-20111003.jar \
-       ##      --js ${OUTPUT}/${NAME}.js \
-       ##      --js_output_file ${OUTPUT}/${NAME}.compiled.js
-       ##@@cat ${OUTPUT}/${NAME}.compiled.js >> ${OUTPUT}/${NAME}.min.js
-       ##@@rm ${OUTPUT}/${NAME}.compiled.js
-       # -------------------------------------------------
-
-
-# Output a message saying the process is complete
-notify: init
-       @@echo "The files have been built and are in: " $$(pwd)/${OUTPUT}
-       # -------------------------------------------------
-
-
-# Zip up the jQm files without docs
-zip: init css js
-       # Packaging up the files into a zip archive
-       @@mkdir tmp
-       @@cp -R ${OUTPUT} tmp/${NAME}
-       # ... And remove the Zipped docs so they aren't included twice (for deploy scripts)
-       @@rm -rf tmp/${NAME}/*.zip
-       @@cd tmp; zip -rq ../${OUTPUT}/${NAME}.zip ${NAME}
-       @@rm -rf tmp
-       # -------------------------------------------------
-
-# -------------------------------------------------
-# -------------------------------------------------
-# -------------------------------------------------
-#
-# For jQuery Team Use Only
-#
-# -------------------------------------------------
-# NOTE the clean (which removes previous build output) has been removed to prevent a gap in service
-build_latest: css docs js zip
-       # ... Copy over the lib js, avoid the compiled stuff, to get the defines for tests/unit/*
-       @@ # TODO centralize list of built files
-       @@find js -name "*.js" -not -name "*.docs.js" -not -name "*.mobile.js"  | xargs -L1 -I FILENAME cp FILENAME ${OUTPUT}/demos/js/
-
-# Push the latest git version to the CDN. This is done on a post commit hook
-deploy_latest:
-       # Time to put these on the CDN
-       @@scp -qr ${OUTPUT}/* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/latest/
-       # -------------------------------------------------
-
-# TODO target name preserved to avoid issues during refactor, latest -> deploy_latest
-latest: build_latest deploy_latest
-
-# Push the nightly backups. This is done on a server cronjob
-deploy_nightlies:
-       # Time to put these on the CDN
-       @@scp -qr ${OUTPUT} jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/nightlies/$$(date "+%Y%m%d")
-       # -------------------------------------------------
-
-# Deploy a finished release. This is manually done.
-deploy: init css js docs zip
-       # Deploying all the files to the CDN
-       @@mkdir tmp
-       @@cp -R ${OUTPUT} tmp/${VER_OFFICIAL}
-       @@scp -qr tmp/* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/
-       @@rm -rf tmp/${VER_OFFICIAL}
-       @@mv ${OUTPUT}/demos tmp/${VER_OFFICIAL}
-       # Create the Demos/Docs/Tests/Tools for jQueryMobile.com
-       # ... By first replacing the paths
-       @@ # TODO update jQuery Version replacement on deploy
-       @@find tmp/${VER_OFFICIAL} -type f \
-               \( -name '*.html' -o -name '*.php' \) \
-               -exec perl -pi -e \
-               's|src="(.*)${BASE_NAME}.js"|src="//code.jquery.com/mobile/${VER_OFFICIAL}/${NAME}.min.js"|g;s|href="(.*)${BASE_NAME}.css"|href="//code.jquery.com/mobile/${VER_OFFICIAL}/${NAME}.min.css"|g;s|src="(.*)jquery.js"|src="//code.jquery.com/jquery-1.7.1.min.js"|g' {} \;
-       # ... So they can be copied to jquerymobile.com
-       @@scp -qr tmp/* jqadmin@jquerymobile.com:/srv/jquerymobile.com/htdocs/demos/
-       # Do some cleanup to wrap it up
-       @@rm -rf tmp
-       @@rm -rf ${OUTPUT}
-       # -------------------------------------------------
-
-
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/README.md b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/README.md
deleted file mode 100644 (file)
index e5607ce..0000000
+++ /dev/null
@@ -1,111 +0,0 @@
-jQuery Mobile Framework
-=======================
-[Official Site: http://jquerymobile.com](http://jquerymobile.com)
-
-[Demos and Documentation](http://jquerymobile.com/test/)
-
-How to build your own jQuery Mobile CSS and JS files
-====================================================
-Clone this repo and build the js and css files (you'll need Git and Make installed):
-
-    git clone git://github.com/jquery/jquery-mobile.git
-    cd jquery-mobile
-    make
-
-A full version and a minified version of the jQuery Mobile JavaScript and CSS files will be created
-in a folder named "compiled". There is also now a Structure only css file so you can add your own theme on top of it.
-
-How to build a self-contained version of the Docs/Demos
-=======================================================
-Once you have your own cloned repo on your computer:
-
-    make docs
-
-The docs will be built and available in the compiled/demos folder. You can move this folder to your web server or
-other location. It has no dependencies on anything other than a basic HTML web server.
-
-
-Submitting bugs
-===============
-If you think you've found a bug, please report it by following these instructions:
-
-1. Visit the [Issue tracker: https://github.com/jquery/jquery-mobile/issues](https://github.com/jquery/jquery-mobile/issues)
-2. Create an issue explaining the problem and expected result
-    - Be sure to include any relevant information for reproducing the issue
-    - Include information such as:
-        * Browser/device (with version #)
-        * The version of the jQuery Mobile code you're running
-        * If you are running from a git version, include the date and/or hash number
-    - Make sure that the bug still exists at http://jquerymobile.com/test/ as it may be fixed already
-    - You can use the CDN hosted JS and CSS files to test in your own code by using:
-        * [JS](http://code.jquery.com/mobile/latest/jquery.mobile.min.js)
-        * [CSS](http://code.jquery.com/mobile/latest/jquery.mobile.min.css)
-    - Include a link to some code of the bug in action. You can use either of these services to host your code
-        * [jsbin](http://jsbin.com)
-        * [jsfiddle](http://jsfiddle.net)
-3. Submit the issue.
-
-Recommended: [JS Bin issue template with instructions](http://jsbin.com/omacox/edit)
-
-Submitting patches
-==================
-To contribute code and bug fixes to jQuery Mobile: fork this project on Github, make changes to the code in your fork,
-and then send a "pull request" to notify the team of updates that are ready to be reviewed for inclusion.
-
-Detailed instructions can be found at [jQuery Mobile Patching](https://gist.github.com/1294035)
-
-Running the jQuery Mobile demos & docs locally
-==============================================
-To preview locally, you'll need to clone a local copy of this repository and point your Apache & PHP webserver at its
-root directory (a webserver is required, as PHP and .htaccess are used for combining development files).
-
-If you don't currently have a webserver running locally, there are a few options.
-
-If you're on a Mac, you can try dropping jQuery Mobile into your sites folder and turning on Web Sharing via System
-Prefs. From there, you'll find a URL where you can browse folders in your sites directory from a browser.
-
-Another quick way to get up and running is to download and install MAMP for Mac OSX. Once installed, just open MAMP,
-click preferences, go to the Apache tab, and select your local jQuery Mobile folder as the root. Then you can open a
-browser to http://localhost:8888 to preview the code.
-
-Another alternative is XAMPP (Mac, Windows). You need to actually modify Apache's httpd.conf to point to your checkout:
-[Instructions](http://www.apachefriends.org/en/xampp.html)
-
-You need the following Apache modules loaded:
-
-* Rewrite (mod\_rewrite.so)
-* Expire (mod\_expires.so)
-* Header (mod\_headers.so)
-
-Alternatively, with the addition of async loading, you can use the python simple http server from the project root:
-
-    $ python -m SimpleHTTPServer 8000
-
-And in your browser visit [localhost:8000](http://localhost:8000/tests/unit/core/). NOTE: The docs will not load as they are dependent on the "/js/" includes which require php. For other development work such as unit tests and custom test pages using
-
-    <script data-main="js/jquery.mobile.docs" src="external/requirejs/require.js"></script>
-
-will allow you to load modules asynchronously without php. Please note that the example above assumes it's inclusion in a page at the root of the directory in which the simple http server was run.
-
-AMD Support in Development
-==========================
-
-Please bear in mind that async loading is not supported for production and is primarily used for the project's build process. As a result developers should expect an initial flash of unstyled content, which will not occur when the library is compiled.
-
-If you find dependency bugs when using the async loading support for development please log them in the github issue tracker.
-
-Building With A Custom Theme
-============================
-To use a custom theme in your own build, you'll need Make installed. You can find the themes in the CSS/Themes folder.
-To create a new theme:
-
-1. Copy the `Default` folder from CSS/Themes to a new folder in the same location. The name of the folder will be the
-theme's name. For testing locally, make sure the index.php file is copied as well.
-2. Edit the `jquery.mobile.theme.css` file so it contains your custom fonts and colors.
-3. Once you are done editing your files and saving them, open a terminal.
-4. Navigate to the jQuery-Mobile folder's root.
-5. Run the following command to build jQuery-Mobile (THEME is the name of the folder for your theme from step 1.):
-
-    make THEME=YourThemeName
-
-6. The compiled files will be located in the "compiled" folder in the root of jQuery-Mobile.
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/combine.php b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/combine.php
deleted file mode 100644 (file)
index cac1eea..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-// Get the filetype and array of files
-if ( ! isset($type) || ! isset($files) )
-{
-       echo '$type and $files must be specified!';
-       exit;
-}
-
-$contents = '';
-
-// Loop through the files adding them to a string
-foreach ( $files as $file ) {
-       $contents .= file_get_contents($file). "\n\n";
-}
-
-// Set the content type, filesize and an expiration so its not cached
-header('Content-Type: ' . $type);
-header('Content-Length: ' . strlen($contents));
-header('Expires: Fri, 01 Jan 2010 05:00:00 GMT');
-
-// Deliver the file
-echo $contents;
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.button.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.button.css
deleted file mode 100644 (file)
index 6fdc9ee..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-.ui-btn { display: block; text-align: center; cursor:pointer;  position: relative; margin: .5em 5px; padding: 0; }
-.ui-mini { margin: .25em 5px; }
-.ui-btn-inner { padding: .6em 20px; min-width: .75em; display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; position: relative; zoom: 1; }
-.ui-btn input, .ui-btn button { z-index: 2; }
-.ui-btn-left, .ui-btn-right, .ui-btn-inline { display: inline-block; }
-.ui-btn-block { display: block; }
-
-.ui-header .ui-btn,
-.ui-footer .ui-btn { display: inline-block; margin: 0; }
-
-.ui-header .ui-btn-inner,
-.ui-footer .ui-btn-inner,
-.ui-mini .ui-btn-inner { font-size: 12.5px; padding: .55em 11px .5em; }
-
-.ui-header .ui-fullsize .ui-btn-inner,
-.ui-footer .ui-fullsize .ui-btn-inner { font-size: 16px; padding: .6em 25px; }
-
-.ui-btn-icon-notext { width: 24px; height: 24px; }
-.ui-btn-icon-notext .ui-btn-inner { padding: 0; height: 100%; }
-.ui-btn-icon-notext .ui-btn-inner .ui-icon { margin: 2px 1px 2px 3px; }
-
-.ui-btn-text { position: relative; z-index: 1; width: 100%; }
-.ui-btn-icon-notext .ui-btn-text { position: absolute; left: -9999px; }
-
-.ui-btn-icon-left .ui-btn-inner { padding-left: 40px; }
-.ui-btn-icon-right .ui-btn-inner { padding-right: 40px; }
-.ui-btn-icon-top .ui-btn-inner { padding-top: 40px; }
-.ui-btn-icon-bottom .ui-btn-inner { padding-bottom: 40px; }
-
-.ui-header .ui-btn-icon-left .ui-btn-inner,
-.ui-footer .ui-btn-icon-left .ui-btn-inner,
-.ui-mini .ui-btn-icon-left .ui-btn-inner { padding-left: 30px; }
-.ui-header .ui-btn-icon-right .ui-btn-inner,
-.ui-footer .ui-btn-icon-right .ui-btn-inner,
-.ui-mini .ui-btn-icon-right .ui-btn-inner { padding-right: 30px; }
-.ui-header .ui-btn-icon-top .ui-btn-inner,
-.ui-footer .ui-btn-icon-top .ui-btn-inner,
-.ui-mini .ui-btn-icon-top .ui-btn-inner { padding: 30px 3px .5em 3px; }
-.ui-header .ui-btn-icon-bottom .ui-btn-inner,
-.ui-footer .ui-btn-icon-bottom .ui-btn-inner,
-.ui-mini .ui-btn-icon-bottom .ui-btn-inner { padding: .55em 3px 30px 3px; }
-
-/*btn icon positioning*/
-.ui-btn-icon-notext .ui-icon { display: block; z-index: 0;}
-.ui-btn-icon-left .ui-btn-inner .ui-icon, .ui-btn-icon-right .ui-btn-inner .ui-icon { position: absolute; top: 50%; margin-top: -9px; }
-.ui-btn-icon-top .ui-btn-inner .ui-icon, .ui-btn-icon-bottom .ui-btn-inner .ui-icon { position: absolute; left: 50%;  margin-left: -9px; }
-.ui-btn-icon-left .ui-icon { left: 10px; }
-.ui-btn-icon-right .ui-icon { right: 10px; }
-.ui-btn-icon-top .ui-icon { top: 10px; }
-.ui-btn-icon-bottom .ui-icon { top: auto; bottom: 10px; }
-
-.ui-header .ui-btn-icon-left .ui-icon,
-.ui-footer .ui-btn-icon-left .ui-icon,
-.ui-mini.ui-btn-icon-left .ui-icon,
-.ui-mini .ui-btn-icon-left .ui-icon { left: 5px; }
-.ui-header .ui-btn-icon-right .ui-icon,
-.ui-footer .ui-btn-icon-right .ui-icon,
-.ui-mini.ui-btn-icon-right .ui-icon,
-.ui-mini .ui-btn-icon-right .ui-icon { right: 5px; }
-.ui-header .ui-btn-icon-top .ui-icon,
-.ui-footer .ui-btn-icon-top .ui-icon,
-.ui-mini.ui-btn-icon-top .ui-icon,
-.ui-mini .ui-btn-icon-top .ui-icon { top: 5px; }
-.ui-header .ui-btn-icon-bottom .ui-icon,
-.ui-footer .ui-btn-icon-bottom .ui-icon,
-.ui-mini.ui-btn-icon-bottom .ui-icon,
-.ui-mini .ui-btn-icon-bottom .ui-icon { bottom: 5px; }
-
-/*hiding native button,inputs */
-.ui-btn-hidden { position: absolute; top: 0; left: 0; width: 100%; height: 100%; -webkit-appearance: button; opacity: .1; cursor: pointer; background: #fff; background: rgba(255,255,255,0); filter: Alpha(Opacity=.0001); font-size: 1px; border: none; text-indent: -9999px; }
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.collapsible.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.collapsible.css
deleted file mode 100644 (file)
index 50f62bc..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-.ui-collapsible { margin: .5em 0; }
-.ui-collapsible-heading { font-size: 16px; display: block; margin: 0 -8px; padding: 0; border-width: 0 0 1px 0; position: relative; }
-.ui-collapsible-heading a { text-align: left; margin: 0;  }
-.ui-collapsible-heading .ui-btn-inner,
-.ui-collapsible-heading .ui-btn-icon-left .ui-btn-inner { padding-left: 40px; }
-.ui-collapsible-heading .ui-btn-icon-right .ui-btn-inner { padding-left: 12px; padding-right: 40px; }
-.ui-collapsible-heading .ui-btn-icon-top .ui-btn-inner,
-.ui-collapsible-heading .ui-btn-icon-bottom .ui-btn-inner { padding-right: 40px; text-align: center; }
-
-.ui-collapsible-heading a span.ui-btn { position: absolute; left: 6px; top: 50%; margin: -12px 0 0 0; width: 20px; height: 20px; padding: 1px 0px 1px 2px; text-indent: -9999px; }
-.ui-collapsible-heading a span.ui-btn .ui-btn-inner { padding: 10px 0; }
-.ui-collapsible-heading a span.ui-btn .ui-icon { left: 0; margin-top: -10px; }
-.ui-collapsible-heading-status { position: absolute; top: -9999px; left:0px; }
-.ui-collapsible-content {
-       display: block;
-       margin:  0 -8px;
-       padding: 10px 16px;
-       border-top:  none;      /* Overrides ui-btn-up-* */
-       background-image: none; /* Overrides ui-btn-up-* */
-       font-weight: normal;    /* Overrides ui-btn-up-* */
-}
-.ui-collapsible-content-collapsed { display: none; }
-
-.ui-collapsible-set { margin: .5em 0; }
-.ui-collapsible-set .ui-collapsible { margin: -1px 0 0; }
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.controlgroup.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.controlgroup.css
deleted file mode 100644 (file)
index 6130417..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-.ui-controlgroup, fieldset.ui-controlgroup { padding: 0; margin: 0em 0 .5em; zoom: 1; }
-
-.ui-bar .ui-controlgroup { margin: 0 .3em; }
-.ui-controlgroup-label { font-size: 16px; line-height: 1.4; font-weight: normal; margin: 0 0 .4em; }
-.ui-controlgroup-controls { display: block; width: 100%;}
-.ui-controlgroup li { list-style: none; }
-.ui-controlgroup-vertical .ui-btn,
-.ui-controlgroup-vertical .ui-checkbox, .ui-controlgroup-vertical .ui-radio { margin: 0; border-bottom-width: 0;  }
-.ui-controlgroup-controls label.ui-select { position: absolute; left: -9999px; }
-
-.ui-controlgroup-vertical .ui-controlgroup-last { border-bottom-width: 1px; }
-.ui-controlgroup-horizontal { padding: 0; }
-.ui-controlgroup-horizontal .ui-btn-inner { text-align:center; }
-.ui-controlgroup-horizontal .ui-btn, .ui-controlgroup-horizontal .ui-select { display: inline-block; margin: 0 -6px 0 0; }
-.ui-controlgroup-horizontal .ui-checkbox, .ui-controlgroup-horizontal .ui-radio { float: left; clear: none; margin: 0 -1px 0 0; }
-.ui-controlgroup-horizontal .ui-checkbox .ui-btn, .ui-controlgroup-horizontal .ui-radio .ui-btn,
-.ui-controlgroup-horizontal .ui-checkbox:last-child, .ui-controlgroup-horizontal .ui-radio:last-child { margin-right: 0; }
-.ui-controlgroup-horizontal .ui-controlgroup-last { margin-right: 0; }
-.ui-controlgroup .ui-checkbox label, .ui-controlgroup .ui-radio label { font-size: 16px;  }
-/* conflicts with listview..
-.ui-controlgroup .ui-btn-icon-notext { width: 30px; height: 30px; text-indent: -9999px; }
-.ui-controlgroup .ui-btn-icon-notext .ui-btn-inner {  padding: 5px 6px 5px 5px; }
-*/
-
-@media all and (min-width: 450px){
-       .ui-field-contain .ui-controlgroup-label { vertical-align: top; display: inline-block;  width: 20%;  margin: 0 2% 0 0;  }
-       .ui-field-contain .ui-controlgroup-controls { width: 60%; display: inline-block; }
-       .ui-field-contain .ui-controlgroup .ui-select { width: 100%; } 
-       .ui-field-contain .ui-controlgroup-horizontal .ui-select { width: auto; }
-}      
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.core.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.core.css
deleted file mode 100644 (file)
index 47fe49d..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-/* some unsets - more probably needed */
-.ui-mobile, .ui-mobile body { height: 99.9%; }
-.ui-mobile fieldset, .ui-page { padding: 0; margin: 0; }
-.ui-mobile a img, .ui-mobile fieldset { border-width: 0; }
-
-/* responsive page widths */
-.ui-mobile-viewport {  margin: 0; overflow-x: visible; -webkit-text-size-adjust: none; -ms-text-size-adjust:none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
-/* Issue #2066 */
-body.ui-mobile-viewport,
-div.ui-mobile-viewport { overflow-x: hidden; }
-
-/* "page" containers - full-screen views, one should always be in view post-pageload */
-.ui-mobile [data-role=page], .ui-mobile [data-role=dialog], .ui-page { top: 0; left: 0; width: 100%; min-height: 100%; position: absolute; display: none; border: 0; }
-.ui-mobile .ui-page-active { display: block; overflow: visible; }
-
-/* on ios4, setting focus on the page element causes flashing during transitions when there is an outline, so we turn off outlines */
-.ui-page { outline: none; }
-
-/*orientations from js are available */
-@media screen and (orientation: portrait){
-.ui-mobile, .ui-mobile .ui-page { min-height: 420px; }
-}
-@media screen and (orientation: landscape){
-.ui-mobile, .ui-mobile .ui-page { min-height: 300px; }
-}
-
-/* loading screen */
-.ui-loading .ui-loader { display: block; }
-.ui-loader { display: none; z-index: 9999999; position: fixed; top: 50%; box-shadow: 0 1px 1px -1px #fff; left: 50%; border:0; }
-.ui-loader-default { background: none; opacity: .18; width: 46px; height: 46px; margin-left: -23px; margin-top: -23px; }
-.ui-loader-verbose { width: 200px; opacity: .88; height: auto; margin-left: -110px; margin-top: -43px; padding: 10px; }
-.ui-loader-default h1 { font-size: 0; width: 0; height: 0; overflow: hidden; }
-.ui-loader-verbose h1 { font-size: 16px; margin: 0; text-align: center; }
-.ui-loader .ui-icon { background-color: #000; display: block; margin: 0; width: 44px; height: 44px; padding: 1px; -webkit-border-radius: 36px; -moz-border-radius: 36px; border-radius: 36px; }
-.ui-loader-verbose .ui-icon { margin: 0 auto 10px; opacity: .75; }
-.ui-loader-textonly { padding: 15px; margin-left: -115px;  }
-.ui-loader-textonly .ui-icon { display: none; }
-.ui-loader-fakefix { position: absolute; }
-/*fouc*/
-.ui-mobile-rendering > * { visibility: hidden; }
-
-/*headers, content panels*/
-.ui-bar, .ui-body { position: relative; padding: .4em 15px;  overflow: hidden; display: block;  clear:both;  }
-.ui-bar { font-size: 16px; margin: 0; }
-.ui-bar h1, .ui-bar h2, .ui-bar h3, .ui-bar h4, .ui-bar h5, .ui-bar h6 { margin: 0; padding: 0; font-size: 16px; display: inline-block; }
-
-.ui-header, .ui-footer { position: relative; border-left-width: 0; border-right-width: 0; }
-.ui-header .ui-btn-left,
-.ui-header .ui-btn-right,
-.ui-footer .ui-btn-left,
-.ui-footer .ui-btn-right { position: absolute; top: 3px; }
-.ui-header .ui-btn-left,
-.ui-footer .ui-btn-left { left: 5px; }
-.ui-header .ui-btn-right,
-.ui-footer .ui-btn-right { right: 5px; }
-.ui-footer .ui-btn-icon-notext,
-.ui-header .ui-btn-icon-notext { top: 6px; }
-.ui-header .ui-title, .ui-footer .ui-title { min-height: 1.1em; text-align: center; font-size: 16px; display: block; margin: .6em 30% .8em;  padding: 0;  text-overflow: ellipsis; overflow: hidden; white-space: nowrap; outline: 0 !important; }
-.ui-footer .ui-title { margin: .6em 15px .8em;  }
-
-/*content area*/
-.ui-content { border-width: 0; overflow: visible; overflow-x: hidden; padding: 15px; }
-
-/* icons sizing */
-.ui-icon { width: 18px; height: 18px; }
-
-/* non-js content hiding */
-.ui-nojs { position: absolute; left: -9999px; }
-
-/* accessible content hiding */
-.ui-hide-label label,
-.ui-hidden-accessible { position: absolute !important; left: -9999px; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.dialog.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.dialog.css
deleted file mode 100644 (file)
index 6f0e651..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-.ui-dialog {
-        background: none !important; /* this is to ensure that dialog theming does not apply (by default at least) on the page div */
-}
-.ui-dialog-contain { width: 92.5%; max-width: 500px; margin: 10% auto 15px auto; padding: 0; }
-.ui-dialog .ui-header {
-       margin-top: 15%;
-       border: none;
-       overflow: hidden;
-}
-.ui-dialog .ui-header, 
-.ui-dialog .ui-content, 
-.ui-dialog .ui-footer { 
-       display: block;
-       position: relative; 
-       width: auto;
-}
-.ui-dialog .ui-header, 
-.ui-dialog .ui-footer  { 
-       z-index: 10; 
-       padding: 0;
-}
-.ui-dialog .ui-footer {
-       padding: 0 15px; 
-}
-.ui-dialog .ui-content { 
-       padding: 15px; 
-}
-.ui-dialog { 
-       margin-top: -15px;  
-}
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.fixedToolbar.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.fixedToolbar.css
deleted file mode 100644 (file)
index b81d9d0..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/* fixed page header & footer configuration */
-.ui-header-fixed,
-.ui-footer-fixed {
-       left: 0;
-       right: 0;
-       width: 100%;
-       position: fixed;
-       z-index: 1000;
-}
-.ui-header-fixed {
-       top: 0;
-}
-.ui-footer-fixed {
-       bottom: 0;
-}
-.ui-header-fullscreen,
-.ui-footer-fullscreen {
-       opacity: .9;
-}
-.ui-page-header-fixed {
-       padding-top: 2.5em;
-}
-.ui-page-footer-fixed {
-       padding-bottom: 3em;
-}
-.ui-page-header-fullscreen .ui-content,
-.ui-page-footer-fullscreen .ui-content {
-       padding: 0;
-}
-.ui-fixed-hidden {
-       position: absolute;
-}
-.ui-page-header-fullscreen .ui-fixed-hidden,
-.ui-page-footer-fullscreen .ui-fixed-hidden {
-       left: -99999em;
-}
-.ui-header-fixed .ui-btn,
-.ui-footer-fixed .ui-btn { 
-       z-index: 10;
-}
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.checkboxradio.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.checkboxradio.css
deleted file mode 100644 (file)
index d5ec896..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-.ui-checkbox, .ui-radio { position: relative; clear: both; margin: .2em 0 .5em; z-index: 1;  }
-.ui-checkbox .ui-btn, .ui-radio .ui-btn { margin: 0; text-align: left; z-index: 2; }
-.ui-checkbox .ui-btn-inner, .ui-radio .ui-btn-inner { white-space: normal; }
-.ui-checkbox .ui-btn-icon-left .ui-btn-inner,.ui-radio .ui-btn-icon-left .ui-btn-inner { padding-left: 45px; }
-.ui-checkbox .ui-mini.ui-btn-icon-left .ui-btn-inner,.ui-radio .ui-mini.ui-btn-icon-left .ui-btn-inner { padding-left: 36px; }
-
-.ui-checkbox .ui-btn-icon-right .ui-btn-inner, .ui-radio .ui-btn-icon-right .ui-btn-inner { padding-right: 45px; }
-.ui-checkbox .ui-mini.ui-btn-icon-right .ui-btn-inner, .ui-radio .ui-mini.ui-btn-icon-right .ui-btn-inner { padding-right: 36px; }
-
-.ui-checkbox .ui-btn-icon-top .ui-btn-inner,.ui-radio .ui-btn-icon-top .ui-btn-inner { padding-right: 0; padding-left: 0; text-align: center; }
-.ui-checkbox .ui-btn-icon-bottom .ui-btn-inner, .ui-radio .ui-btn-icon-bottom .ui-btn-inner { padding-right: 0; padding-left: 0; text-align: center; }
-
-.ui-checkbox .ui-icon, .ui-radio .ui-icon { top: 1.1em; }
-.ui-checkbox .ui-btn-icon-left .ui-icon, .ui-radio .ui-btn-icon-left .ui-icon { left: 15px; }
-.ui-checkbox .ui-mini.ui-btn-icon-left .ui-icon, .ui-radio .ui-mini.ui-btn-icon-left .ui-icon { left: 9px; }
-.ui-checkbox .ui-btn-icon-right .ui-icon, .ui-radio .ui-btn-icon-right .ui-icon { right: 15px; }
-.ui-checkbox .ui-mini.ui-btn-icon-right .ui-icon, .ui-radio .ui-mini.ui-btn-icon-right .ui-icon { right: 9px; }
-.ui-checkbox .ui-btn-icon-top .ui-icon, .ui-radio .ui-btn-icon-top .ui-icon { top: 10px; }
-.ui-checkbox .ui-btn-icon-bottom .ui-icon, .ui-radio .ui-btn-icon-bottom .ui-icon { top: auto; bottom: 10px; }
-.ui-checkbox .ui-btn-icon-right .ui-icon, .ui-radio .ui-btn-icon-right .ui-icon { right: 15px; }
-.ui-checkbox .ui-mini.ui-btn-icon-right .ui-icon, .ui-radio .ui-mini.ui-btn-icon-right .ui-icon { right: 9px; }
-
-/* input, label positioning */
-.ui-checkbox input,.ui-radio input { position:absolute; left:20px; top:50%; width: 10px; height: 10px;  margin:-5px 0 0 0; outline: 0 !important; z-index: 1; }
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.fieldcontain.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.fieldcontain.css
deleted file mode 100644 (file)
index da40101..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-.ui-field-contain, fieldset.ui-field-contain { padding: .8em 0; margin: 0; border-width: 0 0 1px 0; overflow: visible; }
-.ui-field-contain:first-child { border-top-width: 0; }
-.ui-header .ui-field-contain-left,
-.ui-header .ui-field-contain-right {
-       position: absolute;
-       top: 0;
-       width: 25%;
-}
-.ui-header .ui-field-contain-left {
-       left: 1em;
-}
-.ui-header .ui-field-contain-right {
-       right: 1em;
-}
-
-@media all and (min-width: 450px){
-       .ui-field-contain, .ui-mobile fieldset.ui-field-contain { border-width: 0; padding: 0; margin: 1em 0; }
-}
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.select.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.select.css
deleted file mode 100644 (file)
index db8356f..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-.ui-select { display: block; position: relative; }
-.ui-select select { position: absolute; left: -9999px; top: -9999px; }
-.ui-select .ui-btn { overflow: hidden; opacity: 1; margin: 0; }
-/* Fixes #2588 — When Windows Phone 7.5 (Mango) tries to calculate a numeric opacity for a select—including “inherit”—without explicitly specifying an opacity on the parent to give it context, a bug appears where clicking elsewhere on the page after opening the select will open the select again. */
-.ui-select .ui-btn select { cursor: pointer; -webkit-appearance: button; left: 0; top:0; width: 100%;  min-height: 1.5em; min-height: 100%; height: 3em; max-height: 100%; opacity: 0; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); z-index: 2; }
-
-.ui-select .ui-disabled { opacity: .3; }
-
-@-moz-document url-prefix() {.ui-select .ui-btn select { opacity: 0.0001; }}
-.ui-select .ui-btn select.ui-select-nativeonly { opacity: 1; text-indent: 0; }
-
-.ui-select .ui-btn-icon-right .ui-btn-inner { padding-right: 45px; } 
-.ui-select .ui-btn-icon-right .ui-icon { right: 15px;  }
-.ui-select .ui-mini.ui-btn-icon-right .ui-icon { right: 7px;  }
-
-
-/* labels */
-label.ui-select { font-size: 16px; line-height: 1.4;  font-weight: normal; margin: 0 0 .3em; display: block; }
-
-/*listbox*/
-.ui-select .ui-btn-text, .ui-selectmenu .ui-btn-text { display: block; min-height: 1em; overflow: hidden !important;
-/* This !important is required for iPad Safari specifically. See https://github.com/jquery/jquery-mobile/issues/2647 */ }
-.ui-select .ui-btn-text { text-overflow: ellipsis; }
-
-.ui-selectmenu { position: absolute; padding: 0; z-index: 1100 !important; width: 80%; max-width: 350px; padding: 6px; }
-.ui-selectmenu .ui-listview { margin: 0; }
-.ui-selectmenu .ui-btn.ui-li-divider { cursor: default; }
-.ui-selectmenu-hidden { top: -9999px; left: -9999px; }
-.ui-selectmenu-screen { position: absolute; top: 0; left: 0; width: 100%; height: 100%;  z-index: 99; }
-.ui-screen-hidden, .ui-selectmenu-list .ui-li .ui-icon { display: none; }
-.ui-selectmenu-list .ui-li .ui-icon { display: block; }
-.ui-li.ui-selectmenu-placeholder { display: none; }
-.ui-selectmenu .ui-header .ui-title { margin: 0.6em 46px 0.8em; }
-
-@media all and (min-width: 450px){     
-       .ui-field-contain label.ui-select { vertical-align: top;  display: inline-block;  width: 20%;  margin: 0 2% 0 0; }
-       .ui-field-contain .ui-select { width: 60%; display: inline-block; }
-}      
-
-/* when no placeholder is defined in a multiple select, the header height doesn't even extend past the close button.  this shim's content in there */
-.ui-selectmenu .ui-header h1:after { content: '.'; visibility: hidden; }
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.slider.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.slider.css
deleted file mode 100644 (file)
index 80035db..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-label.ui-slider { font-size: 16px; line-height: 1.4;  font-weight: normal; margin: 0 0 .3em; display: block; }
-input.ui-slider-input,
-.ui-field-contain input.ui-slider-input { display: inline-block; width: 50px; }
-select.ui-slider-switch { display: none; }
-div.ui-slider { position: relative; display: inline-block; overflow: visible; height: 15px; padding: 0; margin: 0 2% 0 20px; top: 4px; width: 65%; }
-div.ui-slider-mini { height: 12px; margin-left: 10px; }
-div.ui-slider-bg { border: none; height: 100%; padding-right: 8px; }
-.ui-controlgroup a.ui-slider-handle, a.ui-slider-handle { position: absolute; z-index: 1;  top: 50%; width: 28px; height: 28px; margin-top: -15px; margin-left: -15px; outline: 0; }
-a.ui-slider-handle .ui-btn-inner { padding: 0; height: 100%; }
-div.ui-slider-mini a.ui-slider-handle { height: 14px; width: 14px; margin: -8px 0 0 -7px; }
-div.ui-slider-mini a.ui-slider-handle .ui-btn-inner { height: 30px; width: 30px; padding: 0; margin: -9px 0 0 -9px; }
-
-@media all and (min-width: 450px){
-       .ui-field-contain label.ui-slider { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0; }
-       .ui-field-contain div.ui-slider { width: 43%; }
-       .ui-field-contain div.ui-slider-switch { width: 5.5em; }
-}      
-
-div.ui-slider-switch { height: 32px; margin-left: 0; width: 5.8em; }
-a.ui-slider-handle-snapping { -webkit-transition: left 70ms linear; -moz-transition: left 70ms linear; }
-div.ui-slider-switch .ui-slider-handle {  margin-top: 1px;  }
-.ui-slider-inneroffset { margin: 0 16px; position: relative; z-index: 1; }
-
-div.ui-slider-switch.ui-slider-mini { width: 5em; height: 29px; }
-div.ui-slider-switch.ui-slider-mini .ui-slider-inneroffset { margin: 0 15px 0 14px; }
-div.ui-slider-switch.ui-slider-mini .ui-slider-handle { width: 25px; height: 25px; margin: 1px 0 0 -13px; }
-div.ui-slider-switch.ui-slider-mini a.ui-slider-handle .ui-btn-inner { height: 30px; width: 30px; padding: 0; margin: 0; }
-
-span.ui-slider-label { position: absolute; text-align: center; width: 100%; overflow: hidden; font-size: 16px; top: 0; line-height: 2; min-height: 100%; border-width: 0; white-space: nowrap; }
-.ui-slider-mini span.ui-slider-label { font-size: 14px; }
-
-span.ui-slider-label-a { z-index: 1; left: 0; text-indent: -1.5em; }
-span.ui-slider-label-b { z-index: 0; right: 0; text-indent: 1.5em;}
-
-.ui-slider-inline { width: 120px; display: inline-block; }
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.textinput.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.textinput.css
deleted file mode 100644 (file)
index 3452bb4..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-label.ui-input-text { font-size: 16px; line-height: 1.4; display: block; font-weight: normal; margin: 0 0 .3em; }
-input.ui-input-text, textarea.ui-input-text { background-image: none; padding: .4em; line-height: 1.4; font-size: 16px; display: block; width: 97%; outline: 0; }
-.ui-header input.ui-input-text,
-.ui-footer input.ui-input-text { margin-left: 1.25%; padding: .4em 1%; width: 95.5% } /* Note that padding left/right on text inputs is factored into how the element is displayed in Firefox, but does not actually pad the text inside it. */
- input.ui-input-text { -webkit-appearance: none; }
-textarea.ui-input-text { height: 50px; -webkit-transition: height 200ms linear; -moz-transition: height 200ms linear; -o-transition: height 200ms linear; transition: height 200ms linear; }
-.ui-input-search { padding: 0 30px; background-image: none; position: relative; }
-.ui-icon-searchfield:after { position: absolute; left: 7px; top: 50%; margin-top: -9px; content: ""; width: 18px; height: 18px; opacity: .5; }
-.ui-input-search input.ui-input-text { border: none; width: 98%; padding: .4em 0; margin: 0; display: block; background: transparent none; outline: 0 !important; }
-.ui-input-search .ui-input-clear { position: absolute; right: 0; top: 50%; margin-top: -13px; }
-.ui-mini .ui-input-clear { right: -3px; }
-
-.ui-input-search .ui-input-clear-hidden { display: none; }
-input.ui-mini, .ui-mini input, textarea.ui-mini { font-size: 14px; }
-textarea.ui-mini { height: 45px; }
-
-/* orientation adjustments - incomplete!*/
-@media all and (min-width: 450px){
-       .ui-field-contain label.ui-input-text  { vertical-align: top; display: inline-block;  width: 20%;  margin: 0 2% 0 0 }
-       .ui-field-contain input.ui-input-text, 
-       .ui-field-contain textarea.ui-input-text, 
-       .ui-field-contain .ui-input-search { width: 60%; display: inline-block; } 
-       .ui-field-contain .ui-input-search { width: 50%; }
-       .ui-hide-label input.ui-input-text, 
-       .ui-hide-label textarea.ui-input-text, 
-       .ui-hide-label .ui-input-search { padding: .4em; width: 97%; } 
-       .ui-input-search input.ui-input-text { width: 98%; /*echos rule from above*/ }
-}
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.grid.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.grid.css
deleted file mode 100644 (file)
index 39a3850..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-/* content configurations. */
-.ui-grid-a, .ui-grid-b, .ui-grid-c, .ui-grid-d { overflow: hidden; }
-.ui-block-a, .ui-block-b, .ui-block-c, .ui-block-d, .ui-block-e { margin: 0; padding: 0; border: 0; float: left; min-height:1px;}
-
-/* grid solo: 100 - single item fallback */
-.ui-grid-solo .ui-block-a { width: 100%; float: none; }
-
-/* grid a: 50/50 */
-.ui-grid-a .ui-block-a, .ui-grid-a .ui-block-b { width: 50%; }
-.ui-grid-a .ui-block-a { clear: left; }
-
-/* grid b: 33/33/33 */
-.ui-grid-b .ui-block-a, .ui-grid-b .ui-block-b, .ui-grid-b .ui-block-c { width: 33.333%; }
-.ui-grid-b .ui-block-a { clear: left; }
-
-/* grid c: 25/25/25/25 */
-.ui-grid-c .ui-block-a, .ui-grid-c .ui-block-b, .ui-grid-c .ui-block-c, .ui-grid-c .ui-block-d { width: 25%; }
-.ui-grid-c .ui-block-a { clear: left; }
-
-/* grid d: 20/20/20/20/20 */
-.ui-grid-d .ui-block-a, .ui-grid-d .ui-block-b, .ui-grid-d .ui-block-c, .ui-grid-d .ui-block-d, .ui-grid-d .ui-block-e { width: 20%; }
-.ui-grid-d .ui-block-a { clear: left; }
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.listview.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.listview.css
deleted file mode 100644 (file)
index 8bbda67..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-.ui-listview { margin: 0; counter-reset: listnumbering; }
-.ui-content .ui-listview { margin: -15px; }
-.ui-content .ui-listview-inset { margin: 1em 0;  }
-.ui-listview, .ui-li { list-style:none; padding:0; }
-.ui-li, .ui-li.ui-field-contain { display: block; margin:0; position: relative; overflow: visible; text-align: left; border-width: 0; border-top-width: 1px; }
-.ui-li .ui-btn-text a.ui-link-inherit { text-overflow: ellipsis; overflow: hidden; white-space: nowrap;  }
-.ui-li-divider, .ui-li-static { padding: .5em 15px; font-size: 14px; font-weight: bold;  }
-.ui-li-divider { counter-reset: listnumbering;  }
-ol.ui-listview .ui-link-inherit:before, ol.ui-listview .ui-li-static:before, .ui-li-dec { font-size: .8em; display: inline-block; padding-right: .3em; font-weight: normal;counter-increment: listnumbering; content: counter(listnumbering) ". "; }
-ol.ui-listview .ui-li-jsnumbering:before { content: "" !important; } /* to avoid chance of duplication */
-.ui-listview-inset .ui-li { border-right-width: 1px; border-left-width: 1px; }
-.ui-li:last-child, .ui-li.ui-field-contain:last-child { border-bottom-width: 1px; }
-.ui-li>.ui-btn-inner { display: block; position: relative; padding: 0; }
-.ui-li .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li { padding: .7em 15px .7em 15px; display: block; }
-.ui-li-has-thumb .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-thumb  { min-height: 60px; padding-left: 100px; }
-.ui-li-has-icon .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-icon {  min-height: 20px; padding-left: 40px; }
-.ui-li-has-count .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-count { padding-right: 45px; }
-.ui-li-has-arrow .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-arrow { padding-right: 30px; }
-.ui-li-has-arrow.ui-li-has-count .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-arrow.ui-li-has-count { padding-right: 75px; }
-.ui-li-has-count .ui-btn-text { padding-right: 15px; }
-.ui-li-heading { font-size: 16px; font-weight: bold; display: block; margin: .6em 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;  }
-.ui-li-desc {  font-size: 12px; font-weight: normal; display: block; margin: -.5em 0 .6em; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
-.ui-li-thumb, .ui-listview .ui-li-icon { position: absolute; left: 1px; top: 0; max-height: 80px; max-width: 80px; }
-.ui-listview .ui-li-icon { max-height: 40px; max-width: 40px; left: 10px; top: .9em; }
-.ui-li-thumb, .ui-listview .ui-li-icon, .ui-li-content { float: left; margin-right: 10px; }
-
-.ui-li-aside { float: right; width: 50%; text-align: right; margin: .3em 0; }
-@media all and (min-width: 480px){
-        .ui-li-aside { width: 45%; }
-}       
-.ui-li-divider { cursor: default; }
-.ui-li-has-alt .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-alt { padding-right: 95px; }
-.ui-li-has-count .ui-li-count { position: absolute; font-size: 11px; font-weight: bold; padding: .2em .5em; top: 50%; margin-top: -.9em; right: 48px; }
-.ui-li-divider .ui-li-count, .ui-li-static .ui-li-count { right: 10px; }
-.ui-li-has-alt .ui-li-count { right: 55px; }
-.ui-li-link-alt { position: absolute; width: 40px; height: 100%; border-width: 0; border-left-width: 1px; top: 0; right: 0; margin: 0; padding: 0; z-index: 2; }
-.ui-li-link-alt .ui-btn { overflow: hidden; position: absolute; right: 8px; top: 50%; margin: -11px 0 0 0; border-bottom-width: 1px; z-index: -1;}
-.ui-li-link-alt .ui-btn-inner { padding: 0; height: 100%; position: absolute; width: 100%; top: 0; left: 0;}
-.ui-li-link-alt .ui-btn .ui-icon { right: 50%; margin-right: -9px;  }
-
-.ui-listview * .ui-btn-inner > .ui-btn > .ui-btn-inner { border-top: 0px; }
-
-.ui-listview-filter { border-width: 0; overflow: hidden; margin: -15px -15px 15px -15px }
-.ui-listview-filter .ui-input-search { margin: 5px; width: auto; display: block; }
-
-.ui-listview-filter-inset { margin: -15px -5px -15px -5px; background: transparent; }
-.ui-li.ui-screen-hidden{display:none;}
-/* Odd iPad positioning issue. */
-@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
-    .ui-li .ui-btn-text { overflow:  visible; }
-}
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.navbar.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.navbar.css
deleted file mode 100644 (file)
index 7c9640b..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-.ui-navbar { overflow: hidden;  }
-.ui-navbar ul, .ui-navbar-expanded ul { list-style:none; padding: 0; margin: 0; position: relative; display: block; border: 0;}
-.ui-navbar-collapsed ul { float: left; width: 75%; margin-right: -2px; }
-.ui-navbar-collapsed .ui-navbar-toggle { float: left; width: 25%; }
-.ui-navbar li.ui-navbar-truncate { position: absolute; left: -9999px; top: -9999px; }
-.ui-navbar li .ui-btn, .ui-navbar .ui-navbar-toggle .ui-btn { display: block; font-size: 12px; text-align: center; margin: 0; border-right-width: 0; max-width: 100%; }
-.ui-navbar li .ui-btn {  margin-right: -1px; }
-.ui-navbar li .ui-btn:last-child { margin-right: 0; }
-.ui-header .ui-navbar li .ui-btn, .ui-header .ui-navbar .ui-navbar-toggle .ui-btn,
-.ui-footer .ui-navbar li .ui-btn, .ui-footer .ui-navbar .ui-navbar-toggle .ui-btn { border-top-width: 0; border-bottom-width: 0; }
-.ui-navbar .ui-btn-inner { padding-left: 2px; padding-right: 2px; }
-.ui-navbar-noicons li .ui-btn .ui-btn-inner, .ui-navbar-noicons .ui-navbar-toggle .ui-btn-inner { padding-top: .8em; padding-bottom: .9em; }
-/*expanded page styles*/
-.ui-navbar-expanded .ui-btn { margin: 0; font-size: 14px; }
-.ui-navbar-expanded .ui-btn-inner { padding-left: 5px; padding-right: 5px;  }
-.ui-navbar-expanded .ui-btn-icon-top .ui-btn-inner { padding: 45px 5px 15px; text-align: center; }
-.ui-navbar-expanded .ui-btn-icon-top .ui-icon { top: 15px; }
-.ui-navbar-expanded .ui-btn-icon-bottom .ui-btn-inner { padding: 15px 5px 45px; text-align: center; }
-.ui-navbar-expanded .ui-btn-icon-bottom .ui-icon { bottom: 15px; }
-.ui-navbar-expanded li .ui-btn .ui-btn-inner { min-height: 2.5em; }
-.ui-navbar-expanded .ui-navbar-noicons .ui-btn .ui-btn-inner { padding-top: 1.8em; padding-bottom: 1.9em; }
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.structure.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.structure.css
deleted file mode 100644 (file)
index 131eb9d..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-@import url( "jquery.mobile.core.css" );
-@import url( "jquery.mobile.transition.css" );
-@import url( "jquery.mobile.transition.fade.css" );
-@import url( "jquery.mobile.transition.pop.css" );
-@import url( "jquery.mobile.transition.slide.css" );
-@import url( "jquery.mobile.transition.slidefade.css" );
-@import url( "jquery.mobile.transition.slidedown.css" );
-@import url( "jquery.mobile.transition.slideup.css" );
-@import url( "jquery.mobile.transition.flip.css" );
-@import url( "jquery.mobile.transition.turn.css" );
-@import url( "jquery.mobile.transition.flow.css" );
-@import url( "jquery.mobile.grid.css" );
-@import url( "jquery.mobile.fixedToolbar.css" );
-@import url( "jquery.mobile.navbar.css" );
-@import url( "jquery.mobile.button.css" );
-@import url( "jquery.mobile.collapsible.css" );
-@import url( "jquery.mobile.controlgroup.css" );
-@import url( "jquery.mobile.dialog.css" );
-@import url( "jquery.mobile.forms.checkboxradio.css" );
-@import url( "jquery.mobile.forms.fieldcontain.css" );
-@import url( "jquery.mobile.forms.select.css" );
-@import url( "jquery.mobile.forms.textinput.css" );
-@import url( "jquery.mobile.listview.css" );
-@import url( "jquery.mobile.forms.slider.css" );
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.css
deleted file mode 100644 (file)
index 7bccb84..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-/* Transitions originally inspired by those from jQtouch, nice work, folks */
-.ui-mobile-viewport-transitioning,
-.ui-mobile-viewport-transitioning .ui-page {
-       width: 100%;
-       height: 100%;
-       overflow: hidden;
-}
-
-.in {
-       -webkit-animation-timing-function: ease-out;
-       -webkit-animation-duration: 350ms;
-       -moz-animation-timing-function: ease-out;
-       -moz-animation-duration: 350ms;
-}
-
-.out {
-       -webkit-animation-timing-function: ease-in;
-       -webkit-animation-duration: 225ms;
-       -moz-animation-timing-function: ease-in;
-       -moz-animation-duration: 225;
-}
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.fade.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.fade.css
deleted file mode 100644 (file)
index c039249..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-@-webkit-keyframes fadein {
-    from { opacity: 0; }
-    to { opacity: 1; }
-}
-
-@-moz-keyframes fadein {
-    from { opacity: 0; }
-    to { opacity: 1; }
-}
-
-@-webkit-keyframes fadeout {
-    from { opacity: 1; }
-    to { opacity: 0; }
-}
-
-@-moz-keyframes fadeout {
-    from { opacity: 1; }
-    to { opacity: 0; }
-}
-
-.fade.out {
-       opacity: 0;
-       -webkit-animation-duration: 125ms;
-       -webkit-animation-name: fadeout;
-       -moz-animation-duration: 125ms;
-       -moz-animation-name: fadeout;
-}
-
-.fade.in {
-       opacity: 1;
-       -webkit-animation-duration: 225ms;
-       -webkit-animation-name: fadein;
-       -moz-animation-duration: 225ms;
-       -moz-animation-name: fadein;
-}
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.flip.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.flip.css
deleted file mode 100644 (file)
index 3c4a54f..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-/* The properties in this rule are only necessary for the 'flip' transition.
- * We need specify the perspective to create a projection matrix. This will add
- * some depth as the element flips. The depth number represents the distance of
- * the viewer from the z-plane. According to the CSS3 spec, 1000 is a moderate
- * value.
- */
-
-.viewport-flip {
-       -webkit-perspective: 1000;
-       -moz-perspective: 1000;
-       position: absolute;
-}
-.flip {
-       -webkit-backface-visibility:hidden;
-       -webkit-transform:translateX(0); /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when -webkit-visibility:hidden is used. */
-       -moz-backface-visibility:hidden;
-       -moz-transform:translateX(0);
-}
-
-.flip.out {
-       -webkit-transform: rotateY(-90deg) scale(.9);
-       -webkit-animation-name: flipouttoleft;
-       -webkit-animation-duration: 175ms;
-       -moz-transform: rotateY(-90deg) scale(.9);
-       -moz-animation-name: flipouttoleft;
-       -moz-animation-duration: 175ms;
-}
-
-.flip.in {
-       -webkit-animation-name: flipintoright;
-       -webkit-animation-duration: 225ms;
-       -moz-animation-name: flipintoright;
-       -moz-animation-duration: 225ms;
-}
-
-.flip.out.reverse {
-       -webkit-transform: rotateY(90deg) scale(.9);
-       -webkit-animation-name: flipouttoright;
-       -moz-transform: rotateY(90deg) scale(.9);
-       -moz-animation-name: flipouttoright;
-}
-
-.flip.in.reverse {
-       -webkit-animation-name: flipintoleft;
-       -moz-animation-name: flipintoleft;
-}
-
-@-webkit-keyframes flipouttoleft {
-    from { -webkit-transform: rotateY(0); }
-    to { -webkit-transform: rotateY(-90deg) scale(.9); }
-}
-@-moz-keyframes flipouttoleft {
-    from { -moz-transform: rotateY(0); }
-    to { -moz-transform: rotateY(-90deg) scale(.9); }
-}
-@-webkit-keyframes flipouttoright {
-    from { -webkit-transform: rotateY(0) ; }
-    to { -webkit-transform: rotateY(90deg) scale(.9); }
-}
-@-moz-keyframes flipouttoright {
-    from { -moz-transform: rotateY(0); }
-    to { -moz-transform: rotateY(90deg) scale(.9); }
-}
-@-webkit-keyframes flipintoleft {
-    from { -webkit-transform: rotateY(-90deg) scale(.9); }
-    to { -webkit-transform: rotateY(0); }
-}
-@-moz-keyframes flipintoleft {
-    from { -moz-transform: rotateY(-90deg) scale(.9); }
-    to { -moz-transform: rotateY(0); }
-}
-@-webkit-keyframes flipintoright {
-    from { -webkit-transform: rotateY(90deg) scale(.9); }
-    to { -webkit-transform: rotateY(0); }
-}
-@-moz-keyframes flipintoright {
-    from { -moz-transform: rotateY(90deg) scale(.9); }
-    to { -moz-transform: rotateY(0); }
-}
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.flow.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.flow.css
deleted file mode 100644 (file)
index 6339642..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-/* flow transition */
-.flow {
-       -webkit-transform-origin: 50% 30%;
-       -moz-transform-origin: 50% 30%; 
-       -webkit-box-shadow: 0 0 20px rgba(0,0,0,.4);
-       -moz-box-shadow: 0 0 20px rgba(0,0,0,.4);
-}
-.ui-dialog.flow {
-       -webkit-transform-origin: none;
-       -moz-transform-origin: none;    
-       -webkit-box-shadow: none;
-       -moz-box-shadow: none;
-}
-.flow.out {
-       -webkit-transform: translateX(-100%) scale(.7);
-       -webkit-animation-name: flowouttoleft;
-       -webkit-animation-timing-function: ease;
-       -webkit-animation-duration: 350ms;
-       -moz-transform: translateX(-100%) scale(.7);
-       -moz-animation-name: flowouttoleft;
-       -moz-animation-timing-function: ease;
-       -moz-animation-duration: 350ms;
-}
-
-.flow.in {
-       -webkit-transform: translateX(0) scale(1);
-       -webkit-animation-name: flowinfromright;
-       -webkit-animation-timing-function: ease;
-       -webkit-animation-duration: 350ms;
-       -moz-transform: translateX(0) scale(1);
-       -moz-animation-name: flowinfromright;
-       -moz-animation-timing-function: ease;
-       -moz-animation-duration: 350ms;
-}
-
-.flow.out.reverse {
-       -webkit-transform: translateX(100%);
-       -webkit-animation-name: flowouttoright;
-       -moz-transform: translateX(100%);
-       -moz-animation-name: flowouttoright;
-}
-
-.flow.in.reverse {
-       -webkit-animation-name: flowinfromleft;
-       -moz-animation-name: flowinfromleft;
-}
-
-@-webkit-keyframes flowouttoleft {
-    0% { -webkit-transform: translateX(0) scale(1); }
-       60%, 70% { -webkit-transform: translateX(0) scale(.7); }
-    100% { -webkit-transform: translateX(-100%) scale(.7); }
-}
-@-moz-keyframes flowouttoleft {
-    0% { -moz-transform: translateX(0) scale(1); }
-       60%, 70% { -moz-transform: translateX(0) scale(.7); }
-    100% { -moz-transform:  translateX(-100%) scale(.7); }
-}
-
-@-webkit-keyframes flowouttoright {
-    0% { -webkit-transform: translateX(0) scale(1); }
-       60%, 70% { -webkit-transform: translateX(0) scale(.7); }
-    100% { -webkit-transform:  translateX(100%) scale(.7); }
-}
-@-moz-keyframes flowouttoright {
-    0% { -moz-transform: translateX(0) scale(1); }
-       60%, 70% { -moz-transform: translateX(0) scale(.7); }
-    100% { -moz-transform:  translateX(100%) scale(.7); }
-}
-
-@-webkit-keyframes flowinfromleft {
-    0% { -webkit-transform: translateX(-100%) scale(.7); }
-       30%, 40% { -webkit-transform: translateX(0) scale(.7); }
-    100% { -webkit-transform: translateX(0) scale(1); }
-}
-@-moz-keyframes flowinfromleft {
-    0% { -moz-transform: translateX(-100%) scale(.7); }
-       30%, 40% { -moz-transform: translateX(0) scale(.7); }
-    100% { -moz-transform: translateX(0) scale(1); }
-}
-@-webkit-keyframes flowinfromright {
-    0% { -webkit-transform: translateX(100%) scale(.7); }
-       30%, 40% { -webkit-transform: translateX(0) scale(.7); }
-    100% { -webkit-transform: translateX(0) scale(1); }
-}
-@-moz-keyframes flowinfromright {
-    0% { -moz-transform: translateX(100%) scale(.7); }
-       30%, 40% { -moz-transform: translateX(0) scale(.7); }
-    100% { -moz-transform: translateX(0) scale(1); }
-}
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.pop.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.pop.css
deleted file mode 100644 (file)
index 625689e..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-.pop {
-       -webkit-transform-origin: 50% 50%;
-       -moz-transform-origin: 50% 50%;
-}
-
-.pop.in {
-       -webkit-transform: scale(1);
-       -moz-transform: scale(1);
-    opacity: 1;
-       -webkit-animation-name: popin;
-       -moz-animation-name: popin;
-       -webkit-animation-duration: 350ms;
-       -moz-animation-duration: 350ms;
-}
-
-.pop.out {
-       -webkit-animation-name: fadeout;
-       -moz-animation-name: fadeout;
-       opacity: 0;
-       -webkit-animation-duration: 100ms;
-       -moz-animation-duration: 100ms;
-}
-
-.pop.in.reverse {
-       -webkit-animation-name: fadein;
-       -moz-animation-name: fadein;
-}
-
-.pop.out.reverse {
-       -webkit-transform: scale(.8);
-       -moz-transform: scale(.8);
-       -webkit-animation-name: popout;
-       -moz-animation-name: popout;
-}
-
-@-webkit-keyframes popin {
-    from {
-        -webkit-transform: scale(.8);
-        opacity: 0;
-    }
-    to {
-        -webkit-transform: scale(1);
-        opacity: 1;
-    }
-}
-
-@-moz-keyframes popin {
-    from {
-        -moz-transform: scale(.8);
-        opacity: 0;
-    }
-    to {
-        -moz-transform: scale(1);
-        opacity: 1;
-    }
-}
-
-@-webkit-keyframes popout {
-    from {
-        -webkit-transform: scale(1);
-        opacity: 1;
-    }
-    to {
-        -webkit-transform: scale(.8);
-        opacity: 0;
-    }
-}
-
-@-moz-keyframes popout {
-    from {
-        -moz-transform: scale(1);
-        opacity: 1;
-    }
-    to {
-        -moz-transform: scale(.8);
-        opacity: 0;
-    }
-}
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slide.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slide.css
deleted file mode 100644 (file)
index 17c924a..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-@import url("jquery.mobile.transition.slidein.keyframes.css");
-@import url("jquery.mobile.transition.slideout.keyframes.css");
-
-.slide.out, .slide.in {
-       -webkit-animation-timing-function: ease-out;
-       -webkit-animation-duration: 350ms;
-       -moz-animation-timing-function: ease-out;
-       -moz-animation-duration: 350ms;
-}
-.slide.out {
-       -webkit-transform: translateX(-100%);
-       -webkit-animation-name: slideouttoleft;
-       -moz-transform: translateX(-100%);
-       -moz-animation-name: slideouttoleft;
-}
-
-.slide.in {
-       -webkit-transform: translateX(0);
-       -webkit-animation-name: slideinfromright;
-       -moz-transform: translateX(0);
-       -moz-animation-name: slideinfromright;
-}
-
-.slide.out.reverse {
-       -webkit-transform: translateX(100%);
-       -webkit-animation-name: slideouttoright;
-       -moz-transform: translateX(100%);
-       -moz-animation-name: slideouttoright;
-}
-
-.slide.in.reverse {
-       -webkit-transform: translateX(0);
-       -webkit-animation-name: slideinfromleft;
-       -moz-transform: translateX(0);
-       -moz-animation-name: slideinfromleft;
-}
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slidedown.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slidedown.css
deleted file mode 100644 (file)
index b7809d0..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-/* slide down */
-.slidedown.out {
-       -webkit-animation-name: fadeout;
-       -moz-animation-name: fadeout;
-       -webkit-animation-duration: 100ms;
-       -moz-animation-duration: 100ms;
-}
-
-.slidedown.in {
-       -webkit-transform: translateY(0);
-       -webkit-animation-name: slideinfromtop;
-       -moz-transform: translateY(0);
-       -moz-animation-name: slideinfromtop;
-       -webkit-animation-duration: 250ms;
-       -moz-animation-duration: 250ms;
-}
-
-.slidedown.in.reverse {
-       -webkit-animation-name: fadein;
-       -moz-animation-name: fadein;
-       -webkit-animation-duration: 150ms;
-       -moz-animation-duration: 150ms;
-}
-
-.slidedown.out.reverse {
-       -webkit-transform: translateY(-100%);
-       -moz-transform: translateY(-100%);
-       -webkit-animation-name: slideouttotop;
-       -moz-animation-name: slideouttotop;
-       -webkit-animation-duration: 200ms;
-       -moz-animation-duration: 200ms;
-}
-
-@-webkit-keyframes slideinfromtop {
-    from { -webkit-transform: translateY(-100%); }
-    to { -webkit-transform: translateY(0); }
-}
-@-moz-keyframes slideinfromtop {
-    from { -moz-transform: translateY(-100%); }
-    to { -moz-transform: translateY(0); }
-}
-
-@-webkit-keyframes slideouttotop {
-    from { -webkit-transform: translateY(0); }
-    to { -webkit-transform: translateY(-100%); }
-}
-@-moz-keyframes slideouttotop {
-    from { -moz-transform: translateY(0); }
-    to { -moz-transform: translateY(-100%); }
-}
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slidefade.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slidefade.css
deleted file mode 100644 (file)
index 7ef5a67..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-@import url("jquery.mobile.transition.fade.css");
-@import url("jquery.mobile.transition.slideout.keyframes.css");
-
-.slidefade.out {
-       -webkit-transform: translateX(-100%);
-       -webkit-animation-name: slideouttoleft;
-       -moz-transform: translateX(-100%);
-       -moz-animation-name: slideouttoleft;
-       -webkit-animation-duration: 225ms;
-       -moz-animation-duration: 225ms;
-}
-
-.slidefade.in {
-       -webkit-transform: translateX(0);
-       -webkit-animation-name: fadein;
-       -moz-transform: translateX(0);
-       -moz-animation-name: fadein;
-       -webkit-animation-duration: 200ms;
-       -moz-animation-duration: 200ms;
-}
-
-.slidefade.out.reverse {
-       -webkit-transform: translateX(100%);
-       -webkit-animation-name: slideouttoright;
-       -moz-transform: translateX(100%);
-       -moz-animation-name: slideouttoright;
-       -webkit-animation-duration: 200ms;
-       -moz-animation-duration: 200ms;
-}
-
-.slidefade.in.reverse {
-       -webkit-transform: translateX(0);
-       -webkit-animation-name: fadein;
-       -moz-transform: translateX(0);
-       -moz-animation-name: fadein;
-       -webkit-animation-duration: 200ms;
-       -moz-animation-duration: 200ms;
-}
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slidein.keyframes.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slidein.keyframes.css
deleted file mode 100644 (file)
index 76a9fcb..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-/* keyframes for slidein from sides */
-@-webkit-keyframes slideinfromright {
-    from { -webkit-transform: translateX(100%); }
-    to { -webkit-transform: translateX(0); }
-}
-@-moz-keyframes slideinfromright {
-    from { -moz-transform: translateX(100%); }
-    to { -moz-transform: translateX(0); }
-}
-
-@-webkit-keyframes slideinfromleft {
-    from { -webkit-transform: translateX(-100%); }
-    to { -webkit-transform: translateX(0); }
-}
-@-moz-keyframes slideinfromleft {
-    from { -moz-transform: translateX(-100%); }
-    to { -moz-transform: translateX(0); }
-}
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slideout.keyframes.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slideout.keyframes.css
deleted file mode 100644 (file)
index 9bea170..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-/* keyframes for slideout to sides */
-@-webkit-keyframes slideouttoleft {
-    from { -webkit-transform: translateX(0); }
-    to { -webkit-transform: translateX(-100%); }
-}
-@-moz-keyframes slideouttoleft {
-    from { -moz-transform: translateX(0); }
-    to { -moz-transform: translateX(-100%); }
-}
-
-@-webkit-keyframes slideouttoright {
-    from { -webkit-transform: translateX(0); }
-    to { -webkit-transform: translateX(100%); }
-}
-@-moz-keyframes slideouttoright {
-    from { -moz-transform: translateX(0); }
-    to { -moz-transform: translateX(100%); }
-}
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slideup.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slideup.css
deleted file mode 100644 (file)
index e607aad..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-/* slide up */
-.slideup.out {
-       -webkit-animation-name: fadeout;
-       -moz-animation-name: fadeout;
-       -webkit-animation-duration: 100ms;
-       -moz-animation-duration: 100ms;
-}
-
-.slideup.in {
-       -webkit-transform: translateY(0);
-       -webkit-animation-name: slideinfrombottom;
-       -moz-transform: translateY(0);
-       -moz-animation-name: slideinfrombottom;
-       -webkit-animation-duration: 250ms;
-       -moz-animation-duration: 250ms;
-}
-
-.slideup.in.reverse {
-       -webkit-animation-name: fadein;
-       -moz-animation-name: fadein;
-       -webkit-animation-duration: 150ms;
-       -moz-animation-duration: 150ms;
-}
-
-.slideup.out.reverse {
-       -webkit-transform: translateY(100%);
-       -moz-transform: translateY(100%);
-       -webkit-animation-name: slideouttobottom;
-       -moz-animation-name: slideouttobottom;
-       -webkit-animation-duration: 200ms;
-       -moz-animation-duration: 200ms;
-}
-
-@-webkit-keyframes slideinfrombottom {
-    from { -webkit-transform: translateY(100%); }
-    to { -webkit-transform: translateY(0); }
-}
-@-moz-keyframes slideinfrombottom {
-    from { -moz-transform: translateY(100%); }
-    to { -moz-transform: translateY(0); }
-}
-
-@-webkit-keyframes slideouttobottom {
-    from { -webkit-transform: translateY(0); }
-    to { -webkit-transform: translateY(100%); }
-}
-@-moz-keyframes slideouttobottom {
-    from { -moz-transform: translateY(0); }
-    to { -moz-transform: translateY(100%); }
-}
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.turn.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.turn.css
deleted file mode 100644 (file)
index 086fc2b..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-/* The properties in this rule are only necessary for the 'flip' transition.
- * We need specify the perspective to create a projection matrix. This will add
- * some depth as the element flips. The depth number represents the distance of
- * the viewer from the z-plane. According to the CSS3 spec, 1000 is a moderate
- * value.
- */
-
-.viewport-turn {
-       -webkit-perspective: 1000;
-       -moz-perspective: 1000;
-       position: absolute;
-}
-.turn {
-       -webkit-backface-visibility:hidden;
-       -webkit-transform:translateX(0); /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when -webkit-visibility:hidden is used. */
-       -webkit-transform-origin: 0;
-       
-       -moz-backface-visibility:hidden;
-       -moz-transform:translateX(0); /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when -webkit-visibility:hidden is used. */
-       -moz-transform-origin: 0;
-}
-
-.turn.out {
-       -webkit-transform: rotateY(-90deg) scale(.9);
-       -webkit-animation-name: flipouttoleft;
-       -moz-transform: rotateY(-90deg) scale(.9);
-       -moz-animation-name: flipouttoleft;
-       -webkit-animation-duration: 125ms;
-       -moz-animation-duration: 125ms;
-}
-
-.turn.in {
-       -webkit-animation-name: flipintoright;
-       -moz-animation-name: flipintoright;
-       -webkit-animation-duration: 250ms;
-       -moz-animation-duration: 250ms;
-       
-}
-
-.turn.out.reverse {
-       -webkit-transform: rotateY(90deg) scale(.9);
-       -webkit-animation-name: flipouttoright;
-       -moz-transform: rotateY(90deg) scale(.9);
-       -moz-animation-name: flipouttoright;
-}
-
-.turn.in.reverse {
-       -webkit-animation-name: flipintoleft;
-       -moz-animation-name: flipintoleft;
-}
-
-@-webkit-keyframes flipouttoleft {
-    from { -webkit-transform: rotateY(0); }
-    to { -webkit-transform: rotateY(-90deg) scale(.9); }
-}
-@-moz-keyframes flipouttoleft {
-    from { -moz-transform: rotateY(0); }
-    to { -moz-transform: rotateY(-90deg) scale(.9); }
-}
-@-webkit-keyframes flipouttoright {
-    from { -webkit-transform: rotateY(0) ; }
-    to { -webkit-transform: rotateY(90deg) scale(.9); }
-}
-@-moz-keyframes flipouttoright {
-    from { -moz-transform: rotateY(0); }
-    to { -moz-transform: rotateY(90deg) scale(.9); }
-}
-@-webkit-keyframes flipintoleft {
-    from { -webkit-transform: rotateY(-90deg) scale(.9); }
-    to { -webkit-transform: rotateY(0); }
-}
-@-moz-keyframes flipintoleft {
-    from { -moz-transform: rotateY(-90deg) scale(.9); }
-    to { -moz-transform: rotateY(0); }
-}
-@-webkit-keyframes flipintoright {
-    from { -webkit-transform: rotateY(90deg) scale(.9); }
-    to { -webkit-transform: rotateY(0); }
-}
-@-moz-keyframes flipintoright {
-    from { -moz-transform: rotateY(90deg) scale(.9); }
-    to { -moz-transform: rotateY(0); }
-}
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/ajax-loader.gif b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/ajax-loader.gif
deleted file mode 100644 (file)
index fd1a189..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/ajax-loader.gif and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/ajax-loader.png b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/ajax-loader.png
deleted file mode 100644 (file)
index 13b208d..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/ajax-loader.png and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-18-black.png b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-18-black.png
deleted file mode 100644 (file)
index ce1b758..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-18-black.png and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-18-white.png b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-18-white.png
deleted file mode 100644 (file)
index 1ab0127..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-18-white.png and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-36-black.png b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-36-black.png
deleted file mode 100644 (file)
index 1a59d7c..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-36-black.png and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-36-white.png b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-36-white.png
deleted file mode 100644 (file)
index 5647bdc..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-36-white.png and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/index.php b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/index.php
deleted file mode 100644 (file)
index 431474d..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-$type = 'text/css';
-$files = array(
-       '../../../LICENSE-INFO.txt',
-       'jquery.mobile.css'
-);
-$base = dirname(__FILE__);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/jquery.mobile.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/jquery.mobile.css
deleted file mode 100644 (file)
index 08df129..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-@import url( "jquery.mobile.theme.css" );
-@import url( "../../structure/jquery.mobile.structure.css" );
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/jquery.mobile.theme.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/jquery.mobile.theme.css
deleted file mode 100644 (file)
index 98c73a2..0000000
+++ /dev/null
@@ -1,1158 +0,0 @@
-/* Swatches */
-
-/* A
------------------------------------------------------------------------------------------------------------*/
-
-.ui-bar-a {
-       border: 1px solid               #333 /*{a-bar-border}*/;
-       background:                     #111111 /*{a-bar-background-color}*/;
-       color:                                  #ffffff /*{a-bar-color}*/;
-       font-weight: bold;
-       text-shadow: 0 /*{a-bar-shadow-x}*/ -1px /*{a-bar-shadow-y}*/ 1px /*{a-bar-shadow-radius}*/ #000000 /*{a-bar-shadow-color}*/;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #3c3c3c /*{a-bar-background-start}*/), to( #111 /*{a-bar-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #3c3c3c /*{a-bar-background-start}*/, #111 /*{a-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #3c3c3c /*{a-bar-background-start}*/, #111 /*{a-bar-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #3c3c3c /*{a-bar-background-start}*/, #111 /*{a-bar-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #3c3c3c /*{a-bar-background-start}*/, #111 /*{a-bar-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #3c3c3c /*{a-bar-background-start}*/, #111 /*{a-bar-background-end}*/);
-}
-.ui-bar-a, 
-.ui-bar-a input, 
-.ui-bar-a select, 
-.ui-bar-a textarea, 
-.ui-bar-a button {
-       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
-}
-.ui-bar-a .ui-link-inherit {
-       color: #fff /*{a-bar-color}*/;
-}
-
-.ui-bar-a .ui-link {
-       color: #7cc4e7 /*{a-bar-link-color}*/;
-       font-weight: bold;
-}
-
-.ui-bar-a .ui-link:hover {
-       color: #2489CE /*{a-bar-link-hover}*/;
-}
-
-.ui-bar-a .ui-link:active {
-       color: #2489CE /*{a-bar-link-active}*/;
-}
-
-.ui-bar-a .ui-link:visited {
-    color: #2489CE /*{a-bar-link-visited}*/;
-}
-.ui-body-a,
-.ui-overlay-a {
-       border: 1px solid               #444 /*{a-body-border}*/;
-       background:                     #222 /*{a-body-background-color}*/;
-       color:                                  #fff /*{a-body-color}*/;
-       text-shadow: 0 /*{a-body-shadow-x}*/ 1px /*{a-body-shadow-y}*/ 1px /*{a-body-shadow-radius}*/ #111 /*{a-body-shadow-color}*/;
-       font-weight: normal;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #444 /*{a-body-background-start}*/), to( #222 /*{a-body-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #444 /*{a-body-background-start}*/, #222 /*{a-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #444 /*{a-body-background-start}*/, #222 /*{a-body-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #444 /*{a-body-background-start}*/, #222 /*{a-body-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #444 /*{a-body-background-start}*/, #222 /*{a-body-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #444 /*{a-body-background-start}*/, #222 /*{a-body-background-end}*/);       
-}
-.ui-overlay-a {
-       background-image: none;
-       border-width: 0;
-}
-.ui-body-a,
-.ui-body-a input,
-.ui-body-a select,
-.ui-body-a textarea,
-.ui-body-a button {
-       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
-}
-.ui-body-a .ui-link-inherit {
-       color:  #fff /*{a-body-color}*/;
-}
-
-.ui-body-a .ui-link {
-       color: #2489CE /*{a-body-link-color}*/;
-       font-weight: bold;
-}
-
-.ui-body-a .ui-link:hover {
-       color: #2489CE /*{a-body-link-hover}*/;
-}
-
-.ui-body-a .ui-link:active {
-       color: #2489CE /*{a-body-link-active}*/;
-}
-
-.ui-body-a .ui-link:visited {
-    color: #2489CE /*{a-body-link-visited}*/;
-}
-
-.ui-btn-up-a {
-       border: 1px solid               #111 /*{a-bup-border}*/;
-       background:                     #333 /*{a-bup-background-color}*/;
-       font-weight: bold;
-       color:                                  #fff /*{a-bup-color}*/;
-       text-shadow: 0 /*{a-bup-shadow-x}*/ 1px /*{a-bup-shadow-y}*/ 1px /*{a-bup-shadow-radius}*/ #111 /*{a-bup-shadow-color}*/;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #444444 /*{a-bup-background-start}*/), to( #2d2d2d /*{a-bup-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #444444 /*{a-bup-background-start}*/, #2d2d2d /*{a-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #444444 /*{a-bup-background-start}*/, #2d2d2d /*{a-bup-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #444444 /*{a-bup-background-start}*/, #2d2d2d /*{a-bup-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #444444 /*{a-bup-background-start}*/, #2d2d2d /*{a-bup-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #444444 /*{a-bup-background-start}*/, #2d2d2d /*{a-bup-background-end}*/);
-}
-.ui-btn-up-a a.ui-link-inherit {
-       color:                                  #fff /*{a-bup-color}*/;
-}
-.ui-btn-hover-a {
-       border: 1px solid               #000 /*{a-bhover-border}*/;
-       background:                     #444444 /*{a-bhover-background-color}*/;
-       font-weight: bold;
-       color:                                  #fff /*{a-bhover-color}*/;
-       text-shadow: 0 /*{a-bhover-shadow-x}*/ 1px /*{a-bhover-shadow-y}*/ 1px /*{a-bhover-shadow-radius}*/ #111 /*{a-bhover-shadow-color}*/;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #555555 /*{a-bhover-background-start}*/), to( #383838 /*{a-bhover-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #555555 /*{a-bhover-background-start}*/, #383838 /*{a-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #555555 /*{a-bhover-background-start}*/, #383838 /*{a-bhover-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #555555 /*{a-bhover-background-start}*/, #383838 /*{a-bhover-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #555555 /*{a-bhover-background-start}*/, #383838 /*{a-bhover-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #555555 /*{a-bhover-background-start}*/, #383838 /*{a-bhover-background-end}*/);
-}
-.ui-btn-hover-a a.ui-link-inherit {
-       color:                                  #fff /*{a-bhover-color}*/;
-}
-.ui-btn-down-a {
-       border: 1px solid               #000 /*{a-bdown-border}*/;
-       background:                     #222 /*{a-bdown-background-color}*/;
-       font-weight: bold;
-       color:                                  #fff /*{a-bdown-color}*/;
-       text-shadow: 0 /*{a-bdown-shadow-x}*/ 1px /*{a-bdown-shadow-y}*/ 1px /*{a-bdown-shadow-radius}*/ #111 /*{a-bdown-shadow-color}*/;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #202020 /*{a-bdown-background-start}*/), to( #2c2c2c /*{a-bdown-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #202020 /*{a-bdown-background-start}*/, #2c2c2c /*{a-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #202020 /*{a-bdown-background-start}*/, #2c2c2c /*{a-bdown-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #202020 /*{a-bdown-background-start}*/, #2c2c2c /*{a-bdown-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #202020 /*{a-bdown-background-start}*/, #2c2c2c /*{a-bdown-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #202020 /*{a-bdown-background-start}*/, #2c2c2c /*{a-bdown-background-end}*/);
-}
-.ui-btn-down-a a.ui-link-inherit {
-       color:                                  #fff /*{a-bdown-color}*/;
-}
-.ui-btn-up-a,
-.ui-btn-hover-a,
-.ui-btn-down-a {
-       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
-       text-decoration: none;
-}
-
-
-/* B
------------------------------------------------------------------------------------------------------------*/
-.ui-bar-b {
-       border: 1px solid               #456f9a /*{b-bar-border}*/;
-       background:                     #5e87b0 /*{b-bar-background-color}*/;
-       color:                                  #fff /*{b-bar-color}*/;
-       font-weight: bold;
-       text-shadow: 0 /*{b-bar-shadow-x}*/ 1px /*{b-bar-shadow-y}*/ 1px /*{b-bar-shadow-radius}*/ #3e6790 /*{b-bar-shadow-color}*/;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #6facd5 /*{b-bar-background-start}*/), to( #497bae /*{b-bar-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #6facd5 /*{b-bar-background-start}*/, #497bae /*{b-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #6facd5 /*{b-bar-background-start}*/, #497bae /*{b-bar-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #6facd5 /*{b-bar-background-start}*/, #497bae /*{b-bar-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #6facd5 /*{b-bar-background-start}*/, #497bae /*{b-bar-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #6facd5 /*{b-bar-background-start}*/, #497bae /*{b-bar-background-end}*/);
-}
-.ui-bar-b,
-.ui-bar-b input,
-.ui-bar-b select,
-.ui-bar-b textarea,
-.ui-bar-b button {
-       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
-}
-.ui-bar-b .ui-link-inherit {
-       color:  #fff /*{b-bar-color}*/;
-}
-.ui-bar-b .ui-link {
-       color: #ddf0f8 /*{b-bar-link-color}*/;
-       font-weight: bold;
-}
-
-.ui-bar-b .ui-link:hover {
-       color: #ddf0f8 /*{b-bar-link-hover}*/;
-}
-
-.ui-bar-b .ui-link:active {
-       color: #ddf0f8 /*{b-bar-link-active}*/;
-}
-
-.ui-bar-b .ui-link:visited {
-    color: #ddf0f8 /*{b-bar-link-visited}*/;
-}
-.ui-body-b,
-.ui-overlay-b {
-       border: 1px solid               #999 /*{b-body-border}*/;
-       background:                     #f3f3f3 /*{b-body-background-color}*/;
-       color:                                  #222222 /*{b-body-color}*/;
-       text-shadow: 0 /*{b-body-shadow-x}*/ 1px /*{b-body-shadow-y}*/ 0 /*{b-body-shadow-radius}*/ #fff /*{b-body-shadow-color}*/;
-       font-weight: normal;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #ddd /*{b-body-background-start}*/), to( #ccc /*{b-body-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #ddd /*{b-body-background-start}*/, #ccc /*{b-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #ddd /*{b-body-background-start}*/, #ccc /*{b-body-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #ddd /*{b-body-background-start}*/, #ccc /*{b-body-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #ddd /*{b-body-background-start}*/, #ccc /*{b-body-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #ddd /*{b-body-background-start}*/, #ccc /*{b-body-background-end}*/);
-}
-.ui-overlay-b {
-       background-image: none;
-       border-width: 0;
-}
-.ui-body-b,
-.ui-body-b input,
-.ui-body-b select,
-.ui-body-b textarea,
-.ui-body-b button {
-       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
-}
-.ui-body-b .ui-link-inherit {
-       color:  #333333 /*{b-body-color}*/;
-}
-
-.ui-body-b .ui-link {
-       color: #2489CE /*{b-body-link-color}*/;
-       font-weight: bold;
-}
-
-.ui-body-b .ui-link:hover {
-       color: #2489CE /*{b-body-link-hover}*/;
-}
-
-.ui-body-b .ui-link:active {
-       color: #2489CE /*{b-body-link-active}*/;
-}
-
-.ui-body-b .ui-link:visited {
-    color: #2489CE /*{b-body-link-visited}*/;
-}
-
-.ui-btn-up-b {
-       border: 1px solid               #044062 /*{b-bup-border}*/;
-       background:                     #396b9e /*{b-bup-background-color}*/;
-       font-weight: bold;
-       color:                                  #fff /*{b-bup-color}*/;
-       text-shadow: 0 /*{b-bup-shadow-x}*/ 1px /*{b-bup-shadow-y}*/ 1px /*{b-bup-shadow-radius}*/ #194b7e /*{b-bup-shadow-color}*/;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #5f9cc5 /*{b-bup-background-start}*/), to( #396b9e /*{b-bup-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #5f9cc5 /*{b-bup-background-start}*/, #396b9e /*{b-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #5f9cc5 /*{b-bup-background-start}*/, #396b9e /*{b-bup-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #5f9cc5 /*{b-bup-background-start}*/, #396b9e /*{b-bup-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #5f9cc5 /*{b-bup-background-start}*/, #396b9e /*{b-bup-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #5f9cc5 /*{b-bup-background-start}*/, #396b9e /*{b-bup-background-end}*/);
-}
-.ui-btn-up-b a.ui-link-inherit {
-       color:                                  #fff /*{b-bup-color}*/;
-}
-.ui-btn-hover-b {
-       border: 1px solid               #00415e /*{b-bhover-border}*/;
-       background:                     #4b88b6 /*{b-bhover-background-color}*/;
-       font-weight: bold;
-       color:                                  #fff /*{b-bhover-color}*/;
-       text-shadow: 0 /*{b-bhover-shadow-x}*/ 1px /*{b-bhover-shadow-y}*/ 1px /*{b-bhover-shadow-radius}*/ #194b7e /*{b-bhover-shadow-color}*/;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #6facd5 /*{b-bhover-background-start}*/), to( #4272a4 /*{b-bhover-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #6facd5 /*{b-bhover-background-start}*/, #4272a4 /*{b-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #6facd5 /*{b-bhover-background-start}*/, #4272a4 /*{b-bhover-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #6facd5 /*{b-bhover-background-start}*/, #4272a4 /*{b-bhover-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #6facd5 /*{b-bhover-background-start}*/, #4272a4 /*{b-bhover-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #6facd5 /*{b-bhover-background-start}*/, #4272a4 /*{b-bhover-background-end}*/);
-}
-.ui-btn-hover-b a.ui-link-inherit {
-       color:                                  #fff /*{b-bhover-color}*/;
-}
-.ui-btn-down-b {
-       border: 1px solid               #225377 /*{b-bdown-border}*/;
-       background:                     #4e89c5 /*{b-bdown-background-color}*/;
-       font-weight: bold;
-       color:                                  #fff /*{b-bdown-color}*/;
-       text-shadow: 0 /*{b-bdown-shadow-x}*/ 1px /*{b-bdown-shadow-y}*/ 1px /*{b-bdown-shadow-radius}*/ #194b7e /*{b-bdown-shadow-color}*/;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #295b8e /*{b-bdown-background-start}*/), to( #3e79b5 /*{b-bdown-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #295b8e /*{b-bdown-background-start}*/, #3e79b5 /*{b-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #295b8e /*{b-bdown-background-start}*/, #3e79b5 /*{b-bdown-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #295b8e /*{b-bdown-background-start}*/, #3e79b5 /*{b-bdown-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #295b8e /*{b-bdown-background-start}*/, #3e79b5 /*{b-bdown-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #295b8e /*{b-bdown-background-start}*/, #3e79b5 /*{b-bdown-background-end}*/);
-}
-.ui-btn-down-b a.ui-link-inherit {
-       color:                                  #fff /*{b-bdown-color}*/;
-}
-.ui-btn-up-b,
-.ui-btn-hover-b,
-.ui-btn-down-b {
-       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
-       text-decoration: none;
-}
-
-
-/* C
------------------------------------------------------------------------------------------------------------*/
-
-.ui-bar-c {
-       border: 1px solid               #B3B3B3 /*{c-bar-border}*/;
-       background:                     #eeeeee /*{c-bar-background-color}*/;
-       color:                                  #3E3E3E /*{c-bar-color}*/;
-       font-weight: bold;
-       text-shadow: 0 /*{c-bar-shadow-x}*/ 1px /*{c-bar-shadow-y}*/ 1px /*{c-bar-shadow-radius}*/      #fff /*{c-bar-shadow-color}*/;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #f0f0f0 /*{c-bar-background-start}*/), to( #ddd /*{c-bar-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #f0f0f0 /*{c-bar-background-start}*/, #ddd /*{c-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #f0f0f0 /*{c-bar-background-start}*/, #ddd /*{c-bar-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #f0f0f0 /*{c-bar-background-start}*/, #ddd /*{c-bar-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #f0f0f0 /*{c-bar-background-start}*/, #ddd /*{c-bar-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #f0f0f0 /*{c-bar-background-start}*/, #ddd /*{c-bar-background-end}*/);
-}
-
-.ui-bar-c .ui-link-inherit {
-       color:  #3E3E3E /*{c-bar-color}*/;
-}
-.ui-bar-c .ui-link {
-       color: #7cc4e7 /*{c-bar-link-color}*/;
-       font-weight: bold;
-}
-
-.ui-bar-c .ui-link:hover {
-       color: #2489CE /*{c-bar-link-hover}*/;
-}
-
-.ui-bar-c .ui-link:active {
-       color: #2489CE /*{c-bar-link-active}*/;
-}
-
-.ui-bar-c .ui-link:visited {
-    color: #2489CE /*{c-bar-link-visited}*/;
-}
-
-.ui-bar-c,
-.ui-bar-c input,
-.ui-bar-c select,
-.ui-bar-c textarea,
-.ui-bar-c button {
-       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
-}
-.ui-body-c,
-.ui-overlay-c {
-       border: 1px solid               #aaa /*{c-body-border}*/;
-       color:                                  #333333 /*{c-body-color}*/;
-       text-shadow: 0 /*{c-body-shadow-x}*/ 1px /*{c-body-shadow-y}*/ 0 /*{c-body-shadow-radius}*/ #fff /*{c-body-shadow-color}*/;
-       background:                     #f9f9f9 /*{c-body-background-color}*/;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #f9f9f9 /*{c-body-background-start}*/), to( #eeeeee /*{c-body-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #f9f9f9 /*{c-body-background-start}*/, #eeeeee /*{c-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #f9f9f9 /*{c-body-background-start}*/, #eeeeee /*{c-body-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #f9f9f9 /*{c-body-background-start}*/, #eeeeee /*{c-body-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #f9f9f9 /*{c-body-background-start}*/, #eeeeee /*{c-body-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #f9f9f9 /*{c-body-background-start}*/, #eeeeee /*{c-body-background-end}*/);
-}
-.ui-overlay-c {
-       background-image: none;
-       border-width: 0;
-}
-.ui-body-c,
-.ui-body-c input,
-.ui-body-c select,
-.ui-body-c textarea,
-.ui-body-c button {
-       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
-}
-
-.ui-body-c .ui-link-inherit {
-       color:  #333333 /*{c-body-color}*/;
-}
-
-.ui-body-c .ui-link {
-       color: #2489CE /*{c-body-link-color}*/;
-       font-weight: bold;
-}
-
-.ui-body-c .ui-link:hover {
-       color: #2489CE /*{c-body-link-hover}*/;
-}
-
-.ui-body-c .ui-link:active {
-       color: #2489CE /*{c-body-link-active}*/;
-}
-
-.ui-body-c .ui-link:visited {
-    color: #2489CE /*{c-body-link-visited}*/;
-}
-
-.ui-btn-up-c {
-       border: 1px solid               #ccc /*{c-bup-border}*/;
-       background:                     #eee /*{c-bup-background-color}*/;
-       font-weight: bold;
-       color:                                  #222 /*{c-bup-color}*/;
-       text-shadow: 0 /*{c-bup-shadow-x}*/ 1px /*{c-bup-shadow-y}*/ 0 /*{c-bup-shadow-radius}*/ #ffffff /*{c-bup-shadow-color}*/;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #ffffff /*{c-bup-background-start}*/), to( #f1f1f1 /*{c-bup-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #ffffff /*{c-bup-background-start}*/, #f1f1f1 /*{c-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #ffffff /*{c-bup-background-start}*/, #f1f1f1 /*{c-bup-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #ffffff /*{c-bup-background-start}*/, #f1f1f1 /*{c-bup-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #ffffff /*{c-bup-background-start}*/, #f1f1f1 /*{c-bup-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #ffffff /*{c-bup-background-start}*/, #f1f1f1 /*{c-bup-background-end}*/);
-}
-.ui-btn-up-c a.ui-link-inherit {
-       color:                                  #2F3E46 /*{c-bup-color}*/;
-}
-
-.ui-btn-hover-c {
-       border: 1px solid               #bbb /*{c-bhover-border}*/;
-       background:                     #dfdfdf /*{c-bhover-background-color}*/;
-       font-weight: bold;
-       color:                                  #222 /*{c-bhover-color}*/;
-       text-shadow: 0 /*{c-bhover-shadow-x}*/ 1px /*{c-bhover-shadow-y}*/ 0 /*{c-bhover-shadow-radius}*/ #ffffff /*{c-bhover-shadow-color}*/;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #f6f6f6 /*{c-bhover-background-start}*/), to( #e0e0e0 /*{c-bhover-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #f9f9f9 /*{c-bhover-background-start}*/, #e0e0e0 /*{c-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #f6f6f6 /*{c-bhover-background-start}*/, #e0e0e0 /*{c-bhover-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #f6f6f6 /*{c-bhover-background-start}*/, #e0e0e0 /*{c-bhover-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #f6f6f6 /*{c-bhover-background-start}*/, #e0e0e0 /*{c-bhover-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #f6f6f6 /*{c-bhover-background-start}*/, #e0e0e0 /*{c-bhover-background-end}*/);
-}
-.ui-btn-hover-c a.ui-link-inherit {
-       color:                                  #2F3E46 /*{c-bhover-color}*/;
-}
-.ui-btn-down-c {
-       border: 1px solid               #bbb /*{c-bdown-border}*/;
-       background:                     #d6d6d6 /*{c-bdown-background-color}*/;
-       font-weight: bold;
-       color:                                  #222 /*{c-bdown-color}*/;
-       text-shadow: 0 /*{c-bdown-shadow-x}*/ 1px /*{c-bdown-shadow-y}*/ 0 /*{c-bdown-shadow-radius}*/ #ffffff /*{c-bdown-shadow-color}*/;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #d0d0d0 /*{c-bdown-background-start}*/), to( #dfdfdf /*{c-bdown-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #d0d0d0 /*{c-bdown-background-start}*/, #dfdfdf /*{c-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #d0d0d0 /*{c-bdown-background-start}*/, #dfdfdf /*{c-bdown-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #d0d0d0 /*{c-bdown-background-start}*/, #dfdfdf /*{c-bdown-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #d0d0d0 /*{c-bdown-background-start}*/, #dfdfdf /*{c-bdown-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #d0d0d0 /*{c-bdown-background-start}*/, #dfdfdf /*{c-bdown-background-end}*/);
-}
-.ui-btn-down-c a.ui-link-inherit {
-       color:                                  #2F3E46 /*{c-bdown-color}*/;
-}
-.ui-btn-up-c,
-.ui-btn-hover-c,
-.ui-btn-down-c {
-       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
-       text-decoration: none;
-}
-
-
-/* D
------------------------------------------------------------------------------------------------------------*/
-
-.ui-bar-d {
-       border: 1px solid               #bbb /*{d-bar-border}*/;
-       background:                     #bbb /*{d-bar-background-color}*/;
-       color:                                  #333 /*{d-bar-color}*/;
-       text-shadow: 0 /*{d-bar-shadow-x}*/ 1px /*{d-bar-shadow-y}*/ 0 /*{d-bar-shadow-radius}*/ #eee /*{d-bar-shadow-color}*/;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #ddd /*{d-bar-background-start}*/), to( #bbb /*{d-bar-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #ddd /*{d-bar-background-start}*/, #bbb /*{d-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #ddd /*{d-bar-background-start}*/, #bbb /*{d-bar-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #ddd /*{d-bar-background-start}*/, #bbb /*{d-bar-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #ddd /*{d-bar-background-start}*/, #bbb /*{d-bar-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #ddd /*{d-bar-background-start}*/, #bbb /*{d-bar-background-end}*/);
-}
-.ui-bar-d,
-.ui-bar-d input,
-.ui-bar-d select,
-.ui-bar-d textarea,
-.ui-bar-d button {
-       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
-}
-
-.ui-bar-d .ui-link-inherit {
-       color:  #333333 /*{d-bar-color}*/;
-}
-.ui-bar-d .ui-link {
-       color: #2489CE /*{d-bar-link-color}*/;
-       font-weight: bold;
-}
-
-.ui-bar-d .ui-link:hover {
-       color: #2489CE /*{d-bar-link-hover}*/;
-}
-
-.ui-bar-d .ui-link:active {
-       color: #2489CE /*{d-bar-link-active}*/;
-}
-
-.ui-bar-d .ui-link:visited {
-    color: #2489CE /*{d-bar-link-visited}*/;
-}
-
-.ui-body-d,
-.ui-overlay-d {
-       border: 1px solid               #bbb /*{d-body-border}*/;
-       color:                                  #333333 /*{d-body-color}*/;
-       text-shadow: 0 /*{d-body-shadow-x}*/ 1px /*{d-body-shadow-y}*/ 0 /*{d-body-shadow-radius}*/     #fff /*{d-body-shadow-color}*/;
-       background:                     #ffffff /*{d-body-background-color}*/;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #fff), to( #fff /*{d-body-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #fff /*{d-body-background-start}*/, #fff /*{d-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #fff /*{d-body-background-start}*/, #fff /*{d-body-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #fff /*{d-body-background-start}*/, #fff /*{d-body-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #fff /*{d-body-background-start}*/, #fff /*{d-body-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #fff /*{d-body-background-start}*/, #fff /*{d-body-background-end}*/);
-}
-.ui-overlay-d {
-       background-image: none;
-       border-width: 0;
-}
-.ui-body-d,
-.ui-body-d input,
-.ui-body-d select,
-.ui-body-d textarea,
-.ui-body-d button {
-       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
-}
-
-.ui-body-d .ui-link-inherit {
-       color:  #333333 /*{d-body-color}*/;
-}
-
-.ui-body-d .ui-link {
-       color: #2489CE /*{d-body-link-color}*/;
-       font-weight: bold;
-}
-
-.ui-body-d .ui-link:hover {
-       color: #2489CE /*{d-body-link-hover}*/;
-}
-
-.ui-body-d .ui-link:active {
-       color: #2489CE /*{d-body-link-active}*/;
-}
-
-.ui-body-d .ui-link:visited {
-    color: #2489CE /*{d-body-link-visited}*/;
-}
-
-.ui-btn-up-d {
-       border: 1px solid               #bbb /*{d-bup-border}*/;
-       background:                     #fff /*{d-bup-background-color}*/;
-       font-weight: bold;
-       color:                                  #333 /*{d-bup-color}*/;
-       text-shadow: 0 /*{d-bup-shadow-x}*/ 1px /*{d-bup-shadow-y}*/ 0 /*{d-bup-shadow-radius}*/ #fff /*{d-bup-shadow-color}*/;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #fafafa), to( #f6f6f6 /*{d-bup-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #fafafa /*{d-bup-background-start}*/, #f6f6f6 /*{d-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #fafafa /*{d-bup-background-start}*/, #f6f6f6 /*{d-bup-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #fafafa /*{d-bup-background-start}*/, #f6f6f6 /*{d-bup-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #fafafa /*{d-bup-background-start}*/, #f6f6f6 /*{d-bup-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #fafafa /*{d-bup-background-start}*/, #f6f6f6 /*{d-bup-background-end}*/);
-}
-.ui-btn-up-d a.ui-link-inherit {
-       color:                                  #333 /*{d-bup-color}*/;
-}
-.ui-btn-hover-d {
-       border: 1px solid               #aaa /*{d-bhover-border}*/;
-       background:                     #eeeeee /*{d-bhover-background-color}*/;
-       font-weight: bold;
-       color:                                  #333 /*{d-bhover-color}*/;
-       cursor: pointer;
-       text-shadow: 0 /*{d-bhover-shadow-x}*/ 1px /*{d-bhover-shadow-y}*/ 0 /*{d-bhover-shadow-radius}*/       #fff /*{d-bhover-shadow-color}*/;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #eee), to( #fff /*{d-bhover-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #eee /*{d-bhover-background-start}*/, #fff /*{d-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #eee /*{d-bhover-background-start}*/, #fff /*{d-bhover-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #eee /*{d-bhover-background-start}*/, #fff /*{d-bhover-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #eee /*{d-bhover-background-start}*/, #fff /*{d-bhover-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #eee /*{d-bhover-background-start}*/, #fff /*{d-bhover-background-end}*/);
-}
-.ui-btn-hover-d a.ui-link-inherit {
-       color:                                  #333 /*{d-bhover-color}*/;
-}
-.ui-btn-down-d {
-       border: 1px solid               #aaa /*{d-bdown-border}*/;
-       background:                     #eee /*{d-bdown-background-color}*/;
-       font-weight: bold;
-       color:                                  #333 /*{d-bdown-color}*/;
-       text-shadow: 0 /*{d-bdown-shadow-x}*/ 1px /*{d-bdown-shadow-y}*/ 0 /*{d-bdown-shadow-radius}*/  #ffffff /*{d-bdown-shadow-color}*/;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #e5e5e5 /*{d-bdown-background-start}*/), to( #f2f2f2 /*{d-bdown-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #e5e5e5 /*{d-bdown-background-start}*/, #f2f2f2 /*{d-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #e5e5e5 /*{d-bdown-background-start}*/, #f2f2f2 /*{d-bdown-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #e5e5e5 /*{d-bdown-background-start}*/, #f2f2f2 /*{d-bdown-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #e5e5e5 /*{d-bdown-background-start}*/, #f2f2f2 /*{d-bdown-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #e5e5e5 /*{d-bdown-background-start}*/, #f2f2f2 /*{d-bdown-background-end}*/);
-}
-.ui-btn-down-d a.ui-link-inherit {
-       color:                                  #333 /*{d-bdown-color}*/;
-}
-.ui-btn-up-d,
-.ui-btn-hover-d,
-.ui-btn-down-d {
-       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
-       text-decoration: none;
-}
-
-
-/* E
------------------------------------------------------------------------------------------------------------*/
-
-.ui-bar-e {
-       border: 1px solid               #F7C942 /*{e-bar-border}*/;
-       background:                     #fadb4e /*{e-bar-background-color}*/;
-       color:                                  #333 /*{e-bar-color}*/;
-       text-shadow: 0 /*{e-bar-shadow-x}*/ 1px /*{e-bar-shadow-y}*/ 0 /*{e-bar-shadow-radius}*/        #fff /*{e-bar-shadow-color}*/;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #fceda7 /*{e-bar-background-start}*/), to( #fbef7e /*{e-bar-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #fceda7 /*{e-bar-background-start}*/, #fbef7e /*{e-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #fceda7 /*{e-bar-background-start}*/, #fbef7e /*{e-bar-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #fceda7 /*{e-bar-background-start}*/, #fbef7e /*{e-bar-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #fceda7 /*{e-bar-background-start}*/, #fbef7e /*{e-bar-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #fceda7 /*{e-bar-background-start}*/, #fbef7e /*{e-bar-background-end}*/);
-}
-.ui-bar-e,
-.ui-bar-e input,
-.ui-bar-e select,
-.ui-bar-e textarea,
-.ui-bar-e button {
-       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
-}
-.ui-bar-e .ui-link-inherit {
-       color:  #333333 /*{e-bar-color}*/;
-}
-.ui-bar-e .ui-link {
-       color: #2489CE /*{e-bar-link-color}*/;
-       font-weight: bold;
-}
-
-.ui-bar-e .ui-link:hover {
-       color: #2489CE /*{e-bar-link-hover}*/;
-}
-
-.ui-bar-e .ui-link:active {
-       color: #2489CE /*{e-bar-link-active}*/;
-}
-
-.ui-bar-e .ui-link:visited {
-    color: #2489CE /*{e-bar-link-visited}*/;
-}
-
-.ui-body-e,
-.ui-overlay-e {
-       border: 1px solid               #F7C942 /*{e-body-border}*/;
-       color:                                  #222222 /*{e-body-color}*/;
-       text-shadow: 0 /*{e-body-shadow-x}*/ 1px /*{e-body-shadow-y}*/ 0 /*{e-body-shadow-radius}*/     #fff /*{e-body-shadow-color}*/;
-       background:                     #fff9df /*{e-body-background-color}*/;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #fffadf /*{e-body-background-start}*/), to( #fff3a5 /*{e-body-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #fffadf /*{e-body-background-start}*/, #fff3a5 /*{e-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #fffadf /*{e-body-background-start}*/, #fff3a5 /*{e-body-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #fffadf /*{e-body-background-start}*/, #fff3a5 /*{e-body-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #fffadf /*{e-body-background-start}*/, #fff3a5 /*{e-body-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #fffadf /*{e-body-background-start}*/, #fff3a5 /*{e-body-background-end}*/);
-}
-.ui-overlay-e {
-       background-image: none;
-       border-width: 0;
-}
-.ui-body-e,
-.ui-body-e input,
-.ui-body-e select,
-.ui-body-e textarea,
-.ui-body-e button {
-       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
-}
-.ui-body-e .ui-link-inherit {
-       color:  #333333 /*{e-body-color}*/;
-}
-
-.ui-body-e .ui-link {
-       color: #2489CE /*{e-body-link-color}*/;
-       font-weight: bold;
-}
-
-.ui-body-e .ui-link:hover {
-       color: #2489CE /*{e-body-link-hover}*/;
-}
-
-.ui-body-e .ui-link:active {
-       color: #2489CE /*{e-body-link-active}*/;
-}
-
-.ui-body-e .ui-link:visited {
-    color: #2489CE /*{e-body-link-visited}*/;
-}
-
-.ui-btn-up-e {
-       border: 1px solid               #F4C63f /*{e-bup-border}*/;
-       background:                     #fadb4e /*{e-bup-background-color}*/;
-       font-weight: bold;
-       color:                                  #222 /*{e-bup-color}*/;
-       text-shadow: 0 /*{e-bup-shadow-x}*/ 1px /*{e-bup-shadow-y}*/ 0 /*{e-bup-shadow-radius}*/        #fff /*{e-bup-shadow-color}*/;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #ffefaa /*{e-bup-background-start}*/), to( #ffe155 /*{e-bup-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #ffefaa /*{e-bup-background-start}*/, #ffe155 /*{e-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #ffefaa /*{e-bup-background-start}*/, #ffe155 /*{e-bup-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #ffefaa /*{e-bup-background-start}*/, #ffe155 /*{e-bup-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #ffefaa /*{e-bup-background-start}*/, #ffe155 /*{e-bup-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #ffefaa /*{e-bup-background-start}*/, #ffe155 /*{e-bup-background-end}*/);
-}
-.ui-btn-up-e a.ui-link-inherit {
-       color:                                  #222 /*{e-bup-color}*/;
-}
-.ui-btn-hover-e {
-       border: 1px solid               #F2C43d /*{e-bhover-border}*/;
-       background:                     #fbe26f /*{e-bhover-background-color}*/;
-       font-weight: bold;
-       color:                                  #111 /*{e-bhover-color}*/;
-       text-shadow: 0 /*{e-bhover-shadow-x}*/ 1px /*{e-bhover-shadow-y}*/ 0 /*{e-bhover-shadow-radius}*/       #fff /*{e-bhover-shadow-color}*/;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #fff5ba /*{e-bhover-background-start}*/), to( #fbdd52 /*{e-bhover-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #fff5ba /*{e-bhover-background-start}*/, #fbdd52 /*{e-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #fff5ba /*{e-bhover-background-start}*/, #fbdd52 /*{e-bhover-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #fff5ba /*{e-bhover-background-start}*/, #fbdd52 /*{e-bhover-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #fff5ba /*{e-bhover-background-start}*/, #fbdd52 /*{e-bhover-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #fff5ba /*{e-bhover-background-start}*/, #fbdd52 /*{e-bhover-background-end}*/);
-}
-
-.ui-btn-hover-e a.ui-link-inherit {
-       color:                                  #333 /*{e-bhover-color}*/;
-}
-.ui-btn-down-e {
-       border: 1px solid               #F2C43d /*{e-bdown-border}*/;
-       background:                     #fceda7 /*{e-bdown-background-color}*/;
-       font-weight: bold;
-       color:                                  #111 /*{e-bdown-color}*/;
-       text-shadow: 0 /*{e-bdown-shadow-x}*/ 1px /*{e-bdown-shadow-y}*/ 0 /*{e-bdown-shadow-radius}*/  #ffffff /*{e-bdown-shadow-color}*/;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #f8d94c /*{e-bdown-background-start}*/), to( #fadb4e /*{e-bdown-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #f8d94c /*{e-bdown-background-start}*/, #fadb4e /*{e-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #f8d94c /*{e-bdown-background-start}*/, #fadb4e /*{e-bdown-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #f8d94c /*{e-bdown-background-start}*/, #fadb4e /*{e-bdown-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #f8d94c /*{e-bdown-background-start}*/, #fadb4e /*{e-bdown-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #f8d94c /*{e-bdown-background-start}*/, #fadb4e /*{e-bdown-background-end}*/);
-}
-.ui-btn-down-e a.ui-link-inherit {
-       color:                                  #333 /*{e-bdown-color}*/;
-}
-.ui-btn-up-e,
-.ui-btn-hover-e,
-.ui-btn-down-e {
-       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
-       text-decoration: none;
-}
-
-/* Structure */
-
-/* links within "buttons" 
------------------------------------------------------------------------------------------------------------*/
-
-a.ui-link-inherit {
-       text-decoration: none !important;
-}
-
-
-/* Active class used as the "on" state across all themes
------------------------------------------------------------------------------------------------------------*/
-.ui-btn-active {
-       border: 1px solid               #2373a5 /*{global-active-border}*/;
-       background:                     #5393c5 /*{global-active-background-color}*/;
-       font-weight: bold;
-       color:                                  #fff /*{global-active-color}*/;
-       cursor: pointer;
-       text-shadow: 0 /*{global-active-shadow-x}*/ 1px /*{global-active-shadow-y}*/ 1px /*{global-active-shadow-radius}*/ #3373a5 /*{global-active-shadow-color}*/;
-       text-decoration: none;
-       background-image: -webkit-gradient(linear, left top, left bottom, from( #5393c5 /*{global-active-background-start}*/), to( #6facd5 /*{global-active-background-end}*/)); /* Saf4+, Chrome */
-       background-image: -webkit-linear-gradient( #5393c5 /*{global-active-background-start}*/, #6facd5 /*{global-active-background-end}*/); /* Chrome 10+, Saf5.1+ */
-       background-image:    -moz-linear-gradient( #5393c5 /*{global-active-background-start}*/, #6facd5 /*{global-active-background-end}*/); /* FF3.6 */
-       background-image:     -ms-linear-gradient( #5393c5 /*{global-active-background-start}*/, #6facd5 /*{global-active-background-end}*/); /* IE10 */
-       background-image:      -o-linear-gradient( #5393c5 /*{global-active-background-start}*/, #6facd5 /*{global-active-background-end}*/); /* Opera 11.10+ */
-       background-image:         linear-gradient( #5393c5 /*{global-active-background-start}*/, #6facd5 /*{global-active-background-end}*/);
-       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
-}
-.ui-btn-active a.ui-link-inherit {
-       color:                                  #fff /*{global-active-color}*/;
-}
-
-
-/* button inner top highlight
------------------------------------------------------------------------------------------------------------*/
-
-.ui-btn-inner {
-       border-top: 1px solid   #fff;
-       border-color:                   rgba(255,255,255,.3);
-}
-
-
-/* corner rounding classes
------------------------------------------------------------------------------------------------------------*/
-
-.ui-corner-tl {
-       -moz-border-radius-topleft:             .6em /*{global-radii-blocks}*/;
-       -webkit-border-top-left-radius:         .6em /*{global-radii-blocks}*/;
-       border-top-left-radius:                         .6em /*{global-radii-blocks}*/;
-}
-.ui-corner-tr {
-       -moz-border-radius-topright:            .6em /*{global-radii-blocks}*/;
-       -webkit-border-top-right-radius:        .6em /*{global-radii-blocks}*/;
-       border-top-right-radius:                        .6em /*{global-radii-blocks}*/;
-}
-.ui-corner-bl {
-       -moz-border-radius-bottomleft:          .6em /*{global-radii-blocks}*/;
-       -webkit-border-bottom-left-radius:      .6em /*{global-radii-blocks}*/;
-       border-bottom-left-radius:                      .6em /*{global-radii-blocks}*/;
-}
-.ui-corner-br {
-       -moz-border-radius-bottomright:         .6em /*{global-radii-blocks}*/;
-       -webkit-border-bottom-right-radius: .6em /*{global-radii-blocks}*/;
-       border-bottom-right-radius:             .6em /*{global-radii-blocks}*/;
-}
-.ui-corner-top {
-       -moz-border-radius-topleft:             .6em /*{global-radii-blocks}*/;
-       -webkit-border-top-left-radius:         .6em /*{global-radii-blocks}*/;
-       border-top-left-radius:                         .6em /*{global-radii-blocks}*/;
-       -moz-border-radius-topright:            .6em /*{global-radii-blocks}*/;
-       -webkit-border-top-right-radius:        .6em /*{global-radii-blocks}*/;
-       border-top-right-radius:                        .6em /*{global-radii-blocks}*/;
-}
-.ui-corner-bottom {
-       -moz-border-radius-bottomleft:          .6em /*{global-radii-blocks}*/;
-       -webkit-border-bottom-left-radius:      .6em /*{global-radii-blocks}*/;
-       border-bottom-left-radius:                      .6em /*{global-radii-blocks}*/;
-       -moz-border-radius-bottomright:         .6em /*{global-radii-blocks}*/;
-       -webkit-border-bottom-right-radius: .6em /*{global-radii-blocks}*/;
-       border-bottom-right-radius:             .6em /*{global-radii-blocks}*/;
-       }
-.ui-corner-right {
-       -moz-border-radius-topright:            .6em /*{global-radii-blocks}*/;
-       -webkit-border-top-right-radius:        .6em /*{global-radii-blocks}*/;
-       border-top-right-radius:                        .6em /*{global-radii-blocks}*/;
-       -moz-border-radius-bottomright:         .6em /*{global-radii-blocks}*/;
-       -webkit-border-bottom-right-radius: .6em /*{global-radii-blocks}*/;
-       border-bottom-right-radius:             .6em /*{global-radii-blocks}*/;
-}
-.ui-corner-left {
-       -moz-border-radius-topleft:             .6em /*{global-radii-blocks}*/;
-       -webkit-border-top-left-radius:         .6em /*{global-radii-blocks}*/;
-       border-top-left-radius:                         .6em /*{global-radii-blocks}*/;
-       -moz-border-radius-bottomleft:          .6em /*{global-radii-blocks}*/;
-       -webkit-border-bottom-left-radius:      .6em /*{global-radii-blocks}*/;
-       border-bottom-left-radius:                      .6em /*{global-radii-blocks}*/;
-}
-.ui-corner-all {
-       -moz-border-radius:                             .6em /*{global-radii-blocks}*/;
-       -webkit-border-radius:                          .6em /*{global-radii-blocks}*/;
-       border-radius:                                          .6em /*{global-radii-blocks}*/;
-}
-.ui-corner-none {
-       -moz-border-radius:                                0;
-       -webkit-border-radius:                             0;
-       border-radius:                                             0;
-}
-
-/* Form field separator
------------------------------------------------------------------------------------------------------------*/
-.ui-br {
-       border-bottom: rgb(130,130,130);
-       border-bottom: rgba(130,130,130,.3);
-       border-bottom-width: 1px;
-       border-bottom-style: solid;
-}
-
-/* Interaction cues
------------------------------------------------------------------------------------------------------------*/
-.ui-disabled {
-       opacity:                                                        .3;
-}
-.ui-disabled,
-.ui-disabled a {
-       cursor: default !important;
-       pointer-events: none;
-}
-.ui-disabled .ui-btn-text {
-       -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=30)";
-       filter: alpha(opacity=30);
-       zoom: 1;
-}
-
-/* Icons
------------------------------------------------------------------------------------------------------------*/
-
-.ui-icon,
-.ui-icon-searchfield:after {
-       background:                                             #666 /*{global-icon-color}*/;
-       background:                                             rgba(0,0,0,.4) /*{global-icon-disc}*/;
-       background-image: url(images/icons-18-white.png) /*{global-icon-set}*/;
-       background-repeat: no-repeat;
-       -moz-border-radius:                             9px;
-       -webkit-border-radius:                          9px;
-       border-radius:                                          9px;
-}
-
-
-/* Alt icon color
------------------------------------------------------------------------------------------------------------*/
-
-.ui-icon-alt {
-       background:                                             #fff;
-       background:                                             rgba(255,255,255,.3);
-       background-image: url(images/icons-18-black.png);
-       background-repeat: no-repeat;
-}
-
-/* HD/"retina" sprite
------------------------------------------------------------------------------------------------------------*/
-
-@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
-       only screen and (min--moz-device-pixel-ratio: 1.5),
-       only screen and (min-resolution: 240dpi) {
-       
-       .ui-icon-plus, .ui-icon-minus, .ui-icon-delete, .ui-icon-arrow-r,
-       .ui-icon-arrow-l, .ui-icon-arrow-u, .ui-icon-arrow-d, .ui-icon-check,
-       .ui-icon-gear, .ui-icon-refresh, .ui-icon-forward, .ui-icon-back,
-       .ui-icon-grid, .ui-icon-star, .ui-icon-alert, .ui-icon-info, .ui-icon-home, .ui-icon-search, .ui-icon-searchfield:after, 
-       .ui-icon-checkbox-off, .ui-icon-checkbox-on, .ui-icon-radio-off, .ui-icon-radio-on {
-               background-image: url(images/icons-36-white.png);
-               -moz-background-size: 776px 18px;
-               -o-background-size: 776px 18px;
-               -webkit-background-size: 776px 18px;
-               background-size: 776px 18px;
-       }
-       .ui-icon-alt {
-               background-image: url(images/icons-36-black.png);
-       }
-}
-
-/* plus minus */
-.ui-icon-plus {
-       background-position:    -0 50%;
-}
-.ui-icon-minus {
-       background-position:    -36px 50%;
-}
-
-/* delete/close */
-.ui-icon-delete {
-       background-position:    -72px 50%;
-}
-
-/* arrows */
-.ui-icon-arrow-r {
-       background-position:    -108px 50%;
-}
-.ui-icon-arrow-l {
-       background-position:    -144px 50%;
-}
-.ui-icon-arrow-u {
-       background-position:    -180px 50%;
-}
-.ui-icon-arrow-d {
-       background-position:    -216px 50%;
-}
-
-/* misc */
-.ui-icon-check {
-       background-position:    -252px 50%;
-}
-.ui-icon-gear {
-       background-position:    -288px 50%;
-}
-.ui-icon-refresh {
-       background-position:    -324px 50%;
-}
-.ui-icon-forward {
-       background-position:    -360px 50%;
-}
-.ui-icon-back {
-       background-position:    -396px 50%;
-}
-.ui-icon-grid {
-       background-position:    -432px 50%;
-}
-.ui-icon-star {
-       background-position:    -468px 50%;
-}
-.ui-icon-alert {
-       background-position:    -504px 50%;
-}
-.ui-icon-info {
-       background-position:    -540px 50%;
-}
-.ui-icon-home {
-       background-position:    -576px 50%;
-}
-.ui-icon-search,
-.ui-icon-searchfield:after {
-       background-position:    -612px 50%;
-}
-.ui-icon-checkbox-off {
-       background-position:    -684px 50%;
-}
-.ui-icon-checkbox-on {
-       background-position:    -648px 50%;
-}
-.ui-icon-radio-off {
-       background-position:    -756px 50%;
-}
-.ui-icon-radio-on {
-       background-position:    -720px 50%;
-}
-
-
-/* checks,radios */
-.ui-checkbox .ui-icon {
-       -moz-border-radius: 3px;
-       -webkit-border-radius: 3px;
-       border-radius: 3px;
-}
-.ui-icon-checkbox-off,
-.ui-icon-radio-off {
-       background-color: transparent;  
-}
-.ui-checkbox-on .ui-icon,
-.ui-radio-on .ui-icon {
-       background-color: #4596ce /*{global-active-background-color}*/; /* NOTE: this hex should match the active state color. It's repeated here for cascade */
-}
-
-/* loading icon */
-.ui-icon-loading {
-       background: url(images/ajax-loader.gif);
-       background-size: 46px 46px;
-}
-
-
-/* Button corner classes
------------------------------------------------------------------------------------------------------------*/
-
-.ui-btn-corner-tl {
-       -moz-border-radius-topleft:             1em /*{global-radii-buttons}*/;
-       -webkit-border-top-left-radius:         1em /*{global-radii-buttons}*/;
-       border-top-left-radius:                         1em /*{global-radii-buttons}*/;
-}
-.ui-btn-corner-tr {
-       -moz-border-radius-topright:            1em /*{global-radii-buttons}*/;
-       -webkit-border-top-right-radius:        1em /*{global-radii-buttons}*/;
-       border-top-right-radius:                        1em /*{global-radii-buttons}*/;
-}
-.ui-btn-corner-bl {
-       -moz-border-radius-bottomleft:          1em /*{global-radii-buttons}*/;
-       -webkit-border-bottom-left-radius:      1em /*{global-radii-buttons}*/;
-       border-bottom-left-radius:                      1em /*{global-radii-buttons}*/;
-}
-.ui-btn-corner-br {
-       -moz-border-radius-bottomright:         1em /*{global-radii-buttons}*/;
-       -webkit-border-bottom-right-radius: 1em /*{global-radii-buttons}*/;
-       border-bottom-right-radius:             1em /*{global-radii-buttons}*/;
-}
-.ui-btn-corner-top {
-       -moz-border-radius-topleft:             1em /*{global-radii-buttons}*/;
-       -webkit-border-top-left-radius:         1em /*{global-radii-buttons}*/;
-       border-top-left-radius:                         1em /*{global-radii-buttons}*/;
-       -moz-border-radius-topright:            1em /*{global-radii-buttons}*/;
-       -webkit-border-top-right-radius:        1em /*{global-radii-buttons}*/;
-       border-top-right-radius:                        1em /*{global-radii-buttons}*/;
-}
-.ui-btn-corner-bottom {
-       -moz-border-radius-bottomleft:          1em /*{global-radii-buttons}*/;
-       -webkit-border-bottom-left-radius:      1em /*{global-radii-buttons}*/;
-       border-bottom-left-radius:                      1em /*{global-radii-buttons}*/;
-       -moz-border-radius-bottomright:         1em /*{global-radii-buttons}*/;
-       -webkit-border-bottom-right-radius: 1em /*{global-radii-buttons}*/;
-       border-bottom-right-radius:             1em /*{global-radii-buttons}*/;
-}
-.ui-btn-corner-right {
-        -moz-border-radius-topright:           1em /*{global-radii-buttons}*/;
-       -webkit-border-top-right-radius:        1em /*{global-radii-buttons}*/;
-       border-top-right-radius:                        1em /*{global-radii-buttons}*/;
-       -moz-border-radius-bottomright:         1em /*{global-radii-buttons}*/;
-       -webkit-border-bottom-right-radius: 1em /*{global-radii-buttons}*/;
-       border-bottom-right-radius:             1em /*{global-radii-buttons}*/;
-}
-.ui-btn-corner-left {
-       -moz-border-radius-topleft:             1em /*{global-radii-buttons}*/;
-       -webkit-border-top-left-radius:         1em /*{global-radii-buttons}*/;
-       border-top-left-radius:                         1em /*{global-radii-buttons}*/;
-       -moz-border-radius-bottomleft:          1em /*{global-radii-buttons}*/;
-       -webkit-border-bottom-left-radius:      1em /*{global-radii-buttons}*/;
-       border-bottom-left-radius:                      1em /*{global-radii-buttons}*/;
-}
-.ui-btn-corner-all {
-       -moz-border-radius:                             1em /*{global-radii-buttons}*/;
-       -webkit-border-radius:                          1em /*{global-radii-buttons}*/;
-       border-radius:                                          1em /*{global-radii-buttons}*/;
-}
-
-/* radius clip workaround for cleaning up corner trapping */
-.ui-corner-tl,
-.ui-corner-tr,
-.ui-corner-bl, 
-.ui-corner-br,
-.ui-corner-top,
-.ui-corner-bottom, 
-.ui-corner-right,
-.ui-corner-left,
-.ui-corner-all,
-.ui-btn-corner-tl,
-.ui-btn-corner-tr,
-.ui-btn-corner-bl, 
-.ui-btn-corner-br,
-.ui-btn-corner-top,
-.ui-btn-corner-bottom, 
-.ui-btn-corner-right,
-.ui-btn-corner-left,
-.ui-btn-corner-all {
-  -webkit-background-clip: padding-box;
-     -moz-background-clip: padding;
-          background-clip: padding-box;
-}
-
-/* Overlay / modal
------------------------------------------------------------------------------------------------------------*/
-
-.ui-overlay {
-       background: #666;
-       opacity: .5;
-       filter: Alpha(Opacity=50);
-       position: absolute;
-       width: 100%;
-       height: 100%;
-}
-.ui-overlay-shadow {
-       -moz-box-shadow: 0px 0px 12px                   rgba(0,0,0,.6);
-       -webkit-box-shadow: 0px 0px 12px                rgba(0,0,0,.6);
-       box-shadow: 0px 0px 12px                                rgba(0,0,0,.6);
-}
-.ui-shadow {
-       -moz-box-shadow: 0px 1px 4px /*{global-box-shadow-size}*/                       rgba(0,0,0,.3) /*{global-box-shadow-color}*/;
-       -webkit-box-shadow: 0px 1px 4px /*{global-box-shadow-size}*/            rgba(0,0,0,.3) /*{global-box-shadow-color}*/;
-       box-shadow: 0px 1px 4px /*{global-box-shadow-size}*/                            rgba(0,0,0,.3) /*{global-box-shadow-color}*/;
-}
-.ui-bar-a .ui-shadow,
-.ui-bar-b .ui-shadow ,
-.ui-bar-c .ui-shadow  {
-       -moz-box-shadow: 0px 1px 0                              rgba(255,255,255,.3);
-       -webkit-box-shadow: 0px 1px 0                   rgba(255,255,255,.3);
-       box-shadow: 0px 1px 0                                   rgba(255,255,255,.3);
-}
-.ui-shadow-inset {
-       -moz-box-shadow: inset 0px 1px 4px              rgba(0,0,0,.2);
-       -webkit-box-shadow: inset 0px 1px 4px   rgba(0,0,0,.2);
-       box-shadow: inset 0px 1px 4px                   rgba(0,0,0,.2);
-}
-.ui-icon-shadow {
-       -moz-box-shadow: 0px 1px 0                              rgba(255,255,255,.4) /*{global-icon-shadow}*/;
-       -webkit-box-shadow: 0px 1px 0                   rgba(255,255,255,.4) /*{global-icon-shadow}*/;
-       box-shadow: 0px 1px 0                                   rgba(255,255,255,.4) /*{global-icon-shadow}*/;
-}
-
-/* Focus state - set here for specificity (note: these classes are added by JavaScript)
------------------------------------------------------------------------------------------------------------*/
-
-.ui-btn:focus {
-       outline: 0;
-}
-
-.ui-focus,
-.ui-btn:focus {
-       -moz-box-shadow: 0px 0px 12px           #387bbe /*{global-active-background-color}*/;
-       -webkit-box-shadow: 0px 0px 12px        #387bbe /*{global-active-background-color}*/;
-       box-shadow: 0px 0px 12px                        #387bbe /*{global-active-background-color}*/;
-}
-
-/* unset box shadow in browsers that don't do it right
------------------------------------------------------------------------------------------------------------*/
-
-.ui-mobile-nosupport-boxshadow * {
-       -moz-box-shadow: none !important;
-       -webkit-box-shadow: none !important;
-       box-shadow: none !important;
-}
-
-/* ...and bring back focus */
-.ui-mobile-nosupport-boxshadow .ui-focus,
-.ui-mobile-nosupport-boxshadow .ui-btn:focus {
-       outline-width: 1px;
-       outline-style: dotted;
-}
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/ajax-loader.png b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/ajax-loader.png
deleted file mode 100644 (file)
index 13b208d..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/ajax-loader.png and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icon-search-black.png b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icon-search-black.png
deleted file mode 100644 (file)
index 0257f96..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icon-search-black.png and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-18-black.png b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-18-black.png
deleted file mode 100644 (file)
index ce1b758..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-18-black.png and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-18-white.png b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-18-white.png
deleted file mode 100644 (file)
index 1ab0127..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-18-white.png and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-36-black.png b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-36-black.png
deleted file mode 100644 (file)
index 1a59d7c..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-36-black.png and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-36-white.png b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-36-white.png
deleted file mode 100644 (file)
index 5647bdc..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-36-white.png and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/texture_05.png b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/texture_05.png
deleted file mode 100644 (file)
index ef39c5f..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/texture_05.png and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/texture_075.png b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/texture_075.png
deleted file mode 100644 (file)
index 4a496ed..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/texture_075.png and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/index.php b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/index.php
deleted file mode 100644 (file)
index 431474d..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-$type = 'text/css';
-$files = array(
-       '../../../LICENSE-INFO.txt',
-       'jquery.mobile.css'
-);
-$base = dirname(__FILE__);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/jquery.mobile.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/jquery.mobile.css
deleted file mode 100644 (file)
index bd73b00..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-@import url( "jquery.mobile.theme.css" );
-@import url( "../../structure/jquery.mobile.structure.css" );
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/jquery.mobile.theme.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/jquery.mobile.theme.css
deleted file mode 100644 (file)
index 641e01d..0000000
+++ /dev/null
@@ -1,975 +0,0 @@
-/*####################################################################################################################################
-
-  A
-
-####################################################################################################################################*/
-
-.ui-bar-a {  
-  font-weight: bold;
-  border: 1px solid       #be7800; 
-  background:             #e99515; 
-  color:                  #fff; 
-  text-shadow: 0 -1px 0px #94440F; 
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#e9a015), to(#e98a15)); /* Saf4+, Chrome */
-  background-image: -webkit-linear-gradient(#e9a015, #e98a15); /* Chrome 10+, Saf5.1+ */
-  background-image:    -moz-linear-gradient(#e9a015, #e98a15); /* FF3.6 */
-  background-image:     -ms-linear-gradient(#e9a015, #e98a15); /* IE10 */
-  background-image:      -o-linear-gradient(#e9a015, #e98a15); /* Opera 11.10+ */
-  background-image:         linear-gradient(#e9a015, #e98a15); 
-}
-.ui-btn-up-a {
-  border: 1px solid       #BD610D;
-  background:             #e68510;
-  color:                  #fff;
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#ea9e0c), to(#e68510)); /* Saf4+, Chrome */
-  background-image: -webkit-linear-gradient(#ea9e0c, #e68510); /* Chrome 10+, Saf5.1+ */
-  background-image:    -moz-linear-gradient(#ea9e0c, #e68510); /* FF3.6 */
-  background-image:     -ms-linear-gradient(#ea9e0c, #e68510); /* IE10 */
-  background-image:      -o-linear-gradient(#ea9e0c, #e68510); /* Opera 11.10+ */
-  background-image:         linear-gradient(#ea9e0c, #e68510); 
-}
-.ui-btn-up-a a.ui-link-inherit {
-  color:                  #fff;
-}
-.ui-btn-hover-a {
-  border: 1px solid       #b77504;
-  background:             #ed9730;
-  color:                  #fff;
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#edab30), to(#ed9730)); /* Saf4+, Chrome */
-  background-image: -webkit-linear-gradient(#edab30, #ed9730); /* Chrome 10+, Saf5.1+ */
-  background-image:    -moz-linear-gradient(#edab30, #ed9730); /* FF3.6 */
-  background-image:     -ms-linear-gradient(#edab30, #ed9730); /* IE10 */
-  background-image:      -o-linear-gradient(#edab30, #ed9730); /* Opera 11.10+ */
-  background-image:         linear-gradient(#edab30, #ed9730); 
-}
-.ui-btn-hover-a a.ui-link-inherit {
-  color:                  #fff;
-}
-.ui-btn-down-a {
-  border: 1px solid       #BD610D;
-  background:             #BA6E11;
-  color:                  #fff;
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#BA8011), to(#BA6E11)); /* Saf4+, Chrome */
-  background-image: -webkit-linear-gradient(#BA8011, #BA6E11); /* Chrome 10+, Saf5.1+ */
-  background-image:    -moz-linear-gradient(#BA8011, #BA6E11); /* FF3.6 */
-  background-image:     -ms-linear-gradient(#BA8011, #BA6E11); /* IE10 */
-  background-image:      -o-linear-gradient(#BA8011, #BA6E11); /* Opera 11.10+ */
-  background-image:         linear-gradient(#BA8011, #BA6E11);
-}
-.ui-btn-up-a,
-.ui-btn-hover-a,
-.ui-btn-down-a {
-  text-shadow: 0 -1px 0px #94440F;
-  cursor: pointer;
-  font-weight: bold; 
-  text-decoration: none;
-  font-family: Helvetica, Arial, sans-serif;
-}
-.ui-bar-a, 
-.ui-bar-a input, 
-.ui-bar-a select, 
-.ui-bar-a textarea, 
-.ui-bar-a button { 
-  font-family: Helvetica, Arial, sans-serif;
-}
-.ui-bar-a .ui-link-inherit { 
-  color:                  #fff;
-}
-.ui-bar-a .ui-link { 
-  color:                  #7cc4e7;
-  font-weight: bold;
-}
-.ui-body-a,
-.ui-dialog.ui-overlay-a {
-  font-weight: normal;
-  border: 1px solid       #222;
-  background:             #444;
-  color:                  #ddd;
-  text-shadow: 0 -1px 0px #000;
-  background-image: -webkit-gradient(linear, center top, center bottom, from(#333), color-stop(5%, #333), color-stop(15%, #444), color-stop(60%, #444), to(#222)); /* Saf4+, Chrome */
-  background-image: -webkit-linear-gradient(#333 0%, #333 5%, #444 15%, #444 60%, #222 100%); /* Chrome 10+, Saf5.1+ */
-  background-image:    -moz-linear-gradient(#333 0%, #333 5%, #444 15%, #444 60%, #222 100%); /* FF3.6 */
-  background-image:     -ms-linear-gradient(#333 0%, #333 5%, #444 15%, #444 60%, #222 100%); /* IE10 */
-  background-image:      -o-linear-gradient(#333 0%, #333 5%, #444 15%, #444 60%, #222 100%); /* Opera 11.10+ */
-  background-image:         linear-gradient(#333 0%, #333 5%, #444 15%, #444 60%, #222 100%);
-}
-.ui-body-a, 
-.ui-body-a input, 
-.ui-body-a select, 
-.ui-body-a textarea, 
-.ui-body-a button { 
-  font-family: Helvetica, Arial, sans-serif; 
-}
-.ui-body-a .ui-link-inherit { 
-  color:                  #fff; 
-}
-.ui-body-a .ui-link { 
-  color:                  #e98a15; 
-  font-weight: bold; 
-}
-
-/*####################################################################################################################################
-
-  B
-
-####################################################################################################################################*/
-
-.ui-bar-b {
-  font-weight: bold;
-  border: 1px solid       #222; 
-  background:             #333333; 
-  color:                  #fff; 
-  text-shadow: 0 -1px 0px #111; 
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#555), to(#333)); /* Saf4+, Chrome */
-  background-image: -webkit-linear-gradient(#555, #333); /* Chrome 10+, Saf5.1+ */
-  background-image:    -moz-linear-gradient(#555, #333); /* FF3.6 */
-  background-image:     -ms-linear-gradient(#555, #333); /* IE10 */
-  background-image:      -o-linear-gradient(#555, #333); /* Opera 11.10+ */
-  background-image:         linear-gradient(#555, #333);
-}
-.ui-btn-up-b {
-  border: 1px solid       #232323;
-  background:             #393939;
-  color:                  #eee;
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#5E5E5E), to(#393939)); /* Saf4+, Chrome */
-  background-image: -webkit-linear-gradient(#5E5E5E, #393939); /* Chrome 10+, Saf5.1+ */
-  background-image:    -moz-linear-gradient(#5E5E5E, #393939); /* FF3.6 */
-  background-image:     -ms-linear-gradient(#5E5E5E, #393939); /* IE10 */
-  background-image:      -o-linear-gradient(#5E5E5E, #393939); /* Opera 11.10+ */
-  background-image:         linear-gradient(#5E5E5E, #393939);
-}
-.ui-btn-up-b a.ui-link-inherit { 
-  color:                  #eee;
-}
-.ui-btn-hover-b {
-  border: 1px solid       #232323;
-  background:             #494949;
-  color:                  #fff;
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#6E6E6E), to(#494949)); /* Saf4+, Chrome */
-  background-image: -webkit-linear-gradient(#6E6E6E, #494949); /* Chrome 10+, Saf5.1+ */
-  background-image:    -moz-linear-gradient(#6E6E6E, #494949); /* FF3.6 */
-  background-image:     -ms-linear-gradient(#6E6E6E, #494949); /* IE10 */
-  background-image:      -o-linear-gradient(#6E6E6E, #494949); /* Opera 11.10+ */
-  background-image:         linear-gradient(#6E6E6E, #494949);
-}
-
-.ui-btn-hover-b a.ui-link-inherit {
-  color:                  #fff;
-}
-.ui-btn-down-b {
-  border: 1px solid       #232323;
-  background:             #292929;
-  color:                  #fff;
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#4E4E4E), to(#292929)); /* Saf4+, Chrome */
-  background-image: -webkit-linear-gradient(#4E4E4E, #292929); /* Chrome 10+, Saf5.1+ */
-  background-image:    -moz-linear-gradient(#4E4E4E, #292929); /* FF3.6 */
-  background-image:     -ms-linear-gradient(#4E4E4E, #292929); /* IE10 */
-  background-image:      -o-linear-gradient(#4E4E4E, #292929); /* Opera 11.10+ */
-  background-image:         linear-gradient(#4E4E4E, #292929);
-}
-.ui-btn-down-b a.ui-link-inherit {
-  color:                  #fff; 
-}
-.ui-btn-up-b, 
-.ui-btn-hover-b, 
-.ui-btn-down-b {
-  text-shadow: 0 -1px 0px #111;
-  cursor: pointer;
-  font-weight: bold;
-  text-decoration: none;
-  font-family: Helvetica, Arial, sans-serif; 
-}
-.ui-bar-b, 
-.ui-bar-b input, 
-.ui-bar-b select, 
-.ui-bar-b textarea, 
-.ui-bar-b button { 
-  font-family: Helvetica, Arial, sans-serif; 
-}
-.ui-bar-b .ui-link-inherit {
-  color:                  #fff;
-}
-.ui-bar-b .ui-link {
-  color:                  #7cc4e7; 
-  font-weight: bold;
-}
-.ui-body-b,
-.ui-dialog.ui-overlay-b {
-  font-weight: normal;
-  border: 1px solid       #999;
-  background-color:             #e5e5e5;
-  color:                  #666;
-  text-shadow: 0 1px 0px  #fff;
-  background-image: url(images/texture_075.png);
-}
-.ui-body-b, 
-.ui-body-b input, 
-.ui-body-b select, 
-.ui-body-b textarea, 
-.ui-body-b button { 
-  font-family: Helvetica, Arial, sans-serif; 
-}
-.ui-body-b .ui-link-inherit { 
-  color:                  #333333;
-}
-.ui-body-b .ui-link {
-  font-weight: bold;
-  color:                  #e98a15;
-}
-/*####################################################################################################################################
-
-  C Styles
-
-####################################################################################################################################*/
-
-.ui-bar-c {
-  font-weight: bold;
-  border: 1px solid       #ccc; 
-  background:             #e5e5e5; 
-  color:                  #111; 
-  text-shadow: 0 1px 0px  #fff;
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#e5e5e5)); /* Saf4+, Chrome */
-  background-image: -webkit-linear-gradient(#eee, #e5e5e5); /* Chrome 10+, Saf5.1+ */
-  background-image:    -moz-linear-gradient(#eee, #e5e5e5); /* FF3.6 */
-  background-image:     -ms-linear-gradient(#eee, #e5e5e5); /* IE10 */
-  background-image:      -o-linear-gradient(#eee, #e5e5e5); /* Opera 11.10+ */
-  background-image:         linear-gradient(#eee, #e5e5e5);
-}
-.ui-bar-c, 
-.ui-bar-c input, 
-.ui-bar-c select, 
-.ui-bar-c textarea, 
-.ui-bar-c button { 
-  font-family: Helvetica, Arial, sans-serif;
-}
-.ui-btn-up-c,
-.ui-btn-hover-c,
-.ui-btn-down-c {
-  font-family: Helvetica, Arial, sans-serif;
-  cursor: pointer;
-  font-weight: bold;
-  text-decoration: none;
-  text-shadow: 0 1px 0px  #fff;
-}
-.ui-btn-up-c {
-  border: 1px solid       #ccc;
-  background:             #e5e5e5;
-  color:                  #444;
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#e5e5e5)); /* Saf4+, Chrome */
-  background-image: -webkit-linear-gradient(#eee, #e5e5e5); /* Chrome 10+, Saf5.1+ */
-  background-image:    -moz-linear-gradient(#eee, #e5e5e5); /* FF3.6 */
-  background-image:     -ms-linear-gradient(#eee, #e5e5e5); /* IE10 */
-  background-image:      -o-linear-gradient(#eee, #e5e5e5); /* Opera 11.10+ */
-  background-image:         linear-gradient(#eee, #e5e5e5);
-}
-.ui-btn-up-c a.ui-link-inherit {
-  color:                  #444;
-}
-.ui-btn-hover-c {
-  border: 1px solid       #ccc;
-  background:             #f5f5f5;
-  color:                  #222;
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f5f5f5)); /* Saf4+, Chrome */
-  background-image: -webkit-linear-gradient(#fff, #f5f5f5); /* Chrome 10+, Saf5.1+ */
-  background-image:    -moz-linear-gradient(#fff, #f5f5f5); /* FF3.6 */
-  background-image:     -ms-linear-gradient(#fff, #f5f5f5); /* IE10 */
-  background-image:      -o-linear-gradient(#fff, #f5f5f5); /* Opera 11.10+ */
-  background-image:         linear-gradient(#fff, #f5f5f5);
-}
-.ui-btn-hover-c a.ui-link-inherit { 
-  color:                  #222;
-}
-.ui-btn-down-c {
-  border: 1px solid       #ccc;
-  background:             #d5d5d5;
-  color:                  #111;
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#ddd), to(#d5d5d5)); /* Saf4+, Chrome */
-  background-image: -webkit-linear-gradient(#ddd, #d5d5d5); /* Chrome 10+, Saf5.1+ */
-  background-image:    -moz-linear-gradient(#ddd, #d5d5d5); /* FF3.6 */
-  background-image:     -ms-linear-gradient(#ddd, #d5d5d5); /* IE10 */
-  background-image:      -o-linear-gradient(#ddd, #d5d5d5); /* Opera 11.10+ */
-  background-image:         linear-gradient(#ddd, #d5d5d5);
-}
-.ui-btn-down-c a.ui-link-inherit { 
-  color:                  #111;
-}
-.ui-body-c,
-.ui-dialog.ui-overlay-c {
-  border: 1px solid       #ddd;
-  color:                  #333333;
-  text-shadow: 0 1px 0px  #fff;
-  background:             #fff;
-  background-image: url(images/texture_075.png);
-}
-.ui-body-c, 
-.ui-body-c input, 
-.ui-body-c select, 
-.ui-body-c textarea, 
-.ui-body-c button { 
-  font-family: Helvetica, Arial, sans-serif;
-}
-.ui-body-c .ui-link-inherit {
-  color:                  #333333; }
-.ui-body-c .ui-link {
-  font-weight: bold;
-  color:                  #e98a15;
-}
-
-/*####################################################################################################################################
-
-  D
-
-####################################################################################################################################*/
-
-.ui-bar-d {
-  font-weight: bold;
-  border: 1px solid       #ccc; 
-  background:             #cbcbcb;
-  color:                  #666; 
-  text-shadow: 0 1px 0px  #fff;
-  background-image: -webkit-gradient(linear, center top, center bottom, from(#ddd), color-stop(5%, #ccc), color-stop(15%, #bbb), color-stop(95%, #ddd), to(#ccc)); /* Saf4+, Chrome */
-  background-image: -webkit-linear-gradient(#ddd 0%, #ccc 5%, #bbb 15%, #ddd 95%, #ccc 100%); /* Chrome 10+, Saf5.1+ */
-  background-image:    -moz-linear-gradient(#ddd 0%, #ccc 5%, #bbb 15%, #ddd 95%, #ccc 100%); /* FF3.6 */
-  background-image:     -ms-linear-gradient(#ddd 0%, #ccc 5%, #bbb 15%, #ddd 95%, #ccc 100%); /* IE10 */
-  background-image:      -o-linear-gradient(#ddd 0%, #ccc 5%, #bbb 15%, #ddd 95%, #ccc 100%); /* Opera 11.10+ */
-  background-image:         linear-gradient(#ddd 0%, #ccc 5%, #bbb 15%, #ddd 95%, #ccc 100%);
-}
-.ui-bar-d, 
-.ui-bar-d input, 
-.ui-bar-d select, 
-.ui-bar-d textarea, 
-.ui-bar-d button { 
-  font-family: Helvetica, Arial, sans-serif; 
-}
-.ui-bar-d .ui-link-inherit { 
-  color:                  #333;
-}
-.ui-bar-d .ui-link {
-  font-weight: bold;
-  color:                  #2489CE;
-}
-
-.ui-btn-up-d {
-  border: 1px solid       #c5c5c5;
-  background:             #ddd;
-  color:                  #666;
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#d5d5d5), to(#ddd)); /* Saf4+, Chrome */
-  background-image: -webkit-linear-gradient(#d5d5d5, #ddd); /* Chrome 10+, Saf5.1+ */
-  background-image:    -moz-linear-gradient(#d5d5d5, #ddd); /* FF3.6 */
-  background-image:     -ms-linear-gradient(#d5d5d5, #ddd); /* IE10 */
-  background-image:      -o-linear-gradient(#d5d5d5, #ddd); /* Opera 11.10+ */
-  background-image:         linear-gradient(#d5d5d5, #ddd);
-}
-.ui-btn-up-d a.ui-link-inherit {
-  color:                  #666;
-}
-.ui-btn-hover-d {
-  border: 1px solid       #aaa;
-  background:             #c5c5c5;
-  color:                  #666;
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#c5c5c5), to(#ccc)); /* Saf4+, Chrome */
-  background-image: -webkit-linear-gradient(#c5c5c5, #ccc); /* Chrome 10+, Saf5.1+ */
-  background-image:    -moz-linear-gradient(#c5c5c5, #ccc); /* FF3.6 */
-  background-image:     -ms-linear-gradient(#c5c5c5, #ccc); /* IE10 */
-  background-image:      -o-linear-gradient(#c5c5c5, #ccc); /* Opera 11.10+ */
-  background-image:         linear-gradient(#c5c5c5, #ccc);
-}
-.ui-btn-hover-d a.ui-link-inherit {
-  color:                  #666;
-}
-.ui-btn-down-d {
-  border: 1px solid       #999;
-  background:             #b5b5b5;
-  color:                  #444;
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#b5b5b5), to(#bbb)); /* Saf4+, Chrome */
-  background-image: -webkit-linear-gradient(#b5b5b5, #bbb); /* Chrome 10+, Saf5.1+ */
-  background-image:    -moz-linear-gradient(#b5b5b5, #bbb); /* FF3.6 */
-  background-image:     -ms-linear-gradient(#b5b5b5, #bbb); /* IE10 */
-  background-image:      -o-linear-gradient(#b5b5b5, #bbb); /* Opera 11.10+ */
-  background-image:         linear-gradient(#b5b5b5, #bbb);
-}
-.ui-btn-up-d a.ui-link {
-  color:                  #444;
-}
-.ui-btn-up-d,
-.ui-btn-hover-d,
-.ui-btn-down-d {
-  font-family: Helvetica, Arial, sans-serif;
-  cursor: pointer;
-  font-weight: bold;
-  text-decoration: none;
-  text-shadow: 0 1px 0px  #fff;
-}
-.ui-body-d,
-.ui-body-d input,
-.ui-body-d select, 
-.ui-body-d textarea, 
-.ui-body-d button { 
-  font-family: Helvetica, Arial, sans-serif; 
-}
-.ui-body-d .ui-link-inherit { 
-  color:                  #333333;
-}
-.ui-body-d,
-.ui-dialog.ui-overlay-d {
-  border: 1px solid       #aaa;
-  color:                  #666;
-  text-shadow: 0 1px 0px  #fff;
-  background:             #eee;
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), color-stop(15%, #f5f5f5), to(#eee)); /* Saf4+, Chrome */
-  background-image: -webkit-linear-gradient(#fff 0%, #f5f5f5 15%, #eee 100%); /* Chrome 10+, Saf5.1+ */
-  background-image:    -moz-linear-gradient(#fff 0%, #f5f5f5 15%, #eee 100%); /* FF3.6 */
-  background-image:     -ms-linear-gradient(#fff 0%, #f5f5f5 15%, #eee 100%); /* IE10 */
-  background-image:      -o-linear-gradient(#fff 0%, #f5f5f5 15%, #eee 100%); /* Opera 11.10+ */
-  background-image:         linear-gradient(#fff 0%, #f5f5f5 15%, #eee 100%);
-}
-.ui-body-d .ui-link {
-  font-weight: bold;
-  color:                  #e98a15;
-}
-
-.ui-body-c .ui-link-inherit {
-  color:                  #333333; }
-.ui-body-c .ui-link {
-  font-weight: bold;
-  color:                  #e98a15;
-}
-
-
-/*####################################################################################################################################
-
-  E
-
-####################################################################################################################################*/
-
-.ui-bar-e {
-  font-weight: bold;
-  border: 1px solid       #999;
-  background:             #dedede;
-  color:                  #000;
-  text-shadow: 0 1px 0px  #fff;
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), color-stop(50%, #ccc), color-stop(50%, #b5b5b5), to(#eee)); /* Saf4+, Chrome */
-  background-image: -webkit-linear-gradient(#fff 0%, #ccc 50%, #b5b5b5 50%, #eee 100%); /* Chrome 10+, Saf5.1+ */
-  background-image:    -moz-linear-gradient(#fff 0%, #ccc 50%, #b5b5b5 50%, #eee 100%); /* FF3.6 */
-  background-image:     -ms-linear-gradient(#fff 0%, #ccc 50%, #b5b5b5 50%, #eee 100%); /* IE10 */
-  background-image:      -o-linear-gradient(#fff 0%, #ccc 50%, #b5b5b5 50%, #eee 100%); /* Opera 11.10+ */
-  background-image:         linear-gradient(#fff 0%, #ccc 50%, #b5b5b5 50%, #eee 100%);
-}
-.ui-bar-e,
-.ui-bar-e input, 
-.ui-bar-e select, 
-.ui-bar-e textarea, 
-.ui-bar-d button { 
-  font-family: Helvetica, Arial, sans-serif; 
-}
-.ui-bar-e .ui-link-inherit { 
-  color:                  #333; 
-}
-.ui-bar-e .ui-link { 
-  color:                  #2489CE; 
-  font-weight: bold; 
-}
-.ui-btn-up-e {
-  border: 1px solid       #999;
-  background:             #dfdfdf;
-  color:                  #333;
-  text-shadow: 0 1px 0px  #fff;
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), color-stop(50%, #ccc), color-stop(50%, #b5b5b5), to(#f5f5f5)); /* Saf4+, Chrome */
-  background-image: -webkit-linear-gradient(#f5f5f5 0%, #ccc 50%, #b5b5b5 50%, #f5f5f5 100%); /* Chrome 10+, Saf5.1+ */
-  background-image:    -moz-linear-gradient(#f5f5f5 0%, #ccc 50%, #b5b5b5 50%, #f5f5f5 100%); /* FF3.6 */
-  background-image:     -ms-linear-gradient(#f5f5f5 0%, #ccc 50%, #b5b5b5 50%, #f5f5f5 100%); /* IE10 */
-  background-image:      -o-linear-gradient(#f5f5f5 0%, #ccc 50%, #b5b5b5 50%, #f5f5f5 100%); /* Opera 11.10+ */
-  background-image:         linear-gradient(#f5f5f5 0%, #ccc 50%, #b5b5b5 50%, #f5f5f5 100%);
-}
-.ui-btn-up-e a.ui-link-inherit {
-  color:                  #333;
-}
-.ui-btn-hover-e { 
-  border: 1px solid       #777;
-  background:             #e5e5e5;
-  color:                  #333;
-  text-shadow: 0 1px 0px  #fff;
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), color-stop(50%, #ddd), color-stop(50%, #ccc), to(#fff)); /* Saf4+, Chrome */
-  background-image: -webkit-linear-gradient(#fff 0%, #ddd 50%, #ccc 50%, #fff 100%); /* Chrome 10+, Saf5.1+ */
-  background-image:    -moz-linear-gradient(#fff 0%, #ddd 50%, #ccc 50%, #fff 100%); /* FF3.6 */
-  background-image:     -ms-linear-gradient(#fff 0%, #ddd 50%, #ccc 50%, #fff 100%); /* IE10 */
-  background-image:      -o-linear-gradient(#fff 0%, #ddd 50%, #ccc 50%, #fff 100%); /* Opera 11.10+ */
-  background-image:         linear-gradient(#fff 0%, #ddd 50%, #ccc 50%, #fff 100%);
-}
-.ui-btn-hover-e a.ui-link-inherit {
-  color:                  #333;
-}
-.ui-btn-down-e { 
-  border: 1px solid       #888;
-  background:             #ccc;
-  color:                  #333;
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#ddd), color-stop(50%, #ccc), color-stop(50%, #bbb), to(#ddd)); /* Saf4+, Chrome */
-  background-image: -webkit-linear-gradient(#ddd 0%, #ccc 50%, #bbb 50%, #ddd 100%); /* Chrome 10+, Saf5.1+ */
-  background-image:    -moz-linear-gradient(#ddd 0%, #ccc 50%, #bbb 50%, #ddd 100%); /* FF3.6 */
-  background-image:     -ms-linear-gradient(#ddd 0%, #ccc 50%, #bbb 50%, #ddd 100%); /* IE10 */
-  background-image:      -o-linear-gradient(#ddd 0%, #ccc 50%, #bbb 50%, #ddd 100%); /* Opera 11.10+ */
-  background-image:         linear-gradient(#ddd 0%, #ccc 50%, #bbb 50%, #ddd 100%);
-}
-.ui-btn-down-e a.ui-link-inherit {
-  color:                  #333;
-}
-.ui-btn-up-e, 
-.ui-btn-hover-e, 
-.ui-btn-down-e { 
-  font-family: Helvetica, Arial, sans-serif;
-  cursor: pointer;
-  font-weight: bold;
-  text-decoration: none;
-  text-shadow: 0 1px 0px  #fff;
-}
-.ui-body-e,
-.ui-dialog.ui-overlay-e {
-  font-weight: normal;
-  border: 1px solid       #aaa;
-  background:             #ccc;
-  color:                  #111;
-  text-shadow: 0 1px 0px  #fff;
-  background-image: url(images/texture_075.png);
-}
-.ui-body-e, 
-.ui-body-e input, 
-.ui-body-e select, 
-.ui-body-e textarea, 
-.ui-body-e button { 
-  font-family: Helvetica, Arial, sans-serif; 
-}
-.ui-body-e .ui-link-inherit {
-  color:                  #333333;
-}
-.ui-body-e .ui-link { 
-  font-weight: bold;
-  color:                  #e98a15;
-}
-
-/*####################################################################################################################################
-
-  Everything Else
-
-####################################################################################################################################*/
-
-
-a.ui-link-inherit { 
-  text-decoration: none !important;
-}
-
-/* Active class used as the "on" state across all themes */
-.ui-btn-active {
-  font-weight: bold;
-  cursor: pointer;
-  text-decoration: none;
-  border: 1px solid       #FFBC19;
-  background:             #FFBC19;
-  color:                  #222;
-  text-shadow: 0 1px 0px  #eee;
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#FFDC52), to(#FFBC19)); /* Saf4+, Chrome */
-  background-image: -webkit-linear-gradient(#FFDC52, #FFBC19); /* Chrome 10+, Saf5.1+ */
-  background-image:    -moz-linear-gradient(#FFDC52, #FFBC19); /* FF3.6 */
-  background-image:     -ms-linear-gradient(#FFDC52, #FFBC19); /* IE10 */
-  background-image:      -o-linear-gradient(#FFDC52, #FFBC19); /* Opera 11.10+ */
-  background-image:         linear-gradient(#FFDC52, #FFBC19);
-}
-.ui-btn-active a.ui-link-inherit {
-  color:                  #333;
-}
-
-/* button Inner Highlight */
-.ui-btn-inner { 
-  border-top: 1px solid   #fff;
-  border-color:           rgba(255,255,255,.25);
-}
-
-/* Container Corner radius */
-.ui-corner-tl { 
-  -moz-border-radius-topleft:         .6em;
-  -webkit-border-top-left-radius:     .6em; 
-  border-top-left-radius:             .6em;
-}
-.ui-corner-tr { 
-  -moz-border-radius-topright:        .6em; 
-  -webkit-border-top-right-radius:    .6em; 
-  border-top-right-radius:            .6em;
-}
-.ui-corner-bl { 
-  -moz-border-radius-bottomleft:      .6em;
-  -webkit-border-bottom-left-radius:  .6em;
-  border-bottom-left-radius:          .6em;
-}
-.ui-corner-br { 
-  -moz-border-radius-bottomright:     .6em;
-  -webkit-border-bottom-right-radius: .6em;
-  border-bottom-right-radius:         .6em;
-}
-.ui-corner-top {
-  -moz-border-radius-topleft:         .6em;
-  -webkit-border-top-left-radius:     .6em;
-  border-top-left-radius:             .6em;
-  -moz-border-radius-topright:        .6em;
-  -webkit-border-top-right-radius:    .6em;
-  border-top-right-radius:            .6em;
-}
-.ui-corner-bottom { 
-  -moz-border-radius-bottomleft:      .6em;
-  -webkit-border-bottom-left-radius:  .6em;
-  border-bottom-left-radius:          .6em;
-  -moz-border-radius-bottomright:     .6em;
-  -webkit-border-bottom-right-radius: .6em;
-  border-bottom-right-radius:         .6em;
-}
-.ui-corner-right {
-  -moz-border-radius-topright:        .6em;
-  -webkit-border-top-right-radius:    .6em;
-  border-top-right-radius:            .6em;
-  -moz-border-radius-bottomright:     .6em;
-  -webkit-border-bottom-right-radius: .6em;
-  border-bottom-right-radius:         .6em;
-}
-.ui-corner-left {
-  -moz-border-radius-topleft:         .6em;
-  -webkit-border-top-left-radius:     .6em;
-  border-top-left-radius:             .6em; 
-  -moz-border-radius-bottomleft:      .6em;
-  -webkit-border-bottom-left-radius:  .6em;
-  border-bottom-left-radius:          .6em;
-}
-.ui-corner-all { 
-  -moz-border-radius:                 .6em;
-  -webkit-border-radius:              .6em;
-  border-radius:                      .6em;
-}
-
-/* Interaction Cues
-----------------------------------*/
-.ui-disabled { 
-  opacity: .3;
-}
-.ui-disabled, .ui-disabled a {
-  cursor: default !important;
-}
-
-/* Icons
------------------------------------------------------------------------------------------------------------*/
-
-.ui-icon {
-       background:                                             #666;
-       background:                                             rgba(0,0,0,.4);
-       background-image: url(images/icons-18-white.png);
-       background-repeat: no-repeat;
-       -moz-border-radius:                             9px;
-       -webkit-border-radius:                          9px;
-       border-radius:                                          9px;
-}
-
-
-/* Alt icon color
------------------------------------------------------------------------------------------------------------*/
-
-.ui-icon-alt {
-       background:                                             #fff;
-       background:                                             rgba(255,255,255,.3);
-       background-image: url(images/icons-18-black.png);
-       background-repeat: no-repeat;
-}
-
-/* HD/"retina" sprite
------------------------------------------------------------------------------------------------------------*/
-
-@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
-       only screen and (min--moz-device-pixel-ratio: 1.5),
-       only screen and (min-resolution: 240dpi) {
-       
-       .ui-icon-plus, .ui-icon-minus, .ui-icon-delete, .ui-icon-arrow-r,
-       .ui-icon-arrow-l, .ui-icon-arrow-u, .ui-icon-arrow-d, .ui-icon-check,
-       .ui-icon-gear, .ui-icon-refresh, .ui-icon-forward, .ui-icon-back,
-       .ui-icon-grid, .ui-icon-star, .ui-icon-alert, .ui-icon-info, .ui-icon-home, .ui-icon-search, 
-       .ui-icon-checkbox-off, .ui-icon-checkbox-on, .ui-icon-radio-off, .ui-icon-radio-on {
-               background-image: url(images/icons-36-white.png);
-               -moz-background-size: 776px 18px;
-               -o-background-size: 776px 18px;
-               -webkit-background-size: 776px 18px;
-               background-size: 776px 18px;
-       }
-       .ui-icon-alt {
-               background-image: url(images/icons-36-black.png);
-       }
-}
-
-/* plus minus */
-.ui-icon-plus {
-       background-position:    -0 50%;
-}
-.ui-icon-minus {
-       background-position:    -36px 50%;
-}
-
-/* delete/close */
-.ui-icon-delete {
-       background-position:    -72px 50%;
-}
-
-/* arrows */
-.ui-icon-arrow-r {
-       background-position:    -108px 50%;
-}
-.ui-icon-arrow-l {
-       background-position:    -144px 50%;
-}
-.ui-icon-arrow-u {
-       background-position:    -180px 50%;
-}
-.ui-icon-arrow-d {
-       background-position:    -216px 50%;
-}
-
-/* misc */
-.ui-icon-check {
-       background-position:    -252px 50%;
-}
-.ui-icon-gear {
-       background-position:    -288px 50%;
-}
-.ui-icon-refresh {
-       background-position:    -324px 50%;
-}
-.ui-icon-forward {
-       background-position:    -360px 50%;
-}
-.ui-icon-back {
-       background-position:    -396px 50%;
-}
-.ui-icon-grid {
-       background-position:    -432px 50%;
-}
-.ui-icon-star {
-       background-position:    -468px 50%;
-}
-.ui-icon-alert {
-       background-position:    -504px 50%;
-}
-.ui-icon-info {
-       background-position:    -540px 50%;
-}
-.ui-icon-home {
-       background-position:    -576px 50%;
-}
-.ui-icon-search {
-       background-position:    -612px 50%;
-}
-.ui-icon-checkbox-off {
-       background-position:    -684px 50%;
-}
-.ui-icon-checkbox-on {
-       background-position:    -648px 50%;
-}
-.ui-icon-radio-off {
-       background-position:    -756px 50%;
-}
-.ui-icon-radio-on {
-       background-position:    -720px 50%;
-}
-
-
-/* checks,radios */
-.ui-checkbox .ui-icon {
-       -moz-border-radius: 3px;
-       -webkit-border-radius: 3px;
-       border-radius: 3px;
-}
-.ui-icon-checkbox-off,
-.ui-icon-radio-off {
-       background-color: transparent;  
-}
-.ui-checkbox-on .ui-icon,
-.ui-radio-on .ui-icon {
-       background-color: #FFBC19; /* NOTE: this hex should match the active state color. It's repeated here for cascade */
-}
-.ui-icon-searchfield {
-       background-image: url(images/icon-search-black.png);
-       background-size: 16px 16px;
-}
-
-/* loading icon */
-.ui-icon-loading {
-       background-image: url(images/ajax-loader.png);
-       width: 40px;
-       height: 40px;
-       -moz-border-radius: 20px;
-       -webkit-border-radius: 20px;
-       border-radius: 20px;
-       background-size: 35px 35px;
-}
-
-
-/* Button corner classes
------------------------------------------------------------------------------------------------------------*/
-
-.ui-btn-corner-tl { 
-  -moz-border-radius-topleft:         1em;
-  -webkit-border-top-left-radius:     1em;
-  border-top-left-radius:             1em;
-}
-.ui-btn-corner-tr { 
-  -moz-border-radius-topright:        1em; 
-  -webkit-border-top-right-radius:    1em; 
-  border-top-right-radius:            1em;
-}
-.ui-btn-corner-bl { 
-  -moz-border-radius-bottomleft:      1em; 
-  -webkit-border-bottom-left-radius:  1em; 
-  border-bottom-left-radius:          1em; 
-}
-.ui-btn-corner-br { 
-  -moz-border-radius-bottomright:     1em; 
-  -webkit-border-bottom-right-radius: 1em; 
-  border-bottom-right-radius:         1em; 
-}
-.ui-btn-corner-top { 
-  -moz-border-radius-topleft:         1em; 
-  -webkit-border-top-left-radius:     1em; 
-  border-top-left-radius:             1em; 
-  -moz-border-radius-topright:        1em; 
-  -webkit-border-top-right-radius:    1em; 
-  border-top-right-radius:            1em; 
-}
-.ui-btn-corner-bottom { 
-  -moz-border-radius-bottomleft:      1em; 
-  -webkit-border-bottom-left-radius:  1em; 
-  border-bottom-left-radius:          1em; 
-  -moz-border-radius-bottomright:     1em; 
-  -webkit-border-bottom-right-radius: 1em; 
-  border-bottom-right-radius:         1em; 
-}
-.ui-btn-corner-right {  
-  -moz-border-radius-topright:        1em; 
-  -webkit-border-top-right-radius:    1em; 
-  border-top-right-radius:            1em; 
-  -moz-border-radius-bottomright:     1em; 
-  -webkit-border-bottom-right-radius: 1em; 
-  border-bottom-right-radius:         1em; 
-}
-.ui-btn-corner-left { 
-  -moz-border-radius-topleft:         1em; 
-  -webkit-border-top-left-radius:     1em; 
-  border-top-left-radius:             1em; 
-  -moz-border-radius-bottomleft:      1em; 
-  -webkit-border-bottom-left-radius:  1em; 
-  border-bottom-left-radius:          1em; 
-}
-.ui-btn-corner-all { 
-  -moz-border-radius:                 .4em; 
-  -webkit-border-radius:              .4em; 
-  border-radius:                      .4em; 
-}
-
-.ui-corner-tl, .ui-corner-tr, .ui-corner-bl, 
-.ui-corner-br, .ui-corner-top, .ui-corner-bottom, 
-.ui-corner-right, .ui-corner-left, .ui-corner-all,
-.ui-btn-corner-tl, .ui-btn-corner-tr, .ui-btn-corner-bl, 
-.ui-btn-corner-br, .ui-btn-corner-top, .ui-btn-corner-bottom, 
-.ui-btn-corner-right, .ui-btn-corner-left, .ui-btn-corner-all {
-  -webkit-background-clip: padding-box;
-     -moz-background-clip: padding;
-          background-clip: padding-box;
-
-}
-
-/* Form field separator */
-.ui-br {
-       border-bottom: rgb(130,130,130);
-       border-bottom: rgba(130,130,130,.3);
-       border-bottom-width: 1px;
-       border-bottom-style: solid;
-}
-
-/* Overlays */
-.ui-overlay { 
-  position:   absolute; 
-  opacity:    .5; 
-  filter:     Alpha(Opacity=50); 
-  width:      100%; 
-  height:     100%;
-  background: #666;
-}
-.ui-overlay-shadow {  
-  -moz-box-shadow:    0px 0px 12px rgba(0,0,0,.6); 
-  -webkit-box-shadow: 0px 0px 12px rgba(0,0,0,.6); 
-  box-shadow:         0px 0px 12px rgba(0,0,0,.6);
-}
-.ui-shadow { 
-  -moz-box-shadow:    0px 1px 4px rgba(0,0,0,.3); 
-  -webkit-box-shadow: 0px 1px 4px rgba(0,0,0,.3);
-  box-shadow:         0px 1px 4px rgba(0,0,0,.3); 
-}
-.ui-bar-a .ui-shadow, 
-.ui-bar-b .ui-shadow , 
-.ui-bar-c .ui-shadow  { 
-  -moz-box-shadow:    0px 1px 0 rgba(255,255,255,.3); 
-  -webkit-box-shadow: 0px 1px 0 rgba(255,255,255,.3); 
-  box-shadow:         0px 1px 0 rgba(255,255,255,.3); 
-}
-.ui-shadow-inset { 
-  -moz-box-shadow:    inset 0px 1px 4px rgba(0,0,0,.2); 
-  -webkit-box-shadow: inset 0px 1px 4px rgba(0,0,0,.2); 
-  box-shadow:         inset 0px 1px 4px rgba(0,0,0,.2);
-}
-.ui-icon-shadow { 
-  -moz-box-shadow:    0px 1px 0 rgba(255,255,255,.4);
-  -webkit-box-shadow: 0px 1px 0 rgba(255,255,255,.4);
-  box-shadow:         0px 1px 0 rgba(255,255,255,.4);
-}
-
-/* set focus state last */
-.ui-focus {
-  -moz-box-shadow:    0px 0px 12px #FFBC19;
-  -webkit-box-shadow: 0px 0px 12px #FFBC19;
-  box-shadow:         0px 0px 12px #FFBC19;
-}
-
-/*####################################################################################################################################
-
-  CUSTOM ADDITIONS
-
-####################################################################################################################################*/
-
-
-/* Make inline buttons more rounded */
-.ui-slider.ui-btn-corner-all .ui-slider-handle.ui-btn-corner-all,
-.ui-slider.ui-btn-corner-all .ui-slider-handle.ui-btn-corner-all .ui-btn-inner,
-.ui-slider.ui-btn-corner-all{ 
-  -moz-border-radius:     1em; 
-  -webkit-border-radius:  1em; 
-  border-radius:          1em;
-}
-a.ui-btn.ui-btn-inline.ui-btn-corner-all,
-a.ui-btn.ui-btn-inline.ui-btn-corner-all .ui-btn-inner{
-  -moz-border-radius:     2em;
-  -webkit-border-radius:  2em;
-  border-radius:          2em;
-}
-
-/* Give the search input a stronger border */
-.ui-input-search{
-  border: 1px solid #999;
-}
-
-/* Adjustment for indicator icons inside split list & Search Input - Well I hope so :) */
-.ui-input-search .ui-btn-icon-notext,
-.ui-btn-inner .ui-btn-icon-notext{
-  -moz-border-radius:     1em;
-  -webkit-border-radius:  1em;
-  border-radius:          1em;
-}
-.ui-dialog a.ui-btn-icon-notext.ui-btn-corner-all,
-.ui-dialog a.ui-btn-icon-notext.ui-btn-corner-all .ui-btn-inner.ui-btn-corner-all{
-  -moz-border-radius:     1em; 
-  -webkit-border-radius:  1em; 
-  border-radius:          1em;
-}
-/* inner highlight is janky! */
-.ui-dialog a.ui-btn-icon-notext.ui-btn-corner-all .ui-btn-inner.ui-btn-corner-all{
-  border-top-color: transparent; 
-}
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/external/qunit.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/external/qunit.css
deleted file mode 100644 (file)
index 72e890a..0000000
+++ /dev/null
@@ -1,231 +0,0 @@
-/**
- * QUnit - A JavaScript Unit Testing Framework
- *
- * http://docs.jquery.com/QUnit
- *
- * Copyright (c) 2011 John Resig, Jörn Zaefferer
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * or GPL (GPL-LICENSE.txt) licenses.
- */
-
-/** Font Family and Sizes */
-
-#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult {
-       font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
-}
-
-#qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
-#qunit-tests { font-size: smaller; }
-
-
-/** Resets */
-
-#qunit-tests, #qunit-tests ol, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult {
-       margin: 0;
-       padding: 0;
-}
-
-
-/** Header */
-
-#qunit-header {
-       padding: 0.5em 0 0.5em 1em;
-
-       color: #8699a4;
-       background-color: #0d3349;
-
-       font-size: 1.5em;
-       line-height: 1em;
-       font-weight: normal;
-
-       border-radius: 15px 15px 0 0;
-       -moz-border-radius: 15px 15px 0 0;
-       -webkit-border-top-right-radius: 15px;
-       -webkit-border-top-left-radius: 15px;
-}
-
-#qunit-header a {
-       text-decoration: none;
-       color: #c2ccd1;
-}
-
-#qunit-header a:hover,
-#qunit-header a:focus {
-       color: #fff;
-}
-
-#qunit-banner {
-       height: 5px;
-}
-
-#qunit-testrunner-toolbar {
-       padding: 0.5em 0 0.5em 2em;
-       color: #5E740B;
-       background-color: #eee;
-}
-
-#qunit-userAgent {
-       padding: 0.5em 0 0.5em 2.5em;
-       background-color: #2b81af;
-       color: #fff;
-       text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
-}
-
-
-/** Tests: Pass/Fail */
-
-#qunit-tests {
-       list-style-position: inside;
-}
-
-#qunit-tests li {
-       padding: 0.4em 0.5em 0.4em 2.5em;
-       border-bottom: 1px solid #fff;
-       list-style-position: inside;
-}
-
-#qunit-tests.hidepass li.pass, #qunit-tests.hidepass li.running  {
-       display: none;
-}
-
-#qunit-tests li strong {
-       cursor: pointer;
-}
-
-#qunit-tests li a {
-       padding: 0.5em;
-       color: #c2ccd1;
-       text-decoration: none;
-}
-#qunit-tests li a:hover,
-#qunit-tests li a:focus {
-       color: #000;
-}
-
-#qunit-tests ol {
-       margin-top: 0.5em;
-       padding: 0.5em;
-
-       background-color: #fff;
-
-       border-radius: 15px;
-       -moz-border-radius: 15px;
-       -webkit-border-radius: 15px;
-
-       box-shadow: inset 0px 2px 13px #999;
-       -moz-box-shadow: inset 0px 2px 13px #999;
-       -webkit-box-shadow: inset 0px 2px 13px #999;
-}
-
-#qunit-tests table {
-       border-collapse: collapse;
-       margin-top: .2em;
-}
-
-#qunit-tests th {
-       text-align: right;
-       vertical-align: top;
-       padding: 0 .5em 0 0;
-}
-
-#qunit-tests td {
-       vertical-align: top;
-}
-
-#qunit-tests pre {
-       margin: 0;
-       white-space: pre-wrap;
-       word-wrap: break-word;
-}
-
-#qunit-tests del {
-       background-color: #e0f2be;
-       color: #374e0c;
-       text-decoration: none;
-}
-
-#qunit-tests ins {
-       background-color: #ffcaca;
-       color: #500;
-       text-decoration: none;
-}
-
-/*** Test Counts */
-
-#qunit-tests b.counts                       { color: black; }
-#qunit-tests b.passed                       { color: #5E740B; }
-#qunit-tests b.failed                       { color: #710909; }
-
-#qunit-tests li li {
-       margin: 0.5em;
-       padding: 0.4em 0.5em 0.4em 0.5em;
-       background-color: #fff;
-       border-bottom: none;
-       list-style-position: inside;
-}
-
-/*** Passing Styles */
-
-#qunit-tests li li.pass {
-       color: #5E740B;
-       background-color: #fff;
-       border-left: 26px solid #C6E746;
-}
-
-#qunit-tests .pass                          { color: #528CE0; background-color: #D2E0E6; }
-#qunit-tests .pass .test-name               { color: #366097; }
-
-#qunit-tests .pass .test-actual,
-#qunit-tests .pass .test-expected           { color: #999999; }
-
-#qunit-banner.qunit-pass                    { background-color: #C6E746; }
-
-/*** Failing Styles */
-
-#qunit-tests li li.fail {
-       color: #710909;
-       background-color: #fff;
-       border-left: 26px solid #EE5757;
-       white-space: pre;
-}
-
-#qunit-tests > li:last-child {
-       border-radius: 0 0 15px 15px;
-       -moz-border-radius: 0 0 15px 15px;
-       -webkit-border-bottom-right-radius: 15px;
-       -webkit-border-bottom-left-radius: 15px;
-}
-
-#qunit-tests .fail                          { color: #000000; background-color: #EE5757; }
-#qunit-tests .fail .test-name,
-#qunit-tests .fail .module-name             { color: #000000; }
-
-#qunit-tests .fail .test-actual             { color: #EE5757; }
-#qunit-tests .fail .test-expected           { color: green;   }
-
-#qunit-banner.qunit-fail                    { background-color: #EE5757; }
-
-
-/** Result */
-
-#qunit-testresult {
-       padding: 0.5em 0.5em 0.5em 2.5em;
-
-       color: #2b81af;
-       background-color: #D2E0E6;
-
-       border-bottom: 1px solid white;
-}
-
-/** Fixture */
-
-#qunit-fixture {
-       position: absolute;
-       top: -10000px;
-       left: -10000px;
-}
-
-[data-role='page'], [data-role='dialog'] {
-  position: absolute !important;
-  top: -10000px !important;
-}
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/external/qunit.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/external/qunit.js
deleted file mode 100644 (file)
index 193d52d..0000000
+++ /dev/null
@@ -1,1552 +0,0 @@
-/**
- * QUnit - A JavaScript Unit Testing Framework
- *
- * http://docs.jquery.com/QUnit
- *
- * Copyright (c) 2011 John Resig, Jörn Zaefferer
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * or GPL (GPL-LICENSE.txt) licenses.
- */
-
-(function(window) {
-
-var defined = {
-       setTimeout: typeof window.setTimeout !== "undefined",
-       sessionStorage: (function() {
-               try {
-                       return !!sessionStorage.getItem;
-               } catch(e) {
-                       return false;
-               }
-       })()
-};
-
-var testId = 0;
-
-var Test = function(name, testName, expected, testEnvironmentArg, async, callback) {
-       this.name = name;
-       this.testName = testName;
-       this.expected = expected;
-       this.testEnvironmentArg = testEnvironmentArg;
-       this.async = async;
-       this.callback = callback;
-       this.assertions = [];
-};
-Test.prototype = {
-       init: function() {
-               var tests = id("qunit-tests");
-               if (tests) {
-                       var b = document.createElement("strong");
-                               b.innerHTML = "Running " + this.name;
-                       var li = document.createElement("li");
-                               li.appendChild( b );
-                               li.className = "running";
-                               li.id = this.id = "test-output" + testId++;
-                       tests.appendChild( li );
-               }
-       },
-       setup: function() {
-               if (this.module != config.previousModule) {
-                       if ( config.previousModule ) {
-                               runLoggingCallbacks('moduleDone', QUnit, {
-                                       name: config.previousModule,
-                                       failed: config.moduleStats.bad,
-                                       passed: config.moduleStats.all - config.moduleStats.bad,
-                                       total: config.moduleStats.all
-                               } );
-                       }
-                       config.previousModule = this.module;
-                       config.moduleStats = { all: 0, bad: 0 };
-                       runLoggingCallbacks( 'moduleStart', QUnit, {
-                               name: this.module
-                       } );
-               }
-
-               config.current = this;
-               this.testEnvironment = extend({
-                       setup: function() {},
-                       teardown: function() {}
-               }, this.moduleTestEnvironment);
-               if (this.testEnvironmentArg) {
-                       extend(this.testEnvironment, this.testEnvironmentArg);
-               }
-
-               runLoggingCallbacks( 'testStart', QUnit, {
-                       name: this.testName,
-                       module: this.module
-               });
-
-               // allow utility functions to access the current test environment
-               // TODO why??
-               QUnit.current_testEnvironment = this.testEnvironment;
-
-               try {
-                       if ( !config.pollution ) {
-                               saveGlobal();
-                       }
-
-                       this.testEnvironment.setup.call(this.testEnvironment);
-               } catch(e) {
-                       QUnit.ok( false, "Setup failed on " + this.testName + ": " + e.message );
-               }
-       },
-       run: function() {
-               if ( this.async ) {
-                       QUnit.stop();
-               }
-
-               if ( config.notrycatch ) {
-                       this.callback.call(this.testEnvironment);
-                       return;
-               }
-               try {
-                       this.callback.call(this.testEnvironment);
-               } catch(e) {
-                       fail("Test " + this.testName + " died, exception and test follows", e, this.callback);
-                       QUnit.ok( false, "Died on test #" + (this.assertions.length + 1) + ": " + e.message + " - " + QUnit.jsDump.parse(e) );
-                       // else next test will carry the responsibility
-                       saveGlobal();
-
-                       // Restart the tests if they're blocking
-                       if ( config.blocking ) {
-                               start();
-                       }
-               }
-       },
-       teardown: function() {
-               try {
-                       this.testEnvironment.teardown.call(this.testEnvironment);
-                       checkPollution();
-               } catch(e) {
-                       QUnit.ok( false, "Teardown failed on " + this.testName + ": " + e.message );
-               }
-       },
-       finish: function() {
-               if ( this.expected && this.expected != this.assertions.length ) {
-                       QUnit.ok( false, "Expected " + this.expected + " assertions, but " + this.assertions.length + " were run" );
-               }
-
-               var good = 0, bad = 0,
-                       tests = id("qunit-tests");
-
-               config.stats.all += this.assertions.length;
-               config.moduleStats.all += this.assertions.length;
-
-               if ( tests ) {
-                       var ol = document.createElement("ol");
-
-                       for ( var i = 0; i < this.assertions.length; i++ ) {
-                               var assertion = this.assertions[i];
-
-                               var li = document.createElement("li");
-                               li.className = assertion.result ? "pass" : "fail";
-                               li.innerHTML = assertion.message || (assertion.result ? "okay" : "failed");
-                               ol.appendChild( li );
-
-                               if ( assertion.result ) {
-                                       good++;
-                               } else {
-                                       bad++;
-                                       config.stats.bad++;
-                                       config.moduleStats.bad++;
-                               }
-                       }
-
-                       // store result when possible
-                       if ( QUnit.config.reorder && defined.sessionStorage ) {
-                               if (bad) {
-                                       sessionStorage.setItem("qunit-" + this.module + "-" + this.testName, bad);
-                               } else {
-                                       sessionStorage.removeItem("qunit-" + this.module + "-" + this.testName);
-                               }
-                       }
-
-                       if (bad == 0) {
-                               ol.style.display = "none";
-                       }
-
-                       var b = document.createElement("strong");
-                       b.innerHTML = this.name + " <b class='counts'>(<b class='failed'>" + bad + "</b>, <b class='passed'>" + good + "</b>, " + this.assertions.length + ")</b>";
-
-                       var a = document.createElement("a");
-                       a.innerHTML = "Rerun";
-                       a.href = QUnit.url({ filter: getText([b]).replace(/\([^)]+\)$/, "").replace(/(^\s*|\s*$)/g, "") });
-
-                       addEvent(b, "click", function() {
-                               var next = b.nextSibling.nextSibling,
-                                       display = next.style.display;
-                               next.style.display = display === "none" ? "block" : "none";
-                       });
-
-                       addEvent(b, "dblclick", function(e) {
-                               var target = e && e.target ? e.target : window.event.srcElement;
-                               if ( target.nodeName.toLowerCase() == "span" || target.nodeName.toLowerCase() == "b" ) {
-                                       target = target.parentNode;
-                               }
-                               if ( window.location && target.nodeName.toLowerCase() === "strong" ) {
-                                       window.location = QUnit.url({ filter: getText([target]).replace(/\([^)]+\)$/, "").replace(/(^\s*|\s*$)/g, "") });
-                               }
-                       });
-
-                       var li = id(this.id);
-                       li.className = bad ? "fail" : "pass";
-                       li.removeChild( li.firstChild );
-                       li.appendChild( b );
-                       li.appendChild( a );
-                       li.appendChild( ol );
-
-               } else {
-                       for ( var i = 0; i < this.assertions.length; i++ ) {
-                               if ( !this.assertions[i].result ) {
-                                       bad++;
-                                       config.stats.bad++;
-                                       config.moduleStats.bad++;
-                               }
-                       }
-               }
-
-               try {
-                       QUnit.reset();
-               } catch(e) {
-                       fail("reset() failed, following Test " + this.testName + ", exception and reset fn follows", e, QUnit.reset);
-               }
-
-               runLoggingCallbacks( 'testDone', QUnit, {
-                       name: this.testName,
-                       module: this.module,
-                       failed: bad,
-                       passed: this.assertions.length - bad,
-                       total: this.assertions.length
-               } );
-       },
-
-       queue: function() {
-               var test = this;
-               synchronize(function() {
-                       test.init();
-               });
-               function run() {
-                       // each of these can by async
-                       synchronize(function() {
-                               test.setup();
-                       });
-                       synchronize(function() {
-                               test.run();
-                       });
-                       synchronize(function() {
-                               test.teardown();
-                       });
-                       synchronize(function() {
-                               test.finish();
-                       });
-               }
-               // defer when previous test run passed, if storage is available
-               var bad = QUnit.config.reorder && defined.sessionStorage && +sessionStorage.getItem("qunit-" + this.module + "-" + this.testName);
-               if (bad) {
-                       run();
-               } else {
-                       synchronize(run);
-               };
-       }
-
-};
-
-var QUnit = {
-
-       // call on start of module test to prepend name to all tests
-       module: function(name, testEnvironment) {
-               config.currentModule = name;
-               config.currentModuleTestEnviroment = testEnvironment;
-       },
-
-       asyncTest: function(testName, expected, callback) {
-               if ( arguments.length === 2 ) {
-                       callback = expected;
-                       expected = 0;
-               }
-
-               QUnit.test(testName, expected, callback, true);
-       },
-
-       test: function(testName, expected, callback, async) {
-               var name = '<span class="test-name">' + testName + '</span>', testEnvironmentArg;
-
-               if ( arguments.length === 2 ) {
-                       callback = expected;
-                       expected = null;
-               }
-               // is 2nd argument a testEnvironment?
-               if ( expected && typeof expected === 'object') {
-                       testEnvironmentArg = expected;
-                       expected = null;
-               }
-
-               if ( config.currentModule ) {
-                       name = '<span class="module-name">' + config.currentModule + "</span>: " + name;
-               }
-
-               if ( !validTest(config.currentModule + ": " + testName) ) {
-                       return;
-               }
-
-               var test = new Test(name, testName, expected, testEnvironmentArg, async, callback);
-               test.module = config.currentModule;
-               test.moduleTestEnvironment = config.currentModuleTestEnviroment;
-               test.queue();
-       },
-
-       /**
-        * Specify the number of expected assertions to gurantee that failed test (no assertions are run at all) don't slip through.
-        */
-       expect: function(asserts) {
-               config.current.expected = asserts;
-       },
-
-       /**
-        * Asserts true.
-        * @example ok( "asdfasdf".length > 5, "There must be at least 5 chars" );
-        */
-       ok: function(a, msg) {
-               a = !!a;
-               var details = {
-                       result: a,
-                       message: msg
-               };
-               msg = escapeInnerText(msg);
-               runLoggingCallbacks( 'log', QUnit, details );
-               config.current.assertions.push({
-                       result: a,
-                       message: msg
-               });
-       },
-
-       /**
-        * Checks that the first two arguments are equal, with an optional message.
-        * Prints out both actual and expected values.
-        *
-        * Prefered to ok( actual == expected, message )
-        *
-        * @example equal( format("Received {0} bytes.", 2), "Received 2 bytes." );
-        *
-        * @param Object actual
-        * @param Object expected
-        * @param String message (optional)
-        */
-       equal: function(actual, expected, message) {
-               QUnit.push(expected == actual, actual, expected, message);
-       },
-
-       notEqual: function(actual, expected, message) {
-               QUnit.push(expected != actual, actual, expected, message);
-       },
-
-       deepEqual: function(actual, expected, message) {
-               QUnit.push(QUnit.equiv(actual, expected), actual, expected, message);
-       },
-
-       notDeepEqual: function(actual, expected, message) {
-               QUnit.push(!QUnit.equiv(actual, expected), actual, expected, message);
-       },
-
-       strictEqual: function(actual, expected, message) {
-               QUnit.push(expected === actual, actual, expected, message);
-       },
-
-       notStrictEqual: function(actual, expected, message) {
-               QUnit.push(expected !== actual, actual, expected, message);
-       },
-
-       raises: function(block, expected, message) {
-               var actual, ok = false;
-
-               if (typeof expected === 'string') {
-                       message = expected;
-                       expected = null;
-               }
-
-               try {
-                       block();
-               } catch (e) {
-                       actual = e;
-               }
-
-               if (actual) {
-                       // we don't want to validate thrown error
-                       if (!expected) {
-                               ok = true;
-                       // expected is a regexp
-                       } else if (QUnit.objectType(expected) === "regexp") {
-                               ok = expected.test(actual);
-                       // expected is a constructor
-                       } else if (actual instanceof expected) {
-                               ok = true;
-                       // expected is a validation function which returns true is validation passed
-                       } else if (expected.call({}, actual) === true) {
-                               ok = true;
-                       }
-               }
-
-               QUnit.ok(ok, message);
-       },
-
-       start: function(count) {
-               config.semaphore -= count || 1;
-               if (config.semaphore > 0) {
-                       // don't start until equal number of stop-calls
-                       return;
-               }
-               if (config.semaphore < 0) {
-                       // ignore if start is called more often then stop
-                       config.semaphore = 0;
-               }
-               // A slight delay, to avoid any current callbacks
-               if ( defined.setTimeout ) {
-                       window.setTimeout(function() {
-                               if (config.semaphore > 0) {
-                                       return;
-                               }
-                               if ( config.timeout ) {
-                                       clearTimeout(config.timeout);
-                               }
-
-                               config.blocking = false;
-                               process();
-                       }, 13);
-               } else {
-                       config.blocking = false;
-                       process();
-               }
-       },
-
-       stop: function(count) {
-               config.semaphore += count || 1;
-               config.blocking = true;
-
-               if ( config.testTimeout && defined.setTimeout ) {
-                       clearTimeout(config.timeout);
-                       config.timeout = window.setTimeout(function() {
-                               QUnit.ok( false, "Test timed out" );
-                               config.semaphore = 1;
-                               QUnit.start();
-                       }, config.testTimeout);
-               }
-       }
-};
-
-//We want access to the constructor's prototype
-(function() {
-       function F(){};
-       F.prototype = QUnit;
-       QUnit = new F();
-       //Make F QUnit's constructor so that we can add to the prototype later
-       QUnit.constructor = F;
-})();
-
-// Backwards compatibility, deprecated
-QUnit.equals = QUnit.equal;
-QUnit.same = QUnit.deepEqual;
-
-// Maintain internal state
-var config = {
-       // The queue of tests to run
-       queue: [],
-
-       // block until document ready
-       blocking: true,
-
-       // when enabled, show only failing tests
-       // gets persisted through sessionStorage and can be changed in UI via checkbox
-       hidepassed: false,
-
-       // by default, run previously failed tests first
-       // very useful in combination with "Hide passed tests" checked
-       reorder: true,
-
-       // by default, modify document.title when suite is done
-       altertitle: true,
-
-       urlConfig: ['noglobals', 'notrycatch'],
-
-       //logging callback queues
-       begin: [],
-       done: [],
-       log: [],
-       testStart: [],
-       testDone: [],
-       moduleStart: [],
-       moduleDone: []
-};
-
-// Load paramaters
-(function() {
-       var location = window.location || { search: "", protocol: "file:" },
-               params = location.search.slice( 1 ).split( "&" ),
-               length = params.length,
-               urlParams = {},
-               current;
-
-       if ( params[ 0 ] ) {
-               for ( var i = 0; i < length; i++ ) {
-                       current = params[ i ].split( "=" );
-                       current[ 0 ] = decodeURIComponent( current[ 0 ] );
-                       // allow just a key to turn on a flag, e.g., test.html?noglobals
-                       current[ 1 ] = current[ 1 ] ? decodeURIComponent( current[ 1 ] ) : true;
-                       urlParams[ current[ 0 ] ] = current[ 1 ];
-               }
-       }
-
-       QUnit.urlParams = urlParams;
-       config.filter = urlParams.filter;
-
-       // Figure out if we're running the tests from a server or not
-       QUnit.isLocal = !!(location.protocol === 'file:');
-})();
-
-// Expose the API as global variables, unless an 'exports'
-// object exists, in that case we assume we're in CommonJS
-if ( typeof exports === "undefined" || typeof require === "undefined" ) {
-       extend(window, QUnit);
-       window.QUnit = QUnit;
-} else {
-       extend(exports, QUnit);
-       exports.QUnit = QUnit;
-}
-
-// define these after exposing globals to keep them in these QUnit namespace only
-extend(QUnit, {
-       config: config,
-
-       // Initialize the configuration options
-       init: function() {
-               extend(config, {
-                       stats: { all: 0, bad: 0 },
-                       moduleStats: { all: 0, bad: 0 },
-                       started: +new Date,
-                       updateRate: 1000,
-                       blocking: false,
-                       autostart: true,
-                       autorun: false,
-                       filter: "",
-                       queue: [],
-                       semaphore: 0
-               });
-
-               var tests = id( "qunit-tests" ),
-                       banner = id( "qunit-banner" ),
-                       result = id( "qunit-testresult" );
-
-               if ( tests ) {
-                       tests.innerHTML = "";
-               }
-
-               if ( banner ) {
-                       banner.className = "";
-               }
-
-               if ( result ) {
-                       result.parentNode.removeChild( result );
-               }
-
-               if ( tests ) {
-                       result = document.createElement( "p" );
-                       result.id = "qunit-testresult";
-                       result.className = "result";
-                       tests.parentNode.insertBefore( result, tests );
-                       result.innerHTML = 'Running...<br/>&nbsp;';
-               }
-       },
-
-       /**
-        * Resets the test setup. Useful for tests that modify the DOM.
-        *
-        * If jQuery is available, uses jQuery's html(), otherwise just innerHTML.
-        */
-       reset: function() {
-               if ( window.jQuery ) {
-                       jQuery( "#qunit-fixture" ).html( config.fixture );
-               } else {
-                       var main = id( 'qunit-fixture' );
-                       if ( main ) {
-                               main.innerHTML = config.fixture;
-                       }
-               }
-       },
-
-       /**
-        * Trigger an event on an element.
-        *
-        * @example triggerEvent( document.body, "click" );
-        *
-        * @param DOMElement elem
-        * @param String type
-        */
-       triggerEvent: function( elem, type, event ) {
-               if ( document.createEvent ) {
-                       event = document.createEvent("MouseEvents");
-                       event.initMouseEvent(type, true, true, elem.ownerDocument.defaultView,
-                               0, 0, 0, 0, 0, false, false, false, false, 0, null);
-                       elem.dispatchEvent( event );
-
-               } else if ( elem.fireEvent ) {
-                       elem.fireEvent("on"+type);
-               }
-       },
-
-       // Safe object type checking
-       is: function( type, obj ) {
-               return QUnit.objectType( obj ) == type;
-       },
-
-       objectType: function( obj ) {
-               if (typeof obj === "undefined") {
-                               return "undefined";
-
-               // consider: typeof null === object
-               }
-               if (obj === null) {
-                               return "null";
-               }
-
-               var type = Object.prototype.toString.call( obj )
-                       .match(/^\[object\s(.*)\]$/)[1] || '';
-
-               switch (type) {
-                               case 'Number':
-                                               if (isNaN(obj)) {
-                                                               return "nan";
-                                               } else {
-                                                               return "number";
-                                               }
-                               case 'String':
-                               case 'Boolean':
-                               case 'Array':
-                               case 'Date':
-                               case 'RegExp':
-                               case 'Function':
-                                               return type.toLowerCase();
-               }
-               if (typeof obj === "object") {
-                               return "object";
-               }
-               return undefined;
-       },
-
-       push: function(result, actual, expected, message) {
-               var details = {
-                       result: result,
-                       message: message,
-                       actual: actual,
-                       expected: expected
-               };
-
-               message = escapeInnerText(message) || (result ? "okay" : "failed");
-               message = '<span class="test-message">' + message + "</span>";
-               expected = escapeInnerText(QUnit.jsDump.parse(expected));
-               actual = escapeInnerText(QUnit.jsDump.parse(actual));
-               var output = message + '<table><tr class="test-expected"><th>Expected: </th><td><pre>' + expected + '</pre></td></tr>';
-               if (actual != expected) {
-                       output += '<tr class="test-actual"><th>Result: </th><td><pre>' + actual + '</pre></td></tr>';
-                       output += '<tr class="test-diff"><th>Diff: </th><td><pre>' + QUnit.diff(expected, actual) +'</pre></td></tr>';
-               }
-               if (!result) {
-                       var source = sourceFromStacktrace();
-                       if (source) {
-                               details.source = source;
-                               output += '<tr class="test-source"><th>Source: </th><td><pre>' + escapeInnerText(source) + '</pre></td></tr>';
-                       }
-               }
-               output += "</table>";
-
-               runLoggingCallbacks( 'log', QUnit, details );
-
-               config.current.assertions.push({
-                       result: !!result,
-                       message: output
-               });
-       },
-
-       url: function( params ) {
-               params = extend( extend( {}, QUnit.urlParams ), params );
-               var querystring = "?",
-                       key;
-               for ( key in params ) {
-                       querystring += encodeURIComponent( key ) + "=" +
-                               encodeURIComponent( params[ key ] ) + "&";
-               }
-               return window.location.pathname + querystring.slice( 0, -1 );
-       },
-
-       extend: extend,
-       id: id,
-       addEvent: addEvent
-});
-
-//QUnit.constructor is set to the empty F() above so that we can add to it's prototype later
-//Doing this allows us to tell if the following methods have been overwritten on the actual
-//QUnit object, which is a deprecated way of using the callbacks.
-extend(QUnit.constructor.prototype, {
-       // Logging callbacks; all receive a single argument with the listed properties
-       // run test/logs.html for any related changes
-       begin: registerLoggingCallback('begin'),
-       // done: { failed, passed, total, runtime }
-       done: registerLoggingCallback('done'),
-       // log: { result, actual, expected, message }
-       log: registerLoggingCallback('log'),
-       // testStart: { name }
-       testStart: registerLoggingCallback('testStart'),
-       // testDone: { name, failed, passed, total }
-       testDone: registerLoggingCallback('testDone'),
-       // moduleStart: { name }
-       moduleStart: registerLoggingCallback('moduleStart'),
-       // moduleDone: { name, failed, passed, total }
-       moduleDone: registerLoggingCallback('moduleDone')
-});
-
-if ( typeof document === "undefined" || document.readyState === "complete" ) {
-       config.autorun = true;
-}
-
-QUnit.load = function() {
-       runLoggingCallbacks( 'begin', QUnit, {} );
-
-       // Initialize the config, saving the execution queue
-       var oldconfig = extend({}, config);
-       QUnit.init();
-       extend(config, oldconfig);
-
-       config.blocking = false;
-
-       var urlConfigHtml = '', len = config.urlConfig.length;
-       for ( var i = 0, val; i < len, val = config.urlConfig[i]; i++ ) {
-               config[val] = QUnit.urlParams[val];
-               urlConfigHtml += '<label><input name="' + val + '" type="checkbox"' + ( config[val] ? ' checked="checked"' : '' ) + '>' + val + '</label>';
-       }
-
-       var userAgent = id("qunit-userAgent");
-       if ( userAgent ) {
-               userAgent.innerHTML = navigator.userAgent;
-       }
-       var banner = id("qunit-header");
-       if ( banner ) {
-               banner.innerHTML = '<a href="' + QUnit.url({ filter: undefined }) + '"> ' + banner.innerHTML + '</a> ' + urlConfigHtml;
-               addEvent( banner, "change", function( event ) {
-                       var params = {};
-                       params[ event.target.name ] = event.target.checked ? true : undefined;
-                       window.location = QUnit.url( params );
-               });
-       }
-
-       var toolbar = id("qunit-testrunner-toolbar");
-       if ( toolbar ) {
-               var filter = document.createElement("input");
-               filter.type = "checkbox";
-               filter.id = "qunit-filter-pass";
-               addEvent( filter, "click", function() {
-                       var ol = document.getElementById("qunit-tests");
-                       if ( filter.checked ) {
-                               ol.className = ol.className + " hidepass";
-                       } else {
-                               var tmp = " " + ol.className.replace( /[\n\t\r]/g, " " ) + " ";
-                               ol.className = tmp.replace(/ hidepass /, " ");
-                       }
-                       if ( defined.sessionStorage ) {
-                               if (filter.checked) {
-                                       sessionStorage.setItem("qunit-filter-passed-tests", "true");
-                               } else {
-                                       sessionStorage.removeItem("qunit-filter-passed-tests");
-                               }
-                       }
-               });
-               if ( config.hidepassed || defined.sessionStorage && sessionStorage.getItem("qunit-filter-passed-tests") ) {
-                       filter.checked = true;
-                       var ol = document.getElementById("qunit-tests");
-                       ol.className = ol.className + " hidepass";
-               }
-               toolbar.appendChild( filter );
-
-               var label = document.createElement("label");
-               label.setAttribute("for", "qunit-filter-pass");
-               label.innerHTML = "Hide passed tests";
-               toolbar.appendChild( label );
-       }
-
-       var main = id('qunit-fixture');
-       if ( main ) {
-               config.fixture = main.innerHTML;
-       }
-
-       if (config.autostart) {
-               QUnit.start();
-       }
-};
-
-addEvent(window, "load", QUnit.load);
-
-function done() {
-       config.autorun = true;
-
-       // Log the last module results
-       if ( config.currentModule ) {
-               runLoggingCallbacks( 'moduleDone', QUnit, {
-                       name: config.currentModule,
-                       failed: config.moduleStats.bad,
-                       passed: config.moduleStats.all - config.moduleStats.bad,
-                       total: config.moduleStats.all
-               } );
-       }
-
-       var banner = id("qunit-banner"),
-               tests = id("qunit-tests"),
-               runtime = +new Date - config.started,
-               passed = config.stats.all - config.stats.bad,
-               html = [
-                       'Tests completed in ',
-                       runtime,
-                       ' milliseconds.<br/>',
-                       '<span class="passed">',
-                       passed,
-                       '</span> tests of <span class="total">',
-                       config.stats.all,
-                       '</span> passed, <span class="failed">',
-                       config.stats.bad,
-                       '</span> failed.'
-               ].join('');
-
-       if ( banner ) {
-               banner.className = (config.stats.bad ? "qunit-fail" : "qunit-pass");
-       }
-
-       if ( tests ) {
-               id( "qunit-testresult" ).innerHTML = html;
-       }
-
-       if ( config.altertitle && typeof document !== "undefined" && document.title ) {
-               // show ✖ for good, ✔ for bad suite result in title
-               // use escape sequences in case file gets loaded with non-utf-8-charset
-               document.title = [
-                       (config.stats.bad ? "\u2716" : "\u2714"),
-                       document.title.replace(/^[\u2714\u2716] /i, "")
-               ].join(" ");
-       }
-
-       runLoggingCallbacks( 'done', QUnit, {
-               failed: config.stats.bad,
-               passed: passed,
-               total: config.stats.all,
-               runtime: runtime
-       } );
-}
-
-function validTest( name ) {
-       var filter = config.filter,
-               run = false;
-
-       if ( !filter ) {
-               return true;
-       }
-
-       var not = filter.charAt( 0 ) === "!";
-       if ( not ) {
-               filter = filter.slice( 1 );
-       }
-
-       if ( name.indexOf( filter ) !== -1 ) {
-               return !not;
-       }
-
-       if ( not ) {
-               run = true;
-       }
-
-       return run;
-}
-
-// so far supports only Firefox, Chrome and Opera (buggy)
-// could be extended in the future to use something like https://github.com/csnover/TraceKit
-function sourceFromStacktrace() {
-       try {
-               throw new Error();
-       } catch ( e ) {
-               if (e.stacktrace) {
-                       // Opera
-                       return e.stacktrace.split("\n")[6];
-               } else if (e.stack) {
-                       // Firefox, Chrome
-                       return e.stack.split("\n")[4];
-               } else if (e.sourceURL) {
-                       // Safari, PhantomJS
-                       // TODO sourceURL points at the 'throw new Error' line above, useless
-                       //return e.sourceURL + ":" + e.line;
-               }
-       }
-}
-
-function escapeInnerText(s) {
-       if (!s) {
-               return "";
-       }
-       s = s + "";
-       return s.replace(/[\&<>]/g, function(s) {
-               switch(s) {
-                       case "&": return "&amp;";
-                       case "<": return "&lt;";
-                       case ">": return "&gt;";
-                       default: return s;
-               }
-       });
-}
-
-function synchronize( callback ) {
-       config.queue.push( callback );
-
-       if ( config.autorun && !config.blocking ) {
-               process();
-       }
-}
-
-function process() {
-       var start = (new Date()).getTime();
-
-       while ( config.queue.length && !config.blocking ) {
-               if ( config.updateRate <= 0 || (((new Date()).getTime() - start) < config.updateRate) ) {
-                       config.queue.shift()();
-               } else {
-                       window.setTimeout( process, 13 );
-                       break;
-               }
-       }
-       if (!config.blocking && !config.queue.length) {
-               done();
-       }
-}
-
-function saveGlobal() {
-       config.pollution = [];
-
-       if ( config.noglobals ) {
-               for ( var key in window ) {
-                       config.pollution.push( key );
-               }
-       }
-}
-
-function checkPollution( name ) {
-       var old = config.pollution;
-       saveGlobal();
-
-       var newGlobals = diff( config.pollution, old );
-       if ( newGlobals.length > 0 ) {
-               ok( false, "Introduced global variable(s): " + newGlobals.join(", ") );
-       }
-
-       var deletedGlobals = diff( old, config.pollution );
-       if ( deletedGlobals.length > 0 ) {
-               ok( false, "Deleted global variable(s): " + deletedGlobals.join(", ") );
-       }
-}
-
-// returns a new Array with the elements that are in a but not in b
-function diff( a, b ) {
-       var result = a.slice();
-       for ( var i = 0; i < result.length; i++ ) {
-               for ( var j = 0; j < b.length; j++ ) {
-                       if ( result[i] === b[j] ) {
-                               result.splice(i, 1);
-                               i--;
-                               break;
-                       }
-               }
-       }
-       return result;
-}
-
-function fail(message, exception, callback) {
-       if ( typeof console !== "undefined" && console.error && console.warn ) {
-               console.error(message);
-               console.error(exception);
-               console.warn(callback.toString());
-
-       } else if ( window.opera && opera.postError ) {
-               opera.postError(message, exception, callback.toString);
-       }
-}
-
-function extend(a, b) {
-       for ( var prop in b ) {
-               if ( b[prop] === undefined ) {
-                       delete a[prop];
-               } else {
-                       a[prop] = b[prop];
-               }
-       }
-
-       return a;
-}
-
-function addEvent(elem, type, fn) {
-       if ( elem.addEventListener ) {
-               elem.addEventListener( type, fn, false );
-       } else if ( elem.attachEvent ) {
-               elem.attachEvent( "on" + type, fn );
-       } else {
-               fn();
-       }
-}
-
-function id(name) {
-       return !!(typeof document !== "undefined" && document && document.getElementById) &&
-               document.getElementById( name );
-}
-
-function registerLoggingCallback(key){
-       return function(callback){
-               config[key].push( callback );
-       };
-}
-
-// Supports deprecated method of completely overwriting logging callbacks
-function runLoggingCallbacks(key, scope, args) {
-       //debugger;
-       var callbacks;
-       if ( QUnit.hasOwnProperty(key) ) {
-               QUnit[key].call(scope, args);
-       } else {
-               callbacks = config[key];
-               for( var i = 0; i < callbacks.length; i++ ) {
-                       callbacks[i].call( scope, args );
-               }
-       }
-}
-
-// Test for equality any JavaScript type.
-// Author: Philippe Rathé <prathe@gmail.com>
-QUnit.equiv = function () {
-
-       var innerEquiv; // the real equiv function
-       var callers = []; // stack to decide between skip/abort functions
-       var parents = []; // stack to avoiding loops from circular referencing
-
-       // Call the o related callback with the given arguments.
-       function bindCallbacks(o, callbacks, args) {
-               var prop = QUnit.objectType(o);
-               if (prop) {
-                       if (QUnit.objectType(callbacks[prop]) === "function") {
-                               return callbacks[prop].apply(callbacks, args);
-                       } else {
-                               return callbacks[prop]; // or undefined
-                       }
-               }
-       }
-
-       var callbacks = function () {
-
-               // for string, boolean, number and null
-               function useStrictEquality(b, a) {
-                       if (b instanceof a.constructor || a instanceof b.constructor) {
-                               // to catch short annotaion VS 'new' annotation of a
-                               // declaration
-                               // e.g. var i = 1;
-                               // var j = new Number(1);
-                               return a == b;
-                       } else {
-                               return a === b;
-                       }
-               }
-
-               return {
-                       "string" : useStrictEquality,
-                       "boolean" : useStrictEquality,
-                       "number" : useStrictEquality,
-                       "null" : useStrictEquality,
-                       "undefined" : useStrictEquality,
-
-                       "nan" : function(b) {
-                               return isNaN(b);
-                       },
-
-                       "date" : function(b, a) {
-                               return QUnit.objectType(b) === "date"
-                                               && a.valueOf() === b.valueOf();
-                       },
-
-                       "regexp" : function(b, a) {
-                               return QUnit.objectType(b) === "regexp"
-                                               && a.source === b.source && // the regex itself
-                                               a.global === b.global && // and its modifers
-                                                                                                       // (gmi) ...
-                                               a.ignoreCase === b.ignoreCase
-                                               && a.multiline === b.multiline;
-                       },
-
-                       // - skip when the property is a method of an instance (OOP)
-                       // - abort otherwise,
-                       // initial === would have catch identical references anyway
-                       "function" : function() {
-                               var caller = callers[callers.length - 1];
-                               return caller !== Object && typeof caller !== "undefined";
-                       },
-
-                       "array" : function(b, a) {
-                               var i, j, loop;
-                               var len;
-
-                               // b could be an object literal here
-                               if (!(QUnit.objectType(b) === "array")) {
-                                       return false;
-                               }
-
-                               len = a.length;
-                               if (len !== b.length) { // safe and faster
-                                       return false;
-                               }
-
-                               // track reference to avoid circular references
-                               parents.push(a);
-                               for (i = 0; i < len; i++) {
-                                       loop = false;
-                                       for (j = 0; j < parents.length; j++) {
-                                               if (parents[j] === a[i]) {
-                                                       loop = true;// dont rewalk array
-                                               }
-                                       }
-                                       if (!loop && !innerEquiv(a[i], b[i])) {
-                                               parents.pop();
-                                               return false;
-                                       }
-                               }
-                               parents.pop();
-                               return true;
-                       },
-
-                       "object" : function(b, a) {
-                               var i, j, loop;
-                               var eq = true; // unless we can proove it
-                               var aProperties = [], bProperties = []; // collection of
-                                                                                                               // strings
-
-                               // comparing constructors is more strict than using
-                               // instanceof
-                               if (a.constructor !== b.constructor) {
-                                       return false;
-                               }
-
-                               // stack constructor before traversing properties
-                               callers.push(a.constructor);
-                               // track reference to avoid circular references
-                               parents.push(a);
-
-                               for (i in a) { // be strict: don't ensures hasOwnProperty
-                                                               // and go deep
-                                       loop = false;
-                                       for (j = 0; j < parents.length; j++) {
-                                               if (parents[j] === a[i])
-                                                       loop = true; // don't go down the same path
-                                                                                       // twice
-                                       }
-                                       aProperties.push(i); // collect a's properties
-
-                                       if (!loop && !innerEquiv(a[i], b[i])) {
-                                               eq = false;
-                                               break;
-                                       }
-                               }
-
-                               callers.pop(); // unstack, we are done
-                               parents.pop();
-
-                               for (i in b) {
-                                       bProperties.push(i); // collect b's properties
-                               }
-
-                               // Ensures identical properties name
-                               return eq
-                                               && innerEquiv(aProperties.sort(), bProperties
-                                                               .sort());
-                       }
-               };
-       }();
-
-       innerEquiv = function() { // can take multiple arguments
-               var args = Array.prototype.slice.apply(arguments);
-               if (args.length < 2) {
-                       return true; // end transition
-               }
-
-               return (function(a, b) {
-                       if (a === b) {
-                               return true; // catch the most you can
-                       } else if (a === null || b === null || typeof a === "undefined"
-                                       || typeof b === "undefined"
-                                       || QUnit.objectType(a) !== QUnit.objectType(b)) {
-                               return false; // don't lose time with error prone cases
-                       } else {
-                               return bindCallbacks(a, callbacks, [ b, a ]);
-                       }
-
-                       // apply transition with (1..n) arguments
-               })(args[0], args[1])
-                               && arguments.callee.apply(this, args.splice(1,
-                                               args.length - 1));
-       };
-
-       return innerEquiv;
-
-}();
-
-/**
- * jsDump Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com |
- * http://flesler.blogspot.com Licensed under BSD
- * (http://www.opensource.org/licenses/bsd-license.php) Date: 5/15/2008
- *
- * @projectDescription Advanced and extensible data dumping for Javascript.
- * @version 1.0.0
- * @author Ariel Flesler
- * @link {http://flesler.blogspot.com/2008/05/jsdump-pretty-dump-of-any-javascript.html}
- */
-QUnit.jsDump = (function() {
-       function quote( str ) {
-               return '"' + str.toString().replace(/"/g, '\\"') + '"';
-       };
-       function literal( o ) {
-               return o + '';
-       };
-       function join( pre, arr, post ) {
-               var s = jsDump.separator(),
-                       base = jsDump.indent(),
-                       inner = jsDump.indent(1);
-               if ( arr.join )
-                       arr = arr.join( ',' + s + inner );
-               if ( !arr )
-                       return pre + post;
-               return [ pre, inner + arr, base + post ].join(s);
-       };
-       function array( arr, stack ) {
-               var i = arr.length, ret = Array(i);
-               this.up();
-               while ( i-- )
-                       ret[i] = this.parse( arr[i] , undefined , stack);
-               this.down();
-               return join( '[', ret, ']' );
-       };
-
-       var reName = /^function (\w+)/;
-
-       var jsDump = {
-               parse:function( obj, type, stack ) { //type is used mostly internally, you can fix a (custom)type in advance
-                       stack = stack || [ ];
-                       var parser = this.parsers[ type || this.typeOf(obj) ];
-                       type = typeof parser;
-                       var inStack = inArray(obj, stack);
-                       if (inStack != -1) {
-                               return 'recursion('+(inStack - stack.length)+')';
-                       }
-                       //else
-                       if (type == 'function')  {
-                                       stack.push(obj);
-                                       var res = parser.call( this, obj, stack );
-                                       stack.pop();
-                                       return res;
-                       }
-                       // else
-                       return (type == 'string') ? parser : this.parsers.error;
-               },
-               typeOf:function( obj ) {
-                       var type;
-                       if ( obj === null ) {
-                               type = "null";
-                       } else if (typeof obj === "undefined") {
-                               type = "undefined";
-                       } else if (QUnit.is("RegExp", obj)) {
-                               type = "regexp";
-                       } else if (QUnit.is("Date", obj)) {
-                               type = "date";
-                       } else if (QUnit.is("Function", obj)) {
-                               type = "function";
-                       } else if (typeof obj.setInterval !== undefined && typeof obj.document !== "undefined" && typeof obj.nodeType === "undefined") {
-                               type = "window";
-                       } else if (obj.nodeType === 9) {
-                               type = "document";
-                       } else if (obj.nodeType) {
-                               type = "node";
-                       } else if (typeof obj === "object" && typeof obj.length === "number" && obj.length >= 0) {
-                               type = "array";
-                       } else {
-                               type = typeof obj;
-                       }
-                       return type;
-               },
-               separator:function() {
-                       return this.multiline ? this.HTML ? '<br />' : '\n' : this.HTML ? '&nbsp;' : ' ';
-               },
-               indent:function( extra ) {// extra can be a number, shortcut for increasing-calling-decreasing
-                       if ( !this.multiline )
-                               return '';
-                       var chr = this.indentChar;
-                       if ( this.HTML )
-                               chr = chr.replace(/\t/g,'   ').replace(/ /g,'&nbsp;');
-                       return Array( this._depth_ + (extra||0) ).join(chr);
-               },
-               up:function( a ) {
-                       this._depth_ += a || 1;
-               },
-               down:function( a ) {
-                       this._depth_ -= a || 1;
-               },
-               setParser:function( name, parser ) {
-                       this.parsers[name] = parser;
-               },
-               // The next 3 are exposed so you can use them
-               quote:quote,
-               literal:literal,
-               join:join,
-               //
-               _depth_: 1,
-               // This is the list of parsers, to modify them, use jsDump.setParser
-               parsers:{
-                       window: '[Window]',
-                       document: '[Document]',
-                       error:'[ERROR]', //when no parser is found, shouldn't happen
-                       unknown: '[Unknown]',
-                       'null':'null',
-                       'undefined':'undefined',
-                       'function':function( fn ) {
-                               var ret = 'function',
-                                       name = 'name' in fn ? fn.name : (reName.exec(fn)||[])[1];//functions never have name in IE
-                               if ( name )
-                                       ret += ' ' + name;
-                               ret += '(';
-
-                               ret = [ ret, QUnit.jsDump.parse( fn, 'functionArgs' ), '){'].join('');
-                               return join( ret, QUnit.jsDump.parse(fn,'functionCode'), '}' );
-                       },
-                       array: array,
-                       nodelist: array,
-                       arguments: array,
-                       object:function( map, stack ) {
-                               var ret = [ ];
-                               QUnit.jsDump.up();
-                               for ( var key in map ) {
-                                   var val = map[key];
-                                       ret.push( QUnit.jsDump.parse(key,'key') + ': ' + QUnit.jsDump.parse(val, undefined, stack));
-                }
-                               QUnit.jsDump.down();
-                               return join( '{', ret, '}' );
-                       },
-                       node:function( node ) {
-                               var open = QUnit.jsDump.HTML ? '&lt;' : '<',
-                                       close = QUnit.jsDump.HTML ? '&gt;' : '>';
-
-                               var tag = node.nodeName.toLowerCase(),
-                                       ret = open + tag;
-
-                               for ( var a in QUnit.jsDump.DOMAttrs ) {
-                                       var val = node[QUnit.jsDump.DOMAttrs[a]];
-                                       if ( val )
-                                               ret += ' ' + a + '=' + QUnit.jsDump.parse( val, 'attribute' );
-                               }
-                               return ret + close + open + '/' + tag + close;
-                       },
-                       functionArgs:function( fn ) {//function calls it internally, it's the arguments part of the function
-                               var l = fn.length;
-                               if ( !l ) return '';
-
-                               var args = Array(l);
-                               while ( l-- )
-                                       args[l] = String.fromCharCode(97+l);//97 is 'a'
-                               return ' ' + args.join(', ') + ' ';
-                       },
-                       key:quote, //object calls it internally, the key part of an item in a map
-                       functionCode:'[code]', //function calls it internally, it's the content of the function
-                       attribute:quote, //node calls it internally, it's an html attribute value
-                       string:quote,
-                       date:quote,
-                       regexp:literal, //regex
-                       number:literal,
-                       'boolean':literal
-               },
-               DOMAttrs:{//attributes to dump from nodes, name=>realName
-                       id:'id',
-                       name:'name',
-                       'class':'className'
-               },
-               HTML:false,//if true, entities are escaped ( <, >, \t, space and \n )
-               indentChar:'  ',//indentation unit
-               multiline:true //if true, items in a collection, are separated by a \n, else just a space.
-       };
-
-       return jsDump;
-})();
-
-// from Sizzle.js
-function getText( elems ) {
-       var ret = "", elem;
-
-       for ( var i = 0; elems[i]; i++ ) {
-               elem = elems[i];
-
-               // Get the text from text nodes and CDATA nodes
-               if ( elem.nodeType === 3 || elem.nodeType === 4 ) {
-                       ret += elem.nodeValue;
-
-               // Traverse everything else, except comment nodes
-               } else if ( elem.nodeType !== 8 ) {
-                       ret += getText( elem.childNodes );
-               }
-       }
-
-       return ret;
-};
-
-//from jquery.js
-function inArray( elem, array ) {
-       if ( array.indexOf ) {
-               return array.indexOf( elem );
-       }
-
-       for ( var i = 0, length = array.length; i < length; i++ ) {
-               if ( array[ i ] === elem ) {
-                       return i;
-               }
-       }
-
-       return -1;
-}
-
-/*
- * Javascript Diff Algorithm
- *  By John Resig (http://ejohn.org/)
- *  Modified by Chu Alan "sprite"
- *
- * Released under the MIT license.
- *
- * More Info:
- *  http://ejohn.org/projects/javascript-diff-algorithm/
- *
- * Usage: QUnit.diff(expected, actual)
- *
- * QUnit.diff("the quick brown fox jumped over", "the quick fox jumps over") == "the  quick <del>brown </del> fox <del>jumped </del><ins>jumps </ins> over"
- */
-QUnit.diff = (function() {
-       function diff(o, n) {
-               var ns = {};
-               var os = {};
-
-               for (var i = 0; i < n.length; i++) {
-                       if (ns[n[i]] == null)
-                               ns[n[i]] = {
-                                       rows: [],
-                                       o: null
-                               };
-                       ns[n[i]].rows.push(i);
-               }
-
-               for (var i = 0; i < o.length; i++) {
-                       if (os[o[i]] == null)
-                               os[o[i]] = {
-                                       rows: [],
-                                       n: null
-                               };
-                       os[o[i]].rows.push(i);
-               }
-
-               for (var i in ns) {
-                       if (ns[i].rows.length == 1 && typeof(os[i]) != "undefined" && os[i].rows.length == 1) {
-                               n[ns[i].rows[0]] = {
-                                       text: n[ns[i].rows[0]],
-                                       row: os[i].rows[0]
-                               };
-                               o[os[i].rows[0]] = {
-                                       text: o[os[i].rows[0]],
-                                       row: ns[i].rows[0]
-                               };
-                       }
-               }
-
-               for (var i = 0; i < n.length - 1; i++) {
-                       if (n[i].text != null && n[i + 1].text == null && n[i].row + 1 < o.length && o[n[i].row + 1].text == null &&
-                       n[i + 1] == o[n[i].row + 1]) {
-                               n[i + 1] = {
-                                       text: n[i + 1],
-                                       row: n[i].row + 1
-                               };
-                               o[n[i].row + 1] = {
-                                       text: o[n[i].row + 1],
-                                       row: i + 1
-                               };
-                       }
-               }
-
-               for (var i = n.length - 1; i > 0; i--) {
-                       if (n[i].text != null && n[i - 1].text == null && n[i].row > 0 && o[n[i].row - 1].text == null &&
-                       n[i - 1] == o[n[i].row - 1]) {
-                               n[i - 1] = {
-                                       text: n[i - 1],
-                                       row: n[i].row - 1
-                               };
-                               o[n[i].row - 1] = {
-                                       text: o[n[i].row - 1],
-                                       row: i - 1
-                               };
-                       }
-               }
-
-               return {
-                       o: o,
-                       n: n
-               };
-       }
-
-       return function(o, n) {
-               o = o.replace(/\s+$/, '');
-               n = n.replace(/\s+$/, '');
-               var out = diff(o == "" ? [] : o.split(/\s+/), n == "" ? [] : n.split(/\s+/));
-
-               var str = "";
-
-               var oSpace = o.match(/\s+/g);
-               if (oSpace == null) {
-                       oSpace = [" "];
-               }
-               else {
-                       oSpace.push(" ");
-               }
-               var nSpace = n.match(/\s+/g);
-               if (nSpace == null) {
-                       nSpace = [" "];
-               }
-               else {
-                       nSpace.push(" ");
-               }
-
-               if (out.n.length == 0) {
-                       for (var i = 0; i < out.o.length; i++) {
-                               str += '<del>' + out.o[i] + oSpace[i] + "</del>";
-                       }
-               }
-               else {
-                       if (out.n[0].text == null) {
-                               for (n = 0; n < out.o.length && out.o[n].text == null; n++) {
-                                       str += '<del>' + out.o[n] + oSpace[n] + "</del>";
-                               }
-                       }
-
-                       for (var i = 0; i < out.n.length; i++) {
-                               if (out.n[i].text == null) {
-                                       str += '<ins>' + out.n[i] + nSpace[i] + "</ins>";
-                               }
-                               else {
-                                       var pre = "";
-
-                                       for (n = out.n[i].row + 1; n < out.o.length && out.o[n].text == null; n++) {
-                                               pre += '<del>' + out.o[n] + oSpace[n] + "</del>";
-                                       }
-                                       str += " " + out.n[i].text + nSpace[i] + pre;
-                               }
-                       }
-               }
-
-               return str;
-       };
-})();
-
-})(this);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/external/r.js/dist/r.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/external/r.js/dist/r.js
deleted file mode 100644 (file)
index 9741071..0000000
+++ /dev/null
@@ -1,9862 +0,0 @@
-/**
- * @license r.js 1.0.7+ Fri, 30 Mar 2012 00:24:35 GMT Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*
- * This is a bootstrap script to allow running RequireJS in the command line
- * in either a Java/Rhino or Node environment. It is modified by the top-level
- * dist.js file to inject other files to completely enable this file. It is
- * the shell of the r.js file.
- */
-
-/*jslint evil: true, nomen: true */
-/*global readFile: true, process: false, Packages: false, print: false,
-console: false, java: false, module: false, requirejsVars */
-
-var requirejs, require, define;
-(function (console, args, readFileFunc) {
-
-    var fileName, env, fs, vm, path, exec, rhinoContext, dir, nodeRequire,
-        nodeDefine, exists, reqMain, loadedOptimizedLib,
-        version = '1.0.7+ Fri, 30 Mar 2012 00:24:35 GMT',
-        jsSuffixRegExp = /\.js$/,
-        commandOption = '',
-        useLibLoaded = {},
-        //Used by jslib/rhino/args.js
-        rhinoArgs = args,
-        readFile = typeof readFileFunc !== 'undefined' ? readFileFunc : null;
-
-    function showHelp() {
-        console.log('See https://github.com/jrburke/r.js for usage.');
-    }
-
-    if (typeof Packages !== 'undefined') {
-        env = 'rhino';
-
-        fileName = args[0];
-
-        if (fileName && fileName.indexOf('-') === 0) {
-            commandOption = fileName.substring(1);
-            fileName = args[1];
-        }
-
-        //Set up execution context.
-        rhinoContext = Packages.org.mozilla.javascript.ContextFactory.getGlobal().enterContext();
-
-        exec = function (string, name) {
-            return rhinoContext.evaluateString(this, string, name, 0, null);
-        };
-
-        exists = function (fileName) {
-            return (new java.io.File(fileName)).exists();
-        };
-
-        //Define a console.log for easier logging. Don't
-        //get fancy though.
-        if (typeof console === 'undefined') {
-            console = {
-                log: function () {
-                    print.apply(undefined, arguments);
-                }
-            };
-        }
-    } else if (typeof process !== 'undefined') {
-        env = 'node';
-
-        //Get the fs module via Node's require before it
-        //gets replaced. Used in require/node.js
-        fs = require('fs');
-        vm = require('vm');
-        path = require('path');
-        nodeRequire = require;
-        nodeDefine = define;
-        reqMain = require.main;
-
-        //Temporarily hide require and define to allow require.js to define
-        //them.
-        require = undefined;
-        define = undefined;
-
-        readFile = function (path) {
-            return fs.readFileSync(path, 'utf8');
-        };
-
-        exec = function (string, name) {
-            return vm.runInThisContext(this.requirejsVars.require.makeNodeWrapper(string),
-                                       name ? fs.realpathSync(name) : '');
-        };
-
-        exists = function (fileName) {
-            return path.existsSync(fileName);
-        };
-
-
-        fileName = process.argv[2];
-
-        if (fileName && fileName.indexOf('-') === 0) {
-            commandOption = fileName.substring(1);
-            fileName = process.argv[3];
-        }
-    }
-
-    /** vim: et:ts=4:sw=4:sts=4
- * @license RequireJS 1.0.7 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-/*jslint strict: false, plusplus: false, sub: true */
-/*global window, navigator, document, importScripts, jQuery, setTimeout, opera */
-
-
-(function () {
-    //Change this version number for each release.
-    var version = "1.0.7",
-        commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
-        cjsRequireRegExp = /require\(\s*["']([^'"\s]+)["']\s*\)/g,
-        currDirRegExp = /^\.\//,
-        jsSuffixRegExp = /\.js$/,
-        ostring = Object.prototype.toString,
-        ap = Array.prototype,
-        aps = ap.slice,
-        apsp = ap.splice,
-        isBrowser = !!(typeof window !== "undefined" && navigator && document),
-        isWebWorker = !isBrowser && typeof importScripts !== "undefined",
-        //PS3 indicates loaded and complete, but need to wait for complete
-        //specifically. Sequence is "loading", "loaded", execution,
-        // then "complete". The UA check is unfortunate, but not sure how
-        //to feature test w/o causing perf issues.
-        readyRegExp = isBrowser && navigator.platform === 'PLAYSTATION 3' ?
-                      /^complete$/ : /^(complete|loaded)$/,
-        defContextName = "_",
-        //Oh the tragedy, detecting opera. See the usage of isOpera for reason.
-        isOpera = typeof opera !== "undefined" && opera.toString() === "[object Opera]",
-        empty = {},
-        contexts = {},
-        globalDefQueue = [],
-        interactiveScript = null,
-        checkLoadedDepth = 0,
-        useInteractive = false,
-        reservedDependencies = {
-            require: true,
-            module: true,
-            exports: true
-        },
-        req, cfg = {}, currentlyAddingScript, s, head, baseElement, scripts, script,
-        src, subPath, mainScript, dataMain, globalI, ctx, jQueryCheck, checkLoadedTimeoutId;
-
-    function isFunction(it) {
-        return ostring.call(it) === "[object Function]";
-    }
-
-    function isArray(it) {
-        return ostring.call(it) === "[object Array]";
-    }
-
-    /**
-     * Simple function to mix in properties from source into target,
-     * but only if target does not already have a property of the same name.
-     * This is not robust in IE for transferring methods that match
-     * Object.prototype names, but the uses of mixin here seem unlikely to
-     * trigger a problem related to that.
-     */
-    function mixin(target, source, force) {
-        for (var prop in source) {
-            if (!(prop in empty) && (!(prop in target) || force)) {
-                target[prop] = source[prop];
-            }
-        }
-        return req;
-    }
-
-    /**
-     * Constructs an error with a pointer to an URL with more information.
-     * @param {String} id the error ID that maps to an ID on a web page.
-     * @param {String} message human readable error.
-     * @param {Error} [err] the original error, if there is one.
-     *
-     * @returns {Error}
-     */
-    function makeError(id, msg, err) {
-        var e = new Error(msg + '\nhttp://requirejs.org/docs/errors.html#' + id);
-        if (err) {
-            e.originalError = err;
-        }
-        return e;
-    }
-
-    /**
-     * Used to set up package paths from a packagePaths or packages config object.
-     * @param {Object} pkgs the object to store the new package config
-     * @param {Array} currentPackages an array of packages to configure
-     * @param {String} [dir] a prefix dir to use.
-     */
-    function configurePackageDir(pkgs, currentPackages, dir) {
-        var i, location, pkgObj;
-
-        for (i = 0; (pkgObj = currentPackages[i]); i++) {
-            pkgObj = typeof pkgObj === "string" ? { name: pkgObj } : pkgObj;
-            location = pkgObj.location;
-
-            //Add dir to the path, but avoid paths that start with a slash
-            //or have a colon (indicates a protocol)
-            if (dir && (!location || (location.indexOf("/") !== 0 && location.indexOf(":") === -1))) {
-                location = dir + "/" + (location || pkgObj.name);
-            }
-
-            //Create a brand new object on pkgs, since currentPackages can
-            //be passed in again, and config.pkgs is the internal transformed
-            //state for all package configs.
-            pkgs[pkgObj.name] = {
-                name: pkgObj.name,
-                location: location || pkgObj.name,
-                //Remove leading dot in main, so main paths are normalized,
-                //and remove any trailing .js, since different package
-                //envs have different conventions: some use a module name,
-                //some use a file name.
-                main: (pkgObj.main || "main")
-                      .replace(currDirRegExp, '')
-                      .replace(jsSuffixRegExp, '')
-            };
-        }
-    }
-
-    /**
-     * jQuery 1.4.3-1.5.x use a readyWait/ready() pairing to hold DOM
-     * ready callbacks, but jQuery 1.6 supports a holdReady() API instead.
-     * At some point remove the readyWait/ready() support and just stick
-     * with using holdReady.
-     */
-    function jQueryHoldReady($, shouldHold) {
-        if ($.holdReady) {
-            $.holdReady(shouldHold);
-        } else if (shouldHold) {
-            $.readyWait += 1;
-        } else {
-            $.ready(true);
-        }
-    }
-
-    if (typeof define !== "undefined") {
-        //If a define is already in play via another AMD loader,
-        //do not overwrite.
-        return;
-    }
-
-    if (typeof requirejs !== "undefined") {
-        if (isFunction(requirejs)) {
-            //Do not overwrite and existing requirejs instance.
-            return;
-        } else {
-            cfg = requirejs;
-            requirejs = undefined;
-        }
-    }
-
-    //Allow for a require config object
-    if (typeof require !== "undefined" && !isFunction(require)) {
-        //assume it is a config object.
-        cfg = require;
-        require = undefined;
-    }
-
-    /**
-     * Creates a new context for use in require and define calls.
-     * Handle most of the heavy lifting. Do not want to use an object
-     * with prototype here to avoid using "this" in require, in case it
-     * needs to be used in more super secure envs that do not want this.
-     * Also there should not be that many contexts in the page. Usually just
-     * one for the default context, but could be extra for multiversion cases
-     * or if a package needs a special context for a dependency that conflicts
-     * with the standard context.
-     */
-    function newContext(contextName) {
-        var context, resume,
-            config = {
-                waitSeconds: 7,
-                baseUrl: "./",
-                paths: {},
-                pkgs: {},
-                catchError: {}
-            },
-            defQueue = [],
-            specified = {
-                "require": true,
-                "exports": true,
-                "module": true
-            },
-            urlMap = {},
-            defined = {},
-            loaded = {},
-            waiting = {},
-            waitAry = [],
-            urlFetched = {},
-            managerCounter = 0,
-            managerCallbacks = {},
-            plugins = {},
-            //Used to indicate which modules in a build scenario
-            //need to be full executed.
-            needFullExec = {},
-            fullExec = {},
-            resumeDepth = 0;
-
-        /**
-         * Trims the . and .. from an array of path segments.
-         * It will keep a leading path segment if a .. will become
-         * the first path segment, to help with module name lookups,
-         * which act like paths, but can be remapped. But the end result,
-         * all paths that use this function should look normalized.
-         * NOTE: this method MODIFIES the input array.
-         * @param {Array} ary the array of path segments.
-         */
-        function trimDots(ary) {
-            var i, part;
-            for (i = 0; (part = ary[i]); i++) {
-                if (part === ".") {
-                    ary.splice(i, 1);
-                    i -= 1;
-                } else if (part === "..") {
-                    if (i === 1 && (ary[2] === '..' || ary[0] === '..')) {
-                        //End of the line. Keep at least one non-dot
-                        //path segment at the front so it can be mapped
-                        //correctly to disk. Otherwise, there is likely
-                        //no path mapping for a path starting with '..'.
-                        //This can still fail, but catches the most reasonable
-                        //uses of ..
-                        break;
-                    } else if (i > 0) {
-                        ary.splice(i - 1, 2);
-                        i -= 2;
-                    }
-                }
-            }
-        }
-
-        /**
-         * Given a relative module name, like ./something, normalize it to
-         * a real name that can be mapped to a path.
-         * @param {String} name the relative name
-         * @param {String} baseName a real name that the name arg is relative
-         * to.
-         * @returns {String} normalized name
-         */
-        function normalize(name, baseName) {
-            var pkgName, pkgConfig;
-
-            //Adjust any relative paths.
-            if (name && name.charAt(0) === ".") {
-                //If have a base name, try to normalize against it,
-                //otherwise, assume it is a top-level require that will
-                //be relative to baseUrl in the end.
-                if (baseName) {
-                    if (config.pkgs[baseName]) {
-                        //If the baseName is a package name, then just treat it as one
-                        //name to concat the name with.
-                        baseName = [baseName];
-                    } else {
-                        //Convert baseName to array, and lop off the last part,
-                        //so that . matches that "directory" and not name of the baseName's
-                        //module. For instance, baseName of "one/two/three", maps to
-                        //"one/two/three.js", but we want the directory, "one/two" for
-                        //this normalization.
-                        baseName = baseName.split("/");
-                        baseName = baseName.slice(0, baseName.length - 1);
-                    }
-
-                    name = baseName.concat(name.split("/"));
-                    trimDots(name);
-
-                    //Some use of packages may use a . path to reference the
-                    //"main" module name, so normalize for that.
-                    pkgConfig = config.pkgs[(pkgName = name[0])];
-                    name = name.join("/");
-                    if (pkgConfig && name === pkgName + '/' + pkgConfig.main) {
-                        name = pkgName;
-                    }
-                } else if (name.indexOf("./") === 0) {
-                    // No baseName, so this is ID is resolved relative
-                    // to baseUrl, pull off the leading dot.
-                    name = name.substring(2);
-                }
-            }
-            return name;
-        }
-
-        /**
-         * Creates a module mapping that includes plugin prefix, module
-         * name, and path. If parentModuleMap is provided it will
-         * also normalize the name via require.normalize()
-         *
-         * @param {String} name the module name
-         * @param {String} [parentModuleMap] parent module map
-         * for the module name, used to resolve relative names.
-         *
-         * @returns {Object}
-         */
-        function makeModuleMap(name, parentModuleMap) {
-            var index = name ? name.indexOf("!") : -1,
-                prefix = null,
-                parentName = parentModuleMap ? parentModuleMap.name : null,
-                originalName = name,
-                normalizedName, url, pluginModule;
-
-            if (index !== -1) {
-                prefix = name.substring(0, index);
-                name = name.substring(index + 1, name.length);
-            }
-
-            if (prefix) {
-                prefix = normalize(prefix, parentName);
-            }
-
-            //Account for relative paths if there is a base name.
-            if (name) {
-                if (prefix) {
-                    pluginModule = defined[prefix];
-                    if (pluginModule && pluginModule.normalize) {
-                        //Plugin is loaded, use its normalize method.
-                        normalizedName = pluginModule.normalize(name, function (name) {
-                            return normalize(name, parentName);
-                        });
-                    } else {
-                        normalizedName = normalize(name, parentName);
-                    }
-                } else {
-                    //A regular module.
-                    normalizedName = normalize(name, parentName);
-
-                    url = urlMap[normalizedName];
-                    if (!url) {
-                        //Calculate url for the module, if it has a name.
-                        //Use name here since nameToUrl also calls normalize,
-                        //and for relative names that are outside the baseUrl
-                        //this causes havoc. Was thinking of just removing
-                        //parentModuleMap to avoid extra normalization, but
-                        //normalize() still does a dot removal because of
-                        //issue #142, so just pass in name here and redo
-                        //the normalization. Paths outside baseUrl are just
-                        //messy to support.
-                        url = context.nameToUrl(name, null, parentModuleMap);
-
-                        //Store the URL mapping for later.
-                        urlMap[normalizedName] = url;
-                    }
-                }
-            }
-
-            return {
-                prefix: prefix,
-                name: normalizedName,
-                parentMap: parentModuleMap,
-                url: url,
-                originalName: originalName,
-                fullName: prefix ? prefix + "!" + (normalizedName || '') : normalizedName
-            };
-        }
-
-        /**
-         * Determine if priority loading is done. If so clear the priorityWait
-         */
-        function isPriorityDone() {
-            var priorityDone = true,
-                priorityWait = config.priorityWait,
-                priorityName, i;
-            if (priorityWait) {
-                for (i = 0; (priorityName = priorityWait[i]); i++) {
-                    if (!loaded[priorityName]) {
-                        priorityDone = false;
-                        break;
-                    }
-                }
-                if (priorityDone) {
-                    delete config.priorityWait;
-                }
-            }
-            return priorityDone;
-        }
-
-        function makeContextModuleFunc(func, relModuleMap, enableBuildCallback) {
-            return function () {
-                //A version of a require function that passes a moduleName
-                //value for items that may need to
-                //look up paths relative to the moduleName
-                var args = aps.call(arguments, 0), lastArg;
-                if (enableBuildCallback &&
-                    isFunction((lastArg = args[args.length - 1]))) {
-                    lastArg.__requireJsBuild = true;
-                }
-                args.push(relModuleMap);
-                return func.apply(null, args);
-            };
-        }
-
-        /**
-         * Helper function that creates a require function object to give to
-         * modules that ask for it as a dependency. It needs to be specific
-         * per module because of the implication of path mappings that may
-         * need to be relative to the module name.
-         */
-        function makeRequire(relModuleMap, enableBuildCallback, altRequire) {
-            var modRequire = makeContextModuleFunc(altRequire || context.require, relModuleMap, enableBuildCallback);
-
-            mixin(modRequire, {
-                nameToUrl: makeContextModuleFunc(context.nameToUrl, relModuleMap),
-                toUrl: makeContextModuleFunc(context.toUrl, relModuleMap),
-                defined: makeContextModuleFunc(context.requireDefined, relModuleMap),
-                specified: makeContextModuleFunc(context.requireSpecified, relModuleMap),
-                isBrowser: req.isBrowser
-            });
-            return modRequire;
-        }
-
-        /*
-         * Queues a dependency for checking after the loader is out of a
-         * "paused" state, for example while a script file is being loaded
-         * in the browser, where it may have many modules defined in it.
-         */
-        function queueDependency(manager) {
-            context.paused.push(manager);
-        }
-
-        function execManager(manager) {
-            var i, ret, err, errFile, errModuleTree,
-                cb = manager.callback,
-                map = manager.map,
-                fullName = map.fullName,
-                args = manager.deps,
-                listeners = manager.listeners,
-                execCb = config.requireExecCb || req.execCb,
-                cjsModule;
-
-            //Call the callback to define the module, if necessary.
-            if (cb && isFunction(cb)) {
-                if (config.catchError.define) {
-                    try {
-                        ret = execCb(fullName, manager.callback, args, defined[fullName]);
-                    } catch (e) {
-                        err = e;
-                    }
-                } else {
-                    ret = execCb(fullName, manager.callback, args, defined[fullName]);
-                }
-
-                if (fullName) {
-                    //If setting exports via "module" is in play,
-                    //favor that over return value and exports. After that,
-                    //favor a non-undefined return value over exports use.
-                    cjsModule = manager.cjsModule;
-                    if (cjsModule &&
-                        cjsModule.exports !== undefined &&
-                        //Make sure it is not already the exports value
-                        cjsModule.exports !== defined[fullName]) {
-                        ret = defined[fullName] = manager.cjsModule.exports;
-                    } else if (ret === undefined && manager.usingExports) {
-                        //exports already set the defined value.
-                        ret = defined[fullName];
-                    } else {
-                        //Use the return value from the function.
-                        defined[fullName] = ret;
-                        //If this module needed full execution in a build
-                        //environment, mark that now.
-                        if (needFullExec[fullName]) {
-                            fullExec[fullName] = true;
-                        }
-                    }
-                }
-            } else if (fullName) {
-                //May just be an object definition for the module. Only
-                //worry about defining if have a module name.
-                ret = defined[fullName] = cb;
-
-                //If this module needed full execution in a build
-                //environment, mark that now.
-                if (needFullExec[fullName]) {
-                    fullExec[fullName] = true;
-                }
-            }
-
-            //Clean up waiting. Do this before error calls, and before
-            //calling back listeners, so that bookkeeping is correct
-            //in the event of an error and error is reported in correct order,
-            //since the listeners will likely have errors if the
-            //onError function does not throw.
-            if (waiting[manager.id]) {
-                delete waiting[manager.id];
-                manager.isDone = true;
-                context.waitCount -= 1;
-                if (context.waitCount === 0) {
-                    //Clear the wait array used for cycles.
-                    waitAry = [];
-                }
-            }
-
-            //Do not need to track manager callback now that it is defined.
-            delete managerCallbacks[fullName];
-
-            //Allow instrumentation like the optimizer to know the order
-            //of modules executed and their dependencies.
-            if (req.onResourceLoad && !manager.placeholder) {
-                req.onResourceLoad(context, map, manager.depArray);
-            }
-
-            if (err) {
-                errFile = (fullName ? makeModuleMap(fullName).url : '') ||
-                           err.fileName || err.sourceURL;
-                errModuleTree = err.moduleTree;
-                err = makeError('defineerror', 'Error evaluating ' +
-                                'module "' + fullName + '" at location "' +
-                                errFile + '":\n' +
-                                err + '\nfileName:' + errFile +
-                                '\nlineNumber: ' + (err.lineNumber || err.line), err);
-                err.moduleName = fullName;
-                err.moduleTree = errModuleTree;
-                return req.onError(err);
-            }
-
-            //Let listeners know of this manager's value.
-            for (i = 0; (cb = listeners[i]); i++) {
-                cb(ret);
-            }
-
-            return undefined;
-        }
-
-        /**
-         * Helper that creates a callack function that is called when a dependency
-         * is ready, and sets the i-th dependency for the manager as the
-         * value passed to the callback generated by this function.
-         */
-        function makeArgCallback(manager, i) {
-            return function (value) {
-                //Only do the work if it has not been done
-                //already for a dependency. Cycle breaking
-                //logic in forceExec could mean this function
-                //is called more than once for a given dependency.
-                if (!manager.depDone[i]) {
-                    manager.depDone[i] = true;
-                    manager.deps[i] = value;
-                    manager.depCount -= 1;
-                    if (!manager.depCount) {
-                        //All done, execute!
-                        execManager(manager);
-                    }
-                }
-            };
-        }
-
-        function callPlugin(pluginName, depManager) {
-            var map = depManager.map,
-                fullName = map.fullName,
-                name = map.name,
-                plugin = plugins[pluginName] ||
-                        (plugins[pluginName] = defined[pluginName]),
-                load;
-
-            //No need to continue if the manager is already
-            //in the process of loading.
-            if (depManager.loading) {
-                return;
-            }
-            depManager.loading = true;
-
-            load = function (ret) {
-                depManager.callback = function () {
-                    return ret;
-                };
-                execManager(depManager);
-
-                loaded[depManager.id] = true;
-
-                //The loading of this plugin
-                //might have placed other things
-                //in the paused queue. In particular,
-                //a loader plugin that depends on
-                //a different plugin loaded resource.
-                resume();
-            };
-
-            //Allow plugins to load other code without having to know the
-            //context or how to "complete" the load.
-            load.fromText = function (moduleName, text) {
-                /*jslint evil: true */
-                var hasInteractive = useInteractive;
-
-                //Indicate a the module is in process of loading.
-                loaded[moduleName] = false;
-                context.scriptCount += 1;
-
-                //Indicate this is not a "real" module, so do not track it
-                //for builds, it does not map to a real file.
-                context.fake[moduleName] = true;
-
-                //Turn off interactive script matching for IE for any define
-                //calls in the text, then turn it back on at the end.
-                if (hasInteractive) {
-                    useInteractive = false;
-                }
-
-                req.exec(text);
-
-                if (hasInteractive) {
-                    useInteractive = true;
-                }
-
-                //Support anonymous modules.
-                context.completeLoad(moduleName);
-            };
-
-            //No need to continue if the plugin value has already been
-            //defined by a build.
-            if (fullName in defined) {
-                load(defined[fullName]);
-            } else {
-                //Use parentName here since the plugin's name is not reliable,
-                //could be some weird string with no path that actually wants to
-                //reference the parentName's path.
-                plugin.load(name, makeRequire(map.parentMap, true, function (deps, cb) {
-                    var moduleDeps = [],
-                        i, dep, depMap;
-                    //Convert deps to full names and hold on to them
-                    //for reference later, when figuring out if they
-                    //are blocked by a circular dependency.
-                    for (i = 0; (dep = deps[i]); i++) {
-                        depMap = makeModuleMap(dep, map.parentMap);
-                        deps[i] = depMap.fullName;
-                        if (!depMap.prefix) {
-                            moduleDeps.push(deps[i]);
-                        }
-                    }
-                    depManager.moduleDeps = (depManager.moduleDeps || []).concat(moduleDeps);
-                    return context.require(deps, cb);
-                }), load, config);
-            }
-        }
-
-        /**
-         * Adds the manager to the waiting queue. Only fully
-         * resolved items should be in the waiting queue.
-         */
-        function addWait(manager) {
-            if (!waiting[manager.id]) {
-                waiting[manager.id] = manager;
-                waitAry.push(manager);
-                context.waitCount += 1;
-            }
-        }
-
-        /**
-         * Function added to every manager object. Created out here
-         * to avoid new function creation for each manager instance.
-         */
-        function managerAdd(cb) {
-            this.listeners.push(cb);
-        }
-
-        function getManager(map, shouldQueue) {
-            var fullName = map.fullName,
-                prefix = map.prefix,
-                plugin = prefix ? plugins[prefix] ||
-                                (plugins[prefix] = defined[prefix]) : null,
-                manager, created, pluginManager, prefixMap;
-
-            if (fullName) {
-                manager = managerCallbacks[fullName];
-            }
-
-            if (!manager) {
-                created = true;
-                manager = {
-                    //ID is just the full name, but if it is a plugin resource
-                    //for a plugin that has not been loaded,
-                    //then add an ID counter to it.
-                    id: (prefix && !plugin ?
-                        (managerCounter++) + '__p@:' : '') +
-                        (fullName || '__r@' + (managerCounter++)),
-                    map: map,
-                    depCount: 0,
-                    depDone: [],
-                    depCallbacks: [],
-                    deps: [],
-                    listeners: [],
-                    add: managerAdd
-                };
-
-                specified[manager.id] = true;
-
-                //Only track the manager/reuse it if this is a non-plugin
-                //resource. Also only track plugin resources once
-                //the plugin has been loaded, and so the fullName is the
-                //true normalized value.
-                if (fullName && (!prefix || plugins[prefix])) {
-                    managerCallbacks[fullName] = manager;
-                }
-            }
-
-            //If there is a plugin needed, but it is not loaded,
-            //first load the plugin, then continue on.
-            if (prefix && !plugin) {
-                prefixMap = makeModuleMap(prefix);
-
-                //Clear out defined and urlFetched if the plugin was previously
-                //loaded/defined, but not as full module (as in a build
-                //situation). However, only do this work if the plugin is in
-                //defined but does not have a module export value.
-                if (prefix in defined && !defined[prefix]) {
-                    delete defined[prefix];
-                    delete urlFetched[prefixMap.url];
-                }
-
-                pluginManager = getManager(prefixMap, true);
-                pluginManager.add(function (plugin) {
-                    //Create a new manager for the normalized
-                    //resource ID and have it call this manager when
-                    //done.
-                    var newMap = makeModuleMap(map.originalName, map.parentMap),
-                        normalizedManager = getManager(newMap, true);
-
-                    //Indicate this manager is a placeholder for the real,
-                    //normalized thing. Important for when trying to map
-                    //modules and dependencies, for instance, in a build.
-                    manager.placeholder = true;
-
-                    normalizedManager.add(function (resource) {
-                        manager.callback = function () {
-                            return resource;
-                        };
-                        execManager(manager);
-                    });
-                });
-            } else if (created && shouldQueue) {
-                //Indicate the resource is not loaded yet if it is to be
-                //queued.
-                loaded[manager.id] = false;
-                queueDependency(manager);
-                addWait(manager);
-            }
-
-            return manager;
-        }
-
-        function main(inName, depArray, callback, relModuleMap) {
-            var moduleMap = makeModuleMap(inName, relModuleMap),
-                name = moduleMap.name,
-                fullName = moduleMap.fullName,
-                manager = getManager(moduleMap),
-                id = manager.id,
-                deps = manager.deps,
-                i, depArg, depName, depPrefix, cjsMod;
-
-            if (fullName) {
-                //If module already defined for context, or already loaded,
-                //then leave. Also leave if jQuery is registering but it does
-                //not match the desired version number in the config.
-                if (fullName in defined || loaded[id] === true ||
-                    (fullName === "jquery" && config.jQuery &&
-                     config.jQuery !== callback().fn.jquery)) {
-                    return;
-                }
-
-                //Set specified/loaded here for modules that are also loaded
-                //as part of a layer, where onScriptLoad is not fired
-                //for those cases. Do this after the inline define and
-                //dependency tracing is done.
-                specified[id] = true;
-                loaded[id] = true;
-
-                //If module is jQuery set up delaying its dom ready listeners.
-                if (fullName === "jquery" && callback) {
-                    jQueryCheck(callback());
-                }
-            }
-
-            //Attach real depArray and callback to the manager. Do this
-            //only if the module has not been defined already, so do this after
-            //the fullName checks above. IE can call main() more than once
-            //for a module.
-            manager.depArray = depArray;
-            manager.callback = callback;
-
-            //Add the dependencies to the deps field, and register for callbacks
-            //on the dependencies.
-            for (i = 0; i < depArray.length; i++) {
-                depArg = depArray[i];
-                //There could be cases like in IE, where a trailing comma will
-                //introduce a null dependency, so only treat a real dependency
-                //value as a dependency.
-                if (depArg) {
-                    //Split the dependency name into plugin and name parts
-                    depArg = makeModuleMap(depArg, (name ? moduleMap : relModuleMap));
-                    depName = depArg.fullName;
-                    depPrefix = depArg.prefix;
-
-                    //Fix the name in depArray to be just the name, since
-                    //that is how it will be called back later.
-                    depArray[i] = depName;
-
-                    //Fast path CommonJS standard dependencies.
-                    if (depName === "require") {
-                        deps[i] = makeRequire(moduleMap);
-                    } else if (depName === "exports") {
-                        //CommonJS module spec 1.1
-                        deps[i] = defined[fullName] = {};
-                        manager.usingExports = true;
-                    } else if (depName === "module") {
-                        //CommonJS module spec 1.1
-                        manager.cjsModule = cjsMod = deps[i] = {
-                            id: name,
-                            uri: name ? context.nameToUrl(name, null, relModuleMap) : undefined,
-                            exports: defined[fullName]
-                        };
-                    } else if (depName in defined && !(depName in waiting) &&
-                               (!(fullName in needFullExec) ||
-                                (fullName in needFullExec && fullExec[depName]))) {
-                        //Module already defined, and not in a build situation
-                        //where the module is a something that needs full
-                        //execution and this dependency has not been fully
-                        //executed. See r.js's requirePatch.js for more info
-                        //on fullExec.
-                        deps[i] = defined[depName];
-                    } else {
-                        //Mark this dependency as needing full exec if
-                        //the current module needs full exec.
-                        if (fullName in needFullExec) {
-                            needFullExec[depName] = true;
-                            //Reset state so fully executed code will get
-                            //picked up correctly.
-                            delete defined[depName];
-                            urlFetched[depArg.url] = false;
-                        }
-
-                        //Either a resource that is not loaded yet, or a plugin
-                        //resource for either a plugin that has not
-                        //loaded yet.
-                        manager.depCount += 1;
-                        manager.depCallbacks[i] = makeArgCallback(manager, i);
-                        getManager(depArg, true).add(manager.depCallbacks[i]);
-                    }
-                }
-            }
-
-            //Do not bother tracking the manager if it is all done.
-            if (!manager.depCount) {
-                //All done, execute!
-                execManager(manager);
-            } else {
-                addWait(manager);
-            }
-        }
-
-        /**
-         * Convenience method to call main for a define call that was put on
-         * hold in the defQueue.
-         */
-        function callDefMain(args) {
-            main.apply(null, args);
-        }
-
-        /**
-         * jQuery 1.4.3+ supports ways to hold off calling
-         * calling jQuery ready callbacks until all scripts are loaded. Be sure
-         * to track it if the capability exists.. Also, since jQuery 1.4.3 does
-         * not register as a module, need to do some global inference checking.
-         * Even if it does register as a module, not guaranteed to be the precise
-         * name of the global. If a jQuery is tracked for this context, then go
-         * ahead and register it as a module too, if not already in process.
-         */
-        jQueryCheck = function (jqCandidate) {
-            if (!context.jQuery) {
-                var $ = jqCandidate || (typeof jQuery !== "undefined" ? jQuery : null);
-
-                if ($) {
-                    //If a specific version of jQuery is wanted, make sure to only
-                    //use this jQuery if it matches.
-                    if (config.jQuery && $.fn.jquery !== config.jQuery) {
-                        return;
-                    }
-
-                    if ("holdReady" in $ || "readyWait" in $) {
-                        context.jQuery = $;
-
-                        //Manually create a "jquery" module entry if not one already
-                        //or in process. Note this could trigger an attempt at
-                        //a second jQuery registration, but does no harm since
-                        //the first one wins, and it is the same value anyway.
-                        callDefMain(["jquery", [], function () {
-                            return jQuery;
-                        }]);
-
-                        //Ask jQuery to hold DOM ready callbacks.
-                        if (context.scriptCount) {
-                            jQueryHoldReady($, true);
-                            context.jQueryIncremented = true;
-                        }
-                    }
-                }
-            }
-        };
-
-        function findCycle(manager, traced) {
-            var fullName = manager.map.fullName,
-                depArray = manager.depArray,
-                fullyLoaded = true,
-                i, depName, depManager, result;
-
-            if (manager.isDone || !fullName || !loaded[fullName]) {
-                return result;
-            }
-
-            //Found the cycle.
-            if (traced[fullName]) {
-                return manager;
-            }
-
-            traced[fullName] = true;
-
-            //Trace through the dependencies.
-            if (depArray) {
-                for (i = 0; i < depArray.length; i++) {
-                    //Some array members may be null, like if a trailing comma
-                    //IE, so do the explicit [i] access and check if it has a value.
-                    depName = depArray[i];
-                    if (!loaded[depName] && !reservedDependencies[depName]) {
-                        fullyLoaded = false;
-                        break;
-                    }
-                    depManager = waiting[depName];
-                    if (depManager && !depManager.isDone && loaded[depName]) {
-                        result = findCycle(depManager, traced);
-                        if (result) {
-                            break;
-                        }
-                    }
-                }
-                if (!fullyLoaded) {
-                    //Discard the cycle that was found, since it cannot
-                    //be forced yet. Also clear this module from traced.
-                    result = undefined;
-                    delete traced[fullName];
-                }
-            }
-
-            return result;
-        }
-
-        function forceExec(manager, traced) {
-            var fullName = manager.map.fullName,
-                depArray = manager.depArray,
-                i, depName, depManager, prefix, prefixManager, value;
-
-
-            if (manager.isDone || !fullName || !loaded[fullName]) {
-                return undefined;
-            }
-
-            if (fullName) {
-                if (traced[fullName]) {
-                    return defined[fullName];
-                }
-
-                traced[fullName] = true;
-            }
-
-            //Trace through the dependencies.
-            if (depArray) {
-                for (i = 0; i < depArray.length; i++) {
-                    //Some array members may be null, like if a trailing comma
-                    //IE, so do the explicit [i] access and check if it has a value.
-                    depName = depArray[i];
-                    if (depName) {
-                        //First, make sure if it is a plugin resource that the
-                        //plugin is not blocked.
-                        prefix = makeModuleMap(depName).prefix;
-                        if (prefix && (prefixManager = waiting[prefix])) {
-                            forceExec(prefixManager, traced);
-                        }
-                        depManager = waiting[depName];
-                        if (depManager && !depManager.isDone && loaded[depName]) {
-                            value = forceExec(depManager, traced);
-                            manager.depCallbacks[i](value);
-                        }
-                    }
-                }
-            }
-
-            return defined[fullName];
-        }
-
-        /**
-         * Checks if all modules for a context are loaded, and if so, evaluates the
-         * new ones in right dependency order.
-         *
-         * @private
-         */
-        function checkLoaded() {
-            var waitInterval = config.waitSeconds * 1000,
-                //It is possible to disable the wait interval by using waitSeconds of 0.
-                expired = waitInterval && (context.startTime + waitInterval) < new Date().getTime(),
-                noLoads = "", hasLoadedProp = false, stillLoading = false,
-                cycleDeps = [],
-                i, prop, err, manager, cycleManager, moduleDeps;
-
-            //If there are items still in the paused queue processing wait.
-            //This is particularly important in the sync case where each paused
-            //item is processed right away but there may be more waiting.
-            if (context.pausedCount > 0) {
-                return undefined;
-            }
-
-            //Determine if priority loading is done. If so clear the priority. If
-            //not, then do not check
-            if (config.priorityWait) {
-                if (isPriorityDone()) {
-                    //Call resume, since it could have
-                    //some waiting dependencies to trace.
-                    resume();
-                } else {
-                    return undefined;
-                }
-            }
-
-            //See if anything is still in flight.
-            for (prop in loaded) {
-                if (!(prop in empty)) {
-                    hasLoadedProp = true;
-                    if (!loaded[prop]) {
-                        if (expired) {
-                            noLoads += prop + " ";
-                        } else {
-                            stillLoading = true;
-                            if (prop.indexOf('!') === -1) {
-                                //No reason to keep looking for unfinished
-                                //loading. If the only stillLoading is a
-                                //plugin resource though, keep going,
-                                //because it may be that a plugin resource
-                                //is waiting on a non-plugin cycle.
-                                cycleDeps = [];
-                                break;
-                            } else {
-                                moduleDeps = managerCallbacks[prop] && managerCallbacks[prop].moduleDeps;
-                                if (moduleDeps) {
-                                    cycleDeps.push.apply(cycleDeps, moduleDeps);
-                                }
-                            }
-                        }
-                    }
-                }
-            }
-
-            //Check for exit conditions.
-            if (!hasLoadedProp && !context.waitCount) {
-                //If the loaded object had no items, then the rest of
-                //the work below does not need to be done.
-                return undefined;
-            }
-            if (expired && noLoads) {
-                //If wait time expired, throw error of unloaded modules.
-                err = makeError("timeout", "Load timeout for modules: " + noLoads);
-                err.requireType = "timeout";
-                err.requireModules = noLoads;
-                err.contextName = context.contextName;
-                return req.onError(err);
-            }
-
-            //If still loading but a plugin is waiting on a regular module cycle
-            //break the cycle.
-            if (stillLoading && cycleDeps.length) {
-                for (i = 0; (manager = waiting[cycleDeps[i]]); i++) {
-                    if ((cycleManager = findCycle(manager, {}))) {
-                        forceExec(cycleManager, {});
-                        break;
-                    }
-                }
-
-            }
-
-            //If still waiting on loads, and the waiting load is something
-            //other than a plugin resource, or there are still outstanding
-            //scripts, then just try back later.
-            if (!expired && (stillLoading || context.scriptCount)) {
-                //Something is still waiting to load. Wait for it, but only
-                //if a timeout is not already in effect.
-                if ((isBrowser || isWebWorker) && !checkLoadedTimeoutId) {
-                    checkLoadedTimeoutId = setTimeout(function () {
-                        checkLoadedTimeoutId = 0;
-                        checkLoaded();
-                    }, 50);
-                }
-                return undefined;
-            }
-
-            //If still have items in the waiting cue, but all modules have
-            //been loaded, then it means there are some circular dependencies
-            //that need to be broken.
-            //However, as a waiting thing is fired, then it can add items to
-            //the waiting cue, and those items should not be fired yet, so
-            //make sure to redo the checkLoaded call after breaking a single
-            //cycle, if nothing else loaded then this logic will pick it up
-            //again.
-            if (context.waitCount) {
-                //Cycle through the waitAry, and call items in sequence.
-                for (i = 0; (manager = waitAry[i]); i++) {
-                    forceExec(manager, {});
-                }
-
-                //If anything got placed in the paused queue, run it down.
-                if (context.paused.length) {
-                    resume();
-                }
-
-                //Only allow this recursion to a certain depth. Only
-                //triggered by errors in calling a module in which its
-                //modules waiting on it cannot finish loading, or some circular
-                //dependencies that then may add more dependencies.
-                //The value of 5 is a bit arbitrary. Hopefully just one extra
-                //pass, or two for the case of circular dependencies generating
-                //more work that gets resolved in the sync node case.
-                if (checkLoadedDepth < 5) {
-                    checkLoadedDepth += 1;
-                    checkLoaded();
-                }
-            }
-
-            checkLoadedDepth = 0;
-
-            //Check for DOM ready, and nothing is waiting across contexts.
-            req.checkReadyState();
-
-            return undefined;
-        }
-
-        /**
-         * Resumes tracing of dependencies and then checks if everything is loaded.
-         */
-        resume = function () {
-            var manager, map, url, i, p, args, fullName;
-
-            //Any defined modules in the global queue, intake them now.
-            context.takeGlobalQueue();
-
-            resumeDepth += 1;
-
-            if (context.scriptCount <= 0) {
-                //Synchronous envs will push the number below zero with the
-                //decrement above, be sure to set it back to zero for good measure.
-                //require() calls that also do not end up loading scripts could
-                //push the number negative too.
-                context.scriptCount = 0;
-            }
-
-            //Make sure any remaining defQueue items get properly processed.
-            while (defQueue.length) {
-                args = defQueue.shift();
-                if (args[0] === null) {
-                    return req.onError(makeError('mismatch', 'Mismatched anonymous define() module: ' + args[args.length - 1]));
-                } else {
-                    callDefMain(args);
-                }
-            }
-
-            //Skip the resume of paused dependencies
-            //if current context is in priority wait.
-            if (!config.priorityWait || isPriorityDone()) {
-                while (context.paused.length) {
-                    p = context.paused;
-                    context.pausedCount += p.length;
-                    //Reset paused list
-                    context.paused = [];
-
-                    for (i = 0; (manager = p[i]); i++) {
-                        map = manager.map;
-                        url = map.url;
-                        fullName = map.fullName;
-
-                        //If the manager is for a plugin managed resource,
-                        //ask the plugin to load it now.
-                        if (map.prefix) {
-                            callPlugin(map.prefix, manager);
-                        } else {
-                            //Regular dependency.
-                            if (!urlFetched[url] && !loaded[fullName]) {
-                                (config.requireLoad || req.load)(context, fullName, url);
-
-                                //Mark the URL as fetched, but only if it is
-                                //not an empty: URL, used by the optimizer.
-                                //In that case we need to be sure to call
-                                //load() for each module that is mapped to
-                                //empty: so that dependencies are satisfied
-                                //correctly.
-                                if (url.indexOf('empty:') !== 0) {
-                                    urlFetched[url] = true;
-                                }
-                            }
-                        }
-                    }
-
-                    //Move the start time for timeout forward.
-                    context.startTime = (new Date()).getTime();
-                    context.pausedCount -= p.length;
-                }
-            }
-
-            //Only check if loaded when resume depth is 1. It is likely that
-            //it is only greater than 1 in sync environments where a factory
-            //function also then calls the callback-style require. In those
-            //cases, the checkLoaded should not occur until the resume
-            //depth is back at the top level.
-            if (resumeDepth === 1) {
-                checkLoaded();
-            }
-
-            resumeDepth -= 1;
-
-            return undefined;
-        };
-
-        //Define the context object. Many of these fields are on here
-        //just to make debugging easier.
-        context = {
-            contextName: contextName,
-            config: config,
-            defQueue: defQueue,
-            waiting: waiting,
-            waitCount: 0,
-            specified: specified,
-            loaded: loaded,
-            urlMap: urlMap,
-            urlFetched: urlFetched,
-            scriptCount: 0,
-            defined: defined,
-            paused: [],
-            pausedCount: 0,
-            plugins: plugins,
-            needFullExec: needFullExec,
-            fake: {},
-            fullExec: fullExec,
-            managerCallbacks: managerCallbacks,
-            makeModuleMap: makeModuleMap,
-            normalize: normalize,
-            /**
-             * Set a configuration for the context.
-             * @param {Object} cfg config object to integrate.
-             */
-            configure: function (cfg) {
-                var paths, prop, packages, pkgs, packagePaths, requireWait;
-
-                //Make sure the baseUrl ends in a slash.
-                if (cfg.baseUrl) {
-                    if (cfg.baseUrl.charAt(cfg.baseUrl.length - 1) !== "/") {
-                        cfg.baseUrl += "/";
-                    }
-                }
-
-                //Save off the paths and packages since they require special processing,
-                //they are additive.
-                paths = config.paths;
-                packages = config.packages;
-                pkgs = config.pkgs;
-
-                //Mix in the config values, favoring the new values over
-                //existing ones in context.config.
-                mixin(config, cfg, true);
-
-                //Adjust paths if necessary.
-                if (cfg.paths) {
-                    for (prop in cfg.paths) {
-                        if (!(prop in empty)) {
-                            paths[prop] = cfg.paths[prop];
-                        }
-                    }
-                    config.paths = paths;
-                }
-
-                packagePaths = cfg.packagePaths;
-                if (packagePaths || cfg.packages) {
-                    //Convert packagePaths into a packages config.
-                    if (packagePaths) {
-                        for (prop in packagePaths) {
-                            if (!(prop in empty)) {
-                                configurePackageDir(pkgs, packagePaths[prop], prop);
-                            }
-                        }
-                    }
-
-                    //Adjust packages if necessary.
-                    if (cfg.packages) {
-                        configurePackageDir(pkgs, cfg.packages);
-                    }
-
-                    //Done with modifications, assing packages back to context config
-                    config.pkgs = pkgs;
-                }
-
-                //If priority loading is in effect, trigger the loads now
-                if (cfg.priority) {
-                    //Hold on to requireWait value, and reset it after done
-                    requireWait = context.requireWait;
-
-                    //Allow tracing some require calls to allow the fetching
-                    //of the priority config.
-                    context.requireWait = false;
-                    //But first, call resume to register any defined modules that may
-                    //be in a data-main built file before the priority config
-                    //call.
-                    resume();
-
-                    context.require(cfg.priority);
-
-                    //Trigger a resume right away, for the case when
-                    //the script with the priority load is done as part
-                    //of a data-main call. In that case the normal resume
-                    //call will not happen because the scriptCount will be
-                    //at 1, since the script for data-main is being processed.
-                    resume();
-
-                    //Restore previous state.
-                    context.requireWait = requireWait;
-                    config.priorityWait = cfg.priority;
-                }
-
-                //If a deps array or a config callback is specified, then call
-                //require with those args. This is useful when require is defined as a
-                //config object before require.js is loaded.
-                if (cfg.deps || cfg.callback) {
-                    context.require(cfg.deps || [], cfg.callback);
-                }
-            },
-
-            requireDefined: function (moduleName, relModuleMap) {
-                return makeModuleMap(moduleName, relModuleMap).fullName in defined;
-            },
-
-            requireSpecified: function (moduleName, relModuleMap) {
-                return makeModuleMap(moduleName, relModuleMap).fullName in specified;
-            },
-
-            require: function (deps, callback, relModuleMap) {
-                var moduleName, fullName, moduleMap;
-                if (typeof deps === "string") {
-                    if (isFunction(callback)) {
-                        //Invalid call
-                        return req.onError(makeError("requireargs", "Invalid require call"));
-                    }
-
-                    //Synchronous access to one module. If require.get is
-                    //available (as in the Node adapter), prefer that.
-                    //In this case deps is the moduleName and callback is
-                    //the relModuleMap
-                    if (req.get) {
-                        return req.get(context, deps, callback);
-                    }
-
-                    //Just return the module wanted. In this scenario, the
-                    //second arg (if passed) is just the relModuleMap.
-                    moduleName = deps;
-                    relModuleMap = callback;
-
-                    //Normalize module name, if it contains . or ..
-                    moduleMap = makeModuleMap(moduleName, relModuleMap);
-                    fullName = moduleMap.fullName;
-
-                    if (!(fullName in defined)) {
-                        return req.onError(makeError("notloaded", "Module name '" +
-                                    moduleMap.fullName +
-                                    "' has not been loaded yet for context: " +
-                                    contextName));
-                    }
-                    return defined[fullName];
-                }
-
-                //Call main but only if there are dependencies or
-                //a callback to call.
-                if (deps && deps.length || callback) {
-                    main(null, deps, callback, relModuleMap);
-                }
-
-                //If the require call does not trigger anything new to load,
-                //then resume the dependency processing.
-                if (!context.requireWait) {
-                    while (!context.scriptCount && context.paused.length) {
-                        resume();
-                    }
-                }
-                return context.require;
-            },
-
-            /**
-             * Internal method to transfer globalQueue items to this context's
-             * defQueue.
-             */
-            takeGlobalQueue: function () {
-                //Push all the globalDefQueue items into the context's defQueue
-                if (globalDefQueue.length) {
-                    //Array splice in the values since the context code has a
-                    //local var ref to defQueue, so cannot just reassign the one
-                    //on context.
-                    apsp.apply(context.defQueue,
-                               [context.defQueue.length - 1, 0].concat(globalDefQueue));
-                    globalDefQueue = [];
-                }
-            },
-
-            /**
-             * Internal method used by environment adapters to complete a load event.
-             * A load event could be a script load or just a load pass from a synchronous
-             * load call.
-             * @param {String} moduleName the name of the module to potentially complete.
-             */
-            completeLoad: function (moduleName) {
-                var args;
-
-                context.takeGlobalQueue();
-
-                while (defQueue.length) {
-                    args = defQueue.shift();
-
-                    if (args[0] === null) {
-                        args[0] = moduleName;
-                        break;
-                    } else if (args[0] === moduleName) {
-                        //Found matching define call for this script!
-                        break;
-                    } else {
-                        //Some other named define call, most likely the result
-                        //of a build layer that included many define calls.
-                        callDefMain(args);
-                        args = null;
-                    }
-                }
-                if (args) {
-                    callDefMain(args);
-                } else {
-                    //A script that does not call define(), so just simulate
-                    //the call for it. Special exception for jQuery dynamic load.
-                    callDefMain([moduleName, [],
-                                moduleName === "jquery" && typeof jQuery !== "undefined" ?
-                                function () {
-                                    return jQuery;
-                                } : null]);
-                }
-
-                //Doing this scriptCount decrement branching because sync envs
-                //need to decrement after resume, otherwise it looks like
-                //loading is complete after the first dependency is fetched.
-                //For browsers, it works fine to decrement after, but it means
-                //the checkLoaded setTimeout 50 ms cost is taken. To avoid
-                //that cost, decrement beforehand.
-                if (req.isAsync) {
-                    context.scriptCount -= 1;
-                }
-                resume();
-                if (!req.isAsync) {
-                    context.scriptCount -= 1;
-                }
-            },
-
-            /**
-             * Converts a module name + .extension into an URL path.
-             * *Requires* the use of a module name. It does not support using
-             * plain URLs like nameToUrl.
-             */
-            toUrl: function (moduleNamePlusExt, relModuleMap) {
-                var index = moduleNamePlusExt.lastIndexOf("."),
-                    ext = null;
-
-                if (index !== -1) {
-                    ext = moduleNamePlusExt.substring(index, moduleNamePlusExt.length);
-                    moduleNamePlusExt = moduleNamePlusExt.substring(0, index);
-                }
-
-                return context.nameToUrl(moduleNamePlusExt, ext, relModuleMap);
-            },
-
-            /**
-             * Converts a module name to a file path. Supports cases where
-             * moduleName may actually be just an URL.
-             */
-            nameToUrl: function (moduleName, ext, relModuleMap) {
-                var paths, pkgs, pkg, pkgPath, syms, i, parentModule, url,
-                    config = context.config;
-
-                //Normalize module name if have a base relative module name to work from.
-                moduleName = normalize(moduleName, relModuleMap && relModuleMap.fullName);
-
-                //If a colon is in the URL, it indicates a protocol is used and it is just
-                //an URL to a file, or if it starts with a slash or ends with .js, it is just a plain file.
-                //The slash is important for protocol-less URLs as well as full paths.
-                if (req.jsExtRegExp.test(moduleName)) {
-                    //Just a plain path, not module name lookup, so just return it.
-                    //Add extension if it is included. This is a bit wonky, only non-.js things pass
-                    //an extension, this method probably needs to be reworked.
-                    url = moduleName + (ext ? ext : "");
-                } else {
-                    //A module that needs to be converted to a path.
-                    paths = config.paths;
-                    pkgs = config.pkgs;
-
-                    syms = moduleName.split("/");
-                    //For each module name segment, see if there is a path
-                    //registered for it. Start with most specific name
-                    //and work up from it.
-                    for (i = syms.length; i > 0; i--) {
-                        parentModule = syms.slice(0, i).join("/");
-                        if (paths[parentModule]) {
-                            syms.splice(0, i, paths[parentModule]);
-                            break;
-                        } else if ((pkg = pkgs[parentModule])) {
-                            //If module name is just the package name, then looking
-                            //for the main module.
-                            if (moduleName === pkg.name) {
-                                pkgPath = pkg.location + '/' + pkg.main;
-                            } else {
-                                pkgPath = pkg.location;
-                            }
-                            syms.splice(0, i, pkgPath);
-                            break;
-                        }
-                    }
-
-                    //Join the path parts together, then figure out if baseUrl is needed.
-                    url = syms.join("/") + (ext || ".js");
-                    url = (url.charAt(0) === '/' || url.match(/^\w+:/) ? "" : config.baseUrl) + url;
-                }
-
-                return config.urlArgs ? url +
-                                        ((url.indexOf('?') === -1 ? '?' : '&') +
-                                         config.urlArgs) : url;
-            }
-        };
-
-        //Make these visible on the context so can be called at the very
-        //end of the file to bootstrap
-        context.jQueryCheck = jQueryCheck;
-        context.resume = resume;
-
-        return context;
-    }
-
-    /**
-     * Main entry point.
-     *
-     * If the only argument to require is a string, then the module that
-     * is represented by that string is fetched for the appropriate context.
-     *
-     * If the first argument is an array, then it will be treated as an array
-     * of dependency string names to fetch. An optional function callback can
-     * be specified to execute when all of those dependencies are available.
-     *
-     * Make a local req variable to help Caja compliance (it assumes things
-     * on a require that are not standardized), and to give a short
-     * name for minification/local scope use.
-     */
-    req = requirejs = function (deps, callback) {
-
-        //Find the right context, use default
-        var contextName = defContextName,
-            context, config;
-
-        // Determine if have config object in the call.
-        if (!isArray(deps) && typeof deps !== "string") {
-            // deps is a config object
-            config = deps;
-            if (isArray(callback)) {
-                // Adjust args if there are dependencies
-                deps = callback;
-                callback = arguments[2];
-            } else {
-                deps = [];
-            }
-        }
-
-        if (config && config.context) {
-            contextName = config.context;
-        }
-
-        context = contexts[contextName] ||
-                  (contexts[contextName] = newContext(contextName));
-
-        if (config) {
-            context.configure(config);
-        }
-
-        return context.require(deps, callback);
-    };
-
-    /**
-     * Support require.config() to make it easier to cooperate with other
-     * AMD loaders on globally agreed names.
-     */
-    req.config = function (config) {
-        return req(config);
-    };
-
-    /**
-     * Export require as a global, but only if it does not already exist.
-     */
-    if (!require) {
-        require = req;
-    }
-
-    /**
-     * Global require.toUrl(), to match global require, mostly useful
-     * for debugging/work in the global space.
-     */
-    req.toUrl = function (moduleNamePlusExt) {
-        return contexts[defContextName].toUrl(moduleNamePlusExt);
-    };
-
-    req.version = version;
-
-    //Used to filter out dependencies that are already paths.
-    req.jsExtRegExp = /^\/|:|\?|\.js$/;
-    s = req.s = {
-        contexts: contexts,
-        //Stores a list of URLs that should not get async script tag treatment.
-        skipAsync: {}
-    };
-
-    req.isAsync = req.isBrowser = isBrowser;
-    if (isBrowser) {
-        head = s.head = document.getElementsByTagName("head")[0];
-        //If BASE tag is in play, using appendChild is a problem for IE6.
-        //When that browser dies, this can be removed. Details in this jQuery bug:
-        //http://dev.jquery.com/ticket/2709
-        baseElement = document.getElementsByTagName("base")[0];
-        if (baseElement) {
-            head = s.head = baseElement.parentNode;
-        }
-    }
-
-    /**
-     * Any errors that require explicitly generates will be passed to this
-     * function. Intercept/override it if you want custom error handling.
-     * @param {Error} err the error object.
-     */
-    req.onError = function (err) {
-        throw err;
-    };
-
-    /**
-     * Does the request to load a module for the browser case.
-     * Make this a separate function to allow other environments
-     * to override it.
-     *
-     * @param {Object} context the require context to find state.
-     * @param {String} moduleName the name of the module.
-     * @param {Object} url the URL to the module.
-     */
-    req.load = function (context, moduleName, url) {
-        req.resourcesReady(false);
-
-        context.scriptCount += 1;
-        req.attach(url, context, moduleName);
-
-        //If tracking a jQuery, then make sure its ready callbacks
-        //are put on hold to prevent its ready callbacks from
-        //triggering too soon.
-        if (context.jQuery && !context.jQueryIncremented) {
-            jQueryHoldReady(context.jQuery, true);
-            context.jQueryIncremented = true;
-        }
-    };
-
-    function getInteractiveScript() {
-        var scripts, i, script;
-        if (interactiveScript && interactiveScript.readyState === 'interactive') {
-            return interactiveScript;
-        }
-
-        scripts = document.getElementsByTagName('script');
-        for (i = scripts.length - 1; i > -1 && (script = scripts[i]); i--) {
-            if (script.readyState === 'interactive') {
-                return (interactiveScript = script);
-            }
-        }
-
-        return null;
-    }
-
-    /**
-     * The function that handles definitions of modules. Differs from
-     * require() in that a string for the module should be the first argument,
-     * and the function to execute after dependencies are loaded should
-     * return a value to define the module corresponding to the first argument's
-     * name.
-     */
-    define = function (name, deps, callback) {
-        var node, context;
-
-        //Allow for anonymous functions
-        if (typeof name !== 'string') {
-            //Adjust args appropriately
-            callback = deps;
-            deps = name;
-            name = null;
-        }
-
-        //This module may not have dependencies
-        if (!isArray(deps)) {
-            callback = deps;
-            deps = [];
-        }
-
-        //If no name, and callback is a function, then figure out if it a
-        //CommonJS thing with dependencies.
-        if (!deps.length && isFunction(callback)) {
-            //Remove comments from the callback string,
-            //look for require calls, and pull them into the dependencies,
-            //but only if there are function args.
-            if (callback.length) {
-                callback
-                    .toString()
-                    .replace(commentRegExp, "")
-                    .replace(cjsRequireRegExp, function (match, dep) {
-                        deps.push(dep);
-                    });
-
-                //May be a CommonJS thing even without require calls, but still
-                //could use exports, and module. Avoid doing exports and module
-                //work though if it just needs require.
-                //REQUIRES the function to expect the CommonJS variables in the
-                //order listed below.
-                deps = (callback.length === 1 ? ["require"] : ["require", "exports", "module"]).concat(deps);
-            }
-        }
-
-        //If in IE 6-8 and hit an anonymous define() call, do the interactive
-        //work.
-        if (useInteractive) {
-            node = currentlyAddingScript || getInteractiveScript();
-            if (node) {
-                if (!name) {
-                    name = node.getAttribute("data-requiremodule");
-                }
-                context = contexts[node.getAttribute("data-requirecontext")];
-            }
-        }
-
-        //Always save off evaluating the def call until the script onload handler.
-        //This allows multiple modules to be in a file without prematurely
-        //tracing dependencies, and allows for anonymous module support,
-        //where the module name is not known until the script onload event
-        //occurs. If no context, use the global queue, and get it processed
-        //in the onscript load callback.
-        (context ? context.defQueue : globalDefQueue).push([name, deps, callback]);
-
-        return undefined;
-    };
-
-    define.amd = {
-        multiversion: true,
-        plugins: true,
-        jQuery: true
-    };
-
-    /**
-     * Executes the text. Normally just uses eval, but can be modified
-     * to use a more environment specific call.
-     * @param {String} text the text to execute/evaluate.
-     */
-    req.exec = function (text) {
-        return eval(text);
-    };
-
-    /**
-     * Executes a module callack function. Broken out as a separate function
-     * solely to allow the build system to sequence the files in the built
-     * layer in the right sequence.
-     *
-     * @private
-     */
-    req.execCb = function (name, callback, args, exports) {
-        return callback.apply(exports, args);
-    };
-
-
-    /**
-     * Adds a node to the DOM. Public function since used by the order plugin.
-     * This method should not normally be called by outside code.
-     */
-    req.addScriptToDom = function (node) {
-        //For some cache cases in IE 6-8, the script executes before the end
-        //of the appendChild execution, so to tie an anonymous define
-        //call to the module name (which is stored on the node), hold on
-        //to a reference to this node, but clear after the DOM insertion.
-        currentlyAddingScript = node;
-        if (baseElement) {
-            head.insertBefore(node, baseElement);
-        } else {
-            head.appendChild(node);
-        }
-        currentlyAddingScript = null;
-    };
-
-    /**
-     * callback for script loads, used to check status of loading.
-     *
-     * @param {Event} evt the event from the browser for the script
-     * that was loaded.
-     *
-     * @private
-     */
-    req.onScriptLoad = function (evt) {
-        //Using currentTarget instead of target for Firefox 2.0's sake. Not
-        //all old browsers will be supported, but this one was easy enough
-        //to support and still makes sense.
-        var node = evt.currentTarget || evt.srcElement, contextName, moduleName,
-            context;
-
-        if (evt.type === "load" || (node && readyRegExp.test(node.readyState))) {
-            //Reset interactive script so a script node is not held onto for
-            //to long.
-            interactiveScript = null;
-
-            //Pull out the name of the module and the context.
-            contextName = node.getAttribute("data-requirecontext");
-            moduleName = node.getAttribute("data-requiremodule");
-            context = contexts[contextName];
-
-            contexts[contextName].completeLoad(moduleName);
-
-            //Clean up script binding. Favor detachEvent because of IE9
-            //issue, see attachEvent/addEventListener comment elsewhere
-            //in this file.
-            if (node.detachEvent && !isOpera) {
-                //Probably IE. If not it will throw an error, which will be
-                //useful to know.
-                node.detachEvent("onreadystatechange", req.onScriptLoad);
-            } else {
-                node.removeEventListener("load", req.onScriptLoad, false);
-            }
-        }
-    };
-
-    /**
-     * Attaches the script represented by the URL to the current
-     * environment. Right now only supports browser loading,
-     * but can be redefined in other environments to do the right thing.
-     * @param {String} url the url of the script to attach.
-     * @param {Object} context the context that wants the script.
-     * @param {moduleName} the name of the module that is associated with the script.
-     * @param {Function} [callback] optional callback, defaults to require.onScriptLoad
-     * @param {String} [type] optional type, defaults to text/javascript
-     * @param {Function} [fetchOnlyFunction] optional function to indicate the script node
-     * should be set up to fetch the script but do not attach it to the DOM
-     * so that it can later be attached to execute it. This is a way for the
-     * order plugin to support ordered loading in IE. Once the script is fetched,
-     * but not executed, the fetchOnlyFunction will be called.
-     */
-    req.attach = function (url, context, moduleName, callback, type, fetchOnlyFunction) {
-        var node;
-        if (isBrowser) {
-            //In the browser so use a script tag
-            callback = callback || req.onScriptLoad;
-            node = context && context.config && context.config.xhtml ?
-                    document.createElementNS("http://www.w3.org/1999/xhtml", "html:script") :
-                    document.createElement("script");
-            node.type = type || (context && context.config.scriptType) ||
-                        "text/javascript";
-            node.charset = "utf-8";
-            //Use async so Gecko does not block on executing the script if something
-            //like a long-polling comet tag is being run first. Gecko likes
-            //to evaluate scripts in DOM order, even for dynamic scripts.
-            //It will fetch them async, but only evaluate the contents in DOM
-            //order, so a long-polling script tag can delay execution of scripts
-            //after it. But telling Gecko we expect async gets us the behavior
-            //we want -- execute it whenever it is finished downloading. Only
-            //Helps Firefox 3.6+
-            //Allow some URLs to not be fetched async. Mostly helps the order!
-            //plugin
-            node.async = !s.skipAsync[url];
-
-            if (context) {
-                node.setAttribute("data-requirecontext", context.contextName);
-            }
-            node.setAttribute("data-requiremodule", moduleName);
-
-            //Set up load listener. Test attachEvent first because IE9 has
-            //a subtle issue in its addEventListener and script onload firings
-            //that do not match the behavior of all other browsers with
-            //addEventListener support, which fire the onload event for a
-            //script right after the script execution. See:
-            //https://connect.microsoft.com/IE/feedback/details/648057/script-onload-event-is-not-fired-immediately-after-script-execution
-            //UNFORTUNATELY Opera implements attachEvent but does not follow the script
-            //script execution mode.
-            if (node.attachEvent && !isOpera) {
-                //Probably IE. IE (at least 6-8) do not fire
-                //script onload right after executing the script, so
-                //we cannot tie the anonymous define call to a name.
-                //However, IE reports the script as being in "interactive"
-                //readyState at the time of the define call.
-                useInteractive = true;
-
-
-                if (fetchOnlyFunction) {
-                    //Need to use old school onreadystate here since
-                    //when the event fires and the node is not attached
-                    //to the DOM, the evt.srcElement is null, so use
-                    //a closure to remember the node.
-                    node.onreadystatechange = function (evt) {
-                        //Script loaded but not executed.
-                        //Clear loaded handler, set the real one that
-                        //waits for script execution.
-                        if (node.readyState === 'loaded') {
-                            node.onreadystatechange = null;
-                            node.attachEvent("onreadystatechange", callback);
-                            fetchOnlyFunction(node);
-                        }
-                    };
-                } else {
-                    node.attachEvent("onreadystatechange", callback);
-                }
-            } else {
-                node.addEventListener("load", callback, false);
-            }
-            node.src = url;
-
-            //Fetch only means waiting to attach to DOM after loaded.
-            if (!fetchOnlyFunction) {
-                req.addScriptToDom(node);
-            }
-
-            return node;
-        } else if (isWebWorker) {
-            //In a web worker, use importScripts. This is not a very
-            //efficient use of importScripts, importScripts will block until
-            //its script is downloaded and evaluated. However, if web workers
-            //are in play, the expectation that a build has been done so that
-            //only one script needs to be loaded anyway. This may need to be
-            //reevaluated if other use cases become common.
-            importScripts(url);
-
-            //Account for anonymous modules
-            context.completeLoad(moduleName);
-        }
-        return null;
-    };
-
-    //Look for a data-main script attribute, which could also adjust the baseUrl.
-    if (isBrowser) {
-        //Figure out baseUrl. Get it from the script tag with require.js in it.
-        scripts = document.getElementsByTagName("script");
-
-        for (globalI = scripts.length - 1; globalI > -1 && (script = scripts[globalI]); globalI--) {
-            //Set the "head" where we can append children by
-            //using the script's parent.
-            if (!head) {
-                head = script.parentNode;
-            }
-
-            //Look for a data-main attribute to set main script for the page
-            //to load. If it is there, the path to data main becomes the
-            //baseUrl, if it is not already set.
-            if ((dataMain = script.getAttribute('data-main'))) {
-                if (!cfg.baseUrl) {
-                    //Pull off the directory of data-main for use as the
-                    //baseUrl.
-                    src = dataMain.split('/');
-                    mainScript = src.pop();
-                    subPath = src.length ? src.join('/')  + '/' : './';
-
-                    //Set final config.
-                    cfg.baseUrl = subPath;
-                    //Strip off any trailing .js since dataMain is now
-                    //like a module name.
-                    dataMain = mainScript.replace(jsSuffixRegExp, '');
-                }
-
-                //Put the data-main script in the files to load.
-                cfg.deps = cfg.deps ? cfg.deps.concat(dataMain) : [dataMain];
-
-                break;
-            }
-        }
-    }
-
-    //See if there is nothing waiting across contexts, and if not, trigger
-    //resourcesReady.
-    req.checkReadyState = function () {
-        var contexts = s.contexts, prop;
-        for (prop in contexts) {
-            if (!(prop in empty)) {
-                if (contexts[prop].waitCount) {
-                    return;
-                }
-            }
-        }
-        req.resourcesReady(true);
-    };
-
-    /**
-     * Internal function that is triggered whenever all scripts/resources
-     * have been loaded by the loader. Can be overridden by other, for
-     * instance the domReady plugin, which wants to know when all resources
-     * are loaded.
-     */
-    req.resourcesReady = function (isReady) {
-        var contexts, context, prop;
-
-        //First, set the public variable indicating that resources are loading.
-        req.resourcesDone = isReady;
-
-        if (req.resourcesDone) {
-            //If jQuery with DOM ready delayed, release it now.
-            contexts = s.contexts;
-            for (prop in contexts) {
-                if (!(prop in empty)) {
-                    context = contexts[prop];
-                    if (context.jQueryIncremented) {
-                        jQueryHoldReady(context.jQuery, false);
-                        context.jQueryIncremented = false;
-                    }
-                }
-            }
-        }
-    };
-
-    //FF < 3.6 readyState fix. Needed so that domReady plugin
-    //works well in that environment, since require.js is normally
-    //loaded via an HTML script tag so it will be there before window load,
-    //where the domReady plugin is more likely to be loaded after window load.
-    req.pageLoaded = function () {
-        if (document.readyState !== "complete") {
-            document.readyState = "complete";
-        }
-    };
-    if (isBrowser) {
-        if (document.addEventListener) {
-            if (!document.readyState) {
-                document.readyState = "loading";
-                window.addEventListener("load", req.pageLoaded, false);
-            }
-        }
-    }
-
-    //Set up default context. If require was a configuration object, use that as base config.
-    req(cfg);
-
-    //If modules are built into require.js, then need to make sure dependencies are
-    //traced. Use a setTimeout in the browser world, to allow all the modules to register
-    //themselves. In a non-browser env, assume that modules are not built into require.js,
-    //which seems odd to do on the server.
-    if (req.isAsync && typeof setTimeout !== "undefined") {
-        ctx = s.contexts[(cfg.context || defContextName)];
-        //Indicate that the script that includes require() is still loading,
-        //so that require()'d dependencies are not traced until the end of the
-        //file is parsed (approximated via the setTimeout call).
-        ctx.requireWait = true;
-        setTimeout(function () {
-            ctx.requireWait = false;
-
-            if (!ctx.scriptCount) {
-                ctx.resume();
-            }
-            req.checkReadyState();
-        }, 0);
-    }
-}());
-
-
-    if (env === 'rhino') {
-        /**
- * @license RequireJS rhino Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global require: false, java: false, load: false */
-
-(function () {
-
-    require.load = function (context, moduleName, url) {
-        //Indicate a the module is in process of loading.
-        context.scriptCount += 1;
-
-        load(url);
-
-        //Support anonymous modules.
-        context.completeLoad(moduleName);
-    };
-
-}());
-    } else if (env === 'node') {
-        this.requirejsVars = {
-            require: require,
-            requirejs: require,
-            define: define,
-            nodeRequire: nodeRequire
-        };
-        require.nodeRequire = nodeRequire;
-
-        /**
- * @license RequireJS node Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint regexp: false, strict: false */
-/*global require: false, define: false, requirejsVars: false, process: false */
-
-/**
- * This adapter assumes that x.js has loaded it and set up
- * some variables. This adapter just allows limited RequireJS
- * usage from within the requirejs directory. The general
- * node adapater is r.js.
- */
-
-(function () {
-    var nodeReq = requirejsVars.nodeRequire,
-        req = requirejsVars.require,
-        def = requirejsVars.define,
-        fs = nodeReq('fs'),
-        path = nodeReq('path'),
-        vm = nodeReq('vm');
-
-    //Supply an implementation that allows synchronous get of a module.
-    req.get = function (context, moduleName, relModuleMap) {
-        if (moduleName === "require" || moduleName === "exports" || moduleName === "module") {
-            req.onError(new Error("Explicit require of " + moduleName + " is not allowed."));
-        }
-
-        var ret,
-            moduleMap = context.makeModuleMap(moduleName, relModuleMap);
-
-        //Normalize module name, if it contains . or ..
-        moduleName = moduleMap.fullName;
-
-        if (moduleName in context.defined) {
-            ret = context.defined[moduleName];
-        } else {
-            if (ret === undefined) {
-                //Try to dynamically fetch it.
-                req.load(context, moduleName, moduleMap.url);
-                //The above call is sync, so can do the next thing safely.
-                ret = context.defined[moduleName];
-            }
-        }
-
-        return ret;
-    };
-
-    //Add wrapper around the code so that it gets the requirejs
-    //API instead of the Node API, and it is done lexically so
-    //that it survives later execution.
-    req.makeNodeWrapper = function (contents) {
-        return '(function (require, requirejs, define) { ' +
-                contents +
-                '\n}(requirejsVars.require, requirejsVars.requirejs, requirejsVars.define));';
-    };
-
-    requirejsVars.nodeLoad = req.load = function (context, moduleName, url) {
-        var contents, err;
-
-        //Indicate a the module is in process of loading.
-        context.scriptCount += 1;
-
-        if (path.existsSync(url)) {
-            contents = fs.readFileSync(url, 'utf8');
-
-            contents = req.makeNodeWrapper(contents);
-            try {
-                vm.runInThisContext(contents, fs.realpathSync(url));
-            } catch (e) {
-                err = new Error('Evaluating ' + url + ' as module "' +
-                                moduleName + '" failed with error: ' + e);
-                err.originalError = e;
-                err.moduleName = moduleName;
-                err.fileName = url;
-                return req.onError(err);
-            }
-        } else {
-            def(moduleName, function () {
-                try {
-                    return (context.config.nodeRequire || req.nodeRequire)(moduleName);
-                } catch (e) {
-                    err = new Error('Calling node\'s require("' +
-                                        moduleName + '") failed with error: ' + e);
-                    err.originalError = e;
-                    err.moduleName = moduleName;
-                    return req.onError(err);
-                }
-            });
-        }
-
-        //Support anonymous modules.
-        context.completeLoad(moduleName);
-
-        return undefined;
-    };
-
-    //Override to provide the function wrapper for define/require.
-    req.exec = function (text) {
-        /*jslint evil: true */
-        text = req.makeNodeWrapper(text);
-        return eval(text);
-    };
-
-    //Hold on to the original execCb to use in useLib calls.
-    requirejsVars.nodeRequireExecCb = require.execCb;
-}());
-
-    }
-
-    //Support a default file name to execute. Useful for hosted envs
-    //like Joyent where it defaults to a server.js as the only executed
-    //script. But only do it if this is not an optimization run.
-    if (commandOption !== 'o' && (!fileName || !jsSuffixRegExp.test(fileName))) {
-        fileName = 'main.js';
-    }
-
-    /**
-     * Loads the library files that can be used for the optimizer, or for other
-     * tasks.
-     */
-    function loadLib() {
-        /**
- * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global Packages: false, process: false, window: false, navigator: false,
-  document: false, define: false */
-
-/**
- * A plugin that modifies any /env/ path to be the right path based on
- * the host environment. Right now only works for Node, Rhino and browser.
- */
-(function () {
-    var pathRegExp = /(\/|^)env\/|\{env\}/,
-        env = 'unknown';
-
-    if (typeof Packages !== 'undefined') {
-        env = 'rhino';
-    } else if (typeof process !== 'undefined') {
-        env = 'node';
-    } else if (typeof window !== "undefined" && navigator && document) {
-        env = 'browser';
-    }
-
-    define('env', {
-        load: function (name, req, load, config) {
-            //Allow override in the config.
-            if (config.env) {
-                env = config.env;
-            }
-
-            name = name.replace(pathRegExp, function (match, prefix) {
-                if (match.indexOf('{') === -1) {
-                    return prefix + env + '/';
-                } else {
-                    return env;
-                }
-            });
-
-            req([name], function (mod) {
-                load(mod);
-            });
-        }
-    });
-}());
-if(env === 'node') {
-/**
- * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define: false, process: false */
-
-define('node/args', function () {
-    //Do not return the "node" or "r.js" arguments
-    var args = process.argv.slice(2);
-
-    //Ignore any command option used for rq.js
-    if (args[0] && args[0].indexOf('-' === 0)) {
-        args = args.slice(1);
-    }
-
-    return args;
-});
-
-}
-
-if(env === 'rhino') {
-/**
- * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define: false, process: false */
-
-var jsLibRhinoArgs = (typeof rhinoArgs !== 'undefined' && rhinoArgs) || [].concat(Array.prototype.slice.call(arguments, 0));
-
-define('rhino/args', function () {
-    var args = jsLibRhinoArgs;
-
-    //Ignore any command option used for rq.js
-    if (args[0] && args[0].indexOf('-' === 0)) {
-        args = args.slice(1);
-    }
-
-    return args;
-});
-
-}
-
-if(env === 'node') {
-/**
- * @license RequireJS Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define: false, console: false */
-
-define('node/load', ['fs'], function (fs) {
-    function load(fileName) {
-        var contents = fs.readFileSync(fileName, 'utf8');
-        process.compile(contents, fileName);
-    }
-
-    return load;
-});
-
-}
-
-if(env === 'rhino') {
-/**
- * @license RequireJS Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define: false, load: false */
-
-define('rhino/load', function () {
-    return load;
-});
-
-}
-
-if(env === 'node') {
-/**
- * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint plusplus: false, octal:false, strict: false */
-/*global define: false, process: false */
-
-define('node/file', ['fs', 'path'], function (fs, path) {
-
-    var isWindows = process.platform === 'win32',
-        windowsDriveRegExp = /^[a-zA-Z]\:\/$/,
-        file;
-
-    function frontSlash(path) {
-        return path.replace(/\\/g, '/');
-    }
-
-    function exists(path) {
-        if (isWindows && path.charAt(path.length - 1) === '/' &&
-            path.charAt(path.length - 2) !== ':') {
-            path = path.substring(0, path.length - 1);
-        }
-
-        try {
-            fs.statSync(path);
-            return true;
-        } catch (e) {
-            return false;
-        }
-    }
-
-    function mkDir(dir) {
-        if (!exists(dir) && (!isWindows || !windowsDriveRegExp.test(dir))) {
-            fs.mkdirSync(dir, 511);
-        }
-    }
-
-    function mkFullDir(dir) {
-        var parts = dir.split('/'),
-            currDir = '',
-            first = true;
-
-        parts.forEach(function (part) {
-            //First part may be empty string if path starts with a slash.
-            currDir += part + '/';
-            first = false;
-
-            if (part) {
-                mkDir(currDir);
-            }
-        });
-    }
-
-    file = {
-        backSlashRegExp: /\\/g,
-        exclusionRegExp: /^\./,
-        getLineSeparator: function () {
-            return '/';
-        },
-
-        exists: function (fileName) {
-            return exists(fileName);
-        },
-
-        parent: function (fileName) {
-            var parts = fileName.split('/');
-            parts.pop();
-            return parts.join('/');
-        },
-
-        /**
-         * Gets the absolute file path as a string, normalized
-         * to using front slashes for path separators.
-         * @param {String} fileName
-         */
-        absPath: function (fileName) {
-            return frontSlash(path.normalize(frontSlash(fs.realpathSync(fileName))));
-        },
-
-        normalize: function (fileName) {
-            return frontSlash(path.normalize(fileName));
-        },
-
-        isFile: function (path) {
-            return fs.statSync(path).isFile();
-        },
-
-        isDirectory: function (path) {
-            return fs.statSync(path).isDirectory();
-        },
-
-        getFilteredFileList: function (/*String*/startDir, /*RegExp*/regExpFilters, /*boolean?*/makeUnixPaths) {
-            //summary: Recurses startDir and finds matches to the files that match regExpFilters.include
-            //and do not match regExpFilters.exclude. Or just one regexp can be passed in for regExpFilters,
-            //and it will be treated as the "include" case.
-            //Ignores files/directories that start with a period (.) unless exclusionRegExp
-            //is set to another value.
-            var files = [], topDir, regExpInclude, regExpExclude, dirFileArray,
-                i, stat, filePath, ok, dirFiles, fileName;
-
-            topDir = startDir;
-
-            regExpInclude = regExpFilters.include || regExpFilters;
-            regExpExclude = regExpFilters.exclude || null;
-
-            if (file.exists(topDir)) {
-                dirFileArray = fs.readdirSync(topDir);
-                for (i = 0; i < dirFileArray.length; i++) {
-                    fileName = dirFileArray[i];
-                    filePath = path.join(topDir, fileName);
-                    stat = fs.statSync(filePath);
-                    if (stat.isFile()) {
-                        if (makeUnixPaths) {
-                            //Make sure we have a JS string.
-                            if (filePath.indexOf("/") === -1) {
-                                filePath = frontSlash(filePath);
-                            }
-                        }
-
-                        ok = true;
-                        if (regExpInclude) {
-                            ok = filePath.match(regExpInclude);
-                        }
-                        if (ok && regExpExclude) {
-                            ok = !filePath.match(regExpExclude);
-                        }
-
-                        if (ok && (!file.exclusionRegExp ||
-                            !file.exclusionRegExp.test(fileName))) {
-                            files.push(filePath);
-                        }
-                    } else if (stat.isDirectory() &&
-                              (!file.exclusionRegExp || !file.exclusionRegExp.test(fileName))) {
-                        dirFiles = this.getFilteredFileList(filePath, regExpFilters, makeUnixPaths);
-                        files.push.apply(files, dirFiles);
-                    }
-                }
-            }
-
-            return files; //Array
-        },
-
-        copyDir: function (/*String*/srcDir, /*String*/destDir, /*RegExp?*/regExpFilter, /*boolean?*/onlyCopyNew) {
-            //summary: copies files from srcDir to destDir using the regExpFilter to determine if the
-            //file should be copied. Returns a list file name strings of the destinations that were copied.
-            regExpFilter = regExpFilter || /\w/;
-
-            //Normalize th directory names, but keep front slashes.
-            //path module on windows now returns backslashed paths.
-            srcDir = frontSlash(path.normalize(srcDir));
-            destDir = frontSlash(path.normalize(destDir));
-
-            var fileNames = file.getFilteredFileList(srcDir, regExpFilter, true),
-            copiedFiles = [], i, srcFileName, destFileName;
-
-            for (i = 0; i < fileNames.length; i++) {
-                srcFileName = fileNames[i];
-                destFileName = srcFileName.replace(srcDir, destDir);
-
-                if (file.copyFile(srcFileName, destFileName, onlyCopyNew)) {
-                    copiedFiles.push(destFileName);
-                }
-            }
-
-            return copiedFiles.length ? copiedFiles : null; //Array or null
-        },
-
-        copyFile: function (/*String*/srcFileName, /*String*/destFileName, /*boolean?*/onlyCopyNew) {
-            //summary: copies srcFileName to destFileName. If onlyCopyNew is set, it only copies the file if
-            //srcFileName is newer than destFileName. Returns a boolean indicating if the copy occurred.
-            var parentDir;
-
-            //logger.trace("Src filename: " + srcFileName);
-            //logger.trace("Dest filename: " + destFileName);
-
-            //If onlyCopyNew is true, then compare dates and only copy if the src is newer
-            //than dest.
-            if (onlyCopyNew) {
-                if (file.exists(destFileName) && fs.statSync(destFileName).mtime.getTime() >= fs.statSync(srcFileName).mtime.getTime()) {
-                    return false; //Boolean
-                }
-            }
-
-            //Make sure destination dir exists.
-            parentDir = path.dirname(destFileName);
-            if (!file.exists(parentDir)) {
-                mkFullDir(parentDir);
-            }
-
-            fs.writeFileSync(destFileName, fs.readFileSync(srcFileName, 'binary'), 'binary');
-
-            return true; //Boolean
-        },
-
-        /**
-         * Renames a file. May fail if "to" already exists or is on another drive.
-         */
-        renameFile: function (from, to) {
-            return fs.renameSync(from, to);
-        },
-
-        /**
-         * Reads a *text* file.
-         */
-        readFile: function (/*String*/path, /*String?*/encoding) {
-            if (encoding === 'utf-8') {
-                encoding = 'utf8';
-            }
-            if (!encoding) {
-                encoding = 'utf8';
-            }
-
-            var text = fs.readFileSync(path, encoding);
-
-            //Hmm, would not expect to get A BOM, but it seems to happen,
-            //remove it just in case.
-            if (text.indexOf('\uFEFF') === 0) {
-                text = text.substring(1, text.length);
-            }
-
-            return text;
-        },
-
-        saveUtf8File: function (/*String*/fileName, /*String*/fileContents) {
-            //summary: saves a *text* file using UTF-8 encoding.
-            file.saveFile(fileName, fileContents, "utf8");
-        },
-
-        saveFile: function (/*String*/fileName, /*String*/fileContents, /*String?*/encoding) {
-            //summary: saves a *text* file.
-            var parentDir;
-
-            if (encoding === 'utf-8') {
-                encoding = 'utf8';
-            }
-            if (!encoding) {
-                encoding = 'utf8';
-            }
-
-            //Make sure destination directories exist.
-            parentDir = path.dirname(fileName);
-            if (!file.exists(parentDir)) {
-                mkFullDir(parentDir);
-            }
-
-            fs.writeFileSync(fileName, fileContents, encoding);
-        },
-
-        deleteFile: function (/*String*/fileName) {
-            //summary: deletes a file or directory if it exists.
-            var files, i, stat;
-            if (file.exists(fileName)) {
-                stat = fs.statSync(fileName);
-                if (stat.isDirectory()) {
-                    files = fs.readdirSync(fileName);
-                    for (i = 0; i < files.length; i++) {
-                        this.deleteFile(path.join(fileName, files[i]));
-                    }
-                    fs.rmdirSync(fileName);
-                } else {
-                    fs.unlinkSync(fileName);
-                }
-            }
-        }
-    };
-
-    return file;
-
-});
-
-}
-
-if(env === 'rhino') {
-/**
- * @license RequireJS Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-//Helper functions to deal with file I/O.
-
-/*jslint plusplus: false, strict: false */
-/*global java: false, define: false */
-
-define('rhino/file', function () {
-    var file = {
-        backSlashRegExp: /\\/g,
-
-        exclusionRegExp: /^\./,
-
-        getLineSeparator: function () {
-            return file.lineSeparator;
-        },
-
-        lineSeparator: java.lang.System.getProperty("line.separator"), //Java String
-
-        exists: function (fileName) {
-            return (new java.io.File(fileName)).exists();
-        },
-
-        parent: function (fileName) {
-            return file.absPath((new java.io.File(fileName)).getParentFile());
-        },
-
-        normalize: function (fileName) {
-            return file.absPath(fileName);
-        },
-
-        isFile: function (path) {
-            return (new java.io.File(path)).isFile();
-        },
-
-        isDirectory: function (path) {
-            return (new java.io.File(path)).isDirectory();
-        },
-
-        /**
-         * Gets the absolute file path as a string, normalized
-         * to using front slashes for path separators.
-         * @param {java.io.File||String} file
-         */
-        absPath: function (fileObj) {
-            if (typeof fileObj === "string") {
-                fileObj = new java.io.File(fileObj);
-            }
-            return (fileObj.getAbsolutePath() + "").replace(file.backSlashRegExp, "/");
-        },
-
-        getFilteredFileList: function (/*String*/startDir, /*RegExp*/regExpFilters, /*boolean?*/makeUnixPaths, /*boolean?*/startDirIsJavaObject) {
-            //summary: Recurses startDir and finds matches to the files that match regExpFilters.include
-            //and do not match regExpFilters.exclude. Or just one regexp can be passed in for regExpFilters,
-            //and it will be treated as the "include" case.
-            //Ignores files/directories that start with a period (.) unless exclusionRegExp
-            //is set to another value.
-            var files = [], topDir, regExpInclude, regExpExclude, dirFileArray,
-                i, fileObj, filePath, ok, dirFiles;
-
-            topDir = startDir;
-            if (!startDirIsJavaObject) {
-                topDir = new java.io.File(startDir);
-            }
-
-            regExpInclude = regExpFilters.include || regExpFilters;
-            regExpExclude = regExpFilters.exclude || null;
-
-            if (topDir.exists()) {
-                dirFileArray = topDir.listFiles();
-                for (i = 0; i < dirFileArray.length; i++) {
-                    fileObj = dirFileArray[i];
-                    if (fileObj.isFile()) {
-                        filePath = fileObj.getPath();
-                        if (makeUnixPaths) {
-                            //Make sure we have a JS string.
-                            filePath = String(filePath);
-                            if (filePath.indexOf("/") === -1) {
-                                filePath = filePath.replace(/\\/g, "/");
-                            }
-                        }
-
-                        ok = true;
-                        if (regExpInclude) {
-                            ok = filePath.match(regExpInclude);
-                        }
-                        if (ok && regExpExclude) {
-                            ok = !filePath.match(regExpExclude);
-                        }
-
-                        if (ok && (!file.exclusionRegExp ||
-                            !file.exclusionRegExp.test(fileObj.getName()))) {
-                            files.push(filePath);
-                        }
-                    } else if (fileObj.isDirectory() &&
-                              (!file.exclusionRegExp || !file.exclusionRegExp.test(fileObj.getName()))) {
-                        dirFiles = this.getFilteredFileList(fileObj, regExpFilters, makeUnixPaths, true);
-                        files.push.apply(files, dirFiles);
-                    }
-                }
-            }
-
-            return files; //Array
-        },
-
-        copyDir: function (/*String*/srcDir, /*String*/destDir, /*RegExp?*/regExpFilter, /*boolean?*/onlyCopyNew) {
-            //summary: copies files from srcDir to destDir using the regExpFilter to determine if the
-            //file should be copied. Returns a list file name strings of the destinations that were copied.
-            regExpFilter = regExpFilter || /\w/;
-
-            var fileNames = file.getFilteredFileList(srcDir, regExpFilter, true),
-            copiedFiles = [], i, srcFileName, destFileName;
-
-            for (i = 0; i < fileNames.length; i++) {
-                srcFileName = fileNames[i];
-                destFileName = srcFileName.replace(srcDir, destDir);
-
-                if (file.copyFile(srcFileName, destFileName, onlyCopyNew)) {
-                    copiedFiles.push(destFileName);
-                }
-            }
-
-            return copiedFiles.length ? copiedFiles : null; //Array or null
-        },
-
-        copyFile: function (/*String*/srcFileName, /*String*/destFileName, /*boolean?*/onlyCopyNew) {
-            //summary: copies srcFileName to destFileName. If onlyCopyNew is set, it only copies the file if
-            //srcFileName is newer than destFileName. Returns a boolean indicating if the copy occurred.
-            var destFile = new java.io.File(destFileName), srcFile, parentDir,
-            srcChannel, destChannel;
-
-            //logger.trace("Src filename: " + srcFileName);
-            //logger.trace("Dest filename: " + destFileName);
-
-            //If onlyCopyNew is true, then compare dates and only copy if the src is newer
-            //than dest.
-            if (onlyCopyNew) {
-                srcFile = new java.io.File(srcFileName);
-                if (destFile.exists() && destFile.lastModified() >= srcFile.lastModified()) {
-                    return false; //Boolean
-                }
-            }
-
-            //Make sure destination dir exists.
-            parentDir = destFile.getParentFile();
-            if (!parentDir.exists()) {
-                if (!parentDir.mkdirs()) {
-                    throw "Could not create directory: " + parentDir.getAbsolutePath();
-                }
-            }
-
-            //Java's version of copy file.
-            srcChannel = new java.io.FileInputStream(srcFileName).getChannel();
-            destChannel = new java.io.FileOutputStream(destFileName).getChannel();
-            destChannel.transferFrom(srcChannel, 0, srcChannel.size());
-            srcChannel.close();
-            destChannel.close();
-
-            return true; //Boolean
-        },
-
-        /**
-         * Renames a file. May fail if "to" already exists or is on another drive.
-         */
-        renameFile: function (from, to) {
-            return (new java.io.File(from)).renameTo((new java.io.File(to)));
-        },
-
-        readFile: function (/*String*/path, /*String?*/encoding) {
-            //A file read function that can deal with BOMs
-            encoding = encoding || "utf-8";
-            var fileObj = new java.io.File(path),
-                    input = new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(fileObj), encoding)),
-                    stringBuffer, line;
-            try {
-                stringBuffer = new java.lang.StringBuffer();
-                line = input.readLine();
-
-                // Byte Order Mark (BOM) - The Unicode Standard, version 3.0, page 324
-                // http://www.unicode.org/faq/utf_bom.html
-
-                // Note that when we use utf-8, the BOM should appear as "EF BB BF", but it doesn't due to this bug in the JDK:
-                // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4508058
-                if (line && line.length() && line.charAt(0) === 0xfeff) {
-                    // Eat the BOM, since we've already found the encoding on this file,
-                    // and we plan to concatenating this buffer with others; the BOM should
-                    // only appear at the top of a file.
-                    line = line.substring(1);
-                }
-                while (line !== null) {
-                    stringBuffer.append(line);
-                    stringBuffer.append(file.lineSeparator);
-                    line = input.readLine();
-                }
-                //Make sure we return a JavaScript string and not a Java string.
-                return String(stringBuffer.toString()); //String
-            } finally {
-                input.close();
-            }
-        },
-
-        saveUtf8File: function (/*String*/fileName, /*String*/fileContents) {
-            //summary: saves a file using UTF-8 encoding.
-            file.saveFile(fileName, fileContents, "utf-8");
-        },
-
-        saveFile: function (/*String*/fileName, /*String*/fileContents, /*String?*/encoding) {
-            //summary: saves a file.
-            var outFile = new java.io.File(fileName), outWriter, parentDir, os;
-
-            parentDir = outFile.getAbsoluteFile().getParentFile();
-            if (!parentDir.exists()) {
-                if (!parentDir.mkdirs()) {
-                    throw "Could not create directory: " + parentDir.getAbsolutePath();
-                }
-            }
-
-            if (encoding) {
-                outWriter = new java.io.OutputStreamWriter(new java.io.FileOutputStream(outFile), encoding);
-            } else {
-                outWriter = new java.io.OutputStreamWriter(new java.io.FileOutputStream(outFile));
-            }
-
-            os = new java.io.BufferedWriter(outWriter);
-            try {
-                os.write(fileContents);
-            } finally {
-                os.close();
-            }
-        },
-
-        deleteFile: function (/*String*/fileName) {
-            //summary: deletes a file or directory if it exists.
-            var fileObj = new java.io.File(fileName), files, i;
-            if (fileObj.exists()) {
-                if (fileObj.isDirectory()) {
-                    files = fileObj.listFiles();
-                    for (i = 0; i < files.length; i++) {
-                        this.deleteFile(files[i]);
-                    }
-                }
-                fileObj["delete"]();
-            }
-        }
-    };
-
-    return file;
-});
-
-}
-/**
- * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint plusplus: true */
-/*global define */
-
-define('lang', function () {
-    'use strict';
-
-    var lang = {
-        backSlashRegExp: /\\/g,
-        ostring: Object.prototype.toString,
-
-        isArray: Array.isArray || function (it) {
-            return lang.ostring.call(it) === "[object Array]";
-        },
-
-        isFunction: function(it) {
-            return lang.ostring.call(it) === "[object Function]";
-        },
-
-        isRegExp: function(it) {
-            return it && it instanceof RegExp;
-        },
-
-        _mixin: function(dest, source, override){
-            var name;
-            for (name in source) {
-                if(source.hasOwnProperty(name)
-                    && (override || !dest.hasOwnProperty(name))) {
-                    dest[name] = source[name];
-                }
-            }
-
-            return dest; // Object
-        },
-
-        /**
-         * mixin({}, obj1, obj2) is allowed. If the last argument is a boolean,
-         * then the source objects properties are force copied over to dest.
-         */
-        mixin: function(dest){
-            var parameters = Array.prototype.slice.call(arguments),
-                override, i, l;
-
-            if (!dest) { dest = {}; }
-
-            if (parameters.length > 2 && typeof arguments[parameters.length-1] === 'boolean') {
-                override = parameters.pop();
-            }
-
-            for (i = 1, l = parameters.length; i < l; i++) {
-                lang._mixin(dest, parameters[i], override);
-            }
-            return dest; // Object
-        },
-
-        delegate: (function () {
-            // boodman/crockford delegation w/ cornford optimization
-            function TMP() {}
-            return function (obj, props) {
-                TMP.prototype = obj;
-                var tmp = new TMP();
-                TMP.prototype = null;
-                if (props) {
-                    lang.mixin(tmp, props);
-                }
-                return tmp; // Object
-            };
-        }())
-    };
-    return lang;
-});
-
-if(env === 'node') {
-/**
- * @license RequireJS Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define: false, console: false */
-
-define('node/print', function () {
-    function print(msg) {
-        console.log(msg);
-    }
-
-    return print;
-});
-
-}
-
-if(env === 'rhino') {
-/**
- * @license RequireJS Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define: false, print: false */
-
-define('rhino/print', function () {
-    return print;
-});
-
-}
-/**
- * @license RequireJS Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint nomen: false, strict: false */
-/*global define: false */
-
-define('logger', ['env!env/print'], function (print) {
-    var logger = {
-        TRACE: 0,
-        INFO: 1,
-        WARN: 2,
-        ERROR: 3,
-        SILENT: 4,
-        level: 0,
-        logPrefix: "",
-
-        logLevel: function( level ) {
-            this.level = level;
-        },
-
-        trace: function (message) {
-            if (this.level <= this.TRACE) {
-                this._print(message);
-            }
-        },
-
-        info: function (message) {
-            if (this.level <= this.INFO) {
-                this._print(message);
-            }
-        },
-
-        warn: function (message) {
-            if (this.level <= this.WARN) {
-                this._print(message);
-            }
-        },
-
-        error: function (message) {
-            if (this.level <= this.ERROR) {
-                this._print(message);
-            }
-        },
-
-        _print: function (message) {
-            this._sysPrint((this.logPrefix ? (this.logPrefix + " ") : "") + message);
-        },
-
-        _sysPrint: function (message) {
-            print(message);
-        }
-    };
-
-    return logger;
-});
-//Just a blank file to use when building the optimizer with the optimizer,
-//so that the build does not attempt to inline some env modules,
-//like Node's fs and path.
-
-//Just a blank file to use when building the optimizer with the optimizer,
-//so that the build does not attempt to inline some env modules,
-//like Node's fs and path.
-
-define('uglifyjs/parse-js', ["require", "exports", "module"], function(require, exports, module) {
-/***********************************************************************
-
-  A JavaScript tokenizer / parser / beautifier / compressor.
-
-  This version is suitable for Node.js.  With minimal changes (the
-  exports stuff) it should work on any JS platform.
-
-  This file contains the tokenizer/parser.  It is a port to JavaScript
-  of parse-js [1], a JavaScript parser library written in Common Lisp
-  by Marijn Haverbeke.  Thank you Marijn!
-
-  [1] http://marijn.haverbeke.nl/parse-js/
-
-  Exported functions:
-
-    - tokenizer(code) -- returns a function.  Call the returned
-      function to fetch the next token.
-
-    - parse(code) -- returns an AST of the given JavaScript code.
-
-  -------------------------------- (C) ---------------------------------
-
-                           Author: Mihai Bazon
-                         <mihai.bazon@gmail.com>
-                       http://mihai.bazon.net/blog
-
-  Distributed under the BSD license:
-
-    Copyright 2010 (c) Mihai Bazon <mihai.bazon@gmail.com>
-    Based on parse-js (http://marijn.haverbeke.nl/parse-js/).
-
-    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.
-
-    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “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 HOLDER 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.
-
- ***********************************************************************/
-
-/* -----[ Tokenizer (constants) ]----- */
-
-var KEYWORDS = array_to_hash([
-        "break",
-        "case",
-        "catch",
-        "const",
-        "continue",
-        "default",
-        "delete",
-        "do",
-        "else",
-        "finally",
-        "for",
-        "function",
-        "if",
-        "in",
-        "instanceof",
-        "new",
-        "return",
-        "switch",
-        "throw",
-        "try",
-        "typeof",
-        "var",
-        "void",
-        "while",
-        "with"
-]);
-
-var RESERVED_WORDS = array_to_hash([
-        "abstract",
-        "boolean",
-        "byte",
-        "char",
-        "class",
-        "debugger",
-        "double",
-        "enum",
-        "export",
-        "extends",
-        "final",
-        "float",
-        "goto",
-        "implements",
-        "import",
-        "int",
-        "interface",
-        "long",
-        "native",
-        "package",
-        "private",
-        "protected",
-        "public",
-        "short",
-        "static",
-        "super",
-        "synchronized",
-        "throws",
-        "transient",
-        "volatile"
-]);
-
-var KEYWORDS_BEFORE_EXPRESSION = array_to_hash([
-        "return",
-        "new",
-        "delete",
-        "throw",
-        "else",
-        "case"
-]);
-
-var KEYWORDS_ATOM = array_to_hash([
-        "false",
-        "null",
-        "true",
-        "undefined"
-]);
-
-var OPERATOR_CHARS = array_to_hash(characters("+-*&%=<>!?|~^"));
-
-var RE_HEX_NUMBER = /^0x[0-9a-f]+$/i;
-var RE_OCT_NUMBER = /^0[0-7]+$/;
-var RE_DEC_NUMBER = /^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i;
-
-var OPERATORS = array_to_hash([
-        "in",
-        "instanceof",
-        "typeof",
-        "new",
-        "void",
-        "delete",
-        "++",
-        "--",
-        "+",
-        "-",
-        "!",
-        "~",
-        "&",
-        "|",
-        "^",
-        "*",
-        "/",
-        "%",
-        ">>",
-        "<<",
-        ">>>",
-        "<",
-        ">",
-        "<=",
-        ">=",
-        "==",
-        "===",
-        "!=",
-        "!==",
-        "?",
-        "=",
-        "+=",
-        "-=",
-        "/=",
-        "*=",
-        "%=",
-        ">>=",
-        "<<=",
-        ">>>=",
-        "|=",
-        "^=",
-        "&=",
-        "&&",
-        "||"
-]);
-
-var WHITESPACE_CHARS = array_to_hash(characters(" \u00a0\n\r\t\f\u000b\u200b\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000"));
-
-var PUNC_BEFORE_EXPRESSION = array_to_hash(characters("[{}(,.;:"));
-
-var PUNC_CHARS = array_to_hash(characters("[]{}(),;:"));
-
-var REGEXP_MODIFIERS = array_to_hash(characters("gmsiy"));
-
-/* -----[ Tokenizer ]----- */
-
-// regexps adapted from http://xregexp.com/plugins/#unicode
-var UNICODE = {
-        letter: new RegExp("[\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u0523\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0621-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971\\u0972\\u097B-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D28\\u0D2A-\\u0D39\\u0D3D\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC\\u0EDD\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8B\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10D0-\\u10FA\\u10FC\\u1100-\\u1159\\u115F-\\u11A2\\u11A8-\\u11F9\\u1200-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u1676\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u1900-\\u191C\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19A9\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u2094\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2C6F\\u2C71-\\u2C7D\\u2C80-\\u2CE4\\u2D00-\\u2D25\\u2D30-\\u2D65\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31B7\\u31F0-\\u31FF\\u3400\\u4DB5\\u4E00\\u9FC3\\uA000-\\uA48C\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA65F\\uA662-\\uA66E\\uA67F-\\uA697\\uA717-\\uA71F\\uA722-\\uA788\\uA78B\\uA78C\\uA7FB-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA90A-\\uA925\\uA930-\\uA946\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAC00\\uD7A3\\uF900-\\uFA2D\\uFA30-\\uFA6A\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),
-        non_spacing_mark: new RegExp("[\\u0300-\\u036F\\u0483-\\u0487\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065E\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0900-\\u0902\\u093C\\u0941-\\u0948\\u094D\\u0951-\\u0955\\u0962\\u0963\\u0981\\u09BC\\u09C1-\\u09C4\\u09CD\\u09E2\\u09E3\\u0A01\\u0A02\\u0A3C\\u0A41\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81\\u0A82\\u0ABC\\u0AC1-\\u0AC5\\u0AC7\\u0AC8\\u0ACD\\u0AE2\\u0AE3\\u0B01\\u0B3C\\u0B3F\\u0B41-\\u0B44\\u0B4D\\u0B56\\u0B62\\u0B63\\u0B82\\u0BC0\\u0BCD\\u0C3E-\\u0C40\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0CBC\\u0CBF\\u0CC6\\u0CCC\\u0CCD\\u0CE2\\u0CE3\\u0D41-\\u0D44\\u0D4D\\u0D62\\u0D63\\u0DCA\\u0DD2-\\u0DD4\\u0DD6\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F71-\\u0F7E\\u0F80-\\u0F84\\u0F86\\u0F87\\u0F90-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1030\\u1032-\\u1037\\u1039\\u103A\\u103D\\u103E\\u1058\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1085\\u1086\\u108D\\u109D\\u135F\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B7-\\u17BD\\u17C6\\u17C9-\\u17D3\\u17DD\\u180B-\\u180D\\u18A9\\u1920-\\u1922\\u1927\\u1928\\u1932\\u1939-\\u193B\\u1A17\\u1A18\\u1A56\\u1A58-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A6C\\u1A73-\\u1A7C\\u1A7F\\u1B00-\\u1B03\\u1B34\\u1B36-\\u1B3A\\u1B3C\\u1B42\\u1B6B-\\u1B73\\u1B80\\u1B81\\u1BA2-\\u1BA5\\u1BA8\\u1BA9\\u1C2C-\\u1C33\\u1C36\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE0\\u1CE2-\\u1CE8\\u1CED\\u1DC0-\\u1DE6\\u1DFD-\\u1DFF\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F\\uA67C\\uA67D\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA825\\uA826\\uA8C4\\uA8E0-\\uA8F1\\uA926-\\uA92D\\uA947-\\uA951\\uA980-\\uA982\\uA9B3\\uA9B6-\\uA9B9\\uA9BC\\uAA29-\\uAA2E\\uAA31\\uAA32\\uAA35\\uAA36\\uAA43\\uAA4C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uABE5\\uABE8\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE26]"),
-        space_combining_mark: new RegExp("[\\u0903\\u093E-\\u0940\\u0949-\\u094C\\u094E\\u0982\\u0983\\u09BE-\\u09C0\\u09C7\\u09C8\\u09CB\\u09CC\\u09D7\\u0A03\\u0A3E-\\u0A40\\u0A83\\u0ABE-\\u0AC0\\u0AC9\\u0ACB\\u0ACC\\u0B02\\u0B03\\u0B3E\\u0B40\\u0B47\\u0B48\\u0B4B\\u0B4C\\u0B57\\u0BBE\\u0BBF\\u0BC1\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCC\\u0BD7\\u0C01-\\u0C03\\u0C41-\\u0C44\\u0C82\\u0C83\\u0CBE\\u0CC0-\\u0CC4\\u0CC7\\u0CC8\\u0CCA\\u0CCB\\u0CD5\\u0CD6\\u0D02\\u0D03\\u0D3E-\\u0D40\\u0D46-\\u0D48\\u0D4A-\\u0D4C\\u0D57\\u0D82\\u0D83\\u0DCF-\\u0DD1\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0F3E\\u0F3F\\u0F7F\\u102B\\u102C\\u1031\\u1038\\u103B\\u103C\\u1056\\u1057\\u1062-\\u1064\\u1067-\\u106D\\u1083\\u1084\\u1087-\\u108C\\u108F\\u109A-\\u109C\\u17B6\\u17BE-\\u17C5\\u17C7\\u17C8\\u1923-\\u1926\\u1929-\\u192B\\u1930\\u1931\\u1933-\\u1938\\u19B0-\\u19C0\\u19C8\\u19C9\\u1A19-\\u1A1B\\u1A55\\u1A57\\u1A61\\u1A63\\u1A64\\u1A6D-\\u1A72\\u1B04\\u1B35\\u1B3B\\u1B3D-\\u1B41\\u1B43\\u1B44\\u1B82\\u1BA1\\u1BA6\\u1BA7\\u1BAA\\u1C24-\\u1C2B\\u1C34\\u1C35\\u1CE1\\u1CF2\\uA823\\uA824\\uA827\\uA880\\uA881\\uA8B4-\\uA8C3\\uA952\\uA953\\uA983\\uA9B4\\uA9B5\\uA9BA\\uA9BB\\uA9BD-\\uA9C0\\uAA2F\\uAA30\\uAA33\\uAA34\\uAA4D\\uAA7B\\uABE3\\uABE4\\uABE6\\uABE7\\uABE9\\uABEA\\uABEC]"),
-        connector_punctuation: new RegExp("[\\u005F\\u203F\\u2040\\u2054\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFF3F]")
-};
-
-function is_letter(ch) {
-        return UNICODE.letter.test(ch);
-};
-
-function is_digit(ch) {
-        ch = ch.charCodeAt(0);
-        return ch >= 48 && ch <= 57; //XXX: find out if "UnicodeDigit" means something else than 0..9
-};
-
-function is_alphanumeric_char(ch) {
-        return is_digit(ch) || is_letter(ch);
-};
-
-function is_unicode_combining_mark(ch) {
-        return UNICODE.non_spacing_mark.test(ch) || UNICODE.space_combining_mark.test(ch);
-};
-
-function is_unicode_connector_punctuation(ch) {
-        return UNICODE.connector_punctuation.test(ch);
-};
-
-function is_identifier_start(ch) {
-        return ch == "$" || ch == "_" || is_letter(ch);
-};
-
-function is_identifier_char(ch) {
-        return is_identifier_start(ch)
-                || is_unicode_combining_mark(ch)
-                || is_digit(ch)
-                || is_unicode_connector_punctuation(ch)
-                || ch == "\u200c" // zero-width non-joiner <ZWNJ>
-                || ch == "\u200d" // zero-width joiner <ZWJ> (in my ECMA-262 PDF, this is also 200c)
-        ;
-};
-
-function parse_js_number(num) {
-        if (RE_HEX_NUMBER.test(num)) {
-                return parseInt(num.substr(2), 16);
-        } else if (RE_OCT_NUMBER.test(num)) {
-                return parseInt(num.substr(1), 8);
-        } else if (RE_DEC_NUMBER.test(num)) {
-                return parseFloat(num);
-        }
-};
-
-function JS_Parse_Error(message, line, col, pos) {
-        this.message = message;
-        this.line = line + 1;
-        this.col = col + 1;
-        this.pos = pos + 1;
-        this.stack = new Error().stack;
-};
-
-JS_Parse_Error.prototype.toString = function() {
-        return this.message + " (line: " + this.line + ", col: " + this.col + ", pos: " + this.pos + ")" + "\n\n" + this.stack;
-};
-
-function js_error(message, line, col, pos) {
-        throw new JS_Parse_Error(message, line, col, pos);
-};
-
-function is_token(token, type, val) {
-        return token.type == type && (val == null || token.value == val);
-};
-
-var EX_EOF = {};
-
-function tokenizer($TEXT) {
-
-        var S = {
-                text            : $TEXT.replace(/\r\n?|[\n\u2028\u2029]/g, "\n").replace(/^\uFEFF/, ''),
-                pos             : 0,
-                tokpos          : 0,
-                line            : 0,
-                tokline         : 0,
-                col             : 0,
-                tokcol          : 0,
-                newline_before  : false,
-                regex_allowed   : false,
-                comments_before : []
-        };
-
-        function peek() { return S.text.charAt(S.pos); };
-
-        function next(signal_eof, in_string) {
-                var ch = S.text.charAt(S.pos++);
-                if (signal_eof && !ch)
-                        throw EX_EOF;
-                if (ch == "\n") {
-                        S.newline_before = S.newline_before || !in_string;
-                        ++S.line;
-                        S.col = 0;
-                } else {
-                        ++S.col;
-                }
-                return ch;
-        };
-
-        function eof() {
-                return !S.peek();
-        };
-
-        function find(what, signal_eof) {
-                var pos = S.text.indexOf(what, S.pos);
-                if (signal_eof && pos == -1) throw EX_EOF;
-                return pos;
-        };
-
-        function start_token() {
-                S.tokline = S.line;
-                S.tokcol = S.col;
-                S.tokpos = S.pos;
-        };
-
-        function token(type, value, is_comment) {
-                S.regex_allowed = ((type == "operator" && !HOP(UNARY_POSTFIX, value)) ||
-                                   (type == "keyword" && HOP(KEYWORDS_BEFORE_EXPRESSION, value)) ||
-                                   (type == "punc" && HOP(PUNC_BEFORE_EXPRESSION, value)));
-                var ret = {
-                        type   : type,
-                        value  : value,
-                        line   : S.tokline,
-                        col    : S.tokcol,
-                        pos    : S.tokpos,
-                        endpos : S.pos,
-                        nlb    : S.newline_before
-                };
-                if (!is_comment) {
-                        ret.comments_before = S.comments_before;
-                        S.comments_before = [];
-                }
-                S.newline_before = false;
-                return ret;
-        };
-
-        function skip_whitespace() {
-                while (HOP(WHITESPACE_CHARS, peek()))
-                        next();
-        };
-
-        function read_while(pred) {
-                var ret = "", ch = peek(), i = 0;
-                while (ch && pred(ch, i++)) {
-                        ret += next();
-                        ch = peek();
-                }
-                return ret;
-        };
-
-        function parse_error(err) {
-                js_error(err, S.tokline, S.tokcol, S.tokpos);
-        };
-
-        function read_num(prefix) {
-                var has_e = false, after_e = false, has_x = false, has_dot = prefix == ".";
-                var num = read_while(function(ch, i){
-                        if (ch == "x" || ch == "X") {
-                                if (has_x) return false;
-                                return has_x = true;
-                        }
-                        if (!has_x && (ch == "E" || ch == "e")) {
-                                if (has_e) return false;
-                                return has_e = after_e = true;
-                        }
-                        if (ch == "-") {
-                                if (after_e || (i == 0 && !prefix)) return true;
-                                return false;
-                        }
-                        if (ch == "+") return after_e;
-                        after_e = false;
-                        if (ch == ".") {
-                                if (!has_dot && !has_x)
-                                        return has_dot = true;
-                                return false;
-                        }
-                        return is_alphanumeric_char(ch);
-                });
-                if (prefix)
-                        num = prefix + num;
-                var valid = parse_js_number(num);
-                if (!isNaN(valid)) {
-                        return token("num", valid);
-                } else {
-                        parse_error("Invalid syntax: " + num);
-                }
-        };
-
-        function read_escaped_char(in_string) {
-                var ch = next(true, in_string);
-                switch (ch) {
-                    case "n" : return "\n";
-                    case "r" : return "\r";
-                    case "t" : return "\t";
-                    case "b" : return "\b";
-                    case "v" : return "\u000b";
-                    case "f" : return "\f";
-                    case "0" : return "\0";
-                    case "x" : return String.fromCharCode(hex_bytes(2));
-                    case "u" : return String.fromCharCode(hex_bytes(4));
-                    case "\n": return "";
-                    default  : return ch;
-                }
-        };
-
-        function hex_bytes(n) {
-                var num = 0;
-                for (; n > 0; --n) {
-                        var digit = parseInt(next(true), 16);
-                        if (isNaN(digit))
-                                parse_error("Invalid hex-character pattern in string");
-                        num = (num << 4) | digit;
-                }
-                return num;
-        };
-
-        function read_string() {
-                return with_eof_error("Unterminated string constant", function(){
-                        var quote = next(), ret = "";
-                        for (;;) {
-                                var ch = next(true);
-                                if (ch == "\\") {
-                                        // read OctalEscapeSequence (XXX: deprecated if "strict mode")
-                                        // https://github.com/mishoo/UglifyJS/issues/178
-                                        var octal_len = 0, first = null;
-                                        ch = read_while(function(ch){
-                                                if (ch >= "0" && ch <= "7") {
-                                                        if (!first) {
-                                                                first = ch;
-                                                                return ++octal_len;
-                                                        }
-                                                        else if (first <= "3" && octal_len <= 2) return ++octal_len;
-                                                        else if (first >= "4" && octal_len <= 1) return ++octal_len;
-                                                }
-                                                return false;
-                                        });
-                                        if (octal_len > 0) ch = String.fromCharCode(parseInt(ch, 8));
-                                        else ch = read_escaped_char(true);
-                                }
-                                else if (ch == quote) break;
-                                ret += ch;
-                        }
-                        return token("string", ret);
-                });
-        };
-
-        function read_line_comment() {
-                next();
-                var i = find("\n"), ret;
-                if (i == -1) {
-                        ret = S.text.substr(S.pos);
-                        S.pos = S.text.length;
-                } else {
-                        ret = S.text.substring(S.pos, i);
-                        S.pos = i;
-                }
-                return token("comment1", ret, true);
-        };
-
-        function read_multiline_comment() {
-                next();
-                return with_eof_error("Unterminated multiline comment", function(){
-                        var i = find("*/", true),
-                            text = S.text.substring(S.pos, i);
-                        S.pos = i + 2;
-                        S.line += text.split("\n").length - 1;
-                        S.newline_before = text.indexOf("\n") >= 0;
-
-                        // https://github.com/mishoo/UglifyJS/issues/#issue/100
-                        if (/^@cc_on/i.test(text)) {
-                                warn("WARNING: at line " + S.line);
-                                warn("*** Found \"conditional comment\": " + text);
-                                warn("*** UglifyJS DISCARDS ALL COMMENTS.  This means your code might no longer work properly in Internet Explorer.");
-                        }
-
-                        return token("comment2", text, true);
-                });
-        };
-
-        function read_name() {
-                var backslash = false, name = "", ch;
-                while ((ch = peek()) != null) {
-                        if (!backslash) {
-                                if (ch == "\\") backslash = true, next();
-                                else if (is_identifier_char(ch)) name += next();
-                                else break;
-                        }
-                        else {
-                                if (ch != "u") parse_error("Expecting UnicodeEscapeSequence -- uXXXX");
-                                ch = read_escaped_char();
-                                if (!is_identifier_char(ch)) parse_error("Unicode char: " + ch.charCodeAt(0) + " is not valid in identifier");
-                                name += ch;
-                                backslash = false;
-                        }
-                }
-                return name;
-        };
-
-        function read_regexp(regexp) {
-                return with_eof_error("Unterminated regular expression", function(){
-                        var prev_backslash = false, ch, in_class = false;
-                        while ((ch = next(true))) if (prev_backslash) {
-                                regexp += "\\" + ch;
-                                prev_backslash = false;
-                        } else if (ch == "[") {
-                                in_class = true;
-                                regexp += ch;
-                        } else if (ch == "]" && in_class) {
-                                in_class = false;
-                                regexp += ch;
-                        } else if (ch == "/" && !in_class) {
-                                break;
-                        } else if (ch == "\\") {
-                                prev_backslash = true;
-                        } else {
-                                regexp += ch;
-                        }
-                        var mods = read_name();
-                        return token("regexp", [ regexp, mods ]);
-                });
-        };
-
-        function read_operator(prefix) {
-                function grow(op) {
-                        if (!peek()) return op;
-                        var bigger = op + peek();
-                        if (HOP(OPERATORS, bigger)) {
-                                next();
-                                return grow(bigger);
-                        } else {
-                                return op;
-                        }
-                };
-                return token("operator", grow(prefix || next()));
-        };
-
-        function handle_slash() {
-                next();
-                var regex_allowed = S.regex_allowed;
-                switch (peek()) {
-                    case "/":
-                        S.comments_before.push(read_line_comment());
-                        S.regex_allowed = regex_allowed;
-                        return next_token();
-                    case "*":
-                        S.comments_before.push(read_multiline_comment());
-                        S.regex_allowed = regex_allowed;
-                        return next_token();
-                }
-                return S.regex_allowed ? read_regexp("") : read_operator("/");
-        };
-
-        function handle_dot() {
-                next();
-                return is_digit(peek())
-                        ? read_num(".")
-                        : token("punc", ".");
-        };
-
-        function read_word() {
-                var word = read_name();
-                return !HOP(KEYWORDS, word)
-                        ? token("name", word)
-                        : HOP(OPERATORS, word)
-                        ? token("operator", word)
-                        : HOP(KEYWORDS_ATOM, word)
-                        ? token("atom", word)
-                        : token("keyword", word);
-        };
-
-        function with_eof_error(eof_error, cont) {
-                try {
-                        return cont();
-                } catch(ex) {
-                        if (ex === EX_EOF) parse_error(eof_error);
-                        else throw ex;
-                }
-        };
-
-        function next_token(force_regexp) {
-                if (force_regexp != null)
-                        return read_regexp(force_regexp);
-                skip_whitespace();
-                start_token();
-                var ch = peek();
-                if (!ch) return token("eof");
-                if (is_digit(ch)) return read_num();
-                if (ch == '"' || ch == "'") return read_string();
-                if (HOP(PUNC_CHARS, ch)) return token("punc", next());
-                if (ch == ".") return handle_dot();
-                if (ch == "/") return handle_slash();
-                if (HOP(OPERATOR_CHARS, ch)) return read_operator();
-                if (ch == "\\" || is_identifier_start(ch)) return read_word();
-                parse_error("Unexpected character '" + ch + "'");
-        };
-
-        next_token.context = function(nc) {
-                if (nc) S = nc;
-                return S;
-        };
-
-        return next_token;
-
-};
-
-/* -----[ Parser (constants) ]----- */
-
-var UNARY_PREFIX = array_to_hash([
-        "typeof",
-        "void",
-        "delete",
-        "--",
-        "++",
-        "!",
-        "~",
-        "-",
-        "+"
-]);
-
-var UNARY_POSTFIX = array_to_hash([ "--", "++" ]);
-
-var ASSIGNMENT = (function(a, ret, i){
-        while (i < a.length) {
-                ret[a[i]] = a[i].substr(0, a[i].length - 1);
-                i++;
-        }
-        return ret;
-})(
-        ["+=", "-=", "/=", "*=", "%=", ">>=", "<<=", ">>>=", "|=", "^=", "&="],
-        { "=": true },
-        0
-);
-
-var PRECEDENCE = (function(a, ret){
-        for (var i = 0, n = 1; i < a.length; ++i, ++n) {
-                var b = a[i];
-                for (var j = 0; j < b.length; ++j) {
-                        ret[b[j]] = n;
-                }
-        }
-        return ret;
-})(
-        [
-                ["||"],
-                ["&&"],
-                ["|"],
-                ["^"],
-                ["&"],
-                ["==", "===", "!=", "!=="],
-                ["<", ">", "<=", ">=", "in", "instanceof"],
-                [">>", "<<", ">>>"],
-                ["+", "-"],
-                ["*", "/", "%"]
-        ],
-        {}
-);
-
-var STATEMENTS_WITH_LABELS = array_to_hash([ "for", "do", "while", "switch" ]);
-
-var ATOMIC_START_TOKEN = array_to_hash([ "atom", "num", "string", "regexp", "name" ]);
-
-/* -----[ Parser ]----- */
-
-function NodeWithToken(str, start, end) {
-        this.name = str;
-        this.start = start;
-        this.end = end;
-};
-
-NodeWithToken.prototype.toString = function() { return this.name; };
-
-function parse($TEXT, exigent_mode, embed_tokens) {
-
-        var S = {
-                input       : typeof $TEXT == "string" ? tokenizer($TEXT, true) : $TEXT,
-                token       : null,
-                prev        : null,
-                peeked      : null,
-                in_function : 0,
-                in_loop     : 0,
-                labels      : []
-        };
-
-        S.token = next();
-
-        function is(type, value) {
-                return is_token(S.token, type, value);
-        };
-
-        function peek() { return S.peeked || (S.peeked = S.input()); };
-
-        function next() {
-                S.prev = S.token;
-                if (S.peeked) {
-                        S.token = S.peeked;
-                        S.peeked = null;
-                } else {
-                        S.token = S.input();
-                }
-                return S.token;
-        };
-
-        function prev() {
-                return S.prev;
-        };
-
-        function croak(msg, line, col, pos) {
-                var ctx = S.input.context();
-                js_error(msg,
-                         line != null ? line : ctx.tokline,
-                         col != null ? col : ctx.tokcol,
-                         pos != null ? pos : ctx.tokpos);
-        };
-
-        function token_error(token, msg) {
-                croak(msg, token.line, token.col);
-        };
-
-        function unexpected(token) {
-                if (token == null)
-                        token = S.token;
-                token_error(token, "Unexpected token: " + token.type + " (" + token.value + ")");
-        };
-
-        function expect_token(type, val) {
-                if (is(type, val)) {
-                        return next();
-                }
-                token_error(S.token, "Unexpected token " + S.token.type + ", expected " + type);
-        };
-
-        function expect(punc) { return expect_token("punc", punc); };
-
-        function can_insert_semicolon() {
-                return !exigent_mode && (
-                        S.token.nlb || is("eof") || is("punc", "}")
-                );
-        };
-
-        function semicolon() {
-                if (is("punc", ";")) next();
-                else if (!can_insert_semicolon()) unexpected();
-        };
-
-        function as() {
-                return slice(arguments);
-        };
-
-        function parenthesised() {
-                expect("(");
-                var ex = expression();
-                expect(")");
-                return ex;
-        };
-
-        function add_tokens(str, start, end) {
-                return str instanceof NodeWithToken ? str : new NodeWithToken(str, start, end);
-        };
-
-        function maybe_embed_tokens(parser) {
-                if (embed_tokens) return function() {
-                        var start = S.token;
-                        var ast = parser.apply(this, arguments);
-                        ast[0] = add_tokens(ast[0], start, prev());
-                        return ast;
-                };
-                else return parser;
-        };
-
-        var statement = maybe_embed_tokens(function() {
-                if (is("operator", "/") || is("operator", "/=")) {
-                        S.peeked = null;
-                        S.token = S.input(S.token.value.substr(1)); // force regexp
-                }
-                switch (S.token.type) {
-                    case "num":
-                    case "string":
-                    case "regexp":
-                    case "operator":
-                    case "atom":
-                        return simple_statement();
-
-                    case "name":
-                        return is_token(peek(), "punc", ":")
-                                ? labeled_statement(prog1(S.token.value, next, next))
-                                : simple_statement();
-
-                    case "punc":
-                        switch (S.token.value) {
-                            case "{":
-                                return as("block", block_());
-                            case "[":
-                            case "(":
-                                return simple_statement();
-                            case ";":
-                                next();
-                                return as("block");
-                            default:
-                                unexpected();
-                        }
-
-                    case "keyword":
-                        switch (prog1(S.token.value, next)) {
-                            case "break":
-                                return break_cont("break");
-
-                            case "continue":
-                                return break_cont("continue");
-
-                            case "debugger":
-                                semicolon();
-                                return as("debugger");
-
-                            case "do":
-                                return (function(body){
-                                        expect_token("keyword", "while");
-                                        return as("do", prog1(parenthesised, semicolon), body);
-                                })(in_loop(statement));
-
-                            case "for":
-                                return for_();
-
-                            case "function":
-                                return function_(true);
-
-                            case "if":
-                                return if_();
-
-                            case "return":
-                                if (S.in_function == 0)
-                                        croak("'return' outside of function");
-                                return as("return",
-                                          is("punc", ";")
-                                          ? (next(), null)
-                                          : can_insert_semicolon()
-                                          ? null
-                                          : prog1(expression, semicolon));
-
-                            case "switch":
-                                return as("switch", parenthesised(), switch_block_());
-
-                            case "throw":
-                                if (S.token.nlb)
-                                        croak("Illegal newline after 'throw'");
-                                return as("throw", prog1(expression, semicolon));
-
-                            case "try":
-                                return try_();
-
-                            case "var":
-                                return prog1(var_, semicolon);
-
-                            case "const":
-                                return prog1(const_, semicolon);
-
-                            case "while":
-                                return as("while", parenthesised(), in_loop(statement));
-
-                            case "with":
-                                return as("with", parenthesised(), statement());
-
-                            default:
-                                unexpected();
-                        }
-                }
-        });
-
-        function labeled_statement(label) {
-                S.labels.push(label);
-                var start = S.token, stat = statement();
-                if (exigent_mode && !HOP(STATEMENTS_WITH_LABELS, stat[0]))
-                        unexpected(start);
-                S.labels.pop();
-                return as("label", label, stat);
-        };
-
-        function simple_statement() {
-                return as("stat", prog1(expression, semicolon));
-        };
-
-        function break_cont(type) {
-                var name;
-                if (!can_insert_semicolon()) {
-                        name = is("name") ? S.token.value : null;
-                }
-                if (name != null) {
-                        next();
-                        if (!member(name, S.labels))
-                                croak("Label " + name + " without matching loop or statement");
-                }
-                else if (S.in_loop == 0)
-                        croak(type + " not inside a loop or switch");
-                semicolon();
-                return as(type, name);
-        };
-
-        function for_() {
-                expect("(");
-                var init = null;
-                if (!is("punc", ";")) {
-                        init = is("keyword", "var")
-                                ? (next(), var_(true))
-                                : expression(true, true);
-                        if (is("operator", "in"))
-                                return for_in(init);
-                }
-                return regular_for(init);
-        };
-
-        function regular_for(init) {
-                expect(";");
-                var test = is("punc", ";") ? null : expression();
-                expect(";");
-                var step = is("punc", ")") ? null : expression();
-                expect(")");
-                return as("for", init, test, step, in_loop(statement));
-        };
-
-        function for_in(init) {
-                var lhs = init[0] == "var" ? as("name", init[1][0]) : init;
-                next();
-                var obj = expression();
-                expect(")");
-                return as("for-in", init, lhs, obj, in_loop(statement));
-        };
-
-        var function_ = function(in_statement) {
-                var name = is("name") ? prog1(S.token.value, next) : null;
-                if (in_statement && !name)
-                        unexpected();
-                expect("(");
-                return as(in_statement ? "defun" : "function",
-                          name,
-                          // arguments
-                          (function(first, a){
-                                  while (!is("punc", ")")) {
-                                          if (first) first = false; else expect(",");
-                                          if (!is("name")) unexpected();
-                                          a.push(S.token.value);
-                                          next();
-                                  }
-                                  next();
-                                  return a;
-                          })(true, []),
-                          // body
-                          (function(){
-                                  ++S.in_function;
-                                  var loop = S.in_loop;
-                                  S.in_loop = 0;
-                                  var a = block_();
-                                  --S.in_function;
-                                  S.in_loop = loop;
-                                  return a;
-                          })());
-        };
-
-        function if_() {
-                var cond = parenthesised(), body = statement(), belse;
-                if (is("keyword", "else")) {
-                        next();
-                        belse = statement();
-                }
-                return as("if", cond, body, belse);
-        };
-
-        function block_() {
-                expect("{");
-                var a = [];
-                while (!is("punc", "}")) {
-                        if (is("eof")) unexpected();
-                        a.push(statement());
-                }
-                next();
-                return a;
-        };
-
-        var switch_block_ = curry(in_loop, function(){
-                expect("{");
-                var a = [], cur = null;
-                while (!is("punc", "}")) {
-                        if (is("eof")) unexpected();
-                        if (is("keyword", "case")) {
-                                next();
-                                cur = [];
-                                a.push([ expression(), cur ]);
-                                expect(":");
-                        }
-                        else if (is("keyword", "default")) {
-                                next();
-                                expect(":");
-                                cur = [];
-                                a.push([ null, cur ]);
-                        }
-                        else {
-                                if (!cur) unexpected();
-                                cur.push(statement());
-                        }
-                }
-                next();
-                return a;
-        });
-
-        function try_() {
-                var body = block_(), bcatch, bfinally;
-                if (is("keyword", "catch")) {
-                        next();
-                        expect("(");
-                        if (!is("name"))
-                                croak("Name expected");
-                        var name = S.token.value;
-                        next();
-                        expect(")");
-                        bcatch = [ name, block_() ];
-                }
-                if (is("keyword", "finally")) {
-                        next();
-                        bfinally = block_();
-                }
-                if (!bcatch && !bfinally)
-                        croak("Missing catch/finally blocks");
-                return as("try", body, bcatch, bfinally);
-        };
-
-        function vardefs(no_in) {
-                var a = [];
-                for (;;) {
-                        if (!is("name"))
-                                unexpected();
-                        var name = S.token.value;
-                        next();
-                        if (is("operator", "=")) {
-                                next();
-                                a.push([ name, expression(false, no_in) ]);
-                        } else {
-                                a.push([ name ]);
-                        }
-                        if (!is("punc", ","))
-                                break;
-                        next();
-                }
-                return a;
-        };
-
-        function var_(no_in) {
-                return as("var", vardefs(no_in));
-        };
-
-        function const_() {
-                return as("const", vardefs());
-        };
-
-        function new_() {
-                var newexp = expr_atom(false), args;
-                if (is("punc", "(")) {
-                        next();
-                        args = expr_list(")");
-                } else {
-                        args = [];
-                }
-                return subscripts(as("new", newexp, args), true);
-        };
-
-        var expr_atom = maybe_embed_tokens(function(allow_calls) {
-                if (is("operator", "new")) {
-                        next();
-                        return new_();
-                }
-                if (is("punc")) {
-                        switch (S.token.value) {
-                            case "(":
-                                next();
-                                return subscripts(prog1(expression, curry(expect, ")")), allow_calls);
-                            case "[":
-                                next();
-                                return subscripts(array_(), allow_calls);
-                            case "{":
-                                next();
-                                return subscripts(object_(), allow_calls);
-                        }
-                        unexpected();
-                }
-                if (is("keyword", "function")) {
-                        next();
-                        return subscripts(function_(false), allow_calls);
-                }
-                if (HOP(ATOMIC_START_TOKEN, S.token.type)) {
-                        var atom = S.token.type == "regexp"
-                                ? as("regexp", S.token.value[0], S.token.value[1])
-                                : as(S.token.type, S.token.value);
-                        return subscripts(prog1(atom, next), allow_calls);
-                }
-                unexpected();
-        });
-
-        function expr_list(closing, allow_trailing_comma, allow_empty) {
-                var first = true, a = [];
-                while (!is("punc", closing)) {
-                        if (first) first = false; else expect(",");
-                        if (allow_trailing_comma && is("punc", closing)) break;
-                        if (is("punc", ",") && allow_empty) {
-                                a.push([ "atom", "undefined" ]);
-                        } else {
-                                a.push(expression(false));
-                        }
-                }
-                next();
-                return a;
-        };
-
-        function array_() {
-                return as("array", expr_list("]", !exigent_mode, true));
-        };
-
-        function object_() {
-                var first = true, a = [];
-                while (!is("punc", "}")) {
-                        if (first) first = false; else expect(",");
-                        if (!exigent_mode && is("punc", "}"))
-                                // allow trailing comma
-                                break;
-                        var type = S.token.type;
-                        var name = as_property_name();
-                        if (type == "name" && (name == "get" || name == "set") && !is("punc", ":")) {
-                                a.push([ as_name(), function_(false), name ]);
-                        } else {
-                                expect(":");
-                                a.push([ name, expression(false) ]);
-                        }
-                }
-                next();
-                return as("object", a);
-        };
-
-        function as_property_name() {
-                switch (S.token.type) {
-                    case "num":
-                    case "string":
-                        return prog1(S.token.value, next);
-                }
-                return as_name();
-        };
-
-        function as_name() {
-                switch (S.token.type) {
-                    case "name":
-                    case "operator":
-                    case "keyword":
-                    case "atom":
-                        return prog1(S.token.value, next);
-                    default:
-                        unexpected();
-                }
-        };
-
-        function subscripts(expr, allow_calls) {
-                if (is("punc", ".")) {
-                        next();
-                        return subscripts(as("dot", expr, as_name()), allow_calls);
-                }
-                if (is("punc", "[")) {
-                        next();
-                        return subscripts(as("sub", expr, prog1(expression, curry(expect, "]"))), allow_calls);
-                }
-                if (allow_calls && is("punc", "(")) {
-                        next();
-                        return subscripts(as("call", expr, expr_list(")")), true);
-                }
-                return expr;
-        };
-
-        function maybe_unary(allow_calls) {
-                if (is("operator") && HOP(UNARY_PREFIX, S.token.value)) {
-                        return make_unary("unary-prefix",
-                                          prog1(S.token.value, next),
-                                          maybe_unary(allow_calls));
-                }
-                var val = expr_atom(allow_calls);
-                while (is("operator") && HOP(UNARY_POSTFIX, S.token.value) && !S.token.nlb) {
-                        val = make_unary("unary-postfix", S.token.value, val);
-                        next();
-                }
-                return val;
-        };
-
-        function make_unary(tag, op, expr) {
-                if ((op == "++" || op == "--") && !is_assignable(expr))
-                        croak("Invalid use of " + op + " operator");
-                return as(tag, op, expr);
-        };
-
-        function expr_op(left, min_prec, no_in) {
-                var op = is("operator") ? S.token.value : null;
-                if (op && op == "in" && no_in) op = null;
-                var prec = op != null ? PRECEDENCE[op] : null;
-                if (prec != null && prec > min_prec) {
-                        next();
-                        var right = expr_op(maybe_unary(true), prec, no_in);
-                        return expr_op(as("binary", op, left, right), min_prec, no_in);
-                }
-                return left;
-        };
-
-        function expr_ops(no_in) {
-                return expr_op(maybe_unary(true), 0, no_in);
-        };
-
-        function maybe_conditional(no_in) {
-                var expr = expr_ops(no_in);
-                if (is("operator", "?")) {
-                        next();
-                        var yes = expression(false);
-                        expect(":");
-                        return as("conditional", expr, yes, expression(false, no_in));
-                }
-                return expr;
-        };
-
-        function is_assignable(expr) {
-                if (!exigent_mode) return true;
-                switch (expr[0]+"") {
-                    case "dot":
-                    case "sub":
-                    case "new":
-                    case "call":
-                        return true;
-                    case "name":
-                        return expr[1] != "this";
-                }
-        };
-
-        function maybe_assign(no_in) {
-                var left = maybe_conditional(no_in), val = S.token.value;
-                if (is("operator") && HOP(ASSIGNMENT, val)) {
-                        if (is_assignable(left)) {
-                                next();
-                                return as("assign", ASSIGNMENT[val], left, maybe_assign(no_in));
-                        }
-                        croak("Invalid assignment");
-                }
-                return left;
-        };
-
-        var expression = maybe_embed_tokens(function(commas, no_in) {
-                if (arguments.length == 0)
-                        commas = true;
-                var expr = maybe_assign(no_in);
-                if (commas && is("punc", ",")) {
-                        next();
-                        return as("seq", expr, expression(true, no_in));
-                }
-                return expr;
-        });
-
-        function in_loop(cont) {
-                try {
-                        ++S.in_loop;
-                        return cont();
-                } finally {
-                        --S.in_loop;
-                }
-        };
-
-        return as("toplevel", (function(a){
-                while (!is("eof"))
-                        a.push(statement());
-                return a;
-        })([]));
-
-};
-
-/* -----[ Utilities ]----- */
-
-function curry(f) {
-        var args = slice(arguments, 1);
-        return function() { return f.apply(this, args.concat(slice(arguments))); };
-};
-
-function prog1(ret) {
-        if (ret instanceof Function)
-                ret = ret();
-        for (var i = 1, n = arguments.length; --n > 0; ++i)
-                arguments[i]();
-        return ret;
-};
-
-function array_to_hash(a) {
-        var ret = {};
-        for (var i = 0; i < a.length; ++i)
-                ret[a[i]] = true;
-        return ret;
-};
-
-function slice(a, start) {
-        return Array.prototype.slice.call(a, start || 0);
-};
-
-function characters(str) {
-        return str.split("");
-};
-
-function member(name, array) {
-        for (var i = array.length; --i >= 0;)
-                if (array[i] == name)
-                        return true;
-        return false;
-};
-
-function HOP(obj, prop) {
-        return Object.prototype.hasOwnProperty.call(obj, prop);
-};
-
-var warn = function() {};
-
-/* -----[ Exports ]----- */
-
-exports.tokenizer = tokenizer;
-exports.parse = parse;
-exports.slice = slice;
-exports.curry = curry;
-exports.member = member;
-exports.array_to_hash = array_to_hash;
-exports.PRECEDENCE = PRECEDENCE;
-exports.KEYWORDS_ATOM = KEYWORDS_ATOM;
-exports.RESERVED_WORDS = RESERVED_WORDS;
-exports.KEYWORDS = KEYWORDS;
-exports.ATOMIC_START_TOKEN = ATOMIC_START_TOKEN;
-exports.OPERATORS = OPERATORS;
-exports.is_alphanumeric_char = is_alphanumeric_char;
-exports.set_logger = function(logger) {
-        warn = logger;
-};
-
-});
-define('uglifyjs/squeeze-more', ["require", "exports", "module", "./parse-js", "./process"], function(require, exports, module) {
-
-var jsp = require("./parse-js"),
-    pro = require("./process"),
-    slice = jsp.slice,
-    member = jsp.member,
-    curry = jsp.curry,
-    MAP = pro.MAP,
-    PRECEDENCE = jsp.PRECEDENCE,
-    OPERATORS = jsp.OPERATORS;
-
-function ast_squeeze_more(ast) {
-        var w = pro.ast_walker(), walk = w.walk, scope;
-        function with_scope(s, cont) {
-                var save = scope, ret;
-                scope = s;
-                ret = cont();
-                scope = save;
-                return ret;
-        };
-        function _lambda(name, args, body) {
-                return [ this[0], name, args, with_scope(body.scope, curry(MAP, body, walk)) ];
-        };
-        return w.with_walkers({
-                "toplevel": function(body) {
-                        return [ this[0], with_scope(this.scope, curry(MAP, body, walk)) ];
-                },
-                "function": _lambda,
-                "defun": _lambda,
-                "new": function(ctor, args) {
-                        if (ctor[0] == "name") {
-                                if (ctor[1] == "Array" && !scope.has("Array")) {
-                                        if (args.length != 1) {
-                                                return [ "array", args ];
-                                        } else {
-                                                return walk([ "call", [ "name", "Array" ], args ]);
-                                        }
-                                } else if (ctor[1] == "Object" && !scope.has("Object")) {
-                                        if (!args.length) {
-                                                return [ "object", [] ];
-                                        } else {
-                                                return walk([ "call", [ "name", "Object" ], args ]);
-                                        }
-                                } else if ((ctor[1] == "RegExp" || ctor[1] == "Function" || ctor[1] == "Error") && !scope.has(ctor[1])) {
-                                        return walk([ "call", [ "name", ctor[1] ], args]);
-                                }
-                        }
-                },
-                "call": function(expr, args) {
-                        if (expr[0] == "dot" && expr[2] == "toString" && args.length == 0) {
-                                // foo.toString()  ==>  foo+""
-                                return [ "binary", "+", expr[1], [ "string", "" ]];
-                        }
-                        if (expr[0] == "name") {
-                                if (expr[1] == "Array" && args.length != 1 && !scope.has("Array")) {
-                                        return [ "array", args ];
-                                }
-                                if (expr[1] == "Object" && !args.length && !scope.has("Object")) {
-                                        return [ "object", [] ];
-                                }
-                                if (expr[1] == "String" && !scope.has("String")) {
-                                        return [ "binary", "+", args[0], [ "string", "" ]];
-                                }
-                        }
-                }
-        }, function() {
-                return walk(pro.ast_add_scope(ast));
-        });
-};
-
-exports.ast_squeeze_more = ast_squeeze_more;
-
-});define('uglifyjs/process', ["require", "exports", "module", "./parse-js", "./squeeze-more"], function(require, exports, module) {
-
-/***********************************************************************
-
-  A JavaScript tokenizer / parser / beautifier / compressor.
-
-  This version is suitable for Node.js.  With minimal changes (the
-  exports stuff) it should work on any JS platform.
-
-  This file implements some AST processors.  They work on data built
-  by parse-js.
-
-  Exported functions:
-
-    - ast_mangle(ast, options) -- mangles the variable/function names
-      in the AST.  Returns an AST.
-
-    - ast_squeeze(ast) -- employs various optimizations to make the
-      final generated code even smaller.  Returns an AST.
-
-    - gen_code(ast, options) -- generates JS code from the AST.  Pass
-      true (or an object, see the code for some options) as second
-      argument to get "pretty" (indented) code.
-
-  -------------------------------- (C) ---------------------------------
-
-                           Author: Mihai Bazon
-                         <mihai.bazon@gmail.com>
-                       http://mihai.bazon.net/blog
-
-  Distributed under the BSD license:
-
-    Copyright 2010 (c) Mihai Bazon <mihai.bazon@gmail.com>
-
-    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.
-
-    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “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 HOLDER 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.
-
- ***********************************************************************/
-
-var jsp = require("./parse-js"),
-    slice = jsp.slice,
-    member = jsp.member,
-    PRECEDENCE = jsp.PRECEDENCE,
-    OPERATORS = jsp.OPERATORS;
-
-/* -----[ helper for AST traversal ]----- */
-
-function ast_walker() {
-        function _vardefs(defs) {
-                return [ this[0], MAP(defs, function(def){
-                        var a = [ def[0] ];
-                        if (def.length > 1)
-                                a[1] = walk(def[1]);
-                        return a;
-                }) ];
-        };
-        function _block(statements) {
-                var out = [ this[0] ];
-                if (statements != null)
-                        out.push(MAP(statements, walk));
-                return out;
-        };
-        var walkers = {
-                "string": function(str) {
-                        return [ this[0], str ];
-                },
-                "num": function(num) {
-                        return [ this[0], num ];
-                },
-                "name": function(name) {
-                        return [ this[0], name ];
-                },
-                "toplevel": function(statements) {
-                        return [ this[0], MAP(statements, walk) ];
-                },
-                "block": _block,
-                "splice": _block,
-                "var": _vardefs,
-                "const": _vardefs,
-                "try": function(t, c, f) {
-                        return [
-                                this[0],
-                                MAP(t, walk),
-                                c != null ? [ c[0], MAP(c[1], walk) ] : null,
-                                f != null ? MAP(f, walk) : null
-                        ];
-                },
-                "throw": function(expr) {
-                        return [ this[0], walk(expr) ];
-                },
-                "new": function(ctor, args) {
-                        return [ this[0], walk(ctor), MAP(args, walk) ];
-                },
-                "switch": function(expr, body) {
-                        return [ this[0], walk(expr), MAP(body, function(branch){
-                                return [ branch[0] ? walk(branch[0]) : null,
-                                         MAP(branch[1], walk) ];
-                        }) ];
-                },
-                "break": function(label) {
-                        return [ this[0], label ];
-                },
-                "continue": function(label) {
-                        return [ this[0], label ];
-                },
-                "conditional": function(cond, t, e) {
-                        return [ this[0], walk(cond), walk(t), walk(e) ];
-                },
-                "assign": function(op, lvalue, rvalue) {
-                        return [ this[0], op, walk(lvalue), walk(rvalue) ];
-                },
-                "dot": function(expr) {
-                        return [ this[0], walk(expr) ].concat(slice(arguments, 1));
-                },
-                "call": function(expr, args) {
-                        return [ this[0], walk(expr), MAP(args, walk) ];
-                },
-                "function": function(name, args, body) {
-                        return [ this[0], name, args.slice(), MAP(body, walk) ];
-                },
-                "defun": function(name, args, body) {
-                        return [ this[0], name, args.slice(), MAP(body, walk) ];
-                },
-                "if": function(conditional, t, e) {
-                        return [ this[0], walk(conditional), walk(t), walk(e) ];
-                },
-                "for": function(init, cond, step, block) {
-                        return [ this[0], walk(init), walk(cond), walk(step), walk(block) ];
-                },
-                "for-in": function(vvar, key, hash, block) {
-                        return [ this[0], walk(vvar), walk(key), walk(hash), walk(block) ];
-                },
-                "while": function(cond, block) {
-                        return [ this[0], walk(cond), walk(block) ];
-                },
-                "do": function(cond, block) {
-                        return [ this[0], walk(cond), walk(block) ];
-                },
-                "return": function(expr) {
-                        return [ this[0], walk(expr) ];
-                },
-                "binary": function(op, left, right) {
-                        return [ this[0], op, walk(left), walk(right) ];
-                },
-                "unary-prefix": function(op, expr) {
-                        return [ this[0], op, walk(expr) ];
-                },
-                "unary-postfix": function(op, expr) {
-                        return [ this[0], op, walk(expr) ];
-                },
-                "sub": function(expr, subscript) {
-                        return [ this[0], walk(expr), walk(subscript) ];
-                },
-                "object": function(props) {
-                        return [ this[0], MAP(props, function(p){
-                                return p.length == 2
-                                        ? [ p[0], walk(p[1]) ]
-                                        : [ p[0], walk(p[1]), p[2] ]; // get/set-ter
-                        }) ];
-                },
-                "regexp": function(rx, mods) {
-                        return [ this[0], rx, mods ];
-                },
-                "array": function(elements) {
-                        return [ this[0], MAP(elements, walk) ];
-                },
-                "stat": function(stat) {
-                        return [ this[0], walk(stat) ];
-                },
-                "seq": function() {
-                        return [ this[0] ].concat(MAP(slice(arguments), walk));
-                },
-                "label": function(name, block) {
-                        return [ this[0], name, walk(block) ];
-                },
-                "with": function(expr, block) {
-                        return [ this[0], walk(expr), walk(block) ];
-                },
-                "atom": function(name) {
-                        return [ this[0], name ];
-                }
-        };
-
-        var user = {};
-        var stack = [];
-        function walk(ast) {
-                if (ast == null)
-                        return null;
-                try {
-                        stack.push(ast);
-                        var type = ast[0];
-                        var gen = user[type];
-                        if (gen) {
-                                var ret = gen.apply(ast, ast.slice(1));
-                                if (ret != null)
-                                        return ret;
-                        }
-                        gen = walkers[type];
-                        return gen.apply(ast, ast.slice(1));
-                } finally {
-                        stack.pop();
-                }
-        };
-
-        function dive(ast) {
-                if (ast == null)
-                        return null;
-                try {
-                        stack.push(ast);
-                        return walkers[ast[0]].apply(ast, ast.slice(1));
-                } finally {
-                        stack.pop();
-                }
-        };
-
-        function with_walkers(walkers, cont){
-                var save = {}, i;
-                for (i in walkers) if (HOP(walkers, i)) {
-                        save[i] = user[i];
-                        user[i] = walkers[i];
-                }
-                var ret = cont();
-                for (i in save) if (HOP(save, i)) {
-                        if (!save[i]) delete user[i];
-                        else user[i] = save[i];
-                }
-                return ret;
-        };
-
-        return {
-                walk: walk,
-                dive: dive,
-                with_walkers: with_walkers,
-                parent: function() {
-                        return stack[stack.length - 2]; // last one is current node
-                },
-                stack: function() {
-                        return stack;
-                }
-        };
-};
-
-/* -----[ Scope and mangling ]----- */
-
-function Scope(parent) {
-        this.names = {};        // names defined in this scope
-        this.mangled = {};      // mangled names (orig.name => mangled)
-        this.rev_mangled = {};  // reverse lookup (mangled => orig.name)
-        this.cname = -1;        // current mangled name
-        this.refs = {};         // names referenced from this scope
-        this.uses_with = false; // will become TRUE if with() is detected in this or any subscopes
-        this.uses_eval = false; // will become TRUE if eval() is detected in this or any subscopes
-        this.parent = parent;   // parent scope
-        this.children = [];     // sub-scopes
-        if (parent) {
-                this.level = parent.level + 1;
-                parent.children.push(this);
-        } else {
-                this.level = 0;
-        }
-};
-
-var base54 = (function(){
-        var DIGITS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_";
-        return function(num) {
-                var ret = "";
-                do {
-                        ret = DIGITS.charAt(num % 54) + ret;
-                        num = Math.floor(num / 54);
-                } while (num > 0);
-                return ret;
-        };
-})();
-
-Scope.prototype = {
-        has: function(name) {
-                for (var s = this; s; s = s.parent)
-                        if (HOP(s.names, name))
-                                return s;
-        },
-        has_mangled: function(mname) {
-                for (var s = this; s; s = s.parent)
-                        if (HOP(s.rev_mangled, mname))
-                                return s;
-        },
-        toJSON: function() {
-                return {
-                        names: this.names,
-                        uses_eval: this.uses_eval,
-                        uses_with: this.uses_with
-                };
-        },
-
-        next_mangled: function() {
-                // we must be careful that the new mangled name:
-                //
-                // 1. doesn't shadow a mangled name from a parent
-                //    scope, unless we don't reference the original
-                //    name from this scope OR from any sub-scopes!
-                //    This will get slow.
-                //
-                // 2. doesn't shadow an original name from a parent
-                //    scope, in the event that the name is not mangled
-                //    in the parent scope and we reference that name
-                //    here OR IN ANY SUBSCOPES!
-                //
-                // 3. doesn't shadow a name that is referenced but not
-                //    defined (possibly global defined elsewhere).
-                for (;;) {
-                        var m = base54(++this.cname), prior;
-
-                        // case 1.
-                        prior = this.has_mangled(m);
-                        if (prior && this.refs[prior.rev_mangled[m]] === prior)
-                                continue;
-
-                        // case 2.
-                        prior = this.has(m);
-                        if (prior && prior !== this && this.refs[m] === prior && !prior.has_mangled(m))
-                                continue;
-
-                        // case 3.
-                        if (HOP(this.refs, m) && this.refs[m] == null)
-                                continue;
-
-                        // I got "do" once. :-/
-                        if (!is_identifier(m))
-                                continue;
-
-                        return m;
-                }
-        },
-        set_mangle: function(name, m) {
-                this.rev_mangled[m] = name;
-                return this.mangled[name] = m;
-        },
-        get_mangled: function(name, newMangle) {
-                if (this.uses_eval || this.uses_with) return name; // no mangle if eval or with is in use
-                var s = this.has(name);
-                if (!s) return name; // not in visible scope, no mangle
-                if (HOP(s.mangled, name)) return s.mangled[name]; // already mangled in this scope
-                if (!newMangle) return name;                      // not found and no mangling requested
-                return s.set_mangle(name, s.next_mangled());
-        },
-        references: function(name) {
-                return name && !this.parent || this.uses_with || this.uses_eval || this.refs[name];
-        },
-        define: function(name, type) {
-                if (name != null) {
-                        if (type == "var" || !HOP(this.names, name))
-                                this.names[name] = type || "var";
-                        return name;
-                }
-        }
-};
-
-function ast_add_scope(ast) {
-
-        var current_scope = null;
-        var w = ast_walker(), walk = w.walk;
-        var having_eval = [];
-
-        function with_new_scope(cont) {
-                current_scope = new Scope(current_scope);
-                current_scope.labels = new Scope();
-                var ret = current_scope.body = cont();
-                ret.scope = current_scope;
-                current_scope = current_scope.parent;
-                return ret;
-        };
-
-        function define(name, type) {
-                return current_scope.define(name, type);
-        };
-
-        function reference(name) {
-                current_scope.refs[name] = true;
-        };
-
-        function _lambda(name, args, body) {
-                var is_defun = this[0] == "defun";
-                return [ this[0], is_defun ? define(name, "defun") : name, args, with_new_scope(function(){
-                        if (!is_defun) define(name, "lambda");
-                        MAP(args, function(name){ define(name, "arg") });
-                        return MAP(body, walk);
-                })];
-        };
-
-        function _vardefs(type) {
-                return function(defs) {
-                        MAP(defs, function(d){
-                                define(d[0], type);
-                                if (d[1]) reference(d[0]);
-                        });
-                };
-        };
-
-        function _breacont(label) {
-                if (label)
-                        current_scope.labels.refs[label] = true;
-        };
-
-        return with_new_scope(function(){
-                // process AST
-                var ret = w.with_walkers({
-                        "function": _lambda,
-                        "defun": _lambda,
-                        "label": function(name, stat) { current_scope.labels.define(name) },
-                        "break": _breacont,
-                        "continue": _breacont,
-                        "with": function(expr, block) {
-                                for (var s = current_scope; s; s = s.parent)
-                                        s.uses_with = true;
-                        },
-                        "var": _vardefs("var"),
-                        "const": _vardefs("const"),
-                        "try": function(t, c, f) {
-                                if (c != null) return [
-                                        this[0],
-                                        MAP(t, walk),
-                                        [ define(c[0], "catch"), MAP(c[1], walk) ],
-                                        f != null ? MAP(f, walk) : null
-                                ];
-                        },
-                        "name": function(name) {
-                                if (name == "eval")
-                                        having_eval.push(current_scope);
-                                reference(name);
-                        }
-                }, function(){
-                        return walk(ast);
-                });
-
-                // the reason why we need an additional pass here is
-                // that names can be used prior to their definition.
-
-                // scopes where eval was detected and their parents
-                // are marked with uses_eval, unless they define the
-                // "eval" name.
-                MAP(having_eval, function(scope){
-                        if (!scope.has("eval")) while (scope) {
-                                scope.uses_eval = true;
-                                scope = scope.parent;
-                        }
-                });
-
-                // for referenced names it might be useful to know
-                // their origin scope.  current_scope here is the
-                // toplevel one.
-                function fixrefs(scope, i) {
-                        // do children first; order shouldn't matter
-                        for (i = scope.children.length; --i >= 0;)
-                                fixrefs(scope.children[i]);
-                        for (i in scope.refs) if (HOP(scope.refs, i)) {
-                                // find origin scope and propagate the reference to origin
-                                for (var origin = scope.has(i), s = scope; s; s = s.parent) {
-                                        s.refs[i] = origin;
-                                        if (s === origin) break;
-                                }
-                        }
-                };
-                fixrefs(current_scope);
-
-                return ret;
-        });
-
-};
-
-/* -----[ mangle names ]----- */
-
-function ast_mangle(ast, options) {
-        var w = ast_walker(), walk = w.walk, scope;
-        options = options || {};
-
-        function get_mangled(name, newMangle) {
-                if (!options.toplevel && !scope.parent) return name; // don't mangle toplevel
-                if (options.except && member(name, options.except))
-                        return name;
-                return scope.get_mangled(name, newMangle);
-        };
-
-        function get_define(name) {
-                if (options.defines) {
-                        // we always lookup a defined symbol for the current scope FIRST, so declared
-                        // vars trump a DEFINE symbol, but if no such var is found, then match a DEFINE value
-                        if (!scope.has(name)) {
-                                if (HOP(options.defines, name)) {
-                                        return options.defines[name];
-                                }
-                        }
-                        return null;
-                }
-        };
-
-        function _lambda(name, args, body) {
-                if (!options.no_functions) {
-                        var is_defun = this[0] == "defun", extra;
-                        if (name) {
-                                if (is_defun) name = get_mangled(name);
-                                else if (body.scope.references(name)) {
-                                        extra = {};
-                                        if (!(scope.uses_eval || scope.uses_with))
-                                                name = extra[name] = scope.next_mangled();
-                                        else
-                                                extra[name] = name;
-                                }
-                                else name = null;
-                        }
-                }
-                body = with_scope(body.scope, function(){
-                        args = MAP(args, function(name){ return get_mangled(name) });
-                        return MAP(body, walk);
-                }, extra);
-                return [ this[0], name, args, body ];
-        };
-
-        function with_scope(s, cont, extra) {
-                var _scope = scope;
-                scope = s;
-                if (extra) for (var i in extra) if (HOP(extra, i)) {
-                        s.set_mangle(i, extra[i]);
-                }
-                for (var i in s.names) if (HOP(s.names, i)) {
-                        get_mangled(i, true);
-                }
-                var ret = cont();
-                ret.scope = s;
-                scope = _scope;
-                return ret;
-        };
-
-        function _vardefs(defs) {
-                return [ this[0], MAP(defs, function(d){
-                        return [ get_mangled(d[0]), walk(d[1]) ];
-                }) ];
-        };
-
-        function _breacont(label) {
-                if (label) return [ this[0], scope.labels.get_mangled(label) ];
-        };
-
-        return w.with_walkers({
-                "function": _lambda,
-                "defun": function() {
-                        // move function declarations to the top when
-                        // they are not in some block.
-                        var ast = _lambda.apply(this, arguments);
-                        switch (w.parent()[0]) {
-                            case "toplevel":
-                            case "function":
-                            case "defun":
-                                return MAP.at_top(ast);
-                        }
-                        return ast;
-                },
-                "label": function(label, stat) {
-                        if (scope.labels.refs[label]) return [
-                                this[0],
-                                scope.labels.get_mangled(label, true),
-                                walk(stat)
-                        ];
-                        return walk(stat);
-                },
-                "break": _breacont,
-                "continue": _breacont,
-                "var": _vardefs,
-                "const": _vardefs,
-                "name": function(name) {
-                        return get_define(name) || [ this[0], get_mangled(name) ];
-                },
-                "try": function(t, c, f) {
-                        return [ this[0],
-                                 MAP(t, walk),
-                                 c != null ? [ get_mangled(c[0]), MAP(c[1], walk) ] : null,
-                                 f != null ? MAP(f, walk) : null ];
-                },
-                "toplevel": function(body) {
-                        var self = this;
-                        return with_scope(self.scope, function(){
-                                return [ self[0], MAP(body, walk) ];
-                        });
-                }
-        }, function() {
-                return walk(ast_add_scope(ast));
-        });
-};
-
-/* -----[
-   - compress foo["bar"] into foo.bar,
-   - remove block brackets {} where possible
-   - join consecutive var declarations
-   - various optimizations for IFs:
-     - if (cond) foo(); else bar();  ==>  cond?foo():bar();
-     - if (cond) foo();  ==>  cond&&foo();
-     - if (foo) return bar(); else return baz();  ==> return foo?bar():baz(); // also for throw
-     - if (foo) return bar(); else something();  ==> {if(foo)return bar();something()}
-   ]----- */
-
-var warn = function(){};
-
-function best_of(ast1, ast2) {
-        return gen_code(ast1).length > gen_code(ast2[0] == "stat" ? ast2[1] : ast2).length ? ast2 : ast1;
-};
-
-function last_stat(b) {
-        if (b[0] == "block" && b[1] && b[1].length > 0)
-                return b[1][b[1].length - 1];
-        return b;
-}
-
-function aborts(t) {
-        if (t) switch (last_stat(t)[0]) {
-            case "return":
-            case "break":
-            case "continue":
-            case "throw":
-                return true;
-        }
-};
-
-function boolean_expr(expr) {
-        return ( (expr[0] == "unary-prefix"
-                  && member(expr[1], [ "!", "delete" ])) ||
-
-                 (expr[0] == "binary"
-                  && member(expr[1], [ "in", "instanceof", "==", "!=", "===", "!==", "<", "<=", ">=", ">" ])) ||
-
-                 (expr[0] == "binary"
-                  && member(expr[1], [ "&&", "||" ])
-                  && boolean_expr(expr[2])
-                  && boolean_expr(expr[3])) ||
-
-                 (expr[0] == "conditional"
-                  && boolean_expr(expr[2])
-                  && boolean_expr(expr[3])) ||
-
-                 (expr[0] == "assign"
-                  && expr[1] === true
-                  && boolean_expr(expr[3])) ||
-
-                 (expr[0] == "seq"
-                  && boolean_expr(expr[expr.length - 1]))
-               );
-};
-
-function empty(b) {
-        return !b || (b[0] == "block" && (!b[1] || b[1].length == 0));
-};
-
-function is_string(node) {
-        return (node[0] == "string" ||
-                node[0] == "unary-prefix" && node[1] == "typeof" ||
-                node[0] == "binary" && node[1] == "+" &&
-                (is_string(node[2]) || is_string(node[3])));
-};
-
-var when_constant = (function(){
-
-        var $NOT_CONSTANT = {};
-
-        // this can only evaluate constant expressions.  If it finds anything
-        // not constant, it throws $NOT_CONSTANT.
-        function evaluate(expr) {
-                switch (expr[0]) {
-                    case "string":
-                    case "num":
-                        return expr[1];
-                    case "name":
-                    case "atom":
-                        switch (expr[1]) {
-                            case "true": return true;
-                            case "false": return false;
-                            case "null": return null;
-                        }
-                        break;
-                    case "unary-prefix":
-                        switch (expr[1]) {
-                            case "!": return !evaluate(expr[2]);
-                            case "typeof": return typeof evaluate(expr[2]);
-                            case "~": return ~evaluate(expr[2]);
-                            case "-": return -evaluate(expr[2]);
-                            case "+": return +evaluate(expr[2]);
-                        }
-                        break;
-                    case "binary":
-                        var left = expr[2], right = expr[3];
-                        switch (expr[1]) {
-                            case "&&"         : return evaluate(left) &&         evaluate(right);
-                            case "||"         : return evaluate(left) ||         evaluate(right);
-                            case "|"          : return evaluate(left) |          evaluate(right);
-                            case "&"          : return evaluate(left) &          evaluate(right);
-                            case "^"          : return evaluate(left) ^          evaluate(right);
-                            case "+"          : return evaluate(left) +          evaluate(right);
-                            case "*"          : return evaluate(left) *          evaluate(right);
-                            case "/"          : return evaluate(left) /          evaluate(right);
-                            case "%"          : return evaluate(left) %          evaluate(right);
-                            case "-"          : return evaluate(left) -          evaluate(right);
-                            case "<<"         : return evaluate(left) <<         evaluate(right);
-                            case ">>"         : return evaluate(left) >>         evaluate(right);
-                            case ">>>"        : return evaluate(left) >>>        evaluate(right);
-                            case "=="         : return evaluate(left) ==         evaluate(right);
-                            case "==="        : return evaluate(left) ===        evaluate(right);
-                            case "!="         : return evaluate(left) !=         evaluate(right);
-                            case "!=="        : return evaluate(left) !==        evaluate(right);
-                            case "<"          : return evaluate(left) <          evaluate(right);
-                            case "<="         : return evaluate(left) <=         evaluate(right);
-                            case ">"          : return evaluate(left) >          evaluate(right);
-                            case ">="         : return evaluate(left) >=         evaluate(right);
-                            case "in"         : return evaluate(left) in         evaluate(right);
-                            case "instanceof" : return evaluate(left) instanceof evaluate(right);
-                        }
-                }
-                throw $NOT_CONSTANT;
-        };
-
-        return function(expr, yes, no) {
-                try {
-                        var val = evaluate(expr), ast;
-                        switch (typeof val) {
-                            case "string": ast =  [ "string", val ]; break;
-                            case "number": ast =  [ "num", val ]; break;
-                            case "boolean": ast =  [ "name", String(val) ]; break;
-                            default: throw new Error("Can't handle constant of type: " + (typeof val));
-                        }
-                        return yes.call(expr, ast, val);
-                } catch(ex) {
-                        if (ex === $NOT_CONSTANT) {
-                                if (expr[0] == "binary"
-                                    && (expr[1] == "===" || expr[1] == "!==")
-                                    && ((is_string(expr[2]) && is_string(expr[3]))
-                                        || (boolean_expr(expr[2]) && boolean_expr(expr[3])))) {
-                                        expr[1] = expr[1].substr(0, 2);
-                                }
-                                else if (no && expr[0] == "binary"
-                                         && (expr[1] == "||" || expr[1] == "&&")) {
-                                    // the whole expression is not constant but the lval may be...
-                                    try {
-                                        var lval = evaluate(expr[2]);
-                                        expr = ((expr[1] == "&&" && (lval ? expr[3] : lval))    ||
-                                                (expr[1] == "||" && (lval ? lval    : expr[3])) ||
-                                                expr);
-                                    } catch(ex2) {
-                                        // IGNORE... lval is not constant
-                                    }
-                                }
-                                return no ? no.call(expr, expr) : null;
-                        }
-                        else throw ex;
-                }
-        };
-
-})();
-
-function warn_unreachable(ast) {
-        if (!empty(ast))
-                warn("Dropping unreachable code: " + gen_code(ast, true));
-};
-
-function prepare_ifs(ast) {
-        var w = ast_walker(), walk = w.walk;
-        // In this first pass, we rewrite ifs which abort with no else with an
-        // if-else.  For example:
-        //
-        // if (x) {
-        //     blah();
-        //     return y;
-        // }
-        // foobar();
-        //
-        // is rewritten into:
-        //
-        // if (x) {
-        //     blah();
-        //     return y;
-        // } else {
-        //     foobar();
-        // }
-        function redo_if(statements) {
-                statements = MAP(statements, walk);
-
-                for (var i = 0; i < statements.length; ++i) {
-                        var fi = statements[i];
-                        if (fi[0] != "if") continue;
-
-                        if (fi[3] && walk(fi[3])) continue;
-
-                        var t = walk(fi[2]);
-                        if (!aborts(t)) continue;
-
-                        var conditional = walk(fi[1]);
-
-                        var e_body = statements.slice(i + 1);
-                        var e = e_body.length == 1 ? e_body[0] : [ "block", e_body ];
-
-                        var ret = statements.slice(0, i).concat([ [
-                                fi[0],          // "if"
-                                conditional,    // conditional
-                                t,              // then
-                                e               // else
-                        ] ]);
-
-                        return redo_if(ret);
-                }
-
-                return statements;
-        };
-
-        function redo_if_lambda(name, args, body) {
-                body = redo_if(body);
-                return [ this[0], name, args, body ];
-        };
-
-        function redo_if_block(statements) {
-                return [ this[0], statements != null ? redo_if(statements) : null ];
-        };
-
-        return w.with_walkers({
-                "defun": redo_if_lambda,
-                "function": redo_if_lambda,
-                "block": redo_if_block,
-                "splice": redo_if_block,
-                "toplevel": function(statements) {
-                        return [ this[0], redo_if(statements) ];
-                },
-                "try": function(t, c, f) {
-                        return [
-                                this[0],
-                                redo_if(t),
-                                c != null ? [ c[0], redo_if(c[1]) ] : null,
-                                f != null ? redo_if(f) : null
-                        ];
-                }
-        }, function() {
-                return walk(ast);
-        });
-};
-
-function for_side_effects(ast, handler) {
-        var w = ast_walker(), walk = w.walk;
-        var $stop = {}, $restart = {};
-        function stop() { throw $stop };
-        function restart() { throw $restart };
-        function found(){ return handler.call(this, this, w, stop, restart) };
-        function unary(op) {
-                if (op == "++" || op == "--")
-                        return found.apply(this, arguments);
-        };
-        return w.with_walkers({
-                "try": found,
-                "throw": found,
-                "return": found,
-                "new": found,
-                "switch": found,
-                "break": found,
-                "continue": found,
-                "assign": found,
-                "call": found,
-                "if": found,
-                "for": found,
-                "for-in": found,
-                "while": found,
-                "do": found,
-                "return": found,
-                "unary-prefix": unary,
-                "unary-postfix": unary,
-                "defun": found
-        }, function(){
-                while (true) try {
-                        walk(ast);
-                        break;
-                } catch(ex) {
-                        if (ex === $stop) break;
-                        if (ex === $restart) continue;
-                        throw ex;
-                }
-        });
-};
-
-function ast_lift_variables(ast) {
-        var w = ast_walker(), walk = w.walk, scope;
-        function do_body(body, env) {
-                var _scope = scope;
-                scope = env;
-                body = MAP(body, walk);
-                var hash = {}, names = MAP(env.names, function(type, name){
-                        if (type != "var") return MAP.skip;
-                        if (!env.references(name)) return MAP.skip;
-                        hash[name] = true;
-                        return [ name ];
-                });
-                if (names.length > 0) {
-                        // looking for assignments to any of these variables.
-                        // we can save considerable space by moving the definitions
-                        // in the var declaration.
-                        for_side_effects([ "block", body ], function(ast, walker, stop, restart) {
-                                if (ast[0] == "assign"
-                                    && ast[1] === true
-                                    && ast[2][0] == "name"
-                                    && HOP(hash, ast[2][1])) {
-                                        // insert the definition into the var declaration
-                                        for (var i = names.length; --i >= 0;) {
-                                                if (names[i][0] == ast[2][1]) {
-                                                        if (names[i][1]) // this name already defined, we must stop
-                                                                stop();
-                                                        names[i][1] = ast[3]; // definition
-                                                        names.push(names.splice(i, 1)[0]);
-                                                        break;
-                                                }
-                                        }
-                                        // remove this assignment from the AST.
-                                        var p = walker.parent();
-                                        if (p[0] == "seq") {
-                                                var a = p[2];
-                                                a.unshift(0, p.length);
-                                                p.splice.apply(p, a);
-                                        }
-                                        else if (p[0] == "stat") {
-                                                p.splice(0, p.length, "block"); // empty statement
-                                        }
-                                        else {
-                                                stop();
-                                        }
-                                        restart();
-                                }
-                                stop();
-                        });
-                        body.unshift([ "var", names ]);
-                }
-                scope = _scope;
-                return body;
-        };
-        function _vardefs(defs) {
-                var ret = null;
-                for (var i = defs.length; --i >= 0;) {
-                        var d = defs[i];
-                        if (!d[1]) continue;
-                        d = [ "assign", true, [ "name", d[0] ], d[1] ];
-                        if (ret == null) ret = d;
-                        else ret = [ "seq", d, ret ];
-                }
-                if (ret == null) {
-                        if (w.parent()[0] == "for-in")
-                                return [ "name", defs[0][0] ];
-                        return MAP.skip;
-                }
-                return [ "stat", ret ];
-        };
-        function _toplevel(body) {
-                return [ this[0], do_body(body, this.scope) ];
-        };
-        return w.with_walkers({
-                "function": function(name, args, body){
-                        for (var i = args.length; --i >= 0 && !body.scope.references(args[i]);)
-                                args.pop();
-                        if (!body.scope.references(name)) name = null;
-                        return [ this[0], name, args, do_body(body, body.scope) ];
-                },
-                "defun": function(name, args, body){
-                        if (!scope.references(name)) return MAP.skip;
-                        for (var i = args.length; --i >= 0 && !body.scope.references(args[i]);)
-                                args.pop();
-                        return [ this[0], name, args, do_body(body, body.scope) ];
-                },
-                "var": _vardefs,
-                "toplevel": _toplevel
-        }, function(){
-                return walk(ast_add_scope(ast));
-        });
-};
-
-function ast_squeeze(ast, options) {
-        options = defaults(options, {
-                make_seqs   : true,
-                dead_code   : true,
-                no_warnings : false,
-                keep_comps  : true
-        });
-
-        var w = ast_walker(), walk = w.walk;
-
-        function negate(c) {
-                var not_c = [ "unary-prefix", "!", c ];
-                switch (c[0]) {
-                    case "unary-prefix":
-                        return c[1] == "!" && boolean_expr(c[2]) ? c[2] : not_c;
-                    case "seq":
-                        c = slice(c);
-                        c[c.length - 1] = negate(c[c.length - 1]);
-                        return c;
-                    case "conditional":
-                        return best_of(not_c, [ "conditional", c[1], negate(c[2]), negate(c[3]) ]);
-                    case "binary":
-                        var op = c[1], left = c[2], right = c[3];
-                        if (!options.keep_comps) switch (op) {
-                            case "<="  : return [ "binary", ">", left, right ];
-                            case "<"   : return [ "binary", ">=", left, right ];
-                            case ">="  : return [ "binary", "<", left, right ];
-                            case ">"   : return [ "binary", "<=", left, right ];
-                        }
-                        switch (op) {
-                            case "=="  : return [ "binary", "!=", left, right ];
-                            case "!="  : return [ "binary", "==", left, right ];
-                            case "===" : return [ "binary", "!==", left, right ];
-                            case "!==" : return [ "binary", "===", left, right ];
-                            case "&&"  : return best_of(not_c, [ "binary", "||", negate(left), negate(right) ]);
-                            case "||"  : return best_of(not_c, [ "binary", "&&", negate(left), negate(right) ]);
-                        }
-                        break;
-                }
-                return not_c;
-        };
-
-        function make_conditional(c, t, e) {
-                var make_real_conditional = function() {
-                        if (c[0] == "unary-prefix" && c[1] == "!") {
-                                return e ? [ "conditional", c[2], e, t ] : [ "binary", "||", c[2], t ];
-                        } else {
-                                return e ? best_of(
-                                        [ "conditional", c, t, e ],
-                                        [ "conditional", negate(c), e, t ]
-                                ) : [ "binary", "&&", c, t ];
-                        }
-                };
-                // shortcut the conditional if the expression has a constant value
-                return when_constant(c, function(ast, val){
-                        warn_unreachable(val ? e : t);
-                        return          (val ? t : e);
-                }, make_real_conditional);
-        };
-
-        function rmblock(block) {
-                if (block != null && block[0] == "block" && block[1]) {
-                        if (block[1].length == 1)
-                                block = block[1][0];
-                        else if (block[1].length == 0)
-                                block = [ "block" ];
-                }
-                return block;
-        };
-
-        function _lambda(name, args, body) {
-                return [ this[0], name, args, tighten(body, "lambda") ];
-        };
-
-        // this function does a few things:
-        // 1. discard useless blocks
-        // 2. join consecutive var declarations
-        // 3. remove obviously dead code
-        // 4. transform consecutive statements using the comma operator
-        // 5. if block_type == "lambda" and it detects constructs like if(foo) return ... - rewrite like if (!foo) { ... }
-        function tighten(statements, block_type) {
-                statements = MAP(statements, walk);
-
-                statements = statements.reduce(function(a, stat){
-                        if (stat[0] == "block") {
-                                if (stat[1]) {
-                                        a.push.apply(a, stat[1]);
-                                }
-                        } else {
-                                a.push(stat);
-                        }
-                        return a;
-                }, []);
-
-                statements = (function(a, prev){
-                        statements.forEach(function(cur){
-                                if (prev && ((cur[0] == "var" && prev[0] == "var") ||
-                                             (cur[0] == "const" && prev[0] == "const"))) {
-                                        prev[1] = prev[1].concat(cur[1]);
-                                } else {
-                                        a.push(cur);
-                                        prev = cur;
-                                }
-                        });
-                        return a;
-                })([]);
-
-                if (options.dead_code) statements = (function(a, has_quit){
-                        statements.forEach(function(st){
-                                if (has_quit) {
-                                        if (st[0] == "function" || st[0] == "defun") {
-                                                a.push(st);
-                                        }
-                                        else if (st[0] == "var" || st[0] == "const") {
-                                                if (!options.no_warnings)
-                                                        warn("Variables declared in unreachable code");
-                                                st[1] = MAP(st[1], function(def){
-                                                        if (def[1] && !options.no_warnings)
-                                                                warn_unreachable([ "assign", true, [ "name", def[0] ], def[1] ]);
-                                                        return [ def[0] ];
-                                                });
-                                                a.push(st);
-                                        }
-                                        else if (!options.no_warnings)
-                                                warn_unreachable(st);
-                                }
-                                else {
-                                        a.push(st);
-                                        if (member(st[0], [ "return", "throw", "break", "continue" ]))
-                                                has_quit = true;
-                                }
-                        });
-                        return a;
-                })([]);
-
-                if (options.make_seqs) statements = (function(a, prev) {
-                        statements.forEach(function(cur){
-                                if (prev && prev[0] == "stat" && cur[0] == "stat") {
-                                        prev[1] = [ "seq", prev[1], cur[1] ];
-                                } else {
-                                        a.push(cur);
-                                        prev = cur;
-                                }
-                        });
-                        if (a.length >= 2
-                            && a[a.length-2][0] == "stat"
-                            && (a[a.length-1][0] == "return" || a[a.length-1][0] == "throw")
-                            && a[a.length-1][1])
-                        {
-                                a.splice(a.length - 2, 2,
-                                         [ a[a.length-1][0],
-                                           [ "seq", a[a.length-2][1], a[a.length-1][1] ]]);
-                        }
-                        return a;
-                })([]);
-
-                // this increases jQuery by 1K.  Probably not such a good idea after all..
-                // part of this is done in prepare_ifs anyway.
-                // if (block_type == "lambda") statements = (function(i, a, stat){
-                //         while (i < statements.length) {
-                //                 stat = statements[i++];
-                //                 if (stat[0] == "if" && !stat[3]) {
-                //                         if (stat[2][0] == "return" && stat[2][1] == null) {
-                //                                 a.push(make_if(negate(stat[1]), [ "block", statements.slice(i) ]));
-                //                                 break;
-                //                         }
-                //                         var last = last_stat(stat[2]);
-                //                         if (last[0] == "return" && last[1] == null) {
-                //                                 a.push(make_if(stat[1], [ "block", stat[2][1].slice(0, -1) ], [ "block", statements.slice(i) ]));
-                //                                 break;
-                //                         }
-                //                 }
-                //                 a.push(stat);
-                //         }
-                //         return a;
-                // })(0, []);
-
-                return statements;
-        };
-
-        function make_if(c, t, e) {
-                return when_constant(c, function(ast, val){
-                        if (val) {
-                                t = walk(t);
-                                warn_unreachable(e);
-                                return t || [ "block" ];
-                        } else {
-                                e = walk(e);
-                                warn_unreachable(t);
-                                return e || [ "block" ];
-                        }
-                }, function() {
-                        return make_real_if(c, t, e);
-                });
-        };
-
-        function make_real_if(c, t, e) {
-                c = walk(c);
-                t = walk(t);
-                e = walk(e);
-
-                if (empty(t)) {
-                        c = negate(c);
-                        t = e;
-                        e = null;
-                } else if (empty(e)) {
-                        e = null;
-                } else {
-                        // if we have both else and then, maybe it makes sense to switch them?
-                        (function(){
-                                var a = gen_code(c);
-                                var n = negate(c);
-                                var b = gen_code(n);
-                                if (b.length < a.length) {
-                                        var tmp = t;
-                                        t = e;
-                                        e = tmp;
-                                        c = n;
-                                }
-                        })();
-                }
-                if (empty(e) && empty(t))
-                        return [ "stat", c ];
-                var ret = [ "if", c, t, e ];
-                if (t[0] == "if" && empty(t[3]) && empty(e)) {
-                        ret = best_of(ret, walk([ "if", [ "binary", "&&", c, t[1] ], t[2] ]));
-                }
-                else if (t[0] == "stat") {
-                        if (e) {
-                                if (e[0] == "stat") {
-                                        ret = best_of(ret, [ "stat", make_conditional(c, t[1], e[1]) ]);
-                                }
-                        }
-                        else {
-                                ret = best_of(ret, [ "stat", make_conditional(c, t[1]) ]);
-                        }
-                }
-                else if (e && t[0] == e[0] && (t[0] == "return" || t[0] == "throw") && t[1] && e[1]) {
-                        ret = best_of(ret, [ t[0], make_conditional(c, t[1], e[1] ) ]);
-                }
-                else if (e && aborts(t)) {
-                        ret = [ [ "if", c, t ] ];
-                        if (e[0] == "block") {
-                                if (e[1]) ret = ret.concat(e[1]);
-                        }
-                        else {
-                                ret.push(e);
-                        }
-                        ret = walk([ "block", ret ]);
-                }
-                else if (t && aborts(e)) {
-                        ret = [ [ "if", negate(c), e ] ];
-                        if (t[0] == "block") {
-                                if (t[1]) ret = ret.concat(t[1]);
-                        } else {
-                                ret.push(t);
-                        }
-                        ret = walk([ "block", ret ]);
-                }
-                return ret;
-        };
-
-        function _do_while(cond, body) {
-                return when_constant(cond, function(cond, val){
-                        if (!val) {
-                                warn_unreachable(body);
-                                return [ "block" ];
-                        } else {
-                                return [ "for", null, null, null, walk(body) ];
-                        }
-                });
-        };
-
-        return w.with_walkers({
-                "sub": function(expr, subscript) {
-                        if (subscript[0] == "string") {
-                                var name = subscript[1];
-                                if (is_identifier(name))
-                                        return [ "dot", walk(expr), name ];
-                                else if (/^[1-9][0-9]*$/.test(name) || name === "0")
-                                        return [ "sub", walk(expr), [ "num", parseInt(name, 10) ] ];
-                        }
-                },
-                "if": make_if,
-                "toplevel": function(body) {
-                        return [ "toplevel", tighten(body) ];
-                },
-                "switch": function(expr, body) {
-                        var last = body.length - 1;
-                        return [ "switch", walk(expr), MAP(body, function(branch, i){
-                                var block = tighten(branch[1]);
-                                if (i == last && block.length > 0) {
-                                        var node = block[block.length - 1];
-                                        if (node[0] == "break" && !node[1])
-                                                block.pop();
-                                }
-                                return [ branch[0] ? walk(branch[0]) : null, block ];
-                        }) ];
-                },
-                "function": _lambda,
-                "defun": _lambda,
-                "block": function(body) {
-                        if (body) return rmblock([ "block", tighten(body) ]);
-                },
-                "binary": function(op, left, right) {
-                        return when_constant([ "binary", op, walk(left), walk(right) ], function yes(c){
-                                return best_of(walk(c), this);
-                        }, function no() {
-                                return function(){
-                                        if(op != "==" && op != "!=") return;
-                                        var l = walk(left), r = walk(right);
-                                        if(l && l[0] == "unary-prefix" && l[1] == "!" && l[2][0] == "num")
-                                                left = ['num', +!l[2][1]];
-                                        else if (r && r[0] == "unary-prefix" && r[1] == "!" && r[2][0] == "num")
-                                                right = ['num', +!r[2][1]];
-                                        return ["binary", op, left, right];
-                                }() || this;
-                        });
-                },
-                "conditional": function(c, t, e) {
-                        return make_conditional(walk(c), walk(t), walk(e));
-                },
-                "try": function(t, c, f) {
-                        return [
-                                "try",
-                                tighten(t),
-                                c != null ? [ c[0], tighten(c[1]) ] : null,
-                                f != null ? tighten(f) : null
-                        ];
-                },
-                "unary-prefix": function(op, expr) {
-                        expr = walk(expr);
-                        var ret = [ "unary-prefix", op, expr ];
-                        if (op == "!")
-                                ret = best_of(ret, negate(expr));
-                        return when_constant(ret, function(ast, val){
-                                return walk(ast); // it's either true or false, so minifies to !0 or !1
-                        }, function() { return ret });
-                },
-                "name": function(name) {
-                        switch (name) {
-                            case "true": return [ "unary-prefix", "!", [ "num", 0 ]];
-                            case "false": return [ "unary-prefix", "!", [ "num", 1 ]];
-                        }
-                },
-                "while": _do_while,
-                "assign": function(op, lvalue, rvalue) {
-                        lvalue = walk(lvalue);
-                        rvalue = walk(rvalue);
-                        var okOps = [ '+', '-', '/', '*', '%', '>>', '<<', '>>>', '|', '^', '&' ];
-                        if (op === true && lvalue[0] === "name" && rvalue[0] === "binary" &&
-                            ~okOps.indexOf(rvalue[1]) && rvalue[2][0] === "name" &&
-                            rvalue[2][1] === lvalue[1]) {
-                                return [ this[0], rvalue[1], lvalue, rvalue[3] ]
-                        }
-                        return [ this[0], op, lvalue, rvalue ];
-                }
-        }, function() {
-                for (var i = 0; i < 2; ++i) {
-                        ast = prepare_ifs(ast);
-                        ast = walk(ast);
-                }
-                return ast;
-        });
-};
-
-/* -----[ re-generate code from the AST ]----- */
-
-var DOT_CALL_NO_PARENS = jsp.array_to_hash([
-        "name",
-        "array",
-        "object",
-        "string",
-        "dot",
-        "sub",
-        "call",
-        "regexp",
-        "defun"
-]);
-
-function make_string(str, ascii_only) {
-        var dq = 0, sq = 0;
-        str = str.replace(/[\\\b\f\n\r\t\x22\x27\u2028\u2029\0]/g, function(s){
-                switch (s) {
-                    case "\\": return "\\\\";
-                    case "\b": return "\\b";
-                    case "\f": return "\\f";
-                    case "\n": return "\\n";
-                    case "\r": return "\\r";
-                    case "\t": return "\\t";
-                    case "\u2028": return "\\u2028";
-                    case "\u2029": return "\\u2029";
-                    case '"': ++dq; return '"';
-                    case "'": ++sq; return "'";
-                    case "\0": return "\\0";
-                }
-                return s;
-        });
-        if (ascii_only) str = to_ascii(str);
-        if (dq > sq) return "'" + str.replace(/\x27/g, "\\'") + "'";
-        else return '"' + str.replace(/\x22/g, '\\"') + '"';
-};
-
-function to_ascii(str) {
-        return str.replace(/[\u0080-\uffff]/g, function(ch) {
-                var code = ch.charCodeAt(0).toString(16);
-                while (code.length < 4) code = "0" + code;
-                return "\\u" + code;
-        });
-};
-
-var SPLICE_NEEDS_BRACKETS = jsp.array_to_hash([ "if", "while", "do", "for", "for-in", "with" ]);
-
-function gen_code(ast, options) {
-        options = defaults(options, {
-                indent_start : 0,
-                indent_level : 4,
-                quote_keys   : false,
-                space_colon  : false,
-                beautify     : false,
-                ascii_only   : false,
-                inline_script: false
-        });
-        var beautify = !!options.beautify;
-        var indentation = 0,
-            newline = beautify ? "\n" : "",
-            space = beautify ? " " : "";
-
-        function encode_string(str) {
-                var ret = make_string(str, options.ascii_only);
-                if (options.inline_script)
-                        ret = ret.replace(/<\x2fscript([>\/\t\n\f\r ])/gi, "<\\/script$1");
-                return ret;
-        };
-
-        function make_name(name) {
-                name = name.toString();
-                if (options.ascii_only)
-                        name = to_ascii(name);
-                return name;
-        };
-
-        function indent(line) {
-                if (line == null)
-                        line = "";
-                if (beautify)
-                        line = repeat_string(" ", options.indent_start + indentation * options.indent_level) + line;
-                return line;
-        };
-
-        function with_indent(cont, incr) {
-                if (incr == null) incr = 1;
-                indentation += incr;
-                try { return cont.apply(null, slice(arguments, 1)); }
-                finally { indentation -= incr; }
-        };
-
-        function add_spaces(a) {
-                if (beautify)
-                        return a.join(" ");
-                var b = [];
-                for (var i = 0; i < a.length; ++i) {
-                        var next = a[i + 1];
-                        b.push(a[i]);
-                        if (next &&
-                            ((/[a-z0-9_\x24]$/i.test(a[i].toString()) && /^[a-z0-9_\x24]/i.test(next.toString())) ||
-                             (/[\+\-]$/.test(a[i].toString()) && /^[\+\-]/.test(next.toString())))) {
-                                b.push(" ");
-                        }
-                }
-                return b.join("");
-        };
-
-        function add_commas(a) {
-                return a.join("," + space);
-        };
-
-        function parenthesize(expr) {
-                var gen = make(expr);
-                for (var i = 1; i < arguments.length; ++i) {
-                        var el = arguments[i];
-                        if ((el instanceof Function && el(expr)) || expr[0] == el)
-                                return "(" + gen + ")";
-                }
-                return gen;
-        };
-
-        function best_of(a) {
-                if (a.length == 1) {
-                        return a[0];
-                }
-                if (a.length == 2) {
-                        var b = a[1];
-                        a = a[0];
-                        return a.length <= b.length ? a : b;
-                }
-                return best_of([ a[0], best_of(a.slice(1)) ]);
-        };
-
-        function needs_parens(expr) {
-                if (expr[0] == "function" || expr[0] == "object") {
-                        // dot/call on a literal function requires the
-                        // function literal itself to be parenthesized
-                        // only if it's the first "thing" in a
-                        // statement.  This means that the parent is
-                        // "stat", but it could also be a "seq" and
-                        // we're the first in this "seq" and the
-                        // parent is "stat", and so on.  Messy stuff,
-                        // but it worths the trouble.
-                        var a = slice(w.stack()), self = a.pop(), p = a.pop();
-                        while (p) {
-                                if (p[0] == "stat") return true;
-                                if (((p[0] == "seq" || p[0] == "call" || p[0] == "dot" || p[0] == "sub" || p[0] == "conditional") && p[1] === self) ||
-                                    ((p[0] == "binary" || p[0] == "assign" || p[0] == "unary-postfix") && p[2] === self)) {
-                                        self = p;
-                                        p = a.pop();
-                                } else {
-                                        return false;
-                                }
-                        }
-                }
-                return !HOP(DOT_CALL_NO_PARENS, expr[0]);
-        };
-
-        function make_num(num) {
-                var str = num.toString(10), a = [ str.replace(/^0\./, ".") ], m;
-                if (Math.floor(num) === num) {
-                        if (num >= 0) {
-                                a.push("0x" + num.toString(16).toLowerCase(), // probably pointless
-                                       "0" + num.toString(8)); // same.
-                        } else {
-                                a.push("-0x" + (-num).toString(16).toLowerCase(), // probably pointless
-                                       "-0" + (-num).toString(8)); // same.
-                        }
-                        if ((m = /^(.*?)(0+)$/.exec(num))) {
-                                a.push(m[1] + "e" + m[2].length);
-                        }
-                } else if ((m = /^0?\.(0+)(.*)$/.exec(num))) {
-                        a.push(m[2] + "e-" + (m[1].length + m[2].length),
-                               str.substr(str.indexOf(".")));
-                }
-                return best_of(a);
-        };
-
-        var w = ast_walker();
-        var make = w.walk;
-        return w.with_walkers({
-                "string": encode_string,
-                "num": make_num,
-                "name": make_name,
-                "toplevel": function(statements) {
-                        return make_block_statements(statements)
-                                .join(newline + newline);
-                },
-                "splice": function(statements) {
-                        var parent = w.parent();
-                        if (HOP(SPLICE_NEEDS_BRACKETS, parent)) {
-                                // we need block brackets in this case
-                                return make_block.apply(this, arguments);
-                        } else {
-                                return MAP(make_block_statements(statements, true),
-                                           function(line, i) {
-                                                   // the first line is already indented
-                                                   return i > 0 ? indent(line) : line;
-                                           }).join(newline);
-                        }
-                },
-                "block": make_block,
-                "var": function(defs) {
-                        return "var " + add_commas(MAP(defs, make_1vardef)) + ";";
-                },
-                "const": function(defs) {
-                        return "const " + add_commas(MAP(defs, make_1vardef)) + ";";
-                },
-                "try": function(tr, ca, fi) {
-                        var out = [ "try", make_block(tr) ];
-                        if (ca) out.push("catch", "(" + ca[0] + ")", make_block(ca[1]));
-                        if (fi) out.push("finally", make_block(fi));
-                        return add_spaces(out);
-                },
-                "throw": function(expr) {
-                        return add_spaces([ "throw", make(expr) ]) + ";";
-                },
-                "new": function(ctor, args) {
-                        args = args.length > 0 ? "(" + add_commas(MAP(args, function(expr){
-                                return parenthesize(expr, "seq");
-                        })) + ")" : "";
-                        return add_spaces([ "new", parenthesize(ctor, "seq", "binary", "conditional", "assign", function(expr){
-                                var w = ast_walker(), has_call = {};
-                                try {
-                                        w.with_walkers({
-                                                "call": function() { throw has_call },
-                                                "function": function() { return this }
-                                        }, function(){
-                                                w.walk(expr);
-                                        });
-                                } catch(ex) {
-                                        if (ex === has_call)
-                                                return true;
-                                        throw ex;
-                                }
-                        }) + args ]);
-                },
-                "switch": function(expr, body) {
-                        return add_spaces([ "switch", "(" + make(expr) + ")", make_switch_block(body) ]);
-                },
-                "break": function(label) {
-                        var out = "break";
-                        if (label != null)
-                                out += " " + make_name(label);
-                        return out + ";";
-                },
-                "continue": function(label) {
-                        var out = "continue";
-                        if (label != null)
-                                out += " " + make_name(label);
-                        return out + ";";
-                },
-                "conditional": function(co, th, el) {
-                        return add_spaces([ parenthesize(co, "assign", "seq", "conditional"), "?",
-                                            parenthesize(th, "seq"), ":",
-                                            parenthesize(el, "seq") ]);
-                },
-                "assign": function(op, lvalue, rvalue) {
-                        if (op && op !== true) op += "=";
-                        else op = "=";
-                        return add_spaces([ make(lvalue), op, parenthesize(rvalue, "seq") ]);
-                },
-                "dot": function(expr) {
-                        var out = make(expr), i = 1;
-                        if (expr[0] == "num") {
-                                if (!/\./.test(expr[1]))
-                                        out += ".";
-                        } else if (needs_parens(expr))
-                                out = "(" + out + ")";
-                        while (i < arguments.length)
-                                out += "." + make_name(arguments[i++]);
-                        return out;
-                },
-                "call": function(func, args) {
-                        var f = make(func);
-                        if (f.charAt(0) != "(" && needs_parens(func))
-                                f = "(" + f + ")";
-                        return f + "(" + add_commas(MAP(args, function(expr){
-                                return parenthesize(expr, "seq");
-                        })) + ")";
-                },
-                "function": make_function,
-                "defun": make_function,
-                "if": function(co, th, el) {
-                        var out = [ "if", "(" + make(co) + ")", el ? make_then(th) : make(th) ];
-                        if (el) {
-                                out.push("else", make(el));
-                        }
-                        return add_spaces(out);
-                },
-                "for": function(init, cond, step, block) {
-                        var out = [ "for" ];
-                        init = (init != null ? make(init) : "").replace(/;*\s*$/, ";" + space);
-                        cond = (cond != null ? make(cond) : "").replace(/;*\s*$/, ";" + space);
-                        step = (step != null ? make(step) : "").replace(/;*\s*$/, "");
-                        var args = init + cond + step;
-                        if (args == "; ; ") args = ";;";
-                        out.push("(" + args + ")", make(block));
-                        return add_spaces(out);
-                },
-                "for-in": function(vvar, key, hash, block) {
-                        return add_spaces([ "for", "(" +
-                                            (vvar ? make(vvar).replace(/;+$/, "") : make(key)),
-                                            "in",
-                                            make(hash) + ")", make(block) ]);
-                },
-                "while": function(condition, block) {
-                        return add_spaces([ "while", "(" + make(condition) + ")", make(block) ]);
-                },
-                "do": function(condition, block) {
-                        return add_spaces([ "do", make(block), "while", "(" + make(condition) + ")" ]) + ";";
-                },
-                "return": function(expr) {
-                        var out = [ "return" ];
-                        if (expr != null) out.push(make(expr));
-                        return add_spaces(out) + ";";
-                },
-                "binary": function(operator, lvalue, rvalue) {
-                        var left = make(lvalue), right = make(rvalue);
-                        // XXX: I'm pretty sure other cases will bite here.
-                        //      we need to be smarter.
-                        //      adding parens all the time is the safest bet.
-                        if (member(lvalue[0], [ "assign", "conditional", "seq" ]) ||
-                            lvalue[0] == "binary" && PRECEDENCE[operator] > PRECEDENCE[lvalue[1]] ||
-                            lvalue[0] == "function" && needs_parens(this)) {
-                                left = "(" + left + ")";
-                        }
-                        if (member(rvalue[0], [ "assign", "conditional", "seq" ]) ||
-                            rvalue[0] == "binary" && PRECEDENCE[operator] >= PRECEDENCE[rvalue[1]] &&
-                            !(rvalue[1] == operator && member(operator, [ "&&", "||", "*" ]))) {
-                                right = "(" + right + ")";
-                        }
-                        else if (!beautify && options.inline_script && (operator == "<" || operator == "<<")
-                                 && rvalue[0] == "regexp" && /^script/i.test(rvalue[1])) {
-                                right = " " + right;
-                        }
-                        return add_spaces([ left, operator, right ]);
-                },
-                "unary-prefix": function(operator, expr) {
-                        var val = make(expr);
-                        if (!(expr[0] == "num" || (expr[0] == "unary-prefix" && !HOP(OPERATORS, operator + expr[1])) || !needs_parens(expr)))
-                                val = "(" + val + ")";
-                        return operator + (jsp.is_alphanumeric_char(operator.charAt(0)) ? " " : "") + val;
-                },
-                "unary-postfix": function(operator, expr) {
-                        var val = make(expr);
-                        if (!(expr[0] == "num" || (expr[0] == "unary-postfix" && !HOP(OPERATORS, operator + expr[1])) || !needs_parens(expr)))
-                                val = "(" + val + ")";
-                        return val + operator;
-                },
-                "sub": function(expr, subscript) {
-                        var hash = make(expr);
-                        if (needs_parens(expr))
-                                hash = "(" + hash + ")";
-                        return hash + "[" + make(subscript) + "]";
-                },
-                "object": function(props) {
-                        var obj_needs_parens = needs_parens(this);
-                        if (props.length == 0)
-                                return obj_needs_parens ? "({})" : "{}";
-                        var out = "{" + newline + with_indent(function(){
-                                return MAP(props, function(p){
-                                        if (p.length == 3) {
-                                                // getter/setter.  The name is in p[0], the arg.list in p[1][2], the
-                                                // body in p[1][3] and type ("get" / "set") in p[2].
-                                                return indent(make_function(p[0], p[1][2], p[1][3], p[2]));
-                                        }
-                                        var key = p[0], val = parenthesize(p[1], "seq");
-                                        if (options.quote_keys) {
-                                                key = encode_string(key);
-                                        } else if ((typeof key == "number" || !beautify && +key + "" == key)
-                                                   && parseFloat(key) >= 0) {
-                                                key = make_num(+key);
-                                        } else if (!is_identifier(key)) {
-                                                key = encode_string(key);
-                                        }
-                                        return indent(add_spaces(beautify && options.space_colon
-                                                                 ? [ key, ":", val ]
-                                                                 : [ key + ":", val ]));
-                                }).join("," + newline);
-                        }) + newline + indent("}");
-                        return obj_needs_parens ? "(" + out + ")" : out;
-                },
-                "regexp": function(rx, mods) {
-                        return "/" + rx + "/" + mods;
-                },
-                "array": function(elements) {
-                        if (elements.length == 0) return "[]";
-                        return add_spaces([ "[", add_commas(MAP(elements, function(el, i){
-                                if (!beautify && el[0] == "atom" && el[1] == "undefined") return i === elements.length - 1 ? "," : "";
-                                return parenthesize(el, "seq");
-                        })), "]" ]);
-                },
-                "stat": function(stmt) {
-                        return make(stmt).replace(/;*\s*$/, ";");
-                },
-                "seq": function() {
-                        return add_commas(MAP(slice(arguments), make));
-                },
-                "label": function(name, block) {
-                        return add_spaces([ make_name(name), ":", make(block) ]);
-                },
-                "with": function(expr, block) {
-                        return add_spaces([ "with", "(" + make(expr) + ")", make(block) ]);
-                },
-                "atom": function(name) {
-                        return make_name(name);
-                }
-        }, function(){ return make(ast) });
-
-        // The squeezer replaces "block"-s that contain only a single
-        // statement with the statement itself; technically, the AST
-        // is correct, but this can create problems when we output an
-        // IF having an ELSE clause where the THEN clause ends in an
-        // IF *without* an ELSE block (then the outer ELSE would refer
-        // to the inner IF).  This function checks for this case and
-        // adds the block brackets if needed.
-        function make_then(th) {
-                if (th == null) return ";";
-                if (th[0] == "do") {
-                        // https://github.com/mishoo/UglifyJS/issues/#issue/57
-                        // IE croaks with "syntax error" on code like this:
-                        //     if (foo) do ... while(cond); else ...
-                        // we need block brackets around do/while
-                        return make_block([ th ]);
-                }
-                var b = th;
-                while (true) {
-                        var type = b[0];
-                        if (type == "if") {
-                                if (!b[3])
-                                        // no else, we must add the block
-                                        return make([ "block", [ th ]]);
-                                b = b[3];
-                        }
-                        else if (type == "while" || type == "do") b = b[2];
-                        else if (type == "for" || type == "for-in") b = b[4];
-                        else break;
-                }
-                return make(th);
-        };
-
-        function make_function(name, args, body, keyword) {
-                var out = keyword || "function";
-                if (name) {
-                        out += " " + make_name(name);
-                }
-                out += "(" + add_commas(MAP(args, make_name)) + ")";
-                out = add_spaces([ out, make_block(body) ]);
-                return needs_parens(this) ? "(" + out + ")" : out;
-        };
-
-        function must_has_semicolon(node) {
-                switch (node[0]) {
-                    case "with":
-                    case "while":
-                        return empty(node[2]); // `with' or `while' with empty body?
-                    case "for":
-                    case "for-in":
-                        return empty(node[4]); // `for' with empty body?
-                    case "if":
-                        if (empty(node[2]) && !node[3]) return true; // `if' with empty `then' and no `else'
-                        if (node[3]) {
-                                if (empty(node[3])) return true; // `else' present but empty
-                                return must_has_semicolon(node[3]); // dive into the `else' branch
-                        }
-                        return must_has_semicolon(node[2]); // dive into the `then' branch
-                }
-        };
-
-        function make_block_statements(statements, noindent) {
-                for (var a = [], last = statements.length - 1, i = 0; i <= last; ++i) {
-                        var stat = statements[i];
-                        var code = make(stat);
-                        if (code != ";") {
-                                if (!beautify && i == last && !must_has_semicolon(stat)) {
-                                        code = code.replace(/;+\s*$/, "");
-                                }
-                                a.push(code);
-                        }
-                }
-                return noindent ? a : MAP(a, indent);
-        };
-
-        function make_switch_block(body) {
-                var n = body.length;
-                if (n == 0) return "{}";
-                return "{" + newline + MAP(body, function(branch, i){
-                        var has_body = branch[1].length > 0, code = with_indent(function(){
-                                return indent(branch[0]
-                                              ? add_spaces([ "case", make(branch[0]) + ":" ])
-                                              : "default:");
-                        }, 0.5) + (has_body ? newline + with_indent(function(){
-                                return make_block_statements(branch[1]).join(newline);
-                        }) : "");
-                        if (!beautify && has_body && i < n - 1)
-                                code += ";";
-                        return code;
-                }).join(newline) + newline + indent("}");
-        };
-
-        function make_block(statements) {
-                if (!statements) return ";";
-                if (statements.length == 0) return "{}";
-                return "{" + newline + with_indent(function(){
-                        return make_block_statements(statements).join(newline);
-                }) + newline + indent("}");
-        };
-
-        function make_1vardef(def) {
-                var name = def[0], val = def[1];
-                if (val != null)
-                        name = add_spaces([ make_name(name), "=", parenthesize(val, "seq") ]);
-                return name;
-        };
-
-};
-
-function split_lines(code, max_line_length) {
-        var splits = [ 0 ];
-        jsp.parse(function(){
-                var next_token = jsp.tokenizer(code);
-                var last_split = 0;
-                var prev_token;
-                function current_length(tok) {
-                        return tok.pos - last_split;
-                };
-                function split_here(tok) {
-                        last_split = tok.pos;
-                        splits.push(last_split);
-                };
-                function custom(){
-                        var tok = next_token.apply(this, arguments);
-                        out: {
-                                if (prev_token) {
-                                        if (prev_token.type == "keyword") break out;
-                                }
-                                if (current_length(tok) > max_line_length) {
-                                        switch (tok.type) {
-                                            case "keyword":
-                                            case "atom":
-                                            case "name":
-                                            case "punc":
-                                                split_here(tok);
-                                                break out;
-                                        }
-                                }
-                        }
-                        prev_token = tok;
-                        return tok;
-                };
-                custom.context = function() {
-                        return next_token.context.apply(this, arguments);
-                };
-                return custom;
-        }());
-        return splits.map(function(pos, i){
-                return code.substring(pos, splits[i + 1] || code.length);
-        }).join("\n");
-};
-
-/* -----[ Utilities ]----- */
-
-function repeat_string(str, i) {
-        if (i <= 0) return "";
-        if (i == 1) return str;
-        var d = repeat_string(str, i >> 1);
-        d += d;
-        if (i & 1) d += str;
-        return d;
-};
-
-function defaults(args, defs) {
-        var ret = {};
-        if (args === true)
-                args = {};
-        for (var i in defs) if (HOP(defs, i)) {
-                ret[i] = (args && HOP(args, i)) ? args[i] : defs[i];
-        }
-        return ret;
-};
-
-function is_identifier(name) {
-        return /^[a-z_$][a-z0-9_$]*$/i.test(name)
-                && name != "this"
-                && !HOP(jsp.KEYWORDS_ATOM, name)
-                && !HOP(jsp.RESERVED_WORDS, name)
-                && !HOP(jsp.KEYWORDS, name);
-};
-
-function HOP(obj, prop) {
-        return Object.prototype.hasOwnProperty.call(obj, prop);
-};
-
-// some utilities
-
-var MAP;
-
-(function(){
-        MAP = function(a, f, o) {
-                var ret = [], top = [], i;
-                function doit() {
-                        var val = f.call(o, a[i], i);
-                        if (val instanceof AtTop) {
-                                val = val.v;
-                                if (val instanceof Splice) {
-                                        top.push.apply(top, val.v);
-                                } else {
-                                        top.push(val);
-                                }
-                        }
-                        else if (val != skip) {
-                                if (val instanceof Splice) {
-                                        ret.push.apply(ret, val.v);
-                                } else {
-                                        ret.push(val);
-                                }
-                        }
-                };
-                if (a instanceof Array) for (i = 0; i < a.length; ++i) doit();
-                else for (i in a) if (HOP(a, i)) doit();
-                return top.concat(ret);
-        };
-        MAP.at_top = function(val) { return new AtTop(val) };
-        MAP.splice = function(val) { return new Splice(val) };
-        var skip = MAP.skip = {};
-        function AtTop(val) { this.v = val };
-        function Splice(val) { this.v = val };
-})();
-
-/* -----[ Exports ]----- */
-
-exports.ast_walker = ast_walker;
-exports.ast_mangle = ast_mangle;
-exports.ast_squeeze = ast_squeeze;
-exports.ast_lift_variables = ast_lift_variables;
-exports.gen_code = gen_code;
-exports.ast_add_scope = ast_add_scope;
-exports.set_logger = function(logger) { warn = logger };
-exports.make_string = make_string;
-exports.split_lines = split_lines;
-exports.MAP = MAP;
-
-// keep this last!
-exports.ast_squeeze_more = require("./squeeze-more").ast_squeeze_more;
-
-});define('uglifyjs/index', ["require", "exports", "module", "./parse-js", "./process"], function(require, exports, module) {
-
-//convienence function(src, [options]);
-function uglify(orig_code, options){
-  options || (options = {});
-  var jsp = uglify.parser;
-  var pro = uglify.uglify;
-
-  var ast = jsp.parse(orig_code, options.strict_semicolons); // parse code and get the initial AST
-  ast = pro.ast_mangle(ast, options.mangle_options); // get a new AST with mangled names
-  ast = pro.ast_squeeze(ast, options.squeeze_options); // get an AST with compression optimizations
-  var final_code = pro.gen_code(ast, options.gen_options); // compressed code here
-  return final_code;
-};
-
-uglify.parser = require("./parse-js");
-uglify.uglify = require("./process");
-
-module.exports = uglify
-
-});/**
- * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint plusplus: false, strict: false */
-/*global define: false */
-
-define('parse', ['./uglifyjs/index'], function (uglify) {
-    var parser = uglify.parser,
-        processor = uglify.uglify,
-        ostring = Object.prototype.toString,
-        isArray;
-
-    if (Array.isArray) {
-        isArray = Array.isArray;
-    } else {
-        isArray = function (it) {
-            return ostring.call(it) === "[object Array]";
-        };
-    }
-
-    /**
-     * Determines if the AST node is an array literal
-     */
-    function isArrayLiteral(node) {
-        return node[0] === 'array';
-    }
-
-    /**
-     * Determines if the AST node is an object literal
-     */
-    function isObjectLiteral(node) {
-        return node[0] === 'object';
-    }
-
-    /**
-     * Converts a regular JS array of strings to an AST node that
-     * represents that array.
-     * @param {Array} ary
-     * @param {Node} an AST node that represents an array of strings.
-     */
-    function toAstArray(ary) {
-        var output = [
-            'array',
-            []
-        ],
-        i, item;
-
-        for (i = 0; (item = ary[i]); i++) {
-            output[1].push([
-                'string',
-                item
-            ]);
-        }
-
-        return output;
-    }
-
-    /**
-     * Validates a node as being an object literal (like for i18n bundles)
-     * or an array literal with just string members. If an array literal,
-     * only return array members that are full strings. So the caller of
-     * this function should use the return value as the new value for the
-     * node.
-     *
-     * This function does not need to worry about comments, they are not
-     * present in this AST.
-     *
-     * @param {Node} node an AST node.
-     *
-     * @returns {Node} an AST node to use for the valid dependencies.
-     * If null is returned, then it means the input node was not a valid
-     * dependency.
-     */
-    function validateDeps(node) {
-        var newDeps = ['array', []],
-            arrayArgs, i, dep;
-
-        if (!node) {
-            return null;
-        }
-
-        if (isObjectLiteral(node) || node[0] === 'function') {
-            return node;
-        }
-
-        //Dependencies can be an object literal or an array.
-        if (!isArrayLiteral(node)) {
-            return null;
-        }
-
-        arrayArgs = node[1];
-
-        for (i = 0; i < arrayArgs.length; i++) {
-            dep = arrayArgs[i];
-            if (dep[0] === 'string') {
-                newDeps[1].push(dep);
-            }
-        }
-        return newDeps[1].length ? newDeps : null;
-    }
-
-    /**
-     * Gets dependencies from a node, but only if it is an array literal,
-     * and only if the dependency is a string literal.
-     *
-     * This function does not need to worry about comments, they are not
-     * present in this AST.
-     *
-     * @param {Node} node an AST node.
-     *
-     * @returns {Array} of valid dependencies.
-     * If null is returned, then it means the input node was not a valid
-     * array literal, or did not have any string literals..
-     */
-    function getValidDeps(node) {
-        var newDeps = [],
-            arrayArgs, i, dep;
-
-        if (!node) {
-            return null;
-        }
-
-        if (isObjectLiteral(node) || node[0] === 'function') {
-            return null;
-        }
-
-        //Dependencies can be an object literal or an array.
-        if (!isArrayLiteral(node)) {
-            return null;
-        }
-
-        arrayArgs = node[1];
-
-        for (i = 0; i < arrayArgs.length; i++) {
-            dep = arrayArgs[i];
-            if (dep[0] === 'string') {
-                newDeps.push(dep[1]);
-            }
-        }
-        return newDeps.length ? newDeps : null;
-    }
-
-    /**
-     * Main parse function. Returns a string of any valid require or define/require.def
-     * calls as part of one JavaScript source string.
-     * @param {String} moduleName the module name that represents this file.
-     * It is used to create a default define if there is not one already for the file.
-     * This allows properly tracing dependencies for builds. Otherwise, if
-     * the file just has a require() call, the file dependencies will not be
-     * properly reflected: the file will come before its dependencies.
-     * @param {String} moduleName
-     * @param {String} fileName
-     * @param {String} fileContents
-     * @param {Object} options optional options. insertNeedsDefine: true will
-     * add calls to require.needsDefine() if appropriate.
-     * @returns {String} JS source string or null, if no require or define/require.def
-     * calls are found.
-     */
-    function parse(moduleName, fileName, fileContents, options) {
-        options = options || {};
-
-        //Set up source input
-        var moduleDeps = [],
-            result = '',
-            moduleList = [],
-            needsDefine = true,
-            astRoot = parser.parse(fileContents),
-            i, moduleCall, depString;
-
-        parse.recurse(astRoot, function (callName, config, name, deps) {
-            //If name is an array, it means it is an anonymous module,
-            //so adjust args appropriately. An anonymous module could
-            //have a FUNCTION as the name type, but just ignore those
-            //since we just want to find dependencies.
-            if (name && isArrayLiteral(name)) {
-                deps = name;
-                name = null;
-            }
-
-            if (!(deps = getValidDeps(deps))) {
-                deps = [];
-            }
-
-            //Get the name as a string literal, if it is available.
-            if (name && name[0] === 'string') {
-                name = name[1];
-            } else {
-                name = null;
-            }
-
-            if (callName === 'define' && (!name || name === moduleName)) {
-                needsDefine = false;
-            }
-
-            if (!name) {
-                //If there is no module name, the dependencies are for
-                //this file/default module name.
-                moduleDeps = moduleDeps.concat(deps);
-            } else {
-                moduleList.push({
-                    name: name,
-                    deps: deps
-                });
-            }
-
-            //If define was found, no need to dive deeper, unless
-            //the config explicitly wants to dig deeper.
-            return !options.findNestedDependencies;
-        }, options);
-
-        if (options.insertNeedsDefine && needsDefine) {
-            result += 'require.needsDefine("' + moduleName + '");';
-        }
-
-        if (moduleDeps.length || moduleList.length) {
-            for (i = 0; (moduleCall = moduleList[i]); i++) {
-                if (result) {
-                    result += '\n';
-                }
-
-                //If this is the main module for this file, combine any
-                //"anonymous" dependencies (could come from a nested require
-                //call) with this module.
-                if (moduleCall.name === moduleName) {
-                    moduleCall.deps = moduleCall.deps.concat(moduleDeps);
-                    moduleDeps = [];
-                }
-
-                depString = moduleCall.deps.length ? '["' + moduleCall.deps.join('","') + '"]' : '[]';
-                result += 'define("' + moduleCall.name + '",' + depString + ');';
-            }
-            if (moduleDeps.length) {
-                if (result) {
-                    result += '\n';
-                }
-                depString = moduleDeps.length ? '["' + moduleDeps.join('","') + '"]' : '[]';
-                result += 'define("' + moduleName + '",' + depString + ');';
-            }
-        }
-
-        return result ? result : null;
-    }
-
-    //Add some private methods to object for use in derived objects.
-    parse.isArray = isArray;
-    parse.isObjectLiteral = isObjectLiteral;
-    parse.isArrayLiteral = isArrayLiteral;
-
-    /**
-     * Handles parsing a file recursively for require calls.
-     * @param {Array} parentNode the AST node to start with.
-     * @param {Function} onMatch function to call on a parse match.
-     * @param {Object} [options] This is normally the build config options if
-     * it is passed.
-     * @param {Function} [recurseCallback] function to call on each valid
-     * node, defaults to parse.parseNode.
-     */
-    parse.recurse = function (parentNode, onMatch, options, recurseCallback) {
-        var hasHas = options && options.has,
-            i, node;
-
-        recurseCallback = recurseCallback || this.parseNode;
-
-        if (isArray(parentNode)) {
-            for (i = 0; i < parentNode.length; i++) {
-                node = parentNode[i];
-                if (isArray(node)) {
-                    //If has config is in play, if calls have been converted
-                    //by this point to be true/false values. So, if
-                    //options has a 'has' value, skip if branches that have
-                    //literal false values.
-
-                    //uglify returns if constructs in an array:
-                    //[0]: 'if'
-                    //[1]: the condition, ['name', true | false] for the has replaced case.
-                    //[2]: the block to process if true
-                    //[3]: the block to process if false
-                    //For if/else if/else, the else if is in the [3],
-                    //so only ever have to deal with this structure.
-                    if (hasHas && node[0] === 'if' && node[1] && node[1][0] === 'name' &&
-                        (node[1][1] === 'true' || node[1][1] === 'false')) {
-                        if (node[1][1] === 'true') {
-                            this.recurse([node[2]], onMatch, options, recurseCallback);
-                        } else {
-                            this.recurse([node[3]], onMatch, options, recurseCallback);
-                        }
-                    } else {
-                        if (recurseCallback(node, onMatch)) {
-                            //The onMatch indicated parsing should
-                            //stop for children of this node.
-                            continue;
-                        }
-                        this.recurse(node, onMatch, options, recurseCallback);
-                    }
-                }
-            }
-        }
-    };
-
-    /**
-     * Determines if the file defines require().
-     * @param {String} fileName
-     * @param {String} fileContents
-     * @returns {Boolean}
-     */
-    parse.definesRequire = function (fileName, fileContents) {
-        var astRoot = parser.parse(fileContents);
-        return this.nodeHasRequire(astRoot);
-    };
-
-    /**
-     * Finds require("") calls inside a CommonJS anonymous module wrapped in a
-     * define(function(require, exports, module){}) wrapper. These dependencies
-     * will be added to a modified define() call that lists the dependencies
-     * on the outside of the function.
-     * @param {String} fileName
-     * @param {String} fileContents
-     * @returns {Array} an array of module names that are dependencies. Always
-     * returns an array, but could be of length zero.
-     */
-    parse.getAnonDeps = function (fileName, fileContents) {
-        var astRoot = parser.parse(fileContents),
-            defFunc = this.findAnonDefineFactory(astRoot);
-
-        return parse.getAnonDepsFromNode(defFunc);
-    };
-
-    /**
-     * Finds require("") calls inside a CommonJS anonymous module wrapped
-     * in a define function, given an AST node for the definition function.
-     * @param {Node} node the AST node for the definition function.
-     * @returns {Array} and array of dependency names. Can be of zero length.
-     */
-    parse.getAnonDepsFromNode = function (node) {
-        var deps = [],
-            funcArgLength;
-
-        if (node) {
-            this.findRequireDepNames(node, deps);
-
-            //If no deps, still add the standard CommonJS require, exports, module,
-            //in that order, to the deps, but only if specified as function args.
-            //In particular, if exports is used, it is favored over the return
-            //value of the function, so only add it if asked.
-            funcArgLength = node[2] && node[2].length;
-            if (funcArgLength) {
-                deps = (funcArgLength > 1 ? ["require", "exports", "module"] :
-                        ["require"]).concat(deps);
-            }
-        }
-        return deps;
-    };
-
-    /**
-     * Finds the function in define(function (require, exports, module){});
-     * @param {Array} node
-     * @returns {Boolean}
-     */
-    parse.findAnonDefineFactory = function (node) {
-        var callback, i, n, call, args;
-
-        if (isArray(node)) {
-            if (node[0] === 'call') {
-                call = node[1];
-                args = node[2];
-                if ((call[0] === 'name' && call[1] === 'define') ||
-                           (call[0] === 'dot' && call[1][1] === 'require' && call[2] === 'def')) {
-
-                    //There should only be one argument and it should be a function,
-                    //or a named module with function as second arg
-                    if (args.length === 1 && args[0][0] === 'function') {
-                        return args[0];
-                    } else if (args.length === 2 && args[0][0] === 'string' &&
-                               args[1][0] === 'function') {
-                        return args[1];
-                    }
-                }
-            }
-
-            //Check child nodes
-            for (i = 0; i < node.length; i++) {
-                n = node[i];
-                if ((callback = this.findAnonDefineFactory(n))) {
-                    return callback;
-                }
-            }
-        }
-
-        return null;
-    };
-
-    /**
-     * Finds any config that is passed to requirejs.
-     * @param {String} fileName
-     * @param {String} fileContents
-     *
-     * @returns {Object} a config object. Will be null if no config.
-     * Can throw an error if the config in the file cannot be evaluated in
-     * a build context to valid JavaScript.
-     */
-    parse.findConfig = function (fileName, fileContents) {
-        /*jslint evil: true */
-        //This is a litle bit inefficient, it ends up with two uglifyjs parser
-        //calls. Can revisit later, but trying to build out larger functional
-        //pieces first.
-        var foundConfig = null,
-            astRoot = parser.parse(fileContents);
-
-        parse.recurse(astRoot, function (configNode) {
-            var jsConfig;
-
-            if (!foundConfig && configNode) {
-                jsConfig = parse.nodeToString(configNode);
-                foundConfig = eval('(' + jsConfig + ')');
-                return foundConfig;
-            }
-            return undefined;
-        }, null, parse.parseConfigNode);
-
-        return foundConfig;
-    };
-
-    /**
-     * Finds all dependencies specified in dependency arrays and inside
-     * simplified commonjs wrappers.
-     * @param {String} fileName
-     * @param {String} fileContents
-     *
-     * @returns {Array} an array of dependency strings. The dependencies
-     * have not been normalized, they may be relative IDs.
-     */
-    parse.findDependencies = function (fileName, fileContents, options) {
-        //This is a litle bit inefficient, it ends up with two uglifyjs parser
-        //calls. Can revisit later, but trying to build out larger functional
-        //pieces first.
-        var dependencies = [],
-            astRoot = parser.parse(fileContents);
-
-        parse.recurse(astRoot, function (callName, config, name, deps) {
-            //Normalize the input args.
-            if (name && isArrayLiteral(name)) {
-                deps = name;
-                name = null;
-            }
-
-            if ((deps = getValidDeps(deps))) {
-                dependencies = dependencies.concat(deps);
-            }
-        }, options);
-
-        return dependencies;
-    };
-
-    /**
-     * Finds only CJS dependencies, ones that are the form require('stringLiteral')
-     */
-    parse.findCjsDependencies = function (fileName, fileContents, options) {
-        //This is a litle bit inefficient, it ends up with two uglifyjs parser
-        //calls. Can revisit later, but trying to build out larger functional
-        //pieces first.
-        var dependencies = [],
-            astRoot = parser.parse(fileContents);
-
-        parse.recurse(astRoot, function (dep) {
-            dependencies.push(dep);
-        }, options, function (node, onMatch) {
-
-            var call, args;
-
-            if (!isArray(node)) {
-                return false;
-            }
-
-            if (node[0] === 'call') {
-                call = node[1];
-                args = node[2];
-
-                if (call) {
-                    //A require('') use.
-                    if (call[0] === 'name' && call[1] === 'require' &&
-                        args[0][0] === 'string') {
-                        return onMatch(args[0][1]);
-                    }
-                }
-            }
-
-            return false;
-
-        });
-
-        return dependencies;
-    };
-
-    /**
-     * Determines if define(), require({}|[]) or requirejs was called in the
-     * file. Also finds out if define() is declared and if define.amd is called.
-     */
-    parse.usesAmdOrRequireJs = function (fileName, fileContents, options) {
-        var astRoot = parser.parse(fileContents),
-            uses;
-
-        parse.recurse(astRoot, function (prop) {
-            if (!uses) {
-                uses = {};
-            }
-            uses[prop] = true;
-        }, options, parse.findAmdOrRequireJsNode);
-
-        return uses;
-    };
-
-    /**
-     * Determines if require(''), exports.x =, module.exports =,
-     * __dirname, __filename are used. So, not strictly traditional CommonJS,
-     * also checks for Node variants.
-     */
-    parse.usesCommonJs = function (fileName, fileContents, options) {
-        var uses = null,
-            assignsExports = false,
-            astRoot = parser.parse(fileContents);
-
-        parse.recurse(astRoot, function (prop) {
-            if (prop === 'varExports') {
-                assignsExports = true;
-            } else if (prop !== 'exports' || !assignsExports) {
-                if (!uses) {
-                    uses = {};
-                }
-                uses[prop] = true;
-            }
-        }, options, function (node, onMatch) {
-
-            var call, args;
-
-            if (!isArray(node)) {
-                return false;
-            }
-
-            if (node[0] === 'name' && (node[1] === '__dirname' || node[1] === '__filename')) {
-                return onMatch(node[1].substring(2));
-            } else if (node[0] === 'var' && node[1] && node[1][0] && node[1][0][0] === 'exports') {
-                //Hmm, a variable assignment for exports, so does not use cjs exports.
-                return onMatch('varExports');
-            } else if (node[0] === 'assign' && node[2] && node[2][0] === 'dot') {
-                args = node[2][1];
-
-                if (args) {
-                    //An exports or module.exports assignment.
-                    if (args[0] === 'name' && args[1] === 'module' &&
-                        node[2][2] === 'exports') {
-                        return onMatch('moduleExports');
-                    } else if (args[0] === 'name' && args[1] === 'exports') {
-                        return onMatch('exports');
-                    }
-                }
-            } else if (node[0] === 'call') {
-                call = node[1];
-                args = node[2];
-
-                if (call) {
-                    //A require('') use.
-                    if (call[0] === 'name' && call[1] === 'require' &&
-                        args[0][0] === 'string') {
-                        return onMatch('require');
-                    }
-                }
-            }
-
-            return false;
-
-        });
-
-        return uses;
-    };
-
-
-    parse.findRequireDepNames = function (node, deps) {
-        var moduleName, i, n, call, args;
-
-        if (isArray(node)) {
-            if (node[0] === 'call') {
-                call = node[1];
-                args = node[2];
-
-                if (call && call[0] === 'name' && call[1] === 'require') {
-                    moduleName = args[0];
-                    if (moduleName[0] === 'string') {
-                        deps.push(moduleName[1]);
-                    }
-                }
-
-
-            }
-
-            //Check child nodes
-            for (i = 0; i < node.length; i++) {
-                n = node[i];
-                this.findRequireDepNames(n, deps);
-            }
-        }
-    };
-
-    /**
-     * Determines if a given node contains a require() definition.
-     * @param {Array} node
-     * @returns {Boolean}
-     */
-    parse.nodeHasRequire = function (node) {
-        if (this.isDefineNode(node)) {
-            return true;
-        }
-
-        if (isArray(node)) {
-            for (var i = 0, n; i < node.length; i++) {
-                n = node[i];
-                if (this.nodeHasRequire(n)) {
-                    return true;
-                }
-            }
-        }
-
-        return false;
-    };
-
-    /**
-     * Is the given node the actual definition of define(). Actually uses
-     * the definition of define.amd to find require.
-     * @param {Array} node
-     * @returns {Boolean}
-     */
-    parse.isDefineNode = function (node) {
-        //Actually look for the define.amd = assignment, since
-        //that is more indicative of RequireJS vs a plain require definition.
-        var assign;
-        if (!node) {
-            return null;
-        }
-
-        if (node[0] === 'assign' && node[1] === true) {
-            assign = node[2];
-            if (assign[0] === 'dot' && assign[1][0] === 'name' &&
-                assign[1][1] === 'define' && assign[2] === 'amd') {
-                return true;
-            }
-        }
-        return false;
-    };
-
-    /**
-     * Determines if a specific node is a valid require or define/require.def call.
-     * @param {Array} node
-     * @param {Function} onMatch a function to call when a match is found.
-     * It is passed the match name, and the config, name, deps possible args.
-     * The config, name and deps args are not normalized.
-     *
-     * @returns {String} a JS source string with the valid require/define call.
-     * Otherwise null.
-     */
-    parse.parseNode = function (node, onMatch) {
-        var call, name, config, deps, args, cjsDeps;
-
-        if (!isArray(node)) {
-            return false;
-        }
-
-        if (node[0] === 'call') {
-            call = node[1];
-            args = node[2];
-
-            if (call) {
-                if (call[0] === 'name' &&
-                   (call[1] === 'require' || call[1] === 'requirejs')) {
-
-                    //It is a plain require() call.
-                    config = args[0];
-                    deps = args[1];
-                    if (isArrayLiteral(config)) {
-                        deps = config;
-                        config = null;
-                    }
-
-                    if (!(deps = validateDeps(deps))) {
-                        return null;
-                    }
-
-                    return onMatch("require", null, null, deps);
-
-                } else if (call[0] === 'name' && call[1] === 'define') {
-
-                    //A define call
-                    name = args[0];
-                    deps = args[1];
-                    //Only allow define calls that match what is expected
-                    //in an AMD call:
-                    //* first arg should be string, array, function or object
-                    //* second arg optional, or array, function or object.
-                    //This helps weed out calls to a non-AMD define, but it is
-                    //not completely robust. Someone could create a define
-                    //function that still matches this shape, but this is the
-                    //best that is possible, and at least allows UglifyJS,
-                    //which does create its own internal define in one file,
-                    //to be inlined.
-                    if (((name[0] === 'string' || isArrayLiteral(name) ||
-                          name[0] === 'function' || isObjectLiteral(name))) &&
-                        (!deps || isArrayLiteral(deps) ||
-                         deps[0] === 'function' || isObjectLiteral(deps) ||
-                         // allow define(['dep'], factory) pattern
-                         (isArrayLiteral(name) && deps[0] === 'name' && args.length === 2))) {
-
-                        //If first arg is a function, could be a commonjs wrapper,
-                        //look inside for commonjs dependencies.
-                        //Also, if deps is a function look for commonjs deps.
-                        if (name && name[0] === 'function') {
-                            cjsDeps = parse.getAnonDepsFromNode(name);
-                            if (cjsDeps.length) {
-                                name = toAstArray(cjsDeps);
-                            }
-                        } else if (deps && deps[0] === 'function') {
-                            cjsDeps = parse.getAnonDepsFromNode(deps);
-                            if (cjsDeps.length) {
-                                deps = toAstArray(cjsDeps);
-                            }
-                        }
-
-                        return onMatch("define", null, name, deps);
-                    }
-                }
-            }
-        }
-
-        return false;
-    };
-
-    /**
-     * Looks for define(), require({} || []), requirejs({} || []) calls.
-     */
-    parse.findAmdOrRequireJsNode = function (node, onMatch) {
-        var call, args, configNode, type;
-
-        if (!isArray(node)) {
-            return false;
-        }
-
-        if (node[0] === 'defun' && node[1] === 'define') {
-            type = 'declaresDefine';
-        } else if (node[0] === 'assign' && node[2] && node[2][2] === 'amd' &&
-            node[2][1] && node[2][1][0] === 'name' &&
-            node[2][1][1] === 'define') {
-            type = 'defineAmd';
-        } else if (node[0] === 'call') {
-            call = node[1];
-            args = node[2];
-
-            if (call) {
-                if ((call[0] === 'dot' &&
-                   (call[1] && call[1][0] === 'name' &&
-                    (call[1][1] === 'require' || call[1][1] === 'requirejs')) &&
-                   call[2] === 'config')) {
-                    //A require.config() or requirejs.config() call.
-                    type = call[1][1] + 'Config';
-                } else if (call[0] === 'name' &&
-                   (call[1] === 'require' || call[1] === 'requirejs')) {
-                    //A require() or requirejs() config call.
-                    //Only want ones that start with an object or an array.
-                    configNode = args[0];
-                    if (configNode[0] === 'object' || configNode[0] === 'array') {
-                        type = call[1];
-                    }
-                } else if (call[0] === 'name' && call[1] === 'define') {
-                    //A define call.
-                    type = 'define';
-                }
-            }
-        }
-
-        if (type) {
-            return onMatch(type);
-        }
-
-        return false;
-    };
-
-    /**
-     * Determines if a specific node is a valid require/requirejs config
-     * call. That includes calls to require/requirejs.config().
-     * @param {Array} node
-     * @param {Function} onMatch a function to call when a match is found.
-     * It is passed the match name, and the config, name, deps possible args.
-     * The config, name and deps args are not normalized.
-     *
-     * @returns {String} a JS source string with the valid require/define call.
-     * Otherwise null.
-     */
-    parse.parseConfigNode = function (node, onMatch) {
-        var call, configNode, args;
-
-        if (!isArray(node)) {
-            return false;
-        }
-
-        if (node[0] === 'call') {
-            call = node[1];
-            args = node[2];
-
-            if (call) {
-                //A require.config() or requirejs.config() call.
-                if ((call[0] === 'dot' &&
-                   (call[1] && call[1][0] === 'name' &&
-                    (call[1][1] === 'require' || call[1][1] === 'requirejs')) &&
-                   call[2] === 'config') ||
-                   //A require() or requirejs() config call.
-
-                   (call[0] === 'name' &&
-                   (call[1] === 'require' || call[1] === 'requirejs'))
-                ) {
-                    //It is a plain require() call.
-                    configNode = args[0];
-
-                    if (configNode[0] !== 'object') {
-                        return null;
-                    }
-
-                    return onMatch(configNode);
-
-                }
-            }
-        }
-
-        return false;
-    };
-
-    /**
-     * Converts an AST node into a JS source string. Does not maintain formatting
-     * or even comments from original source, just returns valid JS source.
-     * @param {Array} node
-     * @returns {String} a JS source string.
-     */
-    parse.nodeToString = function (node) {
-        return processor.gen_code(node, true);
-    };
-
-    return parse;
-});
-/**
- * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint regexp: false, strict: false, plusplus: false  */
-/*global define: false */
-
-define('pragma', ['parse', 'logger'], function (parse, logger) {
-
-    function Temp() {}
-
-    function create(obj, mixin) {
-        Temp.prototype = obj;
-        var temp = new Temp(), prop;
-
-        //Avoid any extra memory hanging around
-        Temp.prototype = null;
-
-        if (mixin) {
-            for (prop in mixin) {
-                if (mixin.hasOwnProperty(prop) && !(prop in temp)) {
-                    temp[prop] = mixin[prop];
-                }
-            }
-        }
-
-        return temp; // Object
-    }
-
-    var pragma = {
-        conditionalRegExp: /(exclude|include)Start\s*\(\s*["'](\w+)["']\s*,(.*)\)/,
-        useStrictRegExp: /['"]use strict['"];/g,
-        hasRegExp: /has\s*\(\s*['"]([^'"]+)['"]\s*\)/g,
-        nsRegExp: /(^|[^\.])(requirejs|require|define)\s*\(/,
-        nsWrapRegExp: /\/\*requirejs namespace: true \*\//,
-        apiDefRegExp: /var requirejs, require, define;/,
-        defineCheckRegExp: /typeof\s+define\s*===\s*["']function["']\s*&&\s*define\s*\.\s*amd/g,
-        defineJQueryRegExp: /typeof\s+define\s*===\s*["']function["']\s*&&\s*define\s*\.\s*amd\s*&&\s*define\s*\.\s*amd\s*\.\s*jQuery/g,
-        defineHasRegExp: /typeof\s+define\s*==(=)?\s*['"]function['"]\s*&&\s*typeof\s+define\.amd\s*==(=)?\s*['"]object['"]\s*&&\s*define\.amd/g,
-        defineTernaryRegExp: /typeof\s+define\s*===\s*['"]function["']\s*&&\s*define\s*\.\s*amd\s*\?\s*define/,
-        amdefineRegExp: /if\s*\(\s*typeof define\s*\!==\s*'function'\s*\)\s*\{\s*[^\{\}]+amdefine[^\{\}]+\}/g,
-
-        removeStrict: function (contents, config) {
-            return config.useStrict ? contents : contents.replace(pragma.useStrictRegExp, '');
-        },
-
-        namespace: function (fileContents, ns, onLifecycleName) {
-            if (ns) {
-                //Namespace require/define calls
-                fileContents = fileContents.replace(pragma.nsRegExp, '$1' + ns + '.$2(');
-
-                //Namespace define ternary use:
-                fileContents = fileContents.replace(pragma.defineTernaryRegExp,
-                                                    "typeof " + ns + ".define === 'function' && " + ns + ".define.amd ? " + ns + ".define");
-
-                //Namespace define jquery use:
-                fileContents = fileContents.replace(pragma.defineJQueryRegExp,
-                                                    "typeof " + ns + ".define === 'function' && " + ns + ".define.amd && " + ns + ".define.amd.jQuery");
-
-                //Namespace has.js define use:
-                fileContents = fileContents.replace(pragma.defineHasRegExp,
-                                                    "typeof " + ns + ".define === 'function' && typeof " + ns + ".define.amd === 'object' && " + ns + ".define.amd");
-
-                //Namespace define checks.
-                //Do this one last, since it is a subset of the more specific
-                //checks above.
-                fileContents = fileContents.replace(pragma.defineCheckRegExp,
-                                                    "typeof " + ns + ".define === 'function' && " + ns + ".define.amd");
-
-                //Check for require.js with the require/define definitions
-                if (pragma.apiDefRegExp.test(fileContents) &&
-                    fileContents.indexOf("if (typeof " + ns + " === 'undefined')") === -1) {
-                    //Wrap the file contents in a typeof check, and a function
-                    //to contain the API globals.
-                    fileContents = "var " + ns + ";(function () { if (typeof " +
-                                    ns + " === 'undefined') {\n" +
-                                    ns + ' = {};\n' +
-                                    fileContents +
-                                    "\n" +
-                                    ns + ".requirejs = requirejs;" +
-                                    ns + ".require = require;" +
-                                    ns + ".define = define;\n" +
-                                    "}\n}());";
-                }
-
-                //Finally, if the file wants a special wrapper because it ties
-                //in to the requirejs internals in a way that would not fit
-                //the above matches, do that. Look for /*requirejs namespace: true*/
-                if (pragma.nsWrapRegExp.test(fileContents)) {
-                    //Remove the pragma.
-                    fileContents = fileContents.replace(pragma.nsWrapRegExp, '');
-
-                    //Alter the contents.
-                    fileContents = '(function () {\n' +
-                                   'var require = ' + ns + '.require,' +
-                                   'requirejs = ' + ns + '.requirejs,' +
-                                   'define = ' + ns + '.define;\n' +
-                                   fileContents +
-                                   '\n}());'
-                }
-            }
-
-            return fileContents;
-        },
-
-        /**
-         * processes the fileContents for some //>> conditional statements
-         */
-        process: function (fileName, fileContents, config, onLifecycleName, pluginCollector) {
-            /*jslint evil: true */
-            var foundIndex = -1, startIndex = 0, lineEndIndex, conditionLine,
-                matches, type, marker, condition, isTrue, endRegExp, endMatches,
-                endMarkerIndex, shouldInclude, startLength, lifecycleHas, deps,
-                i, dep, moduleName,
-                lifecyclePragmas, pragmas = config.pragmas, hasConfig = config.has,
-                //Legacy arg defined to help in dojo conversion script. Remove later
-                //when dojo no longer needs conversion:
-                kwArgs = pragmas;
-
-            //Mix in a specific lifecycle scoped object, to allow targeting
-            //some pragmas/has tests to only when files are saved, or at different
-            //lifecycle events. Do not bother with kwArgs in this section, since
-            //the old dojo kwArgs were for all points in the build lifecycle.
-            if (onLifecycleName) {
-                lifecyclePragmas = config['pragmas' + onLifecycleName];
-                lifecycleHas = config['has' + onLifecycleName];
-
-                if (lifecyclePragmas) {
-                    pragmas = create(pragmas || {}, lifecyclePragmas);
-                }
-
-                if (lifecycleHas) {
-                    hasConfig = create(hasConfig || {}, lifecycleHas);
-                }
-            }
-
-            //Replace has references if desired
-            if (hasConfig) {
-                fileContents = fileContents.replace(pragma.hasRegExp, function (match, test) {
-                    if (test in hasConfig) {
-                        return !!hasConfig[test];
-                    }
-                    return match;
-                });
-            }
-
-            if (!config.skipPragmas) {
-
-                while ((foundIndex = fileContents.indexOf("//>>", startIndex)) !== -1) {
-                    //Found a conditional. Get the conditional line.
-                    lineEndIndex = fileContents.indexOf("\n", foundIndex);
-                    if (lineEndIndex === -1) {
-                        lineEndIndex = fileContents.length - 1;
-                    }
-
-                    //Increment startIndex past the line so the next conditional search can be done.
-                    startIndex = lineEndIndex + 1;
-
-                    //Break apart the conditional.
-                    conditionLine = fileContents.substring(foundIndex, lineEndIndex + 1);
-                    matches = conditionLine.match(pragma.conditionalRegExp);
-                    if (matches) {
-                        type = matches[1];
-                        marker = matches[2];
-                        condition = matches[3];
-                        isTrue = false;
-                        //See if the condition is true.
-                        try {
-                            isTrue = !!eval("(" + condition + ")");
-                        } catch (e) {
-                            throw "Error in file: " +
-                                   fileName +
-                                   ". Conditional comment: " +
-                                   conditionLine +
-                                   " failed with this error: " + e;
-                        }
-
-                        //Find the endpoint marker.
-                        endRegExp = new RegExp('\\/\\/\\>\\>\\s*' + type + 'End\\(\\s*[\'"]' + marker + '[\'"]\\s*\\)', "g");
-                        endMatches = endRegExp.exec(fileContents.substring(startIndex, fileContents.length));
-                        if (endMatches) {
-                            endMarkerIndex = startIndex + endRegExp.lastIndex - endMatches[0].length;
-
-                            //Find the next line return based on the match position.
-                            lineEndIndex = fileContents.indexOf("\n", endMarkerIndex);
-                            if (lineEndIndex === -1) {
-                                lineEndIndex = fileContents.length - 1;
-                            }
-
-                            //Should we include the segment?
-                            shouldInclude = ((type === "exclude" && !isTrue) || (type === "include" && isTrue));
-
-                            //Remove the conditional comments, and optionally remove the content inside
-                            //the conditional comments.
-                            startLength = startIndex - foundIndex;
-                            fileContents = fileContents.substring(0, foundIndex) +
-                                (shouldInclude ? fileContents.substring(startIndex, endMarkerIndex) : "") +
-                                fileContents.substring(lineEndIndex + 1, fileContents.length);
-
-                            //Move startIndex to foundIndex, since that is the new position in the file
-                            //where we need to look for more conditionals in the next while loop pass.
-                            startIndex = foundIndex;
-                        } else {
-                            throw "Error in file: " +
-                                  fileName +
-                                  ". Cannot find end marker for conditional comment: " +
-                                  conditionLine;
-
-                        }
-                    }
-                }
-            }
-
-            //If need to find all plugin resources to optimize, do that now,
-            //before namespacing, since the namespacing will change the API
-            //names.
-            //If there is a plugin collector, scan the file for plugin resources.
-            if (config.optimizeAllPluginResources && pluginCollector) {
-                try {
-                    deps = parse.findDependencies(fileName, fileContents);
-                    if (deps.length) {
-                        for (i = 0; (dep = deps[i]); i++) {
-                            if (dep.indexOf('!') !== -1) {
-                                (pluginCollector[moduleName] ||
-                                 (pluginCollector[moduleName] = [])).push(dep);
-                            }
-                        }
-                    }
-                } catch (eDep) {
-                    logger.error('Parse error looking for plugin resources in ' +
-                                 fileName + ', skipping.');
-                }
-            }
-
-            //Strip amdefine use for node-shared modules.
-            fileContents = fileContents.replace(pragma.amdefineRegExp, '');
-
-            //Do namespacing
-            if (onLifecycleName === 'OnSave' && config.namespace) {
-                fileContents = pragma.namespace(fileContents, config.namespace, onLifecycleName);
-            }
-
-
-            return pragma.removeStrict(fileContents, config);
-        }
-    };
-
-    return pragma;
-});
-if(env === 'node') {
-/**
- * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define: false */
-
-define('node/optimize', {});
-
-}
-
-if(env === 'rhino') {
-/**
- * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false, plusplus: false */
-/*global define: false, java: false, Packages: false */
-
-define('rhino/optimize', ['logger'], function (logger) {
-
-    //Add .reduce to Rhino so UglifyJS can run in Rhino,
-    //inspired by https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/reduce
-    //but rewritten for brevity, and to be good enough for use by UglifyJS.
-    if (!Array.prototype.reduce) {
-        Array.prototype.reduce = function (fn /*, initialValue */) {
-            var i = 0,
-                length = this.length,
-                accumulator;
-
-            if (arguments.length >= 2) {
-                accumulator = arguments[1];
-            } else {
-                do {
-                    if (i in this) {
-                        accumulator = this[i++];
-                        break;
-                    }
-                }
-                while (true);
-            }
-
-            for (; i < length; i++) {
-                if (i in this) {
-                    accumulator = fn.call(undefined, accumulator, this[i], i, this);
-                }
-            }
-
-            return accumulator;
-        };
-    }
-
-    var JSSourceFilefromCode, optimize;
-
-    //Bind to Closure compiler, but if it is not available, do not sweat it.
-    try {
-        JSSourceFilefromCode = java.lang.Class.forName('com.google.javascript.jscomp.JSSourceFile').getMethod('fromCode', [java.lang.String, java.lang.String]);
-    } catch (e) {}
-
-    //Helper for closure compiler, because of weird Java-JavaScript interactions.
-    function closurefromCode(filename, content) {
-        return JSSourceFilefromCode.invoke(null, [filename, content]);
-    }
-
-    optimize = {
-        closure: function (fileName, fileContents, keepLines, config) {
-            config = config || {};
-            var jscomp = Packages.com.google.javascript.jscomp,
-                flags = Packages.com.google.common.flags,
-                //Fake extern
-                externSourceFile = closurefromCode("fakeextern.js", " "),
-                //Set up source input
-                jsSourceFile = closurefromCode(String(fileName), String(fileContents)),
-                options, option, FLAG_compilation_level, compiler,
-                Compiler = Packages.com.google.javascript.jscomp.Compiler,
-                result;
-
-            logger.trace("Minifying file: " + fileName);
-
-            //Set up options
-            options = new jscomp.CompilerOptions();
-            for (option in config.CompilerOptions) {
-                // options are false by default and jslint wanted an if statement in this for loop
-                if (config.CompilerOptions[option]) {
-                    options[option] = config.CompilerOptions[option];
-                }
-
-            }
-            options.prettyPrint = keepLines || options.prettyPrint;
-
-            FLAG_compilation_level = jscomp.CompilationLevel[config.CompilationLevel || 'SIMPLE_OPTIMIZATIONS'];
-            FLAG_compilation_level.setOptionsForCompilationLevel(options);
-
-            //Trigger the compiler
-            Compiler.setLoggingLevel(Packages.java.util.logging.Level[config.loggingLevel || 'WARNING']);
-            compiler = new Compiler();
-
-            result = compiler.compile(externSourceFile, jsSourceFile, options);
-            if (!result.success) {
-                logger.error('Cannot closure compile file: ' + fileName + '. Skipping it.');
-            } else {
-                fileContents = compiler.toSource();
-            }
-
-            return fileContents;
-        }
-    };
-
-    return optimize;
-});
-}
-/**
- * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint plusplus: false, nomen: false, regexp: false */
-/*global define: false */
-
-define('optimize', [ 'lang', 'logger', 'env!env/optimize', 'env!env/file', 'parse',
-         'pragma', 'uglifyjs/index'],
-function (lang,   logger,   envOptimize,        file,           parse,
-          pragma, uglify) {
-
-    var optimize,
-        cssImportRegExp = /\@import\s+(url\()?\s*([^);]+)\s*(\))?([\w, ]*)(;)?/g,
-        cssUrlRegExp = /\url\(\s*([^\)]+)\s*\)?/g;
-
-    /**
-     * If an URL from a CSS url value contains start/end quotes, remove them.
-     * This is not done in the regexp, since my regexp fu is not that strong,
-     * and the CSS spec allows for ' and " in the URL if they are backslash escaped.
-     * @param {String} url
-     */
-    function cleanCssUrlQuotes(url) {
-        //Make sure we are not ending in whitespace.
-        //Not very confident of the css regexps above that there will not be ending
-        //whitespace.
-        url = url.replace(/\s+$/, "");
-
-        if (url.charAt(0) === "'" || url.charAt(0) === "\"") {
-            url = url.substring(1, url.length - 1);
-        }
-
-        return url;
-    }
-
-    /**
-     * Inlines nested stylesheets that have @import calls in them.
-     * @param {String} fileName the file name
-     * @param {String} fileContents the file contents
-     * @param {String} cssImportIgnore comma delimited string of files to ignore
-     * @param {Object} included an object used to track the files already imported
-     */
-    function flattenCss(fileName, fileContents, cssImportIgnore, included) {
-        //Find the last slash in the name.
-        fileName = fileName.replace(lang.backSlashRegExp, "/");
-        var endIndex = fileName.lastIndexOf("/"),
-            //Make a file path based on the last slash.
-            //If no slash, so must be just a file name. Use empty string then.
-            filePath = (endIndex !== -1) ? fileName.substring(0, endIndex + 1) : "",
-            //store a list of merged files
-            importList = [];
-
-        //Make sure we have a delimited ignore list to make matching faster
-        if (cssImportIgnore && cssImportIgnore.charAt(cssImportIgnore.length - 1) !== ",") {
-            cssImportIgnore += ",";
-        }
-
-        fileContents = fileContents.replace(cssImportRegExp, function (fullMatch, urlStart, importFileName, urlEnd, mediaTypes) {
-            //Only process media type "all" or empty media type rules.
-            if (mediaTypes && ((mediaTypes.replace(/^\s\s*/, '').replace(/\s\s*$/, '')) !== "all")) {
-                return fullMatch;
-            }
-
-            importFileName = cleanCssUrlQuotes(importFileName);
-
-            //Ignore the file import if it is part of an ignore list.
-            if (cssImportIgnore && cssImportIgnore.indexOf(importFileName + ",") !== -1) {
-                return fullMatch;
-            }
-
-            //Make sure we have a unix path for the rest of the operation.
-            importFileName = importFileName.replace(lang.backSlashRegExp, "/");
-
-            try {
-                //if a relative path, then tack on the filePath.
-                //If it is not a relative path, then the readFile below will fail,
-                //and we will just skip that import.
-                var fullImportFileName = importFileName.charAt(0) === "/" ? importFileName : filePath + importFileName,
-                    importContents = file.readFile(fullImportFileName), i,
-                    importEndIndex, importPath, fixedUrlMatch, colonIndex, parts, flat;
-
-                //Skip the file if it has already been included.
-                if (included[fullImportFileName]) {
-                    return '';
-                }
-                included[fullImportFileName] = true;
-
-                //Make sure to flatten any nested imports.
-                flat = flattenCss(fullImportFileName, importContents, cssImportIgnore, included);
-                importContents = flat.fileContents;
-
-                if (flat.importList.length) {
-                    importList.push.apply(importList, flat.importList);
-                }
-
-                //Make the full import path
-                importEndIndex = importFileName.lastIndexOf("/");
-
-                //Make a file path based on the last slash.
-                //If no slash, so must be just a file name. Use empty string then.
-                importPath = (importEndIndex !== -1) ? importFileName.substring(0, importEndIndex + 1) : "";
-
-                //fix url() on relative import (#5)
-                importPath = importPath.replace(/^\.\//, '');
-
-                //Modify URL paths to match the path represented by this file.
-                importContents = importContents.replace(cssUrlRegExp, function (fullMatch, urlMatch) {
-                    fixedUrlMatch = cleanCssUrlQuotes(urlMatch);
-                    fixedUrlMatch = fixedUrlMatch.replace(lang.backSlashRegExp, "/");
-
-                    //Only do the work for relative URLs. Skip things that start with / or have
-                    //a protocol.
-                    colonIndex = fixedUrlMatch.indexOf(":");
-                    if (fixedUrlMatch.charAt(0) !== "/" && (colonIndex === -1 || colonIndex > fixedUrlMatch.indexOf("/"))) {
-                        //It is a relative URL, tack on the path prefix
-                        urlMatch = importPath + fixedUrlMatch;
-                    } else {
-                        logger.trace(importFileName + "\n  URL not a relative URL, skipping: " + urlMatch);
-                    }
-
-                    //Collapse .. and .
-                    parts = urlMatch.split("/");
-                    for (i = parts.length - 1; i > 0; i--) {
-                        if (parts[i] === ".") {
-                            parts.splice(i, 1);
-                        } else if (parts[i] === "..") {
-                            if (i !== 0 && parts[i - 1] !== "..") {
-                                parts.splice(i - 1, 2);
-                                i -= 1;
-                            }
-                        }
-                    }
-
-                    return "url(" + parts.join("/") + ")";
-                });
-
-                importList.push(fullImportFileName);
-                return importContents;
-            } catch (e) {
-                logger.warn(fileName + "\n  Cannot inline css import, skipping: " + importFileName);
-                return fullMatch;
-            }
-        });
-
-        return {
-            importList : importList,
-            fileContents : fileContents
-        };
-    }
-
-    optimize = {
-        licenseCommentRegExp: /\/\*[\s\S]*?\*\//g,
-
-        /**
-         * Optimizes a file that contains JavaScript content. Optionally collects
-         * plugin resources mentioned in a file, and then passes the content
-         * through an minifier if one is specified via config.optimize.
-         *
-         * @param {String} fileName the name of the file to optimize
-         * @param {String} outFileName the name of the file to use for the
-         * saved optimized content.
-         * @param {Object} config the build config object.
-         * @param {String} [moduleName] the module name to use for the file.
-         * Used for plugin resource collection.
-         * @param {Array} [pluginCollector] storage for any plugin resources
-         * found.
-         */
-        jsFile: function (fileName, outFileName, config, moduleName, pluginCollector) {
-            var parts = (config.optimize + "").split('.'),
-                optimizerName = parts[0],
-                keepLines = parts[1] === 'keepLines',
-                fileContents;
-
-            fileContents = file.readFile(fileName);
-
-            fileContents = optimize.js(fileName, fileContents, optimizerName,
-                                       keepLines, config, pluginCollector);
-
-            file.saveUtf8File(outFileName, fileContents);
-        },
-
-        /**
-         * Optimizes a file that contains JavaScript content. Optionally collects
-         * plugin resources mentioned in a file, and then passes the content
-         * through an minifier if one is specified via config.optimize.
-         *
-         * @param {String} fileName the name of the file that matches the
-         * fileContents.
-         * @param {String} fileContents the string of JS to optimize.
-         * @param {String} [optimizerName] optional name of the optimizer to
-         * use. 'uglify' is default.
-         * @param {Boolean} [keepLines] whether to keep line returns in the optimization.
-         * @param {Object} [config] the build config object.
-         * @param {Array} [pluginCollector] storage for any plugin resources
-         * found.
-         */
-        js: function (fileName, fileContents, optimizerName, keepLines, config, pluginCollector) {
-            var licenseContents = '',
-                optFunc, match, comment;
-
-            config = config || {};
-
-            //Apply pragmas/namespace renaming
-            fileContents = pragma.process(fileName, fileContents, config, 'OnSave', pluginCollector);
-
-            //Optimize the JS files if asked.
-            if (optimizerName && optimizerName !== 'none') {
-                optFunc = envOptimize[optimizerName] || optimize.optimizers[optimizerName];
-                if (!optFunc) {
-                    throw new Error('optimizer with name of "' +
-                                    optimizerName +
-                                    '" not found for this environment');
-                }
-
-                if (config.preserveLicenseComments) {
-                    //Pull out any license comments for prepending after optimization.
-                    optimize.licenseCommentRegExp.lastIndex = 0;
-                    while ((match = optimize.licenseCommentRegExp.exec(fileContents))) {
-                        comment = match[0];
-                        //Only keep the comments if they are license comments.
-                        if (comment.indexOf('@license') !== -1 ||
-                            comment.indexOf('/*!') === 0) {
-                            licenseContents += comment + '\n';
-                        }
-                    }
-                }
-
-                fileContents = licenseContents + optFunc(fileName, fileContents, keepLines,
-                                        config[optimizerName]);
-            }
-
-            return fileContents;
-        },
-
-        /**
-         * Optimizes one CSS file, inlining @import calls, stripping comments, and
-         * optionally removes line returns.
-         * @param {String} fileName the path to the CSS file to optimize
-         * @param {String} outFileName the path to save the optimized file.
-         * @param {Object} config the config object with the optimizeCss and
-         * cssImportIgnore options.
-         */
-        cssFile: function (fileName, outFileName, config) {
-
-            //Read in the file. Make sure we have a JS string.
-            var originalFileContents = file.readFile(fileName),
-                flat = flattenCss(fileName, originalFileContents, config.cssImportIgnore, {}),
-                fileContents = flat.fileContents,
-                startIndex, endIndex, buildText;
-
-            //Do comment removal.
-            try {
-                if (config.optimizeCss.indexOf(".keepComments") === -1) {
-                    startIndex = -1;
-                    //Get rid of comments.
-                    while ((startIndex = fileContents.indexOf("/*")) !== -1) {
-                        endIndex = fileContents.indexOf("*/", startIndex + 2);
-                        if (endIndex === -1) {
-                            throw "Improper comment in CSS file: " + fileName;
-                        }
-                        fileContents = fileContents.substring(0, startIndex) + fileContents.substring(endIndex + 2, fileContents.length);
-                    }
-                }
-                //Get rid of newlines.
-                if (config.optimizeCss.indexOf(".keepLines") === -1) {
-                    fileContents = fileContents.replace(/[\r\n]/g, "");
-                    fileContents = fileContents.replace(/\s+/g, " ");
-                    fileContents = fileContents.replace(/\{\s/g, "{");
-                    fileContents = fileContents.replace(/\s\}/g, "}");
-                } else {
-                    //Remove multiple empty lines.
-                    fileContents = fileContents.replace(/(\r\n)+/g, "\r\n");
-                    fileContents = fileContents.replace(/(\n)+/g, "\n");
-                }
-            } catch (e) {
-                fileContents = originalFileContents;
-                logger.error("Could not optimized CSS file: " + fileName + ", error: " + e);
-            }
-
-            file.saveUtf8File(outFileName, fileContents);
-
-            //text output to stdout and/or written to build.txt file
-            buildText = "\n"+ outFileName.replace(config.dir, "") +"\n----------------\n";
-            flat.importList.push(fileName);
-            buildText += flat.importList.map(function(path){
-                return path.replace(config.dir, "");
-            }).join("\n");
-            return buildText +"\n";
-        },
-
-        /**
-         * Optimizes CSS files, inlining @import calls, stripping comments, and
-         * optionally removes line returns.
-         * @param {String} startDir the path to the top level directory
-         * @param {Object} config the config object with the optimizeCss and
-         * cssImportIgnore options.
-         */
-        css: function (startDir, config) {
-            var buildText = "",
-                i, fileName, fileList;
-            if (config.optimizeCss.indexOf("standard") !== -1) {
-                fileList = file.getFilteredFileList(startDir, /\.css$/, true);
-                if (fileList) {
-                    for (i = 0; i < fileList.length; i++) {
-                        fileName = fileList[i];
-                        logger.trace("Optimizing (" + config.optimizeCss + ") CSS file: " + fileName);
-                        buildText += optimize.cssFile(fileName, fileName, config);
-                    }
-                }
-            }
-            return buildText;
-        },
-
-        optimizers: {
-            uglify: function (fileName, fileContents, keepLines, config) {
-                var parser = uglify.parser,
-                    processor = uglify.uglify,
-                    ast;
-
-                config = config || {};
-
-                logger.trace("Uglifying file: " + fileName);
-
-                try {
-                    ast = parser.parse(fileContents, config.strict_semicolons);
-                    ast = processor.ast_mangle(ast, config);
-                    ast = processor.ast_squeeze(ast, config);
-
-                    fileContents = processor.gen_code(ast, config);
-                } catch (e) {
-                    logger.error('Cannot uglify file: ' + fileName + '. Skipping it. Error is:\n' + e.toString());
-                }
-                return fileContents;
-            }
-        }
-    };
-
-    return optimize;
-});
-/**
- * @license RequireJS Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-/*
- * This file patches require.js to communicate with the build system.
- */
-
-/*jslint nomen: false, plusplus: false, regexp: false, strict: false */
-/*global require: false, define: true */
-
-//NOT asking for require as a dependency since the goal is to modify the
-//global require below
-define('requirePatch', [ 'env!env/file', 'pragma', 'parse'],
-function (file,           pragma,   parse) {
-
-    var allowRun = true;
-
-    //This method should be called when the patches to require should take hold.
-    return function () {
-        if (!allowRun) {
-            return;
-        }
-        allowRun = false;
-
-        var layer,
-            pluginBuilderRegExp = /(["']?)pluginBuilder(["']?)\s*[=\:]\s*["']([^'"\s]+)["']/,
-            oldDef;
-
-
-        /** Print out some extrs info about the module tree that caused the error. **/
-        require.onError = function (err) {
-
-            var msg = '\nIn module tree:\n',
-                standardIndent = '  ',
-                tree = err.moduleTree,
-                i, j, mod;
-
-            if (tree && tree.length > 0) {
-                for (i = tree.length - 1; i > -1 && (mod = tree[i]); i--) {
-                    for (j = tree.length - i; j > -1; j--) {
-                        msg += standardIndent;
-                    }
-                    msg += mod + '\n';
-                }
-
-                err = new Error(err.toString() + msg);
-            }
-
-            throw err;
-        };
-
-        //Stored cached file contents for reuse in other layers.
-        require._cachedFileContents = {};
-
-        /** Reset state for each build layer pass. */
-        require._buildReset = function () {
-            var oldContext = require.s.contexts._;
-
-            //Clear up the existing context.
-            delete require.s.contexts._;
-
-            //Set up new context, so the layer object can hold onto it.
-            require({});
-
-            layer = require._layer = {
-                buildPathMap: {},
-                buildFileToModule: {},
-                buildFilePaths: [],
-                pathAdded: {},
-                modulesWithNames: {},
-                needsDefine: {},
-                existingRequireUrl: "",
-                context: require.s.contexts._
-            };
-
-            //Return the previous context in case it is needed, like for
-            //the basic config object.
-            return oldContext;
-        };
-
-        require._buildReset();
-
-        /**
-         * Makes sure the URL is something that can be supported by the
-         * optimization tool.
-         * @param {String} url
-         * @returns {Boolean}
-         */
-        require._isSupportedBuildUrl = function (url) {
-            //Ignore URLs with protocols, hosts or question marks, means either network
-            //access is needed to fetch it or it is too dynamic. Note that
-            //on Windows, full paths are used for some urls, which include
-            //the drive, like c:/something, so need to test for something other
-            //than just a colon.
-            return url.indexOf("://") === -1 && url.indexOf("?") === -1 &&
-                   url.indexOf('empty:') !== 0 && url.indexOf('//') !== 0;
-        };
-
-        //Override define() to catch modules that just define an object, so that
-        //a dummy define call is not put in the build file for them. They do
-        //not end up getting defined via require.execCb, so we need to catch them
-        //at the define call.
-        oldDef = define;
-
-        //This function signature does not have to be exact, just match what we
-        //are looking for.
-        define = function (name, obj) {
-            if (typeof name === "string" && !layer.needsDefine[name]) {
-                layer.modulesWithNames[name] = true;
-            }
-            return oldDef.apply(require, arguments);
-        };
-
-        define.amd = oldDef.amd;
-
-        //Add some utilities for plugins
-        require._readFile = file.readFile;
-        require._fileExists = function (path) {
-            return file.exists(path);
-        };
-
-        function normalizeUrlWithBase(context, moduleName, url) {
-            //Adjust the URL if it was not transformed to use baseUrl.
-            if (require.jsExtRegExp.test(moduleName)) {
-                url = (context.config.dir || context.config.dirBaseUrl) + url;
-            }
-            return url;
-        }
-
-        //Override load so that the file paths can be collected.
-        require.load = function (context, moduleName, url) {
-            /*jslint evil: true */
-            var contents, pluginBuilderMatch, builderName;
-
-            context.scriptCount += 1;
-
-            //Only handle urls that can be inlined, so that means avoiding some
-            //URLs like ones that require network access or may be too dynamic,
-            //like JSONP
-            if (require._isSupportedBuildUrl(url)) {
-                //Adjust the URL if it was not transformed to use baseUrl.
-                url = normalizeUrlWithBase(context, moduleName, url);
-                
-                //Save the module name to path  and path to module name mappings.
-                layer.buildPathMap[moduleName] = url;
-                layer.buildFileToModule[url] = moduleName;
-
-                if (moduleName in context.plugins) {
-                    //plugins need to have their source evaled as-is.
-                    context.needFullExec[moduleName] = true;
-                }
-
-                try {
-                    if (url in require._cachedFileContents &&
-                        (!context.needFullExec[moduleName] || context.fullExec[moduleName])) {
-                        contents = require._cachedFileContents[url];
-                    } else {
-                        //Load the file contents, process for conditionals, then
-                        //evaluate it.
-                        contents = file.readFile(url);
-
-                        //If there is a read filter, run it now.
-                        if (context.config.onBuildRead) {
-                            contents = context.config.onBuildRead(moduleName, url, contents);
-                        }
-
-                        contents = pragma.process(url, contents, context.config, 'OnExecute');
-
-                        //Find out if the file contains a require() definition. Need to know
-                        //this so we can inject plugins right after it, but before they are needed,
-                        //and to make sure this file is first, so that define calls work.
-                        //This situation mainly occurs when the build is done on top of the output
-                        //of another build, where the first build may include require somewhere in it.
-                        try {
-                            if (!layer.existingRequireUrl && parse.definesRequire(url, contents)) {
-                                layer.existingRequireUrl = url;
-                            }
-                        } catch (e1) {
-                            throw new Error('Parse error using UglifyJS ' +
-                                            'for file: ' + url + '\n' + e1);
-                        }
-
-                        if (moduleName in context.plugins) {
-                            //This is a loader plugin, check to see if it has a build extension,
-                            //otherwise the plugin will act as the plugin builder too.
-                            pluginBuilderMatch = pluginBuilderRegExp.exec(contents);
-                            if (pluginBuilderMatch) {
-                                //Load the plugin builder for the plugin contents.
-                                builderName = context.normalize(pluginBuilderMatch[3], moduleName);
-                                contents = file.readFile(context.nameToUrl(builderName));
-                            }
-                        }
-
-                        //Parse out the require and define calls.
-                        //Do this even for plugins in case they have their own
-                        //dependencies that may be separate to how the pluginBuilder works.
-                        try {
-                            if (!context.needFullExec[moduleName]) {
-                                contents = parse(moduleName, url, contents, {
-                                    insertNeedsDefine: true,
-                                    has: context.config.has,
-                                    findNestedDependencies: context.config.findNestedDependencies
-                                });
-                            }
-                        } catch (e2) {
-                            throw new Error('Parse error using UglifyJS ' +
-                                            'for file: ' + url + '\n' + e2);
-                        }
-
-                        require._cachedFileContents[url] = contents;
-                    }
-
-                    if (contents) {
-                        eval(contents);
-                    }
-
-                    //Need to close out completion of this module
-                    //so that listeners will get notified that it is available.
-                    try {
-                        context.completeLoad(moduleName);
-                    } catch (e) {
-                        //Track which module could not complete loading.
-                        (e.moduleTree || (e.moduleTree = [])).push(moduleName);
-                        throw e;
-                    }
-
-                } catch (eOuter) {
-                    if (!eOuter.fileName) {
-                        eOuter.fileName = url;
-                    }
-                    throw eOuter;
-                }
-            } else {
-                //With unsupported URLs still need to call completeLoad to
-                //finish loading.
-                context.completeLoad(moduleName);
-            }
-
-            //Mark the module loaded.
-            context.loaded[moduleName] = true;
-        };
-
-
-        //Called when execManager runs for a dependency. Used to figure out
-        //what order of execution.
-        require.onResourceLoad = function (context, map) {
-            var fullName = map.fullName,
-                url;
-
-            //Ignore "fake" modules, usually generated by plugin code, since
-            //they do not map back to a real file to include in the optimizer,
-            //or it will be included, but in a different form.
-            if (context.fake[fullName]) {
-                return;
-            }
-
-            //A plugin.
-            if (map.prefix) {
-                if (!layer.pathAdded[fullName]) {
-                    layer.buildFilePaths.push(fullName);
-                    //For plugins the real path is not knowable, use the name
-                    //for both module to file and file to module mappings.
-                    layer.buildPathMap[fullName] = fullName;
-                    layer.buildFileToModule[fullName] = fullName;
-                    layer.modulesWithNames[fullName] = true;
-                    layer.pathAdded[fullName] = true;
-                }
-            } else if (map.url && require._isSupportedBuildUrl(map.url)) {
-                //If the url has not been added to the layer yet, and it
-                //is from an actual file that was loaded, add it now.
-                url = normalizeUrlWithBase(context, map.fullName, map.url);
-                if (!layer.pathAdded[url] && layer.buildPathMap[fullName]) {
-                    //Remember the list of dependencies for this layer.
-                    layer.buildFilePaths.push(url);
-                    layer.pathAdded[url] = true;
-                }
-            }
-        };
-
-        //Called by output of the parse() function, when a file does not
-        //explicitly call define, probably just require, but the parse()
-        //function normalizes on define() for dependency mapping and file
-        //ordering works correctly.
-        require.needsDefine = function (moduleName) {
-            layer.needsDefine[moduleName] = true;
-        };
-
-        //Marks module has having a name, and optionally executes the
-        //callback, but only if it meets certain criteria.
-        require.execCb = function (name, cb, args, exports) {
-            if (!layer.needsDefine[name]) {
-                layer.modulesWithNames[name] = true;
-            }
-            if (cb.__requireJsBuild || layer.context.needFullExec[name]) {
-                return cb.apply(exports, args);
-            }
-            return undefined;
-        };
-    };
-});
-/**
- * @license RequireJS Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint plusplus: false, regexp: false, strict: false */
-/*global define: false, console: false */
-
-define('commonJs', ['env!env/file', 'uglifyjs/index'], function (file, uglify) {
-    var commonJs = {
-        depRegExp: /require\s*\(\s*["']([\w-_\.\/]+)["']\s*\)/g,
-
-        //Set this to false in non-rhino environments. If rhino, then it uses
-        //rhino's decompiler to remove comments before looking for require() calls,
-        //otherwise, it will use a crude regexp approach to remove comments. The
-        //rhino way is more robust, but he regexp is more portable across environments.
-        useRhino: true,
-
-        //Set to false if you do not want this file to log. Useful in environments
-        //like node where you want the work to happen without noise.
-        useLog: true,
-
-        convertDir: function (commonJsPath, savePath) {
-            var fileList, i,
-                jsFileRegExp = /\.js$/,
-                fileName, convertedFileName, fileContents;
-
-            //Get list of files to convert.
-            fileList = file.getFilteredFileList(commonJsPath, /\w/, true);
-
-            //Normalize on front slashes and make sure the paths do not end in a slash.
-            commonJsPath = commonJsPath.replace(/\\/g, "/");
-            savePath = savePath.replace(/\\/g, "/");
-            if (commonJsPath.charAt(commonJsPath.length - 1) === "/") {
-                commonJsPath = commonJsPath.substring(0, commonJsPath.length - 1);
-            }
-            if (savePath.charAt(savePath.length - 1) === "/") {
-                savePath = savePath.substring(0, savePath.length - 1);
-            }
-
-            //Cycle through all the JS files and convert them.
-            if (!fileList || !fileList.length) {
-                if (commonJs.useLog) {
-                    if (commonJsPath === "convert") {
-                        //A request just to convert one file.
-                        console.log('\n\n' + commonJs.convert(savePath, file.readFile(savePath)));
-                    } else {
-                        console.log("No files to convert in directory: " + commonJsPath);
-                    }
-                }
-            } else {
-                for (i = 0; (fileName = fileList[i]); i++) {
-                    convertedFileName = fileName.replace(commonJsPath, savePath);
-
-                    //Handle JS files.
-                    if (jsFileRegExp.test(fileName)) {
-                        fileContents = file.readFile(fileName);
-                        fileContents = commonJs.convert(fileName, fileContents);
-                        file.saveUtf8File(convertedFileName, fileContents);
-                    } else {
-                        //Just copy the file over.
-                        file.copyFile(fileName, convertedFileName, true);
-                    }
-                }
-            }
-        },
-
-        /**
-         * Removes the comments from a string.
-         *
-         * @param {String} fileContents
-         * @param {String} fileName mostly used for informative reasons if an error.
-         *
-         * @returns {String} a string of JS with comments removed.
-         */
-        removeComments: function (fileContents, fileName) {
-            //Uglify's ast generation removes comments, so just convert to ast,
-            //then back to source code to get rid of comments.
-            return uglify.uglify.gen_code(uglify.parser.parse(fileContents), true);
-        },
-
-        /**
-         * Regexp for testing if there is already a require.def call in the file,
-         * in which case do not try to convert it.
-         */
-        defRegExp: /define\s*\(\s*("|'|\[|function)/,
-
-        /**
-         * Regexp for testing if there is a require([]) or require(function(){})
-         * call, indicating the file is already in requirejs syntax.
-         */
-        rjsRegExp: /require\s*\(\s*(\[|function)/,
-
-        /**
-         * Does the actual file conversion.
-         *
-         * @param {String} fileName the name of the file.
-         *
-         * @param {String} fileContents the contents of a file :)
-         *
-         * @param {Boolean} skipDeps if true, require("") dependencies
-         * will not be searched, but the contents will just be wrapped in the
-         * standard require, exports, module dependencies. Only usable in sync
-         * environments like Node where the require("") calls can be resolved on
-         * the fly.
-         *
-         * @returns {String} the converted contents
-         */
-        convert: function (fileName, fileContents, skipDeps) {
-            //Strip out comments.
-            try {
-                var deps = [], depName, match,
-                    //Remove comments
-                    tempContents = commonJs.removeComments(fileContents, fileName);
-
-                //First see if the module is not already RequireJS-formatted.
-                if (commonJs.defRegExp.test(tempContents) || commonJs.rjsRegExp.test(tempContents)) {
-                    return fileContents;
-                }
-
-                //Reset the regexp to start at beginning of file. Do this
-                //since the regexp is reused across files.
-                commonJs.depRegExp.lastIndex = 0;
-
-                if (!skipDeps) {
-                    //Find dependencies in the code that was not in comments.
-                    while ((match = commonJs.depRegExp.exec(tempContents))) {
-                        depName = match[1];
-                        if (depName) {
-                            deps.push('"' + depName + '"');
-                        }
-                    }
-                }
-
-                //Construct the wrapper boilerplate.
-                fileContents = 'define(["require", "exports", "module"' +
-                       (deps.length ? ', ' + deps.join(",") : '') + '], ' +
-                       'function(require, exports, module) {\n' +
-                       fileContents +
-                       '\n});\n';
-            } catch (e) {
-                console.log("COULD NOT CONVERT: " + fileName + ", so skipping it. Error was: " + e);
-                return fileContents;
-            }
-
-            return fileContents;
-        }
-    };
-
-    return commonJs;
-});
-/**
- * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint plusplus: true, nomen: true  */
-/*global define, require */
-
-
-define('build', [ 'lang', 'logger', 'env!env/file', 'parse', 'optimize', 'pragma',
-         'env!env/load', 'requirePatch'],
-function (lang,   logger,   file,          parse,    optimize,   pragma,
-          load,           requirePatch) {
-    'use strict';
-
-    var build, buildBaseConfig,
-        endsWithSemiColonRegExp = /;\s*$/;
-
-    buildBaseConfig = {
-            appDir: "",
-            pragmas: {},
-            paths: {},
-            optimize: "uglify",
-            optimizeCss: "standard.keepLines",
-            inlineText: true,
-            isBuild: true,
-            optimizeAllPluginResources: false,
-            findNestedDependencies: false,
-            preserveLicenseComments: true,
-            //By default, all files/directories are copied, unless
-            //they match this regexp, by default just excludes .folders
-            dirExclusionRegExp: file.dirExclusionRegExp
-        };
-
-    /**
-     * Some JS may not be valid if concatenated with other JS, in particular
-     * the style of omitting semicolons and rely on ASI. Add a semicolon in
-     * those cases.
-     */
-    function addSemiColon(text) {
-        if (endsWithSemiColonRegExp.test(text)) {
-            return text;
-        } else {
-            return text + ";";
-        }
-    }
-
-    /**
-     * If the path looks like an URL, throw an error. This is to prevent
-     * people from using URLs with protocols in the build config, since
-     * the optimizer is not set up to do network access. However, be
-     * sure to allow absolute paths on Windows, like C:\directory.
-     */
-    function disallowUrls(path) {
-        if ((path.indexOf('://') !== -1 || path.indexOf('//') === 0) && path !== 'empty:') {
-            throw new Error('Path is not supported: ' + path +
-                            '\nOptimizer can only handle' +
-                            ' local paths. Download the locally if necessary' +
-                            ' and update the config to use a local path.\n' +
-                            'http://requirejs.org/docs/errors.html#pathnotsupported');
-        }
-    }
-
-    function endsWithSlash(dirName) {
-        if (dirName.charAt(dirName.length - 1) !== "/") {
-            dirName += "/";
-        }
-        disallowUrls(dirName);
-        return dirName;
-    }
-
-    //Method used by plugin writeFile calls, defined up here to avoid
-    //jslint warning about "making a function in a loop".
-    function makeWriteFile(anonDefRegExp, namespaceWithDot, layer) {
-        function writeFile(name, contents) {
-            logger.trace('Saving plugin-optimized file: ' + name);
-            file.saveUtf8File(name, contents);
-        }
-
-        writeFile.asModule = function (moduleName, fileName, contents) {
-            writeFile(fileName,
-                build.toTransport(anonDefRegExp, namespaceWithDot, moduleName, fileName, contents, layer));
-        };
-
-        return writeFile;
-    }
-
-    /**
-     * Main API entry point into the build. The args argument can either be
-     * an array of arguments (like the onese passed on a command-line),
-     * or it can be a JavaScript object that has the format of a build profile
-     * file.
-     *
-     * If it is an object, then in addition to the normal properties allowed in
-     * a build profile file, the object should contain one other property:
-     *
-     * The object could also contain a "buildFile" property, which is a string
-     * that is the file path to a build profile that contains the rest
-     * of the build profile directives.
-     *
-     * This function does not return a status, it should throw an error if
-     * there is a problem completing the build.
-     */
-    build = function (args) {
-        var buildFile, cmdConfig;
-
-        if (!args || lang.isArray(args)) {
-            if (!args || args.length < 1) {
-                logger.error("build.js buildProfile.js\n" +
-                      "where buildProfile.js is the name of the build file (see example.build.js for hints on how to make a build file).");
-                return undefined;
-            }
-
-            //Next args can include a build file path as well as other build args.
-            //build file path comes first. If it does not contain an = then it is
-            //a build file path. Otherwise, just all build args.
-            if (args[0].indexOf("=") === -1) {
-                buildFile = args[0];
-                args.splice(0, 1);
-            }
-
-            //Remaining args are options to the build
-            cmdConfig = build.convertArrayToObject(args);
-            cmdConfig.buildFile = buildFile;
-        } else {
-            cmdConfig = args;
-        }
-
-        return build._run(cmdConfig);
-    };
-
-    build._run = function (cmdConfig) {
-        var buildFileContents = "",
-            pluginCollector = {},
-            buildPaths, fileName, fileNames,
-            prop, paths, i,
-            baseConfig, config,
-            modules, builtModule, srcPath, buildContext,
-            destPath, moduleName, moduleMap, parentModuleMap, context,
-            resources, resource, pluginProcessed = {}, plugin;
-
-        //Can now run the patches to require.js to allow it to be used for
-        //build generation. Do it here instead of at the top of the module
-        //because we want normal require behavior to load the build tool
-        //then want to switch to build mode.
-        requirePatch();
-
-        config = build.createConfig(cmdConfig);
-        paths = config.paths;
-
-        if (config.logLevel) {
-            logger.logLevel(config.logLevel);
-        }
-
-        if (!config.out && !config.cssIn) {
-            //This is not just a one-off file build but a full build profile, with
-            //lots of files to process.
-
-            //First copy all the baseUrl content
-            file.copyDir((config.appDir || config.baseUrl), config.dir, /\w/, true);
-
-            //Adjust baseUrl if config.appDir is in play, and set up build output paths.
-            buildPaths = {};
-            if (config.appDir) {
-                //All the paths should be inside the appDir, so just adjust
-                //the paths to use the dirBaseUrl
-                for (prop in paths) {
-                    if (paths.hasOwnProperty(prop)) {
-                        buildPaths[prop] = paths[prop].replace(config.baseUrl, config.dirBaseUrl);
-                    }
-                }
-            } else {
-                //If no appDir, then make sure to copy the other paths to this directory.
-                for (prop in paths) {
-                    if (paths.hasOwnProperty(prop)) {
-                        //Set up build path for each path prefix.
-                        buildPaths[prop] = paths[prop] === 'empty:' ? 'empty:' : prop.replace(/\./g, "/");
-
-                        //Make sure source path is fully formed with baseUrl,
-                        //if it is a relative URL.
-                        srcPath = paths[prop];
-                        if (srcPath.indexOf('/') !== 0 && srcPath.indexOf(':') === -1) {
-                            srcPath = config.baseUrl + srcPath;
-                        }
-
-                        destPath = config.dirBaseUrl + buildPaths[prop];
-
-                        //Skip empty: paths
-                        if (srcPath !== 'empty:') {
-                            //If the srcPath is a directory, copy the whole directory.
-                            if (file.exists(srcPath) && file.isDirectory(srcPath)) {
-                                //Copy files to build area. Copy all files (the /\w/ regexp)
-                                file.copyDir(srcPath, destPath, /\w/, true);
-                            } else {
-                                //Try a .js extension
-                                srcPath += '.js';
-                                destPath += '.js';
-                                file.copyFile(srcPath, destPath);
-                            }
-                        }
-                    }
-                }
-            }
-        }
-
-        //Figure out source file location for each module layer. Do this by seeding require
-        //with source area configuration. This is needed so that later the module layers
-        //can be manually copied over to the source area, since the build may be
-        //require multiple times and the above copyDir call only copies newer files.
-        require({
-            baseUrl: config.baseUrl,
-            paths: paths,
-            packagePaths: config.packagePaths,
-            packages: config.packages
-        });
-        buildContext = require.s.contexts._;
-        modules = config.modules;
-
-        if (modules) {
-            modules.forEach(function (module) {
-                if (module.name) {
-                    module._sourcePath = buildContext.nameToUrl(module.name);
-                    //If the module does not exist, and this is not a "new" module layer,
-                    //as indicated by a true "create" property on the module, and
-                    //it is not a plugin-loaded resource, then throw an error.
-                    if (!file.exists(module._sourcePath) && !module.create &&
-                        module.name.indexOf('!') === -1) {
-                        throw new Error("ERROR: module path does not exist: " +
-                                        module._sourcePath + " for module named: " + module.name +
-                                        ". Path is relative to: " + file.absPath('.'));
-                    }
-                }
-            });
-        }
-
-        if (config.out) {
-            //Just set up the _buildPath for the module layer.
-            require(config);
-            if (!config.cssIn) {
-                config.modules[0]._buildPath = config.out;
-            }
-        } else if (!config.cssIn) {
-            //Now set up the config for require to use the build area, and calculate the
-            //build file locations. Pass along any config info too.
-            baseConfig = {
-                baseUrl: config.dirBaseUrl,
-                paths: buildPaths
-            };
-
-            lang.mixin(baseConfig, config);
-            require(baseConfig);
-
-            if (modules) {
-                modules.forEach(function (module) {
-                    if (module.name) {
-                        module._buildPath = buildContext.nameToUrl(module.name, null);
-                        if (!module.create) {
-                            file.copyFile(module._sourcePath, module._buildPath);
-                        }
-                    }
-                });
-            }
-        }
-
-        //Run CSS optimizations before doing JS module tracing, to allow
-        //things like text loader plugins loading CSS to get the optimized
-        //CSS.
-        if (config.optimizeCss && config.optimizeCss !== "none" && config.dir) {
-            buildFileContents += optimize.css(config.dir, config);
-        }
-
-        if (modules) {
-            //For each module layer, call require to calculate dependencies.
-            modules.forEach(function (module) {
-                module.layer = build.traceDependencies(module, config);
-            });
-
-            //Now build up shadow layers for anything that should be excluded.
-            //Do this after tracing dependencies for each module, in case one
-            //of those modules end up being one of the excluded values.
-            modules.forEach(function (module) {
-                if (module.exclude) {
-                    module.excludeLayers = [];
-                    module.exclude.forEach(function (exclude, i) {
-                        //See if it is already in the list of modules.
-                        //If not trace dependencies for it.
-                        module.excludeLayers[i] = build.findBuildModule(exclude, modules) ||
-                                                 {layer: build.traceDependencies({name: exclude}, config)};
-                    });
-                }
-            });
-
-            modules.forEach(function (module) {
-                if (module.exclude) {
-                    //module.exclude is an array of module names. For each one,
-                    //get the nested dependencies for it via a matching entry
-                    //in the module.excludeLayers array.
-                    module.exclude.forEach(function (excludeModule, i) {
-                        var excludeLayer = module.excludeLayers[i].layer, map = excludeLayer.buildPathMap, prop;
-                        for (prop in map) {
-                            if (map.hasOwnProperty(prop)) {
-                                build.removeModulePath(prop, map[prop], module.layer);
-                            }
-                        }
-                    });
-                }
-                if (module.excludeShallow) {
-                    //module.excludeShallow is an array of module names.
-                    //shallow exclusions are just that module itself, and not
-                    //its nested dependencies.
-                    module.excludeShallow.forEach(function (excludeShallowModule) {
-                        var path = module.layer.buildPathMap[excludeShallowModule];
-                        if (path) {
-                            build.removeModulePath(excludeShallowModule, path, module.layer);
-                        }
-                    });
-                }
-
-                //Flatten them and collect the build output for each module.
-                builtModule = build.flattenModule(module, module.layer, config);
-
-                //Save it to a temp file for now, in case there are other layers that
-                //contain optimized content that should not be included in later
-                //layer optimizations. See issue #56.
-                file.saveUtf8File(module._buildPath + '-temp', builtModule.text);
-                buildFileContents += builtModule.buildText;
-            });
-
-            //Now move the build layers to their final position.
-            modules.forEach(function (module) {
-                var finalPath = module._buildPath;
-                if (file.exists(finalPath)) {
-                    file.deleteFile(finalPath);
-                }
-                file.renameFile(finalPath + '-temp', finalPath);
-            });
-        }
-
-        //Do other optimizations.
-        if (config.out && !config.cssIn) {
-            //Just need to worry about one JS file.
-            fileName = config.modules[0]._buildPath;
-            optimize.jsFile(fileName, fileName, config);
-        } else if (!config.cssIn) {
-            //Normal optimizations across modules.
-
-            //JS optimizations.
-            fileNames = file.getFilteredFileList(config.dir, /\.js$/, true);
-            for (i = 0; (fileName = fileNames[i]); i++) {
-                //Generate the module name from the config.dir root.
-                moduleName = fileName.replace(config.dir, '');
-                //Get rid of the extension
-                moduleName = moduleName.substring(0, moduleName.length - 3);
-                optimize.jsFile(fileName, fileName, config, moduleName, pluginCollector);
-            }
-
-            //Normalize all the plugin resources.
-            context = require.s.contexts._;
-
-            for (moduleName in pluginCollector) {
-                if (pluginCollector.hasOwnProperty(moduleName)) {
-                    parentModuleMap = context.makeModuleMap(moduleName);
-                    resources = pluginCollector[moduleName];
-                    for (i = 0; (resource = resources[i]); i++) {
-                        moduleMap = context.makeModuleMap(resource, parentModuleMap);
-                        if (!context.plugins[moduleMap.prefix]) {
-                            //Set the value in context.plugins so it
-                            //will be evaluated as a full plugin.
-                            context.plugins[moduleMap.prefix] = true;
-
-                            //Do not bother if the plugin is not available.
-                            if (!file.exists(require.toUrl(moduleMap.prefix + '.js'))) {
-                                continue;
-                            }
-
-                            //Rely on the require in the build environment
-                            //to be synchronous
-                            context.require([moduleMap.prefix]);
-
-                            //Now that the plugin is loaded, redo the moduleMap
-                            //since the plugin will need to normalize part of the path.
-                            moduleMap = context.makeModuleMap(resource, parentModuleMap);
-                        }
-
-                        //Only bother with plugin resources that can be handled
-                        //processed by the plugin, via support of the writeFile
-                        //method.
-                        if (!pluginProcessed[moduleMap.fullName]) {
-                            //Only do the work if the plugin was really loaded.
-                            //Using an internal access because the file may
-                            //not really be loaded.
-                            plugin = context.defined[moduleMap.prefix];
-                            if (plugin && plugin.writeFile) {
-                                plugin.writeFile(
-                                    moduleMap.prefix,
-                                    moduleMap.name,
-                                    require,
-                                    makeWriteFile(
-                                        config.anonDefRegExp,
-                                        config.namespaceWithDot
-                                    ),
-                                    context.config
-                                );
-                            }
-
-                            pluginProcessed[moduleMap.fullName] = true;
-                        }
-                    }
-
-                }
-            }
-
-            //console.log('PLUGIN COLLECTOR: ' + JSON.stringify(pluginCollector, null, "  "));
-
-
-            //All module layers are done, write out the build.txt file.
-            file.saveUtf8File(config.dir + "build.txt", buildFileContents);
-        }
-
-        //If just have one CSS file to optimize, do that here.
-        if (config.cssIn) {
-            buildFileContents += optimize.cssFile(config.cssIn, config.out, config);
-        }
-
-        //Print out what was built into which layers.
-        if (buildFileContents) {
-            logger.info(buildFileContents);
-            return buildFileContents;
-        }
-
-        return '';
-    };
-
-    /**
-     * Converts command line args like "paths.foo=../some/path"
-     * result.paths = { foo: '../some/path' } where prop = paths,
-     * name = paths.foo and value = ../some/path, so it assumes the
-     * name=value splitting has already happened.
-     */
-    function stringDotToObj(result, prop, name, value) {
-        if (!result[prop]) {
-            result[prop] = {};
-        }
-        name = name.substring((prop + '.').length, name.length);
-        result[prop][name] = value;
-    }
-
-    //Used by convertArrayToObject to convert some things from prop.name=value
-    //to a prop: { name: value}
-    build.dotProps = [
-        'paths.',
-        'wrap.',
-        'pragmas.',
-        'pragmasOnSave.',
-        'has.',
-        'hasOnSave.',
-        'wrap.',
-        'uglify.',
-        'closure.'
-    ];
-
-    build.hasDotPropMatch = function (prop) {
-        return build.dotProps.some(function (dotProp) {
-            return prop.indexOf(dotProp) === 0;
-        });
-    };
-
-    /**
-     * Converts an array that has String members of "name=value"
-     * into an object, where the properties on the object are the names in the array.
-     * Also converts the strings "true" and "false" to booleans for the values.
-     * member name/value pairs, and converts some comma-separated lists into
-     * arrays.
-     * @param {Array} ary
-     */
-    build.convertArrayToObject = function (ary) {
-        var result = {}, i, separatorIndex, prop, value,
-            needArray = {
-                "include": true,
-                "exclude": true,
-                "excludeShallow": true
-            };
-
-        for (i = 0; i < ary.length; i++) {
-            separatorIndex = ary[i].indexOf("=");
-            if (separatorIndex === -1) {
-                throw "Malformed name/value pair: [" + ary[i] + "]. Format should be name=value";
-            }
-
-            value = ary[i].substring(separatorIndex + 1, ary[i].length);
-            if (value === "true") {
-                value = true;
-            } else if (value === "false") {
-                value = false;
-            }
-
-            prop = ary[i].substring(0, separatorIndex);
-
-            //Convert to array if necessary
-            if (needArray[prop]) {
-                value = value.split(",");
-            }
-
-            if (build.hasDotPropMatch(prop)) {
-                stringDotToObj(result, prop.split('.')[0], prop, value);
-            } else {
-                result[prop] = value;
-            }
-        }
-        return result; //Object
-    };
-
-    build.makeAbsPath = function (path, absFilePath) {
-        //Add abspath if necessary. If path starts with a slash or has a colon,
-        //then already is an abolute path.
-        if (path.indexOf('/') !== 0 && path.indexOf(':') === -1) {
-            path = absFilePath +
-                   (absFilePath.charAt(absFilePath.length - 1) === '/' ? '' : '/') +
-                   path;
-            path = file.normalize(path);
-        }
-        return path.replace(lang.backSlashRegExp, '/');
-    };
-
-    build.makeAbsObject = function (props, obj, absFilePath) {
-        var i, prop;
-        if (obj) {
-            for (i = 0; (prop = props[i]); i++) {
-                if (obj.hasOwnProperty(prop)) {
-                    obj[prop] = build.makeAbsPath(obj[prop], absFilePath);
-                }
-            }
-        }
-    };
-
-    /**
-     * For any path in a possible config, make it absolute relative
-     * to the absFilePath passed in.
-     */
-    build.makeAbsConfig = function (config, absFilePath) {
-        var props, prop, i;
-
-        props = ["appDir", "dir", "baseUrl"];
-        for (i = 0; (prop = props[i]); i++) {
-            if (config[prop]) {
-                //Add abspath if necessary, make sure these paths end in
-                //slashes
-                if (prop === "baseUrl") {
-                    config.originalBaseUrl = config.baseUrl;
-                    if (config.appDir) {
-                        //If baseUrl with an appDir, the baseUrl is relative to
-                        //the appDir, *not* the absFilePath. appDir and dir are
-                        //made absolute before baseUrl, so this will work.
-                        config.baseUrl = build.makeAbsPath(config.originalBaseUrl, config.appDir);
-                    } else {
-                        //The dir output baseUrl is same as regular baseUrl, both
-                        //relative to the absFilePath.
-                        config.baseUrl = build.makeAbsPath(config[prop], absFilePath);
-                    }
-                } else {
-                    config[prop] = build.makeAbsPath(config[prop], absFilePath);
-                }
-
-                config[prop] = endsWithSlash(config[prop]);
-            }
-        }
-
-        //Do not allow URLs for paths resources.
-        if (config.paths) {
-            for (prop in config.paths) {
-                if (config.paths.hasOwnProperty(prop)) {
-                    config.paths[prop] = build.makeAbsPath(config.paths[prop],
-                                              (config.baseUrl || absFilePath));
-                }
-            }
-        }
-
-        build.makeAbsObject(["out", "cssIn"], config, absFilePath);
-        build.makeAbsObject(["startFile", "endFile"], config.wrap, absFilePath);
-    };
-
-    build.nestedMix = {
-        paths: true,
-        has: true,
-        hasOnSave: true,
-        pragmas: true,
-        pragmasOnSave: true
-    };
-
-    /**
-     * Mixes additional source config into target config, and merges some
-     * nested config, like paths, correctly.
-     */
-    function mixConfig(target, source) {
-        var prop, value;
-
-        for (prop in source) {
-            if (source.hasOwnProperty(prop)) {
-                //If the value of the property is a plain object, then
-                //allow a one-level-deep mixing of it.
-                value = source[prop];
-                if (typeof value === 'object' && value &&
-                    !lang.isArray(value) && !lang.isFunction(value) &&
-                    !lang.isRegExp(value)) {
-                    target[prop] = lang.mixin({}, target[prop], value, true);
-                } else {
-                    target[prop] = value;
-                }
-            }
-        }
-    }
-
-    /**
-     * Creates a config object for an optimization build.
-     * It will also read the build profile if it is available, to create
-     * the configuration.
-     *
-     * @param {Object} cfg config options that take priority
-     * over defaults and ones in the build file. These options could
-     * be from a command line, for instance.
-     *
-     * @param {Object} the created config object.
-     */
-    build.createConfig = function (cfg) {
-        /*jslint evil: true */
-        var config = {}, buildFileContents, buildFileConfig, mainConfig,
-            mainConfigFile, prop, buildFile, absFilePath;
-
-        //Make sure all paths are relative to current directory.
-        absFilePath = file.absPath('.');
-        build.makeAbsConfig(cfg, absFilePath);
-        build.makeAbsConfig(buildBaseConfig, absFilePath);
-
-        lang.mixin(config, buildBaseConfig);
-        lang.mixin(config, cfg, true);
-
-        if (config.buildFile) {
-            //A build file exists, load it to get more config.
-            buildFile = file.absPath(config.buildFile);
-
-            //Find the build file, and make sure it exists, if this is a build
-            //that has a build profile, and not just command line args with an in=path
-            if (!file.exists(buildFile)) {
-                throw new Error("ERROR: build file does not exist: " + buildFile);
-            }
-
-            absFilePath = config.baseUrl = file.absPath(file.parent(buildFile));
-
-            //Load build file options.
-            buildFileContents = file.readFile(buildFile);
-            try {
-                buildFileConfig = eval("(" + buildFileContents + ")");
-                build.makeAbsConfig(buildFileConfig, absFilePath);
-
-                if (!buildFileConfig.out && !buildFileConfig.dir) {
-                    buildFileConfig.dir = (buildFileConfig.baseUrl || config.baseUrl) + "/build/";
-                }
-
-            } catch (e) {
-                throw new Error("Build file " + buildFile + " is malformed: " + e);
-            }
-        }
-
-        mainConfigFile = config.mainConfigFile || (buildFileConfig && buildFileConfig.mainConfigFile);
-        if (mainConfigFile) {
-            mainConfigFile = build.makeAbsPath(mainConfigFile, absFilePath);
-            try {
-                mainConfig = parse.findConfig(mainConfigFile, file.readFile(mainConfigFile));
-            } catch (configError) {
-                throw new Error('The config in mainConfigFile ' +
-                        mainConfigFile +
-                        ' cannot be used because it cannot be evaluated' +
-                        ' correctly while running in the optimizer. Try only' +
-                        ' using a config that is also valid JSON, or do not use' +
-                        ' mainConfigFile and instead copy the config values needed' +
-                        ' into a build file or command line arguments given to the optimizer.');
-            }
-            if (mainConfig) {
-                //If no baseUrl, then use the directory holding the main config.
-                if (!mainConfig.baseUrl) {
-                    mainConfig.baseUrl = mainConfigFile.substring(0, mainConfigFile.lastIndexOf('/'));
-                }
-                build.makeAbsConfig(mainConfig, mainConfigFile);
-                mixConfig(config, mainConfig);
-            }
-        }
-
-        //Mix in build file config, but only after mainConfig has been mixed in.
-        if (buildFileConfig) {
-            mixConfig(config, buildFileConfig);
-        }
-
-        //Re-apply the override config values. Command line
-        //args should take precedence over build file values.
-        mixConfig(config, cfg);
-
-
-        //Set final output dir
-        if (config.hasOwnProperty("baseUrl")) {
-            if (config.appDir) {
-                config.dirBaseUrl = build.makeAbsPath(config.originalBaseUrl, config.dir);
-            } else {
-                config.dirBaseUrl = config.dir || config.baseUrl;
-            }
-            //Make sure dirBaseUrl ends in a slash, since it is
-            //concatenated with other strings.
-            config.dirBaseUrl = endsWithSlash(config.dirBaseUrl);
-        }
-
-        //Check for errors in config
-        if (config.cssIn && !config.out) {
-            throw new Error("ERROR: 'out' option missing.");
-        }
-        if (!config.cssIn && !config.baseUrl) {
-            throw new Error("ERROR: 'baseUrl' option missing.");
-        }
-        if (!config.out && !config.dir) {
-            throw new Error('Missing either an "out" or "dir" config value. ' +
-                            'If using "appDir" for a full project optimization, ' +
-                            'use "dir". If you want to optimize to one file, ' +
-                            'use "out".');
-        }
-        if (config.appDir && config.out) {
-            throw new Error('"appDir" is not compatible with "out". Use "dir" ' +
-                            'instead. appDir is used to copy whole projects, ' +
-                            'where "out" is used to just optimize to one file.');
-        }
-        if (config.out && config.dir) {
-            throw new Error('The "out" and "dir" options are incompatible.' +
-                            ' Use "out" if you are targeting a single file for' +
-                            ' for optimization, and "dir" if you want the appDir' +
-                            ' or baseUrl directories optimized.');
-        }
-
-        if ((config.name || config.include) && !config.modules) {
-            //Just need to build one file, but may be part of a whole appDir/
-            //baseUrl copy, but specified on the command line, so cannot do
-            //the modules array setup. So create a modules section in that
-            //case.
-            config.modules = [
-                {
-                    name: config.name,
-                    out: config.out,
-                    include: config.include,
-                    exclude: config.exclude,
-                    excludeShallow: config.excludeShallow
-                }
-            ];
-        }
-
-        if (config.out && !config.cssIn) {
-            //Just one file to optimize.
-
-            //Does not have a build file, so set up some defaults.
-            //Optimizing CSS should not be allowed, unless explicitly
-            //asked for on command line. In that case the only task is
-            //to optimize a CSS file.
-            if (!cfg.optimizeCss) {
-                config.optimizeCss = "none";
-            }
-        }
-
-        //Do not allow URLs for paths resources.
-        if (config.paths) {
-            for (prop in config.paths) {
-                if (config.paths.hasOwnProperty(prop)) {
-                    disallowUrls(config.paths[prop]);
-                }
-            }
-        }
-
-        //Get any wrap text.
-        try {
-            if (config.wrap) {
-                if (config.wrap === true) {
-                    //Use default values.
-                    config.wrap = {
-                        start: '(function () {',
-                        end: '}());'
-                    };
-                } else {
-                    config.wrap.start = config.wrap.start ||
-                            file.readFile(build.makeAbsPath(config.wrap.startFile, absFilePath));
-                    config.wrap.end = config.wrap.end ||
-                            file.readFile(build.makeAbsPath(config.wrap.endFile, absFilePath));
-                }
-            }
-        } catch (wrapError) {
-            throw new Error('Malformed wrap config: need both start/end or ' +
-                            'startFile/endFile: ' + wrapError.toString());
-        }
-
-
-        //Set up proper info for namespaces and using namespaces in transport
-        //wrappings.
-        config.namespaceWithDot = config.namespace ? config.namespace + '.' : '';
-        config.anonDefRegExp = build.makeAnonDefRegExp(config.namespaceWithDot);
-
-        //Do final input verification
-        if (config.context) {
-            throw new Error('The build argument "context" is not supported' +
-                            ' in a build. It should only be used in web' +
-                            ' pages.');
-        }
-
-        //Set file.fileExclusionRegExp if desired
-        if ('fileExclusionRegExp' in config) {
-            if (typeof config.fileExclusionRegExp === "string") {
-                file.exclusionRegExp = new RegExp(config.fileExclusionRegExp);
-            } else {
-                file.exclusionRegExp = config.fileExclusionRegExp;
-            }
-        } else if ('dirExclusionRegExp' in config) {
-            //Set file.dirExclusionRegExp if desired, this is the old
-            //name for fileExclusionRegExp before 1.0.2. Support for backwards
-            //compatibility
-            file.exclusionRegExp = config.dirExclusionRegExp;
-        }
-
-        return config;
-    };
-
-    /**
-     * finds the module being built/optimized with the given moduleName,
-     * or returns null.
-     * @param {String} moduleName
-     * @param {Array} modules
-     * @returns {Object} the module object from the build profile, or null.
-     */
-    build.findBuildModule = function (moduleName, modules) {
-        var i, module;
-        for (i = 0; (module = modules[i]); i++) {
-            if (module.name === moduleName) {
-                return module;
-            }
-        }
-        return null;
-    };
-
-    /**
-     * Removes a module name and path from a layer, if it is supposed to be
-     * excluded from the layer.
-     * @param {String} moduleName the name of the module
-     * @param {String} path the file path for the module
-     * @param {Object} layer the layer to remove the module/path from
-     */
-    build.removeModulePath = function (module, path, layer) {
-        var index = layer.buildFilePaths.indexOf(path);
-        if (index !== -1) {
-            layer.buildFilePaths.splice(index, 1);
-        }
-
-        //Take it out of the specified modules. Specified modules are mostly
-        //used to find require modifiers.
-        delete layer.specified[module];
-    };
-
-    /**
-     * Uses the module build config object to trace the dependencies for the
-     * given module.
-     *
-     * @param {Object} module the module object from the build config info.
-     * @param {Object} the build config object.
-     *
-     * @returns {Object} layer information about what paths and modules should
-     * be in the flattened module.
-     */
-    build.traceDependencies = function (module, config) {
-        var include, override, layer, context, baseConfig, oldContext;
-
-        //Reset some state set up in requirePatch.js, and clean up require's
-        //current context.
-        oldContext = require._buildReset();
-
-        //Grab the reset layer and context after the reset, but keep the
-        //old config to reuse in the new context.
-        baseConfig = oldContext.config;
-        layer = require._layer;
-        context = layer.context;
-
-        //Put back basic config, use a fresh object for it.
-        //WARNING: probably not robust for paths and packages/packagePaths,
-        //since those property's objects can be modified. But for basic
-        //config clone it works out.
-        require(lang.delegate(baseConfig));
-
-        logger.trace("\nTracing dependencies for: " + (module.name || module.out));
-        include = module.name && !module.create ? [module.name] : [];
-        if (module.include) {
-            include = include.concat(module.include);
-        }
-
-        //If there are overrides to basic config, set that up now.;
-        if (module.override) {
-            override = lang.delegate(baseConfig);
-            lang.mixin(override, module.override, true);
-            require(override);
-        }
-
-        //Figure out module layer dependencies by calling require to do the work.
-        require(include);
-
-        //Pull out the layer dependencies.
-        layer.specified = context.specified;
-
-        //Reset config
-        if (module.override) {
-            require(baseConfig);
-        }
-
-        return layer;
-    };
-
-    /**
-     * Uses the module build config object to create an flattened version
-     * of the module, with deep dependencies included.
-     *
-     * @param {Object} module the module object from the build config info.
-     *
-     * @param {Object} layer the layer object returned from build.traceDependencies.
-     *
-     * @param {Object} the build config object.
-     *
-     * @returns {Object} with two properties: "text", the text of the flattened
-     * module, and "buildText", a string of text representing which files were
-     * included in the flattened module text.
-     */
-    build.flattenModule = function (module, layer, config) {
-        var buildFileContents = "",
-            namespace = config.namespace ? config.namespace + '.' : '',
-            context = layer.context,
-            anonDefRegExp = config.anonDefRegExp,
-            path, reqIndex, fileContents, currContents,
-            i, moduleName,
-            parts, builder, writeApi;
-
-        //Use override settings, particularly for pragmas
-        if (module.override) {
-            config = lang.delegate(config);
-            lang.mixin(config, module.override, true);
-        }
-
-        //Start build output for the module.
-        buildFileContents += "\n" +
-                             (config.dir ? module._buildPath.replace(config.dir, "") : module._buildPath) +
-                             "\n----------------\n";
-
-        //If there was an existing file with require in it, hoist to the top.
-        if (layer.existingRequireUrl) {
-            reqIndex = layer.buildFilePaths.indexOf(layer.existingRequireUrl);
-            if (reqIndex !== -1) {
-                layer.buildFilePaths.splice(reqIndex, 1);
-                layer.buildFilePaths.unshift(layer.existingRequireUrl);
-            }
-        }
-
-        //Write the built module to disk, and build up the build output.
-        fileContents = "";
-        for (i = 0; (path = layer.buildFilePaths[i]); i++) {
-            moduleName = layer.buildFileToModule[path];
-
-            //Figure out if the module is a result of a build plugin, and if so,
-            //then delegate to that plugin.
-            parts = context.makeModuleMap(moduleName);
-            builder = parts.prefix && context.defined[parts.prefix];
-            if (builder) {
-                if (builder.write) {
-                    writeApi = function (input) {
-                        fileContents += "\n" + addSemiColon(input);
-                        if (config.onBuildWrite) {
-                            fileContents = config.onBuildWrite(moduleName, path, fileContents);
-                        }
-                    };
-                    writeApi.asModule = function (moduleName, input) {
-                        fileContents += "\n" +
-                                        addSemiColon(
-                                            build.toTransport(anonDefRegExp, namespace, moduleName, path, input, layer));
-                        if (config.onBuildWrite) {
-                            fileContents = config.onBuildWrite(moduleName, path, fileContents);
-                        }
-                    };
-                    builder.write(parts.prefix, parts.name, writeApi);
-                }
-            } else {
-                currContents = file.readFile(path);
-
-                if (config.onBuildRead) {
-                    currContents = config.onBuildRead(moduleName, path, currContents);
-                }
-
-                if (config.namespace) {
-                    currContents = pragma.namespace(currContents, config.namespace);
-                }
-
-                currContents = build.toTransport(anonDefRegExp, namespace, moduleName, path, currContents, layer);
-
-                if (config.onBuildWrite) {
-                    currContents = config.onBuildWrite(moduleName, path, currContents);
-                }
-
-                //Semicolon is for files that are not well formed when
-                //concatenated with other content.
-                fileContents += "\n" + addSemiColon(currContents);
-            }
-
-            buildFileContents += path.replace(config.dir, "") + "\n";
-            //Some files may not have declared a require module, and if so,
-            //put in a placeholder call so the require does not try to load them
-            //after the module is processed.
-            //If we have a name, but no defined module, then add in the placeholder.
-            if (moduleName && !layer.modulesWithNames[moduleName] && !config.skipModuleInsertion) {
-                //If including jquery, register the module correctly, otherwise
-                //register an empty function. For jquery, make sure jQuery is
-                //a real object, and perhaps not some other file mapping, like
-                //to zepto.
-                if (moduleName === 'jquery') {
-                    fileContents += '\n(function () {\n' +
-                                   'var jq = typeof jQuery !== "undefined" && jQuery;\n' +
-                                   namespace +
-                                   'define("jquery", [], function () { return jq; });\n' +
-                                   '}());\n';
-                } else {
-                    fileContents += '\n' + namespace + 'define("' + moduleName + '", function(){});\n';
-                }
-            }
-        }
-
-        return {
-            text: config.wrap ?
-                    config.wrap.start + fileContents + config.wrap.end :
-                    fileContents,
-            buildText: buildFileContents
-        };
-    };
-
-    /**
-     * Creates the regexp to find anonymous defines.
-     * @param {String} namespace an optional namespace to use. The namespace
-     * should *include* a trailing dot. So a valid value would be 'foo.'
-     * @returns {RegExp}
-     */
-    build.makeAnonDefRegExp = function (namespace) {
-        //This regexp is not bullet-proof, and it has one optional part to
-        //avoid issues with some Dojo transition modules that use a
-        //define(\n//begin v1.x content
-        //for a comment.
-        return new RegExp('(^|[^\\.])(' + (namespace || '').replace(/\./g, '\\.') +
-                          'define|define)\\s*\\(\\s*(\\/\\/[^\\n\\r]*[\\r\\n])?(\\[|function|[\\w\\d_\\-\\$]+\\s*\\)|\\{|["\']([^"\']+)["\'])(\\s*,\\s*f)?');
-    };
-
-    build.leadingCommaRegExp = /^\s*,/;
-
-    build.toTransport = function (anonDefRegExp, namespace, moduleName, path, contents, layer) {
-
-        //If anonymous module, insert the module name.
-        return contents.replace(anonDefRegExp, function (match, start, callName, possibleComment, suffix, namedModule, namedFuncStart) {
-            //A named module with either listed dependencies or an object
-            //literal for a value. Skip it. If named module, only want ones
-            //whose next argument is a function literal to scan for
-            //require('') dependecies.
-            if (namedModule && !namedFuncStart) {
-                return match;
-            }
-
-            //Only mark this module as having a name if not a named module,
-            //or if a named module and the name matches expectations.
-            if (layer && (!namedModule || namedModule === moduleName)) {
-                layer.modulesWithNames[moduleName] = true;
-            }
-
-            var deps = null;
-
-            //Look for CommonJS require calls inside the function if this is
-            //an anonymous define call that just has a function registered.
-            //Also look if a named define function but has a factory function
-            //as the second arg that should be scanned for dependencies.
-            if (suffix.indexOf('f') !== -1 || (namedModule)) {
-                deps = parse.getAnonDeps(path, contents);
-
-                if (deps.length) {
-                    deps = deps.map(function (dep) {
-                        return "'" + dep + "'";
-                    });
-                } else {
-                    deps = [];
-                }
-            }
-
-            return start + namespace + "define('" + (namedModule || moduleName) + "'," +
-                   (deps ? ('[' + deps.toString() + '],') : '') +
-                   (namedModule ? namedFuncStart.replace(build.leadingCommaRegExp, '') : suffix);
-        });
-
-    };
-
-    return build;
-});
-
-    }
-
-
-    /**
-     * Sets the default baseUrl for requirejs to be directory of top level
-     * script.
-     */
-    function setBaseUrl(fileName) {
-        //Use the file name's directory as the baseUrl if available.
-        dir = fileName.replace(/\\/g, '/');
-        if (dir.indexOf('/') !== -1) {
-            dir = dir.split('/');
-            dir.pop();
-            dir = dir.join('/');
-            exec("require({baseUrl: '" + dir + "'});");
-        }
-    }
-
-    //If in Node, and included via a require('requirejs'), just export and
-    //THROW IT ON THE GROUND!
-    if (env === 'node' && reqMain !== module) {
-        setBaseUrl(path.resolve(reqMain ? reqMain.filename : '.'));
-
-        //Create a method that will run the optimzer given an object
-        //config.
-        requirejs.optimize = function (config, callback) {
-            if (!loadedOptimizedLib) {
-                loadLib();
-                loadedOptimizedLib = true;
-            }
-
-            //Create the function that will be called once build modules
-            //have been loaded.
-            var runBuild = function (build, logger) {
-                //Make sure config has a log level, and if not,
-                //make it "silent" by default.
-                config.logLevel = config.hasOwnProperty('logLevel') ?
-                                  config.logLevel : logger.SILENT;
-
-                var result = build(config);
-
-                //Reset build internals on each run.
-                requirejs._buildReset();
-
-                if (callback) {
-                    callback(result);
-                }
-            };
-
-            //Enable execution of this callback in a build setting.
-            //Normally, once requirePatch is run, by default it will
-            //not execute callbacks, unless this property is set on
-            //the callback.
-            runBuild.__requireJsBuild = true;
-
-            requirejs({
-                context: 'build'
-            }, ['build', 'logger'], runBuild);
-        };
-
-        requirejs.tools = {
-            useLib: function (contextName, callback) {
-                if (!callback) {
-                    callback = contextName;
-                    contextName = 'uselib';
-                }
-
-                if (!useLibLoaded[contextName]) {
-                    loadLib();
-                    useLibLoaded[contextName] = true;
-                }
-
-                var req = requirejs({
-                    context: contextName,
-                    requireLoad: requirejsVars.nodeLoad,
-                    requireExecCb: requirejsVars.nodeRequireExecCb
-                });
-
-                req(['build'], function () {
-                    callback(req);
-                });
-            }
-        };
-
-        requirejs.define = define;
-
-        module.exports = requirejs;
-        return;
-    }
-
-    if (commandOption === 'o') {
-        //Do the optimizer work.
-        loadLib();
-
-        /**
- * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*
- * Create a build.js file that has the build options you want and pass that
- * build file to this file to do the build. See example.build.js for more information.
- */
-
-/*jslint strict: false, nomen: false */
-/*global require: false */
-
-require({
-    baseUrl: require.s.contexts._.config.baseUrl,
-    //Use a separate context than the default context so that the
-    //build can use the default context.
-    context: 'build',
-    catchError: {
-        define: true
-    }
-},       ['env!env/args', 'build'],
-function (args,            build) {
-    build(args);
-});
-
-
-    } else if (commandOption === 'v') {
-        console.log('r.js: ' + version + ', RequireJS: ' + this.requirejsVars.require.version);
-    } else if (commandOption === 'convert') {
-        loadLib();
-
-        this.requirejsVars.require(['env!env/args', 'commonJs', 'env!env/print'],
-        function (args,           commonJs,   print) {
-
-            var srcDir, outDir;
-            srcDir = args[0];
-            outDir = args[1];
-
-            if (!srcDir || !outDir) {
-                print('Usage: path/to/commonjs/modules output/dir');
-                return;
-            }
-
-            commonJs.convertDir(args[0], args[1]);
-        });
-    } else {
-        //Just run an app
-
-        //Load the bundled libraries for use in the app.
-        if (commandOption === 'lib') {
-            loadLib();
-        }
-
-        setBaseUrl(fileName);
-
-        if (exists(fileName)) {
-            exec(readFile(fileName), fileName);
-        } else {
-            showHelp();
-        }
-    }
-
-}((typeof console !== 'undefined' ? console : undefined),
-  (typeof Packages !== 'undefined' ? Array.prototype.slice.call(arguments, 0) : []),
-  (typeof readFile !== 'undefined' ? readFile : undefined)));
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/external/requirejs/depend.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/external/requirejs/depend.js
deleted file mode 100644 (file)
index 8de7760..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-/** @license
- * Plugin to load JS files that have dependencies but aren't wrapped into
- * `define` calls.
- * Author: Miller Medeiros
- * Version: 0.1.0 (2011/12/13)
- * Released under the MIT license
- */
-define(function () {
-
-    var rParts = /^(.*)\[([^\]]*)\]$/;
-
-    return {
-
-        //example: depend!bar[jquery,lib/foo]
-        load : function(name, req, onLoad, config){
-            var parts = rParts.exec(name);
-
-            req(parts[2].split(','), function(){
-                req([parts[1]], function(mod){
-                    onLoad(mod);
-                });
-            });
-        }
-
-    };
-
-});
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/external/requirejs/order.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/external/requirejs/order.js
deleted file mode 100644 (file)
index 574286c..0000000
+++ /dev/null
@@ -1,180 +0,0 @@
-/**
- * @license RequireJS order 1.0.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-/*jslint nomen: false, plusplus: false, strict: false */
-/*global require: false, define: false, window: false, document: false,
-  setTimeout: false */
-
-//Specify that requirejs optimizer should wrap this code in a closure that
-//maps the namespaced requirejs API to non-namespaced local variables.
-/*requirejs namespace: true */
-
-(function () {
-
-    //Sadly necessary browser inference due to differences in the way
-    //that browsers load and execute dynamically inserted javascript
-    //and whether the script/cache method works when ordered execution is
-    //desired. Currently, Gecko and Opera do not load/fire onload for scripts with
-    //type="script/cache" but they execute injected scripts in order
-    //unless the 'async' flag is present.
-    //However, this is all changing in latest browsers implementing HTML5
-    //spec. With compliant browsers .async true by default, and
-    //if false, then it will execute in order. Favor that test first for forward
-    //compatibility.
-    var testScript = typeof document !== "undefined" &&
-                 typeof window !== "undefined" &&
-                 document.createElement("script"),
-
-        supportsInOrderExecution = testScript && (testScript.async ||
-                               ((window.opera &&
-                                 Object.prototype.toString.call(window.opera) === "[object Opera]") ||
-                               //If Firefox 2 does not have to be supported, then
-                               //a better check may be:
-                               //('mozIsLocallyAvailable' in window.navigator)
-                               ("MozAppearance" in document.documentElement.style))),
-
-        //This test is true for IE browsers, which will load scripts but only
-        //execute them once the script is added to the DOM.
-        supportsLoadSeparateFromExecute = testScript &&
-                                          testScript.readyState === 'uninitialized',
-
-        readyRegExp = /^(complete|loaded)$/,
-        cacheWaiting = [],
-        cached = {},
-        scriptNodes = {},
-        scriptWaiting = [];
-
-    //Done with the test script.
-    testScript = null;
-
-    //Callback used by the type="script/cache" callback that indicates a script
-    //has finished downloading.
-    function scriptCacheCallback(evt) {
-        var node = evt.currentTarget || evt.srcElement, i,
-            moduleName, resource;
-
-        if (evt.type === "load" || readyRegExp.test(node.readyState)) {
-            //Pull out the name of the module and the context.
-            moduleName = node.getAttribute("data-requiremodule");
-
-            //Mark this cache request as loaded
-            cached[moduleName] = true;
-
-            //Find out how many ordered modules have loaded
-            for (i = 0; (resource = cacheWaiting[i]); i++) {
-                if (cached[resource.name]) {
-                    resource.req([resource.name], resource.onLoad);
-                } else {
-                    //Something in the ordered list is not loaded,
-                    //so wait.
-                    break;
-                }
-            }
-
-            //If just loaded some items, remove them from cacheWaiting.
-            if (i > 0) {
-                cacheWaiting.splice(0, i);
-            }
-
-            //Remove this script tag from the DOM
-            //Use a setTimeout for cleanup because some older IE versions vomit
-            //if removing a script node while it is being evaluated.
-            setTimeout(function () {
-                node.parentNode.removeChild(node);
-            }, 15);
-        }
-    }
-
-    /**
-     * Used for the IE case, where fetching is done by creating script element
-     * but not attaching it to the DOM. This function will be called when that
-     * happens so it can be determined when the node can be attached to the
-     * DOM to trigger its execution.
-     */
-    function onFetchOnly(node) {
-        var i, loadedNode, resourceName;
-
-        //Mark this script as loaded.
-        node.setAttribute('data-orderloaded', 'loaded');
-
-        //Cycle through waiting scripts. If the matching node for them
-        //is loaded, and is in the right order, add it to the DOM
-        //to execute the script.
-        for (i = 0; (resourceName = scriptWaiting[i]); i++) {
-            loadedNode = scriptNodes[resourceName];
-            if (loadedNode &&
-                loadedNode.getAttribute('data-orderloaded') === 'loaded') {
-                delete scriptNodes[resourceName];
-                require.addScriptToDom(loadedNode);
-            } else {
-                break;
-            }
-        }
-
-        //If just loaded some items, remove them from waiting.
-        if (i > 0) {
-            scriptWaiting.splice(0, i);
-        }
-    }
-
-    define({
-        version: '1.0.0',
-
-        load: function (name, req, onLoad, config) {
-            var url = req.nameToUrl(name, null),
-                node, context;
-
-            //Make sure the async attribute is not set for any pathway involving
-            //this script.
-            require.s.skipAsync[url] = true;
-            if (supportsInOrderExecution || config.isBuild) {
-                //Just a normal script tag append, but without async attribute
-                //on the script.
-                req([name], onLoad);
-            } else if (supportsLoadSeparateFromExecute) {
-                //Just fetch the URL, but do not execute it yet. The
-                //non-standards IE case. Really not so nice because it is
-                //assuming and touching requrejs internals. OK though since
-                //ordered execution should go away after a long while.
-                context = require.s.contexts._;
-
-                if (!context.urlFetched[url] && !context.loaded[name]) {
-                    //Indicate the script is being fetched.
-                    context.urlFetched[url] = true;
-
-                    //Stuff from require.load
-                    require.resourcesReady(false);
-                    context.scriptCount += 1;
-
-                    //Fetch the script now, remember it.
-                    node = require.attach(url, context, name, null, null, onFetchOnly);
-                    scriptNodes[name] = node;
-                    scriptWaiting.push(name);
-                }
-
-                //Do a normal require for it, once it loads, use it as return
-                //value.
-                req([name], onLoad);
-            } else {
-                //Credit to LABjs author Kyle Simpson for finding that scripts
-                //with type="script/cache" allow scripts to be downloaded into
-                //browser cache but not executed. Use that
-                //so that subsequent addition of a real type="text/javascript"
-                //tag will cause the scripts to be executed immediately in the
-                //correct order.
-                if (req.specified(name)) {
-                    req([name], onLoad);
-                } else {
-                    cacheWaiting.push({
-                        name: name,
-                        req: req,
-                        onLoad: onLoad
-                    });
-                    require.attach(url, null, name, scriptCacheCallback, "script/cache");
-                }
-            }
-        }
-    });
-}());
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/external/requirejs/require.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/external/requirejs/require.js
deleted file mode 100644 (file)
index 4d0d055..0000000
+++ /dev/null
@@ -1,2053 +0,0 @@
-/** vim: et:ts=4:sw=4:sts=4
- * @license RequireJS 1.0.6 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-/*jslint strict: false, plusplus: false, sub: true */
-/*global window, navigator, document, importScripts, jQuery, setTimeout, opera */
-
-var requirejs, require, define;
-(function () {
-    //Change this version number for each release.
-    var version = "1.0.6",
-        commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
-        cjsRequireRegExp = /require\(\s*["']([^'"\s]+)["']\s*\)/g,
-        currDirRegExp = /^\.\//,
-        jsSuffixRegExp = /\.js$/,
-        ostring = Object.prototype.toString,
-        ap = Array.prototype,
-        aps = ap.slice,
-        apsp = ap.splice,
-        isBrowser = !!(typeof window !== "undefined" && navigator && document),
-        isWebWorker = !isBrowser && typeof importScripts !== "undefined",
-        //PS3 indicates loaded and complete, but need to wait for complete
-        //specifically. Sequence is "loading", "loaded", execution,
-        // then "complete". The UA check is unfortunate, but not sure how
-        //to feature test w/o causing perf issues.
-        readyRegExp = isBrowser && navigator.platform === 'PLAYSTATION 3' ?
-                      /^complete$/ : /^(complete|loaded)$/,
-        defContextName = "_",
-        //Oh the tragedy, detecting opera. See the usage of isOpera for reason.
-        isOpera = typeof opera !== "undefined" && opera.toString() === "[object Opera]",
-        empty = {},
-        contexts = {},
-        globalDefQueue = [],
-        interactiveScript = null,
-        checkLoadedDepth = 0,
-        useInteractive = false,
-        reservedDependencies = {
-            require: true,
-            module: true,
-            exports: true
-        },
-        req, cfg = {}, currentlyAddingScript, s, head, baseElement, scripts, script,
-        src, subPath, mainScript, dataMain, globalI, ctx, jQueryCheck, checkLoadedTimeoutId;
-
-    function isFunction(it) {
-        return ostring.call(it) === "[object Function]";
-    }
-
-    function isArray(it) {
-        return ostring.call(it) === "[object Array]";
-    }
-
-    /**
-     * Simple function to mix in properties from source into target,
-     * but only if target does not already have a property of the same name.
-     * This is not robust in IE for transferring methods that match
-     * Object.prototype names, but the uses of mixin here seem unlikely to
-     * trigger a problem related to that.
-     */
-    function mixin(target, source, force) {
-        for (var prop in source) {
-            if (!(prop in empty) && (!(prop in target) || force)) {
-                target[prop] = source[prop];
-            }
-        }
-        return req;
-    }
-
-    /**
-     * Constructs an error with a pointer to an URL with more information.
-     * @param {String} id the error ID that maps to an ID on a web page.
-     * @param {String} message human readable error.
-     * @param {Error} [err] the original error, if there is one.
-     *
-     * @returns {Error}
-     */
-    function makeError(id, msg, err) {
-        var e = new Error(msg + '\nhttp://requirejs.org/docs/errors.html#' + id);
-        if (err) {
-            e.originalError = err;
-        }
-        return e;
-    }
-
-    /**
-     * Used to set up package paths from a packagePaths or packages config object.
-     * @param {Object} pkgs the object to store the new package config
-     * @param {Array} currentPackages an array of packages to configure
-     * @param {String} [dir] a prefix dir to use.
-     */
-    function configurePackageDir(pkgs, currentPackages, dir) {
-        var i, location, pkgObj;
-
-        for (i = 0; (pkgObj = currentPackages[i]); i++) {
-            pkgObj = typeof pkgObj === "string" ? { name: pkgObj } : pkgObj;
-            location = pkgObj.location;
-
-            //Add dir to the path, but avoid paths that start with a slash
-            //or have a colon (indicates a protocol)
-            if (dir && (!location || (location.indexOf("/") !== 0 && location.indexOf(":") === -1))) {
-                location = dir + "/" + (location || pkgObj.name);
-            }
-
-            //Create a brand new object on pkgs, since currentPackages can
-            //be passed in again, and config.pkgs is the internal transformed
-            //state for all package configs.
-            pkgs[pkgObj.name] = {
-                name: pkgObj.name,
-                location: location || pkgObj.name,
-                //Remove leading dot in main, so main paths are normalized,
-                //and remove any trailing .js, since different package
-                //envs have different conventions: some use a module name,
-                //some use a file name.
-                main: (pkgObj.main || "main")
-                      .replace(currDirRegExp, '')
-                      .replace(jsSuffixRegExp, '')
-            };
-        }
-    }
-
-    /**
-     * jQuery 1.4.3-1.5.x use a readyWait/ready() pairing to hold DOM
-     * ready callbacks, but jQuery 1.6 supports a holdReady() API instead.
-     * At some point remove the readyWait/ready() support and just stick
-     * with using holdReady.
-     */
-    function jQueryHoldReady($, shouldHold) {
-        if ($.holdReady) {
-            $.holdReady(shouldHold);
-        } else if (shouldHold) {
-            $.readyWait += 1;
-        } else {
-            $.ready(true);
-        }
-    }
-
-    if (typeof define !== "undefined") {
-        //If a define is already in play via another AMD loader,
-        //do not overwrite.
-        return;
-    }
-
-    if (typeof requirejs !== "undefined") {
-        if (isFunction(requirejs)) {
-            //Do not overwrite and existing requirejs instance.
-            return;
-        } else {
-            cfg = requirejs;
-            requirejs = undefined;
-        }
-    }
-
-    //Allow for a require config object
-    if (typeof require !== "undefined" && !isFunction(require)) {
-        //assume it is a config object.
-        cfg = require;
-        require = undefined;
-    }
-
-    /**
-     * Creates a new context for use in require and define calls.
-     * Handle most of the heavy lifting. Do not want to use an object
-     * with prototype here to avoid using "this" in require, in case it
-     * needs to be used in more super secure envs that do not want this.
-     * Also there should not be that many contexts in the page. Usually just
-     * one for the default context, but could be extra for multiversion cases
-     * or if a package needs a special context for a dependency that conflicts
-     * with the standard context.
-     */
-    function newContext(contextName) {
-        var context, resume,
-            config = {
-                waitSeconds: 7,
-                baseUrl: "./",
-                paths: {},
-                pkgs: {},
-                catchError: {}
-            },
-            defQueue = [],
-            specified = {
-                "require": true,
-                "exports": true,
-                "module": true
-            },
-            urlMap = {},
-            defined = {},
-            loaded = {},
-            waiting = {},
-            waitAry = [],
-            urlFetched = {},
-            managerCounter = 0,
-            managerCallbacks = {},
-            plugins = {},
-            //Used to indicate which modules in a build scenario
-            //need to be full executed.
-            needFullExec = {},
-            fullExec = {},
-            resumeDepth = 0;
-
-        /**
-         * Trims the . and .. from an array of path segments.
-         * It will keep a leading path segment if a .. will become
-         * the first path segment, to help with module name lookups,
-         * which act like paths, but can be remapped. But the end result,
-         * all paths that use this function should look normalized.
-         * NOTE: this method MODIFIES the input array.
-         * @param {Array} ary the array of path segments.
-         */
-        function trimDots(ary) {
-            var i, part;
-            for (i = 0; (part = ary[i]); i++) {
-                if (part === ".") {
-                    ary.splice(i, 1);
-                    i -= 1;
-                } else if (part === "..") {
-                    if (i === 1 && (ary[2] === '..' || ary[0] === '..')) {
-                        //End of the line. Keep at least one non-dot
-                        //path segment at the front so it can be mapped
-                        //correctly to disk. Otherwise, there is likely
-                        //no path mapping for a path starting with '..'.
-                        //This can still fail, but catches the most reasonable
-                        //uses of ..
-                        break;
-                    } else if (i > 0) {
-                        ary.splice(i - 1, 2);
-                        i -= 2;
-                    }
-                }
-            }
-        }
-
-        /**
-         * Given a relative module name, like ./something, normalize it to
-         * a real name that can be mapped to a path.
-         * @param {String} name the relative name
-         * @param {String} baseName a real name that the name arg is relative
-         * to.
-         * @returns {String} normalized name
-         */
-        function normalize(name, baseName) {
-            var pkgName, pkgConfig;
-
-            //Adjust any relative paths.
-            if (name && name.charAt(0) === ".") {
-                //If have a base name, try to normalize against it,
-                //otherwise, assume it is a top-level require that will
-                //be relative to baseUrl in the end.
-                if (baseName) {
-                    if (config.pkgs[baseName]) {
-                        //If the baseName is a package name, then just treat it as one
-                        //name to concat the name with.
-                        baseName = [baseName];
-                    } else {
-                        //Convert baseName to array, and lop off the last part,
-                        //so that . matches that "directory" and not name of the baseName's
-                        //module. For instance, baseName of "one/two/three", maps to
-                        //"one/two/three.js", but we want the directory, "one/two" for
-                        //this normalization.
-                        baseName = baseName.split("/");
-                        baseName = baseName.slice(0, baseName.length - 1);
-                    }
-
-                    name = baseName.concat(name.split("/"));
-                    trimDots(name);
-
-                    //Some use of packages may use a . path to reference the
-                    //"main" module name, so normalize for that.
-                    pkgConfig = config.pkgs[(pkgName = name[0])];
-                    name = name.join("/");
-                    if (pkgConfig && name === pkgName + '/' + pkgConfig.main) {
-                        name = pkgName;
-                    }
-                } else if (name.indexOf("./") === 0) {
-                    // No baseName, so this is ID is resolved relative
-                    // to baseUrl, pull off the leading dot.
-                    name = name.substring(2);
-                }
-            }
-            return name;
-        }
-
-        /**
-         * Creates a module mapping that includes plugin prefix, module
-         * name, and path. If parentModuleMap is provided it will
-         * also normalize the name via require.normalize()
-         *
-         * @param {String} name the module name
-         * @param {String} [parentModuleMap] parent module map
-         * for the module name, used to resolve relative names.
-         *
-         * @returns {Object}
-         */
-        function makeModuleMap(name, parentModuleMap) {
-            var index = name ? name.indexOf("!") : -1,
-                prefix = null,
-                parentName = parentModuleMap ? parentModuleMap.name : null,
-                originalName = name,
-                normalizedName, url, pluginModule;
-
-            if (index !== -1) {
-                prefix = name.substring(0, index);
-                name = name.substring(index + 1, name.length);
-            }
-
-            if (prefix) {
-                prefix = normalize(prefix, parentName);
-            }
-
-            //Account for relative paths if there is a base name.
-            if (name) {
-                if (prefix) {
-                    pluginModule = defined[prefix];
-                    if (pluginModule && pluginModule.normalize) {
-                        //Plugin is loaded, use its normalize method.
-                        normalizedName = pluginModule.normalize(name, function (name) {
-                            return normalize(name, parentName);
-                        });
-                    } else {
-                        normalizedName = normalize(name, parentName);
-                    }
-                } else {
-                    //A regular module.
-                    normalizedName = normalize(name, parentName);
-
-                    url = urlMap[normalizedName];
-                    if (!url) {
-                        //Calculate url for the module, if it has a name.
-                        //Use name here since nameToUrl also calls normalize,
-                        //and for relative names that are outside the baseUrl
-                        //this causes havoc. Was thinking of just removing
-                        //parentModuleMap to avoid extra normalization, but
-                        //normalize() still does a dot removal because of
-                        //issue #142, so just pass in name here and redo
-                        //the normalization. Paths outside baseUrl are just
-                        //messy to support.
-                        url = context.nameToUrl(name, null, parentModuleMap);
-
-                        //Store the URL mapping for later.
-                        urlMap[normalizedName] = url;
-                    }
-                }
-            }
-
-            return {
-                prefix: prefix,
-                name: normalizedName,
-                parentMap: parentModuleMap,
-                url: url,
-                originalName: originalName,
-                fullName: prefix ? prefix + "!" + (normalizedName || '') : normalizedName
-            };
-        }
-
-        /**
-         * Determine if priority loading is done. If so clear the priorityWait
-         */
-        function isPriorityDone() {
-            var priorityDone = true,
-                priorityWait = config.priorityWait,
-                priorityName, i;
-            if (priorityWait) {
-                for (i = 0; (priorityName = priorityWait[i]); i++) {
-                    if (!loaded[priorityName]) {
-                        priorityDone = false;
-                        break;
-                    }
-                }
-                if (priorityDone) {
-                    delete config.priorityWait;
-                }
-            }
-            return priorityDone;
-        }
-
-        function makeContextModuleFunc(func, relModuleMap, enableBuildCallback) {
-            return function () {
-                //A version of a require function that passes a moduleName
-                //value for items that may need to
-                //look up paths relative to the moduleName
-                var args = aps.call(arguments, 0), lastArg;
-                if (enableBuildCallback &&
-                    isFunction((lastArg = args[args.length - 1]))) {
-                    lastArg.__requireJsBuild = true;
-                }
-                args.push(relModuleMap);
-                return func.apply(null, args);
-            };
-        }
-
-        /**
-         * Helper function that creates a require function object to give to
-         * modules that ask for it as a dependency. It needs to be specific
-         * per module because of the implication of path mappings that may
-         * need to be relative to the module name.
-         */
-        function makeRequire(relModuleMap, enableBuildCallback, altRequire) {
-            var modRequire = makeContextModuleFunc(altRequire || context.require, relModuleMap, enableBuildCallback);
-
-            mixin(modRequire, {
-                nameToUrl: makeContextModuleFunc(context.nameToUrl, relModuleMap),
-                toUrl: makeContextModuleFunc(context.toUrl, relModuleMap),
-                defined: makeContextModuleFunc(context.requireDefined, relModuleMap),
-                specified: makeContextModuleFunc(context.requireSpecified, relModuleMap),
-                isBrowser: req.isBrowser
-            });
-            return modRequire;
-        }
-
-        /*
-         * Queues a dependency for checking after the loader is out of a
-         * "paused" state, for example while a script file is being loaded
-         * in the browser, where it may have many modules defined in it.
-         */
-        function queueDependency(manager) {
-            context.paused.push(manager);
-        }
-
-        function execManager(manager) {
-            var i, ret, err, errFile, errModuleTree,
-                cb = manager.callback,
-                map = manager.map,
-                fullName = map.fullName,
-                args = manager.deps,
-                listeners = manager.listeners,
-                cjsModule;
-
-            //Call the callback to define the module, if necessary.
-            if (cb && isFunction(cb)) {
-                if (config.catchError.define) {
-                    try {
-                        ret = req.execCb(fullName, manager.callback, args, defined[fullName]);
-                    } catch (e) {
-                        err = e;
-                    }
-                } else {
-                    ret = req.execCb(fullName, manager.callback, args, defined[fullName]);
-                }
-
-                if (fullName) {
-                    //If setting exports via "module" is in play,
-                    //favor that over return value and exports. After that,
-                    //favor a non-undefined return value over exports use.
-                    cjsModule = manager.cjsModule;
-                    if (cjsModule &&
-                        cjsModule.exports !== undefined &&
-                        //Make sure it is not already the exports value
-                        cjsModule.exports !== defined[fullName]) {
-                        ret = defined[fullName] = manager.cjsModule.exports;
-                    } else if (ret === undefined && manager.usingExports) {
-                        //exports already set the defined value.
-                        ret = defined[fullName];
-                    } else {
-                        //Use the return value from the function.
-                        defined[fullName] = ret;
-                        //If this module needed full execution in a build
-                        //environment, mark that now.
-                        if (needFullExec[fullName]) {
-                            fullExec[fullName] = true;
-                        }
-                    }
-                }
-            } else if (fullName) {
-                //May just be an object definition for the module. Only
-                //worry about defining if have a module name.
-                ret = defined[fullName] = cb;
-
-                //If this module needed full execution in a build
-                //environment, mark that now.
-                if (needFullExec[fullName]) {
-                    fullExec[fullName] = true;
-                }
-            }
-
-            //Clean up waiting. Do this before error calls, and before
-            //calling back listeners, so that bookkeeping is correct
-            //in the event of an error and error is reported in correct order,
-            //since the listeners will likely have errors if the
-            //onError function does not throw.
-            if (waiting[manager.id]) {
-                delete waiting[manager.id];
-                manager.isDone = true;
-                context.waitCount -= 1;
-                if (context.waitCount === 0) {
-                    //Clear the wait array used for cycles.
-                    waitAry = [];
-                }
-            }
-
-            //Do not need to track manager callback now that it is defined.
-            delete managerCallbacks[fullName];
-
-            //Allow instrumentation like the optimizer to know the order
-            //of modules executed and their dependencies.
-            if (req.onResourceLoad && !manager.placeholder) {
-                req.onResourceLoad(context, map, manager.depArray);
-            }
-
-            if (err) {
-                errFile = (fullName ? makeModuleMap(fullName).url : '') ||
-                           err.fileName || err.sourceURL;
-                errModuleTree = err.moduleTree;
-                err = makeError('defineerror', 'Error evaluating ' +
-                                'module "' + fullName + '" at location "' +
-                                errFile + '":\n' +
-                                err + '\nfileName:' + errFile +
-                                '\nlineNumber: ' + (err.lineNumber || err.line), err);
-                err.moduleName = fullName;
-                err.moduleTree = errModuleTree;
-                return req.onError(err);
-            }
-
-            //Let listeners know of this manager's value.
-            for (i = 0; (cb = listeners[i]); i++) {
-                cb(ret);
-            }
-
-            return undefined;
-        }
-
-        /**
-         * Helper that creates a callack function that is called when a dependency
-         * is ready, and sets the i-th dependency for the manager as the
-         * value passed to the callback generated by this function.
-         */
-        function makeArgCallback(manager, i) {
-            return function (value) {
-                //Only do the work if it has not been done
-                //already for a dependency. Cycle breaking
-                //logic in forceExec could mean this function
-                //is called more than once for a given dependency.
-                if (!manager.depDone[i]) {
-                    manager.depDone[i] = true;
-                    manager.deps[i] = value;
-                    manager.depCount -= 1;
-                    if (!manager.depCount) {
-                        //All done, execute!
-                        execManager(manager);
-                    }
-                }
-            };
-        }
-
-        function callPlugin(pluginName, depManager) {
-            var map = depManager.map,
-                fullName = map.fullName,
-                name = map.name,
-                plugin = plugins[pluginName] ||
-                        (plugins[pluginName] = defined[pluginName]),
-                load;
-
-            //No need to continue if the manager is already
-            //in the process of loading.
-            if (depManager.loading) {
-                return;
-            }
-            depManager.loading = true;
-
-            load = function (ret) {
-                depManager.callback = function () {
-                    return ret;
-                };
-                execManager(depManager);
-
-                loaded[depManager.id] = true;
-
-                //The loading of this plugin
-                //might have placed other things
-                //in the paused queue. In particular,
-                //a loader plugin that depends on
-                //a different plugin loaded resource.
-                resume();
-            };
-
-            //Allow plugins to load other code without having to know the
-            //context or how to "complete" the load.
-            load.fromText = function (moduleName, text) {
-                /*jslint evil: true */
-                var hasInteractive = useInteractive;
-
-                //Indicate a the module is in process of loading.
-                loaded[moduleName] = false;
-                context.scriptCount += 1;
-
-                //Indicate this is not a "real" module, so do not track it
-                //for builds, it does not map to a real file.
-                context.fake[moduleName] = true;
-
-                //Turn off interactive script matching for IE for any define
-                //calls in the text, then turn it back on at the end.
-                if (hasInteractive) {
-                    useInteractive = false;
-                }
-
-                req.exec(text);
-
-                if (hasInteractive) {
-                    useInteractive = true;
-                }
-
-                //Support anonymous modules.
-                context.completeLoad(moduleName);
-            };
-
-            //No need to continue if the plugin value has already been
-            //defined by a build.
-            if (fullName in defined) {
-                load(defined[fullName]);
-            } else {
-                //Use parentName here since the plugin's name is not reliable,
-                //could be some weird string with no path that actually wants to
-                //reference the parentName's path.
-                plugin.load(name, makeRequire(map.parentMap, true, function (deps, cb) {
-                    var moduleDeps = [],
-                        i, dep, depMap;
-                    //Convert deps to full names and hold on to them
-                    //for reference later, when figuring out if they
-                    //are blocked by a circular dependency.
-                    for (i = 0; (dep = deps[i]); i++) {
-                        depMap = makeModuleMap(dep, map.parentMap);
-                        deps[i] = depMap.fullName;
-                        if (!depMap.prefix) {
-                            moduleDeps.push(deps[i]);
-                        }
-                    }
-                    depManager.moduleDeps = (depManager.moduleDeps || []).concat(moduleDeps);
-                    return context.require(deps, cb);
-                }), load, config);
-            }
-        }
-
-        /**
-         * Adds the manager to the waiting queue. Only fully
-         * resolved items should be in the waiting queue.
-         */
-        function addWait(manager) {
-            if (!waiting[manager.id]) {
-                waiting[manager.id] = manager;
-                waitAry.push(manager);
-                context.waitCount += 1;
-            }
-        }
-
-        /**
-         * Function added to every manager object. Created out here
-         * to avoid new function creation for each manager instance.
-         */
-        function managerAdd(cb) {
-            this.listeners.push(cb);
-        }
-
-        function getManager(map, shouldQueue) {
-            var fullName = map.fullName,
-                prefix = map.prefix,
-                plugin = prefix ? plugins[prefix] ||
-                                (plugins[prefix] = defined[prefix]) : null,
-                manager, created, pluginManager, prefixMap;
-
-            if (fullName) {
-                manager = managerCallbacks[fullName];
-            }
-
-            if (!manager) {
-                created = true;
-                manager = {
-                    //ID is just the full name, but if it is a plugin resource
-                    //for a plugin that has not been loaded,
-                    //then add an ID counter to it.
-                    id: (prefix && !plugin ?
-                        (managerCounter++) + '__p@:' : '') +
-                        (fullName || '__r@' + (managerCounter++)),
-                    map: map,
-                    depCount: 0,
-                    depDone: [],
-                    depCallbacks: [],
-                    deps: [],
-                    listeners: [],
-                    add: managerAdd
-                };
-
-                specified[manager.id] = true;
-
-                //Only track the manager/reuse it if this is a non-plugin
-                //resource. Also only track plugin resources once
-                //the plugin has been loaded, and so the fullName is the
-                //true normalized value.
-                if (fullName && (!prefix || plugins[prefix])) {
-                    managerCallbacks[fullName] = manager;
-                }
-            }
-
-            //If there is a plugin needed, but it is not loaded,
-            //first load the plugin, then continue on.
-            if (prefix && !plugin) {
-                prefixMap = makeModuleMap(prefix);
-
-                //Clear out defined and urlFetched if the plugin was previously
-                //loaded/defined, but not as full module (as in a build
-                //situation). However, only do this work if the plugin is in
-                //defined but does not have a module export value.
-                if (prefix in defined && !defined[prefix]) {
-                    delete defined[prefix];
-                    delete urlFetched[prefixMap.url];
-                }
-
-                pluginManager = getManager(prefixMap, true);
-                pluginManager.add(function (plugin) {
-                    //Create a new manager for the normalized
-                    //resource ID and have it call this manager when
-                    //done.
-                    var newMap = makeModuleMap(map.originalName, map.parentMap),
-                        normalizedManager = getManager(newMap, true);
-
-                    //Indicate this manager is a placeholder for the real,
-                    //normalized thing. Important for when trying to map
-                    //modules and dependencies, for instance, in a build.
-                    manager.placeholder = true;
-
-                    normalizedManager.add(function (resource) {
-                        manager.callback = function () {
-                            return resource;
-                        };
-                        execManager(manager);
-                    });
-                });
-            } else if (created && shouldQueue) {
-                //Indicate the resource is not loaded yet if it is to be
-                //queued.
-                loaded[manager.id] = false;
-                queueDependency(manager);
-                addWait(manager);
-            }
-
-            return manager;
-        }
-
-        function main(inName, depArray, callback, relModuleMap) {
-            var moduleMap = makeModuleMap(inName, relModuleMap),
-                name = moduleMap.name,
-                fullName = moduleMap.fullName,
-                manager = getManager(moduleMap),
-                id = manager.id,
-                deps = manager.deps,
-                i, depArg, depName, depPrefix, cjsMod;
-
-            if (fullName) {
-                //If module already defined for context, or already loaded,
-                //then leave. Also leave if jQuery is registering but it does
-                //not match the desired version number in the config.
-                if (fullName in defined || loaded[id] === true ||
-                    (fullName === "jquery" && config.jQuery &&
-                     config.jQuery !== callback().fn.jquery)) {
-                    return;
-                }
-
-                //Set specified/loaded here for modules that are also loaded
-                //as part of a layer, where onScriptLoad is not fired
-                //for those cases. Do this after the inline define and
-                //dependency tracing is done.
-                specified[id] = true;
-                loaded[id] = true;
-
-                //If module is jQuery set up delaying its dom ready listeners.
-                if (fullName === "jquery" && callback) {
-                    jQueryCheck(callback());
-                }
-            }
-
-            //Attach real depArray and callback to the manager. Do this
-            //only if the module has not been defined already, so do this after
-            //the fullName checks above. IE can call main() more than once
-            //for a module.
-            manager.depArray = depArray;
-            manager.callback = callback;
-
-            //Add the dependencies to the deps field, and register for callbacks
-            //on the dependencies.
-            for (i = 0; i < depArray.length; i++) {
-                depArg = depArray[i];
-                //There could be cases like in IE, where a trailing comma will
-                //introduce a null dependency, so only treat a real dependency
-                //value as a dependency.
-                if (depArg) {
-                    //Split the dependency name into plugin and name parts
-                    depArg = makeModuleMap(depArg, (name ? moduleMap : relModuleMap));
-                    depName = depArg.fullName;
-                    depPrefix = depArg.prefix;
-
-                    //Fix the name in depArray to be just the name, since
-                    //that is how it will be called back later.
-                    depArray[i] = depName;
-
-                    //Fast path CommonJS standard dependencies.
-                    if (depName === "require") {
-                        deps[i] = makeRequire(moduleMap);
-                    } else if (depName === "exports") {
-                        //CommonJS module spec 1.1
-                        deps[i] = defined[fullName] = {};
-                        manager.usingExports = true;
-                    } else if (depName === "module") {
-                        //CommonJS module spec 1.1
-                        manager.cjsModule = cjsMod = deps[i] = {
-                            id: name,
-                            uri: name ? context.nameToUrl(name, null, relModuleMap) : undefined,
-                            exports: defined[fullName]
-                        };
-                    } else if (depName in defined && !(depName in waiting) &&
-                               (!(fullName in needFullExec) ||
-                                (fullName in needFullExec && fullExec[depName]))) {
-                        //Module already defined, and not in a build situation
-                        //where the module is a something that needs full
-                        //execution and this dependency has not been fully
-                        //executed. See r.js's requirePatch.js for more info
-                        //on fullExec.
-                        deps[i] = defined[depName];
-                    } else {
-                        //Mark this dependency as needing full exec if
-                        //the current module needs full exec.
-                        if (fullName in needFullExec) {
-                            needFullExec[depName] = true;
-                            //Reset state so fully executed code will get
-                            //picked up correctly.
-                            delete defined[depName];
-                            urlFetched[depArg.url] = false;
-                        }
-
-                        //Either a resource that is not loaded yet, or a plugin
-                        //resource for either a plugin that has not
-                        //loaded yet.
-                        manager.depCount += 1;
-                        manager.depCallbacks[i] = makeArgCallback(manager, i);
-                        getManager(depArg, true).add(manager.depCallbacks[i]);
-                    }
-                }
-            }
-
-            //Do not bother tracking the manager if it is all done.
-            if (!manager.depCount) {
-                //All done, execute!
-                execManager(manager);
-            } else {
-                addWait(manager);
-            }
-        }
-
-        /**
-         * Convenience method to call main for a define call that was put on
-         * hold in the defQueue.
-         */
-        function callDefMain(args) {
-            main.apply(null, args);
-        }
-
-        /**
-         * jQuery 1.4.3+ supports ways to hold off calling
-         * calling jQuery ready callbacks until all scripts are loaded. Be sure
-         * to track it if the capability exists.. Also, since jQuery 1.4.3 does
-         * not register as a module, need to do some global inference checking.
-         * Even if it does register as a module, not guaranteed to be the precise
-         * name of the global. If a jQuery is tracked for this context, then go
-         * ahead and register it as a module too, if not already in process.
-         */
-        jQueryCheck = function (jqCandidate) {
-            if (!context.jQuery) {
-                var $ = jqCandidate || (typeof jQuery !== "undefined" ? jQuery : null);
-
-                if ($) {
-                    //If a specific version of jQuery is wanted, make sure to only
-                    //use this jQuery if it matches.
-                    if (config.jQuery && $.fn.jquery !== config.jQuery) {
-                        return;
-                    }
-
-                    if ("holdReady" in $ || "readyWait" in $) {
-                        context.jQuery = $;
-
-                        //Manually create a "jquery" module entry if not one already
-                        //or in process. Note this could trigger an attempt at
-                        //a second jQuery registration, but does no harm since
-                        //the first one wins, and it is the same value anyway.
-                        callDefMain(["jquery", [], function () {
-                            return jQuery;
-                        }]);
-
-                        //Ask jQuery to hold DOM ready callbacks.
-                        if (context.scriptCount) {
-                            jQueryHoldReady($, true);
-                            context.jQueryIncremented = true;
-                        }
-                    }
-                }
-            }
-        };
-
-        function findCycle(manager, traced) {
-            var fullName = manager.map.fullName,
-                depArray = manager.depArray,
-                fullyLoaded = true,
-                i, depName, depManager, result;
-
-            if (manager.isDone || !fullName || !loaded[fullName]) {
-                return result;
-            }
-
-            //Found the cycle.
-            if (traced[fullName]) {
-                return manager;
-            }
-
-            traced[fullName] = true;
-
-            //Trace through the dependencies.
-            if (depArray) {
-                for (i = 0; i < depArray.length; i++) {
-                    //Some array members may be null, like if a trailing comma
-                    //IE, so do the explicit [i] access and check if it has a value.
-                    depName = depArray[i];
-                    if (!loaded[depName] && !reservedDependencies[depName]) {
-                        fullyLoaded = false;
-                        break;
-                    }
-                    depManager = waiting[depName];
-                    if (depManager && !depManager.isDone && loaded[depName]) {
-                        result = findCycle(depManager, traced);
-                        if (result) {
-                            break;
-                        }
-                    }
-                }
-                if (!fullyLoaded) {
-                    //Discard the cycle that was found, since it cannot
-                    //be forced yet. Also clear this module from traced.
-                    result = undefined;
-                    delete traced[fullName];
-                }
-            }
-
-            return result;
-        }
-
-        function forceExec(manager, traced) {
-            var fullName = manager.map.fullName,
-                depArray = manager.depArray,
-                i, depName, depManager, prefix, prefixManager, value;
-
-
-            if (manager.isDone || !fullName || !loaded[fullName]) {
-                return undefined;
-            }
-
-            if (fullName) {
-                if (traced[fullName]) {
-                    return defined[fullName];
-                }
-
-                traced[fullName] = true;
-            }
-
-            //Trace through the dependencies.
-            if (depArray) {
-                for (i = 0; i < depArray.length; i++) {
-                    //Some array members may be null, like if a trailing comma
-                    //IE, so do the explicit [i] access and check if it has a value.
-                    depName = depArray[i];
-                    if (depName) {
-                        //First, make sure if it is a plugin resource that the
-                        //plugin is not blocked.
-                        prefix = makeModuleMap(depName).prefix;
-                        if (prefix && (prefixManager = waiting[prefix])) {
-                            forceExec(prefixManager, traced);
-                        }
-                        depManager = waiting[depName];
-                        if (depManager && !depManager.isDone && loaded[depName]) {
-                            value = forceExec(depManager, traced);
-                            manager.depCallbacks[i](value);
-                        }
-                    }
-                }
-            }
-
-            return defined[fullName];
-        }
-
-        /**
-         * Checks if all modules for a context are loaded, and if so, evaluates the
-         * new ones in right dependency order.
-         *
-         * @private
-         */
-        function checkLoaded() {
-            var waitInterval = config.waitSeconds * 1000,
-                //It is possible to disable the wait interval by using waitSeconds of 0.
-                expired = waitInterval && (context.startTime + waitInterval) < new Date().getTime(),
-                noLoads = "", hasLoadedProp = false, stillLoading = false,
-                cycleDeps = [],
-                i, prop, err, manager, cycleManager, moduleDeps;
-
-            //If there are items still in the paused queue processing wait.
-            //This is particularly important in the sync case where each paused
-            //item is processed right away but there may be more waiting.
-            if (context.pausedCount > 0) {
-                return undefined;
-            }
-
-            //Determine if priority loading is done. If so clear the priority. If
-            //not, then do not check
-            if (config.priorityWait) {
-                if (isPriorityDone()) {
-                    //Call resume, since it could have
-                    //some waiting dependencies to trace.
-                    resume();
-                } else {
-                    return undefined;
-                }
-            }
-
-            //See if anything is still in flight.
-            for (prop in loaded) {
-                if (!(prop in empty)) {
-                    hasLoadedProp = true;
-                    if (!loaded[prop]) {
-                        if (expired) {
-                            noLoads += prop + " ";
-                        } else {
-                            stillLoading = true;
-                            if (prop.indexOf('!') === -1) {
-                                //No reason to keep looking for unfinished
-                                //loading. If the only stillLoading is a
-                                //plugin resource though, keep going,
-                                //because it may be that a plugin resource
-                                //is waiting on a non-plugin cycle.
-                                cycleDeps = [];
-                                break;
-                            } else {
-                                moduleDeps = managerCallbacks[prop] && managerCallbacks[prop].moduleDeps;
-                                if (moduleDeps) {
-                                    cycleDeps.push.apply(cycleDeps, moduleDeps);
-                                }
-                            }
-                        }
-                    }
-                }
-            }
-
-            //Check for exit conditions.
-            if (!hasLoadedProp && !context.waitCount) {
-                //If the loaded object had no items, then the rest of
-                //the work below does not need to be done.
-                return undefined;
-            }
-            if (expired && noLoads) {
-                //If wait time expired, throw error of unloaded modules.
-                err = makeError("timeout", "Load timeout for modules: " + noLoads);
-                err.requireType = "timeout";
-                err.requireModules = noLoads;
-                err.contextName = context.contextName;
-                return req.onError(err);
-            }
-
-            //If still loading but a plugin is waiting on a regular module cycle
-            //break the cycle.
-            if (stillLoading && cycleDeps.length) {
-                for (i = 0; (manager = waiting[cycleDeps[i]]); i++) {
-                    if ((cycleManager = findCycle(manager, {}))) {
-                        forceExec(cycleManager, {});
-                        break;
-                    }
-                }
-
-            }
-
-            //If still waiting on loads, and the waiting load is something
-            //other than a plugin resource, or there are still outstanding
-            //scripts, then just try back later.
-            if (!expired && (stillLoading || context.scriptCount)) {
-                //Something is still waiting to load. Wait for it, but only
-                //if a timeout is not already in effect.
-                if ((isBrowser || isWebWorker) && !checkLoadedTimeoutId) {
-                    checkLoadedTimeoutId = setTimeout(function () {
-                        checkLoadedTimeoutId = 0;
-                        checkLoaded();
-                    }, 50);
-                }
-                return undefined;
-            }
-
-            //If still have items in the waiting cue, but all modules have
-            //been loaded, then it means there are some circular dependencies
-            //that need to be broken.
-            //However, as a waiting thing is fired, then it can add items to
-            //the waiting cue, and those items should not be fired yet, so
-            //make sure to redo the checkLoaded call after breaking a single
-            //cycle, if nothing else loaded then this logic will pick it up
-            //again.
-            if (context.waitCount) {
-                //Cycle through the waitAry, and call items in sequence.
-                for (i = 0; (manager = waitAry[i]); i++) {
-                    forceExec(manager, {});
-                }
-
-                //If anything got placed in the paused queue, run it down.
-                if (context.paused.length) {
-                    resume();
-                }
-
-                //Only allow this recursion to a certain depth. Only
-                //triggered by errors in calling a module in which its
-                //modules waiting on it cannot finish loading, or some circular
-                //dependencies that then may add more dependencies.
-                //The value of 5 is a bit arbitrary. Hopefully just one extra
-                //pass, or two for the case of circular dependencies generating
-                //more work that gets resolved in the sync node case.
-                if (checkLoadedDepth < 5) {
-                    checkLoadedDepth += 1;
-                    checkLoaded();
-                }
-            }
-
-            checkLoadedDepth = 0;
-
-            //Check for DOM ready, and nothing is waiting across contexts.
-            req.checkReadyState();
-
-            return undefined;
-        }
-
-        /**
-         * Resumes tracing of dependencies and then checks if everything is loaded.
-         */
-        resume = function () {
-            var manager, map, url, i, p, args, fullName;
-
-            //Any defined modules in the global queue, intake them now.
-            context.takeGlobalQueue();
-
-            resumeDepth += 1;
-
-            if (context.scriptCount <= 0) {
-                //Synchronous envs will push the number below zero with the
-                //decrement above, be sure to set it back to zero for good measure.
-                //require() calls that also do not end up loading scripts could
-                //push the number negative too.
-                context.scriptCount = 0;
-            }
-
-            //Make sure any remaining defQueue items get properly processed.
-            while (defQueue.length) {
-                args = defQueue.shift();
-                if (args[0] === null) {
-                    return req.onError(makeError('mismatch', 'Mismatched anonymous define() module: ' + args[args.length - 1]));
-                } else {
-                    callDefMain(args);
-                }
-            }
-
-            //Skip the resume of paused dependencies
-            //if current context is in priority wait.
-            if (!config.priorityWait || isPriorityDone()) {
-                while (context.paused.length) {
-                    p = context.paused;
-                    context.pausedCount += p.length;
-                    //Reset paused list
-                    context.paused = [];
-
-                    for (i = 0; (manager = p[i]); i++) {
-                        map = manager.map;
-                        url = map.url;
-                        fullName = map.fullName;
-
-                        //If the manager is for a plugin managed resource,
-                        //ask the plugin to load it now.
-                        if (map.prefix) {
-                            callPlugin(map.prefix, manager);
-                        } else {
-                            //Regular dependency.
-                            if (!urlFetched[url] && !loaded[fullName]) {
-                                req.load(context, fullName, url);
-
-                                //Mark the URL as fetched, but only if it is
-                                //not an empty: URL, used by the optimizer.
-                                //In that case we need to be sure to call
-                                //load() for each module that is mapped to
-                                //empty: so that dependencies are satisfied
-                                //correctly.
-                                if (url.indexOf('empty:') !== 0) {
-                                    urlFetched[url] = true;
-                                }
-                            }
-                        }
-                    }
-
-                    //Move the start time for timeout forward.
-                    context.startTime = (new Date()).getTime();
-                    context.pausedCount -= p.length;
-                }
-            }
-
-            //Only check if loaded when resume depth is 1. It is likely that
-            //it is only greater than 1 in sync environments where a factory
-            //function also then calls the callback-style require. In those
-            //cases, the checkLoaded should not occur until the resume
-            //depth is back at the top level.
-            if (resumeDepth === 1) {
-                checkLoaded();
-            }
-
-            resumeDepth -= 1;
-
-            return undefined;
-        };
-
-        //Define the context object. Many of these fields are on here
-        //just to make debugging easier.
-        context = {
-            contextName: contextName,
-            config: config,
-            defQueue: defQueue,
-            waiting: waiting,
-            waitCount: 0,
-            specified: specified,
-            loaded: loaded,
-            urlMap: urlMap,
-            urlFetched: urlFetched,
-            scriptCount: 0,
-            defined: defined,
-            paused: [],
-            pausedCount: 0,
-            plugins: plugins,
-            needFullExec: needFullExec,
-            fake: {},
-            fullExec: fullExec,
-            managerCallbacks: managerCallbacks,
-            makeModuleMap: makeModuleMap,
-            normalize: normalize,
-            /**
-             * Set a configuration for the context.
-             * @param {Object} cfg config object to integrate.
-             */
-            configure: function (cfg) {
-                var paths, prop, packages, pkgs, packagePaths, requireWait;
-
-                //Make sure the baseUrl ends in a slash.
-                if (cfg.baseUrl) {
-                    if (cfg.baseUrl.charAt(cfg.baseUrl.length - 1) !== "/") {
-                        cfg.baseUrl += "/";
-                    }
-                }
-
-                //Save off the paths and packages since they require special processing,
-                //they are additive.
-                paths = config.paths;
-                packages = config.packages;
-                pkgs = config.pkgs;
-
-                //Mix in the config values, favoring the new values over
-                //existing ones in context.config.
-                mixin(config, cfg, true);
-
-                //Adjust paths if necessary.
-                if (cfg.paths) {
-                    for (prop in cfg.paths) {
-                        if (!(prop in empty)) {
-                            paths[prop] = cfg.paths[prop];
-                        }
-                    }
-                    config.paths = paths;
-                }
-
-                packagePaths = cfg.packagePaths;
-                if (packagePaths || cfg.packages) {
-                    //Convert packagePaths into a packages config.
-                    if (packagePaths) {
-                        for (prop in packagePaths) {
-                            if (!(prop in empty)) {
-                                configurePackageDir(pkgs, packagePaths[prop], prop);
-                            }
-                        }
-                    }
-
-                    //Adjust packages if necessary.
-                    if (cfg.packages) {
-                        configurePackageDir(pkgs, cfg.packages);
-                    }
-
-                    //Done with modifications, assing packages back to context config
-                    config.pkgs = pkgs;
-                }
-
-                //If priority loading is in effect, trigger the loads now
-                if (cfg.priority) {
-                    //Hold on to requireWait value, and reset it after done
-                    requireWait = context.requireWait;
-
-                    //Allow tracing some require calls to allow the fetching
-                    //of the priority config.
-                    context.requireWait = false;
-                    //But first, call resume to register any defined modules that may
-                    //be in a data-main built file before the priority config
-                    //call.
-                    resume();
-
-                    context.require(cfg.priority);
-
-                    //Trigger a resume right away, for the case when
-                    //the script with the priority load is done as part
-                    //of a data-main call. In that case the normal resume
-                    //call will not happen because the scriptCount will be
-                    //at 1, since the script for data-main is being processed.
-                    resume();
-
-                    //Restore previous state.
-                    context.requireWait = requireWait;
-                    config.priorityWait = cfg.priority;
-                }
-
-                //If a deps array or a config callback is specified, then call
-                //require with those args. This is useful when require is defined as a
-                //config object before require.js is loaded.
-                if (cfg.deps || cfg.callback) {
-                    context.require(cfg.deps || [], cfg.callback);
-                }
-            },
-
-            requireDefined: function (moduleName, relModuleMap) {
-                return makeModuleMap(moduleName, relModuleMap).fullName in defined;
-            },
-
-            requireSpecified: function (moduleName, relModuleMap) {
-                return makeModuleMap(moduleName, relModuleMap).fullName in specified;
-            },
-
-            require: function (deps, callback, relModuleMap) {
-                var moduleName, fullName, moduleMap;
-                if (typeof deps === "string") {
-                    if (isFunction(callback)) {
-                        //Invalid call
-                        return req.onError(makeError("requireargs", "Invalid require call"));
-                    }
-
-                    //Synchronous access to one module. If require.get is
-                    //available (as in the Node adapter), prefer that.
-                    //In this case deps is the moduleName and callback is
-                    //the relModuleMap
-                    if (req.get) {
-                        return req.get(context, deps, callback);
-                    }
-
-                    //Just return the module wanted. In this scenario, the
-                    //second arg (if passed) is just the relModuleMap.
-                    moduleName = deps;
-                    relModuleMap = callback;
-
-                    //Normalize module name, if it contains . or ..
-                    moduleMap = makeModuleMap(moduleName, relModuleMap);
-                    fullName = moduleMap.fullName;
-
-                    if (!(fullName in defined)) {
-                        return req.onError(makeError("notloaded", "Module name '" +
-                                    moduleMap.fullName +
-                                    "' has not been loaded yet for context: " +
-                                    contextName));
-                    }
-                    return defined[fullName];
-                }
-
-                //Call main but only if there are dependencies or
-                //a callback to call.
-                if (deps && deps.length || callback) {
-                    main(null, deps, callback, relModuleMap);
-                }
-
-                //If the require call does not trigger anything new to load,
-                //then resume the dependency processing.
-                if (!context.requireWait) {
-                    while (!context.scriptCount && context.paused.length) {
-                        resume();
-                    }
-                }
-                return context.require;
-            },
-
-            /**
-             * Internal method to transfer globalQueue items to this context's
-             * defQueue.
-             */
-            takeGlobalQueue: function () {
-                //Push all the globalDefQueue items into the context's defQueue
-                if (globalDefQueue.length) {
-                    //Array splice in the values since the context code has a
-                    //local var ref to defQueue, so cannot just reassign the one
-                    //on context.
-                    apsp.apply(context.defQueue,
-                               [context.defQueue.length - 1, 0].concat(globalDefQueue));
-                    globalDefQueue = [];
-                }
-            },
-
-            /**
-             * Internal method used by environment adapters to complete a load event.
-             * A load event could be a script load or just a load pass from a synchronous
-             * load call.
-             * @param {String} moduleName the name of the module to potentially complete.
-             */
-            completeLoad: function (moduleName) {
-                var args;
-
-                context.takeGlobalQueue();
-
-                while (defQueue.length) {
-                    args = defQueue.shift();
-
-                    if (args[0] === null) {
-                        args[0] = moduleName;
-                        break;
-                    } else if (args[0] === moduleName) {
-                        //Found matching define call for this script!
-                        break;
-                    } else {
-                        //Some other named define call, most likely the result
-                        //of a build layer that included many define calls.
-                        callDefMain(args);
-                        args = null;
-                    }
-                }
-                if (args) {
-                    callDefMain(args);
-                } else {
-                    //A script that does not call define(), so just simulate
-                    //the call for it. Special exception for jQuery dynamic load.
-                    callDefMain([moduleName, [],
-                                moduleName === "jquery" && typeof jQuery !== "undefined" ?
-                                function () {
-                                    return jQuery;
-                                } : null]);
-                }
-
-                //Doing this scriptCount decrement branching because sync envs
-                //need to decrement after resume, otherwise it looks like
-                //loading is complete after the first dependency is fetched.
-                //For browsers, it works fine to decrement after, but it means
-                //the checkLoaded setTimeout 50 ms cost is taken. To avoid
-                //that cost, decrement beforehand.
-                if (req.isAsync) {
-                    context.scriptCount -= 1;
-                }
-                resume();
-                if (!req.isAsync) {
-                    context.scriptCount -= 1;
-                }
-            },
-
-            /**
-             * Converts a module name + .extension into an URL path.
-             * *Requires* the use of a module name. It does not support using
-             * plain URLs like nameToUrl.
-             */
-            toUrl: function (moduleNamePlusExt, relModuleMap) {
-                var index = moduleNamePlusExt.lastIndexOf("."),
-                    ext = null;
-
-                if (index !== -1) {
-                    ext = moduleNamePlusExt.substring(index, moduleNamePlusExt.length);
-                    moduleNamePlusExt = moduleNamePlusExt.substring(0, index);
-                }
-
-                return context.nameToUrl(moduleNamePlusExt, ext, relModuleMap);
-            },
-
-            /**
-             * Converts a module name to a file path. Supports cases where
-             * moduleName may actually be just an URL.
-             */
-            nameToUrl: function (moduleName, ext, relModuleMap) {
-                var paths, pkgs, pkg, pkgPath, syms, i, parentModule, url,
-                    config = context.config;
-
-                //Normalize module name if have a base relative module name to work from.
-                moduleName = normalize(moduleName, relModuleMap && relModuleMap.fullName);
-
-                //If a colon is in the URL, it indicates a protocol is used and it is just
-                //an URL to a file, or if it starts with a slash or ends with .js, it is just a plain file.
-                //The slash is important for protocol-less URLs as well as full paths.
-                if (req.jsExtRegExp.test(moduleName)) {
-                    //Just a plain path, not module name lookup, so just return it.
-                    //Add extension if it is included. This is a bit wonky, only non-.js things pass
-                    //an extension, this method probably needs to be reworked.
-                    url = moduleName + (ext ? ext : "");
-                } else {
-                    //A module that needs to be converted to a path.
-                    paths = config.paths;
-                    pkgs = config.pkgs;
-
-                    syms = moduleName.split("/");
-                    //For each module name segment, see if there is a path
-                    //registered for it. Start with most specific name
-                    //and work up from it.
-                    for (i = syms.length; i > 0; i--) {
-                        parentModule = syms.slice(0, i).join("/");
-                        if (paths[parentModule]) {
-                            syms.splice(0, i, paths[parentModule]);
-                            break;
-                        } else if ((pkg = pkgs[parentModule])) {
-                            //If module name is just the package name, then looking
-                            //for the main module.
-                            if (moduleName === pkg.name) {
-                                pkgPath = pkg.location + '/' + pkg.main;
-                            } else {
-                                pkgPath = pkg.location;
-                            }
-                            syms.splice(0, i, pkgPath);
-                            break;
-                        }
-                    }
-
-                    //Join the path parts together, then figure out if baseUrl is needed.
-                    url = syms.join("/") + (ext || ".js");
-                    url = (url.charAt(0) === '/' || url.match(/^\w+:/) ? "" : config.baseUrl) + url;
-                }
-
-                return config.urlArgs ? url +
-                                        ((url.indexOf('?') === -1 ? '?' : '&') +
-                                         config.urlArgs) : url;
-            }
-        };
-
-        //Make these visible on the context so can be called at the very
-        //end of the file to bootstrap
-        context.jQueryCheck = jQueryCheck;
-        context.resume = resume;
-
-        return context;
-    }
-
-    /**
-     * Main entry point.
-     *
-     * If the only argument to require is a string, then the module that
-     * is represented by that string is fetched for the appropriate context.
-     *
-     * If the first argument is an array, then it will be treated as an array
-     * of dependency string names to fetch. An optional function callback can
-     * be specified to execute when all of those dependencies are available.
-     *
-     * Make a local req variable to help Caja compliance (it assumes things
-     * on a require that are not standardized), and to give a short
-     * name for minification/local scope use.
-     */
-    req = requirejs = function (deps, callback) {
-
-        //Find the right context, use default
-        var contextName = defContextName,
-            context, config;
-
-        // Determine if have config object in the call.
-        if (!isArray(deps) && typeof deps !== "string") {
-            // deps is a config object
-            config = deps;
-            if (isArray(callback)) {
-                // Adjust args if there are dependencies
-                deps = callback;
-                callback = arguments[2];
-            } else {
-                deps = [];
-            }
-        }
-
-        if (config && config.context) {
-            contextName = config.context;
-        }
-
-        context = contexts[contextName] ||
-                  (contexts[contextName] = newContext(contextName));
-
-        if (config) {
-            context.configure(config);
-        }
-
-        return context.require(deps, callback);
-    };
-
-    /**
-     * Support require.config() to make it easier to cooperate with other
-     * AMD loaders on globally agreed names.
-     */
-    req.config = function (config) {
-        return req(config);
-    };
-
-    /**
-     * Export require as a global, but only if it does not already exist.
-     */
-    if (!require) {
-        require = req;
-    }
-
-    /**
-     * Global require.toUrl(), to match global require, mostly useful
-     * for debugging/work in the global space.
-     */
-    req.toUrl = function (moduleNamePlusExt) {
-        return contexts[defContextName].toUrl(moduleNamePlusExt);
-    };
-
-    req.version = version;
-
-    //Used to filter out dependencies that are already paths.
-    req.jsExtRegExp = /^\/|:|\?|\.js$/;
-    s = req.s = {
-        contexts: contexts,
-        //Stores a list of URLs that should not get async script tag treatment.
-        skipAsync: {}
-    };
-
-    req.isAsync = req.isBrowser = isBrowser;
-    if (isBrowser) {
-        head = s.head = document.getElementsByTagName("head")[0];
-        //If BASE tag is in play, using appendChild is a problem for IE6.
-        //When that browser dies, this can be removed. Details in this jQuery bug:
-        //http://dev.jquery.com/ticket/2709
-        baseElement = document.getElementsByTagName("base")[0];
-        if (baseElement) {
-            head = s.head = baseElement.parentNode;
-        }
-    }
-
-    /**
-     * Any errors that require explicitly generates will be passed to this
-     * function. Intercept/override it if you want custom error handling.
-     * @param {Error} err the error object.
-     */
-    req.onError = function (err) {
-        throw err;
-    };
-
-    /**
-     * Does the request to load a module for the browser case.
-     * Make this a separate function to allow other environments
-     * to override it.
-     *
-     * @param {Object} context the require context to find state.
-     * @param {String} moduleName the name of the module.
-     * @param {Object} url the URL to the module.
-     */
-    req.load = function (context, moduleName, url) {
-        req.resourcesReady(false);
-
-        context.scriptCount += 1;
-        req.attach(url, context, moduleName);
-
-        //If tracking a jQuery, then make sure its ready callbacks
-        //are put on hold to prevent its ready callbacks from
-        //triggering too soon.
-        if (context.jQuery && !context.jQueryIncremented) {
-            jQueryHoldReady(context.jQuery, true);
-            context.jQueryIncremented = true;
-        }
-    };
-
-    function getInteractiveScript() {
-        var scripts, i, script;
-        if (interactiveScript && interactiveScript.readyState === 'interactive') {
-            return interactiveScript;
-        }
-
-        scripts = document.getElementsByTagName('script');
-        for (i = scripts.length - 1; i > -1 && (script = scripts[i]); i--) {
-            if (script.readyState === 'interactive') {
-                return (interactiveScript = script);
-            }
-        }
-
-        return null;
-    }
-
-    /**
-     * The function that handles definitions of modules. Differs from
-     * require() in that a string for the module should be the first argument,
-     * and the function to execute after dependencies are loaded should
-     * return a value to define the module corresponding to the first argument's
-     * name.
-     */
-    define = function (name, deps, callback) {
-        var node, context;
-
-        //Allow for anonymous functions
-        if (typeof name !== 'string') {
-            //Adjust args appropriately
-            callback = deps;
-            deps = name;
-            name = null;
-        }
-
-        //This module may not have dependencies
-        if (!isArray(deps)) {
-            callback = deps;
-            deps = [];
-        }
-
-        //If no name, and callback is a function, then figure out if it a
-        //CommonJS thing with dependencies.
-        if (!deps.length && isFunction(callback)) {
-            //Remove comments from the callback string,
-            //look for require calls, and pull them into the dependencies,
-            //but only if there are function args.
-            if (callback.length) {
-                callback
-                    .toString()
-                    .replace(commentRegExp, "")
-                    .replace(cjsRequireRegExp, function (match, dep) {
-                        deps.push(dep);
-                    });
-
-                //May be a CommonJS thing even without require calls, but still
-                //could use exports, and module. Avoid doing exports and module
-                //work though if it just needs require.
-                //REQUIRES the function to expect the CommonJS variables in the
-                //order listed below.
-                deps = (callback.length === 1 ? ["require"] : ["require", "exports", "module"]).concat(deps);
-            }
-        }
-
-        //If in IE 6-8 and hit an anonymous define() call, do the interactive
-        //work.
-        if (useInteractive) {
-            node = currentlyAddingScript || getInteractiveScript();
-            if (node) {
-                if (!name) {
-                    name = node.getAttribute("data-requiremodule");
-                }
-                context = contexts[node.getAttribute("data-requirecontext")];
-            }
-        }
-
-        //Always save off evaluating the def call until the script onload handler.
-        //This allows multiple modules to be in a file without prematurely
-        //tracing dependencies, and allows for anonymous module support,
-        //where the module name is not known until the script onload event
-        //occurs. If no context, use the global queue, and get it processed
-        //in the onscript load callback.
-        (context ? context.defQueue : globalDefQueue).push([name, deps, callback]);
-
-        return undefined;
-    };
-
-    define.amd = {
-        multiversion: true,
-        plugins: true,
-        jQuery: true
-    };
-
-    /**
-     * Executes the text. Normally just uses eval, but can be modified
-     * to use a more environment specific call.
-     * @param {String} text the text to execute/evaluate.
-     */
-    req.exec = function (text) {
-        return eval(text);
-    };
-
-    /**
-     * Executes a module callack function. Broken out as a separate function
-     * solely to allow the build system to sequence the files in the built
-     * layer in the right sequence.
-     *
-     * @private
-     */
-    req.execCb = function (name, callback, args, exports) {
-        return callback.apply(exports, args);
-    };
-
-
-    /**
-     * Adds a node to the DOM. Public function since used by the order plugin.
-     * This method should not normally be called by outside code.
-     */
-    req.addScriptToDom = function (node) {
-        //For some cache cases in IE 6-8, the script executes before the end
-        //of the appendChild execution, so to tie an anonymous define
-        //call to the module name (which is stored on the node), hold on
-        //to a reference to this node, but clear after the DOM insertion.
-        currentlyAddingScript = node;
-        if (baseElement) {
-            head.insertBefore(node, baseElement);
-        } else {
-            head.appendChild(node);
-        }
-        currentlyAddingScript = null;
-    };
-
-    /**
-     * callback for script loads, used to check status of loading.
-     *
-     * @param {Event} evt the event from the browser for the script
-     * that was loaded.
-     *
-     * @private
-     */
-    req.onScriptLoad = function (evt) {
-        //Using currentTarget instead of target for Firefox 2.0's sake. Not
-        //all old browsers will be supported, but this one was easy enough
-        //to support and still makes sense.
-        var node = evt.currentTarget || evt.srcElement, contextName, moduleName,
-            context;
-
-        if (evt.type === "load" || (node && readyRegExp.test(node.readyState))) {
-            //Reset interactive script so a script node is not held onto for
-            //to long.
-            interactiveScript = null;
-
-            //Pull out the name of the module and the context.
-            contextName = node.getAttribute("data-requirecontext");
-            moduleName = node.getAttribute("data-requiremodule");
-            context = contexts[contextName];
-
-            contexts[contextName].completeLoad(moduleName);
-
-            //Clean up script binding. Favor detachEvent because of IE9
-            //issue, see attachEvent/addEventListener comment elsewhere
-            //in this file.
-            if (node.detachEvent && !isOpera) {
-                //Probably IE. If not it will throw an error, which will be
-                //useful to know.
-                node.detachEvent("onreadystatechange", req.onScriptLoad);
-            } else {
-                node.removeEventListener("load", req.onScriptLoad, false);
-            }
-        }
-    };
-
-    /**
-     * Attaches the script represented by the URL to the current
-     * environment. Right now only supports browser loading,
-     * but can be redefined in other environments to do the right thing.
-     * @param {String} url the url of the script to attach.
-     * @param {Object} context the context that wants the script.
-     * @param {moduleName} the name of the module that is associated with the script.
-     * @param {Function} [callback] optional callback, defaults to require.onScriptLoad
-     * @param {String} [type] optional type, defaults to text/javascript
-     * @param {Function} [fetchOnlyFunction] optional function to indicate the script node
-     * should be set up to fetch the script but do not attach it to the DOM
-     * so that it can later be attached to execute it. This is a way for the
-     * order plugin to support ordered loading in IE. Once the script is fetched,
-     * but not executed, the fetchOnlyFunction will be called.
-     */
-    req.attach = function (url, context, moduleName, callback, type, fetchOnlyFunction) {
-        var node;
-        if (isBrowser) {
-            //In the browser so use a script tag
-            callback = callback || req.onScriptLoad;
-            node = context && context.config && context.config.xhtml ?
-                    document.createElementNS("http://www.w3.org/1999/xhtml", "html:script") :
-                    document.createElement("script");
-            node.type = type || (context && context.config.scriptType) ||
-                        "text/javascript";
-            node.charset = "utf-8";
-            //Use async so Gecko does not block on executing the script if something
-            //like a long-polling comet tag is being run first. Gecko likes
-            //to evaluate scripts in DOM order, even for dynamic scripts.
-            //It will fetch them async, but only evaluate the contents in DOM
-            //order, so a long-polling script tag can delay execution of scripts
-            //after it. But telling Gecko we expect async gets us the behavior
-            //we want -- execute it whenever it is finished downloading. Only
-            //Helps Firefox 3.6+
-            //Allow some URLs to not be fetched async. Mostly helps the order!
-            //plugin
-            node.async = !s.skipAsync[url];
-
-            if (context) {
-                node.setAttribute("data-requirecontext", context.contextName);
-            }
-            node.setAttribute("data-requiremodule", moduleName);
-
-            //Set up load listener. Test attachEvent first because IE9 has
-            //a subtle issue in its addEventListener and script onload firings
-            //that do not match the behavior of all other browsers with
-            //addEventListener support, which fire the onload event for a
-            //script right after the script execution. See:
-            //https://connect.microsoft.com/IE/feedback/details/648057/script-onload-event-is-not-fired-immediately-after-script-execution
-            //UNFORTUNATELY Opera implements attachEvent but does not follow the script
-            //script execution mode.
-            if (node.attachEvent && !isOpera) {
-                //Probably IE. IE (at least 6-8) do not fire
-                //script onload right after executing the script, so
-                //we cannot tie the anonymous define call to a name.
-                //However, IE reports the script as being in "interactive"
-                //readyState at the time of the define call.
-                useInteractive = true;
-
-
-                if (fetchOnlyFunction) {
-                    //Need to use old school onreadystate here since
-                    //when the event fires and the node is not attached
-                    //to the DOM, the evt.srcElement is null, so use
-                    //a closure to remember the node.
-                    node.onreadystatechange = function (evt) {
-                        //Script loaded but not executed.
-                        //Clear loaded handler, set the real one that
-                        //waits for script execution.
-                        if (node.readyState === 'loaded') {
-                            node.onreadystatechange = null;
-                            node.attachEvent("onreadystatechange", callback);
-                            fetchOnlyFunction(node);
-                        }
-                    };
-                } else {
-                    node.attachEvent("onreadystatechange", callback);
-                }
-            } else {
-                node.addEventListener("load", callback, false);
-            }
-            node.src = url;
-
-            //Fetch only means waiting to attach to DOM after loaded.
-            if (!fetchOnlyFunction) {
-                req.addScriptToDom(node);
-            }
-
-            return node;
-        } else if (isWebWorker) {
-            //In a web worker, use importScripts. This is not a very
-            //efficient use of importScripts, importScripts will block until
-            //its script is downloaded and evaluated. However, if web workers
-            //are in play, the expectation that a build has been done so that
-            //only one script needs to be loaded anyway. This may need to be
-            //reevaluated if other use cases become common.
-            importScripts(url);
-
-            //Account for anonymous modules
-            context.completeLoad(moduleName);
-        }
-        return null;
-    };
-
-    //Look for a data-main script attribute, which could also adjust the baseUrl.
-    if (isBrowser) {
-        //Figure out baseUrl. Get it from the script tag with require.js in it.
-        scripts = document.getElementsByTagName("script");
-
-        for (globalI = scripts.length - 1; globalI > -1 && (script = scripts[globalI]); globalI--) {
-            //Set the "head" where we can append children by
-            //using the script's parent.
-            if (!head) {
-                head = script.parentNode;
-            }
-
-            //Look for a data-main attribute to set main script for the page
-            //to load. If it is there, the path to data main becomes the
-            //baseUrl, if it is not already set.
-            if ((dataMain = script.getAttribute('data-main'))) {
-                if (!cfg.baseUrl) {
-                    //Pull off the directory of data-main for use as the
-                    //baseUrl.
-                    src = dataMain.split('/');
-                    mainScript = src.pop();
-                    subPath = src.length ? src.join('/')  + '/' : './';
-
-                    //Set final config.
-                    cfg.baseUrl = subPath;
-                    //Strip off any trailing .js since dataMain is now
-                    //like a module name.
-                    dataMain = mainScript.replace(jsSuffixRegExp, '');
-                }
-
-                //Put the data-main script in the files to load.
-                cfg.deps = cfg.deps ? cfg.deps.concat(dataMain) : [dataMain];
-
-                break;
-            }
-        }
-    }
-
-    //See if there is nothing waiting across contexts, and if not, trigger
-    //resourcesReady.
-    req.checkReadyState = function () {
-        var contexts = s.contexts, prop;
-        for (prop in contexts) {
-            if (!(prop in empty)) {
-                if (contexts[prop].waitCount) {
-                    return;
-                }
-            }
-        }
-        req.resourcesReady(true);
-    };
-
-    /**
-     * Internal function that is triggered whenever all scripts/resources
-     * have been loaded by the loader. Can be overridden by other, for
-     * instance the domReady plugin, which wants to know when all resources
-     * are loaded.
-     */
-    req.resourcesReady = function (isReady) {
-        var contexts, context, prop;
-
-        //First, set the public variable indicating that resources are loading.
-        req.resourcesDone = isReady;
-
-        if (req.resourcesDone) {
-            //If jQuery with DOM ready delayed, release it now.
-            contexts = s.contexts;
-            for (prop in contexts) {
-                if (!(prop in empty)) {
-                    context = contexts[prop];
-                    if (context.jQueryIncremented) {
-                        jQueryHoldReady(context.jQuery, false);
-                        context.jQueryIncremented = false;
-                    }
-                }
-            }
-        }
-    };
-
-    //FF < 3.6 readyState fix. Needed so that domReady plugin
-    //works well in that environment, since require.js is normally
-    //loaded via an HTML script tag so it will be there before window load,
-    //where the domReady plugin is more likely to be loaded after window load.
-    req.pageLoaded = function () {
-        if (document.readyState !== "complete") {
-            document.readyState = "complete";
-        }
-    };
-    if (isBrowser) {
-        if (document.addEventListener) {
-            if (!document.readyState) {
-                document.readyState = "loading";
-                window.addEventListener("load", req.pageLoaded, false);
-            }
-        }
-    }
-
-    //Set up default context. If require was a configuration object, use that as base config.
-    req(cfg);
-
-    //If modules are built into require.js, then need to make sure dependencies are
-    //traced. Use a setTimeout in the browser world, to allow all the modules to register
-    //themselves. In a non-browser env, assume that modules are not built into require.js,
-    //which seems odd to do on the server.
-    if (req.isAsync && typeof setTimeout !== "undefined") {
-        ctx = s.contexts[(cfg.context || defContextName)];
-        //Indicate that the script that includes require() is still loading,
-        //so that require()'d dependencies are not traced until the end of the
-        //file is parsed (approximated via the setTimeout call).
-        ctx.requireWait = true;
-        setTimeout(function () {
-            ctx.requireWait = false;
-
-            if (!ctx.scriptCount) {
-                ctx.resume();
-            }
-            req.checkReadyState();
-        }, 0);
-    }
-}());
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/external/requirejs/text.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/external/requirejs/text.js
deleted file mode 100644 (file)
index 6ef7422..0000000
+++ /dev/null
@@ -1,283 +0,0 @@
-/**
- * @license RequireJS text 1.0.2 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-/*jslint regexp: false, nomen: false, plusplus: false, strict: false */
-/*global require: false, XMLHttpRequest: false, ActiveXObject: false,
-  define: false, window: false, process: false, Packages: false,
-  java: false, location: false */
-
-(function () {
-    var progIds = ['Msxml2.XMLHTTP', 'Microsoft.XMLHTTP', 'Msxml2.XMLHTTP.4.0'],
-        xmlRegExp = /^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,
-        bodyRegExp = /<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,
-        hasLocation = typeof location !== 'undefined' && location.href,
-        defaultProtocol = hasLocation && location.protocol && location.protocol.replace(/\:/, ''),
-        defaultHostName = hasLocation && location.hostname,
-        defaultPort = hasLocation && (location.port || undefined),
-        buildMap = [];
-
-    define(function () {
-        var text, get, fs;
-
-        if (typeof window !== "undefined" && window.navigator && window.document) {
-            get = function (url, callback) {
-                var xhr = text.createXhr();
-                xhr.open('GET', url, true);
-                xhr.onreadystatechange = function (evt) {
-                    //Do not explicitly handle errors, those should be
-                    //visible via console output in the browser.
-                    if (xhr.readyState === 4) {
-                        callback(xhr.responseText);
-                    }
-                };
-                xhr.send(null);
-            };
-        } else if (typeof process !== "undefined" &&
-                 process.versions &&
-                 !!process.versions.node) {
-            //Using special require.nodeRequire, something added by r.js.
-            fs = require.nodeRequire('fs');
-
-            get = function (url, callback) {
-                callback(fs.readFileSync(url, 'utf8'));
-            };
-        } else if (typeof Packages !== 'undefined') {
-            //Why Java, why is this so awkward?
-            get = function (url, callback) {
-                var encoding = "utf-8",
-                    file = new java.io.File(url),
-                    lineSeparator = java.lang.System.getProperty("line.separator"),
-                    input = new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(file), encoding)),
-                    stringBuffer, line,
-                    content = '';
-                try {
-                    stringBuffer = new java.lang.StringBuffer();
-                    line = input.readLine();
-
-                    // Byte Order Mark (BOM) - The Unicode Standard, version 3.0, page 324
-                    // http://www.unicode.org/faq/utf_bom.html
-
-                    // Note that when we use utf-8, the BOM should appear as "EF BB BF", but it doesn't due to this bug in the JDK:
-                    // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4508058
-                    if (line && line.length() && line.charAt(0) === 0xfeff) {
-                        // Eat the BOM, since we've already found the encoding on this file,
-                        // and we plan to concatenating this buffer with others; the BOM should
-                        // only appear at the top of a file.
-                        line = line.substring(1);
-                    }
-
-                    stringBuffer.append(line);
-
-                    while ((line = input.readLine()) !== null) {
-                        stringBuffer.append(lineSeparator);
-                        stringBuffer.append(line);
-                    }
-                    //Make sure we return a JavaScript string and not a Java string.
-                    content = String(stringBuffer.toString()); //String
-                } finally {
-                    input.close();
-                }
-                callback(content);
-            };
-        }
-
-        text = {
-            version: '1.0.2',
-
-            strip: function (content) {
-                //Strips <?xml ...?> declarations so that external SVG and XML
-                //documents can be added to a document without worry. Also, if the string
-                //is an HTML document, only the part inside the body tag is returned.
-                if (content) {
-                    content = content.replace(xmlRegExp, "");
-                    var matches = content.match(bodyRegExp);
-                    if (matches) {
-                        content = matches[1];
-                    }
-                } else {
-                    content = "";
-                }
-                return content;
-            },
-
-            jsEscape: function (content) {
-                return content.replace(/(['\\])/g, '\\$1')
-                    .replace(/[\f]/g, "\\f")
-                    .replace(/[\b]/g, "\\b")
-                    .replace(/[\n]/g, "\\n")
-                    .replace(/[\t]/g, "\\t")
-                    .replace(/[\r]/g, "\\r");
-            },
-
-            createXhr: function () {
-                //Would love to dump the ActiveX crap in here. Need IE 6 to die first.
-                var xhr, i, progId;
-                if (typeof XMLHttpRequest !== "undefined") {
-                    return new XMLHttpRequest();
-                } else {
-                    for (i = 0; i < 3; i++) {
-                        progId = progIds[i];
-                        try {
-                            xhr = new ActiveXObject(progId);
-                        } catch (e) {}
-
-                        if (xhr) {
-                            progIds = [progId];  // so faster next time
-                            break;
-                        }
-                    }
-                }
-
-                if (!xhr) {
-                    throw new Error("createXhr(): XMLHttpRequest not available");
-                }
-
-                return xhr;
-            },
-
-            get: get,
-
-            /**
-             * Parses a resource name into its component parts. Resource names
-             * look like: module/name.ext!strip, where the !strip part is
-             * optional.
-             * @param {String} name the resource name
-             * @returns {Object} with properties "moduleName", "ext" and "strip"
-             * where strip is a boolean.
-             */
-            parseName: function (name) {
-                var strip = false, index = name.indexOf("."),
-                    modName = name.substring(0, index),
-                    ext = name.substring(index + 1, name.length);
-
-                index = ext.indexOf("!");
-                if (index !== -1) {
-                    //Pull off the strip arg.
-                    strip = ext.substring(index + 1, ext.length);
-                    strip = strip === "strip";
-                    ext = ext.substring(0, index);
-                }
-
-                return {
-                    moduleName: modName,
-                    ext: ext,
-                    strip: strip
-                };
-            },
-
-            xdRegExp: /^((\w+)\:)?\/\/([^\/\\]+)/,
-
-            /**
-             * Is an URL on another domain. Only works for browser use, returns
-             * false in non-browser environments. Only used to know if an
-             * optimized .js version of a text resource should be loaded
-             * instead.
-             * @param {String} url
-             * @returns Boolean
-             */
-            useXhr: function (url, protocol, hostname, port) {
-                var match = text.xdRegExp.exec(url),
-                    uProtocol, uHostName, uPort;
-                if (!match) {
-                    return true;
-                }
-                uProtocol = match[2];
-                uHostName = match[3];
-
-                uHostName = uHostName.split(':');
-                uPort = uHostName[1];
-                uHostName = uHostName[0];
-
-                return (!uProtocol || uProtocol === protocol) &&
-                       (!uHostName || uHostName === hostname) &&
-                       ((!uPort && !uHostName) || uPort === port);
-            },
-
-            finishLoad: function (name, strip, content, onLoad, config) {
-                content = strip ? text.strip(content) : content;
-                if (config.isBuild) {
-                    buildMap[name] = content;
-                }
-                onLoad(content);
-            },
-
-            load: function (name, req, onLoad, config) {
-                //Name has format: some.module.filext!strip
-                //The strip part is optional.
-                //if strip is present, then that means only get the string contents
-                //inside a body tag in an HTML string. For XML/SVG content it means
-                //removing the <?xml ...?> declarations so the content can be inserted
-                //into the current doc without problems.
-
-                // Do not bother with the work if a build and text will
-                // not be inlined.
-                if (config.isBuild && !config.inlineText) {
-                    onLoad();
-                    return;
-                }
-
-                var parsed = text.parseName(name),
-                    nonStripName = parsed.moduleName + '.' + parsed.ext,
-                    url = req.toUrl(nonStripName),
-                    useXhr = (config && config.text && config.text.useXhr) ||
-                             text.useXhr;
-
-                //Load the text. Use XHR if possible and in a browser.
-                if (!hasLocation || useXhr(url, defaultProtocol, defaultHostName, defaultPort)) {
-                    text.get(url, function (content) {
-                        text.finishLoad(name, parsed.strip, content, onLoad, config);
-                    });
-                } else {
-                    //Need to fetch the resource across domains. Assume
-                    //the resource has been optimized into a JS module. Fetch
-                    //by the module name + extension, but do not include the
-                    //!strip part to avoid file system issues.
-                    req([nonStripName], function (content) {
-                        text.finishLoad(parsed.moduleName + '.' + parsed.ext,
-                                        parsed.strip, content, onLoad, config);
-                    });
-                }
-            },
-
-            write: function (pluginName, moduleName, write, config) {
-                if (moduleName in buildMap) {
-                    var content = text.jsEscape(buildMap[moduleName]);
-                    write.asModule(pluginName + "!" + moduleName,
-                                   "define(function () { return '" +
-                                       content +
-                                   "';});\n");
-                }
-            },
-
-            writeFile: function (pluginName, moduleName, req, write, config) {
-                var parsed = text.parseName(moduleName),
-                    nonStripName = parsed.moduleName + '.' + parsed.ext,
-                    //Use a '.js' file name so that it indicates it is a
-                    //script that can be loaded across domains.
-                    fileName = req.toUrl(parsed.moduleName + '.' +
-                                         parsed.ext) + '.js';
-
-                //Leverage own load() method to load plugin value, but only
-                //write out values that do not have the strip argument,
-                //to avoid any potential issues with ! in file names.
-                text.load(nonStripName, req, function (value) {
-                    //Use own write() method to construct full module value.
-                    //But need to create shell that translates writeFile's
-                    //write() to the right interface.
-                    var textWrite = function (contents) {
-                        return write(fileName, contents);
-                    };
-                    textWrite.asModule = function (moduleName, contents) {
-                        return write.asModule(moduleName, fileName, contents);
-                    };
-
-                    text.write(pluginName, nonStripName, textWrite, config);
-                }, config);
-            }
-        };
-
-        return text;
-    });
-}());
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/index.html
deleted file mode 100644 (file)
index 8eb9690..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile: Demos and Documentation</title>
-       <link rel="stylesheet"  href="css/themes/default/jquery.mobile.css" />
-       <link rel="stylesheet" href="docs/_assets/css/jqm-docs.css" />
-       <script src="js/jquery.js"></script>
-       <script src="docs/_assets/js/jqm-docs.js"></script>
-       <script src="js/"></script>
-       
-</head>
-<body>
-<div data-role="page" class="type-home">
-       <div data-role="content">
-               <p id="jqm-version">1.1.0 Final Release</p>
-
-
-               <div class="content-secondary">
-
-                       <div id="jqm-homeheader">
-                               <h1 id="jqm-logo"><img src="docs/_assets/images/jquery-logo.png" alt="jQuery Mobile Framework" /></h1>
-                               <p>A Touch-Optimized UI Framework built with jQuery and HTML5.</p>
-                       </div>
-
-
-                       <p class="intro"><strong>Welcome.</strong> jQuery Mobile is the easiest way to build sites and apps that are accessible on all popular smartphone, tablet and desktop devices. For jQuery 1.6.4 and 1.7.1.</p>
-
-                       <ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="f">
-                               <li data-role="list-divider">Overview</li>
-                               <li><a href="docs/about/intro.html">Intro to jQuery Mobile</a></li>
-                               <li><a href="docs/about/getting-started.html">Quick start guide</a></li>
-                               <li><a href="docs/about/features.html">Features</a></li>
-                               <li><a href="docs/about/accessibility.html">Accessibility</a></li>
-                               <li><a href="docs/about/platforms.html">Supported platforms</a></li>
-                       </ul>
-
-               </div><!--/content-primary-->
-
-               <div class="content-primary">
-                       <nav>
-
-
-                               <ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="b">
-                                       <li data-role="list-divider">Components</li>
-                                       <li><a href="docs/pages/index.html">Pages &amp; dialogs</a></li>
-                                       <li><a href="docs/toolbars/index.html">Toolbars</a></li>
-                                       <li><a href="docs/buttons/index.html">Buttons</a></li>
-                                       <li><a href="docs/content/index.html">Content formatting</a></li>
-                                       <li><a href="docs/forms/index.html">Form elements</a></li>
-                                       <li><a href="docs/lists/index.html">List views</a></li>
-
-                                       <li data-role="list-divider">API</li>
-                                       <li><a href="docs/api/globalconfig.html">Configuring defaults</a></li>
-                                       <li><a href="docs/api/events.html">Events</a></li>
-                                       <li><a href="docs/api/methods.html">Methods &amp; Utilities</a></li>
-                                       <li><a href="docs/api/data-attributes.html">Data attribute reference</a></li>
-                                       <li><a href="docs/api/themes.html">Theme framework</a></li>
-
-
-                               </ul>
-                       </nav>
-               </div>
-
-
-
-       </div>
-
-       <div data-role="footer" class="footer-docs" data-theme="c">
-                       <p>&copy; 2011-12 The jQuery Foundation</p>
-       </div>
-
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/index.php b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/index.php
deleted file mode 100644 (file)
index 5cb07fc..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-$type = 'text/javascript';
-$files = array(
-       '../LICENSE-INFO.txt',
-       // note that define is only included here as a means
-       // to revert to the pre async include, and should not be
-       // used in other build methods
-       'jquery.mobile.define.js',
-       'jquery.ui.widget.js',
-       'jquery.mobile.widget.js',
-       'jquery.mobile.media.js',
-       'jquery.mobile.support.js',
-       'jquery.mobile.vmouse.js',
-       'jquery.mobile.event.js',
-       'jquery.mobile.hashchange.js',
-       'jquery.mobile.page.js',
-       'jquery.mobile.core.js',
-       'jquery.mobile.navigation.js',
-       'jquery.mobile.navigation.pushstate.js',
-       'jquery.mobile.transition.js',
-       'jquery.mobile.transition.pop.js',
-       'jquery.mobile.transition.slide.js',
-       'jquery.mobile.transition.slidedown.js',
-       'jquery.mobile.transition.slideup.js',
-       'jquery.mobile.transition.flip.js',
-       'jquery.mobile.transition.flow.js',
-       'jquery.mobile.transition.turn.js',
-       'jquery.mobile.degradeInputs.js',
-       'jquery.mobile.dialog.js',
-       'jquery.mobile.page.sections.js',
-       'jquery.mobile.collapsible.js',
-       'jquery.mobile.collapsibleSet.js',
-       'jquery.mobile.fieldContain.js',
-       'jquery.mobile.grid.js',
-       'jquery.mobile.navbar.js',
-       'jquery.mobile.listview.js',
-       'jquery.mobile.listview.filter.js',
-       'jquery.mobile.nojs.js',
-       'jquery.mobile.forms.checkboxradio.js',
-       'jquery.mobile.forms.button.js',
-       'jquery.mobile.forms.slider.js',
-       'jquery.mobile.forms.textinput.js',
-       'jquery.mobile.forms.select.custom.js',
-       'jquery.mobile.forms.select.js',
-       'jquery.mobile.buttonMarkup.js',
-       'jquery.mobile.controlGroup.js',
-       'jquery.mobile.links.js',
-       'jquery.mobile.fixedToolbar.js',
-       'jquery.mobile.zoom.js',
-       'jquery.mobile.zoom.iosorientationfix.js',
-       'jquery.mobile.init.js'
-);
-
-require_once('../combine.php');
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery-1.6.4.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery-1.6.4.js
deleted file mode 100644 (file)
index 11e6d06..0000000
+++ /dev/null
@@ -1,9046 +0,0 @@
-/*!
- * jQuery JavaScript Library v1.6.4
- * http://jquery.com/
- *
- * Copyright 2011, John Resig
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- * Copyright 2011, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- *
- * Date: Mon Sep 12 18:54:48 2011 -0400
- */
-(function( window, undefined ) {
-
-// Use the correct document accordingly with window argument (sandbox)
-var document = window.document,
-       navigator = window.navigator,
-       location = window.location;
-var jQuery = (function() {
-
-// Define a local copy of jQuery
-var jQuery = function( selector, context ) {
-               // The jQuery object is actually just the init constructor 'enhanced'
-               return new jQuery.fn.init( selector, context, rootjQuery );
-       },
-
-       // Map over jQuery in case of overwrite
-       _jQuery = window.jQuery,
-
-       // Map over the $ in case of overwrite
-       _$ = window.$,
-
-       // A central reference to the root jQuery(document)
-       rootjQuery,
-
-       // A simple way to check for HTML strings or ID strings
-       // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
-       quickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
-
-       // Check if a string has a non-whitespace character in it
-       rnotwhite = /\S/,
-
-       // Used for trimming whitespace
-       trimLeft = /^\s+/,
-       trimRight = /\s+$/,
-
-       // Check for digits
-       rdigit = /\d/,
-
-       // Match a standalone tag
-       rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
-
-       // JSON RegExp
-       rvalidchars = /^[\],:{}\s]*$/,
-       rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
-       rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
-       rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
-
-       // Useragent RegExp
-       rwebkit = /(webkit)[ \/]([\w.]+)/,
-       ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,
-       rmsie = /(msie) ([\w.]+)/,
-       rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
-
-       // Matches dashed string for camelizing
-       rdashAlpha = /-([a-z]|[0-9])/ig,
-       rmsPrefix = /^-ms-/,
-
-       // Used by jQuery.camelCase as callback to replace()
-       fcamelCase = function( all, letter ) {
-               return ( letter + "" ).toUpperCase();
-       },
-
-       // Keep a UserAgent string for use with jQuery.browser
-       userAgent = navigator.userAgent,
-
-       // For matching the engine and version of the browser
-       browserMatch,
-
-       // The deferred used on DOM ready
-       readyList,
-
-       // The ready event handler
-       DOMContentLoaded,
-
-       // Save a reference to some core methods
-       toString = Object.prototype.toString,
-       hasOwn = Object.prototype.hasOwnProperty,
-       push = Array.prototype.push,
-       slice = Array.prototype.slice,
-       trim = String.prototype.trim,
-       indexOf = Array.prototype.indexOf,
-
-       // [[Class]] -> type pairs
-       class2type = {};
-
-jQuery.fn = jQuery.prototype = {
-       constructor: jQuery,
-       init: function( selector, context, rootjQuery ) {
-               var match, elem, ret, doc;
-
-               // Handle $(""), $(null), or $(undefined)
-               if ( !selector ) {
-                       return this;
-               }
-
-               // Handle $(DOMElement)
-               if ( selector.nodeType ) {
-                       this.context = this[0] = selector;
-                       this.length = 1;
-                       return this;
-               }
-
-               // The body element only exists once, optimize finding it
-               if ( selector === "body" && !context && document.body ) {
-                       this.context = document;
-                       this[0] = document.body;
-                       this.selector = selector;
-                       this.length = 1;
-                       return this;
-               }
-
-               // Handle HTML strings
-               if ( typeof selector === "string" ) {
-                       // Are we dealing with HTML string or an ID?
-                       if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
-                               // Assume that strings that start and end with <> are HTML and skip the regex check
-                               match = [ null, selector, null ];
-
-                       } else {
-                               match = quickExpr.exec( selector );
-                       }
-
-                       // Verify a match, and that no context was specified for #id
-                       if ( match && (match[1] || !context) ) {
-
-                               // HANDLE: $(html) -> $(array)
-                               if ( match[1] ) {
-                                       context = context instanceof jQuery ? context[0] : context;
-                                       doc = (context ? context.ownerDocument || context : document);
-
-                                       // If a single string is passed in and it's a single tag
-                                       // just do a createElement and skip the rest
-                                       ret = rsingleTag.exec( selector );
-
-                                       if ( ret ) {
-                                               if ( jQuery.isPlainObject( context ) ) {
-                                                       selector = [ document.createElement( ret[1] ) ];
-                                                       jQuery.fn.attr.call( selector, context, true );
-
-                                               } else {
-                                                       selector = [ doc.createElement( ret[1] ) ];
-                                               }
-
-                                       } else {
-                                               ret = jQuery.buildFragment( [ match[1] ], [ doc ] );
-                                               selector = (ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment).childNodes;
-                                       }
-
-                                       return jQuery.merge( this, selector );
-
-                               // HANDLE: $("#id")
-                               } else {
-                                       elem = document.getElementById( match[2] );
-
-                                       // Check parentNode to catch when Blackberry 4.6 returns
-                                       // nodes that are no longer in the document #6963
-                                       if ( elem && elem.parentNode ) {
-                                               // Handle the case where IE and Opera return items
-                                               // by name instead of ID
-                                               if ( elem.id !== match[2] ) {
-                                                       return rootjQuery.find( selector );
-                                               }
-
-                                               // Otherwise, we inject the element directly into the jQuery object
-                                               this.length = 1;
-                                               this[0] = elem;
-                                       }
-
-                                       this.context = document;
-                                       this.selector = selector;
-                                       return this;
-                               }
-
-                       // HANDLE: $(expr, $(...))
-                       } else if ( !context || context.jquery ) {
-                               return (context || rootjQuery).find( selector );
-
-                       // HANDLE: $(expr, context)
-                       // (which is just equivalent to: $(context).find(expr)
-                       } else {
-                               return this.constructor( context ).find( selector );
-                       }
-
-               // HANDLE: $(function)
-               // Shortcut for document ready
-               } else if ( jQuery.isFunction( selector ) ) {
-                       return rootjQuery.ready( selector );
-               }
-
-               if (selector.selector !== undefined) {
-                       this.selector = selector.selector;
-                       this.context = selector.context;
-               }
-
-               return jQuery.makeArray( selector, this );
-       },
-
-       // Start with an empty selector
-       selector: "",
-
-       // The current version of jQuery being used
-       jquery: "1.6.4",
-
-       // The default length of a jQuery object is 0
-       length: 0,
-
-       // The number of elements contained in the matched element set
-       size: function() {
-               return this.length;
-       },
-
-       toArray: function() {
-               return slice.call( this, 0 );
-       },
-
-       // Get the Nth element in the matched element set OR
-       // Get the whole matched element set as a clean array
-       get: function( num ) {
-               return num == null ?
-
-                       // Return a 'clean' array
-                       this.toArray() :
-
-                       // Return just the object
-                       ( num < 0 ? this[ this.length + num ] : this[ num ] );
-       },
-
-       // Take an array of elements and push it onto the stack
-       // (returning the new matched element set)
-       pushStack: function( elems, name, selector ) {
-               // Build a new jQuery matched element set
-               var ret = this.constructor();
-
-               if ( jQuery.isArray( elems ) ) {
-                       push.apply( ret, elems );
-
-               } else {
-                       jQuery.merge( ret, elems );
-               }
-
-               // Add the old object onto the stack (as a reference)
-               ret.prevObject = this;
-
-               ret.context = this.context;
-
-               if ( name === "find" ) {
-                       ret.selector = this.selector + (this.selector ? " " : "") + selector;
-               } else if ( name ) {
-                       ret.selector = this.selector + "." + name + "(" + selector + ")";
-               }
-
-               // Return the newly-formed element set
-               return ret;
-       },
-
-       // Execute a callback for every element in the matched set.
-       // (You can seed the arguments with an array of args, but this is
-       // only used internally.)
-       each: function( callback, args ) {
-               return jQuery.each( this, callback, args );
-       },
-
-       ready: function( fn ) {
-               // Attach the listeners
-               jQuery.bindReady();
-
-               // Add the callback
-               readyList.done( fn );
-
-               return this;
-       },
-
-       eq: function( i ) {
-               return i === -1 ?
-                       this.slice( i ) :
-                       this.slice( i, +i + 1 );
-       },
-
-       first: function() {
-               return this.eq( 0 );
-       },
-
-       last: function() {
-               return this.eq( -1 );
-       },
-
-       slice: function() {
-               return this.pushStack( slice.apply( this, arguments ),
-                       "slice", slice.call(arguments).join(",") );
-       },
-
-       map: function( callback ) {
-               return this.pushStack( jQuery.map(this, function( elem, i ) {
-                       return callback.call( elem, i, elem );
-               }));
-       },
-
-       end: function() {
-               return this.prevObject || this.constructor(null);
-       },
-
-       // For internal use only.
-       // Behaves like an Array's method, not like a jQuery method.
-       push: push,
-       sort: [].sort,
-       splice: [].splice
-};
-
-// Give the init function the jQuery prototype for later instantiation
-jQuery.fn.init.prototype = jQuery.fn;
-
-jQuery.extend = jQuery.fn.extend = function() {
-       var options, name, src, copy, copyIsArray, clone,
-               target = arguments[0] || {},
-               i = 1,
-               length = arguments.length,
-               deep = false;
-
-       // Handle a deep copy situation
-       if ( typeof target === "boolean" ) {
-               deep = target;
-               target = arguments[1] || {};
-               // skip the boolean and the target
-               i = 2;
-       }
-
-       // Handle case when target is a string or something (possible in deep copy)
-       if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
-               target = {};
-       }
-
-       // extend jQuery itself if only one argument is passed
-       if ( length === i ) {
-               target = this;
-               --i;
-       }
-
-       for ( ; i < length; i++ ) {
-               // Only deal with non-null/undefined values
-               if ( (options = arguments[ i ]) != null ) {
-                       // Extend the base object
-                       for ( name in options ) {
-                               src = target[ name ];
-                               copy = options[ name ];
-
-                               // Prevent never-ending loop
-                               if ( target === copy ) {
-                                       continue;
-                               }
-
-                               // Recurse if we're merging plain objects or arrays
-                               if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
-                                       if ( copyIsArray ) {
-                                               copyIsArray = false;
-                                               clone = src && jQuery.isArray(src) ? src : [];
-
-                                       } else {
-                                               clone = src && jQuery.isPlainObject(src) ? src : {};
-                                       }
-
-                                       // Never move original objects, clone them
-                                       target[ name ] = jQuery.extend( deep, clone, copy );
-
-                               // Don't bring in undefined values
-                               } else if ( copy !== undefined ) {
-                                       target[ name ] = copy;
-                               }
-                       }
-               }
-       }
-
-       // Return the modified object
-       return target;
-};
-
-jQuery.extend({
-       noConflict: function( deep ) {
-               if ( window.$ === jQuery ) {
-                       window.$ = _$;
-               }
-
-               if ( deep && window.jQuery === jQuery ) {
-                       window.jQuery = _jQuery;
-               }
-
-               return jQuery;
-       },
-
-       // Is the DOM ready to be used? Set to true once it occurs.
-       isReady: false,
-
-       // A counter to track how many items to wait for before
-       // the ready event fires. See #6781
-       readyWait: 1,
-
-       // Hold (or release) the ready event
-       holdReady: function( hold ) {
-               if ( hold ) {
-                       jQuery.readyWait++;
-               } else {
-                       jQuery.ready( true );
-               }
-       },
-
-       // Handle when the DOM is ready
-       ready: function( wait ) {
-               // Either a released hold or an DOMready/load event and not yet ready
-               if ( (wait === true && !--jQuery.readyWait) || (wait !== true && !jQuery.isReady) ) {
-                       // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
-                       if ( !document.body ) {
-                               return setTimeout( jQuery.ready, 1 );
-                       }
-
-                       // Remember that the DOM is ready
-                       jQuery.isReady = true;
-
-                       // If a normal DOM Ready event fired, decrement, and wait if need be
-                       if ( wait !== true && --jQuery.readyWait > 0 ) {
-                               return;
-                       }
-
-                       // If there are functions bound, to execute
-                       readyList.resolveWith( document, [ jQuery ] );
-
-                       // Trigger any bound ready events
-                       if ( jQuery.fn.trigger ) {
-                               jQuery( document ).trigger( "ready" ).unbind( "ready" );
-                       }
-               }
-       },
-
-       bindReady: function() {
-               if ( readyList ) {
-                       return;
-               }
-
-               readyList = jQuery._Deferred();
-
-               // Catch cases where $(document).ready() is called after the
-               // browser event has already occurred.
-               if ( document.readyState === "complete" ) {
-                       // Handle it asynchronously to allow scripts the opportunity to delay ready
-                       return setTimeout( jQuery.ready, 1 );
-               }
-
-               // Mozilla, Opera and webkit nightlies currently support this event
-               if ( document.addEventListener ) {
-                       // Use the handy event callback
-                       document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
-
-                       // A fallback to window.onload, that will always work
-                       window.addEventListener( "load", jQuery.ready, false );
-
-               // If IE event model is used
-               } else if ( document.attachEvent ) {
-                       // ensure firing before onload,
-                       // maybe late but safe also for iframes
-                       document.attachEvent( "onreadystatechange", DOMContentLoaded );
-
-                       // A fallback to window.onload, that will always work
-                       window.attachEvent( "onload", jQuery.ready );
-
-                       // If IE and not a frame
-                       // continually check to see if the document is ready
-                       var toplevel = false;
-
-                       try {
-                               toplevel = window.frameElement == null;
-                       } catch(e) {}
-
-                       if ( document.documentElement.doScroll && toplevel ) {
-                               doScrollCheck();
-                       }
-               }
-       },
-
-       // See test/unit/core.js for details concerning isFunction.
-       // Since version 1.3, DOM methods and functions like alert
-       // aren't supported. They return false on IE (#2968).
-       isFunction: function( obj ) {
-               return jQuery.type(obj) === "function";
-       },
-
-       isArray: Array.isArray || function( obj ) {
-               return jQuery.type(obj) === "array";
-       },
-
-       // A crude way of determining if an object is a window
-       isWindow: function( obj ) {
-               return obj && typeof obj === "object" && "setInterval" in obj;
-       },
-
-       isNaN: function( obj ) {
-               return obj == null || !rdigit.test( obj ) || isNaN( obj );
-       },
-
-       type: function( obj ) {
-               return obj == null ?
-                       String( obj ) :
-                       class2type[ toString.call(obj) ] || "object";
-       },
-
-       isPlainObject: function( obj ) {
-               // Must be an Object.
-               // Because of IE, we also have to check the presence of the constructor property.
-               // Make sure that DOM nodes and window objects don't pass through, as well
-               if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
-                       return false;
-               }
-
-               try {
-                       // Not own constructor property must be Object
-                       if ( obj.constructor &&
-                               !hasOwn.call(obj, "constructor") &&
-                               !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
-                               return false;
-                       }
-               } catch ( e ) {
-                       // IE8,9 Will throw exceptions on certain host objects #9897
-                       return false;
-               }
-
-               // Own properties are enumerated firstly, so to speed up,
-               // if last one is own, then all properties are own.
-
-               var key;
-               for ( key in obj ) {}
-
-               return key === undefined || hasOwn.call( obj, key );
-       },
-
-       isEmptyObject: function( obj ) {
-               for ( var name in obj ) {
-                       return false;
-               }
-               return true;
-       },
-
-       error: function( msg ) {
-               throw msg;
-       },
-
-       parseJSON: function( data ) {
-               if ( typeof data !== "string" || !data ) {
-                       return null;
-               }
-
-               // Make sure leading/trailing whitespace is removed (IE can't handle it)
-               data = jQuery.trim( data );
-
-               // Attempt to parse using the native JSON parser first
-               if ( window.JSON && window.JSON.parse ) {
-                       return window.JSON.parse( data );
-               }
-
-               // Make sure the incoming data is actual JSON
-               // Logic borrowed from http://json.org/json2.js
-               if ( rvalidchars.test( data.replace( rvalidescape, "@" )
-                       .replace( rvalidtokens, "]" )
-                       .replace( rvalidbraces, "")) ) {
-
-                       return (new Function( "return " + data ))();
-
-               }
-               jQuery.error( "Invalid JSON: " + data );
-       },
-
-       // Cross-browser xml parsing
-       parseXML: function( data ) {
-               var xml, tmp;
-               try {
-                       if ( window.DOMParser ) { // Standard
-                               tmp = new DOMParser();
-                               xml = tmp.parseFromString( data , "text/xml" );
-                       } else { // IE
-                               xml = new ActiveXObject( "Microsoft.XMLDOM" );
-                               xml.async = "false";
-                               xml.loadXML( data );
-                       }
-               } catch( e ) {
-                       xml = undefined;
-               }
-               if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
-                       jQuery.error( "Invalid XML: " + data );
-               }
-               return xml;
-       },
-
-       noop: function() {},
-
-       // Evaluates a script in a global context
-       // Workarounds based on findings by Jim Driscoll
-       // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
-       globalEval: function( data ) {
-               if ( data && rnotwhite.test( data ) ) {
-                       // We use execScript on Internet Explorer
-                       // We use an anonymous function so that context is window
-                       // rather than jQuery in Firefox
-                       ( window.execScript || function( data ) {
-                               window[ "eval" ].call( window, data );
-                       } )( data );
-               }
-       },
-
-       // Convert dashed to camelCase; used by the css and data modules
-       // Microsoft forgot to hump their vendor prefix (#9572)
-       camelCase: function( string ) {
-               return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
-       },
-
-       nodeName: function( elem, name ) {
-               return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
-       },
-
-       // args is for internal usage only
-       each: function( object, callback, args ) {
-               var name, i = 0,
-                       length = object.length,
-                       isObj = length === undefined || jQuery.isFunction( object );
-
-               if ( args ) {
-                       if ( isObj ) {
-                               for ( name in object ) {
-                                       if ( callback.apply( object[ name ], args ) === false ) {
-                                               break;
-                                       }
-                               }
-                       } else {
-                               for ( ; i < length; ) {
-                                       if ( callback.apply( object[ i++ ], args ) === false ) {
-                                               break;
-                                       }
-                               }
-                       }
-
-               // A special, fast, case for the most common use of each
-               } else {
-                       if ( isObj ) {
-                               for ( name in object ) {
-                                       if ( callback.call( object[ name ], name, object[ name ] ) === false ) {
-                                               break;
-                                       }
-                               }
-                       } else {
-                               for ( ; i < length; ) {
-                                       if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) {
-                                               break;
-                                       }
-                               }
-                       }
-               }
-
-               return object;
-       },
-
-       // Use native String.trim function wherever possible
-       trim: trim ?
-               function( text ) {
-                       return text == null ?
-                               "" :
-                               trim.call( text );
-               } :
-
-               // Otherwise use our own trimming functionality
-               function( text ) {
-                       return text == null ?
-                               "" :
-                               text.toString().replace( trimLeft, "" ).replace( trimRight, "" );
-               },
-
-       // results is for internal usage only
-       makeArray: function( array, results ) {
-               var ret = results || [];
-
-               if ( array != null ) {
-                       // The window, strings (and functions) also have 'length'
-                       // The extra typeof function check is to prevent crashes
-                       // in Safari 2 (See: #3039)
-                       // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
-                       var type = jQuery.type( array );
-
-                       if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) {
-                               push.call( ret, array );
-                       } else {
-                               jQuery.merge( ret, array );
-                       }
-               }
-
-               return ret;
-       },
-
-       inArray: function( elem, array ) {
-               if ( !array ) {
-                       return -1;
-               }
-
-               if ( indexOf ) {
-                       return indexOf.call( array, elem );
-               }
-
-               for ( var i = 0, length = array.length; i < length; i++ ) {
-                       if ( array[ i ] === elem ) {
-                               return i;
-                       }
-               }
-
-               return -1;
-       },
-
-       merge: function( first, second ) {
-               var i = first.length,
-                       j = 0;
-
-               if ( typeof second.length === "number" ) {
-                       for ( var l = second.length; j < l; j++ ) {
-                               first[ i++ ] = second[ j ];
-                       }
-
-               } else {
-                       while ( second[j] !== undefined ) {
-                               first[ i++ ] = second[ j++ ];
-                       }
-               }
-
-               first.length = i;
-
-               return first;
-       },
-
-       grep: function( elems, callback, inv ) {
-               var ret = [], retVal;
-               inv = !!inv;
-
-               // Go through the array, only saving the items
-               // that pass the validator function
-               for ( var i = 0, length = elems.length; i < length; i++ ) {
-                       retVal = !!callback( elems[ i ], i );
-                       if ( inv !== retVal ) {
-                               ret.push( elems[ i ] );
-                       }
-               }
-
-               return ret;
-       },
-
-       // arg is for internal usage only
-       map: function( elems, callback, arg ) {
-               var value, key, ret = [],
-                       i = 0,
-                       length = elems.length,
-                       // jquery objects are treated as arrays
-                       isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ;
-
-               // Go through the array, translating each of the items to their
-               if ( isArray ) {
-                       for ( ; i < length; i++ ) {
-                               value = callback( elems[ i ], i, arg );
-
-                               if ( value != null ) {
-                                       ret[ ret.length ] = value;
-                               }
-                       }
-
-               // Go through every key on the object,
-               } else {
-                       for ( key in elems ) {
-                               value = callback( elems[ key ], key, arg );
-
-                               if ( value != null ) {
-                                       ret[ ret.length ] = value;
-                               }
-                       }
-               }
-
-               // Flatten any nested arrays
-               return ret.concat.apply( [], ret );
-       },
-
-       // A global GUID counter for objects
-       guid: 1,
-
-       // Bind a function to a context, optionally partially applying any
-       // arguments.
-       proxy: function( fn, context ) {
-               if ( typeof context === "string" ) {
-                       var tmp = fn[ context ];
-                       context = fn;
-                       fn = tmp;
-               }
-
-               // Quick check to determine if target is callable, in the spec
-               // this throws a TypeError, but we will just return undefined.
-               if ( !jQuery.isFunction( fn ) ) {
-                       return undefined;
-               }
-
-               // Simulated bind
-               var args = slice.call( arguments, 2 ),
-                       proxy = function() {
-                               return fn.apply( context, args.concat( slice.call( arguments ) ) );
-                       };
-
-               // Set the guid of unique handler to the same of original handler, so it can be removed
-               proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;
-
-               return proxy;
-       },
-
-       // Mutifunctional method to get and set values to a collection
-       // The value/s can optionally be executed if it's a function
-       access: function( elems, key, value, exec, fn, pass ) {
-               var length = elems.length;
-
-               // Setting many attributes
-               if ( typeof key === "object" ) {
-                       for ( var k in key ) {
-                               jQuery.access( elems, k, key[k], exec, fn, value );
-                       }
-                       return elems;
-               }
-
-               // Setting one attribute
-               if ( value !== undefined ) {
-                       // Optionally, function values get executed if exec is true
-                       exec = !pass && exec && jQuery.isFunction(value);
-
-                       for ( var i = 0; i < length; i++ ) {
-                               fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
-                       }
-
-                       return elems;
-               }
-
-               // Getting an attribute
-               return length ? fn( elems[0], key ) : undefined;
-       },
-
-       now: function() {
-               return (new Date()).getTime();
-       },
-
-       // Use of jQuery.browser is frowned upon.
-       // More details: http://docs.jquery.com/Utilities/jQuery.browser
-       uaMatch: function( ua ) {
-               ua = ua.toLowerCase();
-
-               var match = rwebkit.exec( ua ) ||
-                       ropera.exec( ua ) ||
-                       rmsie.exec( ua ) ||
-                       ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||
-                       [];
-
-               return { browser: match[1] || "", version: match[2] || "0" };
-       },
-
-       sub: function() {
-               function jQuerySub( selector, context ) {
-                       return new jQuerySub.fn.init( selector, context );
-               }
-               jQuery.extend( true, jQuerySub, this );
-               jQuerySub.superclass = this;
-               jQuerySub.fn = jQuerySub.prototype = this();
-               jQuerySub.fn.constructor = jQuerySub;
-               jQuerySub.sub = this.sub;
-               jQuerySub.fn.init = function init( selector, context ) {
-                       if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {
-                               context = jQuerySub( context );
-                       }
-
-                       return jQuery.fn.init.call( this, selector, context, rootjQuerySub );
-               };
-               jQuerySub.fn.init.prototype = jQuerySub.fn;
-               var rootjQuerySub = jQuerySub(document);
-               return jQuerySub;
-       },
-
-       browser: {}
-});
-
-// Populate the class2type map
-jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {
-       class2type[ "[object " + name + "]" ] = name.toLowerCase();
-});
-
-browserMatch = jQuery.uaMatch( userAgent );
-if ( browserMatch.browser ) {
-       jQuery.browser[ browserMatch.browser ] = true;
-       jQuery.browser.version = browserMatch.version;
-}
-
-// Deprecated, use jQuery.browser.webkit instead
-if ( jQuery.browser.webkit ) {
-       jQuery.browser.safari = true;
-}
-
-// IE doesn't match non-breaking spaces with \s
-if ( rnotwhite.test( "\xA0" ) ) {
-       trimLeft = /^[\s\xA0]+/;
-       trimRight = /[\s\xA0]+$/;
-}
-
-// All jQuery objects should point back to these
-rootjQuery = jQuery(document);
-
-// Cleanup functions for the document ready method
-if ( document.addEventListener ) {
-       DOMContentLoaded = function() {
-               document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
-               jQuery.ready();
-       };
-
-} else if ( document.attachEvent ) {
-       DOMContentLoaded = function() {
-               // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
-               if ( document.readyState === "complete" ) {
-                       document.detachEvent( "onreadystatechange", DOMContentLoaded );
-                       jQuery.ready();
-               }
-       };
-}
-
-// The DOM ready check for Internet Explorer
-function doScrollCheck() {
-       if ( jQuery.isReady ) {
-               return;
-       }
-
-       try {
-               // If IE is used, use the trick by Diego Perini
-               // http://javascript.nwbox.com/IEContentLoaded/
-               document.documentElement.doScroll("left");
-       } catch(e) {
-               setTimeout( doScrollCheck, 1 );
-               return;
-       }
-
-       // and execute any waiting functions
-       jQuery.ready();
-}
-
-return jQuery;
-
-})();
-
-
-var // Promise methods
-       promiseMethods = "done fail isResolved isRejected promise then always pipe".split( " " ),
-       // Static reference to slice
-       sliceDeferred = [].slice;
-
-jQuery.extend({
-       // Create a simple deferred (one callbacks list)
-       _Deferred: function() {
-               var // callbacks list
-                       callbacks = [],
-                       // stored [ context , args ]
-                       fired,
-                       // to avoid firing when already doing so
-                       firing,
-                       // flag to know if the deferred has been cancelled
-                       cancelled,
-                       // the deferred itself
-                       deferred  = {
-
-                               // done( f1, f2, ...)
-                               done: function() {
-                                       if ( !cancelled ) {
-                                               var args = arguments,
-                                                       i,
-                                                       length,
-                                                       elem,
-                                                       type,
-                                                       _fired;
-                                               if ( fired ) {
-                                                       _fired = fired;
-                                                       fired = 0;
-                                               }
-                                               for ( i = 0, length = args.length; i < length; i++ ) {
-                                                       elem = args[ i ];
-                                                       type = jQuery.type( elem );
-                                                       if ( type === "array" ) {
-                                                               deferred.done.apply( deferred, elem );
-                                                       } else if ( type === "function" ) {
-                                                               callbacks.push( elem );
-                                                       }
-                                               }
-                                               if ( _fired ) {
-                                                       deferred.resolveWith( _fired[ 0 ], _fired[ 1 ] );
-                                               }
-                                       }
-                                       return this;
-                               },
-
-                               // resolve with given context and args
-                               resolveWith: function( context, args ) {
-                                       if ( !cancelled && !fired && !firing ) {
-                                               // make sure args are available (#8421)
-                                               args = args || [];
-                                               firing = 1;
-                                               try {
-                                                       while( callbacks[ 0 ] ) {
-                                                               callbacks.shift().apply( context, args );
-                                                       }
-                                               }
-                                               finally {
-                                                       fired = [ context, args ];
-                                                       firing = 0;
-                                               }
-                                       }
-                                       return this;
-                               },
-
-                               // resolve with this as context and given arguments
-                               resolve: function() {
-                                       deferred.resolveWith( this, arguments );
-                                       return this;
-                               },
-
-                               // Has this deferred been resolved?
-                               isResolved: function() {
-                                       return !!( firing || fired );
-                               },
-
-                               // Cancel
-                               cancel: function() {
-                                       cancelled = 1;
-                                       callbacks = [];
-                                       return this;
-                               }
-                       };
-
-               return deferred;
-       },
-
-       // Full fledged deferred (two callbacks list)
-       Deferred: function( func ) {
-               var deferred = jQuery._Deferred(),
-                       failDeferred = jQuery._Deferred(),
-                       promise;
-               // Add errorDeferred methods, then and promise
-               jQuery.extend( deferred, {
-                       then: function( doneCallbacks, failCallbacks ) {
-                               deferred.done( doneCallbacks ).fail( failCallbacks );
-                               return this;
-                       },
-                       always: function() {
-                               return deferred.done.apply( deferred, arguments ).fail.apply( this, arguments );
-                       },
-                       fail: failDeferred.done,
-                       rejectWith: failDeferred.resolveWith,
-                       reject: failDeferred.resolve,
-                       isRejected: failDeferred.isResolved,
-                       pipe: function( fnDone, fnFail ) {
-                               return jQuery.Deferred(function( newDefer ) {
-                                       jQuery.each( {
-                                               done: [ fnDone, "resolve" ],
-                                               fail: [ fnFail, "reject" ]
-                                       }, function( handler, data ) {
-                                               var fn = data[ 0 ],
-                                                       action = data[ 1 ],
-                                                       returned;
-                                               if ( jQuery.isFunction( fn ) ) {
-                                                       deferred[ handler ](function() {
-                                                               returned = fn.apply( this, arguments );
-                                                               if ( returned && jQuery.isFunction( returned.promise ) ) {
-                                                                       returned.promise().then( newDefer.resolve, newDefer.reject );
-                                                               } else {
-                                                                       newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] );
-                                                               }
-                                                       });
-                                               } else {
-                                                       deferred[ handler ]( newDefer[ action ] );
-                                               }
-                                       });
-                               }).promise();
-                       },
-                       // Get a promise for this deferred
-                       // If obj is provided, the promise aspect is added to the object
-                       promise: function( obj ) {
-                               if ( obj == null ) {
-                                       if ( promise ) {
-                                               return promise;
-                                       }
-                                       promise = obj = {};
-                               }
-                               var i = promiseMethods.length;
-                               while( i-- ) {
-                                       obj[ promiseMethods[i] ] = deferred[ promiseMethods[i] ];
-                               }
-                               return obj;
-                       }
-               });
-               // Make sure only one callback list will be used
-               deferred.done( failDeferred.cancel ).fail( deferred.cancel );
-               // Unexpose cancel
-               delete deferred.cancel;
-               // Call given func if any
-               if ( func ) {
-                       func.call( deferred, deferred );
-               }
-               return deferred;
-       },
-
-       // Deferred helper
-       when: function( firstParam ) {
-               var args = arguments,
-                       i = 0,
-                       length = args.length,
-                       count = length,
-                       deferred = length <= 1 && firstParam && jQuery.isFunction( firstParam.promise ) ?
-                               firstParam :
-                               jQuery.Deferred();
-               function resolveFunc( i ) {
-                       return function( value ) {
-                               args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
-                               if ( !( --count ) ) {
-                                       // Strange bug in FF4:
-                                       // Values changed onto the arguments object sometimes end up as undefined values
-                                       // outside the $.when method. Cloning the object into a fresh array solves the issue
-                                       deferred.resolveWith( deferred, sliceDeferred.call( args, 0 ) );
-                               }
-                       };
-               }
-               if ( length > 1 ) {
-                       for( ; i < length; i++ ) {
-                               if ( args[ i ] && jQuery.isFunction( args[ i ].promise ) ) {
-                                       args[ i ].promise().then( resolveFunc(i), deferred.reject );
-                               } else {
-                                       --count;
-                               }
-                       }
-                       if ( !count ) {
-                               deferred.resolveWith( deferred, args );
-                       }
-               } else if ( deferred !== firstParam ) {
-                       deferred.resolveWith( deferred, length ? [ firstParam ] : [] );
-               }
-               return deferred.promise();
-       }
-});
-
-
-
-jQuery.support = (function() {
-
-       var div = document.createElement( "div" ),
-               documentElement = document.documentElement,
-               all,
-               a,
-               select,
-               opt,
-               input,
-               marginDiv,
-               support,
-               fragment,
-               body,
-               testElementParent,
-               testElement,
-               testElementStyle,
-               tds,
-               events,
-               eventName,
-               i,
-               isSupported;
-
-       // Preliminary tests
-       div.setAttribute("className", "t");
-       div.innerHTML = "   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
-
-
-       all = div.getElementsByTagName( "*" );
-       a = div.getElementsByTagName( "a" )[ 0 ];
-
-       // Can't get basic test support
-       if ( !all || !all.length || !a ) {
-               return {};
-       }
-
-       // First batch of supports tests
-       select = document.createElement( "select" );
-       opt = select.appendChild( document.createElement("option") );
-       input = div.getElementsByTagName( "input" )[ 0 ];
-
-       support = {
-               // IE strips leading whitespace when .innerHTML is used
-               leadingWhitespace: ( div.firstChild.nodeType === 3 ),
-
-               // Make sure that tbody elements aren't automatically inserted
-               // IE will insert them into empty tables
-               tbody: !div.getElementsByTagName( "tbody" ).length,
-
-               // Make sure that link elements get serialized correctly by innerHTML
-               // This requires a wrapper element in IE
-               htmlSerialize: !!div.getElementsByTagName( "link" ).length,
-
-               // Get the style information from getAttribute
-               // (IE uses .cssText instead)
-               style: /top/.test( a.getAttribute("style") ),
-
-               // Make sure that URLs aren't manipulated
-               // (IE normalizes it by default)
-               hrefNormalized: ( a.getAttribute( "href" ) === "/a" ),
-
-               // Make sure that element opacity exists
-               // (IE uses filter instead)
-               // Use a regex to work around a WebKit issue. See #5145
-               opacity: /^0.55$/.test( a.style.opacity ),
-
-               // Verify style float existence
-               // (IE uses styleFloat instead of cssFloat)
-               cssFloat: !!a.style.cssFloat,
-
-               // Make sure that if no value is specified for a checkbox
-               // that it defaults to "on".
-               // (WebKit defaults to "" instead)
-               checkOn: ( input.value === "on" ),
-
-               // Make sure that a selected-by-default option has a working selected property.
-               // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
-               optSelected: opt.selected,
-
-               // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
-               getSetAttribute: div.className !== "t",
-
-               // Will be defined later
-               submitBubbles: true,
-               changeBubbles: true,
-               focusinBubbles: false,
-               deleteExpando: true,
-               noCloneEvent: true,
-               inlineBlockNeedsLayout: false,
-               shrinkWrapBlocks: false,
-               reliableMarginRight: true
-       };
-
-       // Make sure checked status is properly cloned
-       input.checked = true;
-       support.noCloneChecked = input.cloneNode( true ).checked;
-
-       // Make sure that the options inside disabled selects aren't marked as disabled
-       // (WebKit marks them as disabled)
-       select.disabled = true;
-       support.optDisabled = !opt.disabled;
-
-       // Test to see if it's possible to delete an expando from an element
-       // Fails in Internet Explorer
-       try {
-               delete div.test;
-       } catch( e ) {
-               support.deleteExpando = false;
-       }
-
-       if ( !div.addEventListener && div.attachEvent && div.fireEvent ) {
-               div.attachEvent( "onclick", function() {
-                       // Cloning a node shouldn't copy over any
-                       // bound event handlers (IE does this)
-                       support.noCloneEvent = false;
-               });
-               div.cloneNode( true ).fireEvent( "onclick" );
-       }
-
-       // Check if a radio maintains it's value
-       // after being appended to the DOM
-       input = document.createElement("input");
-       input.value = "t";
-       input.setAttribute("type", "radio");
-       support.radioValue = input.value === "t";
-
-       input.setAttribute("checked", "checked");
-       div.appendChild( input );
-       fragment = document.createDocumentFragment();
-       fragment.appendChild( div.firstChild );
-
-       // WebKit doesn't clone checked state correctly in fragments
-       support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;
-
-       div.innerHTML = "";
-
-       // Figure out if the W3C box model works as expected
-       div.style.width = div.style.paddingLeft = "1px";
-
-       body = document.getElementsByTagName( "body" )[ 0 ];
-       // We use our own, invisible, body unless the body is already present
-       // in which case we use a div (#9239)
-       testElement = document.createElement( body ? "div" : "body" );
-       testElementStyle = {
-               visibility: "hidden",
-               width: 0,
-               height: 0,
-               border: 0,
-               margin: 0,
-               background: "none"
-       };
-       if ( body ) {
-               jQuery.extend( testElementStyle, {
-                       position: "absolute",
-                       left: "-1000px",
-                       top: "-1000px"
-               });
-       }
-       for ( i in testElementStyle ) {
-               testElement.style[ i ] = testElementStyle[ i ];
-       }
-       testElement.appendChild( div );
-       testElementParent = body || documentElement;
-       testElementParent.insertBefore( testElement, testElementParent.firstChild );
-
-       // Check if a disconnected checkbox will retain its checked
-       // value of true after appended to the DOM (IE6/7)
-       support.appendChecked = input.checked;
-
-       support.boxModel = div.offsetWidth === 2;
-
-       if ( "zoom" in div.style ) {
-               // Check if natively block-level elements act like inline-block
-               // elements when setting their display to 'inline' and giving
-               // them layout
-               // (IE < 8 does this)
-               div.style.display = "inline";
-               div.style.zoom = 1;
-               support.inlineBlockNeedsLayout = ( div.offsetWidth === 2 );
-
-               // Check if elements with layout shrink-wrap their children
-               // (IE 6 does this)
-               div.style.display = "";
-               div.innerHTML = "<div style='width:4px;'></div>";
-               support.shrinkWrapBlocks = ( div.offsetWidth !== 2 );
-       }
-
-       div.innerHTML = "<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";
-       tds = div.getElementsByTagName( "td" );
-
-       // Check if table cells still have offsetWidth/Height when they are set
-       // to display:none and there are still other visible table cells in a
-       // table row; if so, offsetWidth/Height are not reliable for use when
-       // determining if an element has been hidden directly using
-       // display:none (it is still safe to use offsets if a parent element is
-       // hidden; don safety goggles and see bug #4512 for more information).
-       // (only IE 8 fails this test)
-       isSupported = ( tds[ 0 ].offsetHeight === 0 );
-
-       tds[ 0 ].style.display = "";
-       tds[ 1 ].style.display = "none";
-
-       // Check if empty table cells still have offsetWidth/Height
-       // (IE < 8 fail this test)
-       support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 );
-       div.innerHTML = "";
-
-       // Check if div with explicit width and no margin-right incorrectly
-       // gets computed margin-right based on width of container. For more
-       // info see bug #3333
-       // Fails in WebKit before Feb 2011 nightlies
-       // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
-       if ( document.defaultView && document.defaultView.getComputedStyle ) {
-               marginDiv = document.createElement( "div" );
-               marginDiv.style.width = "0";
-               marginDiv.style.marginRight = "0";
-               div.appendChild( marginDiv );
-               support.reliableMarginRight =
-                       ( parseInt( ( document.defaultView.getComputedStyle( marginDiv, null ) || { marginRight: 0 } ).marginRight, 10 ) || 0 ) === 0;
-       }
-
-       // Remove the body element we added
-       testElement.innerHTML = "";
-       testElementParent.removeChild( testElement );
-
-       // Technique from Juriy Zaytsev
-       // http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/
-       // We only care about the case where non-standard event systems
-       // are used, namely in IE. Short-circuiting here helps us to
-       // avoid an eval call (in setAttribute) which can cause CSP
-       // to go haywire. See: https://developer.mozilla.org/en/Security/CSP
-       if ( div.attachEvent ) {
-               for( i in {
-                       submit: 1,
-                       change: 1,
-                       focusin: 1
-               } ) {
-                       eventName = "on" + i;
-                       isSupported = ( eventName in div );
-                       if ( !isSupported ) {
-                               div.setAttribute( eventName, "return;" );
-                               isSupported = ( typeof div[ eventName ] === "function" );
-                       }
-                       support[ i + "Bubbles" ] = isSupported;
-               }
-       }
-
-       // Null connected elements to avoid leaks in IE
-       testElement = fragment = select = opt = body = marginDiv = div = input = null;
-
-       return support;
-})();
-
-// Keep track of boxModel
-jQuery.boxModel = jQuery.support.boxModel;
-
-
-
-
-var rbrace = /^(?:\{.*\}|\[.*\])$/,
-       rmultiDash = /([A-Z])/g;
-
-jQuery.extend({
-       cache: {},
-
-       // Please use with caution
-       uuid: 0,
-
-       // Unique for each copy of jQuery on the page
-       // Non-digits removed to match rinlinejQuery
-       expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ),
-
-       // The following elements throw uncatchable exceptions if you
-       // attempt to add expando properties to them.
-       noData: {
-               "embed": true,
-               // Ban all objects except for Flash (which handle expandos)
-               "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
-               "applet": true
-       },
-
-       hasData: function( elem ) {
-               elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];
-
-               return !!elem && !isEmptyDataObject( elem );
-       },
-
-       data: function( elem, name, data, pvt /* Internal Use Only */ ) {
-               if ( !jQuery.acceptData( elem ) ) {
-                       return;
-               }
-
-               var thisCache, ret,
-                       internalKey = jQuery.expando,
-                       getByName = typeof name === "string",
-
-                       // We have to handle DOM nodes and JS objects differently because IE6-7
-                       // can't GC object references properly across the DOM-JS boundary
-                       isNode = elem.nodeType,
-
-                       // Only DOM nodes need the global jQuery cache; JS object data is
-                       // attached directly to the object so GC can occur automatically
-                       cache = isNode ? jQuery.cache : elem,
-
-                       // Only defining an ID for JS objects if its cache already exists allows
-                       // the code to shortcut on the same path as a DOM node with no cache
-                       id = isNode ? elem[ jQuery.expando ] : elem[ jQuery.expando ] && jQuery.expando;
-
-               // Avoid doing any more work than we need to when trying to get data on an
-               // object that has no data at all
-               if ( (!id || (pvt && id && (cache[ id ] && !cache[ id ][ internalKey ]))) && getByName && data === undefined ) {
-                       return;
-               }
-
-               if ( !id ) {
-                       // Only DOM nodes need a new unique ID for each element since their data
-                       // ends up in the global cache
-                       if ( isNode ) {
-                               elem[ jQuery.expando ] = id = ++jQuery.uuid;
-                       } else {
-                               id = jQuery.expando;
-                       }
-               }
-
-               if ( !cache[ id ] ) {
-                       cache[ id ] = {};
-
-                       // TODO: This is a hack for 1.5 ONLY. Avoids exposing jQuery
-                       // metadata on plain JS objects when the object is serialized using
-                       // JSON.stringify
-                       if ( !isNode ) {
-                               cache[ id ].toJSON = jQuery.noop;
-                       }
-               }
-
-               // An object can be passed to jQuery.data instead of a key/value pair; this gets
-               // shallow copied over onto the existing cache
-               if ( typeof name === "object" || typeof name === "function" ) {
-                       if ( pvt ) {
-                               cache[ id ][ internalKey ] = jQuery.extend(cache[ id ][ internalKey ], name);
-                       } else {
-                               cache[ id ] = jQuery.extend(cache[ id ], name);
-                       }
-               }
-
-               thisCache = cache[ id ];
-
-               // Internal jQuery data is stored in a separate object inside the object's data
-               // cache in order to avoid key collisions between internal data and user-defined
-               // data
-               if ( pvt ) {
-                       if ( !thisCache[ internalKey ] ) {
-                               thisCache[ internalKey ] = {};
-                       }
-
-                       thisCache = thisCache[ internalKey ];
-               }
-
-               if ( data !== undefined ) {
-                       thisCache[ jQuery.camelCase( name ) ] = data;
-               }
-
-               // TODO: This is a hack for 1.5 ONLY. It will be removed in 1.6. Users should
-               // not attempt to inspect the internal events object using jQuery.data, as this
-               // internal data object is undocumented and subject to change.
-               if ( name === "events" && !thisCache[name] ) {
-                       return thisCache[ internalKey ] && thisCache[ internalKey ].events;
-               }
-
-               // Check for both converted-to-camel and non-converted data property names
-               // If a data property was specified
-               if ( getByName ) {
-
-                       // First Try to find as-is property data
-                       ret = thisCache[ name ];
-
-                       // Test for null|undefined property data
-                       if ( ret == null ) {
-
-                               // Try to find the camelCased property
-                               ret = thisCache[ jQuery.camelCase( name ) ];
-                       }
-               } else {
-                       ret = thisCache;
-               }
-
-               return ret;
-       },
-
-       removeData: function( elem, name, pvt /* Internal Use Only */ ) {
-               if ( !jQuery.acceptData( elem ) ) {
-                       return;
-               }
-
-               var thisCache,
-
-                       // Reference to internal data cache key
-                       internalKey = jQuery.expando,
-
-                       isNode = elem.nodeType,
-
-                       // See jQuery.data for more information
-                       cache = isNode ? jQuery.cache : elem,
-
-                       // See jQuery.data for more information
-                       id = isNode ? elem[ jQuery.expando ] : jQuery.expando;
-
-               // If there is already no cache entry for this object, there is no
-               // purpose in continuing
-               if ( !cache[ id ] ) {
-                       return;
-               }
-
-               if ( name ) {
-
-                       thisCache = pvt ? cache[ id ][ internalKey ] : cache[ id ];
-
-                       if ( thisCache ) {
-
-                               // Support interoperable removal of hyphenated or camelcased keys
-                               if ( !thisCache[ name ] ) {
-                                       name = jQuery.camelCase( name );
-                               }
-
-                               delete thisCache[ name ];
-
-                               // If there is no data left in the cache, we want to continue
-                               // and let the cache object itself get destroyed
-                               if ( !isEmptyDataObject(thisCache) ) {
-                                       return;
-                               }
-                       }
-               }
-
-               // See jQuery.data for more information
-               if ( pvt ) {
-                       delete cache[ id ][ internalKey ];
-
-                       // Don't destroy the parent cache unless the internal data object
-                       // had been the only thing left in it
-                       if ( !isEmptyDataObject(cache[ id ]) ) {
-                               return;
-                       }
-               }
-
-               var internalCache = cache[ id ][ internalKey ];
-
-               // Browsers that fail expando deletion also refuse to delete expandos on
-               // the window, but it will allow it on all other JS objects; other browsers
-               // don't care
-               // Ensure that `cache` is not a window object #10080
-               if ( jQuery.support.deleteExpando || !cache.setInterval ) {
-                       delete cache[ id ];
-               } else {
-                       cache[ id ] = null;
-               }
-
-               // We destroyed the entire user cache at once because it's faster than
-               // iterating through each key, but we need to continue to persist internal
-               // data if it existed
-               if ( internalCache ) {
-                       cache[ id ] = {};
-                       // TODO: This is a hack for 1.5 ONLY. Avoids exposing jQuery
-                       // metadata on plain JS objects when the object is serialized using
-                       // JSON.stringify
-                       if ( !isNode ) {
-                               cache[ id ].toJSON = jQuery.noop;
-                       }
-
-                       cache[ id ][ internalKey ] = internalCache;
-
-               // Otherwise, we need to eliminate the expando on the node to avoid
-               // false lookups in the cache for entries that no longer exist
-               } else if ( isNode ) {
-                       // IE does not allow us to delete expando properties from nodes,
-                       // nor does it have a removeAttribute function on Document nodes;
-                       // we must handle all of these cases
-                       if ( jQuery.support.deleteExpando ) {
-                               delete elem[ jQuery.expando ];
-                       } else if ( elem.removeAttribute ) {
-                               elem.removeAttribute( jQuery.expando );
-                       } else {
-                               elem[ jQuery.expando ] = null;
-                       }
-               }
-       },
-
-       // For internal use only.
-       _data: function( elem, name, data ) {
-               return jQuery.data( elem, name, data, true );
-       },
-
-       // A method for determining if a DOM node can handle the data expando
-       acceptData: function( elem ) {
-               if ( elem.nodeName ) {
-                       var match = jQuery.noData[ elem.nodeName.toLowerCase() ];
-
-                       if ( match ) {
-                               return !(match === true || elem.getAttribute("classid") !== match);
-                       }
-               }
-
-               return true;
-       }
-});
-
-jQuery.fn.extend({
-       data: function( key, value ) {
-               var data = null;
-
-               if ( typeof key === "undefined" ) {
-                       if ( this.length ) {
-                               data = jQuery.data( this[0] );
-
-                               if ( this[0].nodeType === 1 ) {
-                           var attr = this[0].attributes, name;
-                                       for ( var i = 0, l = attr.length; i < l; i++ ) {
-                                               name = attr[i].name;
-
-                                               if ( name.indexOf( "data-" ) === 0 ) {
-                                                       name = jQuery.camelCase( name.substring(5) );
-
-                                                       dataAttr( this[0], name, data[ name ] );
-                                               }
-                                       }
-                               }
-                       }
-
-                       return data;
-
-               } else if ( typeof key === "object" ) {
-                       return this.each(function() {
-                               jQuery.data( this, key );
-                       });
-               }
-
-               var parts = key.split(".");
-               parts[1] = parts[1] ? "." + parts[1] : "";
-
-               if ( value === undefined ) {
-                       data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
-
-                       // Try to fetch any internally stored data first
-                       if ( data === undefined && this.length ) {
-                               data = jQuery.data( this[0], key );
-                               data = dataAttr( this[0], key, data );
-                       }
-
-                       return data === undefined && parts[1] ?
-                               this.data( parts[0] ) :
-                               data;
-
-               } else {
-                       return this.each(function() {
-                               var $this = jQuery( this ),
-                                       args = [ parts[0], value ];
-
-                               $this.triggerHandler( "setData" + parts[1] + "!", args );
-                               jQuery.data( this, key, value );
-                               $this.triggerHandler( "changeData" + parts[1] + "!", args );
-                       });
-               }
-       },
-
-       removeData: function( key ) {
-               return this.each(function() {
-                       jQuery.removeData( this, key );
-               });
-       }
-});
-
-function dataAttr( elem, key, data ) {
-       // If nothing was found internally, try to fetch any
-       // data from the HTML5 data-* attribute
-       if ( data === undefined && elem.nodeType === 1 ) {
-
-               var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
-
-               data = elem.getAttribute( name );
-
-               if ( typeof data === "string" ) {
-                       try {
-                               data = data === "true" ? true :
-                               data === "false" ? false :
-                               data === "null" ? null :
-                               !jQuery.isNaN( data ) ? parseFloat( data ) :
-                                       rbrace.test( data ) ? jQuery.parseJSON( data ) :
-                                       data;
-                       } catch( e ) {}
-
-                       // Make sure we set the data so it isn't changed later
-                       jQuery.data( elem, key, data );
-
-               } else {
-                       data = undefined;
-               }
-       }
-
-       return data;
-}
-
-// TODO: This is a hack for 1.5 ONLY to allow objects with a single toJSON
-// property to be considered empty objects; this property always exists in
-// order to make sure JSON.stringify does not expose internal metadata
-function isEmptyDataObject( obj ) {
-       for ( var name in obj ) {
-               if ( name !== "toJSON" ) {
-                       return false;
-               }
-       }
-
-       return true;
-}
-
-
-
-
-function handleQueueMarkDefer( elem, type, src ) {
-       var deferDataKey = type + "defer",
-               queueDataKey = type + "queue",
-               markDataKey = type + "mark",
-               defer = jQuery.data( elem, deferDataKey, undefined, true );
-       if ( defer &&
-               ( src === "queue" || !jQuery.data( elem, queueDataKey, undefined, true ) ) &&
-               ( src === "mark" || !jQuery.data( elem, markDataKey, undefined, true ) ) ) {
-               // Give room for hard-coded callbacks to fire first
-               // and eventually mark/queue something else on the element
-               setTimeout( function() {
-                       if ( !jQuery.data( elem, queueDataKey, undefined, true ) &&
-                               !jQuery.data( elem, markDataKey, undefined, true ) ) {
-                               jQuery.removeData( elem, deferDataKey, true );
-                               defer.resolve();
-                       }
-               }, 0 );
-       }
-}
-
-jQuery.extend({
-
-       _mark: function( elem, type ) {
-               if ( elem ) {
-                       type = (type || "fx") + "mark";
-                       jQuery.data( elem, type, (jQuery.data(elem,type,undefined,true) || 0) + 1, true );
-               }
-       },
-
-       _unmark: function( force, elem, type ) {
-               if ( force !== true ) {
-                       type = elem;
-                       elem = force;
-                       force = false;
-               }
-               if ( elem ) {
-                       type = type || "fx";
-                       var key = type + "mark",
-                               count = force ? 0 : ( (jQuery.data( elem, key, undefined, true) || 1 ) - 1 );
-                       if ( count ) {
-                               jQuery.data( elem, key, count, true );
-                       } else {
-                               jQuery.removeData( elem, key, true );
-                               handleQueueMarkDefer( elem, type, "mark" );
-                       }
-               }
-       },
-
-       queue: function( elem, type, data ) {
-               if ( elem ) {
-                       type = (type || "fx") + "queue";
-                       var q = jQuery.data( elem, type, undefined, true );
-                       // Speed up dequeue by getting out quickly if this is just a lookup
-                       if ( data ) {
-                               if ( !q || jQuery.isArray(data) ) {
-                                       q = jQuery.data( elem, type, jQuery.makeArray(data), true );
-                               } else {
-                                       q.push( data );
-                               }
-                       }
-                       return q || [];
-               }
-       },
-
-       dequeue: function( elem, type ) {
-               type = type || "fx";
-
-               var queue = jQuery.queue( elem, type ),
-                       fn = queue.shift(),
-                       defer;
-
-               // If the fx queue is dequeued, always remove the progress sentinel
-               if ( fn === "inprogress" ) {
-                       fn = queue.shift();
-               }
-
-               if ( fn ) {
-                       // Add a progress sentinel to prevent the fx queue from being
-                       // automatically dequeued
-                       if ( type === "fx" ) {
-                               queue.unshift("inprogress");
-                       }
-
-                       fn.call(elem, function() {
-                               jQuery.dequeue(elem, type);
-                       });
-               }
-
-               if ( !queue.length ) {
-                       jQuery.removeData( elem, type + "queue", true );
-                       handleQueueMarkDefer( elem, type, "queue" );
-               }
-       }
-});
-
-jQuery.fn.extend({
-       queue: function( type, data ) {
-               if ( typeof type !== "string" ) {
-                       data = type;
-                       type = "fx";
-               }
-
-               if ( data === undefined ) {
-                       return jQuery.queue( this[0], type );
-               }
-               return this.each(function() {
-                       var queue = jQuery.queue( this, type, data );
-
-                       if ( type === "fx" && queue[0] !== "inprogress" ) {
-                               jQuery.dequeue( this, type );
-                       }
-               });
-       },
-       dequeue: function( type ) {
-               return this.each(function() {
-                       jQuery.dequeue( this, type );
-               });
-       },
-       // Based off of the plugin by Clint Helfers, with permission.
-       // http://blindsignals.com/index.php/2009/07/jquery-delay/
-       delay: function( time, type ) {
-               time = jQuery.fx ? jQuery.fx.speeds[time] || time : time;
-               type = type || "fx";
-
-               return this.queue( type, function() {
-                       var elem = this;
-                       setTimeout(function() {
-                               jQuery.dequeue( elem, type );
-                       }, time );
-               });
-       },
-       clearQueue: function( type ) {
-               return this.queue( type || "fx", [] );
-       },
-       // Get a promise resolved when queues of a certain type
-       // are emptied (fx is the type by default)
-       promise: function( type, object ) {
-               if ( typeof type !== "string" ) {
-                       object = type;
-                       type = undefined;
-               }
-               type = type || "fx";
-               var defer = jQuery.Deferred(),
-                       elements = this,
-                       i = elements.length,
-                       count = 1,
-                       deferDataKey = type + "defer",
-                       queueDataKey = type + "queue",
-                       markDataKey = type + "mark",
-                       tmp;
-               function resolve() {
-                       if ( !( --count ) ) {
-                               defer.resolveWith( elements, [ elements ] );
-                       }
-               }
-               while( i-- ) {
-                       if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) ||
-                                       ( jQuery.data( elements[ i ], queueDataKey, undefined, true ) ||
-                                               jQuery.data( elements[ i ], markDataKey, undefined, true ) ) &&
-                                       jQuery.data( elements[ i ], deferDataKey, jQuery._Deferred(), true ) )) {
-                               count++;
-                               tmp.done( resolve );
-                       }
-               }
-               resolve();
-               return defer.promise();
-       }
-});
-
-
-
-
-var rclass = /[\n\t\r]/g,
-       rspace = /\s+/,
-       rreturn = /\r/g,
-       rtype = /^(?:button|input)$/i,
-       rfocusable = /^(?:button|input|object|select|textarea)$/i,
-       rclickable = /^a(?:rea)?$/i,
-       rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
-       nodeHook, boolHook;
-
-jQuery.fn.extend({
-       attr: function( name, value ) {
-               return jQuery.access( this, name, value, true, jQuery.attr );
-       },
-
-       removeAttr: function( name ) {
-               return this.each(function() {
-                       jQuery.removeAttr( this, name );
-               });
-       },
-       
-       prop: function( name, value ) {
-               return jQuery.access( this, name, value, true, jQuery.prop );
-       },
-       
-       removeProp: function( name ) {
-               name = jQuery.propFix[ name ] || name;
-               return this.each(function() {
-                       // try/catch handles cases where IE balks (such as removing a property on window)
-                       try {
-                               this[ name ] = undefined;
-                               delete this[ name ];
-                       } catch( e ) {}
-               });
-       },
-
-       addClass: function( value ) {
-               var classNames, i, l, elem,
-                       setClass, c, cl;
-
-               if ( jQuery.isFunction( value ) ) {
-                       return this.each(function( j ) {
-                               jQuery( this ).addClass( value.call(this, j, this.className) );
-                       });
-               }
-
-               if ( value && typeof value === "string" ) {
-                       classNames = value.split( rspace );
-
-                       for ( i = 0, l = this.length; i < l; i++ ) {
-                               elem = this[ i ];
-
-                               if ( elem.nodeType === 1 ) {
-                                       if ( !elem.className && classNames.length === 1 ) {
-                                               elem.className = value;
-
-                                       } else {
-                                               setClass = " " + elem.className + " ";
-
-                                               for ( c = 0, cl = classNames.length; c < cl; c++ ) {
-                                                       if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) {
-                                                               setClass += classNames[ c ] + " ";
-                                                       }
-                                               }
-                                               elem.className = jQuery.trim( setClass );
-                                       }
-                               }
-                       }
-               }
-
-               return this;
-       },
-
-       removeClass: function( value ) {
-               var classNames, i, l, elem, className, c, cl;
-
-               if ( jQuery.isFunction( value ) ) {
-                       return this.each(function( j ) {
-                               jQuery( this ).removeClass( value.call(this, j, this.className) );
-                       });
-               }
-
-               if ( (value && typeof value === "string") || value === undefined ) {
-                       classNames = (value || "").split( rspace );
-
-                       for ( i = 0, l = this.length; i < l; i++ ) {
-                               elem = this[ i ];
-
-                               if ( elem.nodeType === 1 && elem.className ) {
-                                       if ( value ) {
-                                               className = (" " + elem.className + " ").replace( rclass, " " );
-                                               for ( c = 0, cl = classNames.length; c < cl; c++ ) {
-                                                       className = className.replace(" " + classNames[ c ] + " ", " ");
-                                               }
-                                               elem.className = jQuery.trim( className );
-
-                                       } else {
-                                               elem.className = "";
-                                       }
-                               }
-                       }
-               }
-
-               return this;
-       },
-
-       toggleClass: function( value, stateVal ) {
-               var type = typeof value,
-                       isBool = typeof stateVal === "boolean";
-
-               if ( jQuery.isFunction( value ) ) {
-                       return this.each(function( i ) {
-                               jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
-                       });
-               }
-
-               return this.each(function() {
-                       if ( type === "string" ) {
-                               // toggle individual class names
-                               var className,
-                                       i = 0,
-                                       self = jQuery( this ),
-                                       state = stateVal,
-                                       classNames = value.split( rspace );
-
-                               while ( (className = classNames[ i++ ]) ) {
-                                       // check each className given, space seperated list
-                                       state = isBool ? state : !self.hasClass( className );
-                                       self[ state ? "addClass" : "removeClass" ]( className );
-                               }
-
-                       } else if ( type === "undefined" || type === "boolean" ) {
-                               if ( this.className ) {
-                                       // store className if set
-                                       jQuery._data( this, "__className__", this.className );
-                               }
-
-                               // toggle whole className
-                               this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";
-                       }
-               });
-       },
-
-       hasClass: function( selector ) {
-               var className = " " + selector + " ";
-               for ( var i = 0, l = this.length; i < l; i++ ) {
-                       if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
-                               return true;
-                       }
-               }
-
-               return false;
-       },
-
-       val: function( value ) {
-               var hooks, ret,
-                       elem = this[0];
-               
-               if ( !arguments.length ) {
-                       if ( elem ) {
-                               hooks = jQuery.valHooks[ elem.nodeName.toLowerCase() ] || jQuery.valHooks[ elem.type ];
-
-                               if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
-                                       return ret;
-                               }
-
-                               ret = elem.value;
-
-                               return typeof ret === "string" ? 
-                                       // handle most common string cases
-                                       ret.replace(rreturn, "") : 
-                                       // handle cases where value is null/undef or number
-                                       ret == null ? "" : ret;
-                       }
-
-                       return undefined;
-               }
-
-               var isFunction = jQuery.isFunction( value );
-
-               return this.each(function( i ) {
-                       var self = jQuery(this), val;
-
-                       if ( this.nodeType !== 1 ) {
-                               return;
-                       }
-
-                       if ( isFunction ) {
-                               val = value.call( this, i, self.val() );
-                       } else {
-                               val = value;
-                       }
-
-                       // Treat null/undefined as ""; convert numbers to string
-                       if ( val == null ) {
-                               val = "";
-                       } else if ( typeof val === "number" ) {
-                               val += "";
-                       } else if ( jQuery.isArray( val ) ) {
-                               val = jQuery.map(val, function ( value ) {
-                                       return value == null ? "" : value + "";
-                               });
-                       }
-
-                       hooks = jQuery.valHooks[ this.nodeName.toLowerCase() ] || jQuery.valHooks[ this.type ];
-
-                       // If set returns undefined, fall back to normal setting
-                       if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
-                               this.value = val;
-                       }
-               });
-       }
-});
-
-jQuery.extend({
-       valHooks: {
-               option: {
-                       get: function( elem ) {
-                               // attributes.value is undefined in Blackberry 4.7 but
-                               // uses .value. See #6932
-                               var val = elem.attributes.value;
-                               return !val || val.specified ? elem.value : elem.text;
-                       }
-               },
-               select: {
-                       get: function( elem ) {
-                               var value,
-                                       index = elem.selectedIndex,
-                                       values = [],
-                                       options = elem.options,
-                                       one = elem.type === "select-one";
-
-                               // Nothing was selected
-                               if ( index < 0 ) {
-                                       return null;
-                               }
-
-                               // Loop through all the selected options
-                               for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {
-                                       var option = options[ i ];
-
-                                       // Don't return options that are disabled or in a disabled optgroup
-                                       if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) &&
-                                                       (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
-
-                                               // Get the specific value for the option
-                                               value = jQuery( option ).val();
-
-                                               // We don't need an array for one selects
-                                               if ( one ) {
-                                                       return value;
-                                               }
-
-                                               // Multi-Selects return an array
-                                               values.push( value );
-                                       }
-                               }
-
-                               // Fixes Bug #2551 -- select.val() broken in IE after form.reset()
-                               if ( one && !values.length && options.length ) {
-                                       return jQuery( options[ index ] ).val();
-                               }
-
-                               return values;
-                       },
-
-                       set: function( elem, value ) {
-                               var values = jQuery.makeArray( value );
-
-                               jQuery(elem).find("option").each(function() {
-                                       this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
-                               });
-
-                               if ( !values.length ) {
-                                       elem.selectedIndex = -1;
-                               }
-                               return values;
-                       }
-               }
-       },
-
-       attrFn: {
-               val: true,
-               css: true,
-               html: true,
-               text: true,
-               data: true,
-               width: true,
-               height: true,
-               offset: true
-       },
-       
-       attrFix: {
-               // Always normalize to ensure hook usage
-               tabindex: "tabIndex"
-       },
-       
-       attr: function( elem, name, value, pass ) {
-               var nType = elem.nodeType;
-               
-               // don't get/set attributes on text, comment and attribute nodes
-               if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
-                       return undefined;
-               }
-
-               if ( pass && name in jQuery.attrFn ) {
-                       return jQuery( elem )[ name ]( value );
-               }
-
-               // Fallback to prop when attributes are not supported
-               if ( !("getAttribute" in elem) ) {
-                       return jQuery.prop( elem, name, value );
-               }
-
-               var ret, hooks,
-                       notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
-
-               // Normalize the name if needed
-               if ( notxml ) {
-                       name = jQuery.attrFix[ name ] || name;
-
-                       hooks = jQuery.attrHooks[ name ];
-
-                       if ( !hooks ) {
-                               // Use boolHook for boolean attributes
-                               if ( rboolean.test( name ) ) {
-                                       hooks = boolHook;
-
-                               // Use nodeHook if available( IE6/7 )
-                               } else if ( nodeHook ) {
-                                       hooks = nodeHook;
-                               }
-                       }
-               }
-
-               if ( value !== undefined ) {
-
-                       if ( value === null ) {
-                               jQuery.removeAttr( elem, name );
-                               return undefined;
-
-                       } else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) {
-                               return ret;
-
-                       } else {
-                               elem.setAttribute( name, "" + value );
-                               return value;
-                       }
-
-               } else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) {
-                       return ret;
-
-               } else {
-
-                       ret = elem.getAttribute( name );
-
-                       // Non-existent attributes return null, we normalize to undefined
-                       return ret === null ?
-                               undefined :
-                               ret;
-               }
-       },
-
-       removeAttr: function( elem, name ) {
-               var propName;
-               if ( elem.nodeType === 1 ) {
-                       name = jQuery.attrFix[ name ] || name;
-
-                       jQuery.attr( elem, name, "" );
-                       elem.removeAttribute( name );
-
-                       // Set corresponding property to false for boolean attributes
-                       if ( rboolean.test( name ) && (propName = jQuery.propFix[ name ] || name) in elem ) {
-                               elem[ propName ] = false;
-                       }
-               }
-       },
-
-       attrHooks: {
-               type: {
-                       set: function( elem, value ) {
-                               // We can't allow the type property to be changed (since it causes problems in IE)
-                               if ( rtype.test( elem.nodeName ) && elem.parentNode ) {
-                                       jQuery.error( "type property can't be changed" );
-                               } else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
-                                       // Setting the type on a radio button after the value resets the value in IE6-9
-                                       // Reset value to it's default in case type is set after value
-                                       // This is for element creation
-                                       var val = elem.value;
-                                       elem.setAttribute( "type", value );
-                                       if ( val ) {
-                                               elem.value = val;
-                                       }
-                                       return value;
-                               }
-                       }
-               },
-               // Use the value property for back compat
-               // Use the nodeHook for button elements in IE6/7 (#1954)
-               value: {
-                       get: function( elem, name ) {
-                               if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
-                                       return nodeHook.get( elem, name );
-                               }
-                               return name in elem ?
-                                       elem.value :
-                                       null;
-                       },
-                       set: function( elem, value, name ) {
-                               if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
-                                       return nodeHook.set( elem, value, name );
-                               }
-                               // Does not return so that setAttribute is also used
-                               elem.value = value;
-                       }
-               }
-       },
-
-       propFix: {
-               tabindex: "tabIndex",
-               readonly: "readOnly",
-               "for": "htmlFor",
-               "class": "className",
-               maxlength: "maxLength",
-               cellspacing: "cellSpacing",
-               cellpadding: "cellPadding",
-               rowspan: "rowSpan",
-               colspan: "colSpan",
-               usemap: "useMap",
-               frameborder: "frameBorder",
-               contenteditable: "contentEditable"
-       },
-       
-       prop: function( elem, name, value ) {
-               var nType = elem.nodeType;
-
-               // don't get/set properties on text, comment and attribute nodes
-               if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
-                       return undefined;
-               }
-
-               var ret, hooks,
-                       notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
-
-               if ( notxml ) {
-                       // Fix name and attach hooks
-                       name = jQuery.propFix[ name ] || name;
-                       hooks = jQuery.propHooks[ name ];
-               }
-
-               if ( value !== undefined ) {
-                       if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
-                               return ret;
-
-                       } else {
-                               return (elem[ name ] = value);
-                       }
-
-               } else {
-                       if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
-                               return ret;
-
-                       } else {
-                               return elem[ name ];
-                       }
-               }
-       },
-       
-       propHooks: {
-               tabIndex: {
-                       get: function( elem ) {
-                               // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
-                               // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
-                               var attributeNode = elem.getAttributeNode("tabindex");
-
-                               return attributeNode && attributeNode.specified ?
-                                       parseInt( attributeNode.value, 10 ) :
-                                       rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
-                                               0 :
-                                               undefined;
-                       }
-               }
-       }
-});
-
-// Add the tabindex propHook to attrHooks for back-compat
-jQuery.attrHooks.tabIndex = jQuery.propHooks.tabIndex;
-
-// Hook for boolean attributes
-boolHook = {
-       get: function( elem, name ) {
-               // Align boolean attributes with corresponding properties
-               // Fall back to attribute presence where some booleans are not supported
-               var attrNode;
-               return jQuery.prop( elem, name ) === true || ( attrNode = elem.getAttributeNode( name ) ) && attrNode.nodeValue !== false ?
-                       name.toLowerCase() :
-                       undefined;
-       },
-       set: function( elem, value, name ) {
-               var propName;
-               if ( value === false ) {
-                       // Remove boolean attributes when set to false
-                       jQuery.removeAttr( elem, name );
-               } else {
-                       // value is true since we know at this point it's type boolean and not false
-                       // Set boolean attributes to the same name and set the DOM property
-                       propName = jQuery.propFix[ name ] || name;
-                       if ( propName in elem ) {
-                               // Only set the IDL specifically if it already exists on the element
-                               elem[ propName ] = true;
-                       }
-
-                       elem.setAttribute( name, name.toLowerCase() );
-               }
-               return name;
-       }
-};
-
-// IE6/7 do not support getting/setting some attributes with get/setAttribute
-if ( !jQuery.support.getSetAttribute ) {
-       
-       // Use this for any attribute in IE6/7
-       // This fixes almost every IE6/7 issue
-       nodeHook = jQuery.valHooks.button = {
-               get: function( elem, name ) {
-                       var ret;
-                       ret = elem.getAttributeNode( name );
-                       // Return undefined if nodeValue is empty string
-                       return ret && ret.nodeValue !== "" ?
-                               ret.nodeValue :
-                               undefined;
-               },
-               set: function( elem, value, name ) {
-                       // Set the existing or create a new attribute node
-                       var ret = elem.getAttributeNode( name );
-                       if ( !ret ) {
-                               ret = document.createAttribute( name );
-                               elem.setAttributeNode( ret );
-                       }
-                       return (ret.nodeValue = value + "");
-               }
-       };
-
-       // Set width and height to auto instead of 0 on empty string( Bug #8150 )
-       // This is for removals
-       jQuery.each([ "width", "height" ], function( i, name ) {
-               jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
-                       set: function( elem, value ) {
-                               if ( value === "" ) {
-                                       elem.setAttribute( name, "auto" );
-                                       return value;
-                               }
-                       }
-               });
-       });
-}
-
-
-// Some attributes require a special call on IE
-if ( !jQuery.support.hrefNormalized ) {
-       jQuery.each([ "href", "src", "width", "height" ], function( i, name ) {
-               jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
-                       get: function( elem ) {
-                               var ret = elem.getAttribute( name, 2 );
-                               return ret === null ? undefined : ret;
-                       }
-               });
-       });
-}
-
-if ( !jQuery.support.style ) {
-       jQuery.attrHooks.style = {
-               get: function( elem ) {
-                       // Return undefined in the case of empty string
-                       // Normalize to lowercase since IE uppercases css property names
-                       return elem.style.cssText.toLowerCase() || undefined;
-               },
-               set: function( elem, value ) {
-                       return (elem.style.cssText = "" + value);
-               }
-       };
-}
-
-// Safari mis-reports the default selected property of an option
-// Accessing the parent's selectedIndex property fixes it
-if ( !jQuery.support.optSelected ) {
-       jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {
-               get: function( elem ) {
-                       var parent = elem.parentNode;
-
-                       if ( parent ) {
-                               parent.selectedIndex;
-
-                               // Make sure that it also works with optgroups, see #5701
-                               if ( parent.parentNode ) {
-                                       parent.parentNode.selectedIndex;
-                               }
-                       }
-                       return null;
-               }
-       });
-}
-
-// Radios and checkboxes getter/setter
-if ( !jQuery.support.checkOn ) {
-       jQuery.each([ "radio", "checkbox" ], function() {
-               jQuery.valHooks[ this ] = {
-                       get: function( elem ) {
-                               // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
-                               return elem.getAttribute("value") === null ? "on" : elem.value;
-                       }
-               };
-       });
-}
-jQuery.each([ "radio", "checkbox" ], function() {
-       jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {
-               set: function( elem, value ) {
-                       if ( jQuery.isArray( value ) ) {
-                               return (elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0);
-                       }
-               }
-       });
-});
-
-
-
-
-var rnamespaces = /\.(.*)$/,
-       rformElems = /^(?:textarea|input|select)$/i,
-       rperiod = /\./g,
-       rspaces = / /g,
-       rescape = /[^\w\s.|`]/g,
-       fcleanup = function( nm ) {
-               return nm.replace(rescape, "\\$&");
-       };
-
-/*
- * A number of helper functions used for managing events.
- * Many of the ideas behind this code originated from
- * Dean Edwards' addEvent library.
- */
-jQuery.event = {
-
-       // Bind an event to an element
-       // Original by Dean Edwards
-       add: function( elem, types, handler, data ) {
-               if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
-                       return;
-               }
-
-               if ( handler === false ) {
-                       handler = returnFalse;
-               } else if ( !handler ) {
-                       // Fixes bug #7229. Fix recommended by jdalton
-                       return;
-               }
-
-               var handleObjIn, handleObj;
-
-               if ( handler.handler ) {
-                       handleObjIn = handler;
-                       handler = handleObjIn.handler;
-               }
-
-               // Make sure that the function being executed has a unique ID
-               if ( !handler.guid ) {
-                       handler.guid = jQuery.guid++;
-               }
-
-               // Init the element's event structure
-               var elemData = jQuery._data( elem );
-
-               // If no elemData is found then we must be trying to bind to one of the
-               // banned noData elements
-               if ( !elemData ) {
-                       return;
-               }
-
-               var events = elemData.events,
-                       eventHandle = elemData.handle;
-
-               if ( !events ) {
-                       elemData.events = events = {};
-               }
-
-               if ( !eventHandle ) {
-                       elemData.handle = eventHandle = function( e ) {
-                               // Discard the second event of a jQuery.event.trigger() and
-                               // when an event is called after a page has unloaded
-                               return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ?
-                                       jQuery.event.handle.apply( eventHandle.elem, arguments ) :
-                                       undefined;
-                       };
-               }
-
-               // Add elem as a property of the handle function
-               // This is to prevent a memory leak with non-native events in IE.
-               eventHandle.elem = elem;
-
-               // Handle multiple events separated by a space
-               // jQuery(...).bind("mouseover mouseout", fn);
-               types = types.split(" ");
-
-               var type, i = 0, namespaces;
-
-               while ( (type = types[ i++ ]) ) {
-                       handleObj = handleObjIn ?
-                               jQuery.extend({}, handleObjIn) :
-                               { handler: handler, data: data };
-
-                       // Namespaced event handlers
-                       if ( type.indexOf(".") > -1 ) {
-                               namespaces = type.split(".");
-                               type = namespaces.shift();
-                               handleObj.namespace = namespaces.slice(0).sort().join(".");
-
-                       } else {
-                               namespaces = [];
-                               handleObj.namespace = "";
-                       }
-
-                       handleObj.type = type;
-                       if ( !handleObj.guid ) {
-                               handleObj.guid = handler.guid;
-                       }
-
-                       // Get the current list of functions bound to this event
-                       var handlers = events[ type ],
-                               special = jQuery.event.special[ type ] || {};
-
-                       // Init the event handler queue
-                       if ( !handlers ) {
-                               handlers = events[ type ] = [];
-
-                               // Check for a special event handler
-                               // Only use addEventListener/attachEvent if the special
-                               // events handler returns false
-                               if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
-                                       // Bind the global event handler to the element
-                                       if ( elem.addEventListener ) {
-                                               elem.addEventListener( type, eventHandle, false );
-
-                                       } else if ( elem.attachEvent ) {
-                                               elem.attachEvent( "on" + type, eventHandle );
-                                       }
-                               }
-                       }
-
-                       if ( special.add ) {
-                               special.add.call( elem, handleObj );
-
-                               if ( !handleObj.handler.guid ) {
-                                       handleObj.handler.guid = handler.guid;
-                               }
-                       }
-
-                       // Add the function to the element's handler list
-                       handlers.push( handleObj );
-
-                       // Keep track of which events have been used, for event optimization
-                       jQuery.event.global[ type ] = true;
-               }
-
-               // Nullify elem to prevent memory leaks in IE
-               elem = null;
-       },
-
-       global: {},
-
-       // Detach an event or set of events from an element
-       remove: function( elem, types, handler, pos ) {
-               // don't do events on text and comment nodes
-               if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
-                       return;
-               }
-
-               if ( handler === false ) {
-                       handler = returnFalse;
-               }
-
-               var ret, type, fn, j, i = 0, all, namespaces, namespace, special, eventType, handleObj, origType,
-                       elemData = jQuery.hasData( elem ) && jQuery._data( elem ),
-                       events = elemData && elemData.events;
-
-               if ( !elemData || !events ) {
-                       return;
-               }
-
-               // types is actually an event object here
-               if ( types && types.type ) {
-                       handler = types.handler;
-                       types = types.type;
-               }
-
-               // Unbind all events for the element
-               if ( !types || typeof types === "string" && types.charAt(0) === "." ) {
-                       types = types || "";
-
-                       for ( type in events ) {
-                               jQuery.event.remove( elem, type + types );
-                       }
-
-                       return;
-               }
-
-               // Handle multiple events separated by a space
-               // jQuery(...).unbind("mouseover mouseout", fn);
-               types = types.split(" ");
-
-               while ( (type = types[ i++ ]) ) {
-                       origType = type;
-                       handleObj = null;
-                       all = type.indexOf(".") < 0;
-                       namespaces = [];
-
-                       if ( !all ) {
-                               // Namespaced event handlers
-                               namespaces = type.split(".");
-                               type = namespaces.shift();
-
-                               namespace = new RegExp("(^|\\.)" +
-                                       jQuery.map( namespaces.slice(0).sort(), fcleanup ).join("\\.(?:.*\\.)?") + "(\\.|$)");
-                       }
-
-                       eventType = events[ type ];
-
-                       if ( !eventType ) {
-                               continue;
-                       }
-
-                       if ( !handler ) {
-                               for ( j = 0; j < eventType.length; j++ ) {
-                                       handleObj = eventType[ j ];
-
-                                       if ( all || namespace.test( handleObj.namespace ) ) {
-                                               jQuery.event.remove( elem, origType, handleObj.handler, j );
-                                               eventType.splice( j--, 1 );
-                                       }
-                               }
-
-                               continue;
-                       }
-
-                       special = jQuery.event.special[ type ] || {};
-
-                       for ( j = pos || 0; j < eventType.length; j++ ) {
-                               handleObj = eventType[ j ];
-
-                               if ( handler.guid === handleObj.guid ) {
-                                       // remove the given handler for the given type
-                                       if ( all || namespace.test( handleObj.namespace ) ) {
-                                               if ( pos == null ) {
-                                                       eventType.splice( j--, 1 );
-                                               }
-
-                                               if ( special.remove ) {
-                                                       special.remove.call( elem, handleObj );
-                                               }
-                                       }
-
-                                       if ( pos != null ) {
-                                               break;
-                                       }
-                               }
-                       }
-
-                       // remove generic event handler if no more handlers exist
-                       if ( eventType.length === 0 || pos != null && eventType.length === 1 ) {
-                               if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {
-                                       jQuery.removeEvent( elem, type, elemData.handle );
-                               }
-
-                               ret = null;
-                               delete events[ type ];
-                       }
-               }
-
-               // Remove the expando if it's no longer used
-               if ( jQuery.isEmptyObject( events ) ) {
-                       var handle = elemData.handle;
-                       if ( handle ) {
-                               handle.elem = null;
-                       }
-
-                       delete elemData.events;
-                       delete elemData.handle;
-
-                       if ( jQuery.isEmptyObject( elemData ) ) {
-                               jQuery.removeData( elem, undefined, true );
-                       }
-               }
-       },
-       
-       // Events that are safe to short-circuit if no handlers are attached.
-       // Native DOM events should not be added, they may have inline handlers.
-       customEvent: {
-               "getData": true,
-               "setData": true,
-               "changeData": true
-       },
-
-       trigger: function( event, data, elem, onlyHandlers ) {
-               // Event object or event type
-               var type = event.type || event,
-                       namespaces = [],
-                       exclusive;
-
-               if ( type.indexOf("!") >= 0 ) {
-                       // Exclusive events trigger only for the exact event (no namespaces)
-                       type = type.slice(0, -1);
-                       exclusive = true;
-               }
-
-               if ( type.indexOf(".") >= 0 ) {
-                       // Namespaced trigger; create a regexp to match event type in handle()
-                       namespaces = type.split(".");
-                       type = namespaces.shift();
-                       namespaces.sort();
-               }
-
-               if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) {
-                       // No jQuery handlers for this event type, and it can't have inline handlers
-                       return;
-               }
-
-               // Caller can pass in an Event, Object, or just an event type string
-               event = typeof event === "object" ?
-                       // jQuery.Event object
-                       event[ jQuery.expando ] ? event :
-                       // Object literal
-                       new jQuery.Event( type, event ) :
-                       // Just the event type (string)
-                       new jQuery.Event( type );
-
-               event.type = type;
-               event.exclusive = exclusive;
-               event.namespace = namespaces.join(".");
-               event.namespace_re = new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)");
-               
-               // triggerHandler() and global events don't bubble or run the default action
-               if ( onlyHandlers || !elem ) {
-                       event.preventDefault();
-                       event.stopPropagation();
-               }
-
-               // Handle a global trigger
-               if ( !elem ) {
-                       // TODO: Stop taunting the data cache; remove global events and always attach to document
-                       jQuery.each( jQuery.cache, function() {
-                               // internalKey variable is just used to make it easier to find
-                               // and potentially change this stuff later; currently it just
-                               // points to jQuery.expando
-                               var internalKey = jQuery.expando,
-                                       internalCache = this[ internalKey ];
-                               if ( internalCache && internalCache.events && internalCache.events[ type ] ) {
-                                       jQuery.event.trigger( event, data, internalCache.handle.elem );
-                               }
-                       });
-                       return;
-               }
-
-               // Don't do events on text and comment nodes
-               if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
-                       return;
-               }
-
-               // Clean up the event in case it is being reused
-               event.result = undefined;
-               event.target = elem;
-
-               // Clone any incoming data and prepend the event, creating the handler arg list
-               data = data != null ? jQuery.makeArray( data ) : [];
-               data.unshift( event );
-
-               var cur = elem,
-                       // IE doesn't like method names with a colon (#3533, #8272)
-                       ontype = type.indexOf(":") < 0 ? "on" + type : "";
-
-               // Fire event on the current element, then bubble up the DOM tree
-               do {
-                       var handle = jQuery._data( cur, "handle" );
-
-                       event.currentTarget = cur;
-                       if ( handle ) {
-                               handle.apply( cur, data );
-                       }
-
-                       // Trigger an inline bound script
-                       if ( ontype && jQuery.acceptData( cur ) && cur[ ontype ] && cur[ ontype ].apply( cur, data ) === false ) {
-                               event.result = false;
-                               event.preventDefault();
-                       }
-
-                       // Bubble up to document, then to window
-                       cur = cur.parentNode || cur.ownerDocument || cur === event.target.ownerDocument && window;
-               } while ( cur && !event.isPropagationStopped() );
-
-               // If nobody prevented the default action, do it now
-               if ( !event.isDefaultPrevented() ) {
-                       var old,
-                               special = jQuery.event.special[ type ] || {};
-
-                       if ( (!special._default || special._default.call( elem.ownerDocument, event ) === false) &&
-                               !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) {
-
-                               // Call a native DOM method on the target with the same name name as the event.
-                               // Can't use an .isFunction)() check here because IE6/7 fails that test.
-                               // IE<9 dies on focus to hidden element (#1486), may want to revisit a try/catch.
-                               try {
-                                       if ( ontype && elem[ type ] ) {
-                                               // Don't re-trigger an onFOO event when we call its FOO() method
-                                               old = elem[ ontype ];
-
-                                               if ( old ) {
-                                                       elem[ ontype ] = null;
-                                               }
-
-                                               jQuery.event.triggered = type;
-                                               elem[ type ]();
-                                       }
-                               } catch ( ieError ) {}
-
-                               if ( old ) {
-                                       elem[ ontype ] = old;
-                               }
-
-                               jQuery.event.triggered = undefined;
-                       }
-               }
-               
-               return event.result;
-       },
-
-       handle: function( event ) {
-               event = jQuery.event.fix( event || window.event );
-               // Snapshot the handlers list since a called handler may add/remove events.
-               var handlers = ((jQuery._data( this, "events" ) || {})[ event.type ] || []).slice(0),
-                       run_all = !event.exclusive && !event.namespace,
-                       args = Array.prototype.slice.call( arguments, 0 );
-
-               // Use the fix-ed Event rather than the (read-only) native event
-               args[0] = event;
-               event.currentTarget = this;
-
-               for ( var j = 0, l = handlers.length; j < l; j++ ) {
-                       var handleObj = handlers[ j ];
-
-                       // Triggered event must 1) be non-exclusive and have no namespace, or
-                       // 2) have namespace(s) a subset or equal to those in the bound event.
-                       if ( run_all || event.namespace_re.test( handleObj.namespace ) ) {
-                               // Pass in a reference to the handler function itself
-                               // So that we can later remove it
-                               event.handler = handleObj.handler;
-                               event.data = handleObj.data;
-                               event.handleObj = handleObj;
-
-                               var ret = handleObj.handler.apply( this, args );
-
-                               if ( ret !== undefined ) {
-                                       event.result = ret;
-                                       if ( ret === false ) {
-                                               event.preventDefault();
-                                               event.stopPropagation();
-                                       }
-                               }
-
-                               if ( event.isImmediatePropagationStopped() ) {
-                                       break;
-                               }
-                       }
-               }
-               return event.result;
-       },
-
-       props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
-
-       fix: function( event ) {
-               if ( event[ jQuery.expando ] ) {
-                       return event;
-               }
-
-               // store a copy of the original event object
-               // and "clone" to set read-only properties
-               var originalEvent = event;
-               event = jQuery.Event( originalEvent );
-
-               for ( var i = this.props.length, prop; i; ) {
-                       prop = this.props[ --i ];
-                       event[ prop ] = originalEvent[ prop ];
-               }
-
-               // Fix target property, if necessary
-               if ( !event.target ) {
-                       // Fixes #1925 where srcElement might not be defined either
-                       event.target = event.srcElement || document;
-               }
-
-               // check if target is a textnode (safari)
-               if ( event.target.nodeType === 3 ) {
-                       event.target = event.target.parentNode;
-               }
-
-               // Add relatedTarget, if necessary
-               if ( !event.relatedTarget && event.fromElement ) {
-                       event.relatedTarget = event.fromElement === event.target ? event.toElement : event.fromElement;
-               }
-
-               // Calculate pageX/Y if missing and clientX/Y available
-               if ( event.pageX == null && event.clientX != null ) {
-                       var eventDocument = event.target.ownerDocument || document,
-                               doc = eventDocument.documentElement,
-                               body = eventDocument.body;
-
-                       event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
-                       event.pageY = event.clientY + (doc && doc.scrollTop  || body && body.scrollTop  || 0) - (doc && doc.clientTop  || body && body.clientTop  || 0);
-               }
-
-               // Add which for key events
-               if ( event.which == null && (event.charCode != null || event.keyCode != null) ) {
-                       event.which = event.charCode != null ? event.charCode : event.keyCode;
-               }
-
-               // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)
-               if ( !event.metaKey && event.ctrlKey ) {
-                       event.metaKey = event.ctrlKey;
-               }
-
-               // Add which for click: 1 === left; 2 === middle; 3 === right
-               // Note: button is not normalized, so don't use it
-               if ( !event.which && event.button !== undefined ) {
-                       event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
-               }
-
-               return event;
-       },
-
-       // Deprecated, use jQuery.guid instead
-       guid: 1E8,
-
-       // Deprecated, use jQuery.proxy instead
-       proxy: jQuery.proxy,
-
-       special: {
-               ready: {
-                       // Make sure the ready event is setup
-                       setup: jQuery.bindReady,
-                       teardown: jQuery.noop
-               },
-
-               live: {
-                       add: function( handleObj ) {
-                               jQuery.event.add( this,
-                                       liveConvert( handleObj.origType, handleObj.selector ),
-                                       jQuery.extend({}, handleObj, {handler: liveHandler, guid: handleObj.handler.guid}) );
-                       },
-
-                       remove: function( handleObj ) {
-                               jQuery.event.remove( this, liveConvert( handleObj.origType, handleObj.selector ), handleObj );
-                       }
-               },
-
-               beforeunload: {
-                       setup: function( data, namespaces, eventHandle ) {
-                               // We only want to do this special case on windows
-                               if ( jQuery.isWindow( this ) ) {
-                                       this.onbeforeunload = eventHandle;
-                               }
-                       },
-
-                       teardown: function( namespaces, eventHandle ) {
-                               if ( this.onbeforeunload === eventHandle ) {
-                                       this.onbeforeunload = null;
-                               }
-                       }
-               }
-       }
-};
-
-jQuery.removeEvent = document.removeEventListener ?
-       function( elem, type, handle ) {
-               if ( elem.removeEventListener ) {
-                       elem.removeEventListener( type, handle, false );
-               }
-       } :
-       function( elem, type, handle ) {
-               if ( elem.detachEvent ) {
-                       elem.detachEvent( "on" + type, handle );
-               }
-       };
-
-jQuery.Event = function( src, props ) {
-       // Allow instantiation without the 'new' keyword
-       if ( !this.preventDefault ) {
-               return new jQuery.Event( src, props );
-       }
-
-       // Event object
-       if ( src && src.type ) {
-               this.originalEvent = src;
-               this.type = src.type;
-
-               // Events bubbling up the document may have been marked as prevented
-               // by a handler lower down the tree; reflect the correct value.
-               this.isDefaultPrevented = (src.defaultPrevented || src.returnValue === false ||
-                       src.getPreventDefault && src.getPreventDefault()) ? returnTrue : returnFalse;
-
-       // Event type
-       } else {
-               this.type = src;
-       }
-
-       // Put explicitly provided properties onto the event object
-       if ( props ) {
-               jQuery.extend( this, props );
-       }
-
-       // timeStamp is buggy for some events on Firefox(#3843)
-       // So we won't rely on the native value
-       this.timeStamp = jQuery.now();
-
-       // Mark it as fixed
-       this[ jQuery.expando ] = true;
-};
-
-function returnFalse() {
-       return false;
-}
-function returnTrue() {
-       return true;
-}
-
-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
-// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
-jQuery.Event.prototype = {
-       preventDefault: function() {
-               this.isDefaultPrevented = returnTrue;
-
-               var e = this.originalEvent;
-               if ( !e ) {
-                       return;
-               }
-
-               // if preventDefault exists run it on the original event
-               if ( e.preventDefault ) {
-                       e.preventDefault();
-
-               // otherwise set the returnValue property of the original event to false (IE)
-               } else {
-                       e.returnValue = false;
-               }
-       },
-       stopPropagation: function() {
-               this.isPropagationStopped = returnTrue;
-
-               var e = this.originalEvent;
-               if ( !e ) {
-                       return;
-               }
-               // if stopPropagation exists run it on the original event
-               if ( e.stopPropagation ) {
-                       e.stopPropagation();
-               }
-               // otherwise set the cancelBubble property of the original event to true (IE)
-               e.cancelBubble = true;
-       },
-       stopImmediatePropagation: function() {
-               this.isImmediatePropagationStopped = returnTrue;
-               this.stopPropagation();
-       },
-       isDefaultPrevented: returnFalse,
-       isPropagationStopped: returnFalse,
-       isImmediatePropagationStopped: returnFalse
-};
-
-// Checks if an event happened on an element within another element
-// Used in jQuery.event.special.mouseenter and mouseleave handlers
-var withinElement = function( event ) {
-
-       // Check if mouse(over|out) are still within the same parent element
-       var related = event.relatedTarget,
-               inside = false,
-               eventType = event.type;
-
-       event.type = event.data;
-
-       if ( related !== this ) {
-
-               if ( related ) {
-                       inside = jQuery.contains( this, related );
-               }
-
-               if ( !inside ) {
-
-                       jQuery.event.handle.apply( this, arguments );
-
-                       event.type = eventType;
-               }
-       }
-},
-
-// In case of event delegation, we only need to rename the event.type,
-// liveHandler will take care of the rest.
-delegate = function( event ) {
-       event.type = event.data;
-       jQuery.event.handle.apply( this, arguments );
-};
-
-// Create mouseenter and mouseleave events
-jQuery.each({
-       mouseenter: "mouseover",
-       mouseleave: "mouseout"
-}, function( orig, fix ) {
-       jQuery.event.special[ orig ] = {
-               setup: function( data ) {
-                       jQuery.event.add( this, fix, data && data.selector ? delegate : withinElement, orig );
-               },
-               teardown: function( data ) {
-                       jQuery.event.remove( this, fix, data && data.selector ? delegate : withinElement );
-               }
-       };
-});
-
-// submit delegation
-if ( !jQuery.support.submitBubbles ) {
-
-       jQuery.event.special.submit = {
-               setup: function( data, namespaces ) {
-                       if ( !jQuery.nodeName( this, "form" ) ) {
-                               jQuery.event.add(this, "click.specialSubmit", function( e ) {
-                                       // Avoid triggering error on non-existent type attribute in IE VML (#7071)
-                                       var elem = e.target,
-                                               type = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.type : "";
-
-                                       if ( (type === "submit" || type === "image") && jQuery( elem ).closest("form").length ) {
-                                               trigger( "submit", this, arguments );
-                                       }
-                               });
-
-                               jQuery.event.add(this, "keypress.specialSubmit", function( e ) {
-                                       var elem = e.target,
-                                               type = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.type : "";
-
-                                       if ( (type === "text" || type === "password") && jQuery( elem ).closest("form").length && e.keyCode === 13 ) {
-                                               trigger( "submit", this, arguments );
-                                       }
-                               });
-
-                       } else {
-                               return false;
-                       }
-               },
-
-               teardown: function( namespaces ) {
-                       jQuery.event.remove( this, ".specialSubmit" );
-               }
-       };
-
-}
-
-// change delegation, happens here so we have bind.
-if ( !jQuery.support.changeBubbles ) {
-
-       var changeFilters,
-
-       getVal = function( elem ) {
-               var type = jQuery.nodeName( elem, "input" ) ? elem.type : "",
-                       val = elem.value;
-
-               if ( type === "radio" || type === "checkbox" ) {
-                       val = elem.checked;
-
-               } else if ( type === "select-multiple" ) {
-                       val = elem.selectedIndex > -1 ?
-                               jQuery.map( elem.options, function( elem ) {
-                                       return elem.selected;
-                               }).join("-") :
-                               "";
-
-               } else if ( jQuery.nodeName( elem, "select" ) ) {
-                       val = elem.selectedIndex;
-               }
-
-               return val;
-       },
-
-       testChange = function testChange( e ) {
-               var elem = e.target, data, val;
-
-               if ( !rformElems.test( elem.nodeName ) || elem.readOnly ) {
-                       return;
-               }
-
-               data = jQuery._data( elem, "_change_data" );
-               val = getVal(elem);
-
-               // the current data will be also retrieved by beforeactivate
-               if ( e.type !== "focusout" || elem.type !== "radio" ) {
-                       jQuery._data( elem, "_change_data", val );
-               }
-
-               if ( data === undefined || val === data ) {
-                       return;
-               }
-
-               if ( data != null || val ) {
-                       e.type = "change";
-                       e.liveFired = undefined;
-                       jQuery.event.trigger( e, arguments[1], elem );
-               }
-       };
-
-       jQuery.event.special.change = {
-               filters: {
-                       focusout: testChange,
-
-                       beforedeactivate: testChange,
-
-                       click: function( e ) {
-                               var elem = e.target, type = jQuery.nodeName( elem, "input" ) ? elem.type : "";
-
-                               if ( type === "radio" || type === "checkbox" || jQuery.nodeName( elem, "select" ) ) {
-                                       testChange.call( this, e );
-                               }
-                       },
-
-                       // Change has to be called before submit
-                       // Keydown will be called before keypress, which is used in submit-event delegation
-                       keydown: function( e ) {
-                               var elem = e.target, type = jQuery.nodeName( elem, "input" ) ? elem.type : "";
-
-                               if ( (e.keyCode === 13 && !jQuery.nodeName( elem, "textarea" ) ) ||
-                                       (e.keyCode === 32 && (type === "checkbox" || type === "radio")) ||
-                                       type === "select-multiple" ) {
-                                       testChange.call( this, e );
-                               }
-                       },
-
-                       // Beforeactivate happens also before the previous element is blurred
-                       // with this event you can't trigger a change event, but you can store
-                       // information
-                       beforeactivate: function( e ) {
-                               var elem = e.target;
-                               jQuery._data( elem, "_change_data", getVal(elem) );
-                       }
-               },
-
-               setup: function( data, namespaces ) {
-                       if ( this.type === "file" ) {
-                               return false;
-                       }
-
-                       for ( var type in changeFilters ) {
-                               jQuery.event.add( this, type + ".specialChange", changeFilters[type] );
-                       }
-
-                       return rformElems.test( this.nodeName );
-               },
-
-               teardown: function( namespaces ) {
-                       jQuery.event.remove( this, ".specialChange" );
-
-                       return rformElems.test( this.nodeName );
-               }
-       };
-
-       changeFilters = jQuery.event.special.change.filters;
-
-       // Handle when the input is .focus()'d
-       changeFilters.focus = changeFilters.beforeactivate;
-}
-
-function trigger( type, elem, args ) {
-       // Piggyback on a donor event to simulate a different one.
-       // Fake originalEvent to avoid donor's stopPropagation, but if the
-       // simulated event prevents default then we do the same on the donor.
-       // Don't pass args or remember liveFired; they apply to the donor event.
-       var event = jQuery.extend( {}, args[ 0 ] );
-       event.type = type;
-       event.originalEvent = {};
-       event.liveFired = undefined;
-       jQuery.event.handle.call( elem, event );
-       if ( event.isDefaultPrevented() ) {
-               args[ 0 ].preventDefault();
-       }
-}
-
-// Create "bubbling" focus and blur events
-if ( !jQuery.support.focusinBubbles ) {
-       jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
-
-               // Attach a single capturing handler while someone wants focusin/focusout
-               var attaches = 0;
-
-               jQuery.event.special[ fix ] = {
-                       setup: function() {
-                               if ( attaches++ === 0 ) {
-                                       document.addEventListener( orig, handler, true );
-                               }
-                       },
-                       teardown: function() {
-                               if ( --attaches === 0 ) {
-                                       document.removeEventListener( orig, handler, true );
-                               }
-                       }
-               };
-
-               function handler( donor ) {
-                       // Donor event is always a native one; fix it and switch its type.
-                       // Let focusin/out handler cancel the donor focus/blur event.
-                       var e = jQuery.event.fix( donor );
-                       e.type = fix;
-                       e.originalEvent = {};
-                       jQuery.event.trigger( e, null, e.target );
-                       if ( e.isDefaultPrevented() ) {
-                               donor.preventDefault();
-                       }
-               }
-       });
-}
-
-jQuery.each(["bind", "one"], function( i, name ) {
-       jQuery.fn[ name ] = function( type, data, fn ) {
-               var handler;
-
-               // Handle object literals
-               if ( typeof type === "object" ) {
-                       for ( var key in type ) {
-                               this[ name ](key, data, type[key], fn);
-                       }
-                       return this;
-               }
-
-               if ( arguments.length === 2 || data === false ) {
-                       fn = data;
-                       data = undefined;
-               }
-
-               if ( name === "one" ) {
-                       handler = function( event ) {
-                               jQuery( this ).unbind( event, handler );
-                               return fn.apply( this, arguments );
-                       };
-                       handler.guid = fn.guid || jQuery.guid++;
-               } else {
-                       handler = fn;
-               }
-
-               if ( type === "unload" && name !== "one" ) {
-                       this.one( type, data, fn );
-
-               } else {
-                       for ( var i = 0, l = this.length; i < l; i++ ) {
-                               jQuery.event.add( this[i], type, handler, data );
-                       }
-               }
-
-               return this;
-       };
-});
-
-jQuery.fn.extend({
-       unbind: function( type, fn ) {
-               // Handle object literals
-               if ( typeof type === "object" && !type.preventDefault ) {
-                       for ( var key in type ) {
-                               this.unbind(key, type[key]);
-                       }
-
-               } else {
-                       for ( var i = 0, l = this.length; i < l; i++ ) {
-                               jQuery.event.remove( this[i], type, fn );
-                       }
-               }
-
-               return this;
-       },
-
-       delegate: function( selector, types, data, fn ) {
-               return this.live( types, data, fn, selector );
-       },
-
-       undelegate: function( selector, types, fn ) {
-               if ( arguments.length === 0 ) {
-                       return this.unbind( "live" );
-
-               } else {
-                       return this.die( types, null, fn, selector );
-               }
-       },
-
-       trigger: function( type, data ) {
-               return this.each(function() {
-                       jQuery.event.trigger( type, data, this );
-               });
-       },
-
-       triggerHandler: function( type, data ) {
-               if ( this[0] ) {
-                       return jQuery.event.trigger( type, data, this[0], true );
-               }
-       },
-
-       toggle: function( fn ) {
-               // Save reference to arguments for access in closure
-               var args = arguments,
-                       guid = fn.guid || jQuery.guid++,
-                       i = 0,
-                       toggler = function( event ) {
-                               // Figure out which function to execute
-                               var lastToggle = ( jQuery.data( this, "lastToggle" + fn.guid ) || 0 ) % i;
-                               jQuery.data( this, "lastToggle" + fn.guid, lastToggle + 1 );
-
-                               // Make sure that clicks stop
-                               event.preventDefault();
-
-                               // and execute the function
-                               return args[ lastToggle ].apply( this, arguments ) || false;
-                       };
-
-               // link all the functions, so any of them can unbind this click handler
-               toggler.guid = guid;
-               while ( i < args.length ) {
-                       args[ i++ ].guid = guid;
-               }
-
-               return this.click( toggler );
-       },
-
-       hover: function( fnOver, fnOut ) {
-               return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
-       }
-});
-
-var liveMap = {
-       focus: "focusin",
-       blur: "focusout",
-       mouseenter: "mouseover",
-       mouseleave: "mouseout"
-};
-
-jQuery.each(["live", "die"], function( i, name ) {
-       jQuery.fn[ name ] = function( types, data, fn, origSelector /* Internal Use Only */ ) {
-               var type, i = 0, match, namespaces, preType,
-                       selector = origSelector || this.selector,
-                       context = origSelector ? this : jQuery( this.context );
-
-               if ( typeof types === "object" && !types.preventDefault ) {
-                       for ( var key in types ) {
-                               context[ name ]( key, data, types[key], selector );
-                       }
-
-                       return this;
-               }
-
-               if ( name === "die" && !types &&
-                                       origSelector && origSelector.charAt(0) === "." ) {
-
-                       context.unbind( origSelector );
-
-                       return this;
-               }
-
-               if ( data === false || jQuery.isFunction( data ) ) {
-                       fn = data || returnFalse;
-                       data = undefined;
-               }
-
-               types = (types || "").split(" ");
-
-               while ( (type = types[ i++ ]) != null ) {
-                       match = rnamespaces.exec( type );
-                       namespaces = "";
-
-                       if ( match )  {
-                               namespaces = match[0];
-                               type = type.replace( rnamespaces, "" );
-                       }
-
-                       if ( type === "hover" ) {
-                               types.push( "mouseenter" + namespaces, "mouseleave" + namespaces );
-                               continue;
-                       }
-
-                       preType = type;
-
-                       if ( liveMap[ type ] ) {
-                               types.push( liveMap[ type ] + namespaces );
-                               type = type + namespaces;
-
-                       } else {
-                               type = (liveMap[ type ] || type) + namespaces;
-                       }
-
-                       if ( name === "live" ) {
-                               // bind live handler
-                               for ( var j = 0, l = context.length; j < l; j++ ) {
-                                       jQuery.event.add( context[j], "live." + liveConvert( type, selector ),
-                                               { data: data, selector: selector, handler: fn, origType: type, origHandler: fn, preType: preType } );
-                               }
-
-                       } else {
-                               // unbind live handler
-                               context.unbind( "live." + liveConvert( type, selector ), fn );
-                       }
-               }
-
-               return this;
-       };
-});
-
-function liveHandler( event ) {
-       var stop, maxLevel, related, match, handleObj, elem, j, i, l, data, close, namespace, ret,
-               elems = [],
-               selectors = [],
-               events = jQuery._data( this, "events" );
-
-       // Make sure we avoid non-left-click bubbling in Firefox (#3861) and disabled elements in IE (#6911)
-       if ( event.liveFired === this || !events || !events.live || event.target.disabled || event.button && event.type === "click" ) {
-               return;
-       }
-
-       if ( event.namespace ) {
-               namespace = new RegExp("(^|\\.)" + event.namespace.split(".").join("\\.(?:.*\\.)?") + "(\\.|$)");
-       }
-
-       event.liveFired = this;
-
-       var live = events.live.slice(0);
-
-       for ( j = 0; j < live.length; j++ ) {
-               handleObj = live[j];
-
-               if ( handleObj.origType.replace( rnamespaces, "" ) === event.type ) {
-                       selectors.push( handleObj.selector );
-
-               } else {
-                       live.splice( j--, 1 );
-               }
-       }
-
-       match = jQuery( event.target ).closest( selectors, event.currentTarget );
-
-       for ( i = 0, l = match.length; i < l; i++ ) {
-               close = match[i];
-
-               for ( j = 0; j < live.length; j++ ) {
-                       handleObj = live[j];
-
-                       if ( close.selector === handleObj.selector && (!namespace || namespace.test( handleObj.namespace )) && !close.elem.disabled ) {
-                               elem = close.elem;
-                               related = null;
-
-                               // Those two events require additional checking
-                               if ( handleObj.preType === "mouseenter" || handleObj.preType === "mouseleave" ) {
-                                       event.type = handleObj.preType;
-                                       related = jQuery( event.relatedTarget ).closest( handleObj.selector )[0];
-
-                                       // Make sure not to accidentally match a child element with the same selector
-                                       if ( related && jQuery.contains( elem, related ) ) {
-                                               related = elem;
-                                       }
-                               }
-
-                               if ( !related || related !== elem ) {
-                                       elems.push({ elem: elem, handleObj: handleObj, level: close.level });
-                               }
-                       }
-               }
-       }
-
-       for ( i = 0, l = elems.length; i < l; i++ ) {
-               match = elems[i];
-
-               if ( maxLevel && match.level > maxLevel ) {
-                       break;
-               }
-
-               event.currentTarget = match.elem;
-               event.data = match.handleObj.data;
-               event.handleObj = match.handleObj;
-
-               ret = match.handleObj.origHandler.apply( match.elem, arguments );
-
-               if ( ret === false || event.isPropagationStopped() ) {
-                       maxLevel = match.level;
-
-                       if ( ret === false ) {
-                               stop = false;
-                       }
-                       if ( event.isImmediatePropagationStopped() ) {
-                               break;
-                       }
-               }
-       }
-
-       return stop;
-}
-
-function liveConvert( type, selector ) {
-       return (type && type !== "*" ? type + "." : "") + selector.replace(rperiod, "`").replace(rspaces, "&");
-}
-
-jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
-       "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
-       "change select submit keydown keypress keyup error").split(" "), function( i, name ) {
-
-       // Handle event binding
-       jQuery.fn[ name ] = function( data, fn ) {
-               if ( fn == null ) {
-                       fn = data;
-                       data = null;
-               }
-
-               return arguments.length > 0 ?
-                       this.bind( name, data, fn ) :
-                       this.trigger( name );
-       };
-
-       if ( jQuery.attrFn ) {
-               jQuery.attrFn[ name ] = true;
-       }
-});
-
-
-
-/*!
- * Sizzle CSS Selector Engine
- *  Copyright 2011, The Dojo Foundation
- *  Released under the MIT, BSD, and GPL Licenses.
- *  More information: http://sizzlejs.com/
- */
-(function(){
-
-var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
-       done = 0,
-       toString = Object.prototype.toString,
-       hasDuplicate = false,
-       baseHasDuplicate = true,
-       rBackslash = /\\/g,
-       rNonWord = /\W/;
-
-// Here we check if the JavaScript engine is using some sort of
-// optimization where it does not always call our comparision
-// function. If that is the case, discard the hasDuplicate value.
-//   Thus far that includes Google Chrome.
-[0, 0].sort(function() {
-       baseHasDuplicate = false;
-       return 0;
-});
-
-var Sizzle = function( selector, context, results, seed ) {
-       results = results || [];
-       context = context || document;
-
-       var origContext = context;
-
-       if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
-               return [];
-       }
-       
-       if ( !selector || typeof selector !== "string" ) {
-               return results;
-       }
-
-       var m, set, checkSet, extra, ret, cur, pop, i,
-               prune = true,
-               contextXML = Sizzle.isXML( context ),
-               parts = [],
-               soFar = selector;
-       
-       // Reset the position of the chunker regexp (start from head)
-       do {
-               chunker.exec( "" );
-               m = chunker.exec( soFar );
-
-               if ( m ) {
-                       soFar = m[3];
-               
-                       parts.push( m[1] );
-               
-                       if ( m[2] ) {
-                               extra = m[3];
-                               break;
-                       }
-               }
-       } while ( m );
-
-       if ( parts.length > 1 && origPOS.exec( selector ) ) {
-
-               if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
-                       set = posProcess( parts[0] + parts[1], context );
-
-               } else {
-                       set = Expr.relative[ parts[0] ] ?
-                               [ context ] :
-                               Sizzle( parts.shift(), context );
-
-                       while ( parts.length ) {
-                               selector = parts.shift();
-
-                               if ( Expr.relative[ selector ] ) {
-                                       selector += parts.shift();
-                               }
-                               
-                               set = posProcess( selector, set );
-                       }
-               }
-
-       } else {
-               // Take a shortcut and set the context if the root selector is an ID
-               // (but not if it'll be faster if the inner selector is an ID)
-               if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
-                               Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
-
-                       ret = Sizzle.find( parts.shift(), context, contextXML );
-                       context = ret.expr ?
-                               Sizzle.filter( ret.expr, ret.set )[0] :
-                               ret.set[0];
-               }
-
-               if ( context ) {
-                       ret = seed ?
-                               { expr: parts.pop(), set: makeArray(seed) } :
-                               Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );
-
-                       set = ret.expr ?
-                               Sizzle.filter( ret.expr, ret.set ) :
-                               ret.set;
-
-                       if ( parts.length > 0 ) {
-                               checkSet = makeArray( set );
-
-                       } else {
-                               prune = false;
-                       }
-
-                       while ( parts.length ) {
-                               cur = parts.pop();
-                               pop = cur;
-
-                               if ( !Expr.relative[ cur ] ) {
-                                       cur = "";
-                               } else {
-                                       pop = parts.pop();
-                               }
-
-                               if ( pop == null ) {
-                                       pop = context;
-                               }
-
-                               Expr.relative[ cur ]( checkSet, pop, contextXML );
-                       }
-
-               } else {
-                       checkSet = parts = [];
-               }
-       }
-
-       if ( !checkSet ) {
-               checkSet = set;
-       }
-
-       if ( !checkSet ) {
-               Sizzle.error( cur || selector );
-       }
-
-       if ( toString.call(checkSet) === "[object Array]" ) {
-               if ( !prune ) {
-                       results.push.apply( results, checkSet );
-
-               } else if ( context && context.nodeType === 1 ) {
-                       for ( i = 0; checkSet[i] != null; i++ ) {
-                               if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {
-                                       results.push( set[i] );
-                               }
-                       }
-
-               } else {
-                       for ( i = 0; checkSet[i] != null; i++ ) {
-                               if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
-                                       results.push( set[i] );
-                               }
-                       }
-               }
-
-       } else {
-               makeArray( checkSet, results );
-       }
-
-       if ( extra ) {
-               Sizzle( extra, origContext, results, seed );
-               Sizzle.uniqueSort( results );
-       }
-
-       return results;
-};
-
-Sizzle.uniqueSort = function( results ) {
-       if ( sortOrder ) {
-               hasDuplicate = baseHasDuplicate;
-               results.sort( sortOrder );
-
-               if ( hasDuplicate ) {
-                       for ( var i = 1; i < results.length; i++ ) {
-                               if ( results[i] === results[ i - 1 ] ) {
-                                       results.splice( i--, 1 );
-                               }
-                       }
-               }
-       }
-
-       return results;
-};
-
-Sizzle.matches = function( expr, set ) {
-       return Sizzle( expr, null, null, set );
-};
-
-Sizzle.matchesSelector = function( node, expr ) {
-       return Sizzle( expr, null, null, [node] ).length > 0;
-};
-
-Sizzle.find = function( expr, context, isXML ) {
-       var set;
-
-       if ( !expr ) {
-               return [];
-       }
-
-       for ( var i = 0, l = Expr.order.length; i < l; i++ ) {
-               var match,
-                       type = Expr.order[i];
-               
-               if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
-                       var left = match[1];
-                       match.splice( 1, 1 );
-
-                       if ( left.substr( left.length - 1 ) !== "\\" ) {
-                               match[1] = (match[1] || "").replace( rBackslash, "" );
-                               set = Expr.find[ type ]( match, context, isXML );
-
-                               if ( set != null ) {
-                                       expr = expr.replace( Expr.match[ type ], "" );
-                                       break;
-                               }
-                       }
-               }
-       }
-
-       if ( !set ) {
-               set = typeof context.getElementsByTagName !== "undefined" ?
-                       context.getElementsByTagName( "*" ) :
-                       [];
-       }
-
-       return { set: set, expr: expr };
-};
-
-Sizzle.filter = function( expr, set, inplace, not ) {
-       var match, anyFound,
-               old = expr,
-               result = [],
-               curLoop = set,
-               isXMLFilter = set && set[0] && Sizzle.isXML( set[0] );
-
-       while ( expr && set.length ) {
-               for ( var type in Expr.filter ) {
-                       if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
-                               var found, item,
-                                       filter = Expr.filter[ type ],
-                                       left = match[1];
-
-                               anyFound = false;
-
-                               match.splice(1,1);
-
-                               if ( left.substr( left.length - 1 ) === "\\" ) {
-                                       continue;
-                               }
-
-                               if ( curLoop === result ) {
-                                       result = [];
-                               }
-
-                               if ( Expr.preFilter[ type ] ) {
-                                       match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
-
-                                       if ( !match ) {
-                                               anyFound = found = true;
-
-                                       } else if ( match === true ) {
-                                               continue;
-                                       }
-                               }
-
-                               if ( match ) {
-                                       for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
-                                               if ( item ) {
-                                                       found = filter( item, match, i, curLoop );
-                                                       var pass = not ^ !!found;
-
-                                                       if ( inplace && found != null ) {
-                                                               if ( pass ) {
-                                                                       anyFound = true;
-
-                                                               } else {
-                                                                       curLoop[i] = false;
-                                                               }
-
-                                                       } else if ( pass ) {
-                                                               result.push( item );
-                                                               anyFound = true;
-                                                       }
-                                               }
-                                       }
-                               }
-
-                               if ( found !== undefined ) {
-                                       if ( !inplace ) {
-                                               curLoop = result;
-                                       }
-
-                                       expr = expr.replace( Expr.match[ type ], "" );
-
-                                       if ( !anyFound ) {
-                                               return [];
-                                       }
-
-                                       break;
-                               }
-                       }
-               }
-
-               // Improper expression
-               if ( expr === old ) {
-                       if ( anyFound == null ) {
-                               Sizzle.error( expr );
-
-                       } else {
-                               break;
-                       }
-               }
-
-               old = expr;
-       }
-
-       return curLoop;
-};
-
-Sizzle.error = function( msg ) {
-       throw "Syntax error, unrecognized expression: " + msg;
-};
-
-var Expr = Sizzle.selectors = {
-       order: [ "ID", "NAME", "TAG" ],
-
-       match: {
-               ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
-               CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
-               NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
-               ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
-               TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,
-               CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,
-               POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,
-               PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
-       },
-
-       leftMatch: {},
-
-       attrMap: {
-               "class": "className",
-               "for": "htmlFor"
-       },
-
-       attrHandle: {
-               href: function( elem ) {
-                       return elem.getAttribute( "href" );
-               },
-               type: function( elem ) {
-                       return elem.getAttribute( "type" );
-               }
-       },
-
-       relative: {
-               "+": function(checkSet, part){
-                       var isPartStr = typeof part === "string",
-                               isTag = isPartStr && !rNonWord.test( part ),
-                               isPartStrNotTag = isPartStr && !isTag;
-
-                       if ( isTag ) {
-                               part = part.toLowerCase();
-                       }
-
-                       for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
-                               if ( (elem = checkSet[i]) ) {
-                                       while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
-
-                                       checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?
-                                               elem || false :
-                                               elem === part;
-                               }
-                       }
-
-                       if ( isPartStrNotTag ) {
-                               Sizzle.filter( part, checkSet, true );
-                       }
-               },
-
-               ">": function( checkSet, part ) {
-                       var elem,
-                               isPartStr = typeof part === "string",
-                               i = 0,
-                               l = checkSet.length;
-
-                       if ( isPartStr && !rNonWord.test( part ) ) {
-                               part = part.toLowerCase();
-
-                               for ( ; i < l; i++ ) {
-                                       elem = checkSet[i];
-
-                                       if ( elem ) {
-                                               var parent = elem.parentNode;
-                                               checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
-                                       }
-                               }
-
-                       } else {
-                               for ( ; i < l; i++ ) {
-                                       elem = checkSet[i];
-
-                                       if ( elem ) {
-                                               checkSet[i] = isPartStr ?
-                                                       elem.parentNode :
-                                                       elem.parentNode === part;
-                                       }
-                               }
-
-                               if ( isPartStr ) {
-                                       Sizzle.filter( part, checkSet, true );
-                               }
-                       }
-               },
-
-               "": function(checkSet, part, isXML){
-                       var nodeCheck,
-                               doneName = done++,
-                               checkFn = dirCheck;
-
-                       if ( typeof part === "string" && !rNonWord.test( part ) ) {
-                               part = part.toLowerCase();
-                               nodeCheck = part;
-                               checkFn = dirNodeCheck;
-                       }
-
-                       checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML );
-               },
-
-               "~": function( checkSet, part, isXML ) {
-                       var nodeCheck,
-                               doneName = done++,
-                               checkFn = dirCheck;
-
-                       if ( typeof part === "string" && !rNonWord.test( part ) ) {
-                               part = part.toLowerCase();
-                               nodeCheck = part;
-                               checkFn = dirNodeCheck;
-                       }
-
-                       checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML );
-               }
-       },
-
-       find: {
-               ID: function( match, context, isXML ) {
-                       if ( typeof context.getElementById !== "undefined" && !isXML ) {
-                               var m = context.getElementById(match[1]);
-                               // Check parentNode to catch when Blackberry 4.6 returns
-                               // nodes that are no longer in the document #6963
-                               return m && m.parentNode ? [m] : [];
-                       }
-               },
-
-               NAME: function( match, context ) {
-                       if ( typeof context.getElementsByName !== "undefined" ) {
-                               var ret = [],
-                                       results = context.getElementsByName( match[1] );
-
-                               for ( var i = 0, l = results.length; i < l; i++ ) {
-                                       if ( results[i].getAttribute("name") === match[1] ) {
-                                               ret.push( results[i] );
-                                       }
-                               }
-
-                               return ret.length === 0 ? null : ret;
-                       }
-               },
-
-               TAG: function( match, context ) {
-                       if ( typeof context.getElementsByTagName !== "undefined" ) {
-                               return context.getElementsByTagName( match[1] );
-                       }
-               }
-       },
-       preFilter: {
-               CLASS: function( match, curLoop, inplace, result, not, isXML ) {
-                       match = " " + match[1].replace( rBackslash, "" ) + " ";
-
-                       if ( isXML ) {
-                               return match;
-                       }
-
-                       for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
-                               if ( elem ) {
-                                       if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) {
-                                               if ( !inplace ) {
-                                                       result.push( elem );
-                                               }
-
-                                       } else if ( inplace ) {
-                                               curLoop[i] = false;
-                                       }
-                               }
-                       }
-
-                       return false;
-               },
-
-               ID: function( match ) {
-                       return match[1].replace( rBackslash, "" );
-               },
-
-               TAG: function( match, curLoop ) {
-                       return match[1].replace( rBackslash, "" ).toLowerCase();
-               },
-
-               CHILD: function( match ) {
-                       if ( match[1] === "nth" ) {
-                               if ( !match[2] ) {
-                                       Sizzle.error( match[0] );
-                               }
-
-                               match[2] = match[2].replace(/^\+|\s*/g, '');
-
-                               // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
-                               var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec(
-                                       match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
-                                       !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
-
-                               // calculate the numbers (first)n+(last) including if they are negative
-                               match[2] = (test[1] + (test[2] || 1)) - 0;
-                               match[3] = test[3] - 0;
-                       }
-                       else if ( match[2] ) {
-                               Sizzle.error( match[0] );
-                       }
-
-                       // TODO: Move to normal caching system
-                       match[0] = done++;
-
-                       return match;
-               },
-
-               ATTR: function( match, curLoop, inplace, result, not, isXML ) {
-                       var name = match[1] = match[1].replace( rBackslash, "" );
-                       
-                       if ( !isXML && Expr.attrMap[name] ) {
-                               match[1] = Expr.attrMap[name];
-                       }
-
-                       // Handle if an un-quoted value was used
-                       match[4] = ( match[4] || match[5] || "" ).replace( rBackslash, "" );
-
-                       if ( match[2] === "~=" ) {
-                               match[4] = " " + match[4] + " ";
-                       }
-
-                       return match;
-               },
-
-               PSEUDO: function( match, curLoop, inplace, result, not ) {
-                       if ( match[1] === "not" ) {
-                               // If we're dealing with a complex expression, or a simple one
-                               if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
-                                       match[3] = Sizzle(match[3], null, null, curLoop);
-
-                               } else {
-                                       var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
-
-                                       if ( !inplace ) {
-                                               result.push.apply( result, ret );
-                                       }
-
-                                       return false;
-                               }
-
-                       } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
-                               return true;
-                       }
-                       
-                       return match;
-               },
-
-               POS: function( match ) {
-                       match.unshift( true );
-
-                       return match;
-               }
-       },
-       
-       filters: {
-               enabled: function( elem ) {
-                       return elem.disabled === false && elem.type !== "hidden";
-               },
-
-               disabled: function( elem ) {
-                       return elem.disabled === true;
-               },
-
-               checked: function( elem ) {
-                       return elem.checked === true;
-               },
-               
-               selected: function( elem ) {
-                       // Accessing this property makes selected-by-default
-                       // options in Safari work properly
-                       if ( elem.parentNode ) {
-                               elem.parentNode.selectedIndex;
-                       }
-                       
-                       return elem.selected === true;
-               },
-
-               parent: function( elem ) {
-                       return !!elem.firstChild;
-               },
-
-               empty: function( elem ) {
-                       return !elem.firstChild;
-               },
-
-               has: function( elem, i, match ) {
-                       return !!Sizzle( match[3], elem ).length;
-               },
-
-               header: function( elem ) {
-                       return (/h\d/i).test( elem.nodeName );
-               },
-
-               text: function( elem ) {
-                       var attr = elem.getAttribute( "type" ), type = elem.type;
-                       // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) 
-                       // use getAttribute instead to test this case
-                       return elem.nodeName.toLowerCase() === "input" && "text" === type && ( attr === type || attr === null );
-               },
-
-               radio: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "radio" === elem.type;
-               },
-
-               checkbox: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "checkbox" === elem.type;
-               },
-
-               file: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "file" === elem.type;
-               },
-
-               password: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "password" === elem.type;
-               },
-
-               submit: function( elem ) {
-                       var name = elem.nodeName.toLowerCase();
-                       return (name === "input" || name === "button") && "submit" === elem.type;
-               },
-
-               image: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "image" === elem.type;
-               },
-
-               reset: function( elem ) {
-                       var name = elem.nodeName.toLowerCase();
-                       return (name === "input" || name === "button") && "reset" === elem.type;
-               },
-
-               button: function( elem ) {
-                       var name = elem.nodeName.toLowerCase();
-                       return name === "input" && "button" === elem.type || name === "button";
-               },
-
-               input: function( elem ) {
-                       return (/input|select|textarea|button/i).test( elem.nodeName );
-               },
-
-               focus: function( elem ) {
-                       return elem === elem.ownerDocument.activeElement;
-               }
-       },
-       setFilters: {
-               first: function( elem, i ) {
-                       return i === 0;
-               },
-
-               last: function( elem, i, match, array ) {
-                       return i === array.length - 1;
-               },
-
-               even: function( elem, i ) {
-                       return i % 2 === 0;
-               },
-
-               odd: function( elem, i ) {
-                       return i % 2 === 1;
-               },
-
-               lt: function( elem, i, match ) {
-                       return i < match[3] - 0;
-               },
-
-               gt: function( elem, i, match ) {
-                       return i > match[3] - 0;
-               },
-
-               nth: function( elem, i, match ) {
-                       return match[3] - 0 === i;
-               },
-
-               eq: function( elem, i, match ) {
-                       return match[3] - 0 === i;
-               }
-       },
-       filter: {
-               PSEUDO: function( elem, match, i, array ) {
-                       var name = match[1],
-                               filter = Expr.filters[ name ];
-
-                       if ( filter ) {
-                               return filter( elem, i, match, array );
-
-                       } else if ( name === "contains" ) {
-                               return (elem.textContent || elem.innerText || Sizzle.getText([ elem ]) || "").indexOf(match[3]) >= 0;
-
-                       } else if ( name === "not" ) {
-                               var not = match[3];
-
-                               for ( var j = 0, l = not.length; j < l; j++ ) {
-                                       if ( not[j] === elem ) {
-                                               return false;
-                                       }
-                               }
-
-                               return true;
-
-                       } else {
-                               Sizzle.error( name );
-                       }
-               },
-
-               CHILD: function( elem, match ) {
-                       var type = match[1],
-                               node = elem;
-
-                       switch ( type ) {
-                               case "only":
-                               case "first":
-                                       while ( (node = node.previousSibling) )  {
-                                               if ( node.nodeType === 1 ) { 
-                                                       return false; 
-                                               }
-                                       }
-
-                                       if ( type === "first" ) { 
-                                               return true; 
-                                       }
-
-                                       node = elem;
-
-                               case "last":
-                                       while ( (node = node.nextSibling) )      {
-                                               if ( node.nodeType === 1 ) { 
-                                                       return false; 
-                                               }
-                                       }
-
-                                       return true;
-
-                               case "nth":
-                                       var first = match[2],
-                                               last = match[3];
-
-                                       if ( first === 1 && last === 0 ) {
-                                               return true;
-                                       }
-                                       
-                                       var doneName = match[0],
-                                               parent = elem.parentNode;
-       
-                                       if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) {
-                                               var count = 0;
-                                               
-                                               for ( node = parent.firstChild; node; node = node.nextSibling ) {
-                                                       if ( node.nodeType === 1 ) {
-                                                               node.nodeIndex = ++count;
-                                                       }
-                                               } 
-
-                                               parent.sizcache = doneName;
-                                       }
-                                       
-                                       var diff = elem.nodeIndex - last;
-
-                                       if ( first === 0 ) {
-                                               return diff === 0;
-
-                                       } else {
-                                               return ( diff % first === 0 && diff / first >= 0 );
-                                       }
-                       }
-               },
-
-               ID: function( elem, match ) {
-                       return elem.nodeType === 1 && elem.getAttribute("id") === match;
-               },
-
-               TAG: function( elem, match ) {
-                       return (match === "*" && elem.nodeType === 1) || elem.nodeName.toLowerCase() === match;
-               },
-               
-               CLASS: function( elem, match ) {
-                       return (" " + (elem.className || elem.getAttribute("class")) + " ")
-                               .indexOf( match ) > -1;
-               },
-
-               ATTR: function( elem, match ) {
-                       var name = match[1],
-                               result = Expr.attrHandle[ name ] ?
-                                       Expr.attrHandle[ name ]( elem ) :
-                                       elem[ name ] != null ?
-                                               elem[ name ] :
-                                               elem.getAttribute( name ),
-                               value = result + "",
-                               type = match[2],
-                               check = match[4];
-
-                       return result == null ?
-                               type === "!=" :
-                               type === "=" ?
-                               value === check :
-                               type === "*=" ?
-                               value.indexOf(check) >= 0 :
-                               type === "~=" ?
-                               (" " + value + " ").indexOf(check) >= 0 :
-                               !check ?
-                               value && result !== false :
-                               type === "!=" ?
-                               value !== check :
-                               type === "^=" ?
-                               value.indexOf(check) === 0 :
-                               type === "$=" ?
-                               value.substr(value.length - check.length) === check :
-                               type === "|=" ?
-                               value === check || value.substr(0, check.length + 1) === check + "-" :
-                               false;
-               },
-
-               POS: function( elem, match, i, array ) {
-                       var name = match[2],
-                               filter = Expr.setFilters[ name ];
-
-                       if ( filter ) {
-                               return filter( elem, i, match, array );
-                       }
-               }
-       }
-};
-
-var origPOS = Expr.match.POS,
-       fescape = function(all, num){
-               return "\\" + (num - 0 + 1);
-       };
-
-for ( var type in Expr.match ) {
-       Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) );
-       Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) );
-}
-
-var makeArray = function( array, results ) {
-       array = Array.prototype.slice.call( array, 0 );
-
-       if ( results ) {
-               results.push.apply( results, array );
-               return results;
-       }
-       
-       return array;
-};
-
-// Perform a simple check to determine if the browser is capable of
-// converting a NodeList to an array using builtin methods.
-// Also verifies that the returned array holds DOM nodes
-// (which is not the case in the Blackberry browser)
-try {
-       Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;
-
-// Provide a fallback method if it does not work
-} catch( e ) {
-       makeArray = function( array, results ) {
-               var i = 0,
-                       ret = results || [];
-
-               if ( toString.call(array) === "[object Array]" ) {
-                       Array.prototype.push.apply( ret, array );
-
-               } else {
-                       if ( typeof array.length === "number" ) {
-                               for ( var l = array.length; i < l; i++ ) {
-                                       ret.push( array[i] );
-                               }
-
-                       } else {
-                               for ( ; array[i]; i++ ) {
-                                       ret.push( array[i] );
-                               }
-                       }
-               }
-
-               return ret;
-       };
-}
-
-var sortOrder, siblingCheck;
-
-if ( document.documentElement.compareDocumentPosition ) {
-       sortOrder = function( a, b ) {
-               if ( a === b ) {
-                       hasDuplicate = true;
-                       return 0;
-               }
-
-               if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
-                       return a.compareDocumentPosition ? -1 : 1;
-               }
-
-               return a.compareDocumentPosition(b) & 4 ? -1 : 1;
-       };
-
-} else {
-       sortOrder = function( a, b ) {
-               // The nodes are identical, we can exit early
-               if ( a === b ) {
-                       hasDuplicate = true;
-                       return 0;
-
-               // Fallback to using sourceIndex (in IE) if it's available on both nodes
-               } else if ( a.sourceIndex && b.sourceIndex ) {
-                       return a.sourceIndex - b.sourceIndex;
-               }
-
-               var al, bl,
-                       ap = [],
-                       bp = [],
-                       aup = a.parentNode,
-                       bup = b.parentNode,
-                       cur = aup;
-
-               // If the nodes are siblings (or identical) we can do a quick check
-               if ( aup === bup ) {
-                       return siblingCheck( a, b );
-
-               // If no parents were found then the nodes are disconnected
-               } else if ( !aup ) {
-                       return -1;
-
-               } else if ( !bup ) {
-                       return 1;
-               }
-
-               // Otherwise they're somewhere else in the tree so we need
-               // to build up a full list of the parentNodes for comparison
-               while ( cur ) {
-                       ap.unshift( cur );
-                       cur = cur.parentNode;
-               }
-
-               cur = bup;
-
-               while ( cur ) {
-                       bp.unshift( cur );
-                       cur = cur.parentNode;
-               }
-
-               al = ap.length;
-               bl = bp.length;
-
-               // Start walking down the tree looking for a discrepancy
-               for ( var i = 0; i < al && i < bl; i++ ) {
-                       if ( ap[i] !== bp[i] ) {
-                               return siblingCheck( ap[i], bp[i] );
-                       }
-               }
-
-               // We ended someplace up the tree so do a sibling check
-               return i === al ?
-                       siblingCheck( a, bp[i], -1 ) :
-                       siblingCheck( ap[i], b, 1 );
-       };
-
-       siblingCheck = function( a, b, ret ) {
-               if ( a === b ) {
-                       return ret;
-               }
-
-               var cur = a.nextSibling;
-
-               while ( cur ) {
-                       if ( cur === b ) {
-                               return -1;
-                       }
-
-                       cur = cur.nextSibling;
-               }
-
-               return 1;
-       };
-}
-
-// Utility function for retreiving the text value of an array of DOM nodes
-Sizzle.getText = function( elems ) {
-       var ret = "", elem;
-
-       for ( var i = 0; elems[i]; i++ ) {
-               elem = elems[i];
-
-               // Get the text from text nodes and CDATA nodes
-               if ( elem.nodeType === 3 || elem.nodeType === 4 ) {
-                       ret += elem.nodeValue;
-
-               // Traverse everything else, except comment nodes
-               } else if ( elem.nodeType !== 8 ) {
-                       ret += Sizzle.getText( elem.childNodes );
-               }
-       }
-
-       return ret;
-};
-
-// Check to see if the browser returns elements by name when
-// querying by getElementById (and provide a workaround)
-(function(){
-       // We're going to inject a fake input element with a specified name
-       var form = document.createElement("div"),
-               id = "script" + (new Date()).getTime(),
-               root = document.documentElement;
-
-       form.innerHTML = "<a name='" + id + "'/>";
-
-       // Inject it into the root element, check its status, and remove it quickly
-       root.insertBefore( form, root.firstChild );
-
-       // The workaround has to do additional checks after a getElementById
-       // Which slows things down for other browsers (hence the branching)
-       if ( document.getElementById( id ) ) {
-               Expr.find.ID = function( match, context, isXML ) {
-                       if ( typeof context.getElementById !== "undefined" && !isXML ) {
-                               var m = context.getElementById(match[1]);
-
-                               return m ?
-                                       m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ?
-                                               [m] :
-                                               undefined :
-                                       [];
-                       }
-               };
-
-               Expr.filter.ID = function( elem, match ) {
-                       var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
-
-                       return elem.nodeType === 1 && node && node.nodeValue === match;
-               };
-       }
-
-       root.removeChild( form );
-
-       // release memory in IE
-       root = form = null;
-})();
-
-(function(){
-       // Check to see if the browser returns only elements
-       // when doing getElementsByTagName("*")
-
-       // Create a fake element
-       var div = document.createElement("div");
-       div.appendChild( document.createComment("") );
-
-       // Make sure no comments are found
-       if ( div.getElementsByTagName("*").length > 0 ) {
-               Expr.find.TAG = function( match, context ) {
-                       var results = context.getElementsByTagName( match[1] );
-
-                       // Filter out possible comments
-                       if ( match[1] === "*" ) {
-                               var tmp = [];
-
-                               for ( var i = 0; results[i]; i++ ) {
-                                       if ( results[i].nodeType === 1 ) {
-                                               tmp.push( results[i] );
-                                       }
-                               }
-
-                               results = tmp;
-                       }
-
-                       return results;
-               };
-       }
-
-       // Check to see if an attribute returns normalized href attributes
-       div.innerHTML = "<a href='#'></a>";
-
-       if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
-                       div.firstChild.getAttribute("href") !== "#" ) {
-
-               Expr.attrHandle.href = function( elem ) {
-                       return elem.getAttribute( "href", 2 );
-               };
-       }
-
-       // release memory in IE
-       div = null;
-})();
-
-if ( document.querySelectorAll ) {
-       (function(){
-               var oldSizzle = Sizzle,
-                       div = document.createElement("div"),
-                       id = "__sizzle__";
-
-               div.innerHTML = "<p class='TEST'></p>";
-
-               // Safari can't handle uppercase or unicode characters when
-               // in quirks mode.
-               if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
-                       return;
-               }
-       
-               Sizzle = function( query, context, extra, seed ) {
-                       context = context || document;
-
-                       // Only use querySelectorAll on non-XML documents
-                       // (ID selectors don't work in non-HTML documents)
-                       if ( !seed && !Sizzle.isXML(context) ) {
-                               // See if we find a selector to speed up
-                               var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query );
-                               
-                               if ( match && (context.nodeType === 1 || context.nodeType === 9) ) {
-                                       // Speed-up: Sizzle("TAG")
-                                       if ( match[1] ) {
-                                               return makeArray( context.getElementsByTagName( query ), extra );
-                                       
-                                       // Speed-up: Sizzle(".CLASS")
-                                       } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) {
-                                               return makeArray( context.getElementsByClassName( match[2] ), extra );
-                                       }
-                               }
-                               
-                               if ( context.nodeType === 9 ) {
-                                       // Speed-up: Sizzle("body")
-                                       // The body element only exists once, optimize finding it
-                                       if ( query === "body" && context.body ) {
-                                               return makeArray( [ context.body ], extra );
-                                               
-                                       // Speed-up: Sizzle("#ID")
-                                       } else if ( match && match[3] ) {
-                                               var elem = context.getElementById( match[3] );
-
-                                               // Check parentNode to catch when Blackberry 4.6 returns
-                                               // nodes that are no longer in the document #6963
-                                               if ( elem && elem.parentNode ) {
-                                                       // Handle the case where IE and Opera return items
-                                                       // by name instead of ID
-                                                       if ( elem.id === match[3] ) {
-                                                               return makeArray( [ elem ], extra );
-                                                       }
-                                                       
-                                               } else {
-                                                       return makeArray( [], extra );
-                                               }
-                                       }
-                                       
-                                       try {
-                                               return makeArray( context.querySelectorAll(query), extra );
-                                       } catch(qsaError) {}
-
-                               // qSA works strangely on Element-rooted queries
-                               // We can work around this by specifying an extra ID on the root
-                               // and working up from there (Thanks to Andrew Dupont for the technique)
-                               // IE 8 doesn't work on object elements
-                               } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
-                                       var oldContext = context,
-                                               old = context.getAttribute( "id" ),
-                                               nid = old || id,
-                                               hasParent = context.parentNode,
-                                               relativeHierarchySelector = /^\s*[+~]/.test( query );
-
-                                       if ( !old ) {
-                                               context.setAttribute( "id", nid );
-                                       } else {
-                                               nid = nid.replace( /'/g, "\\$&" );
-                                       }
-                                       if ( relativeHierarchySelector && hasParent ) {
-                                               context = context.parentNode;
-                                       }
-
-                                       try {
-                                               if ( !relativeHierarchySelector || hasParent ) {
-                                                       return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
-                                               }
-
-                                       } catch(pseudoError) {
-                                       } finally {
-                                               if ( !old ) {
-                                                       oldContext.removeAttribute( "id" );
-                                               }
-                                       }
-                               }
-                       }
-               
-                       return oldSizzle(query, context, extra, seed);
-               };
-
-               for ( var prop in oldSizzle ) {
-                       Sizzle[ prop ] = oldSizzle[ prop ];
-               }
-
-               // release memory in IE
-               div = null;
-       })();
-}
-
-(function(){
-       var html = document.documentElement,
-               matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector;
-
-       if ( matches ) {
-               // Check to see if it's possible to do matchesSelector
-               // on a disconnected node (IE 9 fails this)
-               var disconnectedMatch = !matches.call( document.createElement( "div" ), "div" ),
-                       pseudoWorks = false;
-
-               try {
-                       // This should fail with an exception
-                       // Gecko does not error, returns false instead
-                       matches.call( document.documentElement, "[test!='']:sizzle" );
-       
-               } catch( pseudoError ) {
-                       pseudoWorks = true;
-               }
-
-               Sizzle.matchesSelector = function( node, expr ) {
-                       // Make sure that attribute selectors are quoted
-                       expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']");
-
-                       if ( !Sizzle.isXML( node ) ) {
-                               try { 
-                                       if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) {
-                                               var ret = matches.call( node, expr );
-
-                                               // IE 9's matchesSelector returns false on disconnected nodes
-                                               if ( ret || !disconnectedMatch ||
-                                                               // As well, disconnected nodes are said to be in a document
-                                                               // fragment in IE 9, so check for that
-                                                               node.document && node.document.nodeType !== 11 ) {
-                                                       return ret;
-                                               }
-                                       }
-                               } catch(e) {}
-                       }
-
-                       return Sizzle(expr, null, null, [node]).length > 0;
-               };
-       }
-})();
-
-(function(){
-       var div = document.createElement("div");
-
-       div.innerHTML = "<div class='test e'></div><div class='test'></div>";
-
-       // Opera can't find a second classname (in 9.6)
-       // Also, make sure that getElementsByClassName actually exists
-       if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
-               return;
-       }
-
-       // Safari caches class attributes, doesn't catch changes (in 3.2)
-       div.lastChild.className = "e";
-
-       if ( div.getElementsByClassName("e").length === 1 ) {
-               return;
-       }
-       
-       Expr.order.splice(1, 0, "CLASS");
-       Expr.find.CLASS = function( match, context, isXML ) {
-               if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
-                       return context.getElementsByClassName(match[1]);
-               }
-       };
-
-       // release memory in IE
-       div = null;
-})();
-
-function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
-       for ( var i = 0, l = checkSet.length; i < l; i++ ) {
-               var elem = checkSet[i];
-
-               if ( elem ) {
-                       var match = false;
-
-                       elem = elem[dir];
-
-                       while ( elem ) {
-                               if ( elem.sizcache === doneName ) {
-                                       match = checkSet[elem.sizset];
-                                       break;
-                               }
-
-                               if ( elem.nodeType === 1 && !isXML ){
-                                       elem.sizcache = doneName;
-                                       elem.sizset = i;
-                               }
-
-                               if ( elem.nodeName.toLowerCase() === cur ) {
-                                       match = elem;
-                                       break;
-                               }
-
-                               elem = elem[dir];
-                       }
-
-                       checkSet[i] = match;
-               }
-       }
-}
-
-function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
-       for ( var i = 0, l = checkSet.length; i < l; i++ ) {
-               var elem = checkSet[i];
-
-               if ( elem ) {
-                       var match = false;
-                       
-                       elem = elem[dir];
-
-                       while ( elem ) {
-                               if ( elem.sizcache === doneName ) {
-                                       match = checkSet[elem.sizset];
-                                       break;
-                               }
-
-                               if ( elem.nodeType === 1 ) {
-                                       if ( !isXML ) {
-                                               elem.sizcache = doneName;
-                                               elem.sizset = i;
-                                       }
-
-                                       if ( typeof cur !== "string" ) {
-                                               if ( elem === cur ) {
-                                                       match = true;
-                                                       break;
-                                               }
-
-                                       } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
-                                               match = elem;
-                                               break;
-                                       }
-                               }
-
-                               elem = elem[dir];
-                       }
-
-                       checkSet[i] = match;
-               }
-       }
-}
-
-if ( document.documentElement.contains ) {
-       Sizzle.contains = function( a, b ) {
-               return a !== b && (a.contains ? a.contains(b) : true);
-       };
-
-} else if ( document.documentElement.compareDocumentPosition ) {
-       Sizzle.contains = function( a, b ) {
-               return !!(a.compareDocumentPosition(b) & 16);
-       };
-
-} else {
-       Sizzle.contains = function() {
-               return false;
-       };
-}
-
-Sizzle.isXML = function( elem ) {
-       // documentElement is verified for cases where it doesn't yet exist
-       // (such as loading iframes in IE - #4833) 
-       var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
-
-       return documentElement ? documentElement.nodeName !== "HTML" : false;
-};
-
-var posProcess = function( selector, context ) {
-       var match,
-               tmpSet = [],
-               later = "",
-               root = context.nodeType ? [context] : context;
-
-       // Position selectors must be done after the filter
-       // And so must :not(positional) so we move all PSEUDOs to the end
-       while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
-               later += match[0];
-               selector = selector.replace( Expr.match.PSEUDO, "" );
-       }
-
-       selector = Expr.relative[selector] ? selector + "*" : selector;
-
-       for ( var i = 0, l = root.length; i < l; i++ ) {
-               Sizzle( selector, root[i], tmpSet );
-       }
-
-       return Sizzle.filter( later, tmpSet );
-};
-
-// EXPOSE
-jQuery.find = Sizzle;
-jQuery.expr = Sizzle.selectors;
-jQuery.expr[":"] = jQuery.expr.filters;
-jQuery.unique = Sizzle.uniqueSort;
-jQuery.text = Sizzle.getText;
-jQuery.isXMLDoc = Sizzle.isXML;
-jQuery.contains = Sizzle.contains;
-
-
-})();
-
-
-var runtil = /Until$/,
-       rparentsprev = /^(?:parents|prevUntil|prevAll)/,
-       // Note: This RegExp should be improved, or likely pulled from Sizzle
-       rmultiselector = /,/,
-       isSimple = /^.[^:#\[\.,]*$/,
-       slice = Array.prototype.slice,
-       POS = jQuery.expr.match.POS,
-       // methods guaranteed to produce a unique set when starting from a unique set
-       guaranteedUnique = {
-               children: true,
-               contents: true,
-               next: true,
-               prev: true
-       };
-
-jQuery.fn.extend({
-       find: function( selector ) {
-               var self = this,
-                       i, l;
-
-               if ( typeof selector !== "string" ) {
-                       return jQuery( selector ).filter(function() {
-                               for ( i = 0, l = self.length; i < l; i++ ) {
-                                       if ( jQuery.contains( self[ i ], this ) ) {
-                                               return true;
-                                       }
-                               }
-                       });
-               }
-
-               var ret = this.pushStack( "", "find", selector ),
-                       length, n, r;
-
-               for ( i = 0, l = this.length; i < l; i++ ) {
-                       length = ret.length;
-                       jQuery.find( selector, this[i], ret );
-
-                       if ( i > 0 ) {
-                               // Make sure that the results are unique
-                               for ( n = length; n < ret.length; n++ ) {
-                                       for ( r = 0; r < length; r++ ) {
-                                               if ( ret[r] === ret[n] ) {
-                                                       ret.splice(n--, 1);
-                                                       break;
-                                               }
-                                       }
-                               }
-                       }
-               }
-
-               return ret;
-       },
-
-       has: function( target ) {
-               var targets = jQuery( target );
-               return this.filter(function() {
-                       for ( var i = 0, l = targets.length; i < l; i++ ) {
-                               if ( jQuery.contains( this, targets[i] ) ) {
-                                       return true;
-                               }
-                       }
-               });
-       },
-
-       not: function( selector ) {
-               return this.pushStack( winnow(this, selector, false), "not", selector);
-       },
-
-       filter: function( selector ) {
-               return this.pushStack( winnow(this, selector, true), "filter", selector );
-       },
-
-       is: function( selector ) {
-               return !!selector && ( typeof selector === "string" ?
-                       jQuery.filter( selector, this ).length > 0 :
-                       this.filter( selector ).length > 0 );
-       },
-
-       closest: function( selectors, context ) {
-               var ret = [], i, l, cur = this[0];
-               
-               // Array
-               if ( jQuery.isArray( selectors ) ) {
-                       var match, selector,
-                               matches = {},
-                               level = 1;
-
-                       if ( cur && selectors.length ) {
-                               for ( i = 0, l = selectors.length; i < l; i++ ) {
-                                       selector = selectors[i];
-
-                                       if ( !matches[ selector ] ) {
-                                               matches[ selector ] = POS.test( selector ) ?
-                                                       jQuery( selector, context || this.context ) :
-                                                       selector;
-                                       }
-                               }
-
-                               while ( cur && cur.ownerDocument && cur !== context ) {
-                                       for ( selector in matches ) {
-                                               match = matches[ selector ];
-
-                                               if ( match.jquery ? match.index( cur ) > -1 : jQuery( cur ).is( match ) ) {
-                                                       ret.push({ selector: selector, elem: cur, level: level });
-                                               }
-                                       }
-
-                                       cur = cur.parentNode;
-                                       level++;
-                               }
-                       }
-
-                       return ret;
-               }
-
-               // String
-               var pos = POS.test( selectors ) || typeof selectors !== "string" ?
-                               jQuery( selectors, context || this.context ) :
-                               0;
-
-               for ( i = 0, l = this.length; i < l; i++ ) {
-                       cur = this[i];
-
-                       while ( cur ) {
-                               if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {
-                                       ret.push( cur );
-                                       break;
-
-                               } else {
-                                       cur = cur.parentNode;
-                                       if ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) {
-                                               break;
-                                       }
-                               }
-                       }
-               }
-
-               ret = ret.length > 1 ? jQuery.unique( ret ) : ret;
-
-               return this.pushStack( ret, "closest", selectors );
-       },
-
-       // Determine the position of an element within
-       // the matched set of elements
-       index: function( elem ) {
-
-               // No argument, return index in parent
-               if ( !elem ) {
-                       return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1;
-               }
-
-               // index in selector
-               if ( typeof elem === "string" ) {
-                       return jQuery.inArray( this[0], jQuery( elem ) );
-               }
-
-               // Locate the position of the desired element
-               return jQuery.inArray(
-                       // If it receives a jQuery object, the first element is used
-                       elem.jquery ? elem[0] : elem, this );
-       },
-
-       add: function( selector, context ) {
-               var set = typeof selector === "string" ?
-                               jQuery( selector, context ) :
-                               jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),
-                       all = jQuery.merge( this.get(), set );
-
-               return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?
-                       all :
-                       jQuery.unique( all ) );
-       },
-
-       andSelf: function() {
-               return this.add( this.prevObject );
-       }
-});
-
-// A painfully simple check to see if an element is disconnected
-// from a document (should be improved, where feasible).
-function isDisconnected( node ) {
-       return !node || !node.parentNode || node.parentNode.nodeType === 11;
-}
-
-jQuery.each({
-       parent: function( elem ) {
-               var parent = elem.parentNode;
-               return parent && parent.nodeType !== 11 ? parent : null;
-       },
-       parents: function( elem ) {
-               return jQuery.dir( elem, "parentNode" );
-       },
-       parentsUntil: function( elem, i, until ) {
-               return jQuery.dir( elem, "parentNode", until );
-       },
-       next: function( elem ) {
-               return jQuery.nth( elem, 2, "nextSibling" );
-       },
-       prev: function( elem ) {
-               return jQuery.nth( elem, 2, "previousSibling" );
-       },
-       nextAll: function( elem ) {
-               return jQuery.dir( elem, "nextSibling" );
-       },
-       prevAll: function( elem ) {
-               return jQuery.dir( elem, "previousSibling" );
-       },
-       nextUntil: function( elem, i, until ) {
-               return jQuery.dir( elem, "nextSibling", until );
-       },
-       prevUntil: function( elem, i, until ) {
-               return jQuery.dir( elem, "previousSibling", until );
-       },
-       siblings: function( elem ) {
-               return jQuery.sibling( elem.parentNode.firstChild, elem );
-       },
-       children: function( elem ) {
-               return jQuery.sibling( elem.firstChild );
-       },
-       contents: function( elem ) {
-               return jQuery.nodeName( elem, "iframe" ) ?
-                       elem.contentDocument || elem.contentWindow.document :
-                       jQuery.makeArray( elem.childNodes );
-       }
-}, function( name, fn ) {
-       jQuery.fn[ name ] = function( until, selector ) {
-               var ret = jQuery.map( this, fn, until ),
-                       // The variable 'args' was introduced in
-                       // https://github.com/jquery/jquery/commit/52a0238
-                       // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed.
-                       // http://code.google.com/p/v8/issues/detail?id=1050
-                       args = slice.call(arguments);
-
-               if ( !runtil.test( name ) ) {
-                       selector = until;
-               }
-
-               if ( selector && typeof selector === "string" ) {
-                       ret = jQuery.filter( selector, ret );
-               }
-
-               ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;
-
-               if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {
-                       ret = ret.reverse();
-               }
-
-               return this.pushStack( ret, name, args.join(",") );
-       };
-});
-
-jQuery.extend({
-       filter: function( expr, elems, not ) {
-               if ( not ) {
-                       expr = ":not(" + expr + ")";
-               }
-
-               return elems.length === 1 ?
-                       jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :
-                       jQuery.find.matches(expr, elems);
-       },
-
-       dir: function( elem, dir, until ) {
-               var matched = [],
-                       cur = elem[ dir ];
-
-               while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
-                       if ( cur.nodeType === 1 ) {
-                               matched.push( cur );
-                       }
-                       cur = cur[dir];
-               }
-               return matched;
-       },
-
-       nth: function( cur, result, dir, elem ) {
-               result = result || 1;
-               var num = 0;
-
-               for ( ; cur; cur = cur[dir] ) {
-                       if ( cur.nodeType === 1 && ++num === result ) {
-                               break;
-                       }
-               }
-
-               return cur;
-       },
-
-       sibling: function( n, elem ) {
-               var r = [];
-
-               for ( ; n; n = n.nextSibling ) {
-                       if ( n.nodeType === 1 && n !== elem ) {
-                               r.push( n );
-                       }
-               }
-
-               return r;
-       }
-});
-
-// Implement the identical functionality for filter and not
-function winnow( elements, qualifier, keep ) {
-
-       // Can't pass null or undefined to indexOf in Firefox 4
-       // Set to 0 to skip string check
-       qualifier = qualifier || 0;
-
-       if ( jQuery.isFunction( qualifier ) ) {
-               return jQuery.grep(elements, function( elem, i ) {
-                       var retVal = !!qualifier.call( elem, i, elem );
-                       return retVal === keep;
-               });
-
-       } else if ( qualifier.nodeType ) {
-               return jQuery.grep(elements, function( elem, i ) {
-                       return (elem === qualifier) === keep;
-               });
-
-       } else if ( typeof qualifier === "string" ) {
-               var filtered = jQuery.grep(elements, function( elem ) {
-                       return elem.nodeType === 1;
-               });
-
-               if ( isSimple.test( qualifier ) ) {
-                       return jQuery.filter(qualifier, filtered, !keep);
-               } else {
-                       qualifier = jQuery.filter( qualifier, filtered );
-               }
-       }
-
-       return jQuery.grep(elements, function( elem, i ) {
-               return (jQuery.inArray( elem, qualifier ) >= 0) === keep;
-       });
-}
-
-
-
-
-var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
-       rleadingWhitespace = /^\s+/,
-       rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,
-       rtagName = /<([\w:]+)/,
-       rtbody = /<tbody/i,
-       rhtml = /<|&#?\w+;/,
-       rnocache = /<(?:script|object|embed|option|style)/i,
-       // checked="checked" or checked
-       rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
-       rscriptType = /\/(java|ecma)script/i,
-       rcleanScript = /^\s*<!(?:\[CDATA\[|\-\-)/,
-       wrapMap = {
-               option: [ 1, "<select multiple='multiple'>", "</select>" ],
-               legend: [ 1, "<fieldset>", "</fieldset>" ],
-               thead: [ 1, "<table>", "</table>" ],
-               tr: [ 2, "<table><tbody>", "</tbody></table>" ],
-               td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
-               col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
-               area: [ 1, "<map>", "</map>" ],
-               _default: [ 0, "", "" ]
-       };
-
-wrapMap.optgroup = wrapMap.option;
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
-wrapMap.th = wrapMap.td;
-
-// IE can't serialize <link> and <script> tags normally
-if ( !jQuery.support.htmlSerialize ) {
-       wrapMap._default = [ 1, "div<div>", "</div>" ];
-}
-
-jQuery.fn.extend({
-       text: function( text ) {
-               if ( jQuery.isFunction(text) ) {
-                       return this.each(function(i) {
-                               var self = jQuery( this );
-
-                               self.text( text.call(this, i, self.text()) );
-                       });
-               }
-
-               if ( typeof text !== "object" && text !== undefined ) {
-                       return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
-               }
-
-               return jQuery.text( this );
-       },
-
-       wrapAll: function( html ) {
-               if ( jQuery.isFunction( html ) ) {
-                       return this.each(function(i) {
-                               jQuery(this).wrapAll( html.call(this, i) );
-                       });
-               }
-
-               if ( this[0] ) {
-                       // The elements to wrap the target around
-                       var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
-
-                       if ( this[0].parentNode ) {
-                               wrap.insertBefore( this[0] );
-                       }
-
-                       wrap.map(function() {
-                               var elem = this;
-
-                               while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
-                                       elem = elem.firstChild;
-                               }
-
-                               return elem;
-                       }).append( this );
-               }
-
-               return this;
-       },
-
-       wrapInner: function( html ) {
-               if ( jQuery.isFunction( html ) ) {
-                       return this.each(function(i) {
-                               jQuery(this).wrapInner( html.call(this, i) );
-                       });
-               }
-
-               return this.each(function() {
-                       var self = jQuery( this ),
-                               contents = self.contents();
-
-                       if ( contents.length ) {
-                               contents.wrapAll( html );
-
-                       } else {
-                               self.append( html );
-                       }
-               });
-       },
-
-       wrap: function( html ) {
-               return this.each(function() {
-                       jQuery( this ).wrapAll( html );
-               });
-       },
-
-       unwrap: function() {
-               return this.parent().each(function() {
-                       if ( !jQuery.nodeName( this, "body" ) ) {
-                               jQuery( this ).replaceWith( this.childNodes );
-                       }
-               }).end();
-       },
-
-       append: function() {
-               return this.domManip(arguments, true, function( elem ) {
-                       if ( this.nodeType === 1 ) {
-                               this.appendChild( elem );
-                       }
-               });
-       },
-
-       prepend: function() {
-               return this.domManip(arguments, true, function( elem ) {
-                       if ( this.nodeType === 1 ) {
-                               this.insertBefore( elem, this.firstChild );
-                       }
-               });
-       },
-
-       before: function() {
-               if ( this[0] && this[0].parentNode ) {
-                       return this.domManip(arguments, false, function( elem ) {
-                               this.parentNode.insertBefore( elem, this );
-                       });
-               } else if ( arguments.length ) {
-                       var set = jQuery(arguments[0]);
-                       set.push.apply( set, this.toArray() );
-                       return this.pushStack( set, "before", arguments );
-               }
-       },
-
-       after: function() {
-               if ( this[0] && this[0].parentNode ) {
-                       return this.domManip(arguments, false, function( elem ) {
-                               this.parentNode.insertBefore( elem, this.nextSibling );
-                       });
-               } else if ( arguments.length ) {
-                       var set = this.pushStack( this, "after", arguments );
-                       set.push.apply( set, jQuery(arguments[0]).toArray() );
-                       return set;
-               }
-       },
-
-       // keepData is for internal use only--do not document
-       remove: function( selector, keepData ) {
-               for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
-                       if ( !selector || jQuery.filter( selector, [ elem ] ).length ) {
-                               if ( !keepData && elem.nodeType === 1 ) {
-                                       jQuery.cleanData( elem.getElementsByTagName("*") );
-                                       jQuery.cleanData( [ elem ] );
-                               }
-
-                               if ( elem.parentNode ) {
-                                       elem.parentNode.removeChild( elem );
-                               }
-                       }
-               }
-
-               return this;
-       },
-
-       empty: function() {
-               for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
-                       // Remove element nodes and prevent memory leaks
-                       if ( elem.nodeType === 1 ) {
-                               jQuery.cleanData( elem.getElementsByTagName("*") );
-                       }
-
-                       // Remove any remaining nodes
-                       while ( elem.firstChild ) {
-                               elem.removeChild( elem.firstChild );
-                       }
-               }
-
-               return this;
-       },
-
-       clone: function( dataAndEvents, deepDataAndEvents ) {
-               dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
-               deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
-
-               return this.map( function () {
-                       return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
-               });
-       },
-
-       html: function( value ) {
-               if ( value === undefined ) {
-                       return this[0] && this[0].nodeType === 1 ?
-                               this[0].innerHTML.replace(rinlinejQuery, "") :
-                               null;
-
-               // See if we can take a shortcut and just use innerHTML
-               } else if ( typeof value === "string" && !rnocache.test( value ) &&
-                       (jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
-                       !wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {
-
-                       value = value.replace(rxhtmlTag, "<$1></$2>");
-
-                       try {
-                               for ( var i = 0, l = this.length; i < l; i++ ) {
-                                       // Remove element nodes and prevent memory leaks
-                                       if ( this[i].nodeType === 1 ) {
-                                               jQuery.cleanData( this[i].getElementsByTagName("*") );
-                                               this[i].innerHTML = value;
-                                       }
-                               }
-
-                       // If using innerHTML throws an exception, use the fallback method
-                       } catch(e) {
-                               this.empty().append( value );
-                       }
-
-               } else if ( jQuery.isFunction( value ) ) {
-                       this.each(function(i){
-                               var self = jQuery( this );
-
-                               self.html( value.call(this, i, self.html()) );
-                       });
-
-               } else {
-                       this.empty().append( value );
-               }
-
-               return this;
-       },
-
-       replaceWith: function( value ) {
-               if ( this[0] && this[0].parentNode ) {
-                       // Make sure that the elements are removed from the DOM before they are inserted
-                       // this can help fix replacing a parent with child elements
-                       if ( jQuery.isFunction( value ) ) {
-                               return this.each(function(i) {
-                                       var self = jQuery(this), old = self.html();
-                                       self.replaceWith( value.call( this, i, old ) );
-                               });
-                       }
-
-                       if ( typeof value !== "string" ) {
-                               value = jQuery( value ).detach();
-                       }
-
-                       return this.each(function() {
-                               var next = this.nextSibling,
-                                       parent = this.parentNode;
-
-                               jQuery( this ).remove();
-
-                               if ( next ) {
-                                       jQuery(next).before( value );
-                               } else {
-                                       jQuery(parent).append( value );
-                               }
-                       });
-               } else {
-                       return this.length ?
-                               this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value ) :
-                               this;
-               }
-       },
-
-       detach: function( selector ) {
-               return this.remove( selector, true );
-       },
-
-       domManip: function( args, table, callback ) {
-               var results, first, fragment, parent,
-                       value = args[0],
-                       scripts = [];
-
-               // We can't cloneNode fragments that contain checked, in WebKit
-               if ( !jQuery.support.checkClone && arguments.length === 3 && typeof value === "string" && rchecked.test( value ) ) {
-                       return this.each(function() {
-                               jQuery(this).domManip( args, table, callback, true );
-                       });
-               }
-
-               if ( jQuery.isFunction(value) ) {
-                       return this.each(function(i) {
-                               var self = jQuery(this);
-                               args[0] = value.call(this, i, table ? self.html() : undefined);
-                               self.domManip( args, table, callback );
-                       });
-               }
-
-               if ( this[0] ) {
-                       parent = value && value.parentNode;
-
-                       // If we're in a fragment, just use that instead of building a new one
-                       if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
-                               results = { fragment: parent };
-
-                       } else {
-                               results = jQuery.buildFragment( args, this, scripts );
-                       }
-
-                       fragment = results.fragment;
-
-                       if ( fragment.childNodes.length === 1 ) {
-                               first = fragment = fragment.firstChild;
-                       } else {
-                               first = fragment.firstChild;
-                       }
-
-                       if ( first ) {
-                               table = table && jQuery.nodeName( first, "tr" );
-
-                               for ( var i = 0, l = this.length, lastIndex = l - 1; i < l; i++ ) {
-                                       callback.call(
-                                               table ?
-                                                       root(this[i], first) :
-                                                       this[i],
-                                               // Make sure that we do not leak memory by inadvertently discarding
-                                               // the original fragment (which might have attached data) instead of
-                                               // using it; in addition, use the original fragment object for the last
-                                               // item instead of first because it can end up being emptied incorrectly
-                                               // in certain situations (Bug #8070).
-                                               // Fragments from the fragment cache must always be cloned and never used
-                                               // in place.
-                                               results.cacheable || (l > 1 && i < lastIndex) ?
-                                                       jQuery.clone( fragment, true, true ) :
-                                                       fragment
-                                       );
-                               }
-                       }
-
-                       if ( scripts.length ) {
-                               jQuery.each( scripts, evalScript );
-                       }
-               }
-
-               return this;
-       }
-});
-
-function root( elem, cur ) {
-       return jQuery.nodeName(elem, "table") ?
-               (elem.getElementsByTagName("tbody")[0] ||
-               elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
-               elem;
-}
-
-function cloneCopyEvent( src, dest ) {
-
-       if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {
-               return;
-       }
-
-       var internalKey = jQuery.expando,
-               oldData = jQuery.data( src ),
-               curData = jQuery.data( dest, oldData );
-
-       // Switch to use the internal data object, if it exists, for the next
-       // stage of data copying
-       if ( (oldData = oldData[ internalKey ]) ) {
-               var events = oldData.events;
-                               curData = curData[ internalKey ] = jQuery.extend({}, oldData);
-
-               if ( events ) {
-                       delete curData.handle;
-                       curData.events = {};
-
-                       for ( var type in events ) {
-                               for ( var i = 0, l = events[ type ].length; i < l; i++ ) {
-                                       jQuery.event.add( dest, type + ( events[ type ][ i ].namespace ? "." : "" ) + events[ type ][ i ].namespace, events[ type ][ i ], events[ type ][ i ].data );
-                               }
-                       }
-               }
-       }
-}
-
-function cloneFixAttributes( src, dest ) {
-       var nodeName;
-
-       // We do not need to do anything for non-Elements
-       if ( dest.nodeType !== 1 ) {
-               return;
-       }
-
-       // clearAttributes removes the attributes, which we don't want,
-       // but also removes the attachEvent events, which we *do* want
-       if ( dest.clearAttributes ) {
-               dest.clearAttributes();
-       }
-
-       // mergeAttributes, in contrast, only merges back on the
-       // original attributes, not the events
-       if ( dest.mergeAttributes ) {
-               dest.mergeAttributes( src );
-       }
-
-       nodeName = dest.nodeName.toLowerCase();
-
-       // IE6-8 fail to clone children inside object elements that use
-       // the proprietary classid attribute value (rather than the type
-       // attribute) to identify the type of content to display
-       if ( nodeName === "object" ) {
-               dest.outerHTML = src.outerHTML;
-
-       } else if ( nodeName === "input" && (src.type === "checkbox" || src.type === "radio") ) {
-               // IE6-8 fails to persist the checked state of a cloned checkbox
-               // or radio button. Worse, IE6-7 fail to give the cloned element
-               // a checked appearance if the defaultChecked value isn't also set
-               if ( src.checked ) {
-                       dest.defaultChecked = dest.checked = src.checked;
-               }
-
-               // IE6-7 get confused and end up setting the value of a cloned
-               // checkbox/radio button to an empty string instead of "on"
-               if ( dest.value !== src.value ) {
-                       dest.value = src.value;
-               }
-
-       // IE6-8 fails to return the selected option to the default selected
-       // state when cloning options
-       } else if ( nodeName === "option" ) {
-               dest.selected = src.defaultSelected;
-
-       // IE6-8 fails to set the defaultValue to the correct value when
-       // cloning other types of input fields
-       } else if ( nodeName === "input" || nodeName === "textarea" ) {
-               dest.defaultValue = src.defaultValue;
-       }
-
-       // Event data gets referenced instead of copied if the expando
-       // gets copied too
-       dest.removeAttribute( jQuery.expando );
-}
-
-jQuery.buildFragment = function( args, nodes, scripts ) {
-       var fragment, cacheable, cacheresults, doc;
-
-  // nodes may contain either an explicit document object,
-  // a jQuery collection or context object.
-  // If nodes[0] contains a valid object to assign to doc
-  if ( nodes && nodes[0] ) {
-    doc = nodes[0].ownerDocument || nodes[0];
-  }
-
-  // Ensure that an attr object doesn't incorrectly stand in as a document object
-       // Chrome and Firefox seem to allow this to occur and will throw exception
-       // Fixes #8950
-       if ( !doc.createDocumentFragment ) {
-               doc = document;
-       }
-
-       // Only cache "small" (1/2 KB) HTML strings that are associated with the main document
-       // Cloning options loses the selected state, so don't cache them
-       // IE 6 doesn't like it when you put <object> or <embed> elements in a fragment
-       // Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache
-       if ( args.length === 1 && typeof args[0] === "string" && args[0].length < 512 && doc === document &&
-               args[0].charAt(0) === "<" && !rnocache.test( args[0] ) && (jQuery.support.checkClone || !rchecked.test( args[0] )) ) {
-
-               cacheable = true;
-
-               cacheresults = jQuery.fragments[ args[0] ];
-               if ( cacheresults && cacheresults !== 1 ) {
-                       fragment = cacheresults;
-               }
-       }
-
-       if ( !fragment ) {
-               fragment = doc.createDocumentFragment();
-               jQuery.clean( args, doc, fragment, scripts );
-       }
-
-       if ( cacheable ) {
-               jQuery.fragments[ args[0] ] = cacheresults ? fragment : 1;
-       }
-
-       return { fragment: fragment, cacheable: cacheable };
-};
-
-jQuery.fragments = {};
-
-jQuery.each({
-       appendTo: "append",
-       prependTo: "prepend",
-       insertBefore: "before",
-       insertAfter: "after",
-       replaceAll: "replaceWith"
-}, function( name, original ) {
-       jQuery.fn[ name ] = function( selector ) {
-               var ret = [],
-                       insert = jQuery( selector ),
-                       parent = this.length === 1 && this[0].parentNode;
-
-               if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {
-                       insert[ original ]( this[0] );
-                       return this;
-
-               } else {
-                       for ( var i = 0, l = insert.length; i < l; i++ ) {
-                               var elems = (i > 0 ? this.clone(true) : this).get();
-                               jQuery( insert[i] )[ original ]( elems );
-                               ret = ret.concat( elems );
-                       }
-
-                       return this.pushStack( ret, name, insert.selector );
-               }
-       };
-});
-
-function getAll( elem ) {
-       if ( "getElementsByTagName" in elem ) {
-               return elem.getElementsByTagName( "*" );
-
-       } else if ( "querySelectorAll" in elem ) {
-               return elem.querySelectorAll( "*" );
-
-       } else {
-               return [];
-       }
-}
-
-// Used in clean, fixes the defaultChecked property
-function fixDefaultChecked( elem ) {
-       if ( elem.type === "checkbox" || elem.type === "radio" ) {
-               elem.defaultChecked = elem.checked;
-       }
-}
-// Finds all inputs and passes them to fixDefaultChecked
-function findInputs( elem ) {
-       if ( jQuery.nodeName( elem, "input" ) ) {
-               fixDefaultChecked( elem );
-       } else if ( "getElementsByTagName" in elem ) {
-               jQuery.grep( elem.getElementsByTagName("input"), fixDefaultChecked );
-       }
-}
-
-jQuery.extend({
-       clone: function( elem, dataAndEvents, deepDataAndEvents ) {
-               var clone = elem.cloneNode(true),
-                               srcElements,
-                               destElements,
-                               i;
-
-               if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) &&
-                               (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {
-                       // IE copies events bound via attachEvent when using cloneNode.
-                       // Calling detachEvent on the clone will also remove the events
-                       // from the original. In order to get around this, we use some
-                       // proprietary methods to clear the events. Thanks to MooTools
-                       // guys for this hotness.
-
-                       cloneFixAttributes( elem, clone );
-
-                       // Using Sizzle here is crazy slow, so we use getElementsByTagName
-                       // instead
-                       srcElements = getAll( elem );
-                       destElements = getAll( clone );
-
-                       // Weird iteration because IE will replace the length property
-                       // with an element if you are cloning the body and one of the
-                       // elements on the page has a name or id of "length"
-                       for ( i = 0; srcElements[i]; ++i ) {
-                               // Ensure that the destination node is not null; Fixes #9587
-                               if ( destElements[i] ) {
-                                       cloneFixAttributes( srcElements[i], destElements[i] );
-                               }
-                       }
-               }
-
-               // Copy the events from the original to the clone
-               if ( dataAndEvents ) {
-                       cloneCopyEvent( elem, clone );
-
-                       if ( deepDataAndEvents ) {
-                               srcElements = getAll( elem );
-                               destElements = getAll( clone );
-
-                               for ( i = 0; srcElements[i]; ++i ) {
-                                       cloneCopyEvent( srcElements[i], destElements[i] );
-                               }
-                       }
-               }
-
-               srcElements = destElements = null;
-
-               // Return the cloned set
-               return clone;
-       },
-
-       clean: function( elems, context, fragment, scripts ) {
-               var checkScriptType;
-
-               context = context || document;
-
-               // !context.createElement fails in IE with an error but returns typeof 'object'
-               if ( typeof context.createElement === "undefined" ) {
-                       context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
-               }
-
-               var ret = [], j;
-
-               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
-                       if ( typeof elem === "number" ) {
-                               elem += "";
-                       }
-
-                       if ( !elem ) {
-                               continue;
-                       }
-
-                       // Convert html string into DOM nodes
-                       if ( typeof elem === "string" ) {
-                               if ( !rhtml.test( elem ) ) {
-                                       elem = context.createTextNode( elem );
-                               } else {
-                                       // Fix "XHTML"-style tags in all browsers
-                                       elem = elem.replace(rxhtmlTag, "<$1></$2>");
-
-                                       // Trim whitespace, otherwise indexOf won't work as expected
-                                       var tag = (rtagName.exec( elem ) || ["", ""])[1].toLowerCase(),
-                                               wrap = wrapMap[ tag ] || wrapMap._default,
-                                               depth = wrap[0],
-                                               div = context.createElement("div");
-
-                                       // Go to html and back, then peel off extra wrappers
-                                       div.innerHTML = wrap[1] + elem + wrap[2];
-
-                                       // Move to the right depth
-                                       while ( depth-- ) {
-                                               div = div.lastChild;
-                                       }
-
-                                       // Remove IE's autoinserted <tbody> from table fragments
-                                       if ( !jQuery.support.tbody ) {
-
-                                               // String was a <table>, *may* have spurious <tbody>
-                                               var hasBody = rtbody.test(elem),
-                                                       tbody = tag === "table" && !hasBody ?
-                                                               div.firstChild && div.firstChild.childNodes :
-
-                                                               // String was a bare <thead> or <tfoot>
-                                                               wrap[1] === "<table>" && !hasBody ?
-                                                                       div.childNodes :
-                                                                       [];
-
-                                               for ( j = tbody.length - 1; j >= 0 ; --j ) {
-                                                       if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
-                                                               tbody[ j ].parentNode.removeChild( tbody[ j ] );
-                                                       }
-                                               }
-                                       }
-
-                                       // IE completely kills leading whitespace when innerHTML is used
-                                       if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
-                                               div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );
-                                       }
-
-                                       elem = div.childNodes;
-                               }
-                       }
-
-                       // Resets defaultChecked for any radios and checkboxes
-                       // about to be appended to the DOM in IE 6/7 (#8060)
-                       var len;
-                       if ( !jQuery.support.appendChecked ) {
-                               if ( elem[0] && typeof (len = elem.length) === "number" ) {
-                                       for ( j = 0; j < len; j++ ) {
-                                               findInputs( elem[j] );
-                                       }
-                               } else {
-                                       findInputs( elem );
-                               }
-                       }
-
-                       if ( elem.nodeType ) {
-                               ret.push( elem );
-                       } else {
-                               ret = jQuery.merge( ret, elem );
-                       }
-               }
-
-               if ( fragment ) {
-                       checkScriptType = function( elem ) {
-                               return !elem.type || rscriptType.test( elem.type );
-                       };
-                       for ( i = 0; ret[i]; i++ ) {
-                               if ( scripts && jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
-                                       scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
-
-                               } else {
-                                       if ( ret[i].nodeType === 1 ) {
-                                               var jsTags = jQuery.grep( ret[i].getElementsByTagName( "script" ), checkScriptType );
-
-                                               ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) );
-                                       }
-                                       fragment.appendChild( ret[i] );
-                               }
-                       }
-               }
-
-               return ret;
-       },
-
-       cleanData: function( elems ) {
-               var data, id, cache = jQuery.cache, internalKey = jQuery.expando, special = jQuery.event.special,
-                       deleteExpando = jQuery.support.deleteExpando;
-
-               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
-                       if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
-                               continue;
-                       }
-
-                       id = elem[ jQuery.expando ];
-
-                       if ( id ) {
-                               data = cache[ id ] && cache[ id ][ internalKey ];
-
-                               if ( data && data.events ) {
-                                       for ( var type in data.events ) {
-                                               if ( special[ type ] ) {
-                                                       jQuery.event.remove( elem, type );
-
-                                               // This is a shortcut to avoid jQuery.event.remove's overhead
-                                               } else {
-                                                       jQuery.removeEvent( elem, type, data.handle );
-                                               }
-                                       }
-
-                                       // Null the DOM reference to avoid IE6/7/8 leak (#7054)
-                                       if ( data.handle ) {
-                                               data.handle.elem = null;
-                                       }
-                               }
-
-                               if ( deleteExpando ) {
-                                       delete elem[ jQuery.expando ];
-
-                               } else if ( elem.removeAttribute ) {
-                                       elem.removeAttribute( jQuery.expando );
-                               }
-
-                               delete cache[ id ];
-                       }
-               }
-       }
-});
-
-function evalScript( i, elem ) {
-       if ( elem.src ) {
-               jQuery.ajax({
-                       url: elem.src,
-                       async: false,
-                       dataType: "script"
-               });
-       } else {
-               jQuery.globalEval( ( elem.text || elem.textContent || elem.innerHTML || "" ).replace( rcleanScript, "/*$0*/" ) );
-       }
-
-       if ( elem.parentNode ) {
-               elem.parentNode.removeChild( elem );
-       }
-}
-
-
-
-
-var ralpha = /alpha\([^)]*\)/i,
-       ropacity = /opacity=([^)]*)/,
-       // fixed for IE9, see #8346
-       rupper = /([A-Z]|^ms)/g,
-       rnumpx = /^-?\d+(?:px)?$/i,
-       rnum = /^-?\d/,
-       rrelNum = /^([\-+])=([\-+.\de]+)/,
-
-       cssShow = { position: "absolute", visibility: "hidden", display: "block" },
-       cssWidth = [ "Left", "Right" ],
-       cssHeight = [ "Top", "Bottom" ],
-       curCSS,
-
-       getComputedStyle,
-       currentStyle;
-
-jQuery.fn.css = function( name, value ) {
-       // Setting 'undefined' is a no-op
-       if ( arguments.length === 2 && value === undefined ) {
-               return this;
-       }
-
-       return jQuery.access( this, name, value, true, function( elem, name, value ) {
-               return value !== undefined ?
-                       jQuery.style( elem, name, value ) :
-                       jQuery.css( elem, name );
-       });
-};
-
-jQuery.extend({
-       // Add in style property hooks for overriding the default
-       // behavior of getting and setting a style property
-       cssHooks: {
-               opacity: {
-                       get: function( elem, computed ) {
-                               if ( computed ) {
-                                       // We should always get a number back from opacity
-                                       var ret = curCSS( elem, "opacity", "opacity" );
-                                       return ret === "" ? "1" : ret;
-
-                               } else {
-                                       return elem.style.opacity;
-                               }
-                       }
-               }
-       },
-
-       // Exclude the following css properties to add px
-       cssNumber: {
-               "fillOpacity": true,
-               "fontWeight": true,
-               "lineHeight": true,
-               "opacity": true,
-               "orphans": true,
-               "widows": true,
-               "zIndex": true,
-               "zoom": true
-       },
-
-       // Add in properties whose names you wish to fix before
-       // setting or getting the value
-       cssProps: {
-               // normalize float css property
-               "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat"
-       },
-
-       // Get and set the style property on a DOM Node
-       style: function( elem, name, value, extra ) {
-               // Don't set styles on text and comment nodes
-               if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
-                       return;
-               }
-
-               // Make sure that we're working with the right name
-               var ret, type, origName = jQuery.camelCase( name ),
-                       style = elem.style, hooks = jQuery.cssHooks[ origName ];
-
-               name = jQuery.cssProps[ origName ] || origName;
-
-               // Check if we're setting a value
-               if ( value !== undefined ) {
-                       type = typeof value;
-
-                       // convert relative number strings (+= or -=) to relative numbers. #7345
-                       if ( type === "string" && (ret = rrelNum.exec( value )) ) {
-                               value = ( +( ret[1] + 1) * +ret[2] ) + parseFloat( jQuery.css( elem, name ) );
-                               // Fixes bug #9237
-                               type = "number";
-                       }
-
-                       // Make sure that NaN and null values aren't set. See: #7116
-                       if ( value == null || type === "number" && isNaN( value ) ) {
-                               return;
-                       }
-
-                       // If a number was passed in, add 'px' to the (except for certain CSS properties)
-                       if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
-                               value += "px";
-                       }
-
-                       // If a hook was provided, use that value, otherwise just set the specified value
-                       if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value )) !== undefined ) {
-                               // Wrapped to prevent IE from throwing errors when 'invalid' values are provided
-                               // Fixes bug #5509
-                               try {
-                                       style[ name ] = value;
-                               } catch(e) {}
-                       }
-
-               } else {
-                       // If a hook was provided get the non-computed value from there
-                       if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
-                               return ret;
-                       }
-
-                       // Otherwise just get the value from the style object
-                       return style[ name ];
-               }
-       },
-
-       css: function( elem, name, extra ) {
-               var ret, hooks;
-
-               // Make sure that we're working with the right name
-               name = jQuery.camelCase( name );
-               hooks = jQuery.cssHooks[ name ];
-               name = jQuery.cssProps[ name ] || name;
-
-               // cssFloat needs a special treatment
-               if ( name === "cssFloat" ) {
-                       name = "float";
-               }
-
-               // If a hook was provided get the computed value from there
-               if ( hooks && "get" in hooks && (ret = hooks.get( elem, true, extra )) !== undefined ) {
-                       return ret;
-
-               // Otherwise, if a way to get the computed value exists, use that
-               } else if ( curCSS ) {
-                       return curCSS( elem, name );
-               }
-       },
-
-       // A method for quickly swapping in/out CSS properties to get correct calculations
-       swap: function( elem, options, callback ) {
-               var old = {};
-
-               // Remember the old values, and insert the new ones
-               for ( var name in options ) {
-                       old[ name ] = elem.style[ name ];
-                       elem.style[ name ] = options[ name ];
-               }
-
-               callback.call( elem );
-
-               // Revert the old values
-               for ( name in options ) {
-                       elem.style[ name ] = old[ name ];
-               }
-       }
-});
-
-// DEPRECATED, Use jQuery.css() instead
-jQuery.curCSS = jQuery.css;
-
-jQuery.each(["height", "width"], function( i, name ) {
-       jQuery.cssHooks[ name ] = {
-               get: function( elem, computed, extra ) {
-                       var val;
-
-                       if ( computed ) {
-                               if ( elem.offsetWidth !== 0 ) {
-                                       return getWH( elem, name, extra );
-                               } else {
-                                       jQuery.swap( elem, cssShow, function() {
-                                               val = getWH( elem, name, extra );
-                                       });
-                               }
-
-                               return val;
-                       }
-               },
-
-               set: function( elem, value ) {
-                       if ( rnumpx.test( value ) ) {
-                               // ignore negative width and height values #1599
-                               value = parseFloat( value );
-
-                               if ( value >= 0 ) {
-                                       return value + "px";
-                               }
-
-                       } else {
-                               return value;
-                       }
-               }
-       };
-});
-
-if ( !jQuery.support.opacity ) {
-       jQuery.cssHooks.opacity = {
-               get: function( elem, computed ) {
-                       // IE uses filters for opacity
-                       return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
-                               ( parseFloat( RegExp.$1 ) / 100 ) + "" :
-                               computed ? "1" : "";
-               },
-
-               set: function( elem, value ) {
-                       var style = elem.style,
-                               currentStyle = elem.currentStyle,
-                               opacity = jQuery.isNaN( value ) ? "" : "alpha(opacity=" + value * 100 + ")",
-                               filter = currentStyle && currentStyle.filter || style.filter || "";
-
-                       // IE has trouble with opacity if it does not have layout
-                       // Force it by setting the zoom level
-                       style.zoom = 1;
-
-                       // if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
-                       if ( value >= 1 && jQuery.trim( filter.replace( ralpha, "" ) ) === "" ) {
-
-                               // Setting style.filter to null, "" & " " still leave "filter:" in the cssText
-                               // if "filter:" is present at all, clearType is disabled, we want to avoid this
-                               // style.removeAttribute is IE Only, but so apparently is this code path...
-                               style.removeAttribute( "filter" );
-
-                               // if there there is no filter style applied in a css rule, we are done
-                               if ( currentStyle && !currentStyle.filter ) {
-                                       return;
-                               }
-                       }
-
-                       // otherwise, set new filter values
-                       style.filter = ralpha.test( filter ) ?
-                               filter.replace( ralpha, opacity ) :
-                               filter + " " + opacity;
-               }
-       };
-}
-
-jQuery(function() {
-       // This hook cannot be added until DOM ready because the support test
-       // for it is not run until after DOM ready
-       if ( !jQuery.support.reliableMarginRight ) {
-               jQuery.cssHooks.marginRight = {
-                       get: function( elem, computed ) {
-                               // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
-                               // Work around by temporarily setting element display to inline-block
-                               var ret;
-                               jQuery.swap( elem, { "display": "inline-block" }, function() {
-                                       if ( computed ) {
-                                               ret = curCSS( elem, "margin-right", "marginRight" );
-                                       } else {
-                                               ret = elem.style.marginRight;
-                                       }
-                               });
-                               return ret;
-                       }
-               };
-       }
-});
-
-if ( document.defaultView && document.defaultView.getComputedStyle ) {
-       getComputedStyle = function( elem, name ) {
-               var ret, defaultView, computedStyle;
-
-               name = name.replace( rupper, "-$1" ).toLowerCase();
-
-               if ( !(defaultView = elem.ownerDocument.defaultView) ) {
-                       return undefined;
-               }
-
-               if ( (computedStyle = defaultView.getComputedStyle( elem, null )) ) {
-                       ret = computedStyle.getPropertyValue( name );
-                       if ( ret === "" && !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) {
-                               ret = jQuery.style( elem, name );
-                       }
-               }
-
-               return ret;
-       };
-}
-
-if ( document.documentElement.currentStyle ) {
-       currentStyle = function( elem, name ) {
-               var left,
-                       ret = elem.currentStyle && elem.currentStyle[ name ],
-                       rsLeft = elem.runtimeStyle && elem.runtimeStyle[ name ],
-                       style = elem.style;
-
-               // From the awesome hack by Dean Edwards
-               // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
-
-               // If we're not dealing with a regular pixel number
-               // but a number that has a weird ending, we need to convert it to pixels
-               if ( !rnumpx.test( ret ) && rnum.test( ret ) ) {
-                       // Remember the original values
-                       left = style.left;
-
-                       // Put in the new values to get a computed value out
-                       if ( rsLeft ) {
-                               elem.runtimeStyle.left = elem.currentStyle.left;
-                       }
-                       style.left = name === "fontSize" ? "1em" : (ret || 0);
-                       ret = style.pixelLeft + "px";
-
-                       // Revert the changed values
-                       style.left = left;
-                       if ( rsLeft ) {
-                               elem.runtimeStyle.left = rsLeft;
-                       }
-               }
-
-               return ret === "" ? "auto" : ret;
-       };
-}
-
-curCSS = getComputedStyle || currentStyle;
-
-function getWH( elem, name, extra ) {
-
-       // Start with offset property
-       var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
-               which = name === "width" ? cssWidth : cssHeight;
-
-       if ( val > 0 ) {
-               if ( extra !== "border" ) {
-                       jQuery.each( which, function() {
-                               if ( !extra ) {
-                                       val -= parseFloat( jQuery.css( elem, "padding" + this ) ) || 0;
-                               }
-                               if ( extra === "margin" ) {
-                                       val += parseFloat( jQuery.css( elem, extra + this ) ) || 0;
-                               } else {
-                                       val -= parseFloat( jQuery.css( elem, "border" + this + "Width" ) ) || 0;
-                               }
-                       });
-               }
-
-               return val + "px";
-       }
-
-       // Fall back to computed then uncomputed css if necessary
-       val = curCSS( elem, name, name );
-       if ( val < 0 || val == null ) {
-               val = elem.style[ name ] || 0;
-       }
-       // Normalize "", auto, and prepare for extra
-       val = parseFloat( val ) || 0;
-
-       // Add padding, border, margin
-       if ( extra ) {
-               jQuery.each( which, function() {
-                       val += parseFloat( jQuery.css( elem, "padding" + this ) ) || 0;
-                       if ( extra !== "padding" ) {
-                               val += parseFloat( jQuery.css( elem, "border" + this + "Width" ) ) || 0;
-                       }
-                       if ( extra === "margin" ) {
-                               val += parseFloat( jQuery.css( elem, extra + this ) ) || 0;
-                       }
-               });
-       }
-
-       return val + "px";
-}
-
-if ( jQuery.expr && jQuery.expr.filters ) {
-       jQuery.expr.filters.hidden = function( elem ) {
-               var width = elem.offsetWidth,
-                       height = elem.offsetHeight;
-
-               return (width === 0 && height === 0) || (!jQuery.support.reliableHiddenOffsets && (elem.style.display || jQuery.css( elem, "display" )) === "none");
-       };
-
-       jQuery.expr.filters.visible = function( elem ) {
-               return !jQuery.expr.filters.hidden( elem );
-       };
-}
-
-
-
-
-var r20 = /%20/g,
-       rbracket = /\[\]$/,
-       rCRLF = /\r?\n/g,
-       rhash = /#.*$/,
-       rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
-       rinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
-       // #7653, #8125, #8152: local protocol detection
-       rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,
-       rnoContent = /^(?:GET|HEAD)$/,
-       rprotocol = /^\/\//,
-       rquery = /\?/,
-       rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
-       rselectTextarea = /^(?:select|textarea)/i,
-       rspacesAjax = /\s+/,
-       rts = /([?&])_=[^&]*/,
-       rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,
-
-       // Keep a copy of the old load method
-       _load = jQuery.fn.load,
-
-       /* Prefilters
-        * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
-        * 2) These are called:
-        *    - BEFORE asking for a transport
-        *    - AFTER param serialization (s.data is a string if s.processData is true)
-        * 3) key is the dataType
-        * 4) the catchall symbol "*" can be used
-        * 5) execution will start with transport dataType and THEN continue down to "*" if needed
-        */
-       prefilters = {},
-
-       /* Transports bindings
-        * 1) key is the dataType
-        * 2) the catchall symbol "*" can be used
-        * 3) selection will start with transport dataType and THEN go to "*" if needed
-        */
-       transports = {},
-
-       // Document location
-       ajaxLocation,
-
-       // Document location segments
-       ajaxLocParts,
-       
-       // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
-       allTypes = ["*/"] + ["*"];
-
-// #8138, IE may throw an exception when accessing
-// a field from window.location if document.domain has been set
-try {
-       ajaxLocation = location.href;
-} catch( e ) {
-       // Use the href attribute of an A element
-       // since IE will modify it given document.location
-       ajaxLocation = document.createElement( "a" );
-       ajaxLocation.href = "";
-       ajaxLocation = ajaxLocation.href;
-}
-
-// Segment location into parts
-ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
-
-// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
-function addToPrefiltersOrTransports( structure ) {
-
-       // dataTypeExpression is optional and defaults to "*"
-       return function( dataTypeExpression, func ) {
-
-               if ( typeof dataTypeExpression !== "string" ) {
-                       func = dataTypeExpression;
-                       dataTypeExpression = "*";
-               }
-
-               if ( jQuery.isFunction( func ) ) {
-                       var dataTypes = dataTypeExpression.toLowerCase().split( rspacesAjax ),
-                               i = 0,
-                               length = dataTypes.length,
-                               dataType,
-                               list,
-                               placeBefore;
-
-                       // For each dataType in the dataTypeExpression
-                       for(; i < length; i++ ) {
-                               dataType = dataTypes[ i ];
-                               // We control if we're asked to add before
-                               // any existing element
-                               placeBefore = /^\+/.test( dataType );
-                               if ( placeBefore ) {
-                                       dataType = dataType.substr( 1 ) || "*";
-                               }
-                               list = structure[ dataType ] = structure[ dataType ] || [];
-                               // then we add to the structure accordingly
-                               list[ placeBefore ? "unshift" : "push" ]( func );
-                       }
-               }
-       };
-}
-
-// Base inspection function for prefilters and transports
-function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR,
-               dataType /* internal */, inspected /* internal */ ) {
-
-       dataType = dataType || options.dataTypes[ 0 ];
-       inspected = inspected || {};
-
-       inspected[ dataType ] = true;
-
-       var list = structure[ dataType ],
-               i = 0,
-               length = list ? list.length : 0,
-               executeOnly = ( structure === prefilters ),
-               selection;
-
-       for(; i < length && ( executeOnly || !selection ); i++ ) {
-               selection = list[ i ]( options, originalOptions, jqXHR );
-               // If we got redirected to another dataType
-               // we try there if executing only and not done already
-               if ( typeof selection === "string" ) {
-                       if ( !executeOnly || inspected[ selection ] ) {
-                               selection = undefined;
-                       } else {
-                               options.dataTypes.unshift( selection );
-                               selection = inspectPrefiltersOrTransports(
-                                               structure, options, originalOptions, jqXHR, selection, inspected );
-                       }
-               }
-       }
-       // If we're only executing or nothing was selected
-       // we try the catchall dataType if not done already
-       if ( ( executeOnly || !selection ) && !inspected[ "*" ] ) {
-               selection = inspectPrefiltersOrTransports(
-                               structure, options, originalOptions, jqXHR, "*", inspected );
-       }
-       // unnecessary when only executing (prefilters)
-       // but it'll be ignored by the caller in that case
-       return selection;
-}
-
-// A special extend for ajax options
-// that takes "flat" options (not to be deep extended)
-// Fixes #9887
-function ajaxExtend( target, src ) {
-       var key, deep,
-               flatOptions = jQuery.ajaxSettings.flatOptions || {};
-       for( key in src ) {
-               if ( src[ key ] !== undefined ) {
-                       ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
-               }
-       }
-       if ( deep ) {
-               jQuery.extend( true, target, deep );
-       }
-}
-
-jQuery.fn.extend({
-       load: function( url, params, callback ) {
-               if ( typeof url !== "string" && _load ) {
-                       return _load.apply( this, arguments );
-
-               // Don't do a request if no elements are being requested
-               } else if ( !this.length ) {
-                       return this;
-               }
-
-               var off = url.indexOf( " " );
-               if ( off >= 0 ) {
-                       var selector = url.slice( off, url.length );
-                       url = url.slice( 0, off );
-               }
-
-               // Default to a GET request
-               var type = "GET";
-
-               // If the second parameter was provided
-               if ( params ) {
-                       // If it's a function
-                       if ( jQuery.isFunction( params ) ) {
-                               // We assume that it's the callback
-                               callback = params;
-                               params = undefined;
-
-                       // Otherwise, build a param string
-                       } else if ( typeof params === "object" ) {
-                               params = jQuery.param( params, jQuery.ajaxSettings.traditional );
-                               type = "POST";
-                       }
-               }
-
-               var self = this;
-
-               // Request the remote document
-               jQuery.ajax({
-                       url: url,
-                       type: type,
-                       dataType: "html",
-                       data: params,
-                       // Complete callback (responseText is used internally)
-                       complete: function( jqXHR, status, responseText ) {
-                               // Store the response as specified by the jqXHR object
-                               responseText = jqXHR.responseText;
-                               // If successful, inject the HTML into all the matched elements
-                               if ( jqXHR.isResolved() ) {
-                                       // #4825: Get the actual response in case
-                                       // a dataFilter is present in ajaxSettings
-                                       jqXHR.done(function( r ) {
-                                               responseText = r;
-                                       });
-                                       // See if a selector was specified
-                                       self.html( selector ?
-                                               // Create a dummy div to hold the results
-                                               jQuery("<div>")
-                                                       // inject the contents of the document in, removing the scripts
-                                                       // to avoid any 'Permission Denied' errors in IE
-                                                       .append(responseText.replace(rscript, ""))
-
-                                                       // Locate the specified elements
-                                                       .find(selector) :
-
-                                               // If not, just inject the full result
-                                               responseText );
-                               }
-
-                               if ( callback ) {
-                                       self.each( callback, [ responseText, status, jqXHR ] );
-                               }
-                       }
-               });
-
-               return this;
-       },
-
-       serialize: function() {
-               return jQuery.param( this.serializeArray() );
-       },
-
-       serializeArray: function() {
-               return this.map(function(){
-                       return this.elements ? jQuery.makeArray( this.elements ) : this;
-               })
-               .filter(function(){
-                       return this.name && !this.disabled &&
-                               ( this.checked || rselectTextarea.test( this.nodeName ) ||
-                                       rinput.test( this.type ) );
-               })
-               .map(function( i, elem ){
-                       var val = jQuery( this ).val();
-
-                       return val == null ?
-                               null :
-                               jQuery.isArray( val ) ?
-                                       jQuery.map( val, function( val, i ){
-                                               return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
-                                       }) :
-                                       { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
-               }).get();
-       }
-});
-
-// Attach a bunch of functions for handling common AJAX events
-jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split( " " ), function( i, o ){
-       jQuery.fn[ o ] = function( f ){
-               return this.bind( o, f );
-       };
-});
-
-jQuery.each( [ "get", "post" ], function( i, method ) {
-       jQuery[ method ] = function( url, data, callback, type ) {
-               // shift arguments if data argument was omitted
-               if ( jQuery.isFunction( data ) ) {
-                       type = type || callback;
-                       callback = data;
-                       data = undefined;
-               }
-
-               return jQuery.ajax({
-                       type: method,
-                       url: url,
-                       data: data,
-                       success: callback,
-                       dataType: type
-               });
-       };
-});
-
-jQuery.extend({
-
-       getScript: function( url, callback ) {
-               return jQuery.get( url, undefined, callback, "script" );
-       },
-
-       getJSON: function( url, data, callback ) {
-               return jQuery.get( url, data, callback, "json" );
-       },
-
-       // Creates a full fledged settings object into target
-       // with both ajaxSettings and settings fields.
-       // If target is omitted, writes into ajaxSettings.
-       ajaxSetup: function( target, settings ) {
-               if ( settings ) {
-                       // Building a settings object
-                       ajaxExtend( target, jQuery.ajaxSettings );
-               } else {
-                       // Extending ajaxSettings
-                       settings = target;
-                       target = jQuery.ajaxSettings;
-               }
-               ajaxExtend( target, settings );
-               return target;
-       },
-
-       ajaxSettings: {
-               url: ajaxLocation,
-               isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
-               global: true,
-               type: "GET",
-               contentType: "application/x-www-form-urlencoded",
-               processData: true,
-               async: true,
-               /*
-               timeout: 0,
-               data: null,
-               dataType: null,
-               username: null,
-               password: null,
-               cache: null,
-               traditional: false,
-               headers: {},
-               */
-
-               accepts: {
-                       xml: "application/xml, text/xml",
-                       html: "text/html",
-                       text: "text/plain",
-                       json: "application/json, text/javascript",
-                       "*": allTypes
-               },
-
-               contents: {
-                       xml: /xml/,
-                       html: /html/,
-                       json: /json/
-               },
-
-               responseFields: {
-                       xml: "responseXML",
-                       text: "responseText"
-               },
-
-               // List of data converters
-               // 1) key format is "source_type destination_type" (a single space in-between)
-               // 2) the catchall symbol "*" can be used for source_type
-               converters: {
-
-                       // Convert anything to text
-                       "* text": window.String,
-
-                       // Text to html (true = no transformation)
-                       "text html": true,
-
-                       // Evaluate text as a json expression
-                       "text json": jQuery.parseJSON,
-
-                       // Parse text as xml
-                       "text xml": jQuery.parseXML
-               },
-
-               // For options that shouldn't be deep extended:
-               // you can add your own custom options here if
-               // and when you create one that shouldn't be
-               // deep extended (see ajaxExtend)
-               flatOptions: {
-                       context: true,
-                       url: true
-               }
-       },
-
-       ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
-       ajaxTransport: addToPrefiltersOrTransports( transports ),
-
-       // Main method
-       ajax: function( url, options ) {
-
-               // If url is an object, simulate pre-1.5 signature
-               if ( typeof url === "object" ) {
-                       options = url;
-                       url = undefined;
-               }
-
-               // Force options to be an object
-               options = options || {};
-
-               var // Create the final options object
-                       s = jQuery.ajaxSetup( {}, options ),
-                       // Callbacks context
-                       callbackContext = s.context || s,
-                       // Context for global events
-                       // It's the callbackContext if one was provided in the options
-                       // and if it's a DOM node or a jQuery collection
-                       globalEventContext = callbackContext !== s &&
-                               ( callbackContext.nodeType || callbackContext instanceof jQuery ) ?
-                                               jQuery( callbackContext ) : jQuery.event,
-                       // Deferreds
-                       deferred = jQuery.Deferred(),
-                       completeDeferred = jQuery._Deferred(),
-                       // Status-dependent callbacks
-                       statusCode = s.statusCode || {},
-                       // ifModified key
-                       ifModifiedKey,
-                       // Headers (they are sent all at once)
-                       requestHeaders = {},
-                       requestHeadersNames = {},
-                       // Response headers
-                       responseHeadersString,
-                       responseHeaders,
-                       // transport
-                       transport,
-                       // timeout handle
-                       timeoutTimer,
-                       // Cross-domain detection vars
-                       parts,
-                       // The jqXHR state
-                       state = 0,
-                       // To know if global events are to be dispatched
-                       fireGlobals,
-                       // Loop variable
-                       i,
-                       // Fake xhr
-                       jqXHR = {
-
-                               readyState: 0,
-
-                               // Caches the header
-                               setRequestHeader: function( name, value ) {
-                                       if ( !state ) {
-                                               var lname = name.toLowerCase();
-                                               name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
-                                               requestHeaders[ name ] = value;
-                                       }
-                                       return this;
-                               },
-
-                               // Raw string
-                               getAllResponseHeaders: function() {
-                                       return state === 2 ? responseHeadersString : null;
-                               },
-
-                               // Builds headers hashtable if needed
-                               getResponseHeader: function( key ) {
-                                       var match;
-                                       if ( state === 2 ) {
-                                               if ( !responseHeaders ) {
-                                                       responseHeaders = {};
-                                                       while( ( match = rheaders.exec( responseHeadersString ) ) ) {
-                                                               responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
-                                                       }
-                                               }
-                                               match = responseHeaders[ key.toLowerCase() ];
-                                       }
-                                       return match === undefined ? null : match;
-                               },
-
-                               // Overrides response content-type header
-                               overrideMimeType: function( type ) {
-                                       if ( !state ) {
-                                               s.mimeType = type;
-                                       }
-                                       return this;
-                               },
-
-                               // Cancel the request
-                               abort: function( statusText ) {
-                                       statusText = statusText || "abort";
-                                       if ( transport ) {
-                                               transport.abort( statusText );
-                                       }
-                                       done( 0, statusText );
-                                       return this;
-                               }
-                       };
-
-               // Callback for when everything is done
-               // It is defined here because jslint complains if it is declared
-               // at the end of the function (which would be more logical and readable)
-               function done( status, nativeStatusText, responses, headers ) {
-
-                       // Called once
-                       if ( state === 2 ) {
-                               return;
-                       }
-
-                       // State is "done" now
-                       state = 2;
-
-                       // Clear timeout if it exists
-                       if ( timeoutTimer ) {
-                               clearTimeout( timeoutTimer );
-                       }
-
-                       // Dereference transport for early garbage collection
-                       // (no matter how long the jqXHR object will be used)
-                       transport = undefined;
-
-                       // Cache response headers
-                       responseHeadersString = headers || "";
-
-                       // Set readyState
-                       jqXHR.readyState = status > 0 ? 4 : 0;
-
-                       var isSuccess,
-                               success,
-                               error,
-                               statusText = nativeStatusText,
-                               response = responses ? ajaxHandleResponses( s, jqXHR, responses ) : undefined,
-                               lastModified,
-                               etag;
-
-                       // If successful, handle type chaining
-                       if ( status >= 200 && status < 300 || status === 304 ) {
-
-                               // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
-                               if ( s.ifModified ) {
-
-                                       if ( ( lastModified = jqXHR.getResponseHeader( "Last-Modified" ) ) ) {
-                                               jQuery.lastModified[ ifModifiedKey ] = lastModified;
-                                       }
-                                       if ( ( etag = jqXHR.getResponseHeader( "Etag" ) ) ) {
-                                               jQuery.etag[ ifModifiedKey ] = etag;
-                                       }
-                               }
-
-                               // If not modified
-                               if ( status === 304 ) {
-
-                                       statusText = "notmodified";
-                                       isSuccess = true;
-
-                               // If we have data
-                               } else {
-
-                                       try {
-                                               success = ajaxConvert( s, response );
-                                               statusText = "success";
-                                               isSuccess = true;
-                                       } catch(e) {
-                                               // We have a parsererror
-                                               statusText = "parsererror";
-                                               error = e;
-                                       }
-                               }
-                       } else {
-                               // We extract error from statusText
-                               // then normalize statusText and status for non-aborts
-                               error = statusText;
-                               if( !statusText || status ) {
-                                       statusText = "error";
-                                       if ( status < 0 ) {
-                                               status = 0;
-                                       }
-                               }
-                       }
-
-                       // Set data for the fake xhr object
-                       jqXHR.status = status;
-                       jqXHR.statusText = "" + ( nativeStatusText || statusText );
-
-                       // Success/Error
-                       if ( isSuccess ) {
-                               deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
-                       } else {
-                               deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
-                       }
-
-                       // Status-dependent callbacks
-                       jqXHR.statusCode( statusCode );
-                       statusCode = undefined;
-
-                       if ( fireGlobals ) {
-                               globalEventContext.trigger( "ajax" + ( isSuccess ? "Success" : "Error" ),
-                                               [ jqXHR, s, isSuccess ? success : error ] );
-                       }
-
-                       // Complete
-                       completeDeferred.resolveWith( callbackContext, [ jqXHR, statusText ] );
-
-                       if ( fireGlobals ) {
-                               globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
-                               // Handle the global AJAX counter
-                               if ( !( --jQuery.active ) ) {
-                                       jQuery.event.trigger( "ajaxStop" );
-                               }
-                       }
-               }
-
-               // Attach deferreds
-               deferred.promise( jqXHR );
-               jqXHR.success = jqXHR.done;
-               jqXHR.error = jqXHR.fail;
-               jqXHR.complete = completeDeferred.done;
-
-               // Status-dependent callbacks
-               jqXHR.statusCode = function( map ) {
-                       if ( map ) {
-                               var tmp;
-                               if ( state < 2 ) {
-                                       for( tmp in map ) {
-                                               statusCode[ tmp ] = [ statusCode[tmp], map[tmp] ];
-                                       }
-                               } else {
-                                       tmp = map[ jqXHR.status ];
-                                       jqXHR.then( tmp, tmp );
-                               }
-                       }
-                       return this;
-               };
-
-               // Remove hash character (#7531: and string promotion)
-               // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
-               // We also use the url parameter if available
-               s.url = ( ( url || s.url ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
-
-               // Extract dataTypes list
-               s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( rspacesAjax );
-
-               // Determine if a cross-domain request is in order
-               if ( s.crossDomain == null ) {
-                       parts = rurl.exec( s.url.toLowerCase() );
-                       s.crossDomain = !!( parts &&
-                               ( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||
-                                       ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
-                                               ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) )
-                       );
-               }
-
-               // Convert data if not already a string
-               if ( s.data && s.processData && typeof s.data !== "string" ) {
-                       s.data = jQuery.param( s.data, s.traditional );
-               }
-
-               // Apply prefilters
-               inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
-
-               // If request was aborted inside a prefiler, stop there
-               if ( state === 2 ) {
-                       return false;
-               }
-
-               // We can fire global events as of now if asked to
-               fireGlobals = s.global;
-
-               // Uppercase the type
-               s.type = s.type.toUpperCase();
-
-               // Determine if request has content
-               s.hasContent = !rnoContent.test( s.type );
-
-               // Watch for a new set of requests
-               if ( fireGlobals && jQuery.active++ === 0 ) {
-                       jQuery.event.trigger( "ajaxStart" );
-               }
-
-               // More options handling for requests with no content
-               if ( !s.hasContent ) {
-
-                       // If data is available, append data to url
-                       if ( s.data ) {
-                               s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.data;
-                               // #9682: remove data so that it's not used in an eventual retry
-                               delete s.data;
-                       }
-
-                       // Get ifModifiedKey before adding the anti-cache parameter
-                       ifModifiedKey = s.url;
-
-                       // Add anti-cache in url if needed
-                       if ( s.cache === false ) {
-
-                               var ts = jQuery.now(),
-                                       // try replacing _= if it is there
-                                       ret = s.url.replace( rts, "$1_=" + ts );
-
-                               // if nothing was replaced, add timestamp to the end
-                               s.url = ret + ( (ret === s.url ) ? ( rquery.test( s.url ) ? "&" : "?" ) + "_=" + ts : "" );
-                       }
-               }
-
-               // Set the correct header, if data is being sent
-               if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
-                       jqXHR.setRequestHeader( "Content-Type", s.contentType );
-               }
-
-               // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
-               if ( s.ifModified ) {
-                       ifModifiedKey = ifModifiedKey || s.url;
-                       if ( jQuery.lastModified[ ifModifiedKey ] ) {
-                               jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ ifModifiedKey ] );
-                       }
-                       if ( jQuery.etag[ ifModifiedKey ] ) {
-                               jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ ifModifiedKey ] );
-                       }
-               }
-
-               // Set the Accepts header for the server, depending on the dataType
-               jqXHR.setRequestHeader(
-                       "Accept",
-                       s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
-                               s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
-                               s.accepts[ "*" ]
-               );
-
-               // Check for headers option
-               for ( i in s.headers ) {
-                       jqXHR.setRequestHeader( i, s.headers[ i ] );
-               }
-
-               // Allow custom headers/mimetypes and early abort
-               if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
-                               // Abort if not done already
-                               jqXHR.abort();
-                               return false;
-
-               }
-
-               // Install callbacks on deferreds
-               for ( i in { success: 1, error: 1, complete: 1 } ) {
-                       jqXHR[ i ]( s[ i ] );
-               }
-
-               // Get transport
-               transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
-
-               // If no transport, we auto-abort
-               if ( !transport ) {
-                       done( -1, "No Transport" );
-               } else {
-                       jqXHR.readyState = 1;
-                       // Send global event
-                       if ( fireGlobals ) {
-                               globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
-                       }
-                       // Timeout
-                       if ( s.async && s.timeout > 0 ) {
-                               timeoutTimer = setTimeout( function(){
-                                       jqXHR.abort( "timeout" );
-                               }, s.timeout );
-                       }
-
-                       try {
-                               state = 1;
-                               transport.send( requestHeaders, done );
-                       } catch (e) {
-                               // Propagate exception as error if not done
-                               if ( state < 2 ) {
-                                       done( -1, e );
-                               // Simply rethrow otherwise
-                               } else {
-                                       jQuery.error( e );
-                               }
-                       }
-               }
-
-               return jqXHR;
-       },
-
-       // Serialize an array of form elements or a set of
-       // key/values into a query string
-       param: function( a, traditional ) {
-               var s = [],
-                       add = function( key, value ) {
-                               // If value is a function, invoke it and return its value
-                               value = jQuery.isFunction( value ) ? value() : value;
-                               s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
-                       };
-
-               // Set traditional to true for jQuery <= 1.3.2 behavior.
-               if ( traditional === undefined ) {
-                       traditional = jQuery.ajaxSettings.traditional;
-               }
-
-               // If an array was passed in, assume that it is an array of form elements.
-               if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
-                       // Serialize the form elements
-                       jQuery.each( a, function() {
-                               add( this.name, this.value );
-                       });
-
-               } else {
-                       // If traditional, encode the "old" way (the way 1.3.2 or older
-                       // did it), otherwise encode params recursively.
-                       for ( var prefix in a ) {
-                               buildParams( prefix, a[ prefix ], traditional, add );
-                       }
-               }
-
-               // Return the resulting serialization
-               return s.join( "&" ).replace( r20, "+" );
-       }
-});
-
-function buildParams( prefix, obj, traditional, add ) {
-       if ( jQuery.isArray( obj ) ) {
-               // Serialize array item.
-               jQuery.each( obj, function( i, v ) {
-                       if ( traditional || rbracket.test( prefix ) ) {
-                               // Treat each array item as a scalar.
-                               add( prefix, v );
-
-                       } else {
-                               // If array item is non-scalar (array or object), encode its
-                               // numeric index to resolve deserialization ambiguity issues.
-                               // Note that rack (as of 1.0.0) can't currently deserialize
-                               // nested arrays properly, and attempting to do so may cause
-                               // a server error. Possible fixes are to modify rack's
-                               // deserialization algorithm or to provide an option or flag
-                               // to force array serialization to be shallow.
-                               buildParams( prefix + "[" + ( typeof v === "object" || jQuery.isArray(v) ? i : "" ) + "]", v, traditional, add );
-                       }
-               });
-
-       } else if ( !traditional && obj != null && typeof obj === "object" ) {
-               // Serialize object item.
-               for ( var name in obj ) {
-                       buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
-               }
-
-       } else {
-               // Serialize scalar item.
-               add( prefix, obj );
-       }
-}
-
-// This is still on the jQuery object... for now
-// Want to move this to jQuery.ajax some day
-jQuery.extend({
-
-       // Counter for holding the number of active queries
-       active: 0,
-
-       // Last-Modified header cache for next request
-       lastModified: {},
-       etag: {}
-
-});
-
-/* Handles responses to an ajax request:
- * - sets all responseXXX fields accordingly
- * - finds the right dataType (mediates between content-type and expected dataType)
- * - returns the corresponding response
- */
-function ajaxHandleResponses( s, jqXHR, responses ) {
-
-       var contents = s.contents,
-               dataTypes = s.dataTypes,
-               responseFields = s.responseFields,
-               ct,
-               type,
-               finalDataType,
-               firstDataType;
-
-       // Fill responseXXX fields
-       for( type in responseFields ) {
-               if ( type in responses ) {
-                       jqXHR[ responseFields[type] ] = responses[ type ];
-               }
-       }
-
-       // Remove auto dataType and get content-type in the process
-       while( dataTypes[ 0 ] === "*" ) {
-               dataTypes.shift();
-               if ( ct === undefined ) {
-                       ct = s.mimeType || jqXHR.getResponseHeader( "content-type" );
-               }
-       }
-
-       // Check if we're dealing with a known content-type
-       if ( ct ) {
-               for ( type in contents ) {
-                       if ( contents[ type ] && contents[ type ].test( ct ) ) {
-                               dataTypes.unshift( type );
-                               break;
-                       }
-               }
-       }
-
-       // Check to see if we have a response for the expected dataType
-       if ( dataTypes[ 0 ] in responses ) {
-               finalDataType = dataTypes[ 0 ];
-       } else {
-               // Try convertible dataTypes
-               for ( type in responses ) {
-                       if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
-                               finalDataType = type;
-                               break;
-                       }
-                       if ( !firstDataType ) {
-                               firstDataType = type;
-                       }
-               }
-               // Or just use first one
-               finalDataType = finalDataType || firstDataType;
-       }
-
-       // If we found a dataType
-       // We add the dataType to the list if needed
-       // and return the corresponding response
-       if ( finalDataType ) {
-               if ( finalDataType !== dataTypes[ 0 ] ) {
-                       dataTypes.unshift( finalDataType );
-               }
-               return responses[ finalDataType ];
-       }
-}
-
-// Chain conversions given the request and the original response
-function ajaxConvert( s, response ) {
-
-       // Apply the dataFilter if provided
-       if ( s.dataFilter ) {
-               response = s.dataFilter( response, s.dataType );
-       }
-
-       var dataTypes = s.dataTypes,
-               converters = {},
-               i,
-               key,
-               length = dataTypes.length,
-               tmp,
-               // Current and previous dataTypes
-               current = dataTypes[ 0 ],
-               prev,
-               // Conversion expression
-               conversion,
-               // Conversion function
-               conv,
-               // Conversion functions (transitive conversion)
-               conv1,
-               conv2;
-
-       // For each dataType in the chain
-       for( i = 1; i < length; i++ ) {
-
-               // Create converters map
-               // with lowercased keys
-               if ( i === 1 ) {
-                       for( key in s.converters ) {
-                               if( typeof key === "string" ) {
-                                       converters[ key.toLowerCase() ] = s.converters[ key ];
-                               }
-                       }
-               }
-
-               // Get the dataTypes
-               prev = current;
-               current = dataTypes[ i ];
-
-               // If current is auto dataType, update it to prev
-               if( current === "*" ) {
-                       current = prev;
-               // If no auto and dataTypes are actually different
-               } else if ( prev !== "*" && prev !== current ) {
-
-                       // Get the converter
-                       conversion = prev + " " + current;
-                       conv = converters[ conversion ] || converters[ "* " + current ];
-
-                       // If there is no direct converter, search transitively
-                       if ( !conv ) {
-                               conv2 = undefined;
-                               for( conv1 in converters ) {
-                                       tmp = conv1.split( " " );
-                                       if ( tmp[ 0 ] === prev || tmp[ 0 ] === "*" ) {
-                                               conv2 = converters[ tmp[1] + " " + current ];
-                                               if ( conv2 ) {
-                                                       conv1 = converters[ conv1 ];
-                                                       if ( conv1 === true ) {
-                                                               conv = conv2;
-                                                       } else if ( conv2 === true ) {
-                                                               conv = conv1;
-                                                       }
-                                                       break;
-                                               }
-                                       }
-                               }
-                       }
-                       // If we found no converter, dispatch an error
-                       if ( !( conv || conv2 ) ) {
-                               jQuery.error( "No conversion from " + conversion.replace(" "," to ") );
-                       }
-                       // If found converter is not an equivalence
-                       if ( conv !== true ) {
-                               // Convert with 1 or 2 converters accordingly
-                               response = conv ? conv( response ) : conv2( conv1(response) );
-                       }
-               }
-       }
-       return response;
-}
-
-
-
-
-var jsc = jQuery.now(),
-       jsre = /(\=)\?(&|$)|\?\?/i;
-
-// Default jsonp settings
-jQuery.ajaxSetup({
-       jsonp: "callback",
-       jsonpCallback: function() {
-               return jQuery.expando + "_" + ( jsc++ );
-       }
-});
-
-// Detect, normalize options and install callbacks for jsonp requests
-jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
-
-       var inspectData = s.contentType === "application/x-www-form-urlencoded" &&
-               ( typeof s.data === "string" );
-
-       if ( s.dataTypes[ 0 ] === "jsonp" ||
-               s.jsonp !== false && ( jsre.test( s.url ) ||
-                               inspectData && jsre.test( s.data ) ) ) {
-
-               var responseContainer,
-                       jsonpCallback = s.jsonpCallback =
-                               jQuery.isFunction( s.jsonpCallback ) ? s.jsonpCallback() : s.jsonpCallback,
-                       previous = window[ jsonpCallback ],
-                       url = s.url,
-                       data = s.data,
-                       replace = "$1" + jsonpCallback + "$2";
-
-               if ( s.jsonp !== false ) {
-                       url = url.replace( jsre, replace );
-                       if ( s.url === url ) {
-                               if ( inspectData ) {
-                                       data = data.replace( jsre, replace );
-                               }
-                               if ( s.data === data ) {
-                                       // Add callback manually
-                                       url += (/\?/.test( url ) ? "&" : "?") + s.jsonp + "=" + jsonpCallback;
-                               }
-                       }
-               }
-
-               s.url = url;
-               s.data = data;
-
-               // Install callback
-               window[ jsonpCallback ] = function( response ) {
-                       responseContainer = [ response ];
-               };
-
-               // Clean-up function
-               jqXHR.always(function() {
-                       // Set callback back to previous value
-                       window[ jsonpCallback ] = previous;
-                       // Call if it was a function and we have a response
-                       if ( responseContainer && jQuery.isFunction( previous ) ) {
-                               window[ jsonpCallback ]( responseContainer[ 0 ] );
-                       }
-               });
-
-               // Use data converter to retrieve json after script execution
-               s.converters["script json"] = function() {
-                       if ( !responseContainer ) {
-                               jQuery.error( jsonpCallback + " was not called" );
-                       }
-                       return responseContainer[ 0 ];
-               };
-
-               // force json dataType
-               s.dataTypes[ 0 ] = "json";
-
-               // Delegate to script
-               return "script";
-       }
-});
-
-
-
-
-// Install script dataType
-jQuery.ajaxSetup({
-       accepts: {
-               script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
-       },
-       contents: {
-               script: /javascript|ecmascript/
-       },
-       converters: {
-               "text script": function( text ) {
-                       jQuery.globalEval( text );
-                       return text;
-               }
-       }
-});
-
-// Handle cache's special case and global
-jQuery.ajaxPrefilter( "script", function( s ) {
-       if ( s.cache === undefined ) {
-               s.cache = false;
-       }
-       if ( s.crossDomain ) {
-               s.type = "GET";
-               s.global = false;
-       }
-});
-
-// Bind script tag hack transport
-jQuery.ajaxTransport( "script", function(s) {
-
-       // This transport only deals with cross domain requests
-       if ( s.crossDomain ) {
-
-               var script,
-                       head = document.head || document.getElementsByTagName( "head" )[0] || document.documentElement;
-
-               return {
-
-                       send: function( _, callback ) {
-
-                               script = document.createElement( "script" );
-
-                               script.async = "async";
-
-                               if ( s.scriptCharset ) {
-                                       script.charset = s.scriptCharset;
-                               }
-
-                               script.src = s.url;
-
-                               // Attach handlers for all browsers
-                               script.onload = script.onreadystatechange = function( _, isAbort ) {
-
-                                       if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {
-
-                                               // Handle memory leak in IE
-                                               script.onload = script.onreadystatechange = null;
-
-                                               // Remove the script
-                                               if ( head && script.parentNode ) {
-                                                       head.removeChild( script );
-                                               }
-
-                                               // Dereference the script
-                                               script = undefined;
-
-                                               // Callback if not abort
-                                               if ( !isAbort ) {
-                                                       callback( 200, "success" );
-                                               }
-                                       }
-                               };
-                               // Use insertBefore instead of appendChild  to circumvent an IE6 bug.
-                               // This arises when a base node is used (#2709 and #4378).
-                               head.insertBefore( script, head.firstChild );
-                       },
-
-                       abort: function() {
-                               if ( script ) {
-                                       script.onload( 0, 1 );
-                               }
-                       }
-               };
-       }
-});
-
-
-
-
-var // #5280: Internet Explorer will keep connections alive if we don't abort on unload
-       xhrOnUnloadAbort = window.ActiveXObject ? function() {
-               // Abort all pending requests
-               for ( var key in xhrCallbacks ) {
-                       xhrCallbacks[ key ]( 0, 1 );
-               }
-       } : false,
-       xhrId = 0,
-       xhrCallbacks;
-
-// Functions to create xhrs
-function createStandardXHR() {
-       try {
-               return new window.XMLHttpRequest();
-       } catch( e ) {}
-}
-
-function createActiveXHR() {
-       try {
-               return new window.ActiveXObject( "Microsoft.XMLHTTP" );
-       } catch( e ) {}
-}
-
-// Create the request object
-// (This is still attached to ajaxSettings for backward compatibility)
-jQuery.ajaxSettings.xhr = window.ActiveXObject ?
-       /* Microsoft failed to properly
-        * implement the XMLHttpRequest in IE7 (can't request local files),
-        * so we use the ActiveXObject when it is available
-        * Additionally XMLHttpRequest can be disabled in IE7/IE8 so
-        * we need a fallback.
-        */
-       function() {
-               return !this.isLocal && createStandardXHR() || createActiveXHR();
-       } :
-       // For all other browsers, use the standard XMLHttpRequest object
-       createStandardXHR;
-
-// Determine support properties
-(function( xhr ) {
-       jQuery.extend( jQuery.support, {
-               ajax: !!xhr,
-               cors: !!xhr && ( "withCredentials" in xhr )
-       });
-})( jQuery.ajaxSettings.xhr() );
-
-// Create transport if the browser can provide an xhr
-if ( jQuery.support.ajax ) {
-
-       jQuery.ajaxTransport(function( s ) {
-               // Cross domain only allowed if supported through XMLHttpRequest
-               if ( !s.crossDomain || jQuery.support.cors ) {
-
-                       var callback;
-
-                       return {
-                               send: function( headers, complete ) {
-
-                                       // Get a new xhr
-                                       var xhr = s.xhr(),
-                                               handle,
-                                               i;
-
-                                       // Open the socket
-                                       // Passing null username, generates a login popup on Opera (#2865)
-                                       if ( s.username ) {
-                                               xhr.open( s.type, s.url, s.async, s.username, s.password );
-                                       } else {
-                                               xhr.open( s.type, s.url, s.async );
-                                       }
-
-                                       // Apply custom fields if provided
-                                       if ( s.xhrFields ) {
-                                               for ( i in s.xhrFields ) {
-                                                       xhr[ i ] = s.xhrFields[ i ];
-                                               }
-                                       }
-
-                                       // Override mime type if needed
-                                       if ( s.mimeType && xhr.overrideMimeType ) {
-                                               xhr.overrideMimeType( s.mimeType );
-                                       }
-
-                                       // X-Requested-With header
-                                       // For cross-domain requests, seeing as conditions for a preflight are
-                                       // akin to a jigsaw puzzle, we simply never set it to be sure.
-                                       // (it can always be set on a per-request basis or even using ajaxSetup)
-                                       // For same-domain requests, won't change header if already provided.
-                                       if ( !s.crossDomain && !headers["X-Requested-With"] ) {
-                                               headers[ "X-Requested-With" ] = "XMLHttpRequest";
-                                       }
-
-                                       // Need an extra try/catch for cross domain requests in Firefox 3
-                                       try {
-                                               for ( i in headers ) {
-                                                       xhr.setRequestHeader( i, headers[ i ] );
-                                               }
-                                       } catch( _ ) {}
-
-                                       // Do send the request
-                                       // This may raise an exception which is actually
-                                       // handled in jQuery.ajax (so no try/catch here)
-                                       xhr.send( ( s.hasContent && s.data ) || null );
-
-                                       // Listener
-                                       callback = function( _, isAbort ) {
-
-                                               var status,
-                                                       statusText,
-                                                       responseHeaders,
-                                                       responses,
-                                                       xml;
-
-                                               // Firefox throws exceptions when accessing properties
-                                               // of an xhr when a network error occured
-                                               // http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
-                                               try {
-
-                                                       // Was never called and is aborted or complete
-                                                       if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
-
-                                                               // Only called once
-                                                               callback = undefined;
-
-                                                               // Do not keep as active anymore
-                                                               if ( handle ) {
-                                                                       xhr.onreadystatechange = jQuery.noop;
-                                                                       if ( xhrOnUnloadAbort ) {
-                                                                               delete xhrCallbacks[ handle ];
-                                                                       }
-                                                               }
-
-                                                               // If it's an abort
-                                                               if ( isAbort ) {
-                                                                       // Abort it manually if needed
-                                                                       if ( xhr.readyState !== 4 ) {
-                                                                               xhr.abort();
-                                                                       }
-                                                               } else {
-                                                                       status = xhr.status;
-                                                                       responseHeaders = xhr.getAllResponseHeaders();
-                                                                       responses = {};
-                                                                       xml = xhr.responseXML;
-
-                                                                       // Construct response list
-                                                                       if ( xml && xml.documentElement /* #4958 */ ) {
-                                                                               responses.xml = xml;
-                                                                       }
-                                                                       responses.text = xhr.responseText;
-
-                                                                       // Firefox throws an exception when accessing
-                                                                       // statusText for faulty cross-domain requests
-                                                                       try {
-                                                                               statusText = xhr.statusText;
-                                                                       } catch( e ) {
-                                                                               // We normalize with Webkit giving an empty statusText
-                                                                               statusText = "";
-                                                                       }
-
-                                                                       // Filter status for non standard behaviors
-
-                                                                       // If the request is local and we have data: assume a success
-                                                                       // (success with no data won't get notified, that's the best we
-                                                                       // can do given current implementations)
-                                                                       if ( !status && s.isLocal && !s.crossDomain ) {
-                                                                               status = responses.text ? 200 : 404;
-                                                                       // IE - #1450: sometimes returns 1223 when it should be 204
-                                                                       } else if ( status === 1223 ) {
-                                                                               status = 204;
-                                                                       }
-                                                               }
-                                                       }
-                                               } catch( firefoxAccessException ) {
-                                                       if ( !isAbort ) {
-                                                               complete( -1, firefoxAccessException );
-                                                       }
-                                               }
-
-                                               // Call complete if needed
-                                               if ( responses ) {
-                                                       complete( status, statusText, responses, responseHeaders );
-                                               }
-                                       };
-
-                                       // if we're in sync mode or it's in cache
-                                       // and has been retrieved directly (IE6 & IE7)
-                                       // we need to manually fire the callback
-                                       if ( !s.async || xhr.readyState === 4 ) {
-                                               callback();
-                                       } else {
-                                               handle = ++xhrId;
-                                               if ( xhrOnUnloadAbort ) {
-                                                       // Create the active xhrs callbacks list if needed
-                                                       // and attach the unload handler
-                                                       if ( !xhrCallbacks ) {
-                                                               xhrCallbacks = {};
-                                                               jQuery( window ).unload( xhrOnUnloadAbort );
-                                                       }
-                                                       // Add to list of active xhrs callbacks
-                                                       xhrCallbacks[ handle ] = callback;
-                                               }
-                                               xhr.onreadystatechange = callback;
-                                       }
-                               },
-
-                               abort: function() {
-                                       if ( callback ) {
-                                               callback(0,1);
-                                       }
-                               }
-                       };
-               }
-       });
-}
-
-
-
-
-var elemdisplay = {},
-       iframe, iframeDoc,
-       rfxtypes = /^(?:toggle|show|hide)$/,
-       rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
-       timerId,
-       fxAttrs = [
-               // height animations
-               [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
-               // width animations
-               [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
-               // opacity animations
-               [ "opacity" ]
-       ],
-       fxNow;
-
-jQuery.fn.extend({
-       show: function( speed, easing, callback ) {
-               var elem, display;
-
-               if ( speed || speed === 0 ) {
-                       return this.animate( genFx("show", 3), speed, easing, callback);
-
-               } else {
-                       for ( var i = 0, j = this.length; i < j; i++ ) {
-                               elem = this[i];
-
-                               if ( elem.style ) {
-                                       display = elem.style.display;
-
-                                       // Reset the inline display of this element to learn if it is
-                                       // being hidden by cascaded rules or not
-                                       if ( !jQuery._data(elem, "olddisplay") && display === "none" ) {
-                                               display = elem.style.display = "";
-                                       }
-
-                                       // Set elements which have been overridden with display: none
-                                       // in a stylesheet to whatever the default browser style is
-                                       // for such an element
-                                       if ( display === "" && jQuery.css( elem, "display" ) === "none" ) {
-                                               jQuery._data(elem, "olddisplay", defaultDisplay(elem.nodeName));
-                                       }
-                               }
-                       }
-
-                       // Set the display of most of the elements in a second loop
-                       // to avoid the constant reflow
-                       for ( i = 0; i < j; i++ ) {
-                               elem = this[i];
-
-                               if ( elem.style ) {
-                                       display = elem.style.display;
-
-                                       if ( display === "" || display === "none" ) {
-                                               elem.style.display = jQuery._data(elem, "olddisplay") || "";
-                                       }
-                               }
-                       }
-
-                       return this;
-               }
-       },
-
-       hide: function( speed, easing, callback ) {
-               if ( speed || speed === 0 ) {
-                       return this.animate( genFx("hide", 3), speed, easing, callback);
-
-               } else {
-                       for ( var i = 0, j = this.length; i < j; i++ ) {
-                               if ( this[i].style ) {
-                                       var display = jQuery.css( this[i], "display" );
-
-                                       if ( display !== "none" && !jQuery._data( this[i], "olddisplay" ) ) {
-                                               jQuery._data( this[i], "olddisplay", display );
-                                       }
-                               }
-                       }
-
-                       // Set the display of the elements in a second loop
-                       // to avoid the constant reflow
-                       for ( i = 0; i < j; i++ ) {
-                               if ( this[i].style ) {
-                                       this[i].style.display = "none";
-                               }
-                       }
-
-                       return this;
-               }
-       },
-
-       // Save the old toggle function
-       _toggle: jQuery.fn.toggle,
-
-       toggle: function( fn, fn2, callback ) {
-               var bool = typeof fn === "boolean";
-
-               if ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) {
-                       this._toggle.apply( this, arguments );
-
-               } else if ( fn == null || bool ) {
-                       this.each(function() {
-                               var state = bool ? fn : jQuery(this).is(":hidden");
-                               jQuery(this)[ state ? "show" : "hide" ]();
-                       });
-
-               } else {
-                       this.animate(genFx("toggle", 3), fn, fn2, callback);
-               }
-
-               return this;
-       },
-
-       fadeTo: function( speed, to, easing, callback ) {
-               return this.filter(":hidden").css("opacity", 0).show().end()
-                                       .animate({opacity: to}, speed, easing, callback);
-       },
-
-       animate: function( prop, speed, easing, callback ) {
-               var optall = jQuery.speed(speed, easing, callback);
-
-               if ( jQuery.isEmptyObject( prop ) ) {
-                       return this.each( optall.complete, [ false ] );
-               }
-
-               // Do not change referenced properties as per-property easing will be lost
-               prop = jQuery.extend( {}, prop );
-
-               return this[ optall.queue === false ? "each" : "queue" ](function() {
-                       // XXX 'this' does not always have a nodeName when running the
-                       // test suite
-
-                       if ( optall.queue === false ) {
-                               jQuery._mark( this );
-                       }
-
-                       var opt = jQuery.extend( {}, optall ),
-                               isElement = this.nodeType === 1,
-                               hidden = isElement && jQuery(this).is(":hidden"),
-                               name, val, p,
-                               display, e,
-                               parts, start, end, unit;
-
-                       // will store per property easing and be used to determine when an animation is complete
-                       opt.animatedProperties = {};
-
-                       for ( p in prop ) {
-
-                               // property name normalization
-                               name = jQuery.camelCase( p );
-                               if ( p !== name ) {
-                                       prop[ name ] = prop[ p ];
-                                       delete prop[ p ];
-                               }
-
-                               val = prop[ name ];
-
-                               // easing resolution: per property > opt.specialEasing > opt.easing > 'swing' (default)
-                               if ( jQuery.isArray( val ) ) {
-                                       opt.animatedProperties[ name ] = val[ 1 ];
-                                       val = prop[ name ] = val[ 0 ];
-                               } else {
-                                       opt.animatedProperties[ name ] = opt.specialEasing && opt.specialEasing[ name ] || opt.easing || 'swing';
-                               }
-
-                               if ( val === "hide" && hidden || val === "show" && !hidden ) {
-                                       return opt.complete.call( this );
-                               }
-
-                               if ( isElement && ( name === "height" || name === "width" ) ) {
-                                       // Make sure that nothing sneaks out
-                                       // Record all 3 overflow attributes because IE does not
-                                       // change the overflow attribute when overflowX and
-                                       // overflowY are set to the same value
-                                       opt.overflow = [ this.style.overflow, this.style.overflowX, this.style.overflowY ];
-
-                                       // Set display property to inline-block for height/width
-                                       // animations on inline elements that are having width/height
-                                       // animated
-                                       if ( jQuery.css( this, "display" ) === "inline" &&
-                                                       jQuery.css( this, "float" ) === "none" ) {
-                                               if ( !jQuery.support.inlineBlockNeedsLayout ) {
-                                                       this.style.display = "inline-block";
-
-                                               } else {
-                                                       display = defaultDisplay( this.nodeName );
-
-                                                       // inline-level elements accept inline-block;
-                                                       // block-level elements need to be inline with layout
-                                                       if ( display === "inline" ) {
-                                                               this.style.display = "inline-block";
-
-                                                       } else {
-                                                               this.style.display = "inline";
-                                                               this.style.zoom = 1;
-                                                       }
-                                               }
-                                       }
-                               }
-                       }
-
-                       if ( opt.overflow != null ) {
-                               this.style.overflow = "hidden";
-                       }
-
-                       for ( p in prop ) {
-                               e = new jQuery.fx( this, opt, p );
-                               val = prop[ p ];
-
-                               if ( rfxtypes.test(val) ) {
-                                       e[ val === "toggle" ? hidden ? "show" : "hide" : val ]();
-
-                               } else {
-                                       parts = rfxnum.exec( val );
-                                       start = e.cur();
-
-                                       if ( parts ) {
-                                               end = parseFloat( parts[2] );
-                                               unit = parts[3] || ( jQuery.cssNumber[ p ] ? "" : "px" );
-
-                                               // We need to compute starting value
-                                               if ( unit !== "px" ) {
-                                                       jQuery.style( this, p, (end || 1) + unit);
-                                                       start = ((end || 1) / e.cur()) * start;
-                                                       jQuery.style( this, p, start + unit);
-                                               }
-
-                                               // If a +=/-= token was provided, we're doing a relative animation
-                                               if ( parts[1] ) {
-                                                       end = ( (parts[ 1 ] === "-=" ? -1 : 1) * end ) + start;
-                                               }
-
-                                               e.custom( start, end, unit );
-
-                                       } else {
-                                               e.custom( start, val, "" );
-                                       }
-                               }
-                       }
-
-                       // For JS strict compliance
-                       return true;
-               });
-       },
-
-       stop: function( clearQueue, gotoEnd ) {
-               if ( clearQueue ) {
-                       this.queue([]);
-               }
-
-               this.each(function() {
-                       var timers = jQuery.timers,
-                               i = timers.length;
-                       // clear marker counters if we know they won't be
-                       if ( !gotoEnd ) {
-                               jQuery._unmark( true, this );
-                       }
-                       while ( i-- ) {
-                               if ( timers[i].elem === this ) {
-                                       if (gotoEnd) {
-                                               // force the next step to be the last
-                                               timers[i](true);
-                                       }
-
-                                       timers.splice(i, 1);
-                               }
-                       }
-               });
-
-               // start the next in the queue if the last step wasn't forced
-               if ( !gotoEnd ) {
-                       this.dequeue();
-               }
-
-               return this;
-       }
-
-});
-
-// Animations created synchronously will run synchronously
-function createFxNow() {
-       setTimeout( clearFxNow, 0 );
-       return ( fxNow = jQuery.now() );
-}
-
-function clearFxNow() {
-       fxNow = undefined;
-}
-
-// Generate parameters to create a standard animation
-function genFx( type, num ) {
-       var obj = {};
-
-       jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice(0,num)), function() {
-               obj[ this ] = type;
-       });
-
-       return obj;
-}
-
-// Generate shortcuts for custom animations
-jQuery.each({
-       slideDown: genFx("show", 1),
-       slideUp: genFx("hide", 1),
-       slideToggle: genFx("toggle", 1),
-       fadeIn: { opacity: "show" },
-       fadeOut: { opacity: "hide" },
-       fadeToggle: { opacity: "toggle" }
-}, function( name, props ) {
-       jQuery.fn[ name ] = function( speed, easing, callback ) {
-               return this.animate( props, speed, easing, callback );
-       };
-});
-
-jQuery.extend({
-       speed: function( speed, easing, fn ) {
-               var opt = speed && typeof speed === "object" ? jQuery.extend({}, speed) : {
-                       complete: fn || !fn && easing ||
-                               jQuery.isFunction( speed ) && speed,
-                       duration: speed,
-                       easing: fn && easing || easing && !jQuery.isFunction(easing) && easing
-               };
-
-               opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
-                       opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[opt.duration] : jQuery.fx.speeds._default;
-
-               // Queueing
-               opt.old = opt.complete;
-               opt.complete = function( noUnmark ) {
-                       if ( jQuery.isFunction( opt.old ) ) {
-                               opt.old.call( this );
-                       }
-
-                       if ( opt.queue !== false ) {
-                               jQuery.dequeue( this );
-                       } else if ( noUnmark !== false ) {
-                               jQuery._unmark( this );
-                       }
-               };
-
-               return opt;
-       },
-
-       easing: {
-               linear: function( p, n, firstNum, diff ) {
-                       return firstNum + diff * p;
-               },
-               swing: function( p, n, firstNum, diff ) {
-                       return ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum;
-               }
-       },
-
-       timers: [],
-
-       fx: function( elem, options, prop ) {
-               this.options = options;
-               this.elem = elem;
-               this.prop = prop;
-
-               options.orig = options.orig || {};
-       }
-
-});
-
-jQuery.fx.prototype = {
-       // Simple function for setting a style value
-       update: function() {
-               if ( this.options.step ) {
-                       this.options.step.call( this.elem, this.now, this );
-               }
-
-               (jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this );
-       },
-
-       // Get the current size
-       cur: function() {
-               if ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) ) {
-                       return this.elem[ this.prop ];
-               }
-
-               var parsed,
-                       r = jQuery.css( this.elem, this.prop );
-               // Empty strings, null, undefined and "auto" are converted to 0,
-               // complex values such as "rotate(1rad)" are returned as is,
-               // simple values such as "10px" are parsed to Float.
-               return isNaN( parsed = parseFloat( r ) ) ? !r || r === "auto" ? 0 : r : parsed;
-       },
-
-       // Start an animation from one number to another
-       custom: function( from, to, unit ) {
-               var self = this,
-                       fx = jQuery.fx;
-
-               this.startTime = fxNow || createFxNow();
-               this.start = from;
-               this.end = to;
-               this.unit = unit || this.unit || ( jQuery.cssNumber[ this.prop ] ? "" : "px" );
-               this.now = this.start;
-               this.pos = this.state = 0;
-
-               function t( gotoEnd ) {
-                       return self.step(gotoEnd);
-               }
-
-               t.elem = this.elem;
-
-               if ( t() && jQuery.timers.push(t) && !timerId ) {
-                       timerId = setInterval( fx.tick, fx.interval );
-               }
-       },
-
-       // Simple 'show' function
-       show: function() {
-               // Remember where we started, so that we can go back to it later
-               this.options.orig[this.prop] = jQuery.style( this.elem, this.prop );
-               this.options.show = true;
-
-               // Begin the animation
-               // Make sure that we start at a small width/height to avoid any
-               // flash of content
-               this.custom(this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur());
-
-               // Start by showing the element
-               jQuery( this.elem ).show();
-       },
-
-       // Simple 'hide' function
-       hide: function() {
-               // Remember where we started, so that we can go back to it later
-               this.options.orig[this.prop] = jQuery.style( this.elem, this.prop );
-               this.options.hide = true;
-
-               // Begin the animation
-               this.custom(this.cur(), 0);
-       },
-
-       // Each step of an animation
-       step: function( gotoEnd ) {
-               var t = fxNow || createFxNow(),
-                       done = true,
-                       elem = this.elem,
-                       options = this.options,
-                       i, n;
-
-               if ( gotoEnd || t >= options.duration + this.startTime ) {
-                       this.now = this.end;
-                       this.pos = this.state = 1;
-                       this.update();
-
-                       options.animatedProperties[ this.prop ] = true;
-
-                       for ( i in options.animatedProperties ) {
-                               if ( options.animatedProperties[i] !== true ) {
-                                       done = false;
-                               }
-                       }
-
-                       if ( done ) {
-                               // Reset the overflow
-                               if ( options.overflow != null && !jQuery.support.shrinkWrapBlocks ) {
-
-                                       jQuery.each( [ "", "X", "Y" ], function (index, value) {
-                                               elem.style[ "overflow" + value ] = options.overflow[index];
-                                       });
-                               }
-
-                               // Hide the element if the "hide" operation was done
-                               if ( options.hide ) {
-                                       jQuery(elem).hide();
-                               }
-
-                               // Reset the properties, if the item has been hidden or shown
-                               if ( options.hide || options.show ) {
-                                       for ( var p in options.animatedProperties ) {
-                                               jQuery.style( elem, p, options.orig[p] );
-                                       }
-                               }
-
-                               // Execute the complete function
-                               options.complete.call( elem );
-                       }
-
-                       return false;
-
-               } else {
-                       // classical easing cannot be used with an Infinity duration
-                       if ( options.duration == Infinity ) {
-                               this.now = t;
-                       } else {
-                               n = t - this.startTime;
-                               this.state = n / options.duration;
-
-                               // Perform the easing function, defaults to swing
-                               this.pos = jQuery.easing[ options.animatedProperties[ this.prop ] ]( this.state, n, 0, 1, options.duration );
-                               this.now = this.start + ((this.end - this.start) * this.pos);
-                       }
-                       // Perform the next step of the animation
-                       this.update();
-               }
-
-               return true;
-       }
-};
-
-jQuery.extend( jQuery.fx, {
-       tick: function() {
-               for ( var timers = jQuery.timers, i = 0 ; i < timers.length ; ++i ) {
-                       if ( !timers[i]() ) {
-                               timers.splice(i--, 1);
-                       }
-               }
-
-               if ( !timers.length ) {
-                       jQuery.fx.stop();
-               }
-       },
-
-       interval: 13,
-
-       stop: function() {
-               clearInterval( timerId );
-               timerId = null;
-       },
-
-       speeds: {
-               slow: 600,
-               fast: 200,
-               // Default speed
-               _default: 400
-       },
-
-       step: {
-               opacity: function( fx ) {
-                       jQuery.style( fx.elem, "opacity", fx.now );
-               },
-
-               _default: function( fx ) {
-                       if ( fx.elem.style && fx.elem.style[ fx.prop ] != null ) {
-                               fx.elem.style[ fx.prop ] = (fx.prop === "width" || fx.prop === "height" ? Math.max(0, fx.now) : fx.now) + fx.unit;
-                       } else {
-                               fx.elem[ fx.prop ] = fx.now;
-                       }
-               }
-       }
-});
-
-if ( jQuery.expr && jQuery.expr.filters ) {
-       jQuery.expr.filters.animated = function( elem ) {
-               return jQuery.grep(jQuery.timers, function( fn ) {
-                       return elem === fn.elem;
-               }).length;
-       };
-}
-
-// Try to restore the default display value of an element
-function defaultDisplay( nodeName ) {
-
-       if ( !elemdisplay[ nodeName ] ) {
-
-               var body = document.body,
-                       elem = jQuery( "<" + nodeName + ">" ).appendTo( body ),
-                       display = elem.css( "display" );
-
-               elem.remove();
-
-               // If the simple way fails,
-               // get element's real default display by attaching it to a temp iframe
-               if ( display === "none" || display === "" ) {
-                       // No iframe to use yet, so create it
-                       if ( !iframe ) {
-                               iframe = document.createElement( "iframe" );
-                               iframe.frameBorder = iframe.width = iframe.height = 0;
-                       }
-
-                       body.appendChild( iframe );
-
-                       // Create a cacheable copy of the iframe document on first call.
-                       // IE and Opera will allow us to reuse the iframeDoc without re-writing the fake HTML
-                       // document to it; WebKit & Firefox won't allow reusing the iframe document.
-                       if ( !iframeDoc || !iframe.createElement ) {
-                               iframeDoc = ( iframe.contentWindow || iframe.contentDocument ).document;
-                               iframeDoc.write( ( document.compatMode === "CSS1Compat" ? "<!doctype html>" : "" ) + "<html><body>" );
-                               iframeDoc.close();
-                       }
-
-                       elem = iframeDoc.createElement( nodeName );
-
-                       iframeDoc.body.appendChild( elem );
-
-                       display = jQuery.css( elem, "display" );
-
-                       body.removeChild( iframe );
-               }
-
-               // Store the correct default display
-               elemdisplay[ nodeName ] = display;
-       }
-
-       return elemdisplay[ nodeName ];
-}
-
-
-
-
-var rtable = /^t(?:able|d|h)$/i,
-       rroot = /^(?:body|html)$/i;
-
-if ( "getBoundingClientRect" in document.documentElement ) {
-       jQuery.fn.offset = function( options ) {
-               var elem = this[0], box;
-
-               if ( options ) {
-                       return this.each(function( i ) {
-                               jQuery.offset.setOffset( this, options, i );
-                       });
-               }
-
-               if ( !elem || !elem.ownerDocument ) {
-                       return null;
-               }
-
-               if ( elem === elem.ownerDocument.body ) {
-                       return jQuery.offset.bodyOffset( elem );
-               }
-
-               try {
-                       box = elem.getBoundingClientRect();
-               } catch(e) {}
-
-               var doc = elem.ownerDocument,
-                       docElem = doc.documentElement;
-
-               // Make sure we're not dealing with a disconnected DOM node
-               if ( !box || !jQuery.contains( docElem, elem ) ) {
-                       return box ? { top: box.top, left: box.left } : { top: 0, left: 0 };
-               }
-
-               var body = doc.body,
-                       win = getWindow(doc),
-                       clientTop  = docElem.clientTop  || body.clientTop  || 0,
-                       clientLeft = docElem.clientLeft || body.clientLeft || 0,
-                       scrollTop  = win.pageYOffset || jQuery.support.boxModel && docElem.scrollTop  || body.scrollTop,
-                       scrollLeft = win.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft,
-                       top  = box.top  + scrollTop  - clientTop,
-                       left = box.left + scrollLeft - clientLeft;
-
-               return { top: top, left: left };
-       };
-
-} else {
-       jQuery.fn.offset = function( options ) {
-               var elem = this[0];
-
-               if ( options ) {
-                       return this.each(function( i ) {
-                               jQuery.offset.setOffset( this, options, i );
-                       });
-               }
-
-               if ( !elem || !elem.ownerDocument ) {
-                       return null;
-               }
-
-               if ( elem === elem.ownerDocument.body ) {
-                       return jQuery.offset.bodyOffset( elem );
-               }
-
-               jQuery.offset.initialize();
-
-               var computedStyle,
-                       offsetParent = elem.offsetParent,
-                       prevOffsetParent = elem,
-                       doc = elem.ownerDocument,
-                       docElem = doc.documentElement,
-                       body = doc.body,
-                       defaultView = doc.defaultView,
-                       prevComputedStyle = defaultView ? defaultView.getComputedStyle( elem, null ) : elem.currentStyle,
-                       top = elem.offsetTop,
-                       left = elem.offsetLeft;
-
-               while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
-                       if ( jQuery.offset.supportsFixedPosition && prevComputedStyle.position === "fixed" ) {
-                               break;
-                       }
-
-                       computedStyle = defaultView ? defaultView.getComputedStyle(elem, null) : elem.currentStyle;
-                       top  -= elem.scrollTop;
-                       left -= elem.scrollLeft;
-
-                       if ( elem === offsetParent ) {
-                               top  += elem.offsetTop;
-                               left += elem.offsetLeft;
-
-                               if ( jQuery.offset.doesNotAddBorder && !(jQuery.offset.doesAddBorderForTableAndCells && rtable.test(elem.nodeName)) ) {
-                                       top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
-                                       left += parseFloat( computedStyle.borderLeftWidth ) || 0;
-                               }
-
-                               prevOffsetParent = offsetParent;
-                               offsetParent = elem.offsetParent;
-                       }
-
-                       if ( jQuery.offset.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" ) {
-                               top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
-                               left += parseFloat( computedStyle.borderLeftWidth ) || 0;
-                       }
-
-                       prevComputedStyle = computedStyle;
-               }
-
-               if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" ) {
-                       top  += body.offsetTop;
-                       left += body.offsetLeft;
-               }
-
-               if ( jQuery.offset.supportsFixedPosition && prevComputedStyle.position === "fixed" ) {
-                       top  += Math.max( docElem.scrollTop, body.scrollTop );
-                       left += Math.max( docElem.scrollLeft, body.scrollLeft );
-               }
-
-               return { top: top, left: left };
-       };
-}
-
-jQuery.offset = {
-       initialize: function() {
-               var body = document.body, container = document.createElement("div"), innerDiv, checkDiv, table, td, bodyMarginTop = parseFloat( jQuery.css(body, "marginTop") ) || 0,
-                       html = "<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
-
-               jQuery.extend( container.style, { position: "absolute", top: 0, left: 0, margin: 0, border: 0, width: "1px", height: "1px", visibility: "hidden" } );
-
-               container.innerHTML = html;
-               body.insertBefore( container, body.firstChild );
-               innerDiv = container.firstChild;
-               checkDiv = innerDiv.firstChild;
-               td = innerDiv.nextSibling.firstChild.firstChild;
-
-               this.doesNotAddBorder = (checkDiv.offsetTop !== 5);
-               this.doesAddBorderForTableAndCells = (td.offsetTop === 5);
-
-               checkDiv.style.position = "fixed";
-               checkDiv.style.top = "20px";
-
-               // safari subtracts parent border width here which is 5px
-               this.supportsFixedPosition = (checkDiv.offsetTop === 20 || checkDiv.offsetTop === 15);
-               checkDiv.style.position = checkDiv.style.top = "";
-
-               innerDiv.style.overflow = "hidden";
-               innerDiv.style.position = "relative";
-
-               this.subtractsBorderForOverflowNotVisible = (checkDiv.offsetTop === -5);
-
-               this.doesNotIncludeMarginInBodyOffset = (body.offsetTop !== bodyMarginTop);
-
-               body.removeChild( container );
-               jQuery.offset.initialize = jQuery.noop;
-       },
-
-       bodyOffset: function( body ) {
-               var top = body.offsetTop,
-                       left = body.offsetLeft;
-
-               jQuery.offset.initialize();
-
-               if ( jQuery.offset.doesNotIncludeMarginInBodyOffset ) {
-                       top  += parseFloat( jQuery.css(body, "marginTop") ) || 0;
-                       left += parseFloat( jQuery.css(body, "marginLeft") ) || 0;
-               }
-
-               return { top: top, left: left };
-       },
-
-       setOffset: function( elem, options, i ) {
-               var position = jQuery.css( elem, "position" );
-
-               // set position first, in-case top/left are set even on static elem
-               if ( position === "static" ) {
-                       elem.style.position = "relative";
-               }
-
-               var curElem = jQuery( elem ),
-                       curOffset = curElem.offset(),
-                       curCSSTop = jQuery.css( elem, "top" ),
-                       curCSSLeft = jQuery.css( elem, "left" ),
-                       calculatePosition = (position === "absolute" || position === "fixed") && jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1,
-                       props = {}, curPosition = {}, curTop, curLeft;
-
-               // need to be able to calculate position if either top or left is auto and position is either absolute or fixed
-               if ( calculatePosition ) {
-                       curPosition = curElem.position();
-                       curTop = curPosition.top;
-                       curLeft = curPosition.left;
-               } else {
-                       curTop = parseFloat( curCSSTop ) || 0;
-                       curLeft = parseFloat( curCSSLeft ) || 0;
-               }
-
-               if ( jQuery.isFunction( options ) ) {
-                       options = options.call( elem, i, curOffset );
-               }
-
-               if (options.top != null) {
-                       props.top = (options.top - curOffset.top) + curTop;
-               }
-               if (options.left != null) {
-                       props.left = (options.left - curOffset.left) + curLeft;
-               }
-
-               if ( "using" in options ) {
-                       options.using.call( elem, props );
-               } else {
-                       curElem.css( props );
-               }
-       }
-};
-
-
-jQuery.fn.extend({
-       position: function() {
-               if ( !this[0] ) {
-                       return null;
-               }
-
-               var elem = this[0],
-
-               // Get *real* offsetParent
-               offsetParent = this.offsetParent(),
-
-               // Get correct offsets
-               offset       = this.offset(),
-               parentOffset = rroot.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset();
-
-               // Subtract element margins
-               // note: when an element has margin: auto the offsetLeft and marginLeft
-               // are the same in Safari causing offset.left to incorrectly be 0
-               offset.top  -= parseFloat( jQuery.css(elem, "marginTop") ) || 0;
-               offset.left -= parseFloat( jQuery.css(elem, "marginLeft") ) || 0;
-
-               // Add offsetParent borders
-               parentOffset.top  += parseFloat( jQuery.css(offsetParent[0], "borderTopWidth") ) || 0;
-               parentOffset.left += parseFloat( jQuery.css(offsetParent[0], "borderLeftWidth") ) || 0;
-
-               // Subtract the two offsets
-               return {
-                       top:  offset.top  - parentOffset.top,
-                       left: offset.left - parentOffset.left
-               };
-       },
-
-       offsetParent: function() {
-               return this.map(function() {
-                       var offsetParent = this.offsetParent || document.body;
-                       while ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) {
-                               offsetParent = offsetParent.offsetParent;
-                       }
-                       return offsetParent;
-               });
-       }
-});
-
-
-// Create scrollLeft and scrollTop methods
-jQuery.each( ["Left", "Top"], function( i, name ) {
-       var method = "scroll" + name;
-
-       jQuery.fn[ method ] = function( val ) {
-               var elem, win;
-
-               if ( val === undefined ) {
-                       elem = this[ 0 ];
-
-                       if ( !elem ) {
-                               return null;
-                       }
-
-                       win = getWindow( elem );
-
-                       // Return the scroll offset
-                       return win ? ("pageXOffset" in win) ? win[ i ? "pageYOffset" : "pageXOffset" ] :
-                               jQuery.support.boxModel && win.document.documentElement[ method ] ||
-                                       win.document.body[ method ] :
-                               elem[ method ];
-               }
-
-               // Set the scroll offset
-               return this.each(function() {
-                       win = getWindow( this );
-
-                       if ( win ) {
-                               win.scrollTo(
-                                       !i ? val : jQuery( win ).scrollLeft(),
-                                        i ? val : jQuery( win ).scrollTop()
-                               );
-
-                       } else {
-                               this[ method ] = val;
-                       }
-               });
-       };
-});
-
-function getWindow( elem ) {
-       return jQuery.isWindow( elem ) ?
-               elem :
-               elem.nodeType === 9 ?
-                       elem.defaultView || elem.parentWindow :
-                       false;
-}
-
-
-
-
-// Create width, height, innerHeight, innerWidth, outerHeight and outerWidth methods
-jQuery.each([ "Height", "Width" ], function( i, name ) {
-
-       var type = name.toLowerCase();
-
-       // innerHeight and innerWidth
-       jQuery.fn[ "inner" + name ] = function() {
-               var elem = this[0];
-               return elem && elem.style ?
-                       parseFloat( jQuery.css( elem, type, "padding" ) ) :
-                       null;
-       };
-
-       // outerHeight and outerWidth
-       jQuery.fn[ "outer" + name ] = function( margin ) {
-               var elem = this[0];
-               return elem && elem.style ?
-                       parseFloat( jQuery.css( elem, type, margin ? "margin" : "border" ) ) :
-                       null;
-       };
-
-       jQuery.fn[ type ] = function( size ) {
-               // Get window width or height
-               var elem = this[0];
-               if ( !elem ) {
-                       return size == null ? null : this;
-               }
-
-               if ( jQuery.isFunction( size ) ) {
-                       return this.each(function( i ) {
-                               var self = jQuery( this );
-                               self[ type ]( size.call( this, i, self[ type ]() ) );
-                       });
-               }
-
-               if ( jQuery.isWindow( elem ) ) {
-                       // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
-                       // 3rd condition allows Nokia support, as it supports the docElem prop but not CSS1Compat
-                       var docElemProp = elem.document.documentElement[ "client" + name ],
-                               body = elem.document.body;
-                       return elem.document.compatMode === "CSS1Compat" && docElemProp ||
-                               body && body[ "client" + name ] || docElemProp;
-
-               // Get document width or height
-               } else if ( elem.nodeType === 9 ) {
-                       // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
-                       return Math.max(
-                               elem.documentElement["client" + name],
-                               elem.body["scroll" + name], elem.documentElement["scroll" + name],
-                               elem.body["offset" + name], elem.documentElement["offset" + name]
-                       );
-
-               // Get or set width or height on the element
-               } else if ( size === undefined ) {
-                       var orig = jQuery.css( elem, type ),
-                               ret = parseFloat( orig );
-
-                       return jQuery.isNaN( ret ) ? orig : ret;
-
-               // Set the width or height on the element (default to pixels if value is unitless)
-               } else {
-                       return this.css( type, typeof size === "string" ? size : size + "px" );
-               }
-       };
-
-});
-
-
-// Expose jQuery to the global object
-window.jQuery = window.$ = jQuery;
-})(window);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery-1.7.1.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery-1.7.1.js
deleted file mode 100644 (file)
index 8ccd0ea..0000000
+++ /dev/null
@@ -1,9266 +0,0 @@
-/*!
- * jQuery JavaScript Library v1.7.1
- * http://jquery.com/
- *
- * Copyright 2011, John Resig
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- * Copyright 2011, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- *
- * Date: Mon Nov 21 21:11:03 2011 -0500
- */
-(function( window, undefined ) {
-
-// Use the correct document accordingly with window argument (sandbox)
-var document = window.document,
-       navigator = window.navigator,
-       location = window.location;
-var jQuery = (function() {
-
-// Define a local copy of jQuery
-var jQuery = function( selector, context ) {
-               // The jQuery object is actually just the init constructor 'enhanced'
-               return new jQuery.fn.init( selector, context, rootjQuery );
-       },
-
-       // Map over jQuery in case of overwrite
-       _jQuery = window.jQuery,
-
-       // Map over the $ in case of overwrite
-       _$ = window.$,
-
-       // A central reference to the root jQuery(document)
-       rootjQuery,
-
-       // A simple way to check for HTML strings or ID strings
-       // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
-       quickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
-
-       // Check if a string has a non-whitespace character in it
-       rnotwhite = /\S/,
-
-       // Used for trimming whitespace
-       trimLeft = /^\s+/,
-       trimRight = /\s+$/,
-
-       // Match a standalone tag
-       rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
-
-       // JSON RegExp
-       rvalidchars = /^[\],:{}\s]*$/,
-       rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
-       rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
-       rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
-
-       // Useragent RegExp
-       rwebkit = /(webkit)[ \/]([\w.]+)/,
-       ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,
-       rmsie = /(msie) ([\w.]+)/,
-       rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
-
-       // Matches dashed string for camelizing
-       rdashAlpha = /-([a-z]|[0-9])/ig,
-       rmsPrefix = /^-ms-/,
-
-       // Used by jQuery.camelCase as callback to replace()
-       fcamelCase = function( all, letter ) {
-               return ( letter + "" ).toUpperCase();
-       },
-
-       // Keep a UserAgent string for use with jQuery.browser
-       userAgent = navigator.userAgent,
-
-       // For matching the engine and version of the browser
-       browserMatch,
-
-       // The deferred used on DOM ready
-       readyList,
-
-       // The ready event handler
-       DOMContentLoaded,
-
-       // Save a reference to some core methods
-       toString = Object.prototype.toString,
-       hasOwn = Object.prototype.hasOwnProperty,
-       push = Array.prototype.push,
-       slice = Array.prototype.slice,
-       trim = String.prototype.trim,
-       indexOf = Array.prototype.indexOf,
-
-       // [[Class]] -> type pairs
-       class2type = {};
-
-jQuery.fn = jQuery.prototype = {
-       constructor: jQuery,
-       init: function( selector, context, rootjQuery ) {
-               var match, elem, ret, doc;
-
-               // Handle $(""), $(null), or $(undefined)
-               if ( !selector ) {
-                       return this;
-               }
-
-               // Handle $(DOMElement)
-               if ( selector.nodeType ) {
-                       this.context = this[0] = selector;
-                       this.length = 1;
-                       return this;
-               }
-
-               // The body element only exists once, optimize finding it
-               if ( selector === "body" && !context && document.body ) {
-                       this.context = document;
-                       this[0] = document.body;
-                       this.selector = selector;
-                       this.length = 1;
-                       return this;
-               }
-
-               // Handle HTML strings
-               if ( typeof selector === "string" ) {
-                       // Are we dealing with HTML string or an ID?
-                       if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
-                               // Assume that strings that start and end with <> are HTML and skip the regex check
-                               match = [ null, selector, null ];
-
-                       } else {
-                               match = quickExpr.exec( selector );
-                       }
-
-                       // Verify a match, and that no context was specified for #id
-                       if ( match && (match[1] || !context) ) {
-
-                               // HANDLE: $(html) -> $(array)
-                               if ( match[1] ) {
-                                       context = context instanceof jQuery ? context[0] : context;
-                                       doc = ( context ? context.ownerDocument || context : document );
-
-                                       // If a single string is passed in and it's a single tag
-                                       // just do a createElement and skip the rest
-                                       ret = rsingleTag.exec( selector );
-
-                                       if ( ret ) {
-                                               if ( jQuery.isPlainObject( context ) ) {
-                                                       selector = [ document.createElement( ret[1] ) ];
-                                                       jQuery.fn.attr.call( selector, context, true );
-
-                                               } else {
-                                                       selector = [ doc.createElement( ret[1] ) ];
-                                               }
-
-                                       } else {
-                                               ret = jQuery.buildFragment( [ match[1] ], [ doc ] );
-                                               selector = ( ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment ).childNodes;
-                                       }
-
-                                       return jQuery.merge( this, selector );
-
-                               // HANDLE: $("#id")
-                               } else {
-                                       elem = document.getElementById( match[2] );
-
-                                       // Check parentNode to catch when Blackberry 4.6 returns
-                                       // nodes that are no longer in the document #6963
-                                       if ( elem && elem.parentNode ) {
-                                               // Handle the case where IE and Opera return items
-                                               // by name instead of ID
-                                               if ( elem.id !== match[2] ) {
-                                                       return rootjQuery.find( selector );
-                                               }
-
-                                               // Otherwise, we inject the element directly into the jQuery object
-                                               this.length = 1;
-                                               this[0] = elem;
-                                       }
-
-                                       this.context = document;
-                                       this.selector = selector;
-                                       return this;
-                               }
-
-                       // HANDLE: $(expr, $(...))
-                       } else if ( !context || context.jquery ) {
-                               return ( context || rootjQuery ).find( selector );
-
-                       // HANDLE: $(expr, context)
-                       // (which is just equivalent to: $(context).find(expr)
-                       } else {
-                               return this.constructor( context ).find( selector );
-                       }
-
-               // HANDLE: $(function)
-               // Shortcut for document ready
-               } else if ( jQuery.isFunction( selector ) ) {
-                       return rootjQuery.ready( selector );
-               }
-
-               if ( selector.selector !== undefined ) {
-                       this.selector = selector.selector;
-                       this.context = selector.context;
-               }
-
-               return jQuery.makeArray( selector, this );
-       },
-
-       // Start with an empty selector
-       selector: "",
-
-       // The current version of jQuery being used
-       jquery: "1.7.1",
-
-       // The default length of a jQuery object is 0
-       length: 0,
-
-       // The number of elements contained in the matched element set
-       size: function() {
-               return this.length;
-       },
-
-       toArray: function() {
-               return slice.call( this, 0 );
-       },
-
-       // Get the Nth element in the matched element set OR
-       // Get the whole matched element set as a clean array
-       get: function( num ) {
-               return num == null ?
-
-                       // Return a 'clean' array
-                       this.toArray() :
-
-                       // Return just the object
-                       ( num < 0 ? this[ this.length + num ] : this[ num ] );
-       },
-
-       // Take an array of elements and push it onto the stack
-       // (returning the new matched element set)
-       pushStack: function( elems, name, selector ) {
-               // Build a new jQuery matched element set
-               var ret = this.constructor();
-
-               if ( jQuery.isArray( elems ) ) {
-                       push.apply( ret, elems );
-
-               } else {
-                       jQuery.merge( ret, elems );
-               }
-
-               // Add the old object onto the stack (as a reference)
-               ret.prevObject = this;
-
-               ret.context = this.context;
-
-               if ( name === "find" ) {
-                       ret.selector = this.selector + ( this.selector ? " " : "" ) + selector;
-               } else if ( name ) {
-                       ret.selector = this.selector + "." + name + "(" + selector + ")";
-               }
-
-               // Return the newly-formed element set
-               return ret;
-       },
-
-       // Execute a callback for every element in the matched set.
-       // (You can seed the arguments with an array of args, but this is
-       // only used internally.)
-       each: function( callback, args ) {
-               return jQuery.each( this, callback, args );
-       },
-
-       ready: function( fn ) {
-               // Attach the listeners
-               jQuery.bindReady();
-
-               // Add the callback
-               readyList.add( fn );
-
-               return this;
-       },
-
-       eq: function( i ) {
-               i = +i;
-               return i === -1 ?
-                       this.slice( i ) :
-                       this.slice( i, i + 1 );
-       },
-
-       first: function() {
-               return this.eq( 0 );
-       },
-
-       last: function() {
-               return this.eq( -1 );
-       },
-
-       slice: function() {
-               return this.pushStack( slice.apply( this, arguments ),
-                       "slice", slice.call(arguments).join(",") );
-       },
-
-       map: function( callback ) {
-               return this.pushStack( jQuery.map(this, function( elem, i ) {
-                       return callback.call( elem, i, elem );
-               }));
-       },
-
-       end: function() {
-               return this.prevObject || this.constructor(null);
-       },
-
-       // For internal use only.
-       // Behaves like an Array's method, not like a jQuery method.
-       push: push,
-       sort: [].sort,
-       splice: [].splice
-};
-
-// Give the init function the jQuery prototype for later instantiation
-jQuery.fn.init.prototype = jQuery.fn;
-
-jQuery.extend = jQuery.fn.extend = function() {
-       var options, name, src, copy, copyIsArray, clone,
-               target = arguments[0] || {},
-               i = 1,
-               length = arguments.length,
-               deep = false;
-
-       // Handle a deep copy situation
-       if ( typeof target === "boolean" ) {
-               deep = target;
-               target = arguments[1] || {};
-               // skip the boolean and the target
-               i = 2;
-       }
-
-       // Handle case when target is a string or something (possible in deep copy)
-       if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
-               target = {};
-       }
-
-       // extend jQuery itself if only one argument is passed
-       if ( length === i ) {
-               target = this;
-               --i;
-       }
-
-       for ( ; i < length; i++ ) {
-               // Only deal with non-null/undefined values
-               if ( (options = arguments[ i ]) != null ) {
-                       // Extend the base object
-                       for ( name in options ) {
-                               src = target[ name ];
-                               copy = options[ name ];
-
-                               // Prevent never-ending loop
-                               if ( target === copy ) {
-                                       continue;
-                               }
-
-                               // Recurse if we're merging plain objects or arrays
-                               if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
-                                       if ( copyIsArray ) {
-                                               copyIsArray = false;
-                                               clone = src && jQuery.isArray(src) ? src : [];
-
-                                       } else {
-                                               clone = src && jQuery.isPlainObject(src) ? src : {};
-                                       }
-
-                                       // Never move original objects, clone them
-                                       target[ name ] = jQuery.extend( deep, clone, copy );
-
-                               // Don't bring in undefined values
-                               } else if ( copy !== undefined ) {
-                                       target[ name ] = copy;
-                               }
-                       }
-               }
-       }
-
-       // Return the modified object
-       return target;
-};
-
-jQuery.extend({
-       noConflict: function( deep ) {
-               if ( window.$ === jQuery ) {
-                       window.$ = _$;
-               }
-
-               if ( deep && window.jQuery === jQuery ) {
-                       window.jQuery = _jQuery;
-               }
-
-               return jQuery;
-       },
-
-       // Is the DOM ready to be used? Set to true once it occurs.
-       isReady: false,
-
-       // A counter to track how many items to wait for before
-       // the ready event fires. See #6781
-       readyWait: 1,
-
-       // Hold (or release) the ready event
-       holdReady: function( hold ) {
-               if ( hold ) {
-                       jQuery.readyWait++;
-               } else {
-                       jQuery.ready( true );
-               }
-       },
-
-       // Handle when the DOM is ready
-       ready: function( wait ) {
-               // Either a released hold or an DOMready/load event and not yet ready
-               if ( (wait === true && !--jQuery.readyWait) || (wait !== true && !jQuery.isReady) ) {
-                       // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
-                       if ( !document.body ) {
-                               return setTimeout( jQuery.ready, 1 );
-                       }
-
-                       // Remember that the DOM is ready
-                       jQuery.isReady = true;
-
-                       // If a normal DOM Ready event fired, decrement, and wait if need be
-                       if ( wait !== true && --jQuery.readyWait > 0 ) {
-                               return;
-                       }
-
-                       // If there are functions bound, to execute
-                       readyList.fireWith( document, [ jQuery ] );
-
-                       // Trigger any bound ready events
-                       if ( jQuery.fn.trigger ) {
-                               jQuery( document ).trigger( "ready" ).off( "ready" );
-                       }
-               }
-       },
-
-       bindReady: function() {
-               if ( readyList ) {
-                       return;
-               }
-
-               readyList = jQuery.Callbacks( "once memory" );
-
-               // Catch cases where $(document).ready() is called after the
-               // browser event has already occurred.
-               if ( document.readyState === "complete" ) {
-                       // Handle it asynchronously to allow scripts the opportunity to delay ready
-                       return setTimeout( jQuery.ready, 1 );
-               }
-
-               // Mozilla, Opera and webkit nightlies currently support this event
-               if ( document.addEventListener ) {
-                       // Use the handy event callback
-                       document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
-
-                       // A fallback to window.onload, that will always work
-                       window.addEventListener( "load", jQuery.ready, false );
-
-               // If IE event model is used
-               } else if ( document.attachEvent ) {
-                       // ensure firing before onload,
-                       // maybe late but safe also for iframes
-                       document.attachEvent( "onreadystatechange", DOMContentLoaded );
-
-                       // A fallback to window.onload, that will always work
-                       window.attachEvent( "onload", jQuery.ready );
-
-                       // If IE and not a frame
-                       // continually check to see if the document is ready
-                       var toplevel = false;
-
-                       try {
-                               toplevel = window.frameElement == null;
-                       } catch(e) {}
-
-                       if ( document.documentElement.doScroll && toplevel ) {
-                               doScrollCheck();
-                       }
-               }
-       },
-
-       // See test/unit/core.js for details concerning isFunction.
-       // Since version 1.3, DOM methods and functions like alert
-       // aren't supported. They return false on IE (#2968).
-       isFunction: function( obj ) {
-               return jQuery.type(obj) === "function";
-       },
-
-       isArray: Array.isArray || function( obj ) {
-               return jQuery.type(obj) === "array";
-       },
-
-       // A crude way of determining if an object is a window
-       isWindow: function( obj ) {
-               return obj && typeof obj === "object" && "setInterval" in obj;
-       },
-
-       isNumeric: function( obj ) {
-               return !isNaN( parseFloat(obj) ) && isFinite( obj );
-       },
-
-       type: function( obj ) {
-               return obj == null ?
-                       String( obj ) :
-                       class2type[ toString.call(obj) ] || "object";
-       },
-
-       isPlainObject: function( obj ) {
-               // Must be an Object.
-               // Because of IE, we also have to check the presence of the constructor property.
-               // Make sure that DOM nodes and window objects don't pass through, as well
-               if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
-                       return false;
-               }
-
-               try {
-                       // Not own constructor property must be Object
-                       if ( obj.constructor &&
-                               !hasOwn.call(obj, "constructor") &&
-                               !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
-                               return false;
-                       }
-               } catch ( e ) {
-                       // IE8,9 Will throw exceptions on certain host objects #9897
-                       return false;
-               }
-
-               // Own properties are enumerated firstly, so to speed up,
-               // if last one is own, then all properties are own.
-
-               var key;
-               for ( key in obj ) {}
-
-               return key === undefined || hasOwn.call( obj, key );
-       },
-
-       isEmptyObject: function( obj ) {
-               for ( var name in obj ) {
-                       return false;
-               }
-               return true;
-       },
-
-       error: function( msg ) {
-               throw new Error( msg );
-       },
-
-       parseJSON: function( data ) {
-               if ( typeof data !== "string" || !data ) {
-                       return null;
-               }
-
-               // Make sure leading/trailing whitespace is removed (IE can't handle it)
-               data = jQuery.trim( data );
-
-               // Attempt to parse using the native JSON parser first
-               if ( window.JSON && window.JSON.parse ) {
-                       return window.JSON.parse( data );
-               }
-
-               // Make sure the incoming data is actual JSON
-               // Logic borrowed from http://json.org/json2.js
-               if ( rvalidchars.test( data.replace( rvalidescape, "@" )
-                       .replace( rvalidtokens, "]" )
-                       .replace( rvalidbraces, "")) ) {
-
-                       return ( new Function( "return " + data ) )();
-
-               }
-               jQuery.error( "Invalid JSON: " + data );
-       },
-
-       // Cross-browser xml parsing
-       parseXML: function( data ) {
-               var xml, tmp;
-               try {
-                       if ( window.DOMParser ) { // Standard
-                               tmp = new DOMParser();
-                               xml = tmp.parseFromString( data , "text/xml" );
-                       } else { // IE
-                               xml = new ActiveXObject( "Microsoft.XMLDOM" );
-                               xml.async = "false";
-                               xml.loadXML( data );
-                       }
-               } catch( e ) {
-                       xml = undefined;
-               }
-               if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
-                       jQuery.error( "Invalid XML: " + data );
-               }
-               return xml;
-       },
-
-       noop: function() {},
-
-       // Evaluates a script in a global context
-       // Workarounds based on findings by Jim Driscoll
-       // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
-       globalEval: function( data ) {
-               if ( data && rnotwhite.test( data ) ) {
-                       // We use execScript on Internet Explorer
-                       // We use an anonymous function so that context is window
-                       // rather than jQuery in Firefox
-                       ( window.execScript || function( data ) {
-                               window[ "eval" ].call( window, data );
-                       } )( data );
-               }
-       },
-
-       // Convert dashed to camelCase; used by the css and data modules
-       // Microsoft forgot to hump their vendor prefix (#9572)
-       camelCase: function( string ) {
-               return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
-       },
-
-       nodeName: function( elem, name ) {
-               return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
-       },
-
-       // args is for internal usage only
-       each: function( object, callback, args ) {
-               var name, i = 0,
-                       length = object.length,
-                       isObj = length === undefined || jQuery.isFunction( object );
-
-               if ( args ) {
-                       if ( isObj ) {
-                               for ( name in object ) {
-                                       if ( callback.apply( object[ name ], args ) === false ) {
-                                               break;
-                                       }
-                               }
-                       } else {
-                               for ( ; i < length; ) {
-                                       if ( callback.apply( object[ i++ ], args ) === false ) {
-                                               break;
-                                       }
-                               }
-                       }
-
-               // A special, fast, case for the most common use of each
-               } else {
-                       if ( isObj ) {
-                               for ( name in object ) {
-                                       if ( callback.call( object[ name ], name, object[ name ] ) === false ) {
-                                               break;
-                                       }
-                               }
-                       } else {
-                               for ( ; i < length; ) {
-                                       if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) {
-                                               break;
-                                       }
-                               }
-                       }
-               }
-
-               return object;
-       },
-
-       // Use native String.trim function wherever possible
-       trim: trim ?
-               function( text ) {
-                       return text == null ?
-                               "" :
-                               trim.call( text );
-               } :
-
-               // Otherwise use our own trimming functionality
-               function( text ) {
-                       return text == null ?
-                               "" :
-                               text.toString().replace( trimLeft, "" ).replace( trimRight, "" );
-               },
-
-       // results is for internal usage only
-       makeArray: function( array, results ) {
-               var ret = results || [];
-
-               if ( array != null ) {
-                       // The window, strings (and functions) also have 'length'
-                       // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
-                       var type = jQuery.type( array );
-
-                       if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) {
-                               push.call( ret, array );
-                       } else {
-                               jQuery.merge( ret, array );
-                       }
-               }
-
-               return ret;
-       },
-
-       inArray: function( elem, array, i ) {
-               var len;
-
-               if ( array ) {
-                       if ( indexOf ) {
-                               return indexOf.call( array, elem, i );
-                       }
-
-                       len = array.length;
-                       i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;
-
-                       for ( ; i < len; i++ ) {
-                               // Skip accessing in sparse arrays
-                               if ( i in array && array[ i ] === elem ) {
-                                       return i;
-                               }
-                       }
-               }
-
-               return -1;
-       },
-
-       merge: function( first, second ) {
-               var i = first.length,
-                       j = 0;
-
-               if ( typeof second.length === "number" ) {
-                       for ( var l = second.length; j < l; j++ ) {
-                               first[ i++ ] = second[ j ];
-                       }
-
-               } else {
-                       while ( second[j] !== undefined ) {
-                               first[ i++ ] = second[ j++ ];
-                       }
-               }
-
-               first.length = i;
-
-               return first;
-       },
-
-       grep: function( elems, callback, inv ) {
-               var ret = [], retVal;
-               inv = !!inv;
-
-               // Go through the array, only saving the items
-               // that pass the validator function
-               for ( var i = 0, length = elems.length; i < length; i++ ) {
-                       retVal = !!callback( elems[ i ], i );
-                       if ( inv !== retVal ) {
-                               ret.push( elems[ i ] );
-                       }
-               }
-
-               return ret;
-       },
-
-       // arg is for internal usage only
-       map: function( elems, callback, arg ) {
-               var value, key, ret = [],
-                       i = 0,
-                       length = elems.length,
-                       // jquery objects are treated as arrays
-                       isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ;
-
-               // Go through the array, translating each of the items to their
-               if ( isArray ) {
-                       for ( ; i < length; i++ ) {
-                               value = callback( elems[ i ], i, arg );
-
-                               if ( value != null ) {
-                                       ret[ ret.length ] = value;
-                               }
-                       }
-
-               // Go through every key on the object,
-               } else {
-                       for ( key in elems ) {
-                               value = callback( elems[ key ], key, arg );
-
-                               if ( value != null ) {
-                                       ret[ ret.length ] = value;
-                               }
-                       }
-               }
-
-               // Flatten any nested arrays
-               return ret.concat.apply( [], ret );
-       },
-
-       // A global GUID counter for objects
-       guid: 1,
-
-       // Bind a function to a context, optionally partially applying any
-       // arguments.
-       proxy: function( fn, context ) {
-               if ( typeof context === "string" ) {
-                       var tmp = fn[ context ];
-                       context = fn;
-                       fn = tmp;
-               }
-
-               // Quick check to determine if target is callable, in the spec
-               // this throws a TypeError, but we will just return undefined.
-               if ( !jQuery.isFunction( fn ) ) {
-                       return undefined;
-               }
-
-               // Simulated bind
-               var args = slice.call( arguments, 2 ),
-                       proxy = function() {
-                               return fn.apply( context, args.concat( slice.call( arguments ) ) );
-                       };
-
-               // Set the guid of unique handler to the same of original handler, so it can be removed
-               proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;
-
-               return proxy;
-       },
-
-       // Mutifunctional method to get and set values to a collection
-       // The value/s can optionally be executed if it's a function
-       access: function( elems, key, value, exec, fn, pass ) {
-               var length = elems.length;
-
-               // Setting many attributes
-               if ( typeof key === "object" ) {
-                       for ( var k in key ) {
-                               jQuery.access( elems, k, key[k], exec, fn, value );
-                       }
-                       return elems;
-               }
-
-               // Setting one attribute
-               if ( value !== undefined ) {
-                       // Optionally, function values get executed if exec is true
-                       exec = !pass && exec && jQuery.isFunction(value);
-
-                       for ( var i = 0; i < length; i++ ) {
-                               fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
-                       }
-
-                       return elems;
-               }
-
-               // Getting an attribute
-               return length ? fn( elems[0], key ) : undefined;
-       },
-
-       now: function() {
-               return ( new Date() ).getTime();
-       },
-
-       // Use of jQuery.browser is frowned upon.
-       // More details: http://docs.jquery.com/Utilities/jQuery.browser
-       uaMatch: function( ua ) {
-               ua = ua.toLowerCase();
-
-               var match = rwebkit.exec( ua ) ||
-                       ropera.exec( ua ) ||
-                       rmsie.exec( ua ) ||
-                       ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||
-                       [];
-
-               return { browser: match[1] || "", version: match[2] || "0" };
-       },
-
-       sub: function() {
-               function jQuerySub( selector, context ) {
-                       return new jQuerySub.fn.init( selector, context );
-               }
-               jQuery.extend( true, jQuerySub, this );
-               jQuerySub.superclass = this;
-               jQuerySub.fn = jQuerySub.prototype = this();
-               jQuerySub.fn.constructor = jQuerySub;
-               jQuerySub.sub = this.sub;
-               jQuerySub.fn.init = function init( selector, context ) {
-                       if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {
-                               context = jQuerySub( context );
-                       }
-
-                       return jQuery.fn.init.call( this, selector, context, rootjQuerySub );
-               };
-               jQuerySub.fn.init.prototype = jQuerySub.fn;
-               var rootjQuerySub = jQuerySub(document);
-               return jQuerySub;
-       },
-
-       browser: {}
-});
-
-// Populate the class2type map
-jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {
-       class2type[ "[object " + name + "]" ] = name.toLowerCase();
-});
-
-browserMatch = jQuery.uaMatch( userAgent );
-if ( browserMatch.browser ) {
-       jQuery.browser[ browserMatch.browser ] = true;
-       jQuery.browser.version = browserMatch.version;
-}
-
-// Deprecated, use jQuery.browser.webkit instead
-if ( jQuery.browser.webkit ) {
-       jQuery.browser.safari = true;
-}
-
-// IE doesn't match non-breaking spaces with \s
-if ( rnotwhite.test( "\xA0" ) ) {
-       trimLeft = /^[\s\xA0]+/;
-       trimRight = /[\s\xA0]+$/;
-}
-
-// All jQuery objects should point back to these
-rootjQuery = jQuery(document);
-
-// Cleanup functions for the document ready method
-if ( document.addEventListener ) {
-       DOMContentLoaded = function() {
-               document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
-               jQuery.ready();
-       };
-
-} else if ( document.attachEvent ) {
-       DOMContentLoaded = function() {
-               // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
-               if ( document.readyState === "complete" ) {
-                       document.detachEvent( "onreadystatechange", DOMContentLoaded );
-                       jQuery.ready();
-               }
-       };
-}
-
-// The DOM ready check for Internet Explorer
-function doScrollCheck() {
-       if ( jQuery.isReady ) {
-               return;
-       }
-
-       try {
-               // If IE is used, use the trick by Diego Perini
-               // http://javascript.nwbox.com/IEContentLoaded/
-               document.documentElement.doScroll("left");
-       } catch(e) {
-               setTimeout( doScrollCheck, 1 );
-               return;
-       }
-
-       // and execute any waiting functions
-       jQuery.ready();
-}
-
-return jQuery;
-
-})();
-
-
-// String to Object flags format cache
-var flagsCache = {};
-
-// Convert String-formatted flags into Object-formatted ones and store in cache
-function createFlags( flags ) {
-       var object = flagsCache[ flags ] = {},
-               i, length;
-       flags = flags.split( /\s+/ );
-       for ( i = 0, length = flags.length; i < length; i++ ) {
-               object[ flags[i] ] = true;
-       }
-       return object;
-}
-
-/*
- * Create a callback list using the following parameters:
- *
- *     flags:  an optional list of space-separated flags that will change how
- *                     the callback list behaves
- *
- * By default a callback list will act like an event callback list and can be
- * "fired" multiple times.
- *
- * Possible flags:
- *
- *     once:                   will ensure the callback list can only be fired once (like a Deferred)
- *
- *     memory:                 will keep track of previous values and will call any callback added
- *                                     after the list has been fired right away with the latest "memorized"
- *                                     values (like a Deferred)
- *
- *     unique:                 will ensure a callback can only be added once (no duplicate in the list)
- *
- *     stopOnFalse:    interrupt callings when a callback returns false
- *
- */
-jQuery.Callbacks = function( flags ) {
-
-       // Convert flags from String-formatted to Object-formatted
-       // (we check in cache first)
-       flags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {};
-
-       var // Actual callback list
-               list = [],
-               // Stack of fire calls for repeatable lists
-               stack = [],
-               // Last fire value (for non-forgettable lists)
-               memory,
-               // Flag to know if list is currently firing
-               firing,
-               // First callback to fire (used internally by add and fireWith)
-               firingStart,
-               // End of the loop when firing
-               firingLength,
-               // Index of currently firing callback (modified by remove if needed)
-               firingIndex,
-               // Add one or several callbacks to the list
-               add = function( args ) {
-                       var i,
-                               length,
-                               elem,
-                               type,
-                               actual;
-                       for ( i = 0, length = args.length; i < length; i++ ) {
-                               elem = args[ i ];
-                               type = jQuery.type( elem );
-                               if ( type === "array" ) {
-                                       // Inspect recursively
-                                       add( elem );
-                               } else if ( type === "function" ) {
-                                       // Add if not in unique mode and callback is not in
-                                       if ( !flags.unique || !self.has( elem ) ) {
-                                               list.push( elem );
-                                       }
-                               }
-                       }
-               },
-               // Fire callbacks
-               fire = function( context, args ) {
-                       args = args || [];
-                       memory = !flags.memory || [ context, args ];
-                       firing = true;
-                       firingIndex = firingStart || 0;
-                       firingStart = 0;
-                       firingLength = list.length;
-                       for ( ; list && firingIndex < firingLength; firingIndex++ ) {
-                               if ( list[ firingIndex ].apply( context, args ) === false && flags.stopOnFalse ) {
-                                       memory = true; // Mark as halted
-                                       break;
-                               }
-                       }
-                       firing = false;
-                       if ( list ) {
-                               if ( !flags.once ) {
-                                       if ( stack && stack.length ) {
-                                               memory = stack.shift();
-                                               self.fireWith( memory[ 0 ], memory[ 1 ] );
-                                       }
-                               } else if ( memory === true ) {
-                                       self.disable();
-                               } else {
-                                       list = [];
-                               }
-                       }
-               },
-               // Actual Callbacks object
-               self = {
-                       // Add a callback or a collection of callbacks to the list
-                       add: function() {
-                               if ( list ) {
-                                       var length = list.length;
-                                       add( arguments );
-                                       // Do we need to add the callbacks to the
-                                       // current firing batch?
-                                       if ( firing ) {
-                                               firingLength = list.length;
-                                       // With memory, if we're not firing then
-                                       // we should call right away, unless previous
-                                       // firing was halted (stopOnFalse)
-                                       } else if ( memory && memory !== true ) {
-                                               firingStart = length;
-                                               fire( memory[ 0 ], memory[ 1 ] );
-                                       }
-                               }
-                               return this;
-                       },
-                       // Remove a callback from the list
-                       remove: function() {
-                               if ( list ) {
-                                       var args = arguments,
-                                               argIndex = 0,
-                                               argLength = args.length;
-                                       for ( ; argIndex < argLength ; argIndex++ ) {
-                                               for ( var i = 0; i < list.length; i++ ) {
-                                                       if ( args[ argIndex ] === list[ i ] ) {
-                                                               // Handle firingIndex and firingLength
-                                                               if ( firing ) {
-                                                                       if ( i <= firingLength ) {
-                                                                               firingLength--;
-                                                                               if ( i <= firingIndex ) {
-                                                                                       firingIndex--;
-                                                                               }
-                                                                       }
-                                                               }
-                                                               // Remove the element
-                                                               list.splice( i--, 1 );
-                                                               // If we have some unicity property then
-                                                               // we only need to do this once
-                                                               if ( flags.unique ) {
-                                                                       break;
-                                                               }
-                                                       }
-                                               }
-                                       }
-                               }
-                               return this;
-                       },
-                       // Control if a given callback is in the list
-                       has: function( fn ) {
-                               if ( list ) {
-                                       var i = 0,
-                                               length = list.length;
-                                       for ( ; i < length; i++ ) {
-                                               if ( fn === list[ i ] ) {
-                                                       return true;
-                                               }
-                                       }
-                               }
-                               return false;
-                       },
-                       // Remove all callbacks from the list
-                       empty: function() {
-                               list = [];
-                               return this;
-                       },
-                       // Have the list do nothing anymore
-                       disable: function() {
-                               list = stack = memory = undefined;
-                               return this;
-                       },
-                       // Is it disabled?
-                       disabled: function() {
-                               return !list;
-                       },
-                       // Lock the list in its current state
-                       lock: function() {
-                               stack = undefined;
-                               if ( !memory || memory === true ) {
-                                       self.disable();
-                               }
-                               return this;
-                       },
-                       // Is it locked?
-                       locked: function() {
-                               return !stack;
-                       },
-                       // Call all callbacks with the given context and arguments
-                       fireWith: function( context, args ) {
-                               if ( stack ) {
-                                       if ( firing ) {
-                                               if ( !flags.once ) {
-                                                       stack.push( [ context, args ] );
-                                               }
-                                       } else if ( !( flags.once && memory ) ) {
-                                               fire( context, args );
-                                       }
-                               }
-                               return this;
-                       },
-                       // Call all the callbacks with the given arguments
-                       fire: function() {
-                               self.fireWith( this, arguments );
-                               return this;
-                       },
-                       // To know if the callbacks have already been called at least once
-                       fired: function() {
-                               return !!memory;
-                       }
-               };
-
-       return self;
-};
-
-
-
-
-var // Static reference to slice
-       sliceDeferred = [].slice;
-
-jQuery.extend({
-
-       Deferred: function( func ) {
-               var doneList = jQuery.Callbacks( "once memory" ),
-                       failList = jQuery.Callbacks( "once memory" ),
-                       progressList = jQuery.Callbacks( "memory" ),
-                       state = "pending",
-                       lists = {
-                               resolve: doneList,
-                               reject: failList,
-                               notify: progressList
-                       },
-                       promise = {
-                               done: doneList.add,
-                               fail: failList.add,
-                               progress: progressList.add,
-
-                               state: function() {
-                                       return state;
-                               },
-
-                               // Deprecated
-                               isResolved: doneList.fired,
-                               isRejected: failList.fired,
-
-                               then: function( doneCallbacks, failCallbacks, progressCallbacks ) {
-                                       deferred.done( doneCallbacks ).fail( failCallbacks ).progress( progressCallbacks );
-                                       return this;
-                               },
-                               always: function() {
-                                       deferred.done.apply( deferred, arguments ).fail.apply( deferred, arguments );
-                                       return this;
-                               },
-                               pipe: function( fnDone, fnFail, fnProgress ) {
-                                       return jQuery.Deferred(function( newDefer ) {
-                                               jQuery.each( {
-                                                       done: [ fnDone, "resolve" ],
-                                                       fail: [ fnFail, "reject" ],
-                                                       progress: [ fnProgress, "notify" ]
-                                               }, function( handler, data ) {
-                                                       var fn = data[ 0 ],
-                                                               action = data[ 1 ],
-                                                               returned;
-                                                       if ( jQuery.isFunction( fn ) ) {
-                                                               deferred[ handler ](function() {
-                                                                       returned = fn.apply( this, arguments );
-                                                                       if ( returned && jQuery.isFunction( returned.promise ) ) {
-                                                                               returned.promise().then( newDefer.resolve, newDefer.reject, newDefer.notify );
-                                                                       } else {
-                                                                               newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] );
-                                                                       }
-                                                               });
-                                                       } else {
-                                                               deferred[ handler ]( newDefer[ action ] );
-                                                       }
-                                               });
-                                       }).promise();
-                               },
-                               // Get a promise for this deferred
-                               // If obj is provided, the promise aspect is added to the object
-                               promise: function( obj ) {
-                                       if ( obj == null ) {
-                                               obj = promise;
-                                       } else {
-                                               for ( var key in promise ) {
-                                                       obj[ key ] = promise[ key ];
-                                               }
-                                       }
-                                       return obj;
-                               }
-                       },
-                       deferred = promise.promise({}),
-                       key;
-
-               for ( key in lists ) {
-                       deferred[ key ] = lists[ key ].fire;
-                       deferred[ key + "With" ] = lists[ key ].fireWith;
-               }
-
-               // Handle state
-               deferred.done( function() {
-                       state = "resolved";
-               }, failList.disable, progressList.lock ).fail( function() {
-                       state = "rejected";
-               }, doneList.disable, progressList.lock );
-
-               // Call given func if any
-               if ( func ) {
-                       func.call( deferred, deferred );
-               }
-
-               // All done!
-               return deferred;
-       },
-
-       // Deferred helper
-       when: function( firstParam ) {
-               var args = sliceDeferred.call( arguments, 0 ),
-                       i = 0,
-                       length = args.length,
-                       pValues = new Array( length ),
-                       count = length,
-                       pCount = length,
-                       deferred = length <= 1 && firstParam && jQuery.isFunction( firstParam.promise ) ?
-                               firstParam :
-                               jQuery.Deferred(),
-                       promise = deferred.promise();
-               function resolveFunc( i ) {
-                       return function( value ) {
-                               args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
-                               if ( !( --count ) ) {
-                                       deferred.resolveWith( deferred, args );
-                               }
-                       };
-               }
-               function progressFunc( i ) {
-                       return function( value ) {
-                               pValues[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
-                               deferred.notifyWith( promise, pValues );
-                       };
-               }
-               if ( length > 1 ) {
-                       for ( ; i < length; i++ ) {
-                               if ( args[ i ] && args[ i ].promise && jQuery.isFunction( args[ i ].promise ) ) {
-                                       args[ i ].promise().then( resolveFunc(i), deferred.reject, progressFunc(i) );
-                               } else {
-                                       --count;
-                               }
-                       }
-                       if ( !count ) {
-                               deferred.resolveWith( deferred, args );
-                       }
-               } else if ( deferred !== firstParam ) {
-                       deferred.resolveWith( deferred, length ? [ firstParam ] : [] );
-               }
-               return promise;
-       }
-});
-
-
-
-
-jQuery.support = (function() {
-
-       var support,
-               all,
-               a,
-               select,
-               opt,
-               input,
-               marginDiv,
-               fragment,
-               tds,
-               events,
-               eventName,
-               i,
-               isSupported,
-               div = document.createElement( "div" ),
-               documentElement = document.documentElement;
-
-       // Preliminary tests
-       div.setAttribute("className", "t");
-       div.innerHTML = "   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
-
-       all = div.getElementsByTagName( "*" );
-       a = div.getElementsByTagName( "a" )[ 0 ];
-
-       // Can't get basic test support
-       if ( !all || !all.length || !a ) {
-               return {};
-       }
-
-       // First batch of supports tests
-       select = document.createElement( "select" );
-       opt = select.appendChild( document.createElement("option") );
-       input = div.getElementsByTagName( "input" )[ 0 ];
-
-       support = {
-               // IE strips leading whitespace when .innerHTML is used
-               leadingWhitespace: ( div.firstChild.nodeType === 3 ),
-
-               // Make sure that tbody elements aren't automatically inserted
-               // IE will insert them into empty tables
-               tbody: !div.getElementsByTagName("tbody").length,
-
-               // Make sure that link elements get serialized correctly by innerHTML
-               // This requires a wrapper element in IE
-               htmlSerialize: !!div.getElementsByTagName("link").length,
-
-               // Get the style information from getAttribute
-               // (IE uses .cssText instead)
-               style: /top/.test( a.getAttribute("style") ),
-
-               // Make sure that URLs aren't manipulated
-               // (IE normalizes it by default)
-               hrefNormalized: ( a.getAttribute("href") === "/a" ),
-
-               // Make sure that element opacity exists
-               // (IE uses filter instead)
-               // Use a regex to work around a WebKit issue. See #5145
-               opacity: /^0.55/.test( a.style.opacity ),
-
-               // Verify style float existence
-               // (IE uses styleFloat instead of cssFloat)
-               cssFloat: !!a.style.cssFloat,
-
-               // Make sure that if no value is specified for a checkbox
-               // that it defaults to "on".
-               // (WebKit defaults to "" instead)
-               checkOn: ( input.value === "on" ),
-
-               // Make sure that a selected-by-default option has a working selected property.
-               // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
-               optSelected: opt.selected,
-
-               // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
-               getSetAttribute: div.className !== "t",
-
-               // Tests for enctype support on a form(#6743)
-               enctype: !!document.createElement("form").enctype,
-
-               // Makes sure cloning an html5 element does not cause problems
-               // Where outerHTML is undefined, this still works
-               html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav></:nav>",
-
-               // Will be defined later
-               submitBubbles: true,
-               changeBubbles: true,
-               focusinBubbles: false,
-               deleteExpando: true,
-               noCloneEvent: true,
-               inlineBlockNeedsLayout: false,
-               shrinkWrapBlocks: false,
-               reliableMarginRight: true
-       };
-
-       // Make sure checked status is properly cloned
-       input.checked = true;
-       support.noCloneChecked = input.cloneNode( true ).checked;
-
-       // Make sure that the options inside disabled selects aren't marked as disabled
-       // (WebKit marks them as disabled)
-       select.disabled = true;
-       support.optDisabled = !opt.disabled;
-
-       // Test to see if it's possible to delete an expando from an element
-       // Fails in Internet Explorer
-       try {
-               delete div.test;
-       } catch( e ) {
-               support.deleteExpando = false;
-       }
-
-       if ( !div.addEventListener && div.attachEvent && div.fireEvent ) {
-               div.attachEvent( "onclick", function() {
-                       // Cloning a node shouldn't copy over any
-                       // bound event handlers (IE does this)
-                       support.noCloneEvent = false;
-               });
-               div.cloneNode( true ).fireEvent( "onclick" );
-       }
-
-       // Check if a radio maintains its value
-       // after being appended to the DOM
-       input = document.createElement("input");
-       input.value = "t";
-       input.setAttribute("type", "radio");
-       support.radioValue = input.value === "t";
-
-       input.setAttribute("checked", "checked");
-       div.appendChild( input );
-       fragment = document.createDocumentFragment();
-       fragment.appendChild( div.lastChild );
-
-       // WebKit doesn't clone checked state correctly in fragments
-       support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;
-
-       // Check if a disconnected checkbox will retain its checked
-       // value of true after appended to the DOM (IE6/7)
-       support.appendChecked = input.checked;
-
-       fragment.removeChild( input );
-       fragment.appendChild( div );
-
-       div.innerHTML = "";
-
-       // Check if div with explicit width and no margin-right incorrectly
-       // gets computed margin-right based on width of container. For more
-       // info see bug #3333
-       // Fails in WebKit before Feb 2011 nightlies
-       // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
-       if ( window.getComputedStyle ) {
-               marginDiv = document.createElement( "div" );
-               marginDiv.style.width = "0";
-               marginDiv.style.marginRight = "0";
-               div.style.width = "2px";
-               div.appendChild( marginDiv );
-               support.reliableMarginRight =
-                       ( parseInt( ( window.getComputedStyle( marginDiv, null ) || { marginRight: 0 } ).marginRight, 10 ) || 0 ) === 0;
-       }
-
-       // Technique from Juriy Zaytsev
-       // http://perfectionkills.com/detecting-event-support-without-browser-sniffing/
-       // We only care about the case where non-standard event systems
-       // are used, namely in IE. Short-circuiting here helps us to
-       // avoid an eval call (in setAttribute) which can cause CSP
-       // to go haywire. See: https://developer.mozilla.org/en/Security/CSP
-       if ( div.attachEvent ) {
-               for( i in {
-                       submit: 1,
-                       change: 1,
-                       focusin: 1
-               }) {
-                       eventName = "on" + i;
-                       isSupported = ( eventName in div );
-                       if ( !isSupported ) {
-                               div.setAttribute( eventName, "return;" );
-                               isSupported = ( typeof div[ eventName ] === "function" );
-                       }
-                       support[ i + "Bubbles" ] = isSupported;
-               }
-       }
-
-       fragment.removeChild( div );
-
-       // Null elements to avoid leaks in IE
-       fragment = select = opt = marginDiv = div = input = null;
-
-       // Run tests that need a body at doc ready
-       jQuery(function() {
-               var container, outer, inner, table, td, offsetSupport,
-                       conMarginTop, ptlm, vb, style, html,
-                       body = document.getElementsByTagName("body")[0];
-
-               if ( !body ) {
-                       // Return for frameset docs that don't have a body
-                       return;
-               }
-
-               conMarginTop = 1;
-               ptlm = "position:absolute;top:0;left:0;width:1px;height:1px;margin:0;";
-               vb = "visibility:hidden;border:0;";
-               style = "style='" + ptlm + "border:5px solid #000;padding:0;'";
-               html = "<div " + style + "><div></div></div>" +
-                       "<table " + style + " cellpadding='0' cellspacing='0'>" +
-                       "<tr><td></td></tr></table>";
-
-               container = document.createElement("div");
-               container.style.cssText = vb + "width:0;height:0;position:static;top:0;margin-top:" + conMarginTop + "px";
-               body.insertBefore( container, body.firstChild );
-
-               // Construct the test element
-               div = document.createElement("div");
-               container.appendChild( div );
-
-               // Check if table cells still have offsetWidth/Height when they are set
-               // to display:none and there are still other visible table cells in a
-               // table row; if so, offsetWidth/Height are not reliable for use when
-               // determining if an element has been hidden directly using
-               // display:none (it is still safe to use offsets if a parent element is
-               // hidden; don safety goggles and see bug #4512 for more information).
-               // (only IE 8 fails this test)
-               div.innerHTML = "<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";
-               tds = div.getElementsByTagName( "td" );
-               isSupported = ( tds[ 0 ].offsetHeight === 0 );
-
-               tds[ 0 ].style.display = "";
-               tds[ 1 ].style.display = "none";
-
-               // Check if empty table cells still have offsetWidth/Height
-               // (IE <= 8 fail this test)
-               support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 );
-
-               // Figure out if the W3C box model works as expected
-               div.innerHTML = "";
-               div.style.width = div.style.paddingLeft = "1px";
-               jQuery.boxModel = support.boxModel = div.offsetWidth === 2;
-
-               if ( typeof div.style.zoom !== "undefined" ) {
-                       // Check if natively block-level elements act like inline-block
-                       // elements when setting their display to 'inline' and giving
-                       // them layout
-                       // (IE < 8 does this)
-                       div.style.display = "inline";
-                       div.style.zoom = 1;
-                       support.inlineBlockNeedsLayout = ( div.offsetWidth === 2 );
-
-                       // Check if elements with layout shrink-wrap their children
-                       // (IE 6 does this)
-                       div.style.display = "";
-                       div.innerHTML = "<div style='width:4px;'></div>";
-                       support.shrinkWrapBlocks = ( div.offsetWidth !== 2 );
-               }
-
-               div.style.cssText = ptlm + vb;
-               div.innerHTML = html;
-
-               outer = div.firstChild;
-               inner = outer.firstChild;
-               td = outer.nextSibling.firstChild.firstChild;
-
-               offsetSupport = {
-                       doesNotAddBorder: ( inner.offsetTop !== 5 ),
-                       doesAddBorderForTableAndCells: ( td.offsetTop === 5 )
-               };
-
-               inner.style.position = "fixed";
-               inner.style.top = "20px";
-
-               // safari subtracts parent border width here which is 5px
-               offsetSupport.fixedPosition = ( inner.offsetTop === 20 || inner.offsetTop === 15 );
-               inner.style.position = inner.style.top = "";
-
-               outer.style.overflow = "hidden";
-               outer.style.position = "relative";
-
-               offsetSupport.subtractsBorderForOverflowNotVisible = ( inner.offsetTop === -5 );
-               offsetSupport.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== conMarginTop );
-
-               body.removeChild( container );
-               div  = container = null;
-
-               jQuery.extend( support, offsetSupport );
-       });
-
-       return support;
-})();
-
-
-
-
-var rbrace = /^(?:\{.*\}|\[.*\])$/,
-       rmultiDash = /([A-Z])/g;
-
-jQuery.extend({
-       cache: {},
-
-       // Please use with caution
-       uuid: 0,
-
-       // Unique for each copy of jQuery on the page
-       // Non-digits removed to match rinlinejQuery
-       expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ),
-
-       // The following elements throw uncatchable exceptions if you
-       // attempt to add expando properties to them.
-       noData: {
-               "embed": true,
-               // Ban all objects except for Flash (which handle expandos)
-               "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
-               "applet": true
-       },
-
-       hasData: function( elem ) {
-               elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];
-               return !!elem && !isEmptyDataObject( elem );
-       },
-
-       data: function( elem, name, data, pvt /* Internal Use Only */ ) {
-               if ( !jQuery.acceptData( elem ) ) {
-                       return;
-               }
-
-               var privateCache, thisCache, ret,
-                       internalKey = jQuery.expando,
-                       getByName = typeof name === "string",
-
-                       // We have to handle DOM nodes and JS objects differently because IE6-7
-                       // can't GC object references properly across the DOM-JS boundary
-                       isNode = elem.nodeType,
-
-                       // Only DOM nodes need the global jQuery cache; JS object data is
-                       // attached directly to the object so GC can occur automatically
-                       cache = isNode ? jQuery.cache : elem,
-
-                       // Only defining an ID for JS objects if its cache already exists allows
-                       // the code to shortcut on the same path as a DOM node with no cache
-                       id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey,
-                       isEvents = name === "events";
-
-               // Avoid doing any more work than we need to when trying to get data on an
-               // object that has no data at all
-               if ( (!id || !cache[id] || (!isEvents && !pvt && !cache[id].data)) && getByName && data === undefined ) {
-                       return;
-               }
-
-               if ( !id ) {
-                       // Only DOM nodes need a new unique ID for each element since their data
-                       // ends up in the global cache
-                       if ( isNode ) {
-                               elem[ internalKey ] = id = ++jQuery.uuid;
-                       } else {
-                               id = internalKey;
-                       }
-               }
-
-               if ( !cache[ id ] ) {
-                       cache[ id ] = {};
-
-                       // Avoids exposing jQuery metadata on plain JS objects when the object
-                       // is serialized using JSON.stringify
-                       if ( !isNode ) {
-                               cache[ id ].toJSON = jQuery.noop;
-                       }
-               }
-
-               // An object can be passed to jQuery.data instead of a key/value pair; this gets
-               // shallow copied over onto the existing cache
-               if ( typeof name === "object" || typeof name === "function" ) {
-                       if ( pvt ) {
-                               cache[ id ] = jQuery.extend( cache[ id ], name );
-                       } else {
-                               cache[ id ].data = jQuery.extend( cache[ id ].data, name );
-                       }
-               }
-
-               privateCache = thisCache = cache[ id ];
-
-               // jQuery data() is stored in a separate object inside the object's internal data
-               // cache in order to avoid key collisions between internal data and user-defined
-               // data.
-               if ( !pvt ) {
-                       if ( !thisCache.data ) {
-                               thisCache.data = {};
-                       }
-
-                       thisCache = thisCache.data;
-               }
-
-               if ( data !== undefined ) {
-                       thisCache[ jQuery.camelCase( name ) ] = data;
-               }
-
-               // Users should not attempt to inspect the internal events object using jQuery.data,
-               // it is undocumented and subject to change. But does anyone listen? No.
-               if ( isEvents && !thisCache[ name ] ) {
-                       return privateCache.events;
-               }
-
-               // Check for both converted-to-camel and non-converted data property names
-               // If a data property was specified
-               if ( getByName ) {
-
-                       // First Try to find as-is property data
-                       ret = thisCache[ name ];
-
-                       // Test for null|undefined property data
-                       if ( ret == null ) {
-
-                               // Try to find the camelCased property
-                               ret = thisCache[ jQuery.camelCase( name ) ];
-                       }
-               } else {
-                       ret = thisCache;
-               }
-
-               return ret;
-       },
-
-       removeData: function( elem, name, pvt /* Internal Use Only */ ) {
-               if ( !jQuery.acceptData( elem ) ) {
-                       return;
-               }
-
-               var thisCache, i, l,
-
-                       // Reference to internal data cache key
-                       internalKey = jQuery.expando,
-
-                       isNode = elem.nodeType,
-
-                       // See jQuery.data for more information
-                       cache = isNode ? jQuery.cache : elem,
-
-                       // See jQuery.data for more information
-                       id = isNode ? elem[ internalKey ] : internalKey;
-
-               // If there is already no cache entry for this object, there is no
-               // purpose in continuing
-               if ( !cache[ id ] ) {
-                       return;
-               }
-
-               if ( name ) {
-
-                       thisCache = pvt ? cache[ id ] : cache[ id ].data;
-
-                       if ( thisCache ) {
-
-                               // Support array or space separated string names for data keys
-                               if ( !jQuery.isArray( name ) ) {
-
-                                       // try the string as a key before any manipulation
-                                       if ( name in thisCache ) {
-                                               name = [ name ];
-                                       } else {
-
-                                               // split the camel cased version by spaces unless a key with the spaces exists
-                                               name = jQuery.camelCase( name );
-                                               if ( name in thisCache ) {
-                                                       name = [ name ];
-                                               } else {
-                                                       name = name.split( " " );
-                                               }
-                                       }
-                               }
-
-                               for ( i = 0, l = name.length; i < l; i++ ) {
-                                       delete thisCache[ name[i] ];
-                               }
-
-                               // If there is no data left in the cache, we want to continue
-                               // and let the cache object itself get destroyed
-                               if ( !( pvt ? isEmptyDataObject : jQuery.isEmptyObject )( thisCache ) ) {
-                                       return;
-                               }
-                       }
-               }
-
-               // See jQuery.data for more information
-               if ( !pvt ) {
-                       delete cache[ id ].data;
-
-                       // Don't destroy the parent cache unless the internal data object
-                       // had been the only thing left in it
-                       if ( !isEmptyDataObject(cache[ id ]) ) {
-                               return;
-                       }
-               }
-
-               // Browsers that fail expando deletion also refuse to delete expandos on
-               // the window, but it will allow it on all other JS objects; other browsers
-               // don't care
-               // Ensure that `cache` is not a window object #10080
-               if ( jQuery.support.deleteExpando || !cache.setInterval ) {
-                       delete cache[ id ];
-               } else {
-                       cache[ id ] = null;
-               }
-
-               // We destroyed the cache and need to eliminate the expando on the node to avoid
-               // false lookups in the cache for entries that no longer exist
-               if ( isNode ) {
-                       // IE does not allow us to delete expando properties from nodes,
-                       // nor does it have a removeAttribute function on Document nodes;
-                       // we must handle all of these cases
-                       if ( jQuery.support.deleteExpando ) {
-                               delete elem[ internalKey ];
-                       } else if ( elem.removeAttribute ) {
-                               elem.removeAttribute( internalKey );
-                       } else {
-                               elem[ internalKey ] = null;
-                       }
-               }
-       },
-
-       // For internal use only.
-       _data: function( elem, name, data ) {
-               return jQuery.data( elem, name, data, true );
-       },
-
-       // A method for determining if a DOM node can handle the data expando
-       acceptData: function( elem ) {
-               if ( elem.nodeName ) {
-                       var match = jQuery.noData[ elem.nodeName.toLowerCase() ];
-
-                       if ( match ) {
-                               return !(match === true || elem.getAttribute("classid") !== match);
-                       }
-               }
-
-               return true;
-       }
-});
-
-jQuery.fn.extend({
-       data: function( key, value ) {
-               var parts, attr, name,
-                       data = null;
-
-               if ( typeof key === "undefined" ) {
-                       if ( this.length ) {
-                               data = jQuery.data( this[0] );
-
-                               if ( this[0].nodeType === 1 && !jQuery._data( this[0], "parsedAttrs" ) ) {
-                                       attr = this[0].attributes;
-                                       for ( var i = 0, l = attr.length; i < l; i++ ) {
-                                               name = attr[i].name;
-
-                                               if ( name.indexOf( "data-" ) === 0 ) {
-                                                       name = jQuery.camelCase( name.substring(5) );
-
-                                                       dataAttr( this[0], name, data[ name ] );
-                                               }
-                                       }
-                                       jQuery._data( this[0], "parsedAttrs", true );
-                               }
-                       }
-
-                       return data;
-
-               } else if ( typeof key === "object" ) {
-                       return this.each(function() {
-                               jQuery.data( this, key );
-                       });
-               }
-
-               parts = key.split(".");
-               parts[1] = parts[1] ? "." + parts[1] : "";
-
-               if ( value === undefined ) {
-                       data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
-
-                       // Try to fetch any internally stored data first
-                       if ( data === undefined && this.length ) {
-                               data = jQuery.data( this[0], key );
-                               data = dataAttr( this[0], key, data );
-                       }
-
-                       return data === undefined && parts[1] ?
-                               this.data( parts[0] ) :
-                               data;
-
-               } else {
-                       return this.each(function() {
-                               var self = jQuery( this ),
-                                       args = [ parts[0], value ];
-
-                               self.triggerHandler( "setData" + parts[1] + "!", args );
-                               jQuery.data( this, key, value );
-                               self.triggerHandler( "changeData" + parts[1] + "!", args );
-                       });
-               }
-       },
-
-       removeData: function( key ) {
-               return this.each(function() {
-                       jQuery.removeData( this, key );
-               });
-       }
-});
-
-function dataAttr( elem, key, data ) {
-       // If nothing was found internally, try to fetch any
-       // data from the HTML5 data-* attribute
-       if ( data === undefined && elem.nodeType === 1 ) {
-
-               var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
-
-               data = elem.getAttribute( name );
-
-               if ( typeof data === "string" ) {
-                       try {
-                               data = data === "true" ? true :
-                               data === "false" ? false :
-                               data === "null" ? null :
-                               jQuery.isNumeric( data ) ? parseFloat( data ) :
-                                       rbrace.test( data ) ? jQuery.parseJSON( data ) :
-                                       data;
-                       } catch( e ) {}
-
-                       // Make sure we set the data so it isn't changed later
-                       jQuery.data( elem, key, data );
-
-               } else {
-                       data = undefined;
-               }
-       }
-
-       return data;
-}
-
-// checks a cache object for emptiness
-function isEmptyDataObject( obj ) {
-       for ( var name in obj ) {
-
-               // if the public data object is empty, the private is still empty
-               if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {
-                       continue;
-               }
-               if ( name !== "toJSON" ) {
-                       return false;
-               }
-       }
-
-       return true;
-}
-
-
-
-
-function handleQueueMarkDefer( elem, type, src ) {
-       var deferDataKey = type + "defer",
-               queueDataKey = type + "queue",
-               markDataKey = type + "mark",
-               defer = jQuery._data( elem, deferDataKey );
-       if ( defer &&
-               ( src === "queue" || !jQuery._data(elem, queueDataKey) ) &&
-               ( src === "mark" || !jQuery._data(elem, markDataKey) ) ) {
-               // Give room for hard-coded callbacks to fire first
-               // and eventually mark/queue something else on the element
-               setTimeout( function() {
-                       if ( !jQuery._data( elem, queueDataKey ) &&
-                               !jQuery._data( elem, markDataKey ) ) {
-                               jQuery.removeData( elem, deferDataKey, true );
-                               defer.fire();
-                       }
-               }, 0 );
-       }
-}
-
-jQuery.extend({
-
-       _mark: function( elem, type ) {
-               if ( elem ) {
-                       type = ( type || "fx" ) + "mark";
-                       jQuery._data( elem, type, (jQuery._data( elem, type ) || 0) + 1 );
-               }
-       },
-
-       _unmark: function( force, elem, type ) {
-               if ( force !== true ) {
-                       type = elem;
-                       elem = force;
-                       force = false;
-               }
-               if ( elem ) {
-                       type = type || "fx";
-                       var key = type + "mark",
-                               count = force ? 0 : ( (jQuery._data( elem, key ) || 1) - 1 );
-                       if ( count ) {
-                               jQuery._data( elem, key, count );
-                       } else {
-                               jQuery.removeData( elem, key, true );
-                               handleQueueMarkDefer( elem, type, "mark" );
-                       }
-               }
-       },
-
-       queue: function( elem, type, data ) {
-               var q;
-               if ( elem ) {
-                       type = ( type || "fx" ) + "queue";
-                       q = jQuery._data( elem, type );
-
-                       // Speed up dequeue by getting out quickly if this is just a lookup
-                       if ( data ) {
-                               if ( !q || jQuery.isArray(data) ) {
-                                       q = jQuery._data( elem, type, jQuery.makeArray(data) );
-                               } else {
-                                       q.push( data );
-                               }
-                       }
-                       return q || [];
-               }
-       },
-
-       dequeue: function( elem, type ) {
-               type = type || "fx";
-
-               var queue = jQuery.queue( elem, type ),
-                       fn = queue.shift(),
-                       hooks = {};
-
-               // If the fx queue is dequeued, always remove the progress sentinel
-               if ( fn === "inprogress" ) {
-                       fn = queue.shift();
-               }
-
-               if ( fn ) {
-                       // Add a progress sentinel to prevent the fx queue from being
-                       // automatically dequeued
-                       if ( type === "fx" ) {
-                               queue.unshift( "inprogress" );
-                       }
-
-                       jQuery._data( elem, type + ".run", hooks );
-                       fn.call( elem, function() {
-                               jQuery.dequeue( elem, type );
-                       }, hooks );
-               }
-
-               if ( !queue.length ) {
-                       jQuery.removeData( elem, type + "queue " + type + ".run", true );
-                       handleQueueMarkDefer( elem, type, "queue" );
-               }
-       }
-});
-
-jQuery.fn.extend({
-       queue: function( type, data ) {
-               if ( typeof type !== "string" ) {
-                       data = type;
-                       type = "fx";
-               }
-
-               if ( data === undefined ) {
-                       return jQuery.queue( this[0], type );
-               }
-               return this.each(function() {
-                       var queue = jQuery.queue( this, type, data );
-
-                       if ( type === "fx" && queue[0] !== "inprogress" ) {
-                               jQuery.dequeue( this, type );
-                       }
-               });
-       },
-       dequeue: function( type ) {
-               return this.each(function() {
-                       jQuery.dequeue( this, type );
-               });
-       },
-       // Based off of the plugin by Clint Helfers, with permission.
-       // http://blindsignals.com/index.php/2009/07/jquery-delay/
-       delay: function( time, type ) {
-               time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
-               type = type || "fx";
-
-               return this.queue( type, function( next, hooks ) {
-                       var timeout = setTimeout( next, time );
-                       hooks.stop = function() {
-                               clearTimeout( timeout );
-                       };
-               });
-       },
-       clearQueue: function( type ) {
-               return this.queue( type || "fx", [] );
-       },
-       // Get a promise resolved when queues of a certain type
-       // are emptied (fx is the type by default)
-       promise: function( type, object ) {
-               if ( typeof type !== "string" ) {
-                       object = type;
-                       type = undefined;
-               }
-               type = type || "fx";
-               var defer = jQuery.Deferred(),
-                       elements = this,
-                       i = elements.length,
-                       count = 1,
-                       deferDataKey = type + "defer",
-                       queueDataKey = type + "queue",
-                       markDataKey = type + "mark",
-                       tmp;
-               function resolve() {
-                       if ( !( --count ) ) {
-                               defer.resolveWith( elements, [ elements ] );
-                       }
-               }
-               while( i-- ) {
-                       if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) ||
-                                       ( jQuery.data( elements[ i ], queueDataKey, undefined, true ) ||
-                                               jQuery.data( elements[ i ], markDataKey, undefined, true ) ) &&
-                                       jQuery.data( elements[ i ], deferDataKey, jQuery.Callbacks( "once memory" ), true ) )) {
-                               count++;
-                               tmp.add( resolve );
-                       }
-               }
-               resolve();
-               return defer.promise();
-       }
-});
-
-
-
-
-var rclass = /[\n\t\r]/g,
-       rspace = /\s+/,
-       rreturn = /\r/g,
-       rtype = /^(?:button|input)$/i,
-       rfocusable = /^(?:button|input|object|select|textarea)$/i,
-       rclickable = /^a(?:rea)?$/i,
-       rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
-       getSetAttribute = jQuery.support.getSetAttribute,
-       nodeHook, boolHook, fixSpecified;
-
-jQuery.fn.extend({
-       attr: function( name, value ) {
-               return jQuery.access( this, name, value, true, jQuery.attr );
-       },
-
-       removeAttr: function( name ) {
-               return this.each(function() {
-                       jQuery.removeAttr( this, name );
-               });
-       },
-
-       prop: function( name, value ) {
-               return jQuery.access( this, name, value, true, jQuery.prop );
-       },
-
-       removeProp: function( name ) {
-               name = jQuery.propFix[ name ] || name;
-               return this.each(function() {
-                       // try/catch handles cases where IE balks (such as removing a property on window)
-                       try {
-                               this[ name ] = undefined;
-                               delete this[ name ];
-                       } catch( e ) {}
-               });
-       },
-
-       addClass: function( value ) {
-               var classNames, i, l, elem,
-                       setClass, c, cl;
-
-               if ( jQuery.isFunction( value ) ) {
-                       return this.each(function( j ) {
-                               jQuery( this ).addClass( value.call(this, j, this.className) );
-                       });
-               }
-
-               if ( value && typeof value === "string" ) {
-                       classNames = value.split( rspace );
-
-                       for ( i = 0, l = this.length; i < l; i++ ) {
-                               elem = this[ i ];
-
-                               if ( elem.nodeType === 1 ) {
-                                       if ( !elem.className && classNames.length === 1 ) {
-                                               elem.className = value;
-
-                                       } else {
-                                               setClass = " " + elem.className + " ";
-
-                                               for ( c = 0, cl = classNames.length; c < cl; c++ ) {
-                                                       if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) {
-                                                               setClass += classNames[ c ] + " ";
-                                                       }
-                                               }
-                                               elem.className = jQuery.trim( setClass );
-                                       }
-                               }
-                       }
-               }
-
-               return this;
-       },
-
-       removeClass: function( value ) {
-               var classNames, i, l, elem, className, c, cl;
-
-               if ( jQuery.isFunction( value ) ) {
-                       return this.each(function( j ) {
-                               jQuery( this ).removeClass( value.call(this, j, this.className) );
-                       });
-               }
-
-               if ( (value && typeof value === "string") || value === undefined ) {
-                       classNames = ( value || "" ).split( rspace );
-
-                       for ( i = 0, l = this.length; i < l; i++ ) {
-                               elem = this[ i ];
-
-                               if ( elem.nodeType === 1 && elem.className ) {
-                                       if ( value ) {
-                                               className = (" " + elem.className + " ").replace( rclass, " " );
-                                               for ( c = 0, cl = classNames.length; c < cl; c++ ) {
-                                                       className = className.replace(" " + classNames[ c ] + " ", " ");
-                                               }
-                                               elem.className = jQuery.trim( className );
-
-                                       } else {
-                                               elem.className = "";
-                                       }
-                               }
-                       }
-               }
-
-               return this;
-       },
-
-       toggleClass: function( value, stateVal ) {
-               var type = typeof value,
-                       isBool = typeof stateVal === "boolean";
-
-               if ( jQuery.isFunction( value ) ) {
-                       return this.each(function( i ) {
-                               jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
-                       });
-               }
-
-               return this.each(function() {
-                       if ( type === "string" ) {
-                               // toggle individual class names
-                               var className,
-                                       i = 0,
-                                       self = jQuery( this ),
-                                       state = stateVal,
-                                       classNames = value.split( rspace );
-
-                               while ( (className = classNames[ i++ ]) ) {
-                                       // check each className given, space seperated list
-                                       state = isBool ? state : !self.hasClass( className );
-                                       self[ state ? "addClass" : "removeClass" ]( className );
-                               }
-
-                       } else if ( type === "undefined" || type === "boolean" ) {
-                               if ( this.className ) {
-                                       // store className if set
-                                       jQuery._data( this, "__className__", this.className );
-                               }
-
-                               // toggle whole className
-                               this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";
-                       }
-               });
-       },
-
-       hasClass: function( selector ) {
-               var className = " " + selector + " ",
-                       i = 0,
-                       l = this.length;
-               for ( ; i < l; i++ ) {
-                       if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
-                               return true;
-                       }
-               }
-
-               return false;
-       },
-
-       val: function( value ) {
-               var hooks, ret, isFunction,
-                       elem = this[0];
-
-               if ( !arguments.length ) {
-                       if ( elem ) {
-                               hooks = jQuery.valHooks[ elem.nodeName.toLowerCase() ] || jQuery.valHooks[ elem.type ];
-
-                               if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
-                                       return ret;
-                               }
-
-                               ret = elem.value;
-
-                               return typeof ret === "string" ?
-                                       // handle most common string cases
-                                       ret.replace(rreturn, "") :
-                                       // handle cases where value is null/undef or number
-                                       ret == null ? "" : ret;
-                       }
-
-                       return;
-               }
-
-               isFunction = jQuery.isFunction( value );
-
-               return this.each(function( i ) {
-                       var self = jQuery(this), val;
-
-                       if ( this.nodeType !== 1 ) {
-                               return;
-                       }
-
-                       if ( isFunction ) {
-                               val = value.call( this, i, self.val() );
-                       } else {
-                               val = value;
-                       }
-
-                       // Treat null/undefined as ""; convert numbers to string
-                       if ( val == null ) {
-                               val = "";
-                       } else if ( typeof val === "number" ) {
-                               val += "";
-                       } else if ( jQuery.isArray( val ) ) {
-                               val = jQuery.map(val, function ( value ) {
-                                       return value == null ? "" : value + "";
-                               });
-                       }
-
-                       hooks = jQuery.valHooks[ this.nodeName.toLowerCase() ] || jQuery.valHooks[ this.type ];
-
-                       // If set returns undefined, fall back to normal setting
-                       if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
-                               this.value = val;
-                       }
-               });
-       }
-});
-
-jQuery.extend({
-       valHooks: {
-               option: {
-                       get: function( elem ) {
-                               // attributes.value is undefined in Blackberry 4.7 but
-                               // uses .value. See #6932
-                               var val = elem.attributes.value;
-                               return !val || val.specified ? elem.value : elem.text;
-                       }
-               },
-               select: {
-                       get: function( elem ) {
-                               var value, i, max, option,
-                                       index = elem.selectedIndex,
-                                       values = [],
-                                       options = elem.options,
-                                       one = elem.type === "select-one";
-
-                               // Nothing was selected
-                               if ( index < 0 ) {
-                                       return null;
-                               }
-
-                               // Loop through all the selected options
-                               i = one ? index : 0;
-                               max = one ? index + 1 : options.length;
-                               for ( ; i < max; i++ ) {
-                                       option = options[ i ];
-
-                                       // Don't return options that are disabled or in a disabled optgroup
-                                       if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) &&
-                                                       (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
-
-                                               // Get the specific value for the option
-                                               value = jQuery( option ).val();
-
-                                               // We don't need an array for one selects
-                                               if ( one ) {
-                                                       return value;
-                                               }
-
-                                               // Multi-Selects return an array
-                                               values.push( value );
-                                       }
-                               }
-
-                               // Fixes Bug #2551 -- select.val() broken in IE after form.reset()
-                               if ( one && !values.length && options.length ) {
-                                       return jQuery( options[ index ] ).val();
-                               }
-
-                               return values;
-                       },
-
-                       set: function( elem, value ) {
-                               var values = jQuery.makeArray( value );
-
-                               jQuery(elem).find("option").each(function() {
-                                       this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
-                               });
-
-                               if ( !values.length ) {
-                                       elem.selectedIndex = -1;
-                               }
-                               return values;
-                       }
-               }
-       },
-
-       attrFn: {
-               val: true,
-               css: true,
-               html: true,
-               text: true,
-               data: true,
-               width: true,
-               height: true,
-               offset: true
-       },
-
-       attr: function( elem, name, value, pass ) {
-               var ret, hooks, notxml,
-                       nType = elem.nodeType;
-
-               // don't get/set attributes on text, comment and attribute nodes
-               if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
-                       return;
-               }
-
-               if ( pass && name in jQuery.attrFn ) {
-                       return jQuery( elem )[ name ]( value );
-               }
-
-               // Fallback to prop when attributes are not supported
-               if ( typeof elem.getAttribute === "undefined" ) {
-                       return jQuery.prop( elem, name, value );
-               }
-
-               notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
-
-               // All attributes are lowercase
-               // Grab necessary hook if one is defined
-               if ( notxml ) {
-                       name = name.toLowerCase();
-                       hooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook );
-               }
-
-               if ( value !== undefined ) {
-
-                       if ( value === null ) {
-                               jQuery.removeAttr( elem, name );
-                               return;
-
-                       } else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) {
-                               return ret;
-
-                       } else {
-                               elem.setAttribute( name, "" + value );
-                               return value;
-                       }
-
-               } else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) {
-                       return ret;
-
-               } else {
-
-                       ret = elem.getAttribute( name );
-
-                       // Non-existent attributes return null, we normalize to undefined
-                       return ret === null ?
-                               undefined :
-                               ret;
-               }
-       },
-
-       removeAttr: function( elem, value ) {
-               var propName, attrNames, name, l,
-                       i = 0;
-
-               if ( value && elem.nodeType === 1 ) {
-                       attrNames = value.toLowerCase().split( rspace );
-                       l = attrNames.length;
-
-                       for ( ; i < l; i++ ) {
-                               name = attrNames[ i ];
-
-                               if ( name ) {
-                                       propName = jQuery.propFix[ name ] || name;
-
-                                       // See #9699 for explanation of this approach (setting first, then removal)
-                                       jQuery.attr( elem, name, "" );
-                                       elem.removeAttribute( getSetAttribute ? name : propName );
-
-                                       // Set corresponding property to false for boolean attributes
-                                       if ( rboolean.test( name ) && propName in elem ) {
-                                               elem[ propName ] = false;
-                                       }
-                               }
-                       }
-               }
-       },
-
-       attrHooks: {
-               type: {
-                       set: function( elem, value ) {
-                               // We can't allow the type property to be changed (since it causes problems in IE)
-                               if ( rtype.test( elem.nodeName ) && elem.parentNode ) {
-                                       jQuery.error( "type property can't be changed" );
-                               } else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
-                                       // Setting the type on a radio button after the value resets the value in IE6-9
-                                       // Reset value to it's default in case type is set after value
-                                       // This is for element creation
-                                       var val = elem.value;
-                                       elem.setAttribute( "type", value );
-                                       if ( val ) {
-                                               elem.value = val;
-                                       }
-                                       return value;
-                               }
-                       }
-               },
-               // Use the value property for back compat
-               // Use the nodeHook for button elements in IE6/7 (#1954)
-               value: {
-                       get: function( elem, name ) {
-                               if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
-                                       return nodeHook.get( elem, name );
-                               }
-                               return name in elem ?
-                                       elem.value :
-                                       null;
-                       },
-                       set: function( elem, value, name ) {
-                               if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
-                                       return nodeHook.set( elem, value, name );
-                               }
-                               // Does not return so that setAttribute is also used
-                               elem.value = value;
-                       }
-               }
-       },
-
-       propFix: {
-               tabindex: "tabIndex",
-               readonly: "readOnly",
-               "for": "htmlFor",
-               "class": "className",
-               maxlength: "maxLength",
-               cellspacing: "cellSpacing",
-               cellpadding: "cellPadding",
-               rowspan: "rowSpan",
-               colspan: "colSpan",
-               usemap: "useMap",
-               frameborder: "frameBorder",
-               contenteditable: "contentEditable"
-       },
-
-       prop: function( elem, name, value ) {
-               var ret, hooks, notxml,
-                       nType = elem.nodeType;
-
-               // don't get/set properties on text, comment and attribute nodes
-               if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
-                       return;
-               }
-
-               notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
-
-               if ( notxml ) {
-                       // Fix name and attach hooks
-                       name = jQuery.propFix[ name ] || name;
-                       hooks = jQuery.propHooks[ name ];
-               }
-
-               if ( value !== undefined ) {
-                       if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
-                               return ret;
-
-                       } else {
-                               return ( elem[ name ] = value );
-                       }
-
-               } else {
-                       if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
-                               return ret;
-
-                       } else {
-                               return elem[ name ];
-                       }
-               }
-       },
-
-       propHooks: {
-               tabIndex: {
-                       get: function( elem ) {
-                               // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
-                               // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
-                               var attributeNode = elem.getAttributeNode("tabindex");
-
-                               return attributeNode && attributeNode.specified ?
-                                       parseInt( attributeNode.value, 10 ) :
-                                       rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
-                                               0 :
-                                               undefined;
-                       }
-               }
-       }
-});
-
-// Add the tabIndex propHook to attrHooks for back-compat (different case is intentional)
-jQuery.attrHooks.tabindex = jQuery.propHooks.tabIndex;
-
-// Hook for boolean attributes
-boolHook = {
-       get: function( elem, name ) {
-               // Align boolean attributes with corresponding properties
-               // Fall back to attribute presence where some booleans are not supported
-               var attrNode,
-                       property = jQuery.prop( elem, name );
-               return property === true || typeof property !== "boolean" && ( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ?
-                       name.toLowerCase() :
-                       undefined;
-       },
-       set: function( elem, value, name ) {
-               var propName;
-               if ( value === false ) {
-                       // Remove boolean attributes when set to false
-                       jQuery.removeAttr( elem, name );
-               } else {
-                       // value is true since we know at this point it's type boolean and not false
-                       // Set boolean attributes to the same name and set the DOM property
-                       propName = jQuery.propFix[ name ] || name;
-                       if ( propName in elem ) {
-                               // Only set the IDL specifically if it already exists on the element
-                               elem[ propName ] = true;
-                       }
-
-                       elem.setAttribute( name, name.toLowerCase() );
-               }
-               return name;
-       }
-};
-
-// IE6/7 do not support getting/setting some attributes with get/setAttribute
-if ( !getSetAttribute ) {
-
-       fixSpecified = {
-               name: true,
-               id: true
-       };
-
-       // Use this for any attribute in IE6/7
-       // This fixes almost every IE6/7 issue
-       nodeHook = jQuery.valHooks.button = {
-               get: function( elem, name ) {
-                       var ret;
-                       ret = elem.getAttributeNode( name );
-                       return ret && ( fixSpecified[ name ] ? ret.nodeValue !== "" : ret.specified ) ?
-                               ret.nodeValue :
-                               undefined;
-               },
-               set: function( elem, value, name ) {
-                       // Set the existing or create a new attribute node
-                       var ret = elem.getAttributeNode( name );
-                       if ( !ret ) {
-                               ret = document.createAttribute( name );
-                               elem.setAttributeNode( ret );
-                       }
-                       return ( ret.nodeValue = value + "" );
-               }
-       };
-
-       // Apply the nodeHook to tabindex
-       jQuery.attrHooks.tabindex.set = nodeHook.set;
-
-       // Set width and height to auto instead of 0 on empty string( Bug #8150 )
-       // This is for removals
-       jQuery.each([ "width", "height" ], function( i, name ) {
-               jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
-                       set: function( elem, value ) {
-                               if ( value === "" ) {
-                                       elem.setAttribute( name, "auto" );
-                                       return value;
-                               }
-                       }
-               });
-       });
-
-       // Set contenteditable to false on removals(#10429)
-       // Setting to empty string throws an error as an invalid value
-       jQuery.attrHooks.contenteditable = {
-               get: nodeHook.get,
-               set: function( elem, value, name ) {
-                       if ( value === "" ) {
-                               value = "false";
-                       }
-                       nodeHook.set( elem, value, name );
-               }
-       };
-}
-
-
-// Some attributes require a special call on IE
-if ( !jQuery.support.hrefNormalized ) {
-       jQuery.each([ "href", "src", "width", "height" ], function( i, name ) {
-               jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
-                       get: function( elem ) {
-                               var ret = elem.getAttribute( name, 2 );
-                               return ret === null ? undefined : ret;
-                       }
-               });
-       });
-}
-
-if ( !jQuery.support.style ) {
-       jQuery.attrHooks.style = {
-               get: function( elem ) {
-                       // Return undefined in the case of empty string
-                       // Normalize to lowercase since IE uppercases css property names
-                       return elem.style.cssText.toLowerCase() || undefined;
-               },
-               set: function( elem, value ) {
-                       return ( elem.style.cssText = "" + value );
-               }
-       };
-}
-
-// Safari mis-reports the default selected property of an option
-// Accessing the parent's selectedIndex property fixes it
-if ( !jQuery.support.optSelected ) {
-       jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {
-               get: function( elem ) {
-                       var parent = elem.parentNode;
-
-                       if ( parent ) {
-                               parent.selectedIndex;
-
-                               // Make sure that it also works with optgroups, see #5701
-                               if ( parent.parentNode ) {
-                                       parent.parentNode.selectedIndex;
-                               }
-                       }
-                       return null;
-               }
-       });
-}
-
-// IE6/7 call enctype encoding
-if ( !jQuery.support.enctype ) {
-       jQuery.propFix.enctype = "encoding";
-}
-
-// Radios and checkboxes getter/setter
-if ( !jQuery.support.checkOn ) {
-       jQuery.each([ "radio", "checkbox" ], function() {
-               jQuery.valHooks[ this ] = {
-                       get: function( elem ) {
-                               // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
-                               return elem.getAttribute("value") === null ? "on" : elem.value;
-                       }
-               };
-       });
-}
-jQuery.each([ "radio", "checkbox" ], function() {
-       jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {
-               set: function( elem, value ) {
-                       if ( jQuery.isArray( value ) ) {
-                               return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
-                       }
-               }
-       });
-});
-
-
-
-
-var rformElems = /^(?:textarea|input|select)$/i,
-       rtypenamespace = /^([^\.]*)?(?:\.(.+))?$/,
-       rhoverHack = /\bhover(\.\S+)?\b/,
-       rkeyEvent = /^key/,
-       rmouseEvent = /^(?:mouse|contextmenu)|click/,
-       rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
-       rquickIs = /^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,
-       quickParse = function( selector ) {
-               var quick = rquickIs.exec( selector );
-               if ( quick ) {
-                       //   0  1    2   3
-                       // [ _, tag, id, class ]
-                       quick[1] = ( quick[1] || "" ).toLowerCase();
-                       quick[3] = quick[3] && new RegExp( "(?:^|\\s)" + quick[3] + "(?:\\s|$)" );
-               }
-               return quick;
-       },
-       quickIs = function( elem, m ) {
-               var attrs = elem.attributes || {};
-               return (
-                       (!m[1] || elem.nodeName.toLowerCase() === m[1]) &&
-                       (!m[2] || (attrs.id || {}).value === m[2]) &&
-                       (!m[3] || m[3].test( (attrs[ "class" ] || {}).value ))
-               );
-       },
-       hoverHack = function( events ) {
-               return jQuery.event.special.hover ? events : events.replace( rhoverHack, "mouseenter$1 mouseleave$1" );
-       };
-
-/*
- * Helper functions for managing events -- not part of the public interface.
- * Props to Dean Edwards' addEvent library for many of the ideas.
- */
-jQuery.event = {
-
-       add: function( elem, types, handler, data, selector ) {
-
-               var elemData, eventHandle, events,
-                       t, tns, type, namespaces, handleObj,
-                       handleObjIn, quick, handlers, special;
-
-               // Don't attach events to noData or text/comment nodes (allow plain objects tho)
-               if ( elem.nodeType === 3 || elem.nodeType === 8 || !types || !handler || !(elemData = jQuery._data( elem )) ) {
-                       return;
-               }
-
-               // Caller can pass in an object of custom data in lieu of the handler
-               if ( handler.handler ) {
-                       handleObjIn = handler;
-                       handler = handleObjIn.handler;
-               }
-
-               // Make sure that the handler has a unique ID, used to find/remove it later
-               if ( !handler.guid ) {
-                       handler.guid = jQuery.guid++;
-               }
-
-               // Init the element's event structure and main handler, if this is the first
-               events = elemData.events;
-               if ( !events ) {
-                       elemData.events = events = {};
-               }
-               eventHandle = elemData.handle;
-               if ( !eventHandle ) {
-                       elemData.handle = eventHandle = function( e ) {
-                               // Discard the second event of a jQuery.event.trigger() and
-                               // when an event is called after a page has unloaded
-                               return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ?
-                                       jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
-                                       undefined;
-                       };
-                       // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events
-                       eventHandle.elem = elem;
-               }
-
-               // Handle multiple events separated by a space
-               // jQuery(...).bind("mouseover mouseout", fn);
-               types = jQuery.trim( hoverHack(types) ).split( " " );
-               for ( t = 0; t < types.length; t++ ) {
-
-                       tns = rtypenamespace.exec( types[t] ) || [];
-                       type = tns[1];
-                       namespaces = ( tns[2] || "" ).split( "." ).sort();
-
-                       // If event changes its type, use the special event handlers for the changed type
-                       special = jQuery.event.special[ type ] || {};
-
-                       // If selector defined, determine special event api type, otherwise given type
-                       type = ( selector ? special.delegateType : special.bindType ) || type;
-
-                       // Update special based on newly reset type
-                       special = jQuery.event.special[ type ] || {};
-
-                       // handleObj is passed to all event handlers
-                       handleObj = jQuery.extend({
-                               type: type,
-                               origType: tns[1],
-                               data: data,
-                               handler: handler,
-                               guid: handler.guid,
-                               selector: selector,
-                               quick: quickParse( selector ),
-                               namespace: namespaces.join(".")
-                       }, handleObjIn );
-
-                       // Init the event handler queue if we're the first
-                       handlers = events[ type ];
-                       if ( !handlers ) {
-                               handlers = events[ type ] = [];
-                               handlers.delegateCount = 0;
-
-                               // Only use addEventListener/attachEvent if the special events handler returns false
-                               if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
-                                       // Bind the global event handler to the element
-                                       if ( elem.addEventListener ) {
-                                               elem.addEventListener( type, eventHandle, false );
-
-                                       } else if ( elem.attachEvent ) {
-                                               elem.attachEvent( "on" + type, eventHandle );
-                                       }
-                               }
-                       }
-
-                       if ( special.add ) {
-                               special.add.call( elem, handleObj );
-
-                               if ( !handleObj.handler.guid ) {
-                                       handleObj.handler.guid = handler.guid;
-                               }
-                       }
-
-                       // Add to the element's handler list, delegates in front
-                       if ( selector ) {
-                               handlers.splice( handlers.delegateCount++, 0, handleObj );
-                       } else {
-                               handlers.push( handleObj );
-                       }
-
-                       // Keep track of which events have ever been used, for event optimization
-                       jQuery.event.global[ type ] = true;
-               }
-
-               // Nullify elem to prevent memory leaks in IE
-               elem = null;
-       },
-
-       global: {},
-
-       // Detach an event or set of events from an element
-       remove: function( elem, types, handler, selector, mappedTypes ) {
-
-               var elemData = jQuery.hasData( elem ) && jQuery._data( elem ),
-                       t, tns, type, origType, namespaces, origCount,
-                       j, events, special, handle, eventType, handleObj;
-
-               if ( !elemData || !(events = elemData.events) ) {
-                       return;
-               }
-
-               // Once for each type.namespace in types; type may be omitted
-               types = jQuery.trim( hoverHack( types || "" ) ).split(" ");
-               for ( t = 0; t < types.length; t++ ) {
-                       tns = rtypenamespace.exec( types[t] ) || [];
-                       type = origType = tns[1];
-                       namespaces = tns[2];
-
-                       // Unbind all events (on this namespace, if provided) for the element
-                       if ( !type ) {
-                               for ( type in events ) {
-                                       jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
-                               }
-                               continue;
-                       }
-
-                       special = jQuery.event.special[ type ] || {};
-                       type = ( selector? special.delegateType : special.bindType ) || type;
-                       eventType = events[ type ] || [];
-                       origCount = eventType.length;
-                       namespaces = namespaces ? new RegExp("(^|\\.)" + namespaces.split(".").sort().join("\\.(?:.*\\.)?") + "(\\.|$)") : null;
-
-                       // Remove matching events
-                       for ( j = 0; j < eventType.length; j++ ) {
-                               handleObj = eventType[ j ];
-
-                               if ( ( mappedTypes || origType === handleObj.origType ) &&
-                                        ( !handler || handler.guid === handleObj.guid ) &&
-                                        ( !namespaces || namespaces.test( handleObj.namespace ) ) &&
-                                        ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
-                                       eventType.splice( j--, 1 );
-
-                                       if ( handleObj.selector ) {
-                                               eventType.delegateCount--;
-                                       }
-                                       if ( special.remove ) {
-                                               special.remove.call( elem, handleObj );
-                                       }
-                               }
-                       }
-
-                       // Remove generic event handler if we removed something and no more handlers exist
-                       // (avoids potential for endless recursion during removal of special event handlers)
-                       if ( eventType.length === 0 && origCount !== eventType.length ) {
-                               if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {
-                                       jQuery.removeEvent( elem, type, elemData.handle );
-                               }
-
-                               delete events[ type ];
-                       }
-               }
-
-               // Remove the expando if it's no longer used
-               if ( jQuery.isEmptyObject( events ) ) {
-                       handle = elemData.handle;
-                       if ( handle ) {
-                               handle.elem = null;
-                       }
-
-                       // removeData also checks for emptiness and clears the expando if empty
-                       // so use it instead of delete
-                       jQuery.removeData( elem, [ "events", "handle" ], true );
-               }
-       },
-
-       // Events that are safe to short-circuit if no handlers are attached.
-       // Native DOM events should not be added, they may have inline handlers.
-       customEvent: {
-               "getData": true,
-               "setData": true,
-               "changeData": true
-       },
-
-       trigger: function( event, data, elem, onlyHandlers ) {
-               // Don't do events on text and comment nodes
-               if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {
-                       return;
-               }
-
-               // Event object or event type
-               var type = event.type || event,
-                       namespaces = [],
-                       cache, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType;
-
-               // focus/blur morphs to focusin/out; ensure we're not firing them right now
-               if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
-                       return;
-               }
-
-               if ( type.indexOf( "!" ) >= 0 ) {
-                       // Exclusive events trigger only for the exact event (no namespaces)
-                       type = type.slice(0, -1);
-                       exclusive = true;
-               }
-
-               if ( type.indexOf( "." ) >= 0 ) {
-                       // Namespaced trigger; create a regexp to match event type in handle()
-                       namespaces = type.split(".");
-                       type = namespaces.shift();
-                       namespaces.sort();
-               }
-
-               if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) {
-                       // No jQuery handlers for this event type, and it can't have inline handlers
-                       return;
-               }
-
-               // Caller can pass in an Event, Object, or just an event type string
-               event = typeof event === "object" ?
-                       // jQuery.Event object
-                       event[ jQuery.expando ] ? event :
-                       // Object literal
-                       new jQuery.Event( type, event ) :
-                       // Just the event type (string)
-                       new jQuery.Event( type );
-
-               event.type = type;
-               event.isTrigger = true;
-               event.exclusive = exclusive;
-               event.namespace = namespaces.join( "." );
-               event.namespace_re = event.namespace? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)") : null;
-               ontype = type.indexOf( ":" ) < 0 ? "on" + type : "";
-
-               // Handle a global trigger
-               if ( !elem ) {
-
-                       // TODO: Stop taunting the data cache; remove global events and always attach to document
-                       cache = jQuery.cache;
-                       for ( i in cache ) {
-                               if ( cache[ i ].events && cache[ i ].events[ type ] ) {
-                                       jQuery.event.trigger( event, data, cache[ i ].handle.elem, true );
-                               }
-                       }
-                       return;
-               }
-
-               // Clean up the event in case it is being reused
-               event.result = undefined;
-               if ( !event.target ) {
-                       event.target = elem;
-               }
-
-               // Clone any incoming data and prepend the event, creating the handler arg list
-               data = data != null ? jQuery.makeArray( data ) : [];
-               data.unshift( event );
-
-               // Allow special events to draw outside the lines
-               special = jQuery.event.special[ type ] || {};
-               if ( special.trigger && special.trigger.apply( elem, data ) === false ) {
-                       return;
-               }
-
-               // Determine event propagation path in advance, per W3C events spec (#9951)
-               // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
-               eventPath = [[ elem, special.bindType || type ]];
-               if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
-
-                       bubbleType = special.delegateType || type;
-                       cur = rfocusMorph.test( bubbleType + type ) ? elem : elem.parentNode;
-                       old = null;
-                       for ( ; cur; cur = cur.parentNode ) {
-                               eventPath.push([ cur, bubbleType ]);
-                               old = cur;
-                       }
-
-                       // Only add window if we got to document (e.g., not plain obj or detached DOM)
-                       if ( old && old === elem.ownerDocument ) {
-                               eventPath.push([ old.defaultView || old.parentWindow || window, bubbleType ]);
-                       }
-               }
-
-               // Fire handlers on the event path
-               for ( i = 0; i < eventPath.length && !event.isPropagationStopped(); i++ ) {
-
-                       cur = eventPath[i][0];
-                       event.type = eventPath[i][1];
-
-                       handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" );
-                       if ( handle ) {
-                               handle.apply( cur, data );
-                       }
-                       // Note that this is a bare JS function and not a jQuery handler
-                       handle = ontype && cur[ ontype ];
-                       if ( handle && jQuery.acceptData( cur ) && handle.apply( cur, data ) === false ) {
-                               event.preventDefault();
-                       }
-               }
-               event.type = type;
-
-               // If nobody prevented the default action, do it now
-               if ( !onlyHandlers && !event.isDefaultPrevented() ) {
-
-                       if ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) &&
-                               !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) {
-
-                               // Call a native DOM method on the target with the same name name as the event.
-                               // Can't use an .isFunction() check here because IE6/7 fails that test.
-                               // Don't do default actions on window, that's where global variables be (#6170)
-                               // IE<9 dies on focus/blur to hidden element (#1486)
-                               if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {
-
-                                       // Don't re-trigger an onFOO event when we call its FOO() method
-                                       old = elem[ ontype ];
-
-                                       if ( old ) {
-                                               elem[ ontype ] = null;
-                                       }
-
-                                       // Prevent re-triggering of the same event, since we already bubbled it above
-                                       jQuery.event.triggered = type;
-                                       elem[ type ]();
-                                       jQuery.event.triggered = undefined;
-
-                                       if ( old ) {
-                                               elem[ ontype ] = old;
-                                       }
-                               }
-                       }
-               }
-
-               return event.result;
-       },
-
-       dispatch: function( event ) {
-
-               // Make a writable jQuery.Event from the native event object
-               event = jQuery.event.fix( event || window.event );
-
-               var handlers = ( (jQuery._data( this, "events" ) || {} )[ event.type ] || []),
-                       delegateCount = handlers.delegateCount,
-                       args = [].slice.call( arguments, 0 ),
-                       run_all = !event.exclusive && !event.namespace,
-                       handlerQueue = [],
-                       i, j, cur, jqcur, ret, selMatch, matched, matches, handleObj, sel, related;
-
-               // Use the fix-ed jQuery.Event rather than the (read-only) native event
-               args[0] = event;
-               event.delegateTarget = this;
-
-               // Determine handlers that should run if there are delegated events
-               // Avoid disabled elements in IE (#6911) and non-left-click bubbling in Firefox (#3861)
-               if ( delegateCount && !event.target.disabled && !(event.button && event.type === "click") ) {
-
-                       // Pregenerate a single jQuery object for reuse with .is()
-                       jqcur = jQuery(this);
-                       jqcur.context = this.ownerDocument || this;
-
-                       for ( cur = event.target; cur != this; cur = cur.parentNode || this ) {
-                               selMatch = {};
-                               matches = [];
-                               jqcur[0] = cur;
-                               for ( i = 0; i < delegateCount; i++ ) {
-                                       handleObj = handlers[ i ];
-                                       sel = handleObj.selector;
-
-                                       if ( selMatch[ sel ] === undefined ) {
-                                               selMatch[ sel ] = (
-                                                       handleObj.quick ? quickIs( cur, handleObj.quick ) : jqcur.is( sel )
-                                               );
-                                       }
-                                       if ( selMatch[ sel ] ) {
-                                               matches.push( handleObj );
-                                       }
-                               }
-                               if ( matches.length ) {
-                                       handlerQueue.push({ elem: cur, matches: matches });
-                               }
-                       }
-               }
-
-               // Add the remaining (directly-bound) handlers
-               if ( handlers.length > delegateCount ) {
-                       handlerQueue.push({ elem: this, matches: handlers.slice( delegateCount ) });
-               }
-
-               // Run delegates first; they may want to stop propagation beneath us
-               for ( i = 0; i < handlerQueue.length && !event.isPropagationStopped(); i++ ) {
-                       matched = handlerQueue[ i ];
-                       event.currentTarget = matched.elem;
-
-                       for ( j = 0; j < matched.matches.length && !event.isImmediatePropagationStopped(); j++ ) {
-                               handleObj = matched.matches[ j ];
-
-                               // Triggered event must either 1) be non-exclusive and have no namespace, or
-                               // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).
-                               if ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) {
-
-                                       event.data = handleObj.data;
-                                       event.handleObj = handleObj;
-
-                                       ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )
-                                                       .apply( matched.elem, args );
-
-                                       if ( ret !== undefined ) {
-                                               event.result = ret;
-                                               if ( ret === false ) {
-                                                       event.preventDefault();
-                                                       event.stopPropagation();
-                                               }
-                                       }
-                               }
-                       }
-               }
-
-               return event.result;
-       },
-
-       // Includes some event props shared by KeyEvent and MouseEvent
-       // *** attrChange attrName relatedNode srcElement  are not normalized, non-W3C, deprecated, will be removed in 1.8 ***
-       props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
-
-       fixHooks: {},
-
-       keyHooks: {
-               props: "char charCode key keyCode".split(" "),
-               filter: function( event, original ) {
-
-                       // Add which for key events
-                       if ( event.which == null ) {
-                               event.which = original.charCode != null ? original.charCode : original.keyCode;
-                       }
-
-                       return event;
-               }
-       },
-
-       mouseHooks: {
-               props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
-               filter: function( event, original ) {
-                       var eventDoc, doc, body,
-                               button = original.button,
-                               fromElement = original.fromElement;
-
-                       // Calculate pageX/Y if missing and clientX/Y available
-                       if ( event.pageX == null && original.clientX != null ) {
-                               eventDoc = event.target.ownerDocument || document;
-                               doc = eventDoc.documentElement;
-                               body = eventDoc.body;
-
-                               event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
-                               event.pageY = original.clientY + ( doc && doc.scrollTop  || body && body.scrollTop  || 0 ) - ( doc && doc.clientTop  || body && body.clientTop  || 0 );
-                       }
-
-                       // Add relatedTarget, if necessary
-                       if ( !event.relatedTarget && fromElement ) {
-                               event.relatedTarget = fromElement === event.target ? original.toElement : fromElement;
-                       }
-
-                       // Add which for click: 1 === left; 2 === middle; 3 === right
-                       // Note: button is not normalized, so don't use it
-                       if ( !event.which && button !== undefined ) {
-                               event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
-                       }
-
-                       return event;
-               }
-       },
-
-       fix: function( event ) {
-               if ( event[ jQuery.expando ] ) {
-                       return event;
-               }
-
-               // Create a writable copy of the event object and normalize some properties
-               var i, prop,
-                       originalEvent = event,
-                       fixHook = jQuery.event.fixHooks[ event.type ] || {},
-                       copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
-
-               event = jQuery.Event( originalEvent );
-
-               for ( i = copy.length; i; ) {
-                       prop = copy[ --i ];
-                       event[ prop ] = originalEvent[ prop ];
-               }
-
-               // Fix target property, if necessary (#1925, IE 6/7/8 & Safari2)
-               if ( !event.target ) {
-                       event.target = originalEvent.srcElement || document;
-               }
-
-               // Target should not be a text node (#504, Safari)
-               if ( event.target.nodeType === 3 ) {
-                       event.target = event.target.parentNode;
-               }
-
-               // For mouse/key events; add metaKey if it's not there (#3368, IE6/7/8)
-               if ( event.metaKey === undefined ) {
-                       event.metaKey = event.ctrlKey;
-               }
-
-               return fixHook.filter? fixHook.filter( event, originalEvent ) : event;
-       },
-
-       special: {
-               ready: {
-                       // Make sure the ready event is setup
-                       setup: jQuery.bindReady
-               },
-
-               load: {
-                       // Prevent triggered image.load events from bubbling to window.load
-                       noBubble: true
-               },
-
-               focus: {
-                       delegateType: "focusin"
-               },
-               blur: {
-                       delegateType: "focusout"
-               },
-
-               beforeunload: {
-                       setup: function( data, namespaces, eventHandle ) {
-                               // We only want to do this special case on windows
-                               if ( jQuery.isWindow( this ) ) {
-                                       this.onbeforeunload = eventHandle;
-                               }
-                       },
-
-                       teardown: function( namespaces, eventHandle ) {
-                               if ( this.onbeforeunload === eventHandle ) {
-                                       this.onbeforeunload = null;
-                               }
-                       }
-               }
-       },
-
-       simulate: function( type, elem, event, bubble ) {
-               // Piggyback on a donor event to simulate a different one.
-               // Fake originalEvent to avoid donor's stopPropagation, but if the
-               // simulated event prevents default then we do the same on the donor.
-               var e = jQuery.extend(
-                       new jQuery.Event(),
-                       event,
-                       { type: type,
-                               isSimulated: true,
-                               originalEvent: {}
-                       }
-               );
-               if ( bubble ) {
-                       jQuery.event.trigger( e, null, elem );
-               } else {
-                       jQuery.event.dispatch.call( elem, e );
-               }
-               if ( e.isDefaultPrevented() ) {
-                       event.preventDefault();
-               }
-       }
-};
-
-// Some plugins are using, but it's undocumented/deprecated and will be removed.
-// The 1.7 special event interface should provide all the hooks needed now.
-jQuery.event.handle = jQuery.event.dispatch;
-
-jQuery.removeEvent = document.removeEventListener ?
-       function( elem, type, handle ) {
-               if ( elem.removeEventListener ) {
-                       elem.removeEventListener( type, handle, false );
-               }
-       } :
-       function( elem, type, handle ) {
-               if ( elem.detachEvent ) {
-                       elem.detachEvent( "on" + type, handle );
-               }
-       };
-
-jQuery.Event = function( src, props ) {
-       // Allow instantiation without the 'new' keyword
-       if ( !(this instanceof jQuery.Event) ) {
-               return new jQuery.Event( src, props );
-       }
-
-       // Event object
-       if ( src && src.type ) {
-               this.originalEvent = src;
-               this.type = src.type;
-
-               // Events bubbling up the document may have been marked as prevented
-               // by a handler lower down the tree; reflect the correct value.
-               this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false ||
-                       src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;
-
-       // Event type
-       } else {
-               this.type = src;
-       }
-
-       // Put explicitly provided properties onto the event object
-       if ( props ) {
-               jQuery.extend( this, props );
-       }
-
-       // Create a timestamp if incoming event doesn't have one
-       this.timeStamp = src && src.timeStamp || jQuery.now();
-
-       // Mark it as fixed
-       this[ jQuery.expando ] = true;
-};
-
-function returnFalse() {
-       return false;
-}
-function returnTrue() {
-       return true;
-}
-
-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
-// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
-jQuery.Event.prototype = {
-       preventDefault: function() {
-               this.isDefaultPrevented = returnTrue;
-
-               var e = this.originalEvent;
-               if ( !e ) {
-                       return;
-               }
-
-               // if preventDefault exists run it on the original event
-               if ( e.preventDefault ) {
-                       e.preventDefault();
-
-               // otherwise set the returnValue property of the original event to false (IE)
-               } else {
-                       e.returnValue = false;
-               }
-       },
-       stopPropagation: function() {
-               this.isPropagationStopped = returnTrue;
-
-               var e = this.originalEvent;
-               if ( !e ) {
-                       return;
-               }
-               // if stopPropagation exists run it on the original event
-               if ( e.stopPropagation ) {
-                       e.stopPropagation();
-               }
-               // otherwise set the cancelBubble property of the original event to true (IE)
-               e.cancelBubble = true;
-       },
-       stopImmediatePropagation: function() {
-               this.isImmediatePropagationStopped = returnTrue;
-               this.stopPropagation();
-       },
-       isDefaultPrevented: returnFalse,
-       isPropagationStopped: returnFalse,
-       isImmediatePropagationStopped: returnFalse
-};
-
-// Create mouseenter/leave events using mouseover/out and event-time checks
-jQuery.each({
-       mouseenter: "mouseover",
-       mouseleave: "mouseout"
-}, function( orig, fix ) {
-       jQuery.event.special[ orig ] = {
-               delegateType: fix,
-               bindType: fix,
-
-               handle: function( event ) {
-                       var target = this,
-                               related = event.relatedTarget,
-                               handleObj = event.handleObj,
-                               selector = handleObj.selector,
-                               ret;
-
-                       // For mousenter/leave call the handler if related is outside the target.
-                       // NB: No relatedTarget if the mouse left/entered the browser window
-                       if ( !related || (related !== target && !jQuery.contains( target, related )) ) {
-                               event.type = handleObj.origType;
-                               ret = handleObj.handler.apply( this, arguments );
-                               event.type = fix;
-                       }
-                       return ret;
-               }
-       };
-});
-
-// IE submit delegation
-if ( !jQuery.support.submitBubbles ) {
-
-       jQuery.event.special.submit = {
-               setup: function() {
-                       // Only need this for delegated form submit events
-                       if ( jQuery.nodeName( this, "form" ) ) {
-                               return false;
-                       }
-
-                       // Lazy-add a submit handler when a descendant form may potentially be submitted
-                       jQuery.event.add( this, "click._submit keypress._submit", function( e ) {
-                               // Node name check avoids a VML-related crash in IE (#9807)
-                               var elem = e.target,
-                                       form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined;
-                               if ( form && !form._submit_attached ) {
-                                       jQuery.event.add( form, "submit._submit", function( event ) {
-                                               // If form was submitted by the user, bubble the event up the tree
-                                               if ( this.parentNode && !event.isTrigger ) {
-                                                       jQuery.event.simulate( "submit", this.parentNode, event, true );
-                                               }
-                                       });
-                                       form._submit_attached = true;
-                               }
-                       });
-                       // return undefined since we don't need an event listener
-               },
-
-               teardown: function() {
-                       // Only need this for delegated form submit events
-                       if ( jQuery.nodeName( this, "form" ) ) {
-                               return false;
-                       }
-
-                       // Remove delegated handlers; cleanData eventually reaps submit handlers attached above
-                       jQuery.event.remove( this, "._submit" );
-               }
-       };
-}
-
-// IE change delegation and checkbox/radio fix
-if ( !jQuery.support.changeBubbles ) {
-
-       jQuery.event.special.change = {
-
-               setup: function() {
-
-                       if ( rformElems.test( this.nodeName ) ) {
-                               // IE doesn't fire change on a check/radio until blur; trigger it on click
-                               // after a propertychange. Eat the blur-change in special.change.handle.
-                               // This still fires onchange a second time for check/radio after blur.
-                               if ( this.type === "checkbox" || this.type === "radio" ) {
-                                       jQuery.event.add( this, "propertychange._change", function( event ) {
-                                               if ( event.originalEvent.propertyName === "checked" ) {
-                                                       this._just_changed = true;
-                                               }
-                                       });
-                                       jQuery.event.add( this, "click._change", function( event ) {
-                                               if ( this._just_changed && !event.isTrigger ) {
-                                                       this._just_changed = false;
-                                                       jQuery.event.simulate( "change", this, event, true );
-                                               }
-                                       });
-                               }
-                               return false;
-                       }
-                       // Delegated event; lazy-add a change handler on descendant inputs
-                       jQuery.event.add( this, "beforeactivate._change", function( e ) {
-                               var elem = e.target;
-
-                               if ( rformElems.test( elem.nodeName ) && !elem._change_attached ) {
-                                       jQuery.event.add( elem, "change._change", function( event ) {
-                                               if ( this.parentNode && !event.isSimulated && !event.isTrigger ) {
-                                                       jQuery.event.simulate( "change", this.parentNode, event, true );
-                                               }
-                                       });
-                                       elem._change_attached = true;
-                               }
-                       });
-               },
-
-               handle: function( event ) {
-                       var elem = event.target;
-
-                       // Swallow native change events from checkbox/radio, we already triggered them above
-                       if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) {
-                               return event.handleObj.handler.apply( this, arguments );
-                       }
-               },
-
-               teardown: function() {
-                       jQuery.event.remove( this, "._change" );
-
-                       return rformElems.test( this.nodeName );
-               }
-       };
-}
-
-// Create "bubbling" focus and blur events
-if ( !jQuery.support.focusinBubbles ) {
-       jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
-
-               // Attach a single capturing handler while someone wants focusin/focusout
-               var attaches = 0,
-                       handler = function( event ) {
-                               jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
-                       };
-
-               jQuery.event.special[ fix ] = {
-                       setup: function() {
-                               if ( attaches++ === 0 ) {
-                                       document.addEventListener( orig, handler, true );
-                               }
-                       },
-                       teardown: function() {
-                               if ( --attaches === 0 ) {
-                                       document.removeEventListener( orig, handler, true );
-                               }
-                       }
-               };
-       });
-}
-
-jQuery.fn.extend({
-
-       on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
-               var origFn, type;
-
-               // Types can be a map of types/handlers
-               if ( typeof types === "object" ) {
-                       // ( types-Object, selector, data )
-                       if ( typeof selector !== "string" ) {
-                               // ( types-Object, data )
-                               data = selector;
-                               selector = undefined;
-                       }
-                       for ( type in types ) {
-                               this.on( type, selector, data, types[ type ], one );
-                       }
-                       return this;
-               }
-
-               if ( data == null && fn == null ) {
-                       // ( types, fn )
-                       fn = selector;
-                       data = selector = undefined;
-               } else if ( fn == null ) {
-                       if ( typeof selector === "string" ) {
-                               // ( types, selector, fn )
-                               fn = data;
-                               data = undefined;
-                       } else {
-                               // ( types, data, fn )
-                               fn = data;
-                               data = selector;
-                               selector = undefined;
-                       }
-               }
-               if ( fn === false ) {
-                       fn = returnFalse;
-               } else if ( !fn ) {
-                       return this;
-               }
-
-               if ( one === 1 ) {
-                       origFn = fn;
-                       fn = function( event ) {
-                               // Can use an empty set, since event contains the info
-                               jQuery().off( event );
-                               return origFn.apply( this, arguments );
-                       };
-                       // Use same guid so caller can remove using origFn
-                       fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
-               }
-               return this.each( function() {
-                       jQuery.event.add( this, types, fn, data, selector );
-               });
-       },
-       one: function( types, selector, data, fn ) {
-               return this.on.call( this, types, selector, data, fn, 1 );
-       },
-       off: function( types, selector, fn ) {
-               if ( types && types.preventDefault && types.handleObj ) {
-                       // ( event )  dispatched jQuery.Event
-                       var handleObj = types.handleObj;
-                       jQuery( types.delegateTarget ).off(
-                               handleObj.namespace? handleObj.type + "." + handleObj.namespace : handleObj.type,
-                               handleObj.selector,
-                               handleObj.handler
-                       );
-                       return this;
-               }
-               if ( typeof types === "object" ) {
-                       // ( types-object [, selector] )
-                       for ( var type in types ) {
-                               this.off( type, selector, types[ type ] );
-                       }
-                       return this;
-               }
-               if ( selector === false || typeof selector === "function" ) {
-                       // ( types [, fn] )
-                       fn = selector;
-                       selector = undefined;
-               }
-               if ( fn === false ) {
-                       fn = returnFalse;
-               }
-               return this.each(function() {
-                       jQuery.event.remove( this, types, fn, selector );
-               });
-       },
-
-       bind: function( types, data, fn ) {
-               return this.on( types, null, data, fn );
-       },
-       unbind: function( types, fn ) {
-               return this.off( types, null, fn );
-       },
-
-       live: function( types, data, fn ) {
-               jQuery( this.context ).on( types, this.selector, data, fn );
-               return this;
-       },
-       die: function( types, fn ) {
-               jQuery( this.context ).off( types, this.selector || "**", fn );
-               return this;
-       },
-
-       delegate: function( selector, types, data, fn ) {
-               return this.on( types, selector, data, fn );
-       },
-       undelegate: function( selector, types, fn ) {
-               // ( namespace ) or ( selector, types [, fn] )
-               return arguments.length == 1? this.off( selector, "**" ) : this.off( types, selector, fn );
-       },
-
-       trigger: function( type, data ) {
-               return this.each(function() {
-                       jQuery.event.trigger( type, data, this );
-               });
-       },
-       triggerHandler: function( type, data ) {
-               if ( this[0] ) {
-                       return jQuery.event.trigger( type, data, this[0], true );
-               }
-       },
-
-       toggle: function( fn ) {
-               // Save reference to arguments for access in closure
-               var args = arguments,
-                       guid = fn.guid || jQuery.guid++,
-                       i = 0,
-                       toggler = function( event ) {
-                               // Figure out which function to execute
-                               var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i;
-                               jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 );
-
-                               // Make sure that clicks stop
-                               event.preventDefault();
-
-                               // and execute the function
-                               return args[ lastToggle ].apply( this, arguments ) || false;
-                       };
-
-               // link all the functions, so any of them can unbind this click handler
-               toggler.guid = guid;
-               while ( i < args.length ) {
-                       args[ i++ ].guid = guid;
-               }
-
-               return this.click( toggler );
-       },
-
-       hover: function( fnOver, fnOut ) {
-               return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
-       }
-});
-
-jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
-       "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
-       "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {
-
-       // Handle event binding
-       jQuery.fn[ name ] = function( data, fn ) {
-               if ( fn == null ) {
-                       fn = data;
-                       data = null;
-               }
-
-               return arguments.length > 0 ?
-                       this.on( name, null, data, fn ) :
-                       this.trigger( name );
-       };
-
-       if ( jQuery.attrFn ) {
-               jQuery.attrFn[ name ] = true;
-       }
-
-       if ( rkeyEvent.test( name ) ) {
-               jQuery.event.fixHooks[ name ] = jQuery.event.keyHooks;
-       }
-
-       if ( rmouseEvent.test( name ) ) {
-               jQuery.event.fixHooks[ name ] = jQuery.event.mouseHooks;
-       }
-});
-
-
-
-/*!
- * Sizzle CSS Selector Engine
- *  Copyright 2011, The Dojo Foundation
- *  Released under the MIT, BSD, and GPL Licenses.
- *  More information: http://sizzlejs.com/
- */
-(function(){
-
-var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
-       expando = "sizcache" + (Math.random() + '').replace('.', ''),
-       done = 0,
-       toString = Object.prototype.toString,
-       hasDuplicate = false,
-       baseHasDuplicate = true,
-       rBackslash = /\\/g,
-       rReturn = /\r\n/g,
-       rNonWord = /\W/;
-
-// Here we check if the JavaScript engine is using some sort of
-// optimization where it does not always call our comparision
-// function. If that is the case, discard the hasDuplicate value.
-//   Thus far that includes Google Chrome.
-[0, 0].sort(function() {
-       baseHasDuplicate = false;
-       return 0;
-});
-
-var Sizzle = function( selector, context, results, seed ) {
-       results = results || [];
-       context = context || document;
-
-       var origContext = context;
-
-       if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
-               return [];
-       }
-       
-       if ( !selector || typeof selector !== "string" ) {
-               return results;
-       }
-
-       var m, set, checkSet, extra, ret, cur, pop, i,
-               prune = true,
-               contextXML = Sizzle.isXML( context ),
-               parts = [],
-               soFar = selector;
-       
-       // Reset the position of the chunker regexp (start from head)
-       do {
-               chunker.exec( "" );
-               m = chunker.exec( soFar );
-
-               if ( m ) {
-                       soFar = m[3];
-               
-                       parts.push( m[1] );
-               
-                       if ( m[2] ) {
-                               extra = m[3];
-                               break;
-                       }
-               }
-       } while ( m );
-
-       if ( parts.length > 1 && origPOS.exec( selector ) ) {
-
-               if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
-                       set = posProcess( parts[0] + parts[1], context, seed );
-
-               } else {
-                       set = Expr.relative[ parts[0] ] ?
-                               [ context ] :
-                               Sizzle( parts.shift(), context );
-
-                       while ( parts.length ) {
-                               selector = parts.shift();
-
-                               if ( Expr.relative[ selector ] ) {
-                                       selector += parts.shift();
-                               }
-                               
-                               set = posProcess( selector, set, seed );
-                       }
-               }
-
-       } else {
-               // Take a shortcut and set the context if the root selector is an ID
-               // (but not if it'll be faster if the inner selector is an ID)
-               if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
-                               Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
-
-                       ret = Sizzle.find( parts.shift(), context, contextXML );
-                       context = ret.expr ?
-                               Sizzle.filter( ret.expr, ret.set )[0] :
-                               ret.set[0];
-               }
-
-               if ( context ) {
-                       ret = seed ?
-                               { expr: parts.pop(), set: makeArray(seed) } :
-                               Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );
-
-                       set = ret.expr ?
-                               Sizzle.filter( ret.expr, ret.set ) :
-                               ret.set;
-
-                       if ( parts.length > 0 ) {
-                               checkSet = makeArray( set );
-
-                       } else {
-                               prune = false;
-                       }
-
-                       while ( parts.length ) {
-                               cur = parts.pop();
-                               pop = cur;
-
-                               if ( !Expr.relative[ cur ] ) {
-                                       cur = "";
-                               } else {
-                                       pop = parts.pop();
-                               }
-
-                               if ( pop == null ) {
-                                       pop = context;
-                               }
-
-                               Expr.relative[ cur ]( checkSet, pop, contextXML );
-                       }
-
-               } else {
-                       checkSet = parts = [];
-               }
-       }
-
-       if ( !checkSet ) {
-               checkSet = set;
-       }
-
-       if ( !checkSet ) {
-               Sizzle.error( cur || selector );
-       }
-
-       if ( toString.call(checkSet) === "[object Array]" ) {
-               if ( !prune ) {
-                       results.push.apply( results, checkSet );
-
-               } else if ( context && context.nodeType === 1 ) {
-                       for ( i = 0; checkSet[i] != null; i++ ) {
-                               if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {
-                                       results.push( set[i] );
-                               }
-                       }
-
-               } else {
-                       for ( i = 0; checkSet[i] != null; i++ ) {
-                               if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
-                                       results.push( set[i] );
-                               }
-                       }
-               }
-
-       } else {
-               makeArray( checkSet, results );
-       }
-
-       if ( extra ) {
-               Sizzle( extra, origContext, results, seed );
-               Sizzle.uniqueSort( results );
-       }
-
-       return results;
-};
-
-Sizzle.uniqueSort = function( results ) {
-       if ( sortOrder ) {
-               hasDuplicate = baseHasDuplicate;
-               results.sort( sortOrder );
-
-               if ( hasDuplicate ) {
-                       for ( var i = 1; i < results.length; i++ ) {
-                               if ( results[i] === results[ i - 1 ] ) {
-                                       results.splice( i--, 1 );
-                               }
-                       }
-               }
-       }
-
-       return results;
-};
-
-Sizzle.matches = function( expr, set ) {
-       return Sizzle( expr, null, null, set );
-};
-
-Sizzle.matchesSelector = function( node, expr ) {
-       return Sizzle( expr, null, null, [node] ).length > 0;
-};
-
-Sizzle.find = function( expr, context, isXML ) {
-       var set, i, len, match, type, left;
-
-       if ( !expr ) {
-               return [];
-       }
-
-       for ( i = 0, len = Expr.order.length; i < len; i++ ) {
-               type = Expr.order[i];
-               
-               if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
-                       left = match[1];
-                       match.splice( 1, 1 );
-
-                       if ( left.substr( left.length - 1 ) !== "\\" ) {
-                               match[1] = (match[1] || "").replace( rBackslash, "" );
-                               set = Expr.find[ type ]( match, context, isXML );
-
-                               if ( set != null ) {
-                                       expr = expr.replace( Expr.match[ type ], "" );
-                                       break;
-                               }
-                       }
-               }
-       }
-
-       if ( !set ) {
-               set = typeof context.getElementsByTagName !== "undefined" ?
-                       context.getElementsByTagName( "*" ) :
-                       [];
-       }
-
-       return { set: set, expr: expr };
-};
-
-Sizzle.filter = function( expr, set, inplace, not ) {
-       var match, anyFound,
-               type, found, item, filter, left,
-               i, pass,
-               old = expr,
-               result = [],
-               curLoop = set,
-               isXMLFilter = set && set[0] && Sizzle.isXML( set[0] );
-
-       while ( expr && set.length ) {
-               for ( type in Expr.filter ) {
-                       if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
-                               filter = Expr.filter[ type ];
-                               left = match[1];
-
-                               anyFound = false;
-
-                               match.splice(1,1);
-
-                               if ( left.substr( left.length - 1 ) === "\\" ) {
-                                       continue;
-                               }
-
-                               if ( curLoop === result ) {
-                                       result = [];
-                               }
-
-                               if ( Expr.preFilter[ type ] ) {
-                                       match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
-
-                                       if ( !match ) {
-                                               anyFound = found = true;
-
-                                       } else if ( match === true ) {
-                                               continue;
-                                       }
-                               }
-
-                               if ( match ) {
-                                       for ( i = 0; (item = curLoop[i]) != null; i++ ) {
-                                               if ( item ) {
-                                                       found = filter( item, match, i, curLoop );
-                                                       pass = not ^ found;
-
-                                                       if ( inplace && found != null ) {
-                                                               if ( pass ) {
-                                                                       anyFound = true;
-
-                                                               } else {
-                                                                       curLoop[i] = false;
-                                                               }
-
-                                                       } else if ( pass ) {
-                                                               result.push( item );
-                                                               anyFound = true;
-                                                       }
-                                               }
-                                       }
-                               }
-
-                               if ( found !== undefined ) {
-                                       if ( !inplace ) {
-                                               curLoop = result;
-                                       }
-
-                                       expr = expr.replace( Expr.match[ type ], "" );
-
-                                       if ( !anyFound ) {
-                                               return [];
-                                       }
-
-                                       break;
-                               }
-                       }
-               }
-
-               // Improper expression
-               if ( expr === old ) {
-                       if ( anyFound == null ) {
-                               Sizzle.error( expr );
-
-                       } else {
-                               break;
-                       }
-               }
-
-               old = expr;
-       }
-
-       return curLoop;
-};
-
-Sizzle.error = function( msg ) {
-       throw new Error( "Syntax error, unrecognized expression: " + msg );
-};
-
-/**
- * Utility function for retreiving the text value of an array of DOM nodes
- * @param {Array|Element} elem
- */
-var getText = Sizzle.getText = function( elem ) {
-    var i, node,
-               nodeType = elem.nodeType,
-               ret = "";
-
-       if ( nodeType ) {
-               if ( nodeType === 1 || nodeType === 9 ) {
-                       // Use textContent || innerText for elements
-                       if ( typeof elem.textContent === 'string' ) {
-                               return elem.textContent;
-                       } else if ( typeof elem.innerText === 'string' ) {
-                               // Replace IE's carriage returns
-                               return elem.innerText.replace( rReturn, '' );
-                       } else {
-                               // Traverse it's children
-                               for ( elem = elem.firstChild; elem; elem = elem.nextSibling) {
-                                       ret += getText( elem );
-                               }
-                       }
-               } else if ( nodeType === 3 || nodeType === 4 ) {
-                       return elem.nodeValue;
-               }
-       } else {
-
-               // If no nodeType, this is expected to be an array
-               for ( i = 0; (node = elem[i]); i++ ) {
-                       // Do not traverse comment nodes
-                       if ( node.nodeType !== 8 ) {
-                               ret += getText( node );
-                       }
-               }
-       }
-       return ret;
-};
-
-var Expr = Sizzle.selectors = {
-       order: [ "ID", "NAME", "TAG" ],
-
-       match: {
-               ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
-               CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
-               NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
-               ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
-               TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,
-               CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,
-               POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,
-               PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
-       },
-
-       leftMatch: {},
-
-       attrMap: {
-               "class": "className",
-               "for": "htmlFor"
-       },
-
-       attrHandle: {
-               href: function( elem ) {
-                       return elem.getAttribute( "href" );
-               },
-               type: function( elem ) {
-                       return elem.getAttribute( "type" );
-               }
-       },
-
-       relative: {
-               "+": function(checkSet, part){
-                       var isPartStr = typeof part === "string",
-                               isTag = isPartStr && !rNonWord.test( part ),
-                               isPartStrNotTag = isPartStr && !isTag;
-
-                       if ( isTag ) {
-                               part = part.toLowerCase();
-                       }
-
-                       for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
-                               if ( (elem = checkSet[i]) ) {
-                                       while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
-
-                                       checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?
-                                               elem || false :
-                                               elem === part;
-                               }
-                       }
-
-                       if ( isPartStrNotTag ) {
-                               Sizzle.filter( part, checkSet, true );
-                       }
-               },
-
-               ">": function( checkSet, part ) {
-                       var elem,
-                               isPartStr = typeof part === "string",
-                               i = 0,
-                               l = checkSet.length;
-
-                       if ( isPartStr && !rNonWord.test( part ) ) {
-                               part = part.toLowerCase();
-
-                               for ( ; i < l; i++ ) {
-                                       elem = checkSet[i];
-
-                                       if ( elem ) {
-                                               var parent = elem.parentNode;
-                                               checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
-                                       }
-                               }
-
-                       } else {
-                               for ( ; i < l; i++ ) {
-                                       elem = checkSet[i];
-
-                                       if ( elem ) {
-                                               checkSet[i] = isPartStr ?
-                                                       elem.parentNode :
-                                                       elem.parentNode === part;
-                                       }
-                               }
-
-                               if ( isPartStr ) {
-                                       Sizzle.filter( part, checkSet, true );
-                               }
-                       }
-               },
-
-               "": function(checkSet, part, isXML){
-                       var nodeCheck,
-                               doneName = done++,
-                               checkFn = dirCheck;
-
-                       if ( typeof part === "string" && !rNonWord.test( part ) ) {
-                               part = part.toLowerCase();
-                               nodeCheck = part;
-                               checkFn = dirNodeCheck;
-                       }
-
-                       checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML );
-               },
-
-               "~": function( checkSet, part, isXML ) {
-                       var nodeCheck,
-                               doneName = done++,
-                               checkFn = dirCheck;
-
-                       if ( typeof part === "string" && !rNonWord.test( part ) ) {
-                               part = part.toLowerCase();
-                               nodeCheck = part;
-                               checkFn = dirNodeCheck;
-                       }
-
-                       checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML );
-               }
-       },
-
-       find: {
-               ID: function( match, context, isXML ) {
-                       if ( typeof context.getElementById !== "undefined" && !isXML ) {
-                               var m = context.getElementById(match[1]);
-                               // Check parentNode to catch when Blackberry 4.6 returns
-                               // nodes that are no longer in the document #6963
-                               return m && m.parentNode ? [m] : [];
-                       }
-               },
-
-               NAME: function( match, context ) {
-                       if ( typeof context.getElementsByName !== "undefined" ) {
-                               var ret = [],
-                                       results = context.getElementsByName( match[1] );
-
-                               for ( var i = 0, l = results.length; i < l; i++ ) {
-                                       if ( results[i].getAttribute("name") === match[1] ) {
-                                               ret.push( results[i] );
-                                       }
-                               }
-
-                               return ret.length === 0 ? null : ret;
-                       }
-               },
-
-               TAG: function( match, context ) {
-                       if ( typeof context.getElementsByTagName !== "undefined" ) {
-                               return context.getElementsByTagName( match[1] );
-                       }
-               }
-       },
-       preFilter: {
-               CLASS: function( match, curLoop, inplace, result, not, isXML ) {
-                       match = " " + match[1].replace( rBackslash, "" ) + " ";
-
-                       if ( isXML ) {
-                               return match;
-                       }
-
-                       for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
-                               if ( elem ) {
-                                       if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) {
-                                               if ( !inplace ) {
-                                                       result.push( elem );
-                                               }
-
-                                       } else if ( inplace ) {
-                                               curLoop[i] = false;
-                                       }
-                               }
-                       }
-
-                       return false;
-               },
-
-               ID: function( match ) {
-                       return match[1].replace( rBackslash, "" );
-               },
-
-               TAG: function( match, curLoop ) {
-                       return match[1].replace( rBackslash, "" ).toLowerCase();
-               },
-
-               CHILD: function( match ) {
-                       if ( match[1] === "nth" ) {
-                               if ( !match[2] ) {
-                                       Sizzle.error( match[0] );
-                               }
-
-                               match[2] = match[2].replace(/^\+|\s*/g, '');
-
-                               // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
-                               var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec(
-                                       match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
-                                       !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
-
-                               // calculate the numbers (first)n+(last) including if they are negative
-                               match[2] = (test[1] + (test[2] || 1)) - 0;
-                               match[3] = test[3] - 0;
-                       }
-                       else if ( match[2] ) {
-                               Sizzle.error( match[0] );
-                       }
-
-                       // TODO: Move to normal caching system
-                       match[0] = done++;
-
-                       return match;
-               },
-
-               ATTR: function( match, curLoop, inplace, result, not, isXML ) {
-                       var name = match[1] = match[1].replace( rBackslash, "" );
-                       
-                       if ( !isXML && Expr.attrMap[name] ) {
-                               match[1] = Expr.attrMap[name];
-                       }
-
-                       // Handle if an un-quoted value was used
-                       match[4] = ( match[4] || match[5] || "" ).replace( rBackslash, "" );
-
-                       if ( match[2] === "~=" ) {
-                               match[4] = " " + match[4] + " ";
-                       }
-
-                       return match;
-               },
-
-               PSEUDO: function( match, curLoop, inplace, result, not ) {
-                       if ( match[1] === "not" ) {
-                               // If we're dealing with a complex expression, or a simple one
-                               if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
-                                       match[3] = Sizzle(match[3], null, null, curLoop);
-
-                               } else {
-                                       var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
-
-                                       if ( !inplace ) {
-                                               result.push.apply( result, ret );
-                                       }
-
-                                       return false;
-                               }
-
-                       } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
-                               return true;
-                       }
-                       
-                       return match;
-               },
-
-               POS: function( match ) {
-                       match.unshift( true );
-
-                       return match;
-               }
-       },
-       
-       filters: {
-               enabled: function( elem ) {
-                       return elem.disabled === false && elem.type !== "hidden";
-               },
-
-               disabled: function( elem ) {
-                       return elem.disabled === true;
-               },
-
-               checked: function( elem ) {
-                       return elem.checked === true;
-               },
-               
-               selected: function( elem ) {
-                       // Accessing this property makes selected-by-default
-                       // options in Safari work properly
-                       if ( elem.parentNode ) {
-                               elem.parentNode.selectedIndex;
-                       }
-                       
-                       return elem.selected === true;
-               },
-
-               parent: function( elem ) {
-                       return !!elem.firstChild;
-               },
-
-               empty: function( elem ) {
-                       return !elem.firstChild;
-               },
-
-               has: function( elem, i, match ) {
-                       return !!Sizzle( match[3], elem ).length;
-               },
-
-               header: function( elem ) {
-                       return (/h\d/i).test( elem.nodeName );
-               },
-
-               text: function( elem ) {
-                       var attr = elem.getAttribute( "type" ), type = elem.type;
-                       // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) 
-                       // use getAttribute instead to test this case
-                       return elem.nodeName.toLowerCase() === "input" && "text" === type && ( attr === type || attr === null );
-               },
-
-               radio: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "radio" === elem.type;
-               },
-
-               checkbox: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "checkbox" === elem.type;
-               },
-
-               file: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "file" === elem.type;
-               },
-
-               password: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "password" === elem.type;
-               },
-
-               submit: function( elem ) {
-                       var name = elem.nodeName.toLowerCase();
-                       return (name === "input" || name === "button") && "submit" === elem.type;
-               },
-
-               image: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "image" === elem.type;
-               },
-
-               reset: function( elem ) {
-                       var name = elem.nodeName.toLowerCase();
-                       return (name === "input" || name === "button") && "reset" === elem.type;
-               },
-
-               button: function( elem ) {
-                       var name = elem.nodeName.toLowerCase();
-                       return name === "input" && "button" === elem.type || name === "button";
-               },
-
-               input: function( elem ) {
-                       return (/input|select|textarea|button/i).test( elem.nodeName );
-               },
-
-               focus: function( elem ) {
-                       return elem === elem.ownerDocument.activeElement;
-               }
-       },
-       setFilters: {
-               first: function( elem, i ) {
-                       return i === 0;
-               },
-
-               last: function( elem, i, match, array ) {
-                       return i === array.length - 1;
-               },
-
-               even: function( elem, i ) {
-                       return i % 2 === 0;
-               },
-
-               odd: function( elem, i ) {
-                       return i % 2 === 1;
-               },
-
-               lt: function( elem, i, match ) {
-                       return i < match[3] - 0;
-               },
-
-               gt: function( elem, i, match ) {
-                       return i > match[3] - 0;
-               },
-
-               nth: function( elem, i, match ) {
-                       return match[3] - 0 === i;
-               },
-
-               eq: function( elem, i, match ) {
-                       return match[3] - 0 === i;
-               }
-       },
-       filter: {
-               PSEUDO: function( elem, match, i, array ) {
-                       var name = match[1],
-                               filter = Expr.filters[ name ];
-
-                       if ( filter ) {
-                               return filter( elem, i, match, array );
-
-                       } else if ( name === "contains" ) {
-                               return (elem.textContent || elem.innerText || getText([ elem ]) || "").indexOf(match[3]) >= 0;
-
-                       } else if ( name === "not" ) {
-                               var not = match[3];
-
-                               for ( var j = 0, l = not.length; j < l; j++ ) {
-                                       if ( not[j] === elem ) {
-                                               return false;
-                                       }
-                               }
-
-                               return true;
-
-                       } else {
-                               Sizzle.error( name );
-                       }
-               },
-
-               CHILD: function( elem, match ) {
-                       var first, last,
-                               doneName, parent, cache,
-                               count, diff,
-                               type = match[1],
-                               node = elem;
-
-                       switch ( type ) {
-                               case "only":
-                               case "first":
-                                       while ( (node = node.previousSibling) )  {
-                                               if ( node.nodeType === 1 ) { 
-                                                       return false; 
-                                               }
-                                       }
-
-                                       if ( type === "first" ) { 
-                                               return true; 
-                                       }
-
-                                       node = elem;
-
-                               case "last":
-                                       while ( (node = node.nextSibling) )      {
-                                               if ( node.nodeType === 1 ) { 
-                                                       return false; 
-                                               }
-                                       }
-
-                                       return true;
-
-                               case "nth":
-                                       first = match[2];
-                                       last = match[3];
-
-                                       if ( first === 1 && last === 0 ) {
-                                               return true;
-                                       }
-                                       
-                                       doneName = match[0];
-                                       parent = elem.parentNode;
-       
-                                       if ( parent && (parent[ expando ] !== doneName || !elem.nodeIndex) ) {
-                                               count = 0;
-                                               
-                                               for ( node = parent.firstChild; node; node = node.nextSibling ) {
-                                                       if ( node.nodeType === 1 ) {
-                                                               node.nodeIndex = ++count;
-                                                       }
-                                               } 
-
-                                               parent[ expando ] = doneName;
-                                       }
-                                       
-                                       diff = elem.nodeIndex - last;
-
-                                       if ( first === 0 ) {
-                                               return diff === 0;
-
-                                       } else {
-                                               return ( diff % first === 0 && diff / first >= 0 );
-                                       }
-                       }
-               },
-
-               ID: function( elem, match ) {
-                       return elem.nodeType === 1 && elem.getAttribute("id") === match;
-               },
-
-               TAG: function( elem, match ) {
-                       return (match === "*" && elem.nodeType === 1) || !!elem.nodeName && elem.nodeName.toLowerCase() === match;
-               },
-               
-               CLASS: function( elem, match ) {
-                       return (" " + (elem.className || elem.getAttribute("class")) + " ")
-                               .indexOf( match ) > -1;
-               },
-
-               ATTR: function( elem, match ) {
-                       var name = match[1],
-                               result = Sizzle.attr ?
-                                       Sizzle.attr( elem, name ) :
-                                       Expr.attrHandle[ name ] ?
-                                       Expr.attrHandle[ name ]( elem ) :
-                                       elem[ name ] != null ?
-                                               elem[ name ] :
-                                               elem.getAttribute( name ),
-                               value = result + "",
-                               type = match[2],
-                               check = match[4];
-
-                       return result == null ?
-                               type === "!=" :
-                               !type && Sizzle.attr ?
-                               result != null :
-                               type === "=" ?
-                               value === check :
-                               type === "*=" ?
-                               value.indexOf(check) >= 0 :
-                               type === "~=" ?
-                               (" " + value + " ").indexOf(check) >= 0 :
-                               !check ?
-                               value && result !== false :
-                               type === "!=" ?
-                               value !== check :
-                               type === "^=" ?
-                               value.indexOf(check) === 0 :
-                               type === "$=" ?
-                               value.substr(value.length - check.length) === check :
-                               type === "|=" ?
-                               value === check || value.substr(0, check.length + 1) === check + "-" :
-                               false;
-               },
-
-               POS: function( elem, match, i, array ) {
-                       var name = match[2],
-                               filter = Expr.setFilters[ name ];
-
-                       if ( filter ) {
-                               return filter( elem, i, match, array );
-                       }
-               }
-       }
-};
-
-var origPOS = Expr.match.POS,
-       fescape = function(all, num){
-               return "\\" + (num - 0 + 1);
-       };
-
-for ( var type in Expr.match ) {
-       Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) );
-       Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) );
-}
-
-var makeArray = function( array, results ) {
-       array = Array.prototype.slice.call( array, 0 );
-
-       if ( results ) {
-               results.push.apply( results, array );
-               return results;
-       }
-       
-       return array;
-};
-
-// Perform a simple check to determine if the browser is capable of
-// converting a NodeList to an array using builtin methods.
-// Also verifies that the returned array holds DOM nodes
-// (which is not the case in the Blackberry browser)
-try {
-       Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;
-
-// Provide a fallback method if it does not work
-} catch( e ) {
-       makeArray = function( array, results ) {
-               var i = 0,
-                       ret = results || [];
-
-               if ( toString.call(array) === "[object Array]" ) {
-                       Array.prototype.push.apply( ret, array );
-
-               } else {
-                       if ( typeof array.length === "number" ) {
-                               for ( var l = array.length; i < l; i++ ) {
-                                       ret.push( array[i] );
-                               }
-
-                       } else {
-                               for ( ; array[i]; i++ ) {
-                                       ret.push( array[i] );
-                               }
-                       }
-               }
-
-               return ret;
-       };
-}
-
-var sortOrder, siblingCheck;
-
-if ( document.documentElement.compareDocumentPosition ) {
-       sortOrder = function( a, b ) {
-               if ( a === b ) {
-                       hasDuplicate = true;
-                       return 0;
-               }
-
-               if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
-                       return a.compareDocumentPosition ? -1 : 1;
-               }
-
-               return a.compareDocumentPosition(b) & 4 ? -1 : 1;
-       };
-
-} else {
-       sortOrder = function( a, b ) {
-               // The nodes are identical, we can exit early
-               if ( a === b ) {
-                       hasDuplicate = true;
-                       return 0;
-
-               // Fallback to using sourceIndex (in IE) if it's available on both nodes
-               } else if ( a.sourceIndex && b.sourceIndex ) {
-                       return a.sourceIndex - b.sourceIndex;
-               }
-
-               var al, bl,
-                       ap = [],
-                       bp = [],
-                       aup = a.parentNode,
-                       bup = b.parentNode,
-                       cur = aup;
-
-               // If the nodes are siblings (or identical) we can do a quick check
-               if ( aup === bup ) {
-                       return siblingCheck( a, b );
-
-               // If no parents were found then the nodes are disconnected
-               } else if ( !aup ) {
-                       return -1;
-
-               } else if ( !bup ) {
-                       return 1;
-               }
-
-               // Otherwise they're somewhere else in the tree so we need
-               // to build up a full list of the parentNodes for comparison
-               while ( cur ) {
-                       ap.unshift( cur );
-                       cur = cur.parentNode;
-               }
-
-               cur = bup;
-
-               while ( cur ) {
-                       bp.unshift( cur );
-                       cur = cur.parentNode;
-               }
-
-               al = ap.length;
-               bl = bp.length;
-
-               // Start walking down the tree looking for a discrepancy
-               for ( var i = 0; i < al && i < bl; i++ ) {
-                       if ( ap[i] !== bp[i] ) {
-                               return siblingCheck( ap[i], bp[i] );
-                       }
-               }
-
-               // We ended someplace up the tree so do a sibling check
-               return i === al ?
-                       siblingCheck( a, bp[i], -1 ) :
-                       siblingCheck( ap[i], b, 1 );
-       };
-
-       siblingCheck = function( a, b, ret ) {
-               if ( a === b ) {
-                       return ret;
-               }
-
-               var cur = a.nextSibling;
-
-               while ( cur ) {
-                       if ( cur === b ) {
-                               return -1;
-                       }
-
-                       cur = cur.nextSibling;
-               }
-
-               return 1;
-       };
-}
-
-// Check to see if the browser returns elements by name when
-// querying by getElementById (and provide a workaround)
-(function(){
-       // We're going to inject a fake input element with a specified name
-       var form = document.createElement("div"),
-               id = "script" + (new Date()).getTime(),
-               root = document.documentElement;
-
-       form.innerHTML = "<a name='" + id + "'/>";
-
-       // Inject it into the root element, check its status, and remove it quickly
-       root.insertBefore( form, root.firstChild );
-
-       // The workaround has to do additional checks after a getElementById
-       // Which slows things down for other browsers (hence the branching)
-       if ( document.getElementById( id ) ) {
-               Expr.find.ID = function( match, context, isXML ) {
-                       if ( typeof context.getElementById !== "undefined" && !isXML ) {
-                               var m = context.getElementById(match[1]);
-
-                               return m ?
-                                       m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ?
-                                               [m] :
-                                               undefined :
-                                       [];
-                       }
-               };
-
-               Expr.filter.ID = function( elem, match ) {
-                       var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
-
-                       return elem.nodeType === 1 && node && node.nodeValue === match;
-               };
-       }
-
-       root.removeChild( form );
-
-       // release memory in IE
-       root = form = null;
-})();
-
-(function(){
-       // Check to see if the browser returns only elements
-       // when doing getElementsByTagName("*")
-
-       // Create a fake element
-       var div = document.createElement("div");
-       div.appendChild( document.createComment("") );
-
-       // Make sure no comments are found
-       if ( div.getElementsByTagName("*").length > 0 ) {
-               Expr.find.TAG = function( match, context ) {
-                       var results = context.getElementsByTagName( match[1] );
-
-                       // Filter out possible comments
-                       if ( match[1] === "*" ) {
-                               var tmp = [];
-
-                               for ( var i = 0; results[i]; i++ ) {
-                                       if ( results[i].nodeType === 1 ) {
-                                               tmp.push( results[i] );
-                                       }
-                               }
-
-                               results = tmp;
-                       }
-
-                       return results;
-               };
-       }
-
-       // Check to see if an attribute returns normalized href attributes
-       div.innerHTML = "<a href='#'></a>";
-
-       if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
-                       div.firstChild.getAttribute("href") !== "#" ) {
-
-               Expr.attrHandle.href = function( elem ) {
-                       return elem.getAttribute( "href", 2 );
-               };
-       }
-
-       // release memory in IE
-       div = null;
-})();
-
-if ( document.querySelectorAll ) {
-       (function(){
-               var oldSizzle = Sizzle,
-                       div = document.createElement("div"),
-                       id = "__sizzle__";
-
-               div.innerHTML = "<p class='TEST'></p>";
-
-               // Safari can't handle uppercase or unicode characters when
-               // in quirks mode.
-               if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
-                       return;
-               }
-       
-               Sizzle = function( query, context, extra, seed ) {
-                       context = context || document;
-
-                       // Only use querySelectorAll on non-XML documents
-                       // (ID selectors don't work in non-HTML documents)
-                       if ( !seed && !Sizzle.isXML(context) ) {
-                               // See if we find a selector to speed up
-                               var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query );
-                               
-                               if ( match && (context.nodeType === 1 || context.nodeType === 9) ) {
-                                       // Speed-up: Sizzle("TAG")
-                                       if ( match[1] ) {
-                                               return makeArray( context.getElementsByTagName( query ), extra );
-                                       
-                                       // Speed-up: Sizzle(".CLASS")
-                                       } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) {
-                                               return makeArray( context.getElementsByClassName( match[2] ), extra );
-                                       }
-                               }
-                               
-                               if ( context.nodeType === 9 ) {
-                                       // Speed-up: Sizzle("body")
-                                       // The body element only exists once, optimize finding it
-                                       if ( query === "body" && context.body ) {
-                                               return makeArray( [ context.body ], extra );
-                                               
-                                       // Speed-up: Sizzle("#ID")
-                                       } else if ( match && match[3] ) {
-                                               var elem = context.getElementById( match[3] );
-
-                                               // Check parentNode to catch when Blackberry 4.6 returns
-                                               // nodes that are no longer in the document #6963
-                                               if ( elem && elem.parentNode ) {
-                                                       // Handle the case where IE and Opera return items
-                                                       // by name instead of ID
-                                                       if ( elem.id === match[3] ) {
-                                                               return makeArray( [ elem ], extra );
-                                                       }
-                                                       
-                                               } else {
-                                                       return makeArray( [], extra );
-                                               }
-                                       }
-                                       
-                                       try {
-                                               return makeArray( context.querySelectorAll(query), extra );
-                                       } catch(qsaError) {}
-
-                               // qSA works strangely on Element-rooted queries
-                               // We can work around this by specifying an extra ID on the root
-                               // and working up from there (Thanks to Andrew Dupont for the technique)
-                               // IE 8 doesn't work on object elements
-                               } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
-                                       var oldContext = context,
-                                               old = context.getAttribute( "id" ),
-                                               nid = old || id,
-                                               hasParent = context.parentNode,
-                                               relativeHierarchySelector = /^\s*[+~]/.test( query );
-
-                                       if ( !old ) {
-                                               context.setAttribute( "id", nid );
-                                       } else {
-                                               nid = nid.replace( /'/g, "\\$&" );
-                                       }
-                                       if ( relativeHierarchySelector && hasParent ) {
-                                               context = context.parentNode;
-                                       }
-
-                                       try {
-                                               if ( !relativeHierarchySelector || hasParent ) {
-                                                       return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
-                                               }
-
-                                       } catch(pseudoError) {
-                                       } finally {
-                                               if ( !old ) {
-                                                       oldContext.removeAttribute( "id" );
-                                               }
-                                       }
-                               }
-                       }
-               
-                       return oldSizzle(query, context, extra, seed);
-               };
-
-               for ( var prop in oldSizzle ) {
-                       Sizzle[ prop ] = oldSizzle[ prop ];
-               }
-
-               // release memory in IE
-               div = null;
-       })();
-}
-
-(function(){
-       var html = document.documentElement,
-               matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector;
-
-       if ( matches ) {
-               // Check to see if it's possible to do matchesSelector
-               // on a disconnected node (IE 9 fails this)
-               var disconnectedMatch = !matches.call( document.createElement( "div" ), "div" ),
-                       pseudoWorks = false;
-
-               try {
-                       // This should fail with an exception
-                       // Gecko does not error, returns false instead
-                       matches.call( document.documentElement, "[test!='']:sizzle" );
-       
-               } catch( pseudoError ) {
-                       pseudoWorks = true;
-               }
-
-               Sizzle.matchesSelector = function( node, expr ) {
-                       // Make sure that attribute selectors are quoted
-                       expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']");
-
-                       if ( !Sizzle.isXML( node ) ) {
-                               try { 
-                                       if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) {
-                                               var ret = matches.call( node, expr );
-
-                                               // IE 9's matchesSelector returns false on disconnected nodes
-                                               if ( ret || !disconnectedMatch ||
-                                                               // As well, disconnected nodes are said to be in a document
-                                                               // fragment in IE 9, so check for that
-                                                               node.document && node.document.nodeType !== 11 ) {
-                                                       return ret;
-                                               }
-                                       }
-                               } catch(e) {}
-                       }
-
-                       return Sizzle(expr, null, null, [node]).length > 0;
-               };
-       }
-})();
-
-(function(){
-       var div = document.createElement("div");
-
-       div.innerHTML = "<div class='test e'></div><div class='test'></div>";
-
-       // Opera can't find a second classname (in 9.6)
-       // Also, make sure that getElementsByClassName actually exists
-       if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
-               return;
-       }
-
-       // Safari caches class attributes, doesn't catch changes (in 3.2)
-       div.lastChild.className = "e";
-
-       if ( div.getElementsByClassName("e").length === 1 ) {
-               return;
-       }
-       
-       Expr.order.splice(1, 0, "CLASS");
-       Expr.find.CLASS = function( match, context, isXML ) {
-               if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
-                       return context.getElementsByClassName(match[1]);
-               }
-       };
-
-       // release memory in IE
-       div = null;
-})();
-
-function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
-       for ( var i = 0, l = checkSet.length; i < l; i++ ) {
-               var elem = checkSet[i];
-
-               if ( elem ) {
-                       var match = false;
-
-                       elem = elem[dir];
-
-                       while ( elem ) {
-                               if ( elem[ expando ] === doneName ) {
-                                       match = checkSet[elem.sizset];
-                                       break;
-                               }
-
-                               if ( elem.nodeType === 1 && !isXML ){
-                                       elem[ expando ] = doneName;
-                                       elem.sizset = i;
-                               }
-
-                               if ( elem.nodeName.toLowerCase() === cur ) {
-                                       match = elem;
-                                       break;
-                               }
-
-                               elem = elem[dir];
-                       }
-
-                       checkSet[i] = match;
-               }
-       }
-}
-
-function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
-       for ( var i = 0, l = checkSet.length; i < l; i++ ) {
-               var elem = checkSet[i];
-
-               if ( elem ) {
-                       var match = false;
-                       
-                       elem = elem[dir];
-
-                       while ( elem ) {
-                               if ( elem[ expando ] === doneName ) {
-                                       match = checkSet[elem.sizset];
-                                       break;
-                               }
-
-                               if ( elem.nodeType === 1 ) {
-                                       if ( !isXML ) {
-                                               elem[ expando ] = doneName;
-                                               elem.sizset = i;
-                                       }
-
-                                       if ( typeof cur !== "string" ) {
-                                               if ( elem === cur ) {
-                                                       match = true;
-                                                       break;
-                                               }
-
-                                       } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
-                                               match = elem;
-                                               break;
-                                       }
-                               }
-
-                               elem = elem[dir];
-                       }
-
-                       checkSet[i] = match;
-               }
-       }
-}
-
-if ( document.documentElement.contains ) {
-       Sizzle.contains = function( a, b ) {
-               return a !== b && (a.contains ? a.contains(b) : true);
-       };
-
-} else if ( document.documentElement.compareDocumentPosition ) {
-       Sizzle.contains = function( a, b ) {
-               return !!(a.compareDocumentPosition(b) & 16);
-       };
-
-} else {
-       Sizzle.contains = function() {
-               return false;
-       };
-}
-
-Sizzle.isXML = function( elem ) {
-       // documentElement is verified for cases where it doesn't yet exist
-       // (such as loading iframes in IE - #4833) 
-       var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
-
-       return documentElement ? documentElement.nodeName !== "HTML" : false;
-};
-
-var posProcess = function( selector, context, seed ) {
-       var match,
-               tmpSet = [],
-               later = "",
-               root = context.nodeType ? [context] : context;
-
-       // Position selectors must be done after the filter
-       // And so must :not(positional) so we move all PSEUDOs to the end
-       while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
-               later += match[0];
-               selector = selector.replace( Expr.match.PSEUDO, "" );
-       }
-
-       selector = Expr.relative[selector] ? selector + "*" : selector;
-
-       for ( var i = 0, l = root.length; i < l; i++ ) {
-               Sizzle( selector, root[i], tmpSet, seed );
-       }
-
-       return Sizzle.filter( later, tmpSet );
-};
-
-// EXPOSE
-// Override sizzle attribute retrieval
-Sizzle.attr = jQuery.attr;
-Sizzle.selectors.attrMap = {};
-jQuery.find = Sizzle;
-jQuery.expr = Sizzle.selectors;
-jQuery.expr[":"] = jQuery.expr.filters;
-jQuery.unique = Sizzle.uniqueSort;
-jQuery.text = Sizzle.getText;
-jQuery.isXMLDoc = Sizzle.isXML;
-jQuery.contains = Sizzle.contains;
-
-
-})();
-
-
-var runtil = /Until$/,
-       rparentsprev = /^(?:parents|prevUntil|prevAll)/,
-       // Note: This RegExp should be improved, or likely pulled from Sizzle
-       rmultiselector = /,/,
-       isSimple = /^.[^:#\[\.,]*$/,
-       slice = Array.prototype.slice,
-       POS = jQuery.expr.match.POS,
-       // methods guaranteed to produce a unique set when starting from a unique set
-       guaranteedUnique = {
-               children: true,
-               contents: true,
-               next: true,
-               prev: true
-       };
-
-jQuery.fn.extend({
-       find: function( selector ) {
-               var self = this,
-                       i, l;
-
-               if ( typeof selector !== "string" ) {
-                       return jQuery( selector ).filter(function() {
-                               for ( i = 0, l = self.length; i < l; i++ ) {
-                                       if ( jQuery.contains( self[ i ], this ) ) {
-                                               return true;
-                                       }
-                               }
-                       });
-               }
-
-               var ret = this.pushStack( "", "find", selector ),
-                       length, n, r;
-
-               for ( i = 0, l = this.length; i < l; i++ ) {
-                       length = ret.length;
-                       jQuery.find( selector, this[i], ret );
-
-                       if ( i > 0 ) {
-                               // Make sure that the results are unique
-                               for ( n = length; n < ret.length; n++ ) {
-                                       for ( r = 0; r < length; r++ ) {
-                                               if ( ret[r] === ret[n] ) {
-                                                       ret.splice(n--, 1);
-                                                       break;
-                                               }
-                                       }
-                               }
-                       }
-               }
-
-               return ret;
-       },
-
-       has: function( target ) {
-               var targets = jQuery( target );
-               return this.filter(function() {
-                       for ( var i = 0, l = targets.length; i < l; i++ ) {
-                               if ( jQuery.contains( this, targets[i] ) ) {
-                                       return true;
-                               }
-                       }
-               });
-       },
-
-       not: function( selector ) {
-               return this.pushStack( winnow(this, selector, false), "not", selector);
-       },
-
-       filter: function( selector ) {
-               return this.pushStack( winnow(this, selector, true), "filter", selector );
-       },
-
-       is: function( selector ) {
-               return !!selector && ( 
-                       typeof selector === "string" ?
-                               // If this is a positional selector, check membership in the returned set
-                               // so $("p:first").is("p:last") won't return true for a doc with two "p".
-                               POS.test( selector ) ? 
-                                       jQuery( selector, this.context ).index( this[0] ) >= 0 :
-                                       jQuery.filter( selector, this ).length > 0 :
-                               this.filter( selector ).length > 0 );
-       },
-
-       closest: function( selectors, context ) {
-               var ret = [], i, l, cur = this[0];
-               
-               // Array (deprecated as of jQuery 1.7)
-               if ( jQuery.isArray( selectors ) ) {
-                       var level = 1;
-
-                       while ( cur && cur.ownerDocument && cur !== context ) {
-                               for ( i = 0; i < selectors.length; i++ ) {
-
-                                       if ( jQuery( cur ).is( selectors[ i ] ) ) {
-                                               ret.push({ selector: selectors[ i ], elem: cur, level: level });
-                                       }
-                               }
-
-                               cur = cur.parentNode;
-                               level++;
-                       }
-
-                       return ret;
-               }
-
-               // String
-               var pos = POS.test( selectors ) || typeof selectors !== "string" ?
-                               jQuery( selectors, context || this.context ) :
-                               0;
-
-               for ( i = 0, l = this.length; i < l; i++ ) {
-                       cur = this[i];
-
-                       while ( cur ) {
-                               if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {
-                                       ret.push( cur );
-                                       break;
-
-                               } else {
-                                       cur = cur.parentNode;
-                                       if ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) {
-                                               break;
-                                       }
-                               }
-                       }
-               }
-
-               ret = ret.length > 1 ? jQuery.unique( ret ) : ret;
-
-               return this.pushStack( ret, "closest", selectors );
-       },
-
-       // Determine the position of an element within
-       // the matched set of elements
-       index: function( elem ) {
-
-               // No argument, return index in parent
-               if ( !elem ) {
-                       return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1;
-               }
-
-               // index in selector
-               if ( typeof elem === "string" ) {
-                       return jQuery.inArray( this[0], jQuery( elem ) );
-               }
-
-               // Locate the position of the desired element
-               return jQuery.inArray(
-                       // If it receives a jQuery object, the first element is used
-                       elem.jquery ? elem[0] : elem, this );
-       },
-
-       add: function( selector, context ) {
-               var set = typeof selector === "string" ?
-                               jQuery( selector, context ) :
-                               jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),
-                       all = jQuery.merge( this.get(), set );
-
-               return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?
-                       all :
-                       jQuery.unique( all ) );
-       },
-
-       andSelf: function() {
-               return this.add( this.prevObject );
-       }
-});
-
-// A painfully simple check to see if an element is disconnected
-// from a document (should be improved, where feasible).
-function isDisconnected( node ) {
-       return !node || !node.parentNode || node.parentNode.nodeType === 11;
-}
-
-jQuery.each({
-       parent: function( elem ) {
-               var parent = elem.parentNode;
-               return parent && parent.nodeType !== 11 ? parent : null;
-       },
-       parents: function( elem ) {
-               return jQuery.dir( elem, "parentNode" );
-       },
-       parentsUntil: function( elem, i, until ) {
-               return jQuery.dir( elem, "parentNode", until );
-       },
-       next: function( elem ) {
-               return jQuery.nth( elem, 2, "nextSibling" );
-       },
-       prev: function( elem ) {
-               return jQuery.nth( elem, 2, "previousSibling" );
-       },
-       nextAll: function( elem ) {
-               return jQuery.dir( elem, "nextSibling" );
-       },
-       prevAll: function( elem ) {
-               return jQuery.dir( elem, "previousSibling" );
-       },
-       nextUntil: function( elem, i, until ) {
-               return jQuery.dir( elem, "nextSibling", until );
-       },
-       prevUntil: function( elem, i, until ) {
-               return jQuery.dir( elem, "previousSibling", until );
-       },
-       siblings: function( elem ) {
-               return jQuery.sibling( elem.parentNode.firstChild, elem );
-       },
-       children: function( elem ) {
-               return jQuery.sibling( elem.firstChild );
-       },
-       contents: function( elem ) {
-               return jQuery.nodeName( elem, "iframe" ) ?
-                       elem.contentDocument || elem.contentWindow.document :
-                       jQuery.makeArray( elem.childNodes );
-       }
-}, function( name, fn ) {
-       jQuery.fn[ name ] = function( until, selector ) {
-               var ret = jQuery.map( this, fn, until );
-
-               if ( !runtil.test( name ) ) {
-                       selector = until;
-               }
-
-               if ( selector && typeof selector === "string" ) {
-                       ret = jQuery.filter( selector, ret );
-               }
-
-               ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;
-
-               if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {
-                       ret = ret.reverse();
-               }
-
-               return this.pushStack( ret, name, slice.call( arguments ).join(",") );
-       };
-});
-
-jQuery.extend({
-       filter: function( expr, elems, not ) {
-               if ( not ) {
-                       expr = ":not(" + expr + ")";
-               }
-
-               return elems.length === 1 ?
-                       jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :
-                       jQuery.find.matches(expr, elems);
-       },
-
-       dir: function( elem, dir, until ) {
-               var matched = [],
-                       cur = elem[ dir ];
-
-               while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
-                       if ( cur.nodeType === 1 ) {
-                               matched.push( cur );
-                       }
-                       cur = cur[dir];
-               }
-               return matched;
-       },
-
-       nth: function( cur, result, dir, elem ) {
-               result = result || 1;
-               var num = 0;
-
-               for ( ; cur; cur = cur[dir] ) {
-                       if ( cur.nodeType === 1 && ++num === result ) {
-                               break;
-                       }
-               }
-
-               return cur;
-       },
-
-       sibling: function( n, elem ) {
-               var r = [];
-
-               for ( ; n; n = n.nextSibling ) {
-                       if ( n.nodeType === 1 && n !== elem ) {
-                               r.push( n );
-                       }
-               }
-
-               return r;
-       }
-});
-
-// Implement the identical functionality for filter and not
-function winnow( elements, qualifier, keep ) {
-
-       // Can't pass null or undefined to indexOf in Firefox 4
-       // Set to 0 to skip string check
-       qualifier = qualifier || 0;
-
-       if ( jQuery.isFunction( qualifier ) ) {
-               return jQuery.grep(elements, function( elem, i ) {
-                       var retVal = !!qualifier.call( elem, i, elem );
-                       return retVal === keep;
-               });
-
-       } else if ( qualifier.nodeType ) {
-               return jQuery.grep(elements, function( elem, i ) {
-                       return ( elem === qualifier ) === keep;
-               });
-
-       } else if ( typeof qualifier === "string" ) {
-               var filtered = jQuery.grep(elements, function( elem ) {
-                       return elem.nodeType === 1;
-               });
-
-               if ( isSimple.test( qualifier ) ) {
-                       return jQuery.filter(qualifier, filtered, !keep);
-               } else {
-                       qualifier = jQuery.filter( qualifier, filtered );
-               }
-       }
-
-       return jQuery.grep(elements, function( elem, i ) {
-               return ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep;
-       });
-}
-
-
-
-
-function createSafeFragment( document ) {
-       var list = nodeNames.split( "|" ),
-       safeFrag = document.createDocumentFragment();
-
-       if ( safeFrag.createElement ) {
-               while ( list.length ) {
-                       safeFrag.createElement(
-                               list.pop()
-                       );
-               }
-       }
-       return safeFrag;
-}
-
-var nodeNames = "abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|" +
-               "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
-       rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
-       rleadingWhitespace = /^\s+/,
-       rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,
-       rtagName = /<([\w:]+)/,
-       rtbody = /<tbody/i,
-       rhtml = /<|&#?\w+;/,
-       rnoInnerhtml = /<(?:script|style)/i,
-       rnocache = /<(?:script|object|embed|option|style)/i,
-       rnoshimcache = new RegExp("<(?:" + nodeNames + ")", "i"),
-       // checked="checked" or checked
-       rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
-       rscriptType = /\/(java|ecma)script/i,
-       rcleanScript = /^\s*<!(?:\[CDATA\[|\-\-)/,
-       wrapMap = {
-               option: [ 1, "<select multiple='multiple'>", "</select>" ],
-               legend: [ 1, "<fieldset>", "</fieldset>" ],
-               thead: [ 1, "<table>", "</table>" ],
-               tr: [ 2, "<table><tbody>", "</tbody></table>" ],
-               td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
-               col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
-               area: [ 1, "<map>", "</map>" ],
-               _default: [ 0, "", "" ]
-       },
-       safeFragment = createSafeFragment( document );
-
-wrapMap.optgroup = wrapMap.option;
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
-wrapMap.th = wrapMap.td;
-
-// IE can't serialize <link> and <script> tags normally
-if ( !jQuery.support.htmlSerialize ) {
-       wrapMap._default = [ 1, "div<div>", "</div>" ];
-}
-
-jQuery.fn.extend({
-       text: function( text ) {
-               if ( jQuery.isFunction(text) ) {
-                       return this.each(function(i) {
-                               var self = jQuery( this );
-
-                               self.text( text.call(this, i, self.text()) );
-                       });
-               }
-
-               if ( typeof text !== "object" && text !== undefined ) {
-                       return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
-               }
-
-               return jQuery.text( this );
-       },
-
-       wrapAll: function( html ) {
-               if ( jQuery.isFunction( html ) ) {
-                       return this.each(function(i) {
-                               jQuery(this).wrapAll( html.call(this, i) );
-                       });
-               }
-
-               if ( this[0] ) {
-                       // The elements to wrap the target around
-                       var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
-
-                       if ( this[0].parentNode ) {
-                               wrap.insertBefore( this[0] );
-                       }
-
-                       wrap.map(function() {
-                               var elem = this;
-
-                               while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
-                                       elem = elem.firstChild;
-                               }
-
-                               return elem;
-                       }).append( this );
-               }
-
-               return this;
-       },
-
-       wrapInner: function( html ) {
-               if ( jQuery.isFunction( html ) ) {
-                       return this.each(function(i) {
-                               jQuery(this).wrapInner( html.call(this, i) );
-                       });
-               }
-
-               return this.each(function() {
-                       var self = jQuery( this ),
-                               contents = self.contents();
-
-                       if ( contents.length ) {
-                               contents.wrapAll( html );
-
-                       } else {
-                               self.append( html );
-                       }
-               });
-       },
-
-       wrap: function( html ) {
-               var isFunction = jQuery.isFunction( html );
-
-               return this.each(function(i) {
-                       jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
-               });
-       },
-
-       unwrap: function() {
-               return this.parent().each(function() {
-                       if ( !jQuery.nodeName( this, "body" ) ) {
-                               jQuery( this ).replaceWith( this.childNodes );
-                       }
-               }).end();
-       },
-
-       append: function() {
-               return this.domManip(arguments, true, function( elem ) {
-                       if ( this.nodeType === 1 ) {
-                               this.appendChild( elem );
-                       }
-               });
-       },
-
-       prepend: function() {
-               return this.domManip(arguments, true, function( elem ) {
-                       if ( this.nodeType === 1 ) {
-                               this.insertBefore( elem, this.firstChild );
-                       }
-               });
-       },
-
-       before: function() {
-               if ( this[0] && this[0].parentNode ) {
-                       return this.domManip(arguments, false, function( elem ) {
-                               this.parentNode.insertBefore( elem, this );
-                       });
-               } else if ( arguments.length ) {
-                       var set = jQuery.clean( arguments );
-                       set.push.apply( set, this.toArray() );
-                       return this.pushStack( set, "before", arguments );
-               }
-       },
-
-       after: function() {
-               if ( this[0] && this[0].parentNode ) {
-                       return this.domManip(arguments, false, function( elem ) {
-                               this.parentNode.insertBefore( elem, this.nextSibling );
-                       });
-               } else if ( arguments.length ) {
-                       var set = this.pushStack( this, "after", arguments );
-                       set.push.apply( set, jQuery.clean(arguments) );
-                       return set;
-               }
-       },
-
-       // keepData is for internal use only--do not document
-       remove: function( selector, keepData ) {
-               for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
-                       if ( !selector || jQuery.filter( selector, [ elem ] ).length ) {
-                               if ( !keepData && elem.nodeType === 1 ) {
-                                       jQuery.cleanData( elem.getElementsByTagName("*") );
-                                       jQuery.cleanData( [ elem ] );
-                               }
-
-                               if ( elem.parentNode ) {
-                                       elem.parentNode.removeChild( elem );
-                               }
-                       }
-               }
-
-               return this;
-       },
-
-       empty: function() {
-               for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
-                       // Remove element nodes and prevent memory leaks
-                       if ( elem.nodeType === 1 ) {
-                               jQuery.cleanData( elem.getElementsByTagName("*") );
-                       }
-
-                       // Remove any remaining nodes
-                       while ( elem.firstChild ) {
-                               elem.removeChild( elem.firstChild );
-                       }
-               }
-
-               return this;
-       },
-
-       clone: function( dataAndEvents, deepDataAndEvents ) {
-               dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
-               deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
-
-               return this.map( function () {
-                       return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
-               });
-       },
-
-       html: function( value ) {
-               if ( value === undefined ) {
-                       return this[0] && this[0].nodeType === 1 ?
-                               this[0].innerHTML.replace(rinlinejQuery, "") :
-                               null;
-
-               // See if we can take a shortcut and just use innerHTML
-               } else if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
-                       (jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
-                       !wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {
-
-                       value = value.replace(rxhtmlTag, "<$1></$2>");
-
-                       try {
-                               for ( var i = 0, l = this.length; i < l; i++ ) {
-                                       // Remove element nodes and prevent memory leaks
-                                       if ( this[i].nodeType === 1 ) {
-                                               jQuery.cleanData( this[i].getElementsByTagName("*") );
-                                               this[i].innerHTML = value;
-                                       }
-                               }
-
-                       // If using innerHTML throws an exception, use the fallback method
-                       } catch(e) {
-                               this.empty().append( value );
-                       }
-
-               } else if ( jQuery.isFunction( value ) ) {
-                       this.each(function(i){
-                               var self = jQuery( this );
-
-                               self.html( value.call(this, i, self.html()) );
-                       });
-
-               } else {
-                       this.empty().append( value );
-               }
-
-               return this;
-       },
-
-       replaceWith: function( value ) {
-               if ( this[0] && this[0].parentNode ) {
-                       // Make sure that the elements are removed from the DOM before they are inserted
-                       // this can help fix replacing a parent with child elements
-                       if ( jQuery.isFunction( value ) ) {
-                               return this.each(function(i) {
-                                       var self = jQuery(this), old = self.html();
-                                       self.replaceWith( value.call( this, i, old ) );
-                               });
-                       }
-
-                       if ( typeof value !== "string" ) {
-                               value = jQuery( value ).detach();
-                       }
-
-                       return this.each(function() {
-                               var next = this.nextSibling,
-                                       parent = this.parentNode;
-
-                               jQuery( this ).remove();
-
-                               if ( next ) {
-                                       jQuery(next).before( value );
-                               } else {
-                                       jQuery(parent).append( value );
-                               }
-                       });
-               } else {
-                       return this.length ?
-                               this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value ) :
-                               this;
-               }
-       },
-
-       detach: function( selector ) {
-               return this.remove( selector, true );
-       },
-
-       domManip: function( args, table, callback ) {
-               var results, first, fragment, parent,
-                       value = args[0],
-                       scripts = [];
-
-               // We can't cloneNode fragments that contain checked, in WebKit
-               if ( !jQuery.support.checkClone && arguments.length === 3 && typeof value === "string" && rchecked.test( value ) ) {
-                       return this.each(function() {
-                               jQuery(this).domManip( args, table, callback, true );
-                       });
-               }
-
-               if ( jQuery.isFunction(value) ) {
-                       return this.each(function(i) {
-                               var self = jQuery(this);
-                               args[0] = value.call(this, i, table ? self.html() : undefined);
-                               self.domManip( args, table, callback );
-                       });
-               }
-
-               if ( this[0] ) {
-                       parent = value && value.parentNode;
-
-                       // If we're in a fragment, just use that instead of building a new one
-                       if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
-                               results = { fragment: parent };
-
-                       } else {
-                               results = jQuery.buildFragment( args, this, scripts );
-                       }
-
-                       fragment = results.fragment;
-
-                       if ( fragment.childNodes.length === 1 ) {
-                               first = fragment = fragment.firstChild;
-                       } else {
-                               first = fragment.firstChild;
-                       }
-
-                       if ( first ) {
-                               table = table && jQuery.nodeName( first, "tr" );
-
-                               for ( var i = 0, l = this.length, lastIndex = l - 1; i < l; i++ ) {
-                                       callback.call(
-                                               table ?
-                                                       root(this[i], first) :
-                                                       this[i],
-                                               // Make sure that we do not leak memory by inadvertently discarding
-                                               // the original fragment (which might have attached data) instead of
-                                               // using it; in addition, use the original fragment object for the last
-                                               // item instead of first because it can end up being emptied incorrectly
-                                               // in certain situations (Bug #8070).
-                                               // Fragments from the fragment cache must always be cloned and never used
-                                               // in place.
-                                               results.cacheable || ( l > 1 && i < lastIndex ) ?
-                                                       jQuery.clone( fragment, true, true ) :
-                                                       fragment
-                                       );
-                               }
-                       }
-
-                       if ( scripts.length ) {
-                               jQuery.each( scripts, evalScript );
-                       }
-               }
-
-               return this;
-       }
-});
-
-function root( elem, cur ) {
-       return jQuery.nodeName(elem, "table") ?
-               (elem.getElementsByTagName("tbody")[0] ||
-               elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
-               elem;
-}
-
-function cloneCopyEvent( src, dest ) {
-
-       if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {
-               return;
-       }
-
-       var type, i, l,
-               oldData = jQuery._data( src ),
-               curData = jQuery._data( dest, oldData ),
-               events = oldData.events;
-
-       if ( events ) {
-               delete curData.handle;
-               curData.events = {};
-
-               for ( type in events ) {
-                       for ( i = 0, l = events[ type ].length; i < l; i++ ) {
-                               jQuery.event.add( dest, type + ( events[ type ][ i ].namespace ? "." : "" ) + events[ type ][ i ].namespace, events[ type ][ i ], events[ type ][ i ].data );
-                       }
-               }
-       }
-
-       // make the cloned public data object a copy from the original
-       if ( curData.data ) {
-               curData.data = jQuery.extend( {}, curData.data );
-       }
-}
-
-function cloneFixAttributes( src, dest ) {
-       var nodeName;
-
-       // We do not need to do anything for non-Elements
-       if ( dest.nodeType !== 1 ) {
-               return;
-       }
-
-       // clearAttributes removes the attributes, which we don't want,
-       // but also removes the attachEvent events, which we *do* want
-       if ( dest.clearAttributes ) {
-               dest.clearAttributes();
-       }
-
-       // mergeAttributes, in contrast, only merges back on the
-       // original attributes, not the events
-       if ( dest.mergeAttributes ) {
-               dest.mergeAttributes( src );
-       }
-
-       nodeName = dest.nodeName.toLowerCase();
-
-       // IE6-8 fail to clone children inside object elements that use
-       // the proprietary classid attribute value (rather than the type
-       // attribute) to identify the type of content to display
-       if ( nodeName === "object" ) {
-               dest.outerHTML = src.outerHTML;
-
-       } else if ( nodeName === "input" && (src.type === "checkbox" || src.type === "radio") ) {
-               // IE6-8 fails to persist the checked state of a cloned checkbox
-               // or radio button. Worse, IE6-7 fail to give the cloned element
-               // a checked appearance if the defaultChecked value isn't also set
-               if ( src.checked ) {
-                       dest.defaultChecked = dest.checked = src.checked;
-               }
-
-               // IE6-7 get confused and end up setting the value of a cloned
-               // checkbox/radio button to an empty string instead of "on"
-               if ( dest.value !== src.value ) {
-                       dest.value = src.value;
-               }
-
-       // IE6-8 fails to return the selected option to the default selected
-       // state when cloning options
-       } else if ( nodeName === "option" ) {
-               dest.selected = src.defaultSelected;
-
-       // IE6-8 fails to set the defaultValue to the correct value when
-       // cloning other types of input fields
-       } else if ( nodeName === "input" || nodeName === "textarea" ) {
-               dest.defaultValue = src.defaultValue;
-       }
-
-       // Event data gets referenced instead of copied if the expando
-       // gets copied too
-       dest.removeAttribute( jQuery.expando );
-}
-
-jQuery.buildFragment = function( args, nodes, scripts ) {
-       var fragment, cacheable, cacheresults, doc,
-       first = args[ 0 ];
-
-       // nodes may contain either an explicit document object,
-       // a jQuery collection or context object.
-       // If nodes[0] contains a valid object to assign to doc
-       if ( nodes && nodes[0] ) {
-               doc = nodes[0].ownerDocument || nodes[0];
-       }
-
-       // Ensure that an attr object doesn't incorrectly stand in as a document object
-       // Chrome and Firefox seem to allow this to occur and will throw exception
-       // Fixes #8950
-       if ( !doc.createDocumentFragment ) {
-               doc = document;
-       }
-
-       // Only cache "small" (1/2 KB) HTML strings that are associated with the main document
-       // Cloning options loses the selected state, so don't cache them
-       // IE 6 doesn't like it when you put <object> or <embed> elements in a fragment
-       // Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache
-       // Lastly, IE6,7,8 will not correctly reuse cached fragments that were created from unknown elems #10501
-       if ( args.length === 1 && typeof first === "string" && first.length < 512 && doc === document &&
-               first.charAt(0) === "<" && !rnocache.test( first ) &&
-               (jQuery.support.checkClone || !rchecked.test( first )) &&
-               (jQuery.support.html5Clone || !rnoshimcache.test( first )) ) {
-
-               cacheable = true;
-
-               cacheresults = jQuery.fragments[ first ];
-               if ( cacheresults && cacheresults !== 1 ) {
-                       fragment = cacheresults;
-               }
-       }
-
-       if ( !fragment ) {
-               fragment = doc.createDocumentFragment();
-               jQuery.clean( args, doc, fragment, scripts );
-       }
-
-       if ( cacheable ) {
-               jQuery.fragments[ first ] = cacheresults ? fragment : 1;
-       }
-
-       return { fragment: fragment, cacheable: cacheable };
-};
-
-jQuery.fragments = {};
-
-jQuery.each({
-       appendTo: "append",
-       prependTo: "prepend",
-       insertBefore: "before",
-       insertAfter: "after",
-       replaceAll: "replaceWith"
-}, function( name, original ) {
-       jQuery.fn[ name ] = function( selector ) {
-               var ret = [],
-                       insert = jQuery( selector ),
-                       parent = this.length === 1 && this[0].parentNode;
-
-               if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {
-                       insert[ original ]( this[0] );
-                       return this;
-
-               } else {
-                       for ( var i = 0, l = insert.length; i < l; i++ ) {
-                               var elems = ( i > 0 ? this.clone(true) : this ).get();
-                               jQuery( insert[i] )[ original ]( elems );
-                               ret = ret.concat( elems );
-                       }
-
-                       return this.pushStack( ret, name, insert.selector );
-               }
-       };
-});
-
-function getAll( elem ) {
-       if ( typeof elem.getElementsByTagName !== "undefined" ) {
-               return elem.getElementsByTagName( "*" );
-
-       } else if ( typeof elem.querySelectorAll !== "undefined" ) {
-               return elem.querySelectorAll( "*" );
-
-       } else {
-               return [];
-       }
-}
-
-// Used in clean, fixes the defaultChecked property
-function fixDefaultChecked( elem ) {
-       if ( elem.type === "checkbox" || elem.type === "radio" ) {
-               elem.defaultChecked = elem.checked;
-       }
-}
-// Finds all inputs and passes them to fixDefaultChecked
-function findInputs( elem ) {
-       var nodeName = ( elem.nodeName || "" ).toLowerCase();
-       if ( nodeName === "input" ) {
-               fixDefaultChecked( elem );
-       // Skip scripts, get other children
-       } else if ( nodeName !== "script" && typeof elem.getElementsByTagName !== "undefined" ) {
-               jQuery.grep( elem.getElementsByTagName("input"), fixDefaultChecked );
-       }
-}
-
-// Derived From: http://www.iecss.com/shimprove/javascript/shimprove.1-0-1.js
-function shimCloneNode( elem ) {
-       var div = document.createElement( "div" );
-       safeFragment.appendChild( div );
-
-       div.innerHTML = elem.outerHTML;
-       return div.firstChild;
-}
-
-jQuery.extend({
-       clone: function( elem, dataAndEvents, deepDataAndEvents ) {
-               var srcElements,
-                       destElements,
-                       i,
-                       // IE<=8 does not properly clone detached, unknown element nodes
-                       clone = jQuery.support.html5Clone || !rnoshimcache.test( "<" + elem.nodeName ) ?
-                               elem.cloneNode( true ) :
-                               shimCloneNode( elem );
-
-               if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) &&
-                               (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {
-                       // IE copies events bound via attachEvent when using cloneNode.
-                       // Calling detachEvent on the clone will also remove the events
-                       // from the original. In order to get around this, we use some
-                       // proprietary methods to clear the events. Thanks to MooTools
-                       // guys for this hotness.
-
-                       cloneFixAttributes( elem, clone );
-
-                       // Using Sizzle here is crazy slow, so we use getElementsByTagName instead
-                       srcElements = getAll( elem );
-                       destElements = getAll( clone );
-
-                       // Weird iteration because IE will replace the length property
-                       // with an element if you are cloning the body and one of the
-                       // elements on the page has a name or id of "length"
-                       for ( i = 0; srcElements[i]; ++i ) {
-                               // Ensure that the destination node is not null; Fixes #9587
-                               if ( destElements[i] ) {
-                                       cloneFixAttributes( srcElements[i], destElements[i] );
-                               }
-                       }
-               }
-
-               // Copy the events from the original to the clone
-               if ( dataAndEvents ) {
-                       cloneCopyEvent( elem, clone );
-
-                       if ( deepDataAndEvents ) {
-                               srcElements = getAll( elem );
-                               destElements = getAll( clone );
-
-                               for ( i = 0; srcElements[i]; ++i ) {
-                                       cloneCopyEvent( srcElements[i], destElements[i] );
-                               }
-                       }
-               }
-
-               srcElements = destElements = null;
-
-               // Return the cloned set
-               return clone;
-       },
-
-       clean: function( elems, context, fragment, scripts ) {
-               var checkScriptType;
-
-               context = context || document;
-
-               // !context.createElement fails in IE with an error but returns typeof 'object'
-               if ( typeof context.createElement === "undefined" ) {
-                       context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
-               }
-
-               var ret = [], j;
-
-               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
-                       if ( typeof elem === "number" ) {
-                               elem += "";
-                       }
-
-                       if ( !elem ) {
-                               continue;
-                       }
-
-                       // Convert html string into DOM nodes
-                       if ( typeof elem === "string" ) {
-                               if ( !rhtml.test( elem ) ) {
-                                       elem = context.createTextNode( elem );
-                               } else {
-                                       // Fix "XHTML"-style tags in all browsers
-                                       elem = elem.replace(rxhtmlTag, "<$1></$2>");
-
-                                       // Trim whitespace, otherwise indexOf won't work as expected
-                                       var tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase(),
-                                               wrap = wrapMap[ tag ] || wrapMap._default,
-                                               depth = wrap[0],
-                                               div = context.createElement("div");
-
-                                       // Append wrapper element to unknown element safe doc fragment
-                                       if ( context === document ) {
-                                               // Use the fragment we've already created for this document
-                                               safeFragment.appendChild( div );
-                                       } else {
-                                               // Use a fragment created with the owner document
-                                               createSafeFragment( context ).appendChild( div );
-                                       }
-
-                                       // Go to html and back, then peel off extra wrappers
-                                       div.innerHTML = wrap[1] + elem + wrap[2];
-
-                                       // Move to the right depth
-                                       while ( depth-- ) {
-                                               div = div.lastChild;
-                                       }
-
-                                       // Remove IE's autoinserted <tbody> from table fragments
-                                       if ( !jQuery.support.tbody ) {
-
-                                               // String was a <table>, *may* have spurious <tbody>
-                                               var hasBody = rtbody.test(elem),
-                                                       tbody = tag === "table" && !hasBody ?
-                                                               div.firstChild && div.firstChild.childNodes :
-
-                                                               // String was a bare <thead> or <tfoot>
-                                                               wrap[1] === "<table>" && !hasBody ?
-                                                                       div.childNodes :
-                                                                       [];
-
-                                               for ( j = tbody.length - 1; j >= 0 ; --j ) {
-                                                       if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
-                                                               tbody[ j ].parentNode.removeChild( tbody[ j ] );
-                                                       }
-                                               }
-                                       }
-
-                                       // IE completely kills leading whitespace when innerHTML is used
-                                       if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
-                                               div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );
-                                       }
-
-                                       elem = div.childNodes;
-                               }
-                       }
-
-                       // Resets defaultChecked for any radios and checkboxes
-                       // about to be appended to the DOM in IE 6/7 (#8060)
-                       var len;
-                       if ( !jQuery.support.appendChecked ) {
-                               if ( elem[0] && typeof (len = elem.length) === "number" ) {
-                                       for ( j = 0; j < len; j++ ) {
-                                               findInputs( elem[j] );
-                                       }
-                               } else {
-                                       findInputs( elem );
-                               }
-                       }
-
-                       if ( elem.nodeType ) {
-                               ret.push( elem );
-                       } else {
-                               ret = jQuery.merge( ret, elem );
-                       }
-               }
-
-               if ( fragment ) {
-                       checkScriptType = function( elem ) {
-                               return !elem.type || rscriptType.test( elem.type );
-                       };
-                       for ( i = 0; ret[i]; i++ ) {
-                               if ( scripts && jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
-                                       scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
-
-                               } else {
-                                       if ( ret[i].nodeType === 1 ) {
-                                               var jsTags = jQuery.grep( ret[i].getElementsByTagName( "script" ), checkScriptType );
-
-                                               ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) );
-                                       }
-                                       fragment.appendChild( ret[i] );
-                               }
-                       }
-               }
-
-               return ret;
-       },
-
-       cleanData: function( elems ) {
-               var data, id,
-                       cache = jQuery.cache,
-                       special = jQuery.event.special,
-                       deleteExpando = jQuery.support.deleteExpando;
-
-               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
-                       if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
-                               continue;
-                       }
-
-                       id = elem[ jQuery.expando ];
-
-                       if ( id ) {
-                               data = cache[ id ];
-
-                               if ( data && data.events ) {
-                                       for ( var type in data.events ) {
-                                               if ( special[ type ] ) {
-                                                       jQuery.event.remove( elem, type );
-
-                                               // This is a shortcut to avoid jQuery.event.remove's overhead
-                                               } else {
-                                                       jQuery.removeEvent( elem, type, data.handle );
-                                               }
-                                       }
-
-                                       // Null the DOM reference to avoid IE6/7/8 leak (#7054)
-                                       if ( data.handle ) {
-                                               data.handle.elem = null;
-                                       }
-                               }
-
-                               if ( deleteExpando ) {
-                                       delete elem[ jQuery.expando ];
-
-                               } else if ( elem.removeAttribute ) {
-                                       elem.removeAttribute( jQuery.expando );
-                               }
-
-                               delete cache[ id ];
-                       }
-               }
-       }
-});
-
-function evalScript( i, elem ) {
-       if ( elem.src ) {
-               jQuery.ajax({
-                       url: elem.src,
-                       async: false,
-                       dataType: "script"
-               });
-       } else {
-               jQuery.globalEval( ( elem.text || elem.textContent || elem.innerHTML || "" ).replace( rcleanScript, "/*$0*/" ) );
-       }
-
-       if ( elem.parentNode ) {
-               elem.parentNode.removeChild( elem );
-       }
-}
-
-
-
-
-var ralpha = /alpha\([^)]*\)/i,
-       ropacity = /opacity=([^)]*)/,
-       // fixed for IE9, see #8346
-       rupper = /([A-Z]|^ms)/g,
-       rnumpx = /^-?\d+(?:px)?$/i,
-       rnum = /^-?\d/,
-       rrelNum = /^([\-+])=([\-+.\de]+)/,
-
-       cssShow = { position: "absolute", visibility: "hidden", display: "block" },
-       cssWidth = [ "Left", "Right" ],
-       cssHeight = [ "Top", "Bottom" ],
-       curCSS,
-
-       getComputedStyle,
-       currentStyle;
-
-jQuery.fn.css = function( name, value ) {
-       // Setting 'undefined' is a no-op
-       if ( arguments.length === 2 && value === undefined ) {
-               return this;
-       }
-
-       return jQuery.access( this, name, value, true, function( elem, name, value ) {
-               return value !== undefined ?
-                       jQuery.style( elem, name, value ) :
-                       jQuery.css( elem, name );
-       });
-};
-
-jQuery.extend({
-       // Add in style property hooks for overriding the default
-       // behavior of getting and setting a style property
-       cssHooks: {
-               opacity: {
-                       get: function( elem, computed ) {
-                               if ( computed ) {
-                                       // We should always get a number back from opacity
-                                       var ret = curCSS( elem, "opacity", "opacity" );
-                                       return ret === "" ? "1" : ret;
-
-                               } else {
-                                       return elem.style.opacity;
-                               }
-                       }
-               }
-       },
-
-       // Exclude the following css properties to add px
-       cssNumber: {
-               "fillOpacity": true,
-               "fontWeight": true,
-               "lineHeight": true,
-               "opacity": true,
-               "orphans": true,
-               "widows": true,
-               "zIndex": true,
-               "zoom": true
-       },
-
-       // Add in properties whose names you wish to fix before
-       // setting or getting the value
-       cssProps: {
-               // normalize float css property
-               "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat"
-       },
-
-       // Get and set the style property on a DOM Node
-       style: function( elem, name, value, extra ) {
-               // Don't set styles on text and comment nodes
-               if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
-                       return;
-               }
-
-               // Make sure that we're working with the right name
-               var ret, type, origName = jQuery.camelCase( name ),
-                       style = elem.style, hooks = jQuery.cssHooks[ origName ];
-
-               name = jQuery.cssProps[ origName ] || origName;
-
-               // Check if we're setting a value
-               if ( value !== undefined ) {
-                       type = typeof value;
-
-                       // convert relative number strings (+= or -=) to relative numbers. #7345
-                       if ( type === "string" && (ret = rrelNum.exec( value )) ) {
-                               value = ( +( ret[1] + 1) * +ret[2] ) + parseFloat( jQuery.css( elem, name ) );
-                               // Fixes bug #9237
-                               type = "number";
-                       }
-
-                       // Make sure that NaN and null values aren't set. See: #7116
-                       if ( value == null || type === "number" && isNaN( value ) ) {
-                               return;
-                       }
-
-                       // If a number was passed in, add 'px' to the (except for certain CSS properties)
-                       if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
-                               value += "px";
-                       }
-
-                       // If a hook was provided, use that value, otherwise just set the specified value
-                       if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value )) !== undefined ) {
-                               // Wrapped to prevent IE from throwing errors when 'invalid' values are provided
-                               // Fixes bug #5509
-                               try {
-                                       style[ name ] = value;
-                               } catch(e) {}
-                       }
-
-               } else {
-                       // If a hook was provided get the non-computed value from there
-                       if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
-                               return ret;
-                       }
-
-                       // Otherwise just get the value from the style object
-                       return style[ name ];
-               }
-       },
-
-       css: function( elem, name, extra ) {
-               var ret, hooks;
-
-               // Make sure that we're working with the right name
-               name = jQuery.camelCase( name );
-               hooks = jQuery.cssHooks[ name ];
-               name = jQuery.cssProps[ name ] || name;
-
-               // cssFloat needs a special treatment
-               if ( name === "cssFloat" ) {
-                       name = "float";
-               }
-
-               // If a hook was provided get the computed value from there
-               if ( hooks && "get" in hooks && (ret = hooks.get( elem, true, extra )) !== undefined ) {
-                       return ret;
-
-               // Otherwise, if a way to get the computed value exists, use that
-               } else if ( curCSS ) {
-                       return curCSS( elem, name );
-               }
-       },
-
-       // A method for quickly swapping in/out CSS properties to get correct calculations
-       swap: function( elem, options, callback ) {
-               var old = {};
-
-               // Remember the old values, and insert the new ones
-               for ( var name in options ) {
-                       old[ name ] = elem.style[ name ];
-                       elem.style[ name ] = options[ name ];
-               }
-
-               callback.call( elem );
-
-               // Revert the old values
-               for ( name in options ) {
-                       elem.style[ name ] = old[ name ];
-               }
-       }
-});
-
-// DEPRECATED, Use jQuery.css() instead
-jQuery.curCSS = jQuery.css;
-
-jQuery.each(["height", "width"], function( i, name ) {
-       jQuery.cssHooks[ name ] = {
-               get: function( elem, computed, extra ) {
-                       var val;
-
-                       if ( computed ) {
-                               if ( elem.offsetWidth !== 0 ) {
-                                       return getWH( elem, name, extra );
-                               } else {
-                                       jQuery.swap( elem, cssShow, function() {
-                                               val = getWH( elem, name, extra );
-                                       });
-                               }
-
-                               return val;
-                       }
-               },
-
-               set: function( elem, value ) {
-                       if ( rnumpx.test( value ) ) {
-                               // ignore negative width and height values #1599
-                               value = parseFloat( value );
-
-                               if ( value >= 0 ) {
-                                       return value + "px";
-                               }
-
-                       } else {
-                               return value;
-                       }
-               }
-       };
-});
-
-if ( !jQuery.support.opacity ) {
-       jQuery.cssHooks.opacity = {
-               get: function( elem, computed ) {
-                       // IE uses filters for opacity
-                       return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
-                               ( parseFloat( RegExp.$1 ) / 100 ) + "" :
-                               computed ? "1" : "";
-               },
-
-               set: function( elem, value ) {
-                       var style = elem.style,
-                               currentStyle = elem.currentStyle,
-                               opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "",
-                               filter = currentStyle && currentStyle.filter || style.filter || "";
-
-                       // IE has trouble with opacity if it does not have layout
-                       // Force it by setting the zoom level
-                       style.zoom = 1;
-
-                       // if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
-                       if ( value >= 1 && jQuery.trim( filter.replace( ralpha, "" ) ) === "" ) {
-
-                               // Setting style.filter to null, "" & " " still leave "filter:" in the cssText
-                               // if "filter:" is present at all, clearType is disabled, we want to avoid this
-                               // style.removeAttribute is IE Only, but so apparently is this code path...
-                               style.removeAttribute( "filter" );
-
-                               // if there there is no filter style applied in a css rule, we are done
-                               if ( currentStyle && !currentStyle.filter ) {
-                                       return;
-                               }
-                       }
-
-                       // otherwise, set new filter values
-                       style.filter = ralpha.test( filter ) ?
-                               filter.replace( ralpha, opacity ) :
-                               filter + " " + opacity;
-               }
-       };
-}
-
-jQuery(function() {
-       // This hook cannot be added until DOM ready because the support test
-       // for it is not run until after DOM ready
-       if ( !jQuery.support.reliableMarginRight ) {
-               jQuery.cssHooks.marginRight = {
-                       get: function( elem, computed ) {
-                               // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
-                               // Work around by temporarily setting element display to inline-block
-                               var ret;
-                               jQuery.swap( elem, { "display": "inline-block" }, function() {
-                                       if ( computed ) {
-                                               ret = curCSS( elem, "margin-right", "marginRight" );
-                                       } else {
-                                               ret = elem.style.marginRight;
-                                       }
-                               });
-                               return ret;
-                       }
-               };
-       }
-});
-
-if ( document.defaultView && document.defaultView.getComputedStyle ) {
-       getComputedStyle = function( elem, name ) {
-               var ret, defaultView, computedStyle;
-
-               name = name.replace( rupper, "-$1" ).toLowerCase();
-
-               if ( (defaultView = elem.ownerDocument.defaultView) &&
-                               (computedStyle = defaultView.getComputedStyle( elem, null )) ) {
-                       ret = computedStyle.getPropertyValue( name );
-                       if ( ret === "" && !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) {
-                               ret = jQuery.style( elem, name );
-                       }
-               }
-
-               return ret;
-       };
-}
-
-if ( document.documentElement.currentStyle ) {
-       currentStyle = function( elem, name ) {
-               var left, rsLeft, uncomputed,
-                       ret = elem.currentStyle && elem.currentStyle[ name ],
-                       style = elem.style;
-
-               // Avoid setting ret to empty string here
-               // so we don't default to auto
-               if ( ret === null && style && (uncomputed = style[ name ]) ) {
-                       ret = uncomputed;
-               }
-
-               // From the awesome hack by Dean Edwards
-               // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
-
-               // If we're not dealing with a regular pixel number
-               // but a number that has a weird ending, we need to convert it to pixels
-               if ( !rnumpx.test( ret ) && rnum.test( ret ) ) {
-
-                       // Remember the original values
-                       left = style.left;
-                       rsLeft = elem.runtimeStyle && elem.runtimeStyle.left;
-
-                       // Put in the new values to get a computed value out
-                       if ( rsLeft ) {
-                               elem.runtimeStyle.left = elem.currentStyle.left;
-                       }
-                       style.left = name === "fontSize" ? "1em" : ( ret || 0 );
-                       ret = style.pixelLeft + "px";
-
-                       // Revert the changed values
-                       style.left = left;
-                       if ( rsLeft ) {
-                               elem.runtimeStyle.left = rsLeft;
-                       }
-               }
-
-               return ret === "" ? "auto" : ret;
-       };
-}
-
-curCSS = getComputedStyle || currentStyle;
-
-function getWH( elem, name, extra ) {
-
-       // Start with offset property
-       var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
-               which = name === "width" ? cssWidth : cssHeight,
-               i = 0,
-               len = which.length;
-
-       if ( val > 0 ) {
-               if ( extra !== "border" ) {
-                       for ( ; i < len; i++ ) {
-                               if ( !extra ) {
-                                       val -= parseFloat( jQuery.css( elem, "padding" + which[ i ] ) ) || 0;
-                               }
-                               if ( extra === "margin" ) {
-                                       val += parseFloat( jQuery.css( elem, extra + which[ i ] ) ) || 0;
-                               } else {
-                                       val -= parseFloat( jQuery.css( elem, "border" + which[ i ] + "Width" ) ) || 0;
-                               }
-                       }
-               }
-
-               return val + "px";
-       }
-
-       // Fall back to computed then uncomputed css if necessary
-       val = curCSS( elem, name, name );
-       if ( val < 0 || val == null ) {
-               val = elem.style[ name ] || 0;
-       }
-       // Normalize "", auto, and prepare for extra
-       val = parseFloat( val ) || 0;
-
-       // Add padding, border, margin
-       if ( extra ) {
-               for ( ; i < len; i++ ) {
-                       val += parseFloat( jQuery.css( elem, "padding" + which[ i ] ) ) || 0;
-                       if ( extra !== "padding" ) {
-                               val += parseFloat( jQuery.css( elem, "border" + which[ i ] + "Width" ) ) || 0;
-                       }
-                       if ( extra === "margin" ) {
-                               val += parseFloat( jQuery.css( elem, extra + which[ i ] ) ) || 0;
-                       }
-               }
-       }
-
-       return val + "px";
-}
-
-if ( jQuery.expr && jQuery.expr.filters ) {
-       jQuery.expr.filters.hidden = function( elem ) {
-               var width = elem.offsetWidth,
-                       height = elem.offsetHeight;
-
-               return ( width === 0 && height === 0 ) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");
-       };
-
-       jQuery.expr.filters.visible = function( elem ) {
-               return !jQuery.expr.filters.hidden( elem );
-       };
-}
-
-
-
-
-var r20 = /%20/g,
-       rbracket = /\[\]$/,
-       rCRLF = /\r?\n/g,
-       rhash = /#.*$/,
-       rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
-       rinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
-       // #7653, #8125, #8152: local protocol detection
-       rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,
-       rnoContent = /^(?:GET|HEAD)$/,
-       rprotocol = /^\/\//,
-       rquery = /\?/,
-       rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
-       rselectTextarea = /^(?:select|textarea)/i,
-       rspacesAjax = /\s+/,
-       rts = /([?&])_=[^&]*/,
-       rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,
-
-       // Keep a copy of the old load method
-       _load = jQuery.fn.load,
-
-       /* Prefilters
-        * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
-        * 2) These are called:
-        *    - BEFORE asking for a transport
-        *    - AFTER param serialization (s.data is a string if s.processData is true)
-        * 3) key is the dataType
-        * 4) the catchall symbol "*" can be used
-        * 5) execution will start with transport dataType and THEN continue down to "*" if needed
-        */
-       prefilters = {},
-
-       /* Transports bindings
-        * 1) key is the dataType
-        * 2) the catchall symbol "*" can be used
-        * 3) selection will start with transport dataType and THEN go to "*" if needed
-        */
-       transports = {},
-
-       // Document location
-       ajaxLocation,
-
-       // Document location segments
-       ajaxLocParts,
-
-       // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
-       allTypes = ["*/"] + ["*"];
-
-// #8138, IE may throw an exception when accessing
-// a field from window.location if document.domain has been set
-try {
-       ajaxLocation = location.href;
-} catch( e ) {
-       // Use the href attribute of an A element
-       // since IE will modify it given document.location
-       ajaxLocation = document.createElement( "a" );
-       ajaxLocation.href = "";
-       ajaxLocation = ajaxLocation.href;
-}
-
-// Segment location into parts
-ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
-
-// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
-function addToPrefiltersOrTransports( structure ) {
-
-       // dataTypeExpression is optional and defaults to "*"
-       return function( dataTypeExpression, func ) {
-
-               if ( typeof dataTypeExpression !== "string" ) {
-                       func = dataTypeExpression;
-                       dataTypeExpression = "*";
-               }
-
-               if ( jQuery.isFunction( func ) ) {
-                       var dataTypes = dataTypeExpression.toLowerCase().split( rspacesAjax ),
-                               i = 0,
-                               length = dataTypes.length,
-                               dataType,
-                               list,
-                               placeBefore;
-
-                       // For each dataType in the dataTypeExpression
-                       for ( ; i < length; i++ ) {
-                               dataType = dataTypes[ i ];
-                               // We control if we're asked to add before
-                               // any existing element
-                               placeBefore = /^\+/.test( dataType );
-                               if ( placeBefore ) {
-                                       dataType = dataType.substr( 1 ) || "*";
-                               }
-                               list = structure[ dataType ] = structure[ dataType ] || [];
-                               // then we add to the structure accordingly
-                               list[ placeBefore ? "unshift" : "push" ]( func );
-                       }
-               }
-       };
-}
-
-// Base inspection function for prefilters and transports
-function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR,
-               dataType /* internal */, inspected /* internal */ ) {
-
-       dataType = dataType || options.dataTypes[ 0 ];
-       inspected = inspected || {};
-
-       inspected[ dataType ] = true;
-
-       var list = structure[ dataType ],
-               i = 0,
-               length = list ? list.length : 0,
-               executeOnly = ( structure === prefilters ),
-               selection;
-
-       for ( ; i < length && ( executeOnly || !selection ); i++ ) {
-               selection = list[ i ]( options, originalOptions, jqXHR );
-               // If we got redirected to another dataType
-               // we try there if executing only and not done already
-               if ( typeof selection === "string" ) {
-                       if ( !executeOnly || inspected[ selection ] ) {
-                               selection = undefined;
-                       } else {
-                               options.dataTypes.unshift( selection );
-                               selection = inspectPrefiltersOrTransports(
-                                               structure, options, originalOptions, jqXHR, selection, inspected );
-                       }
-               }
-       }
-       // If we're only executing or nothing was selected
-       // we try the catchall dataType if not done already
-       if ( ( executeOnly || !selection ) && !inspected[ "*" ] ) {
-               selection = inspectPrefiltersOrTransports(
-                               structure, options, originalOptions, jqXHR, "*", inspected );
-       }
-       // unnecessary when only executing (prefilters)
-       // but it'll be ignored by the caller in that case
-       return selection;
-}
-
-// A special extend for ajax options
-// that takes "flat" options (not to be deep extended)
-// Fixes #9887
-function ajaxExtend( target, src ) {
-       var key, deep,
-               flatOptions = jQuery.ajaxSettings.flatOptions || {};
-       for ( key in src ) {
-               if ( src[ key ] !== undefined ) {
-                       ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
-               }
-       }
-       if ( deep ) {
-               jQuery.extend( true, target, deep );
-       }
-}
-
-jQuery.fn.extend({
-       load: function( url, params, callback ) {
-               if ( typeof url !== "string" && _load ) {
-                       return _load.apply( this, arguments );
-
-               // Don't do a request if no elements are being requested
-               } else if ( !this.length ) {
-                       return this;
-               }
-
-               var off = url.indexOf( " " );
-               if ( off >= 0 ) {
-                       var selector = url.slice( off, url.length );
-                       url = url.slice( 0, off );
-               }
-
-               // Default to a GET request
-               var type = "GET";
-
-               // If the second parameter was provided
-               if ( params ) {
-                       // If it's a function
-                       if ( jQuery.isFunction( params ) ) {
-                               // We assume that it's the callback
-                               callback = params;
-                               params = undefined;
-
-                       // Otherwise, build a param string
-                       } else if ( typeof params === "object" ) {
-                               params = jQuery.param( params, jQuery.ajaxSettings.traditional );
-                               type = "POST";
-                       }
-               }
-
-               var self = this;
-
-               // Request the remote document
-               jQuery.ajax({
-                       url: url,
-                       type: type,
-                       dataType: "html",
-                       data: params,
-                       // Complete callback (responseText is used internally)
-                       complete: function( jqXHR, status, responseText ) {
-                               // Store the response as specified by the jqXHR object
-                               responseText = jqXHR.responseText;
-                               // If successful, inject the HTML into all the matched elements
-                               if ( jqXHR.isResolved() ) {
-                                       // #4825: Get the actual response in case
-                                       // a dataFilter is present in ajaxSettings
-                                       jqXHR.done(function( r ) {
-                                               responseText = r;
-                                       });
-                                       // See if a selector was specified
-                                       self.html( selector ?
-                                               // Create a dummy div to hold the results
-                                               jQuery("<div>")
-                                                       // inject the contents of the document in, removing the scripts
-                                                       // to avoid any 'Permission Denied' errors in IE
-                                                       .append(responseText.replace(rscript, ""))
-
-                                                       // Locate the specified elements
-                                                       .find(selector) :
-
-                                               // If not, just inject the full result
-                                               responseText );
-                               }
-
-                               if ( callback ) {
-                                       self.each( callback, [ responseText, status, jqXHR ] );
-                               }
-                       }
-               });
-
-               return this;
-       },
-
-       serialize: function() {
-               return jQuery.param( this.serializeArray() );
-       },
-
-       serializeArray: function() {
-               return this.map(function(){
-                       return this.elements ? jQuery.makeArray( this.elements ) : this;
-               })
-               .filter(function(){
-                       return this.name && !this.disabled &&
-                               ( this.checked || rselectTextarea.test( this.nodeName ) ||
-                                       rinput.test( this.type ) );
-               })
-               .map(function( i, elem ){
-                       var val = jQuery( this ).val();
-
-                       return val == null ?
-                               null :
-                               jQuery.isArray( val ) ?
-                                       jQuery.map( val, function( val, i ){
-                                               return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
-                                       }) :
-                                       { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
-               }).get();
-       }
-});
-
-// Attach a bunch of functions for handling common AJAX events
-jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split( " " ), function( i, o ){
-       jQuery.fn[ o ] = function( f ){
-               return this.on( o, f );
-       };
-});
-
-jQuery.each( [ "get", "post" ], function( i, method ) {
-       jQuery[ method ] = function( url, data, callback, type ) {
-               // shift arguments if data argument was omitted
-               if ( jQuery.isFunction( data ) ) {
-                       type = type || callback;
-                       callback = data;
-                       data = undefined;
-               }
-
-               return jQuery.ajax({
-                       type: method,
-                       url: url,
-                       data: data,
-                       success: callback,
-                       dataType: type
-               });
-       };
-});
-
-jQuery.extend({
-
-       getScript: function( url, callback ) {
-               return jQuery.get( url, undefined, callback, "script" );
-       },
-
-       getJSON: function( url, data, callback ) {
-               return jQuery.get( url, data, callback, "json" );
-       },
-
-       // Creates a full fledged settings object into target
-       // with both ajaxSettings and settings fields.
-       // If target is omitted, writes into ajaxSettings.
-       ajaxSetup: function( target, settings ) {
-               if ( settings ) {
-                       // Building a settings object
-                       ajaxExtend( target, jQuery.ajaxSettings );
-               } else {
-                       // Extending ajaxSettings
-                       settings = target;
-                       target = jQuery.ajaxSettings;
-               }
-               ajaxExtend( target, settings );
-               return target;
-       },
-
-       ajaxSettings: {
-               url: ajaxLocation,
-               isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
-               global: true,
-               type: "GET",
-               contentType: "application/x-www-form-urlencoded",
-               processData: true,
-               async: true,
-               /*
-               timeout: 0,
-               data: null,
-               dataType: null,
-               username: null,
-               password: null,
-               cache: null,
-               traditional: false,
-               headers: {},
-               */
-
-               accepts: {
-                       xml: "application/xml, text/xml",
-                       html: "text/html",
-                       text: "text/plain",
-                       json: "application/json, text/javascript",
-                       "*": allTypes
-               },
-
-               contents: {
-                       xml: /xml/,
-                       html: /html/,
-                       json: /json/
-               },
-
-               responseFields: {
-                       xml: "responseXML",
-                       text: "responseText"
-               },
-
-               // List of data converters
-               // 1) key format is "source_type destination_type" (a single space in-between)
-               // 2) the catchall symbol "*" can be used for source_type
-               converters: {
-
-                       // Convert anything to text
-                       "* text": window.String,
-
-                       // Text to html (true = no transformation)
-                       "text html": true,
-
-                       // Evaluate text as a json expression
-                       "text json": jQuery.parseJSON,
-
-                       // Parse text as xml
-                       "text xml": jQuery.parseXML
-               },
-
-               // For options that shouldn't be deep extended:
-               // you can add your own custom options here if
-               // and when you create one that shouldn't be
-               // deep extended (see ajaxExtend)
-               flatOptions: {
-                       context: true,
-                       url: true
-               }
-       },
-
-       ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
-       ajaxTransport: addToPrefiltersOrTransports( transports ),
-
-       // Main method
-       ajax: function( url, options ) {
-
-               // If url is an object, simulate pre-1.5 signature
-               if ( typeof url === "object" ) {
-                       options = url;
-                       url = undefined;
-               }
-
-               // Force options to be an object
-               options = options || {};
-
-               var // Create the final options object
-                       s = jQuery.ajaxSetup( {}, options ),
-                       // Callbacks context
-                       callbackContext = s.context || s,
-                       // Context for global events
-                       // It's the callbackContext if one was provided in the options
-                       // and if it's a DOM node or a jQuery collection
-                       globalEventContext = callbackContext !== s &&
-                               ( callbackContext.nodeType || callbackContext instanceof jQuery ) ?
-                                               jQuery( callbackContext ) : jQuery.event,
-                       // Deferreds
-                       deferred = jQuery.Deferred(),
-                       completeDeferred = jQuery.Callbacks( "once memory" ),
-                       // Status-dependent callbacks
-                       statusCode = s.statusCode || {},
-                       // ifModified key
-                       ifModifiedKey,
-                       // Headers (they are sent all at once)
-                       requestHeaders = {},
-                       requestHeadersNames = {},
-                       // Response headers
-                       responseHeadersString,
-                       responseHeaders,
-                       // transport
-                       transport,
-                       // timeout handle
-                       timeoutTimer,
-                       // Cross-domain detection vars
-                       parts,
-                       // The jqXHR state
-                       state = 0,
-                       // To know if global events are to be dispatched
-                       fireGlobals,
-                       // Loop variable
-                       i,
-                       // Fake xhr
-                       jqXHR = {
-
-                               readyState: 0,
-
-                               // Caches the header
-                               setRequestHeader: function( name, value ) {
-                                       if ( !state ) {
-                                               var lname = name.toLowerCase();
-                                               name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
-                                               requestHeaders[ name ] = value;
-                                       }
-                                       return this;
-                               },
-
-                               // Raw string
-                               getAllResponseHeaders: function() {
-                                       return state === 2 ? responseHeadersString : null;
-                               },
-
-                               // Builds headers hashtable if needed
-                               getResponseHeader: function( key ) {
-                                       var match;
-                                       if ( state === 2 ) {
-                                               if ( !responseHeaders ) {
-                                                       responseHeaders = {};
-                                                       while( ( match = rheaders.exec( responseHeadersString ) ) ) {
-                                                               responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
-                                                       }
-                                               }
-                                               match = responseHeaders[ key.toLowerCase() ];
-                                       }
-                                       return match === undefined ? null : match;
-                               },
-
-                               // Overrides response content-type header
-                               overrideMimeType: function( type ) {
-                                       if ( !state ) {
-                                               s.mimeType = type;
-                                       }
-                                       return this;
-                               },
-
-                               // Cancel the request
-                               abort: function( statusText ) {
-                                       statusText = statusText || "abort";
-                                       if ( transport ) {
-                                               transport.abort( statusText );
-                                       }
-                                       done( 0, statusText );
-                                       return this;
-                               }
-                       };
-
-               // Callback for when everything is done
-               // It is defined here because jslint complains if it is declared
-               // at the end of the function (which would be more logical and readable)
-               function done( status, nativeStatusText, responses, headers ) {
-
-                       // Called once
-                       if ( state === 2 ) {
-                               return;
-                       }
-
-                       // State is "done" now
-                       state = 2;
-
-                       // Clear timeout if it exists
-                       if ( timeoutTimer ) {
-                               clearTimeout( timeoutTimer );
-                       }
-
-                       // Dereference transport for early garbage collection
-                       // (no matter how long the jqXHR object will be used)
-                       transport = undefined;
-
-                       // Cache response headers
-                       responseHeadersString = headers || "";
-
-                       // Set readyState
-                       jqXHR.readyState = status > 0 ? 4 : 0;
-
-                       var isSuccess,
-                               success,
-                               error,
-                               statusText = nativeStatusText,
-                               response = responses ? ajaxHandleResponses( s, jqXHR, responses ) : undefined,
-                               lastModified,
-                               etag;
-
-                       // If successful, handle type chaining
-                       if ( status >= 200 && status < 300 || status === 304 ) {
-
-                               // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
-                               if ( s.ifModified ) {
-
-                                       if ( ( lastModified = jqXHR.getResponseHeader( "Last-Modified" ) ) ) {
-                                               jQuery.lastModified[ ifModifiedKey ] = lastModified;
-                                       }
-                                       if ( ( etag = jqXHR.getResponseHeader( "Etag" ) ) ) {
-                                               jQuery.etag[ ifModifiedKey ] = etag;
-                                       }
-                               }
-
-                               // If not modified
-                               if ( status === 304 ) {
-
-                                       statusText = "notmodified";
-                                       isSuccess = true;
-
-                               // If we have data
-                               } else {
-
-                                       try {
-                                               success = ajaxConvert( s, response );
-                                               statusText = "success";
-                                               isSuccess = true;
-                                       } catch(e) {
-                                               // We have a parsererror
-                                               statusText = "parsererror";
-                                               error = e;
-                                       }
-                               }
-                       } else {
-                               // We extract error from statusText
-                               // then normalize statusText and status for non-aborts
-                               error = statusText;
-                               if ( !statusText || status ) {
-                                       statusText = "error";
-                                       if ( status < 0 ) {
-                                               status = 0;
-                                       }
-                               }
-                       }
-
-                       // Set data for the fake xhr object
-                       jqXHR.status = status;
-                       jqXHR.statusText = "" + ( nativeStatusText || statusText );
-
-                       // Success/Error
-                       if ( isSuccess ) {
-                               deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
-                       } else {
-                               deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
-                       }
-
-                       // Status-dependent callbacks
-                       jqXHR.statusCode( statusCode );
-                       statusCode = undefined;
-
-                       if ( fireGlobals ) {
-                               globalEventContext.trigger( "ajax" + ( isSuccess ? "Success" : "Error" ),
-                                               [ jqXHR, s, isSuccess ? success : error ] );
-                       }
-
-                       // Complete
-                       completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
-
-                       if ( fireGlobals ) {
-                               globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
-                               // Handle the global AJAX counter
-                               if ( !( --jQuery.active ) ) {
-                                       jQuery.event.trigger( "ajaxStop" );
-                               }
-                       }
-               }
-
-               // Attach deferreds
-               deferred.promise( jqXHR );
-               jqXHR.success = jqXHR.done;
-               jqXHR.error = jqXHR.fail;
-               jqXHR.complete = completeDeferred.add;
-
-               // Status-dependent callbacks
-               jqXHR.statusCode = function( map ) {
-                       if ( map ) {
-                               var tmp;
-                               if ( state < 2 ) {
-                                       for ( tmp in map ) {
-                                               statusCode[ tmp ] = [ statusCode[tmp], map[tmp] ];
-                                       }
-                               } else {
-                                       tmp = map[ jqXHR.status ];
-                                       jqXHR.then( tmp, tmp );
-                               }
-                       }
-                       return this;
-               };
-
-               // Remove hash character (#7531: and string promotion)
-               // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
-               // We also use the url parameter if available
-               s.url = ( ( url || s.url ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
-
-               // Extract dataTypes list
-               s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( rspacesAjax );
-
-               // Determine if a cross-domain request is in order
-               if ( s.crossDomain == null ) {
-                       parts = rurl.exec( s.url.toLowerCase() );
-                       s.crossDomain = !!( parts &&
-                               ( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||
-                                       ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
-                                               ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) )
-                       );
-               }
-
-               // Convert data if not already a string
-               if ( s.data && s.processData && typeof s.data !== "string" ) {
-                       s.data = jQuery.param( s.data, s.traditional );
-               }
-
-               // Apply prefilters
-               inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
-
-               // If request was aborted inside a prefiler, stop there
-               if ( state === 2 ) {
-                       return false;
-               }
-
-               // We can fire global events as of now if asked to
-               fireGlobals = s.global;
-
-               // Uppercase the type
-               s.type = s.type.toUpperCase();
-
-               // Determine if request has content
-               s.hasContent = !rnoContent.test( s.type );
-
-               // Watch for a new set of requests
-               if ( fireGlobals && jQuery.active++ === 0 ) {
-                       jQuery.event.trigger( "ajaxStart" );
-               }
-
-               // More options handling for requests with no content
-               if ( !s.hasContent ) {
-
-                       // If data is available, append data to url
-                       if ( s.data ) {
-                               s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.data;
-                               // #9682: remove data so that it's not used in an eventual retry
-                               delete s.data;
-                       }
-
-                       // Get ifModifiedKey before adding the anti-cache parameter
-                       ifModifiedKey = s.url;
-
-                       // Add anti-cache in url if needed
-                       if ( s.cache === false ) {
-
-                               var ts = jQuery.now(),
-                                       // try replacing _= if it is there
-                                       ret = s.url.replace( rts, "$1_=" + ts );
-
-                               // if nothing was replaced, add timestamp to the end
-                               s.url = ret + ( ( ret === s.url ) ? ( rquery.test( s.url ) ? "&" : "?" ) + "_=" + ts : "" );
-                       }
-               }
-
-               // Set the correct header, if data is being sent
-               if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
-                       jqXHR.setRequestHeader( "Content-Type", s.contentType );
-               }
-
-               // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
-               if ( s.ifModified ) {
-                       ifModifiedKey = ifModifiedKey || s.url;
-                       if ( jQuery.lastModified[ ifModifiedKey ] ) {
-                               jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ ifModifiedKey ] );
-                       }
-                       if ( jQuery.etag[ ifModifiedKey ] ) {
-                               jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ ifModifiedKey ] );
-                       }
-               }
-
-               // Set the Accepts header for the server, depending on the dataType
-               jqXHR.setRequestHeader(
-                       "Accept",
-                       s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
-                               s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
-                               s.accepts[ "*" ]
-               );
-
-               // Check for headers option
-               for ( i in s.headers ) {
-                       jqXHR.setRequestHeader( i, s.headers[ i ] );
-               }
-
-               // Allow custom headers/mimetypes and early abort
-               if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
-                               // Abort if not done already
-                               jqXHR.abort();
-                               return false;
-
-               }
-
-               // Install callbacks on deferreds
-               for ( i in { success: 1, error: 1, complete: 1 } ) {
-                       jqXHR[ i ]( s[ i ] );
-               }
-
-               // Get transport
-               transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
-
-               // If no transport, we auto-abort
-               if ( !transport ) {
-                       done( -1, "No Transport" );
-               } else {
-                       jqXHR.readyState = 1;
-                       // Send global event
-                       if ( fireGlobals ) {
-                               globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
-                       }
-                       // Timeout
-                       if ( s.async && s.timeout > 0 ) {
-                               timeoutTimer = setTimeout( function(){
-                                       jqXHR.abort( "timeout" );
-                               }, s.timeout );
-                       }
-
-                       try {
-                               state = 1;
-                               transport.send( requestHeaders, done );
-                       } catch (e) {
-                               // Propagate exception as error if not done
-                               if ( state < 2 ) {
-                                       done( -1, e );
-                               // Simply rethrow otherwise
-                               } else {
-                                       throw e;
-                               }
-                       }
-               }
-
-               return jqXHR;
-       },
-
-       // Serialize an array of form elements or a set of
-       // key/values into a query string
-       param: function( a, traditional ) {
-               var s = [],
-                       add = function( key, value ) {
-                               // If value is a function, invoke it and return its value
-                               value = jQuery.isFunction( value ) ? value() : value;
-                               s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
-                       };
-
-               // Set traditional to true for jQuery <= 1.3.2 behavior.
-               if ( traditional === undefined ) {
-                       traditional = jQuery.ajaxSettings.traditional;
-               }
-
-               // If an array was passed in, assume that it is an array of form elements.
-               if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
-                       // Serialize the form elements
-                       jQuery.each( a, function() {
-                               add( this.name, this.value );
-                       });
-
-               } else {
-                       // If traditional, encode the "old" way (the way 1.3.2 or older
-                       // did it), otherwise encode params recursively.
-                       for ( var prefix in a ) {
-                               buildParams( prefix, a[ prefix ], traditional, add );
-                       }
-               }
-
-               // Return the resulting serialization
-               return s.join( "&" ).replace( r20, "+" );
-       }
-});
-
-function buildParams( prefix, obj, traditional, add ) {
-       if ( jQuery.isArray( obj ) ) {
-               // Serialize array item.
-               jQuery.each( obj, function( i, v ) {
-                       if ( traditional || rbracket.test( prefix ) ) {
-                               // Treat each array item as a scalar.
-                               add( prefix, v );
-
-                       } else {
-                               // If array item is non-scalar (array or object), encode its
-                               // numeric index to resolve deserialization ambiguity issues.
-                               // Note that rack (as of 1.0.0) can't currently deserialize
-                               // nested arrays properly, and attempting to do so may cause
-                               // a server error. Possible fixes are to modify rack's
-                               // deserialization algorithm or to provide an option or flag
-                               // to force array serialization to be shallow.
-                               buildParams( prefix + "[" + ( typeof v === "object" || jQuery.isArray(v) ? i : "" ) + "]", v, traditional, add );
-                       }
-               });
-
-       } else if ( !traditional && obj != null && typeof obj === "object" ) {
-               // Serialize object item.
-               for ( var name in obj ) {
-                       buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
-               }
-
-       } else {
-               // Serialize scalar item.
-               add( prefix, obj );
-       }
-}
-
-// This is still on the jQuery object... for now
-// Want to move this to jQuery.ajax some day
-jQuery.extend({
-
-       // Counter for holding the number of active queries
-       active: 0,
-
-       // Last-Modified header cache for next request
-       lastModified: {},
-       etag: {}
-
-});
-
-/* Handles responses to an ajax request:
- * - sets all responseXXX fields accordingly
- * - finds the right dataType (mediates between content-type and expected dataType)
- * - returns the corresponding response
- */
-function ajaxHandleResponses( s, jqXHR, responses ) {
-
-       var contents = s.contents,
-               dataTypes = s.dataTypes,
-               responseFields = s.responseFields,
-               ct,
-               type,
-               finalDataType,
-               firstDataType;
-
-       // Fill responseXXX fields
-       for ( type in responseFields ) {
-               if ( type in responses ) {
-                       jqXHR[ responseFields[type] ] = responses[ type ];
-               }
-       }
-
-       // Remove auto dataType and get content-type in the process
-       while( dataTypes[ 0 ] === "*" ) {
-               dataTypes.shift();
-               if ( ct === undefined ) {
-                       ct = s.mimeType || jqXHR.getResponseHeader( "content-type" );
-               }
-       }
-
-       // Check if we're dealing with a known content-type
-       if ( ct ) {
-               for ( type in contents ) {
-                       if ( contents[ type ] && contents[ type ].test( ct ) ) {
-                               dataTypes.unshift( type );
-                               break;
-                       }
-               }
-       }
-
-       // Check to see if we have a response for the expected dataType
-       if ( dataTypes[ 0 ] in responses ) {
-               finalDataType = dataTypes[ 0 ];
-       } else {
-               // Try convertible dataTypes
-               for ( type in responses ) {
-                       if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
-                               finalDataType = type;
-                               break;
-                       }
-                       if ( !firstDataType ) {
-                               firstDataType = type;
-                       }
-               }
-               // Or just use first one
-               finalDataType = finalDataType || firstDataType;
-       }
-
-       // If we found a dataType
-       // We add the dataType to the list if needed
-       // and return the corresponding response
-       if ( finalDataType ) {
-               if ( finalDataType !== dataTypes[ 0 ] ) {
-                       dataTypes.unshift( finalDataType );
-               }
-               return responses[ finalDataType ];
-       }
-}
-
-// Chain conversions given the request and the original response
-function ajaxConvert( s, response ) {
-
-       // Apply the dataFilter if provided
-       if ( s.dataFilter ) {
-               response = s.dataFilter( response, s.dataType );
-       }
-
-       var dataTypes = s.dataTypes,
-               converters = {},
-               i,
-               key,
-               length = dataTypes.length,
-               tmp,
-               // Current and previous dataTypes
-               current = dataTypes[ 0 ],
-               prev,
-               // Conversion expression
-               conversion,
-               // Conversion function
-               conv,
-               // Conversion functions (transitive conversion)
-               conv1,
-               conv2;
-
-       // For each dataType in the chain
-       for ( i = 1; i < length; i++ ) {
-
-               // Create converters map
-               // with lowercased keys
-               if ( i === 1 ) {
-                       for ( key in s.converters ) {
-                               if ( typeof key === "string" ) {
-                                       converters[ key.toLowerCase() ] = s.converters[ key ];
-                               }
-                       }
-               }
-
-               // Get the dataTypes
-               prev = current;
-               current = dataTypes[ i ];
-
-               // If current is auto dataType, update it to prev
-               if ( current === "*" ) {
-                       current = prev;
-               // If no auto and dataTypes are actually different
-               } else if ( prev !== "*" && prev !== current ) {
-
-                       // Get the converter
-                       conversion = prev + " " + current;
-                       conv = converters[ conversion ] || converters[ "* " + current ];
-
-                       // If there is no direct converter, search transitively
-                       if ( !conv ) {
-                               conv2 = undefined;
-                               for ( conv1 in converters ) {
-                                       tmp = conv1.split( " " );
-                                       if ( tmp[ 0 ] === prev || tmp[ 0 ] === "*" ) {
-                                               conv2 = converters[ tmp[1] + " " + current ];
-                                               if ( conv2 ) {
-                                                       conv1 = converters[ conv1 ];
-                                                       if ( conv1 === true ) {
-                                                               conv = conv2;
-                                                       } else if ( conv2 === true ) {
-                                                               conv = conv1;
-                                                       }
-                                                       break;
-                                               }
-                                       }
-                               }
-                       }
-                       // If we found no converter, dispatch an error
-                       if ( !( conv || conv2 ) ) {
-                               jQuery.error( "No conversion from " + conversion.replace(" "," to ") );
-                       }
-                       // If found converter is not an equivalence
-                       if ( conv !== true ) {
-                               // Convert with 1 or 2 converters accordingly
-                               response = conv ? conv( response ) : conv2( conv1(response) );
-                       }
-               }
-       }
-       return response;
-}
-
-
-
-
-var jsc = jQuery.now(),
-       jsre = /(\=)\?(&|$)|\?\?/i;
-
-// Default jsonp settings
-jQuery.ajaxSetup({
-       jsonp: "callback",
-       jsonpCallback: function() {
-               return jQuery.expando + "_" + ( jsc++ );
-       }
-});
-
-// Detect, normalize options and install callbacks for jsonp requests
-jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
-
-       var inspectData = s.contentType === "application/x-www-form-urlencoded" &&
-               ( typeof s.data === "string" );
-
-       if ( s.dataTypes[ 0 ] === "jsonp" ||
-               s.jsonp !== false && ( jsre.test( s.url ) ||
-                               inspectData && jsre.test( s.data ) ) ) {
-
-               var responseContainer,
-                       jsonpCallback = s.jsonpCallback =
-                               jQuery.isFunction( s.jsonpCallback ) ? s.jsonpCallback() : s.jsonpCallback,
-                       previous = window[ jsonpCallback ],
-                       url = s.url,
-                       data = s.data,
-                       replace = "$1" + jsonpCallback + "$2";
-
-               if ( s.jsonp !== false ) {
-                       url = url.replace( jsre, replace );
-                       if ( s.url === url ) {
-                               if ( inspectData ) {
-                                       data = data.replace( jsre, replace );
-                               }
-                               if ( s.data === data ) {
-                                       // Add callback manually
-                                       url += (/\?/.test( url ) ? "&" : "?") + s.jsonp + "=" + jsonpCallback;
-                               }
-                       }
-               }
-
-               s.url = url;
-               s.data = data;
-
-               // Install callback
-               window[ jsonpCallback ] = function( response ) {
-                       responseContainer = [ response ];
-               };
-
-               // Clean-up function
-               jqXHR.always(function() {
-                       // Set callback back to previous value
-                       window[ jsonpCallback ] = previous;
-                       // Call if it was a function and we have a response
-                       if ( responseContainer && jQuery.isFunction( previous ) ) {
-                               window[ jsonpCallback ]( responseContainer[ 0 ] );
-                       }
-               });
-
-               // Use data converter to retrieve json after script execution
-               s.converters["script json"] = function() {
-                       if ( !responseContainer ) {
-                               jQuery.error( jsonpCallback + " was not called" );
-                       }
-                       return responseContainer[ 0 ];
-               };
-
-               // force json dataType
-               s.dataTypes[ 0 ] = "json";
-
-               // Delegate to script
-               return "script";
-       }
-});
-
-
-
-
-// Install script dataType
-jQuery.ajaxSetup({
-       accepts: {
-               script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
-       },
-       contents: {
-               script: /javascript|ecmascript/
-       },
-       converters: {
-               "text script": function( text ) {
-                       jQuery.globalEval( text );
-                       return text;
-               }
-       }
-});
-
-// Handle cache's special case and global
-jQuery.ajaxPrefilter( "script", function( s ) {
-       if ( s.cache === undefined ) {
-               s.cache = false;
-       }
-       if ( s.crossDomain ) {
-               s.type = "GET";
-               s.global = false;
-       }
-});
-
-// Bind script tag hack transport
-jQuery.ajaxTransport( "script", function(s) {
-
-       // This transport only deals with cross domain requests
-       if ( s.crossDomain ) {
-
-               var script,
-                       head = document.head || document.getElementsByTagName( "head" )[0] || document.documentElement;
-
-               return {
-
-                       send: function( _, callback ) {
-
-                               script = document.createElement( "script" );
-
-                               script.async = "async";
-
-                               if ( s.scriptCharset ) {
-                                       script.charset = s.scriptCharset;
-                               }
-
-                               script.src = s.url;
-
-                               // Attach handlers for all browsers
-                               script.onload = script.onreadystatechange = function( _, isAbort ) {
-
-                                       if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {
-
-                                               // Handle memory leak in IE
-                                               script.onload = script.onreadystatechange = null;
-
-                                               // Remove the script
-                                               if ( head && script.parentNode ) {
-                                                       head.removeChild( script );
-                                               }
-
-                                               // Dereference the script
-                                               script = undefined;
-
-                                               // Callback if not abort
-                                               if ( !isAbort ) {
-                                                       callback( 200, "success" );
-                                               }
-                                       }
-                               };
-                               // Use insertBefore instead of appendChild  to circumvent an IE6 bug.
-                               // This arises when a base node is used (#2709 and #4378).
-                               head.insertBefore( script, head.firstChild );
-                       },
-
-                       abort: function() {
-                               if ( script ) {
-                                       script.onload( 0, 1 );
-                               }
-                       }
-               };
-       }
-});
-
-
-
-
-var // #5280: Internet Explorer will keep connections alive if we don't abort on unload
-       xhrOnUnloadAbort = window.ActiveXObject ? function() {
-               // Abort all pending requests
-               for ( var key in xhrCallbacks ) {
-                       xhrCallbacks[ key ]( 0, 1 );
-               }
-       } : false,
-       xhrId = 0,
-       xhrCallbacks;
-
-// Functions to create xhrs
-function createStandardXHR() {
-       try {
-               return new window.XMLHttpRequest();
-       } catch( e ) {}
-}
-
-function createActiveXHR() {
-       try {
-               return new window.ActiveXObject( "Microsoft.XMLHTTP" );
-       } catch( e ) {}
-}
-
-// Create the request object
-// (This is still attached to ajaxSettings for backward compatibility)
-jQuery.ajaxSettings.xhr = window.ActiveXObject ?
-       /* Microsoft failed to properly
-        * implement the XMLHttpRequest in IE7 (can't request local files),
-        * so we use the ActiveXObject when it is available
-        * Additionally XMLHttpRequest can be disabled in IE7/IE8 so
-        * we need a fallback.
-        */
-       function() {
-               return !this.isLocal && createStandardXHR() || createActiveXHR();
-       } :
-       // For all other browsers, use the standard XMLHttpRequest object
-       createStandardXHR;
-
-// Determine support properties
-(function( xhr ) {
-       jQuery.extend( jQuery.support, {
-               ajax: !!xhr,
-               cors: !!xhr && ( "withCredentials" in xhr )
-       });
-})( jQuery.ajaxSettings.xhr() );
-
-// Create transport if the browser can provide an xhr
-if ( jQuery.support.ajax ) {
-
-       jQuery.ajaxTransport(function( s ) {
-               // Cross domain only allowed if supported through XMLHttpRequest
-               if ( !s.crossDomain || jQuery.support.cors ) {
-
-                       var callback;
-
-                       return {
-                               send: function( headers, complete ) {
-
-                                       // Get a new xhr
-                                       var xhr = s.xhr(),
-                                               handle,
-                                               i;
-
-                                       // Open the socket
-                                       // Passing null username, generates a login popup on Opera (#2865)
-                                       if ( s.username ) {
-                                               xhr.open( s.type, s.url, s.async, s.username, s.password );
-                                       } else {
-                                               xhr.open( s.type, s.url, s.async );
-                                       }
-
-                                       // Apply custom fields if provided
-                                       if ( s.xhrFields ) {
-                                               for ( i in s.xhrFields ) {
-                                                       xhr[ i ] = s.xhrFields[ i ];
-                                               }
-                                       }
-
-                                       // Override mime type if needed
-                                       if ( s.mimeType && xhr.overrideMimeType ) {
-                                               xhr.overrideMimeType( s.mimeType );
-                                       }
-
-                                       // X-Requested-With header
-                                       // For cross-domain requests, seeing as conditions for a preflight are
-                                       // akin to a jigsaw puzzle, we simply never set it to be sure.
-                                       // (it can always be set on a per-request basis or even using ajaxSetup)
-                                       // For same-domain requests, won't change header if already provided.
-                                       if ( !s.crossDomain && !headers["X-Requested-With"] ) {
-                                               headers[ "X-Requested-With" ] = "XMLHttpRequest";
-                                       }
-
-                                       // Need an extra try/catch for cross domain requests in Firefox 3
-                                       try {
-                                               for ( i in headers ) {
-                                                       xhr.setRequestHeader( i, headers[ i ] );
-                                               }
-                                       } catch( _ ) {}
-
-                                       // Do send the request
-                                       // This may raise an exception which is actually
-                                       // handled in jQuery.ajax (so no try/catch here)
-                                       xhr.send( ( s.hasContent && s.data ) || null );
-
-                                       // Listener
-                                       callback = function( _, isAbort ) {
-
-                                               var status,
-                                                       statusText,
-                                                       responseHeaders,
-                                                       responses,
-                                                       xml;
-
-                                               // Firefox throws exceptions when accessing properties
-                                               // of an xhr when a network error occured
-                                               // http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
-                                               try {
-
-                                                       // Was never called and is aborted or complete
-                                                       if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
-
-                                                               // Only called once
-                                                               callback = undefined;
-
-                                                               // Do not keep as active anymore
-                                                               if ( handle ) {
-                                                                       xhr.onreadystatechange = jQuery.noop;
-                                                                       if ( xhrOnUnloadAbort ) {
-                                                                               delete xhrCallbacks[ handle ];
-                                                                       }
-                                                               }
-
-                                                               // If it's an abort
-                                                               if ( isAbort ) {
-                                                                       // Abort it manually if needed
-                                                                       if ( xhr.readyState !== 4 ) {
-                                                                               xhr.abort();
-                                                                       }
-                                                               } else {
-                                                                       status = xhr.status;
-                                                                       responseHeaders = xhr.getAllResponseHeaders();
-                                                                       responses = {};
-                                                                       xml = xhr.responseXML;
-
-                                                                       // Construct response list
-                                                                       if ( xml && xml.documentElement /* #4958 */ ) {
-                                                                               responses.xml = xml;
-                                                                       }
-                                                                       responses.text = xhr.responseText;
-
-                                                                       // Firefox throws an exception when accessing
-                                                                       // statusText for faulty cross-domain requests
-                                                                       try {
-                                                                               statusText = xhr.statusText;
-                                                                       } catch( e ) {
-                                                                               // We normalize with Webkit giving an empty statusText
-                                                                               statusText = "";
-                                                                       }
-
-                                                                       // Filter status for non standard behaviors
-
-                                                                       // If the request is local and we have data: assume a success
-                                                                       // (success with no data won't get notified, that's the best we
-                                                                       // can do given current implementations)
-                                                                       if ( !status && s.isLocal && !s.crossDomain ) {
-                                                                               status = responses.text ? 200 : 404;
-                                                                       // IE - #1450: sometimes returns 1223 when it should be 204
-                                                                       } else if ( status === 1223 ) {
-                                                                               status = 204;
-                                                                       }
-                                                               }
-                                                       }
-                                               } catch( firefoxAccessException ) {
-                                                       if ( !isAbort ) {
-                                                               complete( -1, firefoxAccessException );
-                                                       }
-                                               }
-
-                                               // Call complete if needed
-                                               if ( responses ) {
-                                                       complete( status, statusText, responses, responseHeaders );
-                                               }
-                                       };
-
-                                       // if we're in sync mode or it's in cache
-                                       // and has been retrieved directly (IE6 & IE7)
-                                       // we need to manually fire the callback
-                                       if ( !s.async || xhr.readyState === 4 ) {
-                                               callback();
-                                       } else {
-                                               handle = ++xhrId;
-                                               if ( xhrOnUnloadAbort ) {
-                                                       // Create the active xhrs callbacks list if needed
-                                                       // and attach the unload handler
-                                                       if ( !xhrCallbacks ) {
-                                                               xhrCallbacks = {};
-                                                               jQuery( window ).unload( xhrOnUnloadAbort );
-                                                       }
-                                                       // Add to list of active xhrs callbacks
-                                                       xhrCallbacks[ handle ] = callback;
-                                               }
-                                               xhr.onreadystatechange = callback;
-                                       }
-                               },
-
-                               abort: function() {
-                                       if ( callback ) {
-                                               callback(0,1);
-                                       }
-                               }
-                       };
-               }
-       });
-}
-
-
-
-
-var elemdisplay = {},
-       iframe, iframeDoc,
-       rfxtypes = /^(?:toggle|show|hide)$/,
-       rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
-       timerId,
-       fxAttrs = [
-               // height animations
-               [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
-               // width animations
-               [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
-               // opacity animations
-               [ "opacity" ]
-       ],
-       fxNow;
-
-jQuery.fn.extend({
-       show: function( speed, easing, callback ) {
-               var elem, display;
-
-               if ( speed || speed === 0 ) {
-                       return this.animate( genFx("show", 3), speed, easing, callback );
-
-               } else {
-                       for ( var i = 0, j = this.length; i < j; i++ ) {
-                               elem = this[ i ];
-
-                               if ( elem.style ) {
-                                       display = elem.style.display;
-
-                                       // Reset the inline display of this element to learn if it is
-                                       // being hidden by cascaded rules or not
-                                       if ( !jQuery._data(elem, "olddisplay") && display === "none" ) {
-                                               display = elem.style.display = "";
-                                       }
-
-                                       // Set elements which have been overridden with display: none
-                                       // in a stylesheet to whatever the default browser style is
-                                       // for such an element
-                                       if ( display === "" && jQuery.css(elem, "display") === "none" ) {
-                                               jQuery._data( elem, "olddisplay", defaultDisplay(elem.nodeName) );
-                                       }
-                               }
-                       }
-
-                       // Set the display of most of the elements in a second loop
-                       // to avoid the constant reflow
-                       for ( i = 0; i < j; i++ ) {
-                               elem = this[ i ];
-
-                               if ( elem.style ) {
-                                       display = elem.style.display;
-
-                                       if ( display === "" || display === "none" ) {
-                                               elem.style.display = jQuery._data( elem, "olddisplay" ) || "";
-                                       }
-                               }
-                       }
-
-                       return this;
-               }
-       },
-
-       hide: function( speed, easing, callback ) {
-               if ( speed || speed === 0 ) {
-                       return this.animate( genFx("hide", 3), speed, easing, callback);
-
-               } else {
-                       var elem, display,
-                               i = 0,
-                               j = this.length;
-
-                       for ( ; i < j; i++ ) {
-                               elem = this[i];
-                               if ( elem.style ) {
-                                       display = jQuery.css( elem, "display" );
-
-                                       if ( display !== "none" && !jQuery._data( elem, "olddisplay" ) ) {
-                                               jQuery._data( elem, "olddisplay", display );
-                                       }
-                               }
-                       }
-
-                       // Set the display of the elements in a second loop
-                       // to avoid the constant reflow
-                       for ( i = 0; i < j; i++ ) {
-                               if ( this[i].style ) {
-                                       this[i].style.display = "none";
-                               }
-                       }
-
-                       return this;
-               }
-       },
-
-       // Save the old toggle function
-       _toggle: jQuery.fn.toggle,
-
-       toggle: function( fn, fn2, callback ) {
-               var bool = typeof fn === "boolean";
-
-               if ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) {
-                       this._toggle.apply( this, arguments );
-
-               } else if ( fn == null || bool ) {
-                       this.each(function() {
-                               var state = bool ? fn : jQuery(this).is(":hidden");
-                               jQuery(this)[ state ? "show" : "hide" ]();
-                       });
-
-               } else {
-                       this.animate(genFx("toggle", 3), fn, fn2, callback);
-               }
-
-               return this;
-       },
-
-       fadeTo: function( speed, to, easing, callback ) {
-               return this.filter(":hidden").css("opacity", 0).show().end()
-                                       .animate({opacity: to}, speed, easing, callback);
-       },
-
-       animate: function( prop, speed, easing, callback ) {
-               var optall = jQuery.speed( speed, easing, callback );
-
-               if ( jQuery.isEmptyObject( prop ) ) {
-                       return this.each( optall.complete, [ false ] );
-               }
-
-               // Do not change referenced properties as per-property easing will be lost
-               prop = jQuery.extend( {}, prop );
-
-               function doAnimation() {
-                       // XXX 'this' does not always have a nodeName when running the
-                       // test suite
-
-                       if ( optall.queue === false ) {
-                               jQuery._mark( this );
-                       }
-
-                       var opt = jQuery.extend( {}, optall ),
-                               isElement = this.nodeType === 1,
-                               hidden = isElement && jQuery(this).is(":hidden"),
-                               name, val, p, e,
-                               parts, start, end, unit,
-                               method;
-
-                       // will store per property easing and be used to determine when an animation is complete
-                       opt.animatedProperties = {};
-
-                       for ( p in prop ) {
-
-                               // property name normalization
-                               name = jQuery.camelCase( p );
-                               if ( p !== name ) {
-                                       prop[ name ] = prop[ p ];
-                                       delete prop[ p ];
-                               }
-
-                               val = prop[ name ];
-
-                               // easing resolution: per property > opt.specialEasing > opt.easing > 'swing' (default)
-                               if ( jQuery.isArray( val ) ) {
-                                       opt.animatedProperties[ name ] = val[ 1 ];
-                                       val = prop[ name ] = val[ 0 ];
-                               } else {
-                                       opt.animatedProperties[ name ] = opt.specialEasing && opt.specialEasing[ name ] || opt.easing || 'swing';
-                               }
-
-                               if ( val === "hide" && hidden || val === "show" && !hidden ) {
-                                       return opt.complete.call( this );
-                               }
-
-                               if ( isElement && ( name === "height" || name === "width" ) ) {
-                                       // Make sure that nothing sneaks out
-                                       // Record all 3 overflow attributes because IE does not
-                                       // change the overflow attribute when overflowX and
-                                       // overflowY are set to the same value
-                                       opt.overflow = [ this.style.overflow, this.style.overflowX, this.style.overflowY ];
-
-                                       // Set display property to inline-block for height/width
-                                       // animations on inline elements that are having width/height animated
-                                       if ( jQuery.css( this, "display" ) === "inline" &&
-                                                       jQuery.css( this, "float" ) === "none" ) {
-
-                                               // inline-level elements accept inline-block;
-                                               // block-level elements need to be inline with layout
-                                               if ( !jQuery.support.inlineBlockNeedsLayout || defaultDisplay( this.nodeName ) === "inline" ) {
-                                                       this.style.display = "inline-block";
-
-                                               } else {
-                                                       this.style.zoom = 1;
-                                               }
-                                       }
-                               }
-                       }
-
-                       if ( opt.overflow != null ) {
-                               this.style.overflow = "hidden";
-                       }
-
-                       for ( p in prop ) {
-                               e = new jQuery.fx( this, opt, p );
-                               val = prop[ p ];
-
-                               if ( rfxtypes.test( val ) ) {
-
-                                       // Tracks whether to show or hide based on private
-                                       // data attached to the element
-                                       method = jQuery._data( this, "toggle" + p ) || ( val === "toggle" ? hidden ? "show" : "hide" : 0 );
-                                       if ( method ) {
-                                               jQuery._data( this, "toggle" + p, method === "show" ? "hide" : "show" );
-                                               e[ method ]();
-                                       } else {
-                                               e[ val ]();
-                                       }
-
-                               } else {
-                                       parts = rfxnum.exec( val );
-                                       start = e.cur();
-
-                                       if ( parts ) {
-                                               end = parseFloat( parts[2] );
-                                               unit = parts[3] || ( jQuery.cssNumber[ p ] ? "" : "px" );
-
-                                               // We need to compute starting value
-                                               if ( unit !== "px" ) {
-                                                       jQuery.style( this, p, (end || 1) + unit);
-                                                       start = ( (end || 1) / e.cur() ) * start;
-                                                       jQuery.style( this, p, start + unit);
-                                               }
-
-                                               // If a +=/-= token was provided, we're doing a relative animation
-                                               if ( parts[1] ) {
-                                                       end = ( (parts[ 1 ] === "-=" ? -1 : 1) * end ) + start;
-                                               }
-
-                                               e.custom( start, end, unit );
-
-                                       } else {
-                                               e.custom( start, val, "" );
-                                       }
-                               }
-                       }
-
-                       // For JS strict compliance
-                       return true;
-               }
-
-               return optall.queue === false ?
-                       this.each( doAnimation ) :
-                       this.queue( optall.queue, doAnimation );
-       },
-
-       stop: function( type, clearQueue, gotoEnd ) {
-               if ( typeof type !== "string" ) {
-                       gotoEnd = clearQueue;
-                       clearQueue = type;
-                       type = undefined;
-               }
-               if ( clearQueue && type !== false ) {
-                       this.queue( type || "fx", [] );
-               }
-
-               return this.each(function() {
-                       var index,
-                               hadTimers = false,
-                               timers = jQuery.timers,
-                               data = jQuery._data( this );
-
-                       // clear marker counters if we know they won't be
-                       if ( !gotoEnd ) {
-                               jQuery._unmark( true, this );
-                       }
-
-                       function stopQueue( elem, data, index ) {
-                               var hooks = data[ index ];
-                               jQuery.removeData( elem, index, true );
-                               hooks.stop( gotoEnd );
-                       }
-
-                       if ( type == null ) {
-                               for ( index in data ) {
-                                       if ( data[ index ] && data[ index ].stop && index.indexOf(".run") === index.length - 4 ) {
-                                               stopQueue( this, data, index );
-                                       }
-                               }
-                       } else if ( data[ index = type + ".run" ] && data[ index ].stop ){
-                               stopQueue( this, data, index );
-                       }
-
-                       for ( index = timers.length; index--; ) {
-                               if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {
-                                       if ( gotoEnd ) {
-
-                                               // force the next step to be the last
-                                               timers[ index ]( true );
-                                       } else {
-                                               timers[ index ].saveState();
-                                       }
-                                       hadTimers = true;
-                                       timers.splice( index, 1 );
-                               }
-                       }
-
-                       // start the next in the queue if the last step wasn't forced
-                       // timers currently will call their complete callbacks, which will dequeue
-                       // but only if they were gotoEnd
-                       if ( !( gotoEnd && hadTimers ) ) {
-                               jQuery.dequeue( this, type );
-                       }
-               });
-       }
-
-});
-
-// Animations created synchronously will run synchronously
-function createFxNow() {
-       setTimeout( clearFxNow, 0 );
-       return ( fxNow = jQuery.now() );
-}
-
-function clearFxNow() {
-       fxNow = undefined;
-}
-
-// Generate parameters to create a standard animation
-function genFx( type, num ) {
-       var obj = {};
-
-       jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice( 0, num )), function() {
-               obj[ this ] = type;
-       });
-
-       return obj;
-}
-
-// Generate shortcuts for custom animations
-jQuery.each({
-       slideDown: genFx( "show", 1 ),
-       slideUp: genFx( "hide", 1 ),
-       slideToggle: genFx( "toggle", 1 ),
-       fadeIn: { opacity: "show" },
-       fadeOut: { opacity: "hide" },
-       fadeToggle: { opacity: "toggle" }
-}, function( name, props ) {
-       jQuery.fn[ name ] = function( speed, easing, callback ) {
-               return this.animate( props, speed, easing, callback );
-       };
-});
-
-jQuery.extend({
-       speed: function( speed, easing, fn ) {
-               var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
-                       complete: fn || !fn && easing ||
-                               jQuery.isFunction( speed ) && speed,
-                       duration: speed,
-                       easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
-               };
-
-               opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
-                       opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
-
-               // normalize opt.queue - true/undefined/null -> "fx"
-               if ( opt.queue == null || opt.queue === true ) {
-                       opt.queue = "fx";
-               }
-
-               // Queueing
-               opt.old = opt.complete;
-
-               opt.complete = function( noUnmark ) {
-                       if ( jQuery.isFunction( opt.old ) ) {
-                               opt.old.call( this );
-                       }
-
-                       if ( opt.queue ) {
-                               jQuery.dequeue( this, opt.queue );
-                       } else if ( noUnmark !== false ) {
-                               jQuery._unmark( this );
-                       }
-               };
-
-               return opt;
-       },
-
-       easing: {
-               linear: function( p, n, firstNum, diff ) {
-                       return firstNum + diff * p;
-               },
-               swing: function( p, n, firstNum, diff ) {
-                       return ( ( -Math.cos( p*Math.PI ) / 2 ) + 0.5 ) * diff + firstNum;
-               }
-       },
-
-       timers: [],
-
-       fx: function( elem, options, prop ) {
-               this.options = options;
-               this.elem = elem;
-               this.prop = prop;
-
-               options.orig = options.orig || {};
-       }
-
-});
-
-jQuery.fx.prototype = {
-       // Simple function for setting a style value
-       update: function() {
-               if ( this.options.step ) {
-                       this.options.step.call( this.elem, this.now, this );
-               }
-
-               ( jQuery.fx.step[ this.prop ] || jQuery.fx.step._default )( this );
-       },
-
-       // Get the current size
-       cur: function() {
-               if ( this.elem[ this.prop ] != null && (!this.elem.style || this.elem.style[ this.prop ] == null) ) {
-                       return this.elem[ this.prop ];
-               }
-
-               var parsed,
-                       r = jQuery.css( this.elem, this.prop );
-               // Empty strings, null, undefined and "auto" are converted to 0,
-               // complex values such as "rotate(1rad)" are returned as is,
-               // simple values such as "10px" are parsed to Float.
-               return isNaN( parsed = parseFloat( r ) ) ? !r || r === "auto" ? 0 : r : parsed;
-       },
-
-       // Start an animation from one number to another
-       custom: function( from, to, unit ) {
-               var self = this,
-                       fx = jQuery.fx;
-
-               this.startTime = fxNow || createFxNow();
-               this.end = to;
-               this.now = this.start = from;
-               this.pos = this.state = 0;
-               this.unit = unit || this.unit || ( jQuery.cssNumber[ this.prop ] ? "" : "px" );
-
-               function t( gotoEnd ) {
-                       return self.step( gotoEnd );
-               }
-
-               t.queue = this.options.queue;
-               t.elem = this.elem;
-               t.saveState = function() {
-                       if ( self.options.hide && jQuery._data( self.elem, "fxshow" + self.prop ) === undefined ) {
-                               jQuery._data( self.elem, "fxshow" + self.prop, self.start );
-                       }
-               };
-
-               if ( t() && jQuery.timers.push(t) && !timerId ) {
-                       timerId = setInterval( fx.tick, fx.interval );
-               }
-       },
-
-       // Simple 'show' function
-       show: function() {
-               var dataShow = jQuery._data( this.elem, "fxshow" + this.prop );
-
-               // Remember where we started, so that we can go back to it later
-               this.options.orig[ this.prop ] = dataShow || jQuery.style( this.elem, this.prop );
-               this.options.show = true;
-
-               // Begin the animation
-               // Make sure that we start at a small width/height to avoid any flash of content
-               if ( dataShow !== undefined ) {
-                       // This show is picking up where a previous hide or show left off
-                       this.custom( this.cur(), dataShow );
-               } else {
-                       this.custom( this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur() );
-               }
-
-               // Start by showing the element
-               jQuery( this.elem ).show();
-       },
-
-       // Simple 'hide' function
-       hide: function() {
-               // Remember where we started, so that we can go back to it later
-               this.options.orig[ this.prop ] = jQuery._data( this.elem, "fxshow" + this.prop ) || jQuery.style( this.elem, this.prop );
-               this.options.hide = true;
-
-               // Begin the animation
-               this.custom( this.cur(), 0 );
-       },
-
-       // Each step of an animation
-       step: function( gotoEnd ) {
-               var p, n, complete,
-                       t = fxNow || createFxNow(),
-                       done = true,
-                       elem = this.elem,
-                       options = this.options;
-
-               if ( gotoEnd || t >= options.duration + this.startTime ) {
-                       this.now = this.end;
-                       this.pos = this.state = 1;
-                       this.update();
-
-                       options.animatedProperties[ this.prop ] = true;
-
-                       for ( p in options.animatedProperties ) {
-                               if ( options.animatedProperties[ p ] !== true ) {
-                                       done = false;
-                               }
-                       }
-
-                       if ( done ) {
-                               // Reset the overflow
-                               if ( options.overflow != null && !jQuery.support.shrinkWrapBlocks ) {
-
-                                       jQuery.each( [ "", "X", "Y" ], function( index, value ) {
-                                               elem.style[ "overflow" + value ] = options.overflow[ index ];
-                                       });
-                               }
-
-                               // Hide the element if the "hide" operation was done
-                               if ( options.hide ) {
-                                       jQuery( elem ).hide();
-                               }
-
-                               // Reset the properties, if the item has been hidden or shown
-                               if ( options.hide || options.show ) {
-                                       for ( p in options.animatedProperties ) {
-                                               jQuery.style( elem, p, options.orig[ p ] );
-                                               jQuery.removeData( elem, "fxshow" + p, true );
-                                               // Toggle data is no longer needed
-                                               jQuery.removeData( elem, "toggle" + p, true );
-                                       }
-                               }
-
-                               // Execute the complete function
-                               // in the event that the complete function throws an exception
-                               // we must ensure it won't be called twice. #5684
-
-                               complete = options.complete;
-                               if ( complete ) {
-
-                                       options.complete = false;
-                                       complete.call( elem );
-                               }
-                       }
-
-                       return false;
-
-               } else {
-                       // classical easing cannot be used with an Infinity duration
-                       if ( options.duration == Infinity ) {
-                               this.now = t;
-                       } else {
-                               n = t - this.startTime;
-                               this.state = n / options.duration;
-
-                               // Perform the easing function, defaults to swing
-                               this.pos = jQuery.easing[ options.animatedProperties[this.prop] ]( this.state, n, 0, 1, options.duration );
-                               this.now = this.start + ( (this.end - this.start) * this.pos );
-                       }
-                       // Perform the next step of the animation
-                       this.update();
-               }
-
-               return true;
-       }
-};
-
-jQuery.extend( jQuery.fx, {
-       tick: function() {
-               var timer,
-                       timers = jQuery.timers,
-                       i = 0;
-
-               for ( ; i < timers.length; i++ ) {
-                       timer = timers[ i ];
-                       // Checks the timer has not already been removed
-                       if ( !timer() && timers[ i ] === timer ) {
-                               timers.splice( i--, 1 );
-                       }
-               }
-
-               if ( !timers.length ) {
-                       jQuery.fx.stop();
-               }
-       },
-
-       interval: 13,
-
-       stop: function() {
-               clearInterval( timerId );
-               timerId = null;
-       },
-
-       speeds: {
-               slow: 600,
-               fast: 200,
-               // Default speed
-               _default: 400
-       },
-
-       step: {
-               opacity: function( fx ) {
-                       jQuery.style( fx.elem, "opacity", fx.now );
-               },
-
-               _default: function( fx ) {
-                       if ( fx.elem.style && fx.elem.style[ fx.prop ] != null ) {
-                               fx.elem.style[ fx.prop ] = fx.now + fx.unit;
-                       } else {
-                               fx.elem[ fx.prop ] = fx.now;
-                       }
-               }
-       }
-});
-
-// Adds width/height step functions
-// Do not set anything below 0
-jQuery.each([ "width", "height" ], function( i, prop ) {
-       jQuery.fx.step[ prop ] = function( fx ) {
-               jQuery.style( fx.elem, prop, Math.max(0, fx.now) + fx.unit );
-       };
-});
-
-if ( jQuery.expr && jQuery.expr.filters ) {
-       jQuery.expr.filters.animated = function( elem ) {
-               return jQuery.grep(jQuery.timers, function( fn ) {
-                       return elem === fn.elem;
-               }).length;
-       };
-}
-
-// Try to restore the default display value of an element
-function defaultDisplay( nodeName ) {
-
-       if ( !elemdisplay[ nodeName ] ) {
-
-               var body = document.body,
-                       elem = jQuery( "<" + nodeName + ">" ).appendTo( body ),
-                       display = elem.css( "display" );
-               elem.remove();
-
-               // If the simple way fails,
-               // get element's real default display by attaching it to a temp iframe
-               if ( display === "none" || display === "" ) {
-                       // No iframe to use yet, so create it
-                       if ( !iframe ) {
-                               iframe = document.createElement( "iframe" );
-                               iframe.frameBorder = iframe.width = iframe.height = 0;
-                       }
-
-                       body.appendChild( iframe );
-
-                       // Create a cacheable copy of the iframe document on first call.
-                       // IE and Opera will allow us to reuse the iframeDoc without re-writing the fake HTML
-                       // document to it; WebKit & Firefox won't allow reusing the iframe document.
-                       if ( !iframeDoc || !iframe.createElement ) {
-                               iframeDoc = ( iframe.contentWindow || iframe.contentDocument ).document;
-                               iframeDoc.write( ( document.compatMode === "CSS1Compat" ? "<!doctype html>" : "" ) + "<html><body>" );
-                               iframeDoc.close();
-                       }
-
-                       elem = iframeDoc.createElement( nodeName );
-
-                       iframeDoc.body.appendChild( elem );
-
-                       display = jQuery.css( elem, "display" );
-                       body.removeChild( iframe );
-               }
-
-               // Store the correct default display
-               elemdisplay[ nodeName ] = display;
-       }
-
-       return elemdisplay[ nodeName ];
-}
-
-
-
-
-var rtable = /^t(?:able|d|h)$/i,
-       rroot = /^(?:body|html)$/i;
-
-if ( "getBoundingClientRect" in document.documentElement ) {
-       jQuery.fn.offset = function( options ) {
-               var elem = this[0], box;
-
-               if ( options ) {
-                       return this.each(function( i ) {
-                               jQuery.offset.setOffset( this, options, i );
-                       });
-               }
-
-               if ( !elem || !elem.ownerDocument ) {
-                       return null;
-               }
-
-               if ( elem === elem.ownerDocument.body ) {
-                       return jQuery.offset.bodyOffset( elem );
-               }
-
-               try {
-                       box = elem.getBoundingClientRect();
-               } catch(e) {}
-
-               var doc = elem.ownerDocument,
-                       docElem = doc.documentElement;
-
-               // Make sure we're not dealing with a disconnected DOM node
-               if ( !box || !jQuery.contains( docElem, elem ) ) {
-                       return box ? { top: box.top, left: box.left } : { top: 0, left: 0 };
-               }
-
-               var body = doc.body,
-                       win = getWindow(doc),
-                       clientTop  = docElem.clientTop  || body.clientTop  || 0,
-                       clientLeft = docElem.clientLeft || body.clientLeft || 0,
-                       scrollTop  = win.pageYOffset || jQuery.support.boxModel && docElem.scrollTop  || body.scrollTop,
-                       scrollLeft = win.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft,
-                       top  = box.top  + scrollTop  - clientTop,
-                       left = box.left + scrollLeft - clientLeft;
-
-               return { top: top, left: left };
-       };
-
-} else {
-       jQuery.fn.offset = function( options ) {
-               var elem = this[0];
-
-               if ( options ) {
-                       return this.each(function( i ) {
-                               jQuery.offset.setOffset( this, options, i );
-                       });
-               }
-
-               if ( !elem || !elem.ownerDocument ) {
-                       return null;
-               }
-
-               if ( elem === elem.ownerDocument.body ) {
-                       return jQuery.offset.bodyOffset( elem );
-               }
-
-               var computedStyle,
-                       offsetParent = elem.offsetParent,
-                       prevOffsetParent = elem,
-                       doc = elem.ownerDocument,
-                       docElem = doc.documentElement,
-                       body = doc.body,
-                       defaultView = doc.defaultView,
-                       prevComputedStyle = defaultView ? defaultView.getComputedStyle( elem, null ) : elem.currentStyle,
-                       top = elem.offsetTop,
-                       left = elem.offsetLeft;
-
-               while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
-                       if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {
-                               break;
-                       }
-
-                       computedStyle = defaultView ? defaultView.getComputedStyle(elem, null) : elem.currentStyle;
-                       top  -= elem.scrollTop;
-                       left -= elem.scrollLeft;
-
-                       if ( elem === offsetParent ) {
-                               top  += elem.offsetTop;
-                               left += elem.offsetLeft;
-
-                               if ( jQuery.support.doesNotAddBorder && !(jQuery.support.doesAddBorderForTableAndCells && rtable.test(elem.nodeName)) ) {
-                                       top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
-                                       left += parseFloat( computedStyle.borderLeftWidth ) || 0;
-                               }
-
-                               prevOffsetParent = offsetParent;
-                               offsetParent = elem.offsetParent;
-                       }
-
-                       if ( jQuery.support.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" ) {
-                               top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
-                               left += parseFloat( computedStyle.borderLeftWidth ) || 0;
-                       }
-
-                       prevComputedStyle = computedStyle;
-               }
-
-               if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" ) {
-                       top  += body.offsetTop;
-                       left += body.offsetLeft;
-               }
-
-               if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {
-                       top  += Math.max( docElem.scrollTop, body.scrollTop );
-                       left += Math.max( docElem.scrollLeft, body.scrollLeft );
-               }
-
-               return { top: top, left: left };
-       };
-}
-
-jQuery.offset = {
-
-       bodyOffset: function( body ) {
-               var top = body.offsetTop,
-                       left = body.offsetLeft;
-
-               if ( jQuery.support.doesNotIncludeMarginInBodyOffset ) {
-                       top  += parseFloat( jQuery.css(body, "marginTop") ) || 0;
-                       left += parseFloat( jQuery.css(body, "marginLeft") ) || 0;
-               }
-
-               return { top: top, left: left };
-       },
-
-       setOffset: function( elem, options, i ) {
-               var position = jQuery.css( elem, "position" );
-
-               // set position first, in-case top/left are set even on static elem
-               if ( position === "static" ) {
-                       elem.style.position = "relative";
-               }
-
-               var curElem = jQuery( elem ),
-                       curOffset = curElem.offset(),
-                       curCSSTop = jQuery.css( elem, "top" ),
-                       curCSSLeft = jQuery.css( elem, "left" ),
-                       calculatePosition = ( position === "absolute" || position === "fixed" ) && jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1,
-                       props = {}, curPosition = {}, curTop, curLeft;
-
-               // need to be able to calculate position if either top or left is auto and position is either absolute or fixed
-               if ( calculatePosition ) {
-                       curPosition = curElem.position();
-                       curTop = curPosition.top;
-                       curLeft = curPosition.left;
-               } else {
-                       curTop = parseFloat( curCSSTop ) || 0;
-                       curLeft = parseFloat( curCSSLeft ) || 0;
-               }
-
-               if ( jQuery.isFunction( options ) ) {
-                       options = options.call( elem, i, curOffset );
-               }
-
-               if ( options.top != null ) {
-                       props.top = ( options.top - curOffset.top ) + curTop;
-               }
-               if ( options.left != null ) {
-                       props.left = ( options.left - curOffset.left ) + curLeft;
-               }
-
-               if ( "using" in options ) {
-                       options.using.call( elem, props );
-               } else {
-                       curElem.css( props );
-               }
-       }
-};
-
-
-jQuery.fn.extend({
-
-       position: function() {
-               if ( !this[0] ) {
-                       return null;
-               }
-
-               var elem = this[0],
-
-               // Get *real* offsetParent
-               offsetParent = this.offsetParent(),
-
-               // Get correct offsets
-               offset       = this.offset(),
-               parentOffset = rroot.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset();
-
-               // Subtract element margins
-               // note: when an element has margin: auto the offsetLeft and marginLeft
-               // are the same in Safari causing offset.left to incorrectly be 0
-               offset.top  -= parseFloat( jQuery.css(elem, "marginTop") ) || 0;
-               offset.left -= parseFloat( jQuery.css(elem, "marginLeft") ) || 0;
-
-               // Add offsetParent borders
-               parentOffset.top  += parseFloat( jQuery.css(offsetParent[0], "borderTopWidth") ) || 0;
-               parentOffset.left += parseFloat( jQuery.css(offsetParent[0], "borderLeftWidth") ) || 0;
-
-               // Subtract the two offsets
-               return {
-                       top:  offset.top  - parentOffset.top,
-                       left: offset.left - parentOffset.left
-               };
-       },
-
-       offsetParent: function() {
-               return this.map(function() {
-                       var offsetParent = this.offsetParent || document.body;
-                       while ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) {
-                               offsetParent = offsetParent.offsetParent;
-                       }
-                       return offsetParent;
-               });
-       }
-});
-
-
-// Create scrollLeft and scrollTop methods
-jQuery.each( ["Left", "Top"], function( i, name ) {
-       var method = "scroll" + name;
-
-       jQuery.fn[ method ] = function( val ) {
-               var elem, win;
-
-               if ( val === undefined ) {
-                       elem = this[ 0 ];
-
-                       if ( !elem ) {
-                               return null;
-                       }
-
-                       win = getWindow( elem );
-
-                       // Return the scroll offset
-                       return win ? ("pageXOffset" in win) ? win[ i ? "pageYOffset" : "pageXOffset" ] :
-                               jQuery.support.boxModel && win.document.documentElement[ method ] ||
-                                       win.document.body[ method ] :
-                               elem[ method ];
-               }
-
-               // Set the scroll offset
-               return this.each(function() {
-                       win = getWindow( this );
-
-                       if ( win ) {
-                               win.scrollTo(
-                                       !i ? val : jQuery( win ).scrollLeft(),
-                                        i ? val : jQuery( win ).scrollTop()
-                               );
-
-                       } else {
-                               this[ method ] = val;
-                       }
-               });
-       };
-});
-
-function getWindow( elem ) {
-       return jQuery.isWindow( elem ) ?
-               elem :
-               elem.nodeType === 9 ?
-                       elem.defaultView || elem.parentWindow :
-                       false;
-}
-
-
-
-
-// Create width, height, innerHeight, innerWidth, outerHeight and outerWidth methods
-jQuery.each([ "Height", "Width" ], function( i, name ) {
-
-       var type = name.toLowerCase();
-
-       // innerHeight and innerWidth
-       jQuery.fn[ "inner" + name ] = function() {
-               var elem = this[0];
-               return elem ?
-                       elem.style ?
-                       parseFloat( jQuery.css( elem, type, "padding" ) ) :
-                       this[ type ]() :
-                       null;
-       };
-
-       // outerHeight and outerWidth
-       jQuery.fn[ "outer" + name ] = function( margin ) {
-               var elem = this[0];
-               return elem ?
-                       elem.style ?
-                       parseFloat( jQuery.css( elem, type, margin ? "margin" : "border" ) ) :
-                       this[ type ]() :
-                       null;
-       };
-
-       jQuery.fn[ type ] = function( size ) {
-               // Get window width or height
-               var elem = this[0];
-               if ( !elem ) {
-                       return size == null ? null : this;
-               }
-
-               if ( jQuery.isFunction( size ) ) {
-                       return this.each(function( i ) {
-                               var self = jQuery( this );
-                               self[ type ]( size.call( this, i, self[ type ]() ) );
-                       });
-               }
-
-               if ( jQuery.isWindow( elem ) ) {
-                       // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
-                       // 3rd condition allows Nokia support, as it supports the docElem prop but not CSS1Compat
-                       var docElemProp = elem.document.documentElement[ "client" + name ],
-                               body = elem.document.body;
-                       return elem.document.compatMode === "CSS1Compat" && docElemProp ||
-                               body && body[ "client" + name ] || docElemProp;
-
-               // Get document width or height
-               } else if ( elem.nodeType === 9 ) {
-                       // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
-                       return Math.max(
-                               elem.documentElement["client" + name],
-                               elem.body["scroll" + name], elem.documentElement["scroll" + name],
-                               elem.body["offset" + name], elem.documentElement["offset" + name]
-                       );
-
-               // Get or set width or height on the element
-               } else if ( size === undefined ) {
-                       var orig = jQuery.css( elem, type ),
-                               ret = parseFloat( orig );
-
-                       return jQuery.isNumeric( ret ) ? ret : orig;
-
-               // Set the width or height on the element (default to pixels if value is unitless)
-               } else {
-                       return this.css( type, typeof size === "string" ? size : size + "px" );
-               }
-       };
-
-});
-
-
-
-
-// Expose jQuery to the global object
-window.jQuery = window.$ = jQuery;
-
-// Expose jQuery as an AMD module, but only for AMD loaders that
-// understand the issues with loading multiple versions of jQuery
-// in a page that all might call define(). The loader will indicate
-// they have special allowances for multiple jQuery versions by
-// specifying define.amd.jQuery = true. Register as a named module,
-// since jQuery can be concatenated with other files that may use define,
-// but not use a proper concatenation script that understands anonymous
-// AMD modules. A named AMD is safest and most robust way to register.
-// Lowercase jquery is used because AMD module names are derived from
-// file names, and jQuery is normally delivered in a lowercase file name.
-// Do this after creating the global so that if an AMD module wants to call
-// noConflict to hide this version of jQuery, it will work.
-if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
-       define( "jquery", [], function () { return jQuery; } );
-}
-
-
-
-})( window );
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.js
deleted file mode 100644 (file)
index a22d563..0000000
+++ /dev/null
@@ -1,9272 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: jQuery 1.7.1 core library
-//>>label: jQuery Core
-//>>excludeEnd("jqmBuildExclude");
-
-
-/*!
- * jQuery JavaScript Library v1.7.1
- * http://jquery.com/
- *
- * Copyright 2011, John Resig
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- * Copyright 2011, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- *
- * Date: Mon Nov 21 21:11:03 2011 -0500
- */
-(function( window, undefined ) {
-
-// Use the correct document accordingly with window argument (sandbox)
-var document = window.document,
-       navigator = window.navigator,
-       location = window.location;
-var jQuery = (function() {
-
-// Define a local copy of jQuery
-var jQuery = function( selector, context ) {
-               // The jQuery object is actually just the init constructor 'enhanced'
-               return new jQuery.fn.init( selector, context, rootjQuery );
-       },
-
-       // Map over jQuery in case of overwrite
-       _jQuery = window.jQuery,
-
-       // Map over the $ in case of overwrite
-       _$ = window.$,
-
-       // A central reference to the root jQuery(document)
-       rootjQuery,
-
-       // A simple way to check for HTML strings or ID strings
-       // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
-       quickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
-
-       // Check if a string has a non-whitespace character in it
-       rnotwhite = /\S/,
-
-       // Used for trimming whitespace
-       trimLeft = /^\s+/,
-       trimRight = /\s+$/,
-
-       // Match a standalone tag
-       rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
-
-       // JSON RegExp
-       rvalidchars = /^[\],:{}\s]*$/,
-       rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
-       rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
-       rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
-
-       // Useragent RegExp
-       rwebkit = /(webkit)[ \/]([\w.]+)/,
-       ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,
-       rmsie = /(msie) ([\w.]+)/,
-       rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
-
-       // Matches dashed string for camelizing
-       rdashAlpha = /-([a-z]|[0-9])/ig,
-       rmsPrefix = /^-ms-/,
-
-       // Used by jQuery.camelCase as callback to replace()
-       fcamelCase = function( all, letter ) {
-               return ( letter + "" ).toUpperCase();
-       },
-
-       // Keep a UserAgent string for use with jQuery.browser
-       userAgent = navigator.userAgent,
-
-       // For matching the engine and version of the browser
-       browserMatch,
-
-       // The deferred used on DOM ready
-       readyList,
-
-       // The ready event handler
-       DOMContentLoaded,
-
-       // Save a reference to some core methods
-       toString = Object.prototype.toString,
-       hasOwn = Object.prototype.hasOwnProperty,
-       push = Array.prototype.push,
-       slice = Array.prototype.slice,
-       trim = String.prototype.trim,
-       indexOf = Array.prototype.indexOf,
-
-       // [[Class]] -> type pairs
-       class2type = {};
-
-jQuery.fn = jQuery.prototype = {
-       constructor: jQuery,
-       init: function( selector, context, rootjQuery ) {
-               var match, elem, ret, doc;
-
-               // Handle $(""), $(null), or $(undefined)
-               if ( !selector ) {
-                       return this;
-               }
-
-               // Handle $(DOMElement)
-               if ( selector.nodeType ) {
-                       this.context = this[0] = selector;
-                       this.length = 1;
-                       return this;
-               }
-
-               // The body element only exists once, optimize finding it
-               if ( selector === "body" && !context && document.body ) {
-                       this.context = document;
-                       this[0] = document.body;
-                       this.selector = selector;
-                       this.length = 1;
-                       return this;
-               }
-
-               // Handle HTML strings
-               if ( typeof selector === "string" ) {
-                       // Are we dealing with HTML string or an ID?
-                       if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
-                               // Assume that strings that start and end with <> are HTML and skip the regex check
-                               match = [ null, selector, null ];
-
-                       } else {
-                               match = quickExpr.exec( selector );
-                       }
-
-                       // Verify a match, and that no context was specified for #id
-                       if ( match && (match[1] || !context) ) {
-
-                               // HANDLE: $(html) -> $(array)
-                               if ( match[1] ) {
-                                       context = context instanceof jQuery ? context[0] : context;
-                                       doc = ( context ? context.ownerDocument || context : document );
-
-                                       // If a single string is passed in and it's a single tag
-                                       // just do a createElement and skip the rest
-                                       ret = rsingleTag.exec( selector );
-
-                                       if ( ret ) {
-                                               if ( jQuery.isPlainObject( context ) ) {
-                                                       selector = [ document.createElement( ret[1] ) ];
-                                                       jQuery.fn.attr.call( selector, context, true );
-
-                                               } else {
-                                                       selector = [ doc.createElement( ret[1] ) ];
-                                               }
-
-                                       } else {
-                                               ret = jQuery.buildFragment( [ match[1] ], [ doc ] );
-                                               selector = ( ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment ).childNodes;
-                                       }
-
-                                       return jQuery.merge( this, selector );
-
-                               // HANDLE: $("#id")
-                               } else {
-                                       elem = document.getElementById( match[2] );
-
-                                       // Check parentNode to catch when Blackberry 4.6 returns
-                                       // nodes that are no longer in the document #6963
-                                       if ( elem && elem.parentNode ) {
-                                               // Handle the case where IE and Opera return items
-                                               // by name instead of ID
-                                               if ( elem.id !== match[2] ) {
-                                                       return rootjQuery.find( selector );
-                                               }
-
-                                               // Otherwise, we inject the element directly into the jQuery object
-                                               this.length = 1;
-                                               this[0] = elem;
-                                       }
-
-                                       this.context = document;
-                                       this.selector = selector;
-                                       return this;
-                               }
-
-                       // HANDLE: $(expr, $(...))
-                       } else if ( !context || context.jquery ) {
-                               return ( context || rootjQuery ).find( selector );
-
-                       // HANDLE: $(expr, context)
-                       // (which is just equivalent to: $(context).find(expr)
-                       } else {
-                               return this.constructor( context ).find( selector );
-                       }
-
-               // HANDLE: $(function)
-               // Shortcut for document ready
-               } else if ( jQuery.isFunction( selector ) ) {
-                       return rootjQuery.ready( selector );
-               }
-
-               if ( selector.selector !== undefined ) {
-                       this.selector = selector.selector;
-                       this.context = selector.context;
-               }
-
-               return jQuery.makeArray( selector, this );
-       },
-
-       // Start with an empty selector
-       selector: "",
-
-       // The current version of jQuery being used
-       jquery: "1.7.1",
-
-       // The default length of a jQuery object is 0
-       length: 0,
-
-       // The number of elements contained in the matched element set
-       size: function() {
-               return this.length;
-       },
-
-       toArray: function() {
-               return slice.call( this, 0 );
-       },
-
-       // Get the Nth element in the matched element set OR
-       // Get the whole matched element set as a clean array
-       get: function( num ) {
-               return num == null ?
-
-                       // Return a 'clean' array
-                       this.toArray() :
-
-                       // Return just the object
-                       ( num < 0 ? this[ this.length + num ] : this[ num ] );
-       },
-
-       // Take an array of elements and push it onto the stack
-       // (returning the new matched element set)
-       pushStack: function( elems, name, selector ) {
-               // Build a new jQuery matched element set
-               var ret = this.constructor();
-
-               if ( jQuery.isArray( elems ) ) {
-                       push.apply( ret, elems );
-
-               } else {
-                       jQuery.merge( ret, elems );
-               }
-
-               // Add the old object onto the stack (as a reference)
-               ret.prevObject = this;
-
-               ret.context = this.context;
-
-               if ( name === "find" ) {
-                       ret.selector = this.selector + ( this.selector ? " " : "" ) + selector;
-               } else if ( name ) {
-                       ret.selector = this.selector + "." + name + "(" + selector + ")";
-               }
-
-               // Return the newly-formed element set
-               return ret;
-       },
-
-       // Execute a callback for every element in the matched set.
-       // (You can seed the arguments with an array of args, but this is
-       // only used internally.)
-       each: function( callback, args ) {
-               return jQuery.each( this, callback, args );
-       },
-
-       ready: function( fn ) {
-               // Attach the listeners
-               jQuery.bindReady();
-
-               // Add the callback
-               readyList.add( fn );
-
-               return this;
-       },
-
-       eq: function( i ) {
-               i = +i;
-               return i === -1 ?
-                       this.slice( i ) :
-                       this.slice( i, i + 1 );
-       },
-
-       first: function() {
-               return this.eq( 0 );
-       },
-
-       last: function() {
-               return this.eq( -1 );
-       },
-
-       slice: function() {
-               return this.pushStack( slice.apply( this, arguments ),
-                       "slice", slice.call(arguments).join(",") );
-       },
-
-       map: function( callback ) {
-               return this.pushStack( jQuery.map(this, function( elem, i ) {
-                       return callback.call( elem, i, elem );
-               }));
-       },
-
-       end: function() {
-               return this.prevObject || this.constructor(null);
-       },
-
-       // For internal use only.
-       // Behaves like an Array's method, not like a jQuery method.
-       push: push,
-       sort: [].sort,
-       splice: [].splice
-};
-
-// Give the init function the jQuery prototype for later instantiation
-jQuery.fn.init.prototype = jQuery.fn;
-
-jQuery.extend = jQuery.fn.extend = function() {
-       var options, name, src, copy, copyIsArray, clone,
-               target = arguments[0] || {},
-               i = 1,
-               length = arguments.length,
-               deep = false;
-
-       // Handle a deep copy situation
-       if ( typeof target === "boolean" ) {
-               deep = target;
-               target = arguments[1] || {};
-               // skip the boolean and the target
-               i = 2;
-       }
-
-       // Handle case when target is a string or something (possible in deep copy)
-       if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
-               target = {};
-       }
-
-       // extend jQuery itself if only one argument is passed
-       if ( length === i ) {
-               target = this;
-               --i;
-       }
-
-       for ( ; i < length; i++ ) {
-               // Only deal with non-null/undefined values
-               if ( (options = arguments[ i ]) != null ) {
-                       // Extend the base object
-                       for ( name in options ) {
-                               src = target[ name ];
-                               copy = options[ name ];
-
-                               // Prevent never-ending loop
-                               if ( target === copy ) {
-                                       continue;
-                               }
-
-                               // Recurse if we're merging plain objects or arrays
-                               if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
-                                       if ( copyIsArray ) {
-                                               copyIsArray = false;
-                                               clone = src && jQuery.isArray(src) ? src : [];
-
-                                       } else {
-                                               clone = src && jQuery.isPlainObject(src) ? src : {};
-                                       }
-
-                                       // Never move original objects, clone them
-                                       target[ name ] = jQuery.extend( deep, clone, copy );
-
-                               // Don't bring in undefined values
-                               } else if ( copy !== undefined ) {
-                                       target[ name ] = copy;
-                               }
-                       }
-               }
-       }
-
-       // Return the modified object
-       return target;
-};
-
-jQuery.extend({
-       noConflict: function( deep ) {
-               if ( window.$ === jQuery ) {
-                       window.$ = _$;
-               }
-
-               if ( deep && window.jQuery === jQuery ) {
-                       window.jQuery = _jQuery;
-               }
-
-               return jQuery;
-       },
-
-       // Is the DOM ready to be used? Set to true once it occurs.
-       isReady: false,
-
-       // A counter to track how many items to wait for before
-       // the ready event fires. See #6781
-       readyWait: 1,
-
-       // Hold (or release) the ready event
-       holdReady: function( hold ) {
-               if ( hold ) {
-                       jQuery.readyWait++;
-               } else {
-                       jQuery.ready( true );
-               }
-       },
-
-       // Handle when the DOM is ready
-       ready: function( wait ) {
-               // Either a released hold or an DOMready/load event and not yet ready
-               if ( (wait === true && !--jQuery.readyWait) || (wait !== true && !jQuery.isReady) ) {
-                       // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
-                       if ( !document.body ) {
-                               return setTimeout( jQuery.ready, 1 );
-                       }
-
-                       // Remember that the DOM is ready
-                       jQuery.isReady = true;
-
-                       // If a normal DOM Ready event fired, decrement, and wait if need be
-                       if ( wait !== true && --jQuery.readyWait > 0 ) {
-                               return;
-                       }
-
-                       // If there are functions bound, to execute
-                       readyList.fireWith( document, [ jQuery ] );
-
-                       // Trigger any bound ready events
-                       if ( jQuery.fn.trigger ) {
-                               jQuery( document ).trigger( "ready" ).off( "ready" );
-                       }
-               }
-       },
-
-       bindReady: function() {
-               if ( readyList ) {
-                       return;
-               }
-
-               readyList = jQuery.Callbacks( "once memory" );
-
-               // Catch cases where $(document).ready() is called after the
-               // browser event has already occurred.
-               if ( document.readyState === "complete" ) {
-                       // Handle it asynchronously to allow scripts the opportunity to delay ready
-                       return setTimeout( jQuery.ready, 1 );
-               }
-
-               // Mozilla, Opera and webkit nightlies currently support this event
-               if ( document.addEventListener ) {
-                       // Use the handy event callback
-                       document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
-
-                       // A fallback to window.onload, that will always work
-                       window.addEventListener( "load", jQuery.ready, false );
-
-               // If IE event model is used
-               } else if ( document.attachEvent ) {
-                       // ensure firing before onload,
-                       // maybe late but safe also for iframes
-                       document.attachEvent( "onreadystatechange", DOMContentLoaded );
-
-                       // A fallback to window.onload, that will always work
-                       window.attachEvent( "onload", jQuery.ready );
-
-                       // If IE and not a frame
-                       // continually check to see if the document is ready
-                       var toplevel = false;
-
-                       try {
-                               toplevel = window.frameElement == null;
-                       } catch(e) {}
-
-                       if ( document.documentElement.doScroll && toplevel ) {
-                               doScrollCheck();
-                       }
-               }
-       },
-
-       // See test/unit/core.js for details concerning isFunction.
-       // Since version 1.3, DOM methods and functions like alert
-       // aren't supported. They return false on IE (#2968).
-       isFunction: function( obj ) {
-               return jQuery.type(obj) === "function";
-       },
-
-       isArray: Array.isArray || function( obj ) {
-               return jQuery.type(obj) === "array";
-       },
-
-       // A crude way of determining if an object is a window
-       isWindow: function( obj ) {
-               return obj && typeof obj === "object" && "setInterval" in obj;
-       },
-
-       isNumeric: function( obj ) {
-               return !isNaN( parseFloat(obj) ) && isFinite( obj );
-       },
-
-       type: function( obj ) {
-               return obj == null ?
-                       String( obj ) :
-                       class2type[ toString.call(obj) ] || "object";
-       },
-
-       isPlainObject: function( obj ) {
-               // Must be an Object.
-               // Because of IE, we also have to check the presence of the constructor property.
-               // Make sure that DOM nodes and window objects don't pass through, as well
-               if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
-                       return false;
-               }
-
-               try {
-                       // Not own constructor property must be Object
-                       if ( obj.constructor &&
-                               !hasOwn.call(obj, "constructor") &&
-                               !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
-                               return false;
-                       }
-               } catch ( e ) {
-                       // IE8,9 Will throw exceptions on certain host objects #9897
-                       return false;
-               }
-
-               // Own properties are enumerated firstly, so to speed up,
-               // if last one is own, then all properties are own.
-
-               var key;
-               for ( key in obj ) {}
-
-               return key === undefined || hasOwn.call( obj, key );
-       },
-
-       isEmptyObject: function( obj ) {
-               for ( var name in obj ) {
-                       return false;
-               }
-               return true;
-       },
-
-       error: function( msg ) {
-               throw new Error( msg );
-       },
-
-       parseJSON: function( data ) {
-               if ( typeof data !== "string" || !data ) {
-                       return null;
-               }
-
-               // Make sure leading/trailing whitespace is removed (IE can't handle it)
-               data = jQuery.trim( data );
-
-               // Attempt to parse using the native JSON parser first
-               if ( window.JSON && window.JSON.parse ) {
-                       return window.JSON.parse( data );
-               }
-
-               // Make sure the incoming data is actual JSON
-               // Logic borrowed from http://json.org/json2.js
-               if ( rvalidchars.test( data.replace( rvalidescape, "@" )
-                       .replace( rvalidtokens, "]" )
-                       .replace( rvalidbraces, "")) ) {
-
-                       return ( new Function( "return " + data ) )();
-
-               }
-               jQuery.error( "Invalid JSON: " + data );
-       },
-
-       // Cross-browser xml parsing
-       parseXML: function( data ) {
-               var xml, tmp;
-               try {
-                       if ( window.DOMParser ) { // Standard
-                               tmp = new DOMParser();
-                               xml = tmp.parseFromString( data , "text/xml" );
-                       } else { // IE
-                               xml = new ActiveXObject( "Microsoft.XMLDOM" );
-                               xml.async = "false";
-                               xml.loadXML( data );
-                       }
-               } catch( e ) {
-                       xml = undefined;
-               }
-               if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
-                       jQuery.error( "Invalid XML: " + data );
-               }
-               return xml;
-       },
-
-       noop: function() {},
-
-       // Evaluates a script in a global context
-       // Workarounds based on findings by Jim Driscoll
-       // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
-       globalEval: function( data ) {
-               if ( data && rnotwhite.test( data ) ) {
-                       // We use execScript on Internet Explorer
-                       // We use an anonymous function so that context is window
-                       // rather than jQuery in Firefox
-                       ( window.execScript || function( data ) {
-                               window[ "eval" ].call( window, data );
-                       } )( data );
-               }
-       },
-
-       // Convert dashed to camelCase; used by the css and data modules
-       // Microsoft forgot to hump their vendor prefix (#9572)
-       camelCase: function( string ) {
-               return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
-       },
-
-       nodeName: function( elem, name ) {
-               return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
-       },
-
-       // args is for internal usage only
-       each: function( object, callback, args ) {
-               var name, i = 0,
-                       length = object.length,
-                       isObj = length === undefined || jQuery.isFunction( object );
-
-               if ( args ) {
-                       if ( isObj ) {
-                               for ( name in object ) {
-                                       if ( callback.apply( object[ name ], args ) === false ) {
-                                               break;
-                                       }
-                               }
-                       } else {
-                               for ( ; i < length; ) {
-                                       if ( callback.apply( object[ i++ ], args ) === false ) {
-                                               break;
-                                       }
-                               }
-                       }
-
-               // A special, fast, case for the most common use of each
-               } else {
-                       if ( isObj ) {
-                               for ( name in object ) {
-                                       if ( callback.call( object[ name ], name, object[ name ] ) === false ) {
-                                               break;
-                                       }
-                               }
-                       } else {
-                               for ( ; i < length; ) {
-                                       if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) {
-                                               break;
-                                       }
-                               }
-                       }
-               }
-
-               return object;
-       },
-
-       // Use native String.trim function wherever possible
-       trim: trim ?
-               function( text ) {
-                       return text == null ?
-                               "" :
-                               trim.call( text );
-               } :
-
-               // Otherwise use our own trimming functionality
-               function( text ) {
-                       return text == null ?
-                               "" :
-                               text.toString().replace( trimLeft, "" ).replace( trimRight, "" );
-               },
-
-       // results is for internal usage only
-       makeArray: function( array, results ) {
-               var ret = results || [];
-
-               if ( array != null ) {
-                       // The window, strings (and functions) also have 'length'
-                       // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
-                       var type = jQuery.type( array );
-
-                       if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) {
-                               push.call( ret, array );
-                       } else {
-                               jQuery.merge( ret, array );
-                       }
-               }
-
-               return ret;
-       },
-
-       inArray: function( elem, array, i ) {
-               var len;
-
-               if ( array ) {
-                       if ( indexOf ) {
-                               return indexOf.call( array, elem, i );
-                       }
-
-                       len = array.length;
-                       i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;
-
-                       for ( ; i < len; i++ ) {
-                               // Skip accessing in sparse arrays
-                               if ( i in array && array[ i ] === elem ) {
-                                       return i;
-                               }
-                       }
-               }
-
-               return -1;
-       },
-
-       merge: function( first, second ) {
-               var i = first.length,
-                       j = 0;
-
-               if ( typeof second.length === "number" ) {
-                       for ( var l = second.length; j < l; j++ ) {
-                               first[ i++ ] = second[ j ];
-                       }
-
-               } else {
-                       while ( second[j] !== undefined ) {
-                               first[ i++ ] = second[ j++ ];
-                       }
-               }
-
-               first.length = i;
-
-               return first;
-       },
-
-       grep: function( elems, callback, inv ) {
-               var ret = [], retVal;
-               inv = !!inv;
-
-               // Go through the array, only saving the items
-               // that pass the validator function
-               for ( var i = 0, length = elems.length; i < length; i++ ) {
-                       retVal = !!callback( elems[ i ], i );
-                       if ( inv !== retVal ) {
-                               ret.push( elems[ i ] );
-                       }
-               }
-
-               return ret;
-       },
-
-       // arg is for internal usage only
-       map: function( elems, callback, arg ) {
-               var value, key, ret = [],
-                       i = 0,
-                       length = elems.length,
-                       // jquery objects are treated as arrays
-                       isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ;
-
-               // Go through the array, translating each of the items to their
-               if ( isArray ) {
-                       for ( ; i < length; i++ ) {
-                               value = callback( elems[ i ], i, arg );
-
-                               if ( value != null ) {
-                                       ret[ ret.length ] = value;
-                               }
-                       }
-
-               // Go through every key on the object,
-               } else {
-                       for ( key in elems ) {
-                               value = callback( elems[ key ], key, arg );
-
-                               if ( value != null ) {
-                                       ret[ ret.length ] = value;
-                               }
-                       }
-               }
-
-               // Flatten any nested arrays
-               return ret.concat.apply( [], ret );
-       },
-
-       // A global GUID counter for objects
-       guid: 1,
-
-       // Bind a function to a context, optionally partially applying any
-       // arguments.
-       proxy: function( fn, context ) {
-               if ( typeof context === "string" ) {
-                       var tmp = fn[ context ];
-                       context = fn;
-                       fn = tmp;
-               }
-
-               // Quick check to determine if target is callable, in the spec
-               // this throws a TypeError, but we will just return undefined.
-               if ( !jQuery.isFunction( fn ) ) {
-                       return undefined;
-               }
-
-               // Simulated bind
-               var args = slice.call( arguments, 2 ),
-                       proxy = function() {
-                               return fn.apply( context, args.concat( slice.call( arguments ) ) );
-                       };
-
-               // Set the guid of unique handler to the same of original handler, so it can be removed
-               proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;
-
-               return proxy;
-       },
-
-       // Mutifunctional method to get and set values to a collection
-       // The value/s can optionally be executed if it's a function
-       access: function( elems, key, value, exec, fn, pass ) {
-               var length = elems.length;
-
-               // Setting many attributes
-               if ( typeof key === "object" ) {
-                       for ( var k in key ) {
-                               jQuery.access( elems, k, key[k], exec, fn, value );
-                       }
-                       return elems;
-               }
-
-               // Setting one attribute
-               if ( value !== undefined ) {
-                       // Optionally, function values get executed if exec is true
-                       exec = !pass && exec && jQuery.isFunction(value);
-
-                       for ( var i = 0; i < length; i++ ) {
-                               fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
-                       }
-
-                       return elems;
-               }
-
-               // Getting an attribute
-               return length ? fn( elems[0], key ) : undefined;
-       },
-
-       now: function() {
-               return ( new Date() ).getTime();
-       },
-
-       // Use of jQuery.browser is frowned upon.
-       // More details: http://docs.jquery.com/Utilities/jQuery.browser
-       uaMatch: function( ua ) {
-               ua = ua.toLowerCase();
-
-               var match = rwebkit.exec( ua ) ||
-                       ropera.exec( ua ) ||
-                       rmsie.exec( ua ) ||
-                       ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||
-                       [];
-
-               return { browser: match[1] || "", version: match[2] || "0" };
-       },
-
-       sub: function() {
-               function jQuerySub( selector, context ) {
-                       return new jQuerySub.fn.init( selector, context );
-               }
-               jQuery.extend( true, jQuerySub, this );
-               jQuerySub.superclass = this;
-               jQuerySub.fn = jQuerySub.prototype = this();
-               jQuerySub.fn.constructor = jQuerySub;
-               jQuerySub.sub = this.sub;
-               jQuerySub.fn.init = function init( selector, context ) {
-                       if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {
-                               context = jQuerySub( context );
-                       }
-
-                       return jQuery.fn.init.call( this, selector, context, rootjQuerySub );
-               };
-               jQuerySub.fn.init.prototype = jQuerySub.fn;
-               var rootjQuerySub = jQuerySub(document);
-               return jQuerySub;
-       },
-
-       browser: {}
-});
-
-// Populate the class2type map
-jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {
-       class2type[ "[object " + name + "]" ] = name.toLowerCase();
-});
-
-browserMatch = jQuery.uaMatch( userAgent );
-if ( browserMatch.browser ) {
-       jQuery.browser[ browserMatch.browser ] = true;
-       jQuery.browser.version = browserMatch.version;
-}
-
-// Deprecated, use jQuery.browser.webkit instead
-if ( jQuery.browser.webkit ) {
-       jQuery.browser.safari = true;
-}
-
-// IE doesn't match non-breaking spaces with \s
-if ( rnotwhite.test( "\xA0" ) ) {
-       trimLeft = /^[\s\xA0]+/;
-       trimRight = /[\s\xA0]+$/;
-}
-
-// All jQuery objects should point back to these
-rootjQuery = jQuery(document);
-
-// Cleanup functions for the document ready method
-if ( document.addEventListener ) {
-       DOMContentLoaded = function() {
-               document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
-               jQuery.ready();
-       };
-
-} else if ( document.attachEvent ) {
-       DOMContentLoaded = function() {
-               // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
-               if ( document.readyState === "complete" ) {
-                       document.detachEvent( "onreadystatechange", DOMContentLoaded );
-                       jQuery.ready();
-               }
-       };
-}
-
-// The DOM ready check for Internet Explorer
-function doScrollCheck() {
-       if ( jQuery.isReady ) {
-               return;
-       }
-
-       try {
-               // If IE is used, use the trick by Diego Perini
-               // http://javascript.nwbox.com/IEContentLoaded/
-               document.documentElement.doScroll("left");
-       } catch(e) {
-               setTimeout( doScrollCheck, 1 );
-               return;
-       }
-
-       // and execute any waiting functions
-       jQuery.ready();
-}
-
-return jQuery;
-
-})();
-
-
-// String to Object flags format cache
-var flagsCache = {};
-
-// Convert String-formatted flags into Object-formatted ones and store in cache
-function createFlags( flags ) {
-       var object = flagsCache[ flags ] = {},
-               i, length;
-       flags = flags.split( /\s+/ );
-       for ( i = 0, length = flags.length; i < length; i++ ) {
-               object[ flags[i] ] = true;
-       }
-       return object;
-}
-
-/*
- * Create a callback list using the following parameters:
- *
- *     flags:  an optional list of space-separated flags that will change how
- *                     the callback list behaves
- *
- * By default a callback list will act like an event callback list and can be
- * "fired" multiple times.
- *
- * Possible flags:
- *
- *     once:                   will ensure the callback list can only be fired once (like a Deferred)
- *
- *     memory:                 will keep track of previous values and will call any callback added
- *                                     after the list has been fired right away with the latest "memorized"
- *                                     values (like a Deferred)
- *
- *     unique:                 will ensure a callback can only be added once (no duplicate in the list)
- *
- *     stopOnFalse:    interrupt callings when a callback returns false
- *
- */
-jQuery.Callbacks = function( flags ) {
-
-       // Convert flags from String-formatted to Object-formatted
-       // (we check in cache first)
-       flags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {};
-
-       var // Actual callback list
-               list = [],
-               // Stack of fire calls for repeatable lists
-               stack = [],
-               // Last fire value (for non-forgettable lists)
-               memory,
-               // Flag to know if list is currently firing
-               firing,
-               // First callback to fire (used internally by add and fireWith)
-               firingStart,
-               // End of the loop when firing
-               firingLength,
-               // Index of currently firing callback (modified by remove if needed)
-               firingIndex,
-               // Add one or several callbacks to the list
-               add = function( args ) {
-                       var i,
-                               length,
-                               elem,
-                               type,
-                               actual;
-                       for ( i = 0, length = args.length; i < length; i++ ) {
-                               elem = args[ i ];
-                               type = jQuery.type( elem );
-                               if ( type === "array" ) {
-                                       // Inspect recursively
-                                       add( elem );
-                               } else if ( type === "function" ) {
-                                       // Add if not in unique mode and callback is not in
-                                       if ( !flags.unique || !self.has( elem ) ) {
-                                               list.push( elem );
-                                       }
-                               }
-                       }
-               },
-               // Fire callbacks
-               fire = function( context, args ) {
-                       args = args || [];
-                       memory = !flags.memory || [ context, args ];
-                       firing = true;
-                       firingIndex = firingStart || 0;
-                       firingStart = 0;
-                       firingLength = list.length;
-                       for ( ; list && firingIndex < firingLength; firingIndex++ ) {
-                               if ( list[ firingIndex ].apply( context, args ) === false && flags.stopOnFalse ) {
-                                       memory = true; // Mark as halted
-                                       break;
-                               }
-                       }
-                       firing = false;
-                       if ( list ) {
-                               if ( !flags.once ) {
-                                       if ( stack && stack.length ) {
-                                               memory = stack.shift();
-                                               self.fireWith( memory[ 0 ], memory[ 1 ] );
-                                       }
-                               } else if ( memory === true ) {
-                                       self.disable();
-                               } else {
-                                       list = [];
-                               }
-                       }
-               },
-               // Actual Callbacks object
-               self = {
-                       // Add a callback or a collection of callbacks to the list
-                       add: function() {
-                               if ( list ) {
-                                       var length = list.length;
-                                       add( arguments );
-                                       // Do we need to add the callbacks to the
-                                       // current firing batch?
-                                       if ( firing ) {
-                                               firingLength = list.length;
-                                       // With memory, if we're not firing then
-                                       // we should call right away, unless previous
-                                       // firing was halted (stopOnFalse)
-                                       } else if ( memory && memory !== true ) {
-                                               firingStart = length;
-                                               fire( memory[ 0 ], memory[ 1 ] );
-                                       }
-                               }
-                               return this;
-                       },
-                       // Remove a callback from the list
-                       remove: function() {
-                               if ( list ) {
-                                       var args = arguments,
-                                               argIndex = 0,
-                                               argLength = args.length;
-                                       for ( ; argIndex < argLength ; argIndex++ ) {
-                                               for ( var i = 0; i < list.length; i++ ) {
-                                                       if ( args[ argIndex ] === list[ i ] ) {
-                                                               // Handle firingIndex and firingLength
-                                                               if ( firing ) {
-                                                                       if ( i <= firingLength ) {
-                                                                               firingLength--;
-                                                                               if ( i <= firingIndex ) {
-                                                                                       firingIndex--;
-                                                                               }
-                                                                       }
-                                                               }
-                                                               // Remove the element
-                                                               list.splice( i--, 1 );
-                                                               // If we have some unicity property then
-                                                               // we only need to do this once
-                                                               if ( flags.unique ) {
-                                                                       break;
-                                                               }
-                                                       }
-                                               }
-                                       }
-                               }
-                               return this;
-                       },
-                       // Control if a given callback is in the list
-                       has: function( fn ) {
-                               if ( list ) {
-                                       var i = 0,
-                                               length = list.length;
-                                       for ( ; i < length; i++ ) {
-                                               if ( fn === list[ i ] ) {
-                                                       return true;
-                                               }
-                                       }
-                               }
-                               return false;
-                       },
-                       // Remove all callbacks from the list
-                       empty: function() {
-                               list = [];
-                               return this;
-                       },
-                       // Have the list do nothing anymore
-                       disable: function() {
-                               list = stack = memory = undefined;
-                               return this;
-                       },
-                       // Is it disabled?
-                       disabled: function() {
-                               return !list;
-                       },
-                       // Lock the list in its current state
-                       lock: function() {
-                               stack = undefined;
-                               if ( !memory || memory === true ) {
-                                       self.disable();
-                               }
-                               return this;
-                       },
-                       // Is it locked?
-                       locked: function() {
-                               return !stack;
-                       },
-                       // Call all callbacks with the given context and arguments
-                       fireWith: function( context, args ) {
-                               if ( stack ) {
-                                       if ( firing ) {
-                                               if ( !flags.once ) {
-                                                       stack.push( [ context, args ] );
-                                               }
-                                       } else if ( !( flags.once && memory ) ) {
-                                               fire( context, args );
-                                       }
-                               }
-                               return this;
-                       },
-                       // Call all the callbacks with the given arguments
-                       fire: function() {
-                               self.fireWith( this, arguments );
-                               return this;
-                       },
-                       // To know if the callbacks have already been called at least once
-                       fired: function() {
-                               return !!memory;
-                       }
-               };
-
-       return self;
-};
-
-
-
-
-var // Static reference to slice
-       sliceDeferred = [].slice;
-
-jQuery.extend({
-
-       Deferred: function( func ) {
-               var doneList = jQuery.Callbacks( "once memory" ),
-                       failList = jQuery.Callbacks( "once memory" ),
-                       progressList = jQuery.Callbacks( "memory" ),
-                       state = "pending",
-                       lists = {
-                               resolve: doneList,
-                               reject: failList,
-                               notify: progressList
-                       },
-                       promise = {
-                               done: doneList.add,
-                               fail: failList.add,
-                               progress: progressList.add,
-
-                               state: function() {
-                                       return state;
-                               },
-
-                               // Deprecated
-                               isResolved: doneList.fired,
-                               isRejected: failList.fired,
-
-                               then: function( doneCallbacks, failCallbacks, progressCallbacks ) {
-                                       deferred.done( doneCallbacks ).fail( failCallbacks ).progress( progressCallbacks );
-                                       return this;
-                               },
-                               always: function() {
-                                       deferred.done.apply( deferred, arguments ).fail.apply( deferred, arguments );
-                                       return this;
-                               },
-                               pipe: function( fnDone, fnFail, fnProgress ) {
-                                       return jQuery.Deferred(function( newDefer ) {
-                                               jQuery.each( {
-                                                       done: [ fnDone, "resolve" ],
-                                                       fail: [ fnFail, "reject" ],
-                                                       progress: [ fnProgress, "notify" ]
-                                               }, function( handler, data ) {
-                                                       var fn = data[ 0 ],
-                                                               action = data[ 1 ],
-                                                               returned;
-                                                       if ( jQuery.isFunction( fn ) ) {
-                                                               deferred[ handler ](function() {
-                                                                       returned = fn.apply( this, arguments );
-                                                                       if ( returned && jQuery.isFunction( returned.promise ) ) {
-                                                                               returned.promise().then( newDefer.resolve, newDefer.reject, newDefer.notify );
-                                                                       } else {
-                                                                               newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] );
-                                                                       }
-                                                               });
-                                                       } else {
-                                                               deferred[ handler ]( newDefer[ action ] );
-                                                       }
-                                               });
-                                       }).promise();
-                               },
-                               // Get a promise for this deferred
-                               // If obj is provided, the promise aspect is added to the object
-                               promise: function( obj ) {
-                                       if ( obj == null ) {
-                                               obj = promise;
-                                       } else {
-                                               for ( var key in promise ) {
-                                                       obj[ key ] = promise[ key ];
-                                               }
-                                       }
-                                       return obj;
-                               }
-                       },
-                       deferred = promise.promise({}),
-                       key;
-
-               for ( key in lists ) {
-                       deferred[ key ] = lists[ key ].fire;
-                       deferred[ key + "With" ] = lists[ key ].fireWith;
-               }
-
-               // Handle state
-               deferred.done( function() {
-                       state = "resolved";
-               }, failList.disable, progressList.lock ).fail( function() {
-                       state = "rejected";
-               }, doneList.disable, progressList.lock );
-
-               // Call given func if any
-               if ( func ) {
-                       func.call( deferred, deferred );
-               }
-
-               // All done!
-               return deferred;
-       },
-
-       // Deferred helper
-       when: function( firstParam ) {
-               var args = sliceDeferred.call( arguments, 0 ),
-                       i = 0,
-                       length = args.length,
-                       pValues = new Array( length ),
-                       count = length,
-                       pCount = length,
-                       deferred = length <= 1 && firstParam && jQuery.isFunction( firstParam.promise ) ?
-                               firstParam :
-                               jQuery.Deferred(),
-                       promise = deferred.promise();
-               function resolveFunc( i ) {
-                       return function( value ) {
-                               args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
-                               if ( !( --count ) ) {
-                                       deferred.resolveWith( deferred, args );
-                               }
-                       };
-               }
-               function progressFunc( i ) {
-                       return function( value ) {
-                               pValues[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
-                               deferred.notifyWith( promise, pValues );
-                       };
-               }
-               if ( length > 1 ) {
-                       for ( ; i < length; i++ ) {
-                               if ( args[ i ] && args[ i ].promise && jQuery.isFunction( args[ i ].promise ) ) {
-                                       args[ i ].promise().then( resolveFunc(i), deferred.reject, progressFunc(i) );
-                               } else {
-                                       --count;
-                               }
-                       }
-                       if ( !count ) {
-                               deferred.resolveWith( deferred, args );
-                       }
-               } else if ( deferred !== firstParam ) {
-                       deferred.resolveWith( deferred, length ? [ firstParam ] : [] );
-               }
-               return promise;
-       }
-});
-
-
-
-
-jQuery.support = (function() {
-
-       var support,
-               all,
-               a,
-               select,
-               opt,
-               input,
-               marginDiv,
-               fragment,
-               tds,
-               events,
-               eventName,
-               i,
-               isSupported,
-               div = document.createElement( "div" ),
-               documentElement = document.documentElement;
-
-       // Preliminary tests
-       div.setAttribute("className", "t");
-       div.innerHTML = "   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
-
-       all = div.getElementsByTagName( "*" );
-       a = div.getElementsByTagName( "a" )[ 0 ];
-
-       // Can't get basic test support
-       if ( !all || !all.length || !a ) {
-               return {};
-       }
-
-       // First batch of supports tests
-       select = document.createElement( "select" );
-       opt = select.appendChild( document.createElement("option") );
-       input = div.getElementsByTagName( "input" )[ 0 ];
-
-       support = {
-               // IE strips leading whitespace when .innerHTML is used
-               leadingWhitespace: ( div.firstChild.nodeType === 3 ),
-
-               // Make sure that tbody elements aren't automatically inserted
-               // IE will insert them into empty tables
-               tbody: !div.getElementsByTagName("tbody").length,
-
-               // Make sure that link elements get serialized correctly by innerHTML
-               // This requires a wrapper element in IE
-               htmlSerialize: !!div.getElementsByTagName("link").length,
-
-               // Get the style information from getAttribute
-               // (IE uses .cssText instead)
-               style: /top/.test( a.getAttribute("style") ),
-
-               // Make sure that URLs aren't manipulated
-               // (IE normalizes it by default)
-               hrefNormalized: ( a.getAttribute("href") === "/a" ),
-
-               // Make sure that element opacity exists
-               // (IE uses filter instead)
-               // Use a regex to work around a WebKit issue. See #5145
-               opacity: /^0.55/.test( a.style.opacity ),
-
-               // Verify style float existence
-               // (IE uses styleFloat instead of cssFloat)
-               cssFloat: !!a.style.cssFloat,
-
-               // Make sure that if no value is specified for a checkbox
-               // that it defaults to "on".
-               // (WebKit defaults to "" instead)
-               checkOn: ( input.value === "on" ),
-
-               // Make sure that a selected-by-default option has a working selected property.
-               // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
-               optSelected: opt.selected,
-
-               // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
-               getSetAttribute: div.className !== "t",
-
-               // Tests for enctype support on a form(#6743)
-               enctype: !!document.createElement("form").enctype,
-
-               // Makes sure cloning an html5 element does not cause problems
-               // Where outerHTML is undefined, this still works
-               html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav></:nav>",
-
-               // Will be defined later
-               submitBubbles: true,
-               changeBubbles: true,
-               focusinBubbles: false,
-               deleteExpando: true,
-               noCloneEvent: true,
-               inlineBlockNeedsLayout: false,
-               shrinkWrapBlocks: false,
-               reliableMarginRight: true
-       };
-
-       // Make sure checked status is properly cloned
-       input.checked = true;
-       support.noCloneChecked = input.cloneNode( true ).checked;
-
-       // Make sure that the options inside disabled selects aren't marked as disabled
-       // (WebKit marks them as disabled)
-       select.disabled = true;
-       support.optDisabled = !opt.disabled;
-
-       // Test to see if it's possible to delete an expando from an element
-       // Fails in Internet Explorer
-       try {
-               delete div.test;
-       } catch( e ) {
-               support.deleteExpando = false;
-       }
-
-       if ( !div.addEventListener && div.attachEvent && div.fireEvent ) {
-               div.attachEvent( "onclick", function() {
-                       // Cloning a node shouldn't copy over any
-                       // bound event handlers (IE does this)
-                       support.noCloneEvent = false;
-               });
-               div.cloneNode( true ).fireEvent( "onclick" );
-       }
-
-       // Check if a radio maintains its value
-       // after being appended to the DOM
-       input = document.createElement("input");
-       input.value = "t";
-       input.setAttribute("type", "radio");
-       support.radioValue = input.value === "t";
-
-       input.setAttribute("checked", "checked");
-       div.appendChild( input );
-       fragment = document.createDocumentFragment();
-       fragment.appendChild( div.lastChild );
-
-       // WebKit doesn't clone checked state correctly in fragments
-       support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;
-
-       // Check if a disconnected checkbox will retain its checked
-       // value of true after appended to the DOM (IE6/7)
-       support.appendChecked = input.checked;
-
-       fragment.removeChild( input );
-       fragment.appendChild( div );
-
-       div.innerHTML = "";
-
-       // Check if div with explicit width and no margin-right incorrectly
-       // gets computed margin-right based on width of container. For more
-       // info see bug #3333
-       // Fails in WebKit before Feb 2011 nightlies
-       // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
-       if ( window.getComputedStyle ) {
-               marginDiv = document.createElement( "div" );
-               marginDiv.style.width = "0";
-               marginDiv.style.marginRight = "0";
-               div.style.width = "2px";
-               div.appendChild( marginDiv );
-               support.reliableMarginRight =
-                       ( parseInt( ( window.getComputedStyle( marginDiv, null ) || { marginRight: 0 } ).marginRight, 10 ) || 0 ) === 0;
-       }
-
-       // Technique from Juriy Zaytsev
-       // http://perfectionkills.com/detecting-event-support-without-browser-sniffing/
-       // We only care about the case where non-standard event systems
-       // are used, namely in IE. Short-circuiting here helps us to
-       // avoid an eval call (in setAttribute) which can cause CSP
-       // to go haywire. See: https://developer.mozilla.org/en/Security/CSP
-       if ( div.attachEvent ) {
-               for( i in {
-                       submit: 1,
-                       change: 1,
-                       focusin: 1
-               }) {
-                       eventName = "on" + i;
-                       isSupported = ( eventName in div );
-                       if ( !isSupported ) {
-                               div.setAttribute( eventName, "return;" );
-                               isSupported = ( typeof div[ eventName ] === "function" );
-                       }
-                       support[ i + "Bubbles" ] = isSupported;
-               }
-       }
-
-       fragment.removeChild( div );
-
-       // Null elements to avoid leaks in IE
-       fragment = select = opt = marginDiv = div = input = null;
-
-       // Run tests that need a body at doc ready
-       jQuery(function() {
-               var container, outer, inner, table, td, offsetSupport,
-                       conMarginTop, ptlm, vb, style, html,
-                       body = document.getElementsByTagName("body")[0];
-
-               if ( !body ) {
-                       // Return for frameset docs that don't have a body
-                       return;
-               }
-
-               conMarginTop = 1;
-               ptlm = "position:absolute;top:0;left:0;width:1px;height:1px;margin:0;";
-               vb = "visibility:hidden;border:0;";
-               style = "style='" + ptlm + "border:5px solid #000;padding:0;'";
-               html = "<div " + style + "><div></div></div>" +
-                       "<table " + style + " cellpadding='0' cellspacing='0'>" +
-                       "<tr><td></td></tr></table>";
-
-               container = document.createElement("div");
-               container.style.cssText = vb + "width:0;height:0;position:static;top:0;margin-top:" + conMarginTop + "px";
-               body.insertBefore( container, body.firstChild );
-
-               // Construct the test element
-               div = document.createElement("div");
-               container.appendChild( div );
-
-               // Check if table cells still have offsetWidth/Height when they are set
-               // to display:none and there are still other visible table cells in a
-               // table row; if so, offsetWidth/Height are not reliable for use when
-               // determining if an element has been hidden directly using
-               // display:none (it is still safe to use offsets if a parent element is
-               // hidden; don safety goggles and see bug #4512 for more information).
-               // (only IE 8 fails this test)
-               div.innerHTML = "<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";
-               tds = div.getElementsByTagName( "td" );
-               isSupported = ( tds[ 0 ].offsetHeight === 0 );
-
-               tds[ 0 ].style.display = "";
-               tds[ 1 ].style.display = "none";
-
-               // Check if empty table cells still have offsetWidth/Height
-               // (IE <= 8 fail this test)
-               support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 );
-
-               // Figure out if the W3C box model works as expected
-               div.innerHTML = "";
-               div.style.width = div.style.paddingLeft = "1px";
-               jQuery.boxModel = support.boxModel = div.offsetWidth === 2;
-
-               if ( typeof div.style.zoom !== "undefined" ) {
-                       // Check if natively block-level elements act like inline-block
-                       // elements when setting their display to 'inline' and giving
-                       // them layout
-                       // (IE < 8 does this)
-                       div.style.display = "inline";
-                       div.style.zoom = 1;
-                       support.inlineBlockNeedsLayout = ( div.offsetWidth === 2 );
-
-                       // Check if elements with layout shrink-wrap their children
-                       // (IE 6 does this)
-                       div.style.display = "";
-                       div.innerHTML = "<div style='width:4px;'></div>";
-                       support.shrinkWrapBlocks = ( div.offsetWidth !== 2 );
-               }
-
-               div.style.cssText = ptlm + vb;
-               div.innerHTML = html;
-
-               outer = div.firstChild;
-               inner = outer.firstChild;
-               td = outer.nextSibling.firstChild.firstChild;
-
-               offsetSupport = {
-                       doesNotAddBorder: ( inner.offsetTop !== 5 ),
-                       doesAddBorderForTableAndCells: ( td.offsetTop === 5 )
-               };
-
-               inner.style.position = "fixed";
-               inner.style.top = "20px";
-
-               // safari subtracts parent border width here which is 5px
-               offsetSupport.fixedPosition = ( inner.offsetTop === 20 || inner.offsetTop === 15 );
-               inner.style.position = inner.style.top = "";
-
-               outer.style.overflow = "hidden";
-               outer.style.position = "relative";
-
-               offsetSupport.subtractsBorderForOverflowNotVisible = ( inner.offsetTop === -5 );
-               offsetSupport.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== conMarginTop );
-
-               body.removeChild( container );
-               div  = container = null;
-
-               jQuery.extend( support, offsetSupport );
-       });
-
-       return support;
-})();
-
-
-
-
-var rbrace = /^(?:\{.*\}|\[.*\])$/,
-       rmultiDash = /([A-Z])/g;
-
-jQuery.extend({
-       cache: {},
-
-       // Please use with caution
-       uuid: 0,
-
-       // Unique for each copy of jQuery on the page
-       // Non-digits removed to match rinlinejQuery
-       expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ),
-
-       // The following elements throw uncatchable exceptions if you
-       // attempt to add expando properties to them.
-       noData: {
-               "embed": true,
-               // Ban all objects except for Flash (which handle expandos)
-               "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
-               "applet": true
-       },
-
-       hasData: function( elem ) {
-               elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];
-               return !!elem && !isEmptyDataObject( elem );
-       },
-
-       data: function( elem, name, data, pvt /* Internal Use Only */ ) {
-               if ( !jQuery.acceptData( elem ) ) {
-                       return;
-               }
-
-               var privateCache, thisCache, ret,
-                       internalKey = jQuery.expando,
-                       getByName = typeof name === "string",
-
-                       // We have to handle DOM nodes and JS objects differently because IE6-7
-                       // can't GC object references properly across the DOM-JS boundary
-                       isNode = elem.nodeType,
-
-                       // Only DOM nodes need the global jQuery cache; JS object data is
-                       // attached directly to the object so GC can occur automatically
-                       cache = isNode ? jQuery.cache : elem,
-
-                       // Only defining an ID for JS objects if its cache already exists allows
-                       // the code to shortcut on the same path as a DOM node with no cache
-                       id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey,
-                       isEvents = name === "events";
-
-               // Avoid doing any more work than we need to when trying to get data on an
-               // object that has no data at all
-               if ( (!id || !cache[id] || (!isEvents && !pvt && !cache[id].data)) && getByName && data === undefined ) {
-                       return;
-               }
-
-               if ( !id ) {
-                       // Only DOM nodes need a new unique ID for each element since their data
-                       // ends up in the global cache
-                       if ( isNode ) {
-                               elem[ internalKey ] = id = ++jQuery.uuid;
-                       } else {
-                               id = internalKey;
-                       }
-               }
-
-               if ( !cache[ id ] ) {
-                       cache[ id ] = {};
-
-                       // Avoids exposing jQuery metadata on plain JS objects when the object
-                       // is serialized using JSON.stringify
-                       if ( !isNode ) {
-                               cache[ id ].toJSON = jQuery.noop;
-                       }
-               }
-
-               // An object can be passed to jQuery.data instead of a key/value pair; this gets
-               // shallow copied over onto the existing cache
-               if ( typeof name === "object" || typeof name === "function" ) {
-                       if ( pvt ) {
-                               cache[ id ] = jQuery.extend( cache[ id ], name );
-                       } else {
-                               cache[ id ].data = jQuery.extend( cache[ id ].data, name );
-                       }
-               }
-
-               privateCache = thisCache = cache[ id ];
-
-               // jQuery data() is stored in a separate object inside the object's internal data
-               // cache in order to avoid key collisions between internal data and user-defined
-               // data.
-               if ( !pvt ) {
-                       if ( !thisCache.data ) {
-                               thisCache.data = {};
-                       }
-
-                       thisCache = thisCache.data;
-               }
-
-               if ( data !== undefined ) {
-                       thisCache[ jQuery.camelCase( name ) ] = data;
-               }
-
-               // Users should not attempt to inspect the internal events object using jQuery.data,
-               // it is undocumented and subject to change. But does anyone listen? No.
-               if ( isEvents && !thisCache[ name ] ) {
-                       return privateCache.events;
-               }
-
-               // Check for both converted-to-camel and non-converted data property names
-               // If a data property was specified
-               if ( getByName ) {
-
-                       // First Try to find as-is property data
-                       ret = thisCache[ name ];
-
-                       // Test for null|undefined property data
-                       if ( ret == null ) {
-
-                               // Try to find the camelCased property
-                               ret = thisCache[ jQuery.camelCase( name ) ];
-                       }
-               } else {
-                       ret = thisCache;
-               }
-
-               return ret;
-       },
-
-       removeData: function( elem, name, pvt /* Internal Use Only */ ) {
-               if ( !jQuery.acceptData( elem ) ) {
-                       return;
-               }
-
-               var thisCache, i, l,
-
-                       // Reference to internal data cache key
-                       internalKey = jQuery.expando,
-
-                       isNode = elem.nodeType,
-
-                       // See jQuery.data for more information
-                       cache = isNode ? jQuery.cache : elem,
-
-                       // See jQuery.data for more information
-                       id = isNode ? elem[ internalKey ] : internalKey;
-
-               // If there is already no cache entry for this object, there is no
-               // purpose in continuing
-               if ( !cache[ id ] ) {
-                       return;
-               }
-
-               if ( name ) {
-
-                       thisCache = pvt ? cache[ id ] : cache[ id ].data;
-
-                       if ( thisCache ) {
-
-                               // Support array or space separated string names for data keys
-                               if ( !jQuery.isArray( name ) ) {
-
-                                       // try the string as a key before any manipulation
-                                       if ( name in thisCache ) {
-                                               name = [ name ];
-                                       } else {
-
-                                               // split the camel cased version by spaces unless a key with the spaces exists
-                                               name = jQuery.camelCase( name );
-                                               if ( name in thisCache ) {
-                                                       name = [ name ];
-                                               } else {
-                                                       name = name.split( " " );
-                                               }
-                                       }
-                               }
-
-                               for ( i = 0, l = name.length; i < l; i++ ) {
-                                       delete thisCache[ name[i] ];
-                               }
-
-                               // If there is no data left in the cache, we want to continue
-                               // and let the cache object itself get destroyed
-                               if ( !( pvt ? isEmptyDataObject : jQuery.isEmptyObject )( thisCache ) ) {
-                                       return;
-                               }
-                       }
-               }
-
-               // See jQuery.data for more information
-               if ( !pvt ) {
-                       delete cache[ id ].data;
-
-                       // Don't destroy the parent cache unless the internal data object
-                       // had been the only thing left in it
-                       if ( !isEmptyDataObject(cache[ id ]) ) {
-                               return;
-                       }
-               }
-
-               // Browsers that fail expando deletion also refuse to delete expandos on
-               // the window, but it will allow it on all other JS objects; other browsers
-               // don't care
-               // Ensure that `cache` is not a window object #10080
-               if ( jQuery.support.deleteExpando || !cache.setInterval ) {
-                       delete cache[ id ];
-               } else {
-                       cache[ id ] = null;
-               }
-
-               // We destroyed the cache and need to eliminate the expando on the node to avoid
-               // false lookups in the cache for entries that no longer exist
-               if ( isNode ) {
-                       // IE does not allow us to delete expando properties from nodes,
-                       // nor does it have a removeAttribute function on Document nodes;
-                       // we must handle all of these cases
-                       if ( jQuery.support.deleteExpando ) {
-                               delete elem[ internalKey ];
-                       } else if ( elem.removeAttribute ) {
-                               elem.removeAttribute( internalKey );
-                       } else {
-                               elem[ internalKey ] = null;
-                       }
-               }
-       },
-
-       // For internal use only.
-       _data: function( elem, name, data ) {
-               return jQuery.data( elem, name, data, true );
-       },
-
-       // A method for determining if a DOM node can handle the data expando
-       acceptData: function( elem ) {
-               if ( elem.nodeName ) {
-                       var match = jQuery.noData[ elem.nodeName.toLowerCase() ];
-
-                       if ( match ) {
-                               return !(match === true || elem.getAttribute("classid") !== match);
-                       }
-               }
-
-               return true;
-       }
-});
-
-jQuery.fn.extend({
-       data: function( key, value ) {
-               var parts, attr, name,
-                       data = null;
-
-               if ( typeof key === "undefined" ) {
-                       if ( this.length ) {
-                               data = jQuery.data( this[0] );
-
-                               if ( this[0].nodeType === 1 && !jQuery._data( this[0], "parsedAttrs" ) ) {
-                                       attr = this[0].attributes;
-                                       for ( var i = 0, l = attr.length; i < l; i++ ) {
-                                               name = attr[i].name;
-
-                                               if ( name.indexOf( "data-" ) === 0 ) {
-                                                       name = jQuery.camelCase( name.substring(5) );
-
-                                                       dataAttr( this[0], name, data[ name ] );
-                                               }
-                                       }
-                                       jQuery._data( this[0], "parsedAttrs", true );
-                               }
-                       }
-
-                       return data;
-
-               } else if ( typeof key === "object" ) {
-                       return this.each(function() {
-                               jQuery.data( this, key );
-                       });
-               }
-
-               parts = key.split(".");
-               parts[1] = parts[1] ? "." + parts[1] : "";
-
-               if ( value === undefined ) {
-                       data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
-
-                       // Try to fetch any internally stored data first
-                       if ( data === undefined && this.length ) {
-                               data = jQuery.data( this[0], key );
-                               data = dataAttr( this[0], key, data );
-                       }
-
-                       return data === undefined && parts[1] ?
-                               this.data( parts[0] ) :
-                               data;
-
-               } else {
-                       return this.each(function() {
-                               var self = jQuery( this ),
-                                       args = [ parts[0], value ];
-
-                               self.triggerHandler( "setData" + parts[1] + "!", args );
-                               jQuery.data( this, key, value );
-                               self.triggerHandler( "changeData" + parts[1] + "!", args );
-                       });
-               }
-       },
-
-       removeData: function( key ) {
-               return this.each(function() {
-                       jQuery.removeData( this, key );
-               });
-       }
-});
-
-function dataAttr( elem, key, data ) {
-       // If nothing was found internally, try to fetch any
-       // data from the HTML5 data-* attribute
-       if ( data === undefined && elem.nodeType === 1 ) {
-
-               var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
-
-               data = elem.getAttribute( name );
-
-               if ( typeof data === "string" ) {
-                       try {
-                               data = data === "true" ? true :
-                               data === "false" ? false :
-                               data === "null" ? null :
-                               jQuery.isNumeric( data ) ? parseFloat( data ) :
-                                       rbrace.test( data ) ? jQuery.parseJSON( data ) :
-                                       data;
-                       } catch( e ) {}
-
-                       // Make sure we set the data so it isn't changed later
-                       jQuery.data( elem, key, data );
-
-               } else {
-                       data = undefined;
-               }
-       }
-
-       return data;
-}
-
-// checks a cache object for emptiness
-function isEmptyDataObject( obj ) {
-       for ( var name in obj ) {
-
-               // if the public data object is empty, the private is still empty
-               if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {
-                       continue;
-               }
-               if ( name !== "toJSON" ) {
-                       return false;
-               }
-       }
-
-       return true;
-}
-
-
-
-
-function handleQueueMarkDefer( elem, type, src ) {
-       var deferDataKey = type + "defer",
-               queueDataKey = type + "queue",
-               markDataKey = type + "mark",
-               defer = jQuery._data( elem, deferDataKey );
-       if ( defer &&
-               ( src === "queue" || !jQuery._data(elem, queueDataKey) ) &&
-               ( src === "mark" || !jQuery._data(elem, markDataKey) ) ) {
-               // Give room for hard-coded callbacks to fire first
-               // and eventually mark/queue something else on the element
-               setTimeout( function() {
-                       if ( !jQuery._data( elem, queueDataKey ) &&
-                               !jQuery._data( elem, markDataKey ) ) {
-                               jQuery.removeData( elem, deferDataKey, true );
-                               defer.fire();
-                       }
-               }, 0 );
-       }
-}
-
-jQuery.extend({
-
-       _mark: function( elem, type ) {
-               if ( elem ) {
-                       type = ( type || "fx" ) + "mark";
-                       jQuery._data( elem, type, (jQuery._data( elem, type ) || 0) + 1 );
-               }
-       },
-
-       _unmark: function( force, elem, type ) {
-               if ( force !== true ) {
-                       type = elem;
-                       elem = force;
-                       force = false;
-               }
-               if ( elem ) {
-                       type = type || "fx";
-                       var key = type + "mark",
-                               count = force ? 0 : ( (jQuery._data( elem, key ) || 1) - 1 );
-                       if ( count ) {
-                               jQuery._data( elem, key, count );
-                       } else {
-                               jQuery.removeData( elem, key, true );
-                               handleQueueMarkDefer( elem, type, "mark" );
-                       }
-               }
-       },
-
-       queue: function( elem, type, data ) {
-               var q;
-               if ( elem ) {
-                       type = ( type || "fx" ) + "queue";
-                       q = jQuery._data( elem, type );
-
-                       // Speed up dequeue by getting out quickly if this is just a lookup
-                       if ( data ) {
-                               if ( !q || jQuery.isArray(data) ) {
-                                       q = jQuery._data( elem, type, jQuery.makeArray(data) );
-                               } else {
-                                       q.push( data );
-                               }
-                       }
-                       return q || [];
-               }
-       },
-
-       dequeue: function( elem, type ) {
-               type = type || "fx";
-
-               var queue = jQuery.queue( elem, type ),
-                       fn = queue.shift(),
-                       hooks = {};
-
-               // If the fx queue is dequeued, always remove the progress sentinel
-               if ( fn === "inprogress" ) {
-                       fn = queue.shift();
-               }
-
-               if ( fn ) {
-                       // Add a progress sentinel to prevent the fx queue from being
-                       // automatically dequeued
-                       if ( type === "fx" ) {
-                               queue.unshift( "inprogress" );
-                       }
-
-                       jQuery._data( elem, type + ".run", hooks );
-                       fn.call( elem, function() {
-                               jQuery.dequeue( elem, type );
-                       }, hooks );
-               }
-
-               if ( !queue.length ) {
-                       jQuery.removeData( elem, type + "queue " + type + ".run", true );
-                       handleQueueMarkDefer( elem, type, "queue" );
-               }
-       }
-});
-
-jQuery.fn.extend({
-       queue: function( type, data ) {
-               if ( typeof type !== "string" ) {
-                       data = type;
-                       type = "fx";
-               }
-
-               if ( data === undefined ) {
-                       return jQuery.queue( this[0], type );
-               }
-               return this.each(function() {
-                       var queue = jQuery.queue( this, type, data );
-
-                       if ( type === "fx" && queue[0] !== "inprogress" ) {
-                               jQuery.dequeue( this, type );
-                       }
-               });
-       },
-       dequeue: function( type ) {
-               return this.each(function() {
-                       jQuery.dequeue( this, type );
-               });
-       },
-       // Based off of the plugin by Clint Helfers, with permission.
-       // http://blindsignals.com/index.php/2009/07/jquery-delay/
-       delay: function( time, type ) {
-               time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
-               type = type || "fx";
-
-               return this.queue( type, function( next, hooks ) {
-                       var timeout = setTimeout( next, time );
-                       hooks.stop = function() {
-                               clearTimeout( timeout );
-                       };
-               });
-       },
-       clearQueue: function( type ) {
-               return this.queue( type || "fx", [] );
-       },
-       // Get a promise resolved when queues of a certain type
-       // are emptied (fx is the type by default)
-       promise: function( type, object ) {
-               if ( typeof type !== "string" ) {
-                       object = type;
-                       type = undefined;
-               }
-               type = type || "fx";
-               var defer = jQuery.Deferred(),
-                       elements = this,
-                       i = elements.length,
-                       count = 1,
-                       deferDataKey = type + "defer",
-                       queueDataKey = type + "queue",
-                       markDataKey = type + "mark",
-                       tmp;
-               function resolve() {
-                       if ( !( --count ) ) {
-                               defer.resolveWith( elements, [ elements ] );
-                       }
-               }
-               while( i-- ) {
-                       if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) ||
-                                       ( jQuery.data( elements[ i ], queueDataKey, undefined, true ) ||
-                                               jQuery.data( elements[ i ], markDataKey, undefined, true ) ) &&
-                                       jQuery.data( elements[ i ], deferDataKey, jQuery.Callbacks( "once memory" ), true ) )) {
-                               count++;
-                               tmp.add( resolve );
-                       }
-               }
-               resolve();
-               return defer.promise();
-       }
-});
-
-
-
-
-var rclass = /[\n\t\r]/g,
-       rspace = /\s+/,
-       rreturn = /\r/g,
-       rtype = /^(?:button|input)$/i,
-       rfocusable = /^(?:button|input|object|select|textarea)$/i,
-       rclickable = /^a(?:rea)?$/i,
-       rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
-       getSetAttribute = jQuery.support.getSetAttribute,
-       nodeHook, boolHook, fixSpecified;
-
-jQuery.fn.extend({
-       attr: function( name, value ) {
-               return jQuery.access( this, name, value, true, jQuery.attr );
-       },
-
-       removeAttr: function( name ) {
-               return this.each(function() {
-                       jQuery.removeAttr( this, name );
-               });
-       },
-
-       prop: function( name, value ) {
-               return jQuery.access( this, name, value, true, jQuery.prop );
-       },
-
-       removeProp: function( name ) {
-               name = jQuery.propFix[ name ] || name;
-               return this.each(function() {
-                       // try/catch handles cases where IE balks (such as removing a property on window)
-                       try {
-                               this[ name ] = undefined;
-                               delete this[ name ];
-                       } catch( e ) {}
-               });
-       },
-
-       addClass: function( value ) {
-               var classNames, i, l, elem,
-                       setClass, c, cl;
-
-               if ( jQuery.isFunction( value ) ) {
-                       return this.each(function( j ) {
-                               jQuery( this ).addClass( value.call(this, j, this.className) );
-                       });
-               }
-
-               if ( value && typeof value === "string" ) {
-                       classNames = value.split( rspace );
-
-                       for ( i = 0, l = this.length; i < l; i++ ) {
-                               elem = this[ i ];
-
-                               if ( elem.nodeType === 1 ) {
-                                       if ( !elem.className && classNames.length === 1 ) {
-                                               elem.className = value;
-
-                                       } else {
-                                               setClass = " " + elem.className + " ";
-
-                                               for ( c = 0, cl = classNames.length; c < cl; c++ ) {
-                                                       if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) {
-                                                               setClass += classNames[ c ] + " ";
-                                                       }
-                                               }
-                                               elem.className = jQuery.trim( setClass );
-                                       }
-                               }
-                       }
-               }
-
-               return this;
-       },
-
-       removeClass: function( value ) {
-               var classNames, i, l, elem, className, c, cl;
-
-               if ( jQuery.isFunction( value ) ) {
-                       return this.each(function( j ) {
-                               jQuery( this ).removeClass( value.call(this, j, this.className) );
-                       });
-               }
-
-               if ( (value && typeof value === "string") || value === undefined ) {
-                       classNames = ( value || "" ).split( rspace );
-
-                       for ( i = 0, l = this.length; i < l; i++ ) {
-                               elem = this[ i ];
-
-                               if ( elem.nodeType === 1 && elem.className ) {
-                                       if ( value ) {
-                                               className = (" " + elem.className + " ").replace( rclass, " " );
-                                               for ( c = 0, cl = classNames.length; c < cl; c++ ) {
-                                                       className = className.replace(" " + classNames[ c ] + " ", " ");
-                                               }
-                                               elem.className = jQuery.trim( className );
-
-                                       } else {
-                                               elem.className = "";
-                                       }
-                               }
-                       }
-               }
-
-               return this;
-       },
-
-       toggleClass: function( value, stateVal ) {
-               var type = typeof value,
-                       isBool = typeof stateVal === "boolean";
-
-               if ( jQuery.isFunction( value ) ) {
-                       return this.each(function( i ) {
-                               jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
-                       });
-               }
-
-               return this.each(function() {
-                       if ( type === "string" ) {
-                               // toggle individual class names
-                               var className,
-                                       i = 0,
-                                       self = jQuery( this ),
-                                       state = stateVal,
-                                       classNames = value.split( rspace );
-
-                               while ( (className = classNames[ i++ ]) ) {
-                                       // check each className given, space seperated list
-                                       state = isBool ? state : !self.hasClass( className );
-                                       self[ state ? "addClass" : "removeClass" ]( className );
-                               }
-
-                       } else if ( type === "undefined" || type === "boolean" ) {
-                               if ( this.className ) {
-                                       // store className if set
-                                       jQuery._data( this, "__className__", this.className );
-                               }
-
-                               // toggle whole className
-                               this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";
-                       }
-               });
-       },
-
-       hasClass: function( selector ) {
-               var className = " " + selector + " ",
-                       i = 0,
-                       l = this.length;
-               for ( ; i < l; i++ ) {
-                       if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
-                               return true;
-                       }
-               }
-
-               return false;
-       },
-
-       val: function( value ) {
-               var hooks, ret, isFunction,
-                       elem = this[0];
-
-               if ( !arguments.length ) {
-                       if ( elem ) {
-                               hooks = jQuery.valHooks[ elem.nodeName.toLowerCase() ] || jQuery.valHooks[ elem.type ];
-
-                               if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
-                                       return ret;
-                               }
-
-                               ret = elem.value;
-
-                               return typeof ret === "string" ?
-                                       // handle most common string cases
-                                       ret.replace(rreturn, "") :
-                                       // handle cases where value is null/undef or number
-                                       ret == null ? "" : ret;
-                       }
-
-                       return;
-               }
-
-               isFunction = jQuery.isFunction( value );
-
-               return this.each(function( i ) {
-                       var self = jQuery(this), val;
-
-                       if ( this.nodeType !== 1 ) {
-                               return;
-                       }
-
-                       if ( isFunction ) {
-                               val = value.call( this, i, self.val() );
-                       } else {
-                               val = value;
-                       }
-
-                       // Treat null/undefined as ""; convert numbers to string
-                       if ( val == null ) {
-                               val = "";
-                       } else if ( typeof val === "number" ) {
-                               val += "";
-                       } else if ( jQuery.isArray( val ) ) {
-                               val = jQuery.map(val, function ( value ) {
-                                       return value == null ? "" : value + "";
-                               });
-                       }
-
-                       hooks = jQuery.valHooks[ this.nodeName.toLowerCase() ] || jQuery.valHooks[ this.type ];
-
-                       // If set returns undefined, fall back to normal setting
-                       if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
-                               this.value = val;
-                       }
-               });
-       }
-});
-
-jQuery.extend({
-       valHooks: {
-               option: {
-                       get: function( elem ) {
-                               // attributes.value is undefined in Blackberry 4.7 but
-                               // uses .value. See #6932
-                               var val = elem.attributes.value;
-                               return !val || val.specified ? elem.value : elem.text;
-                       }
-               },
-               select: {
-                       get: function( elem ) {
-                               var value, i, max, option,
-                                       index = elem.selectedIndex,
-                                       values = [],
-                                       options = elem.options,
-                                       one = elem.type === "select-one";
-
-                               // Nothing was selected
-                               if ( index < 0 ) {
-                                       return null;
-                               }
-
-                               // Loop through all the selected options
-                               i = one ? index : 0;
-                               max = one ? index + 1 : options.length;
-                               for ( ; i < max; i++ ) {
-                                       option = options[ i ];
-
-                                       // Don't return options that are disabled or in a disabled optgroup
-                                       if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) &&
-                                                       (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
-
-                                               // Get the specific value for the option
-                                               value = jQuery( option ).val();
-
-                                               // We don't need an array for one selects
-                                               if ( one ) {
-                                                       return value;
-                                               }
-
-                                               // Multi-Selects return an array
-                                               values.push( value );
-                                       }
-                               }
-
-                               // Fixes Bug #2551 -- select.val() broken in IE after form.reset()
-                               if ( one && !values.length && options.length ) {
-                                       return jQuery( options[ index ] ).val();
-                               }
-
-                               return values;
-                       },
-
-                       set: function( elem, value ) {
-                               var values = jQuery.makeArray( value );
-
-                               jQuery(elem).find("option").each(function() {
-                                       this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
-                               });
-
-                               if ( !values.length ) {
-                                       elem.selectedIndex = -1;
-                               }
-                               return values;
-                       }
-               }
-       },
-
-       attrFn: {
-               val: true,
-               css: true,
-               html: true,
-               text: true,
-               data: true,
-               width: true,
-               height: true,
-               offset: true
-       },
-
-       attr: function( elem, name, value, pass ) {
-               var ret, hooks, notxml,
-                       nType = elem.nodeType;
-
-               // don't get/set attributes on text, comment and attribute nodes
-               if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
-                       return;
-               }
-
-               if ( pass && name in jQuery.attrFn ) {
-                       return jQuery( elem )[ name ]( value );
-               }
-
-               // Fallback to prop when attributes are not supported
-               if ( typeof elem.getAttribute === "undefined" ) {
-                       return jQuery.prop( elem, name, value );
-               }
-
-               notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
-
-               // All attributes are lowercase
-               // Grab necessary hook if one is defined
-               if ( notxml ) {
-                       name = name.toLowerCase();
-                       hooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook );
-               }
-
-               if ( value !== undefined ) {
-
-                       if ( value === null ) {
-                               jQuery.removeAttr( elem, name );
-                               return;
-
-                       } else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) {
-                               return ret;
-
-                       } else {
-                               elem.setAttribute( name, "" + value );
-                               return value;
-                       }
-
-               } else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) {
-                       return ret;
-
-               } else {
-
-                       ret = elem.getAttribute( name );
-
-                       // Non-existent attributes return null, we normalize to undefined
-                       return ret === null ?
-                               undefined :
-                               ret;
-               }
-       },
-
-       removeAttr: function( elem, value ) {
-               var propName, attrNames, name, l,
-                       i = 0;
-
-               if ( value && elem.nodeType === 1 ) {
-                       attrNames = value.toLowerCase().split( rspace );
-                       l = attrNames.length;
-
-                       for ( ; i < l; i++ ) {
-                               name = attrNames[ i ];
-
-                               if ( name ) {
-                                       propName = jQuery.propFix[ name ] || name;
-
-                                       // See #9699 for explanation of this approach (setting first, then removal)
-                                       jQuery.attr( elem, name, "" );
-                                       elem.removeAttribute( getSetAttribute ? name : propName );
-
-                                       // Set corresponding property to false for boolean attributes
-                                       if ( rboolean.test( name ) && propName in elem ) {
-                                               elem[ propName ] = false;
-                                       }
-                               }
-                       }
-               }
-       },
-
-       attrHooks: {
-               type: {
-                       set: function( elem, value ) {
-                               // We can't allow the type property to be changed (since it causes problems in IE)
-                               if ( rtype.test( elem.nodeName ) && elem.parentNode ) {
-                                       jQuery.error( "type property can't be changed" );
-                               } else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
-                                       // Setting the type on a radio button after the value resets the value in IE6-9
-                                       // Reset value to it's default in case type is set after value
-                                       // This is for element creation
-                                       var val = elem.value;
-                                       elem.setAttribute( "type", value );
-                                       if ( val ) {
-                                               elem.value = val;
-                                       }
-                                       return value;
-                               }
-                       }
-               },
-               // Use the value property for back compat
-               // Use the nodeHook for button elements in IE6/7 (#1954)
-               value: {
-                       get: function( elem, name ) {
-                               if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
-                                       return nodeHook.get( elem, name );
-                               }
-                               return name in elem ?
-                                       elem.value :
-                                       null;
-                       },
-                       set: function( elem, value, name ) {
-                               if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
-                                       return nodeHook.set( elem, value, name );
-                               }
-                               // Does not return so that setAttribute is also used
-                               elem.value = value;
-                       }
-               }
-       },
-
-       propFix: {
-               tabindex: "tabIndex",
-               readonly: "readOnly",
-               "for": "htmlFor",
-               "class": "className",
-               maxlength: "maxLength",
-               cellspacing: "cellSpacing",
-               cellpadding: "cellPadding",
-               rowspan: "rowSpan",
-               colspan: "colSpan",
-               usemap: "useMap",
-               frameborder: "frameBorder",
-               contenteditable: "contentEditable"
-       },
-
-       prop: function( elem, name, value ) {
-               var ret, hooks, notxml,
-                       nType = elem.nodeType;
-
-               // don't get/set properties on text, comment and attribute nodes
-               if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
-                       return;
-               }
-
-               notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
-
-               if ( notxml ) {
-                       // Fix name and attach hooks
-                       name = jQuery.propFix[ name ] || name;
-                       hooks = jQuery.propHooks[ name ];
-               }
-
-               if ( value !== undefined ) {
-                       if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
-                               return ret;
-
-                       } else {
-                               return ( elem[ name ] = value );
-                       }
-
-               } else {
-                       if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
-                               return ret;
-
-                       } else {
-                               return elem[ name ];
-                       }
-               }
-       },
-
-       propHooks: {
-               tabIndex: {
-                       get: function( elem ) {
-                               // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
-                               // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
-                               var attributeNode = elem.getAttributeNode("tabindex");
-
-                               return attributeNode && attributeNode.specified ?
-                                       parseInt( attributeNode.value, 10 ) :
-                                       rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
-                                               0 :
-                                               undefined;
-                       }
-               }
-       }
-});
-
-// Add the tabIndex propHook to attrHooks for back-compat (different case is intentional)
-jQuery.attrHooks.tabindex = jQuery.propHooks.tabIndex;
-
-// Hook for boolean attributes
-boolHook = {
-       get: function( elem, name ) {
-               // Align boolean attributes with corresponding properties
-               // Fall back to attribute presence where some booleans are not supported
-               var attrNode,
-                       property = jQuery.prop( elem, name );
-               return property === true || typeof property !== "boolean" && ( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ?
-                       name.toLowerCase() :
-                       undefined;
-       },
-       set: function( elem, value, name ) {
-               var propName;
-               if ( value === false ) {
-                       // Remove boolean attributes when set to false
-                       jQuery.removeAttr( elem, name );
-               } else {
-                       // value is true since we know at this point it's type boolean and not false
-                       // Set boolean attributes to the same name and set the DOM property
-                       propName = jQuery.propFix[ name ] || name;
-                       if ( propName in elem ) {
-                               // Only set the IDL specifically if it already exists on the element
-                               elem[ propName ] = true;
-                       }
-
-                       elem.setAttribute( name, name.toLowerCase() );
-               }
-               return name;
-       }
-};
-
-// IE6/7 do not support getting/setting some attributes with get/setAttribute
-if ( !getSetAttribute ) {
-
-       fixSpecified = {
-               name: true,
-               id: true
-       };
-
-       // Use this for any attribute in IE6/7
-       // This fixes almost every IE6/7 issue
-       nodeHook = jQuery.valHooks.button = {
-               get: function( elem, name ) {
-                       var ret;
-                       ret = elem.getAttributeNode( name );
-                       return ret && ( fixSpecified[ name ] ? ret.nodeValue !== "" : ret.specified ) ?
-                               ret.nodeValue :
-                               undefined;
-               },
-               set: function( elem, value, name ) {
-                       // Set the existing or create a new attribute node
-                       var ret = elem.getAttributeNode( name );
-                       if ( !ret ) {
-                               ret = document.createAttribute( name );
-                               elem.setAttributeNode( ret );
-                       }
-                       return ( ret.nodeValue = value + "" );
-               }
-       };
-
-       // Apply the nodeHook to tabindex
-       jQuery.attrHooks.tabindex.set = nodeHook.set;
-
-       // Set width and height to auto instead of 0 on empty string( Bug #8150 )
-       // This is for removals
-       jQuery.each([ "width", "height" ], function( i, name ) {
-               jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
-                       set: function( elem, value ) {
-                               if ( value === "" ) {
-                                       elem.setAttribute( name, "auto" );
-                                       return value;
-                               }
-                       }
-               });
-       });
-
-       // Set contenteditable to false on removals(#10429)
-       // Setting to empty string throws an error as an invalid value
-       jQuery.attrHooks.contenteditable = {
-               get: nodeHook.get,
-               set: function( elem, value, name ) {
-                       if ( value === "" ) {
-                               value = "false";
-                       }
-                       nodeHook.set( elem, value, name );
-               }
-       };
-}
-
-
-// Some attributes require a special call on IE
-if ( !jQuery.support.hrefNormalized ) {
-       jQuery.each([ "href", "src", "width", "height" ], function( i, name ) {
-               jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
-                       get: function( elem ) {
-                               var ret = elem.getAttribute( name, 2 );
-                               return ret === null ? undefined : ret;
-                       }
-               });
-       });
-}
-
-if ( !jQuery.support.style ) {
-       jQuery.attrHooks.style = {
-               get: function( elem ) {
-                       // Return undefined in the case of empty string
-                       // Normalize to lowercase since IE uppercases css property names
-                       return elem.style.cssText.toLowerCase() || undefined;
-               },
-               set: function( elem, value ) {
-                       return ( elem.style.cssText = "" + value );
-               }
-       };
-}
-
-// Safari mis-reports the default selected property of an option
-// Accessing the parent's selectedIndex property fixes it
-if ( !jQuery.support.optSelected ) {
-       jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {
-               get: function( elem ) {
-                       var parent = elem.parentNode;
-
-                       if ( parent ) {
-                               parent.selectedIndex;
-
-                               // Make sure that it also works with optgroups, see #5701
-                               if ( parent.parentNode ) {
-                                       parent.parentNode.selectedIndex;
-                               }
-                       }
-                       return null;
-               }
-       });
-}
-
-// IE6/7 call enctype encoding
-if ( !jQuery.support.enctype ) {
-       jQuery.propFix.enctype = "encoding";
-}
-
-// Radios and checkboxes getter/setter
-if ( !jQuery.support.checkOn ) {
-       jQuery.each([ "radio", "checkbox" ], function() {
-               jQuery.valHooks[ this ] = {
-                       get: function( elem ) {
-                               // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
-                               return elem.getAttribute("value") === null ? "on" : elem.value;
-                       }
-               };
-       });
-}
-jQuery.each([ "radio", "checkbox" ], function() {
-       jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {
-               set: function( elem, value ) {
-                       if ( jQuery.isArray( value ) ) {
-                               return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
-                       }
-               }
-       });
-});
-
-
-
-
-var rformElems = /^(?:textarea|input|select)$/i,
-       rtypenamespace = /^([^\.]*)?(?:\.(.+))?$/,
-       rhoverHack = /\bhover(\.\S+)?\b/,
-       rkeyEvent = /^key/,
-       rmouseEvent = /^(?:mouse|contextmenu)|click/,
-       rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
-       rquickIs = /^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,
-       quickParse = function( selector ) {
-               var quick = rquickIs.exec( selector );
-               if ( quick ) {
-                       //   0  1    2   3
-                       // [ _, tag, id, class ]
-                       quick[1] = ( quick[1] || "" ).toLowerCase();
-                       quick[3] = quick[3] && new RegExp( "(?:^|\\s)" + quick[3] + "(?:\\s|$)" );
-               }
-               return quick;
-       },
-       quickIs = function( elem, m ) {
-               var attrs = elem.attributes || {};
-               return (
-                       (!m[1] || elem.nodeName.toLowerCase() === m[1]) &&
-                       (!m[2] || (attrs.id || {}).value === m[2]) &&
-                       (!m[3] || m[3].test( (attrs[ "class" ] || {}).value ))
-               );
-       },
-       hoverHack = function( events ) {
-               return jQuery.event.special.hover ? events : events.replace( rhoverHack, "mouseenter$1 mouseleave$1" );
-       };
-
-/*
- * Helper functions for managing events -- not part of the public interface.
- * Props to Dean Edwards' addEvent library for many of the ideas.
- */
-jQuery.event = {
-
-       add: function( elem, types, handler, data, selector ) {
-
-               var elemData, eventHandle, events,
-                       t, tns, type, namespaces, handleObj,
-                       handleObjIn, quick, handlers, special;
-
-               // Don't attach events to noData or text/comment nodes (allow plain objects tho)
-               if ( elem.nodeType === 3 || elem.nodeType === 8 || !types || !handler || !(elemData = jQuery._data( elem )) ) {
-                       return;
-               }
-
-               // Caller can pass in an object of custom data in lieu of the handler
-               if ( handler.handler ) {
-                       handleObjIn = handler;
-                       handler = handleObjIn.handler;
-               }
-
-               // Make sure that the handler has a unique ID, used to find/remove it later
-               if ( !handler.guid ) {
-                       handler.guid = jQuery.guid++;
-               }
-
-               // Init the element's event structure and main handler, if this is the first
-               events = elemData.events;
-               if ( !events ) {
-                       elemData.events = events = {};
-               }
-               eventHandle = elemData.handle;
-               if ( !eventHandle ) {
-                       elemData.handle = eventHandle = function( e ) {
-                               // Discard the second event of a jQuery.event.trigger() and
-                               // when an event is called after a page has unloaded
-                               return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ?
-                                       jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
-                                       undefined;
-                       };
-                       // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events
-                       eventHandle.elem = elem;
-               }
-
-               // Handle multiple events separated by a space
-               // jQuery(...).bind("mouseover mouseout", fn);
-               types = jQuery.trim( hoverHack(types) ).split( " " );
-               for ( t = 0; t < types.length; t++ ) {
-
-                       tns = rtypenamespace.exec( types[t] ) || [];
-                       type = tns[1];
-                       namespaces = ( tns[2] || "" ).split( "." ).sort();
-
-                       // If event changes its type, use the special event handlers for the changed type
-                       special = jQuery.event.special[ type ] || {};
-
-                       // If selector defined, determine special event api type, otherwise given type
-                       type = ( selector ? special.delegateType : special.bindType ) || type;
-
-                       // Update special based on newly reset type
-                       special = jQuery.event.special[ type ] || {};
-
-                       // handleObj is passed to all event handlers
-                       handleObj = jQuery.extend({
-                               type: type,
-                               origType: tns[1],
-                               data: data,
-                               handler: handler,
-                               guid: handler.guid,
-                               selector: selector,
-                               quick: quickParse( selector ),
-                               namespace: namespaces.join(".")
-                       }, handleObjIn );
-
-                       // Init the event handler queue if we're the first
-                       handlers = events[ type ];
-                       if ( !handlers ) {
-                               handlers = events[ type ] = [];
-                               handlers.delegateCount = 0;
-
-                               // Only use addEventListener/attachEvent if the special events handler returns false
-                               if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
-                                       // Bind the global event handler to the element
-                                       if ( elem.addEventListener ) {
-                                               elem.addEventListener( type, eventHandle, false );
-
-                                       } else if ( elem.attachEvent ) {
-                                               elem.attachEvent( "on" + type, eventHandle );
-                                       }
-                               }
-                       }
-
-                       if ( special.add ) {
-                               special.add.call( elem, handleObj );
-
-                               if ( !handleObj.handler.guid ) {
-                                       handleObj.handler.guid = handler.guid;
-                               }
-                       }
-
-                       // Add to the element's handler list, delegates in front
-                       if ( selector ) {
-                               handlers.splice( handlers.delegateCount++, 0, handleObj );
-                       } else {
-                               handlers.push( handleObj );
-                       }
-
-                       // Keep track of which events have ever been used, for event optimization
-                       jQuery.event.global[ type ] = true;
-               }
-
-               // Nullify elem to prevent memory leaks in IE
-               elem = null;
-       },
-
-       global: {},
-
-       // Detach an event or set of events from an element
-       remove: function( elem, types, handler, selector, mappedTypes ) {
-
-               var elemData = jQuery.hasData( elem ) && jQuery._data( elem ),
-                       t, tns, type, origType, namespaces, origCount,
-                       j, events, special, handle, eventType, handleObj;
-
-               if ( !elemData || !(events = elemData.events) ) {
-                       return;
-               }
-
-               // Once for each type.namespace in types; type may be omitted
-               types = jQuery.trim( hoverHack( types || "" ) ).split(" ");
-               for ( t = 0; t < types.length; t++ ) {
-                       tns = rtypenamespace.exec( types[t] ) || [];
-                       type = origType = tns[1];
-                       namespaces = tns[2];
-
-                       // Unbind all events (on this namespace, if provided) for the element
-                       if ( !type ) {
-                               for ( type in events ) {
-                                       jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
-                               }
-                               continue;
-                       }
-
-                       special = jQuery.event.special[ type ] || {};
-                       type = ( selector? special.delegateType : special.bindType ) || type;
-                       eventType = events[ type ] || [];
-                       origCount = eventType.length;
-                       namespaces = namespaces ? new RegExp("(^|\\.)" + namespaces.split(".").sort().join("\\.(?:.*\\.)?") + "(\\.|$)") : null;
-
-                       // Remove matching events
-                       for ( j = 0; j < eventType.length; j++ ) {
-                               handleObj = eventType[ j ];
-
-                               if ( ( mappedTypes || origType === handleObj.origType ) &&
-                                        ( !handler || handler.guid === handleObj.guid ) &&
-                                        ( !namespaces || namespaces.test( handleObj.namespace ) ) &&
-                                        ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
-                                       eventType.splice( j--, 1 );
-
-                                       if ( handleObj.selector ) {
-                                               eventType.delegateCount--;
-                                       }
-                                       if ( special.remove ) {
-                                               special.remove.call( elem, handleObj );
-                                       }
-                               }
-                       }
-
-                       // Remove generic event handler if we removed something and no more handlers exist
-                       // (avoids potential for endless recursion during removal of special event handlers)
-                       if ( eventType.length === 0 && origCount !== eventType.length ) {
-                               if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {
-                                       jQuery.removeEvent( elem, type, elemData.handle );
-                               }
-
-                               delete events[ type ];
-                       }
-               }
-
-               // Remove the expando if it's no longer used
-               if ( jQuery.isEmptyObject( events ) ) {
-                       handle = elemData.handle;
-                       if ( handle ) {
-                               handle.elem = null;
-                       }
-
-                       // removeData also checks for emptiness and clears the expando if empty
-                       // so use it instead of delete
-                       jQuery.removeData( elem, [ "events", "handle" ], true );
-               }
-       },
-
-       // Events that are safe to short-circuit if no handlers are attached.
-       // Native DOM events should not be added, they may have inline handlers.
-       customEvent: {
-               "getData": true,
-               "setData": true,
-               "changeData": true
-       },
-
-       trigger: function( event, data, elem, onlyHandlers ) {
-               // Don't do events on text and comment nodes
-               if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {
-                       return;
-               }
-
-               // Event object or event type
-               var type = event.type || event,
-                       namespaces = [],
-                       cache, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType;
-
-               // focus/blur morphs to focusin/out; ensure we're not firing them right now
-               if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
-                       return;
-               }
-
-               if ( type.indexOf( "!" ) >= 0 ) {
-                       // Exclusive events trigger only for the exact event (no namespaces)
-                       type = type.slice(0, -1);
-                       exclusive = true;
-               }
-
-               if ( type.indexOf( "." ) >= 0 ) {
-                       // Namespaced trigger; create a regexp to match event type in handle()
-                       namespaces = type.split(".");
-                       type = namespaces.shift();
-                       namespaces.sort();
-               }
-
-               if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) {
-                       // No jQuery handlers for this event type, and it can't have inline handlers
-                       return;
-               }
-
-               // Caller can pass in an Event, Object, or just an event type string
-               event = typeof event === "object" ?
-                       // jQuery.Event object
-                       event[ jQuery.expando ] ? event :
-                       // Object literal
-                       new jQuery.Event( type, event ) :
-                       // Just the event type (string)
-                       new jQuery.Event( type );
-
-               event.type = type;
-               event.isTrigger = true;
-               event.exclusive = exclusive;
-               event.namespace = namespaces.join( "." );
-               event.namespace_re = event.namespace? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)") : null;
-               ontype = type.indexOf( ":" ) < 0 ? "on" + type : "";
-
-               // Handle a global trigger
-               if ( !elem ) {
-
-                       // TODO: Stop taunting the data cache; remove global events and always attach to document
-                       cache = jQuery.cache;
-                       for ( i in cache ) {
-                               if ( cache[ i ].events && cache[ i ].events[ type ] ) {
-                                       jQuery.event.trigger( event, data, cache[ i ].handle.elem, true );
-                               }
-                       }
-                       return;
-               }
-
-               // Clean up the event in case it is being reused
-               event.result = undefined;
-               if ( !event.target ) {
-                       event.target = elem;
-               }
-
-               // Clone any incoming data and prepend the event, creating the handler arg list
-               data = data != null ? jQuery.makeArray( data ) : [];
-               data.unshift( event );
-
-               // Allow special events to draw outside the lines
-               special = jQuery.event.special[ type ] || {};
-               if ( special.trigger && special.trigger.apply( elem, data ) === false ) {
-                       return;
-               }
-
-               // Determine event propagation path in advance, per W3C events spec (#9951)
-               // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
-               eventPath = [[ elem, special.bindType || type ]];
-               if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
-
-                       bubbleType = special.delegateType || type;
-                       cur = rfocusMorph.test( bubbleType + type ) ? elem : elem.parentNode;
-                       old = null;
-                       for ( ; cur; cur = cur.parentNode ) {
-                               eventPath.push([ cur, bubbleType ]);
-                               old = cur;
-                       }
-
-                       // Only add window if we got to document (e.g., not plain obj or detached DOM)
-                       if ( old && old === elem.ownerDocument ) {
-                               eventPath.push([ old.defaultView || old.parentWindow || window, bubbleType ]);
-                       }
-               }
-
-               // Fire handlers on the event path
-               for ( i = 0; i < eventPath.length && !event.isPropagationStopped(); i++ ) {
-
-                       cur = eventPath[i][0];
-                       event.type = eventPath[i][1];
-
-                       handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" );
-                       if ( handle ) {
-                               handle.apply( cur, data );
-                       }
-                       // Note that this is a bare JS function and not a jQuery handler
-                       handle = ontype && cur[ ontype ];
-                       if ( handle && jQuery.acceptData( cur ) && handle.apply( cur, data ) === false ) {
-                               event.preventDefault();
-                       }
-               }
-               event.type = type;
-
-               // If nobody prevented the default action, do it now
-               if ( !onlyHandlers && !event.isDefaultPrevented() ) {
-
-                       if ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) &&
-                               !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) {
-
-                               // Call a native DOM method on the target with the same name name as the event.
-                               // Can't use an .isFunction() check here because IE6/7 fails that test.
-                               // Don't do default actions on window, that's where global variables be (#6170)
-                               // IE<9 dies on focus/blur to hidden element (#1486)
-                               if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {
-
-                                       // Don't re-trigger an onFOO event when we call its FOO() method
-                                       old = elem[ ontype ];
-
-                                       if ( old ) {
-                                               elem[ ontype ] = null;
-                                       }
-
-                                       // Prevent re-triggering of the same event, since we already bubbled it above
-                                       jQuery.event.triggered = type;
-                                       elem[ type ]();
-                                       jQuery.event.triggered = undefined;
-
-                                       if ( old ) {
-                                               elem[ ontype ] = old;
-                                       }
-                               }
-                       }
-               }
-
-               return event.result;
-       },
-
-       dispatch: function( event ) {
-
-               // Make a writable jQuery.Event from the native event object
-               event = jQuery.event.fix( event || window.event );
-
-               var handlers = ( (jQuery._data( this, "events" ) || {} )[ event.type ] || []),
-                       delegateCount = handlers.delegateCount,
-                       args = [].slice.call( arguments, 0 ),
-                       run_all = !event.exclusive && !event.namespace,
-                       handlerQueue = [],
-                       i, j, cur, jqcur, ret, selMatch, matched, matches, handleObj, sel, related;
-
-               // Use the fix-ed jQuery.Event rather than the (read-only) native event
-               args[0] = event;
-               event.delegateTarget = this;
-
-               // Determine handlers that should run if there are delegated events
-               // Avoid disabled elements in IE (#6911) and non-left-click bubbling in Firefox (#3861)
-               if ( delegateCount && !event.target.disabled && !(event.button && event.type === "click") ) {
-
-                       // Pregenerate a single jQuery object for reuse with .is()
-                       jqcur = jQuery(this);
-                       jqcur.context = this.ownerDocument || this;
-
-                       for ( cur = event.target; cur != this; cur = cur.parentNode || this ) {
-                               selMatch = {};
-                               matches = [];
-                               jqcur[0] = cur;
-                               for ( i = 0; i < delegateCount; i++ ) {
-                                       handleObj = handlers[ i ];
-                                       sel = handleObj.selector;
-
-                                       if ( selMatch[ sel ] === undefined ) {
-                                               selMatch[ sel ] = (
-                                                       handleObj.quick ? quickIs( cur, handleObj.quick ) : jqcur.is( sel )
-                                               );
-                                       }
-                                       if ( selMatch[ sel ] ) {
-                                               matches.push( handleObj );
-                                       }
-                               }
-                               if ( matches.length ) {
-                                       handlerQueue.push({ elem: cur, matches: matches });
-                               }
-                       }
-               }
-
-               // Add the remaining (directly-bound) handlers
-               if ( handlers.length > delegateCount ) {
-                       handlerQueue.push({ elem: this, matches: handlers.slice( delegateCount ) });
-               }
-
-               // Run delegates first; they may want to stop propagation beneath us
-               for ( i = 0; i < handlerQueue.length && !event.isPropagationStopped(); i++ ) {
-                       matched = handlerQueue[ i ];
-                       event.currentTarget = matched.elem;
-
-                       for ( j = 0; j < matched.matches.length && !event.isImmediatePropagationStopped(); j++ ) {
-                               handleObj = matched.matches[ j ];
-
-                               // Triggered event must either 1) be non-exclusive and have no namespace, or
-                               // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).
-                               if ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) {
-
-                                       event.data = handleObj.data;
-                                       event.handleObj = handleObj;
-
-                                       ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )
-                                                       .apply( matched.elem, args );
-
-                                       if ( ret !== undefined ) {
-                                               event.result = ret;
-                                               if ( ret === false ) {
-                                                       event.preventDefault();
-                                                       event.stopPropagation();
-                                               }
-                                       }
-                               }
-                       }
-               }
-
-               return event.result;
-       },
-
-       // Includes some event props shared by KeyEvent and MouseEvent
-       // *** attrChange attrName relatedNode srcElement  are not normalized, non-W3C, deprecated, will be removed in 1.8 ***
-       props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
-
-       fixHooks: {},
-
-       keyHooks: {
-               props: "char charCode key keyCode".split(" "),
-               filter: function( event, original ) {
-
-                       // Add which for key events
-                       if ( event.which == null ) {
-                               event.which = original.charCode != null ? original.charCode : original.keyCode;
-                       }
-
-                       return event;
-               }
-       },
-
-       mouseHooks: {
-               props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
-               filter: function( event, original ) {
-                       var eventDoc, doc, body,
-                               button = original.button,
-                               fromElement = original.fromElement;
-
-                       // Calculate pageX/Y if missing and clientX/Y available
-                       if ( event.pageX == null && original.clientX != null ) {
-                               eventDoc = event.target.ownerDocument || document;
-                               doc = eventDoc.documentElement;
-                               body = eventDoc.body;
-
-                               event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
-                               event.pageY = original.clientY + ( doc && doc.scrollTop  || body && body.scrollTop  || 0 ) - ( doc && doc.clientTop  || body && body.clientTop  || 0 );
-                       }
-
-                       // Add relatedTarget, if necessary
-                       if ( !event.relatedTarget && fromElement ) {
-                               event.relatedTarget = fromElement === event.target ? original.toElement : fromElement;
-                       }
-
-                       // Add which for click: 1 === left; 2 === middle; 3 === right
-                       // Note: button is not normalized, so don't use it
-                       if ( !event.which && button !== undefined ) {
-                               event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
-                       }
-
-                       return event;
-               }
-       },
-
-       fix: function( event ) {
-               if ( event[ jQuery.expando ] ) {
-                       return event;
-               }
-
-               // Create a writable copy of the event object and normalize some properties
-               var i, prop,
-                       originalEvent = event,
-                       fixHook = jQuery.event.fixHooks[ event.type ] || {},
-                       copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
-
-               event = jQuery.Event( originalEvent );
-
-               for ( i = copy.length; i; ) {
-                       prop = copy[ --i ];
-                       event[ prop ] = originalEvent[ prop ];
-               }
-
-               // Fix target property, if necessary (#1925, IE 6/7/8 & Safari2)
-               if ( !event.target ) {
-                       event.target = originalEvent.srcElement || document;
-               }
-
-               // Target should not be a text node (#504, Safari)
-               if ( event.target.nodeType === 3 ) {
-                       event.target = event.target.parentNode;
-               }
-
-               // For mouse/key events; add metaKey if it's not there (#3368, IE6/7/8)
-               if ( event.metaKey === undefined ) {
-                       event.metaKey = event.ctrlKey;
-               }
-
-               return fixHook.filter? fixHook.filter( event, originalEvent ) : event;
-       },
-
-       special: {
-               ready: {
-                       // Make sure the ready event is setup
-                       setup: jQuery.bindReady
-               },
-
-               load: {
-                       // Prevent triggered image.load events from bubbling to window.load
-                       noBubble: true
-               },
-
-               focus: {
-                       delegateType: "focusin"
-               },
-               blur: {
-                       delegateType: "focusout"
-               },
-
-               beforeunload: {
-                       setup: function( data, namespaces, eventHandle ) {
-                               // We only want to do this special case on windows
-                               if ( jQuery.isWindow( this ) ) {
-                                       this.onbeforeunload = eventHandle;
-                               }
-                       },
-
-                       teardown: function( namespaces, eventHandle ) {
-                               if ( this.onbeforeunload === eventHandle ) {
-                                       this.onbeforeunload = null;
-                               }
-                       }
-               }
-       },
-
-       simulate: function( type, elem, event, bubble ) {
-               // Piggyback on a donor event to simulate a different one.
-               // Fake originalEvent to avoid donor's stopPropagation, but if the
-               // simulated event prevents default then we do the same on the donor.
-               var e = jQuery.extend(
-                       new jQuery.Event(),
-                       event,
-                       { type: type,
-                               isSimulated: true,
-                               originalEvent: {}
-                       }
-               );
-               if ( bubble ) {
-                       jQuery.event.trigger( e, null, elem );
-               } else {
-                       jQuery.event.dispatch.call( elem, e );
-               }
-               if ( e.isDefaultPrevented() ) {
-                       event.preventDefault();
-               }
-       }
-};
-
-// Some plugins are using, but it's undocumented/deprecated and will be removed.
-// The 1.7 special event interface should provide all the hooks needed now.
-jQuery.event.handle = jQuery.event.dispatch;
-
-jQuery.removeEvent = document.removeEventListener ?
-       function( elem, type, handle ) {
-               if ( elem.removeEventListener ) {
-                       elem.removeEventListener( type, handle, false );
-               }
-       } :
-       function( elem, type, handle ) {
-               if ( elem.detachEvent ) {
-                       elem.detachEvent( "on" + type, handle );
-               }
-       };
-
-jQuery.Event = function( src, props ) {
-       // Allow instantiation without the 'new' keyword
-       if ( !(this instanceof jQuery.Event) ) {
-               return new jQuery.Event( src, props );
-       }
-
-       // Event object
-       if ( src && src.type ) {
-               this.originalEvent = src;
-               this.type = src.type;
-
-               // Events bubbling up the document may have been marked as prevented
-               // by a handler lower down the tree; reflect the correct value.
-               this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false ||
-                       src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;
-
-       // Event type
-       } else {
-               this.type = src;
-       }
-
-       // Put explicitly provided properties onto the event object
-       if ( props ) {
-               jQuery.extend( this, props );
-       }
-
-       // Create a timestamp if incoming event doesn't have one
-       this.timeStamp = src && src.timeStamp || jQuery.now();
-
-       // Mark it as fixed
-       this[ jQuery.expando ] = true;
-};
-
-function returnFalse() {
-       return false;
-}
-function returnTrue() {
-       return true;
-}
-
-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
-// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
-jQuery.Event.prototype = {
-       preventDefault: function() {
-               this.isDefaultPrevented = returnTrue;
-
-               var e = this.originalEvent;
-               if ( !e ) {
-                       return;
-               }
-
-               // if preventDefault exists run it on the original event
-               if ( e.preventDefault ) {
-                       e.preventDefault();
-
-               // otherwise set the returnValue property of the original event to false (IE)
-               } else {
-                       e.returnValue = false;
-               }
-       },
-       stopPropagation: function() {
-               this.isPropagationStopped = returnTrue;
-
-               var e = this.originalEvent;
-               if ( !e ) {
-                       return;
-               }
-               // if stopPropagation exists run it on the original event
-               if ( e.stopPropagation ) {
-                       e.stopPropagation();
-               }
-               // otherwise set the cancelBubble property of the original event to true (IE)
-               e.cancelBubble = true;
-       },
-       stopImmediatePropagation: function() {
-               this.isImmediatePropagationStopped = returnTrue;
-               this.stopPropagation();
-       },
-       isDefaultPrevented: returnFalse,
-       isPropagationStopped: returnFalse,
-       isImmediatePropagationStopped: returnFalse
-};
-
-// Create mouseenter/leave events using mouseover/out and event-time checks
-jQuery.each({
-       mouseenter: "mouseover",
-       mouseleave: "mouseout"
-}, function( orig, fix ) {
-       jQuery.event.special[ orig ] = {
-               delegateType: fix,
-               bindType: fix,
-
-               handle: function( event ) {
-                       var target = this,
-                               related = event.relatedTarget,
-                               handleObj = event.handleObj,
-                               selector = handleObj.selector,
-                               ret;
-
-                       // For mousenter/leave call the handler if related is outside the target.
-                       // NB: No relatedTarget if the mouse left/entered the browser window
-                       if ( !related || (related !== target && !jQuery.contains( target, related )) ) {
-                               event.type = handleObj.origType;
-                               ret = handleObj.handler.apply( this, arguments );
-                               event.type = fix;
-                       }
-                       return ret;
-               }
-       };
-});
-
-// IE submit delegation
-if ( !jQuery.support.submitBubbles ) {
-
-       jQuery.event.special.submit = {
-               setup: function() {
-                       // Only need this for delegated form submit events
-                       if ( jQuery.nodeName( this, "form" ) ) {
-                               return false;
-                       }
-
-                       // Lazy-add a submit handler when a descendant form may potentially be submitted
-                       jQuery.event.add( this, "click._submit keypress._submit", function( e ) {
-                               // Node name check avoids a VML-related crash in IE (#9807)
-                               var elem = e.target,
-                                       form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined;
-                               if ( form && !form._submit_attached ) {
-                                       jQuery.event.add( form, "submit._submit", function( event ) {
-                                               // If form was submitted by the user, bubble the event up the tree
-                                               if ( this.parentNode && !event.isTrigger ) {
-                                                       jQuery.event.simulate( "submit", this.parentNode, event, true );
-                                               }
-                                       });
-                                       form._submit_attached = true;
-                               }
-                       });
-                       // return undefined since we don't need an event listener
-               },
-
-               teardown: function() {
-                       // Only need this for delegated form submit events
-                       if ( jQuery.nodeName( this, "form" ) ) {
-                               return false;
-                       }
-
-                       // Remove delegated handlers; cleanData eventually reaps submit handlers attached above
-                       jQuery.event.remove( this, "._submit" );
-               }
-       };
-}
-
-// IE change delegation and checkbox/radio fix
-if ( !jQuery.support.changeBubbles ) {
-
-       jQuery.event.special.change = {
-
-               setup: function() {
-
-                       if ( rformElems.test( this.nodeName ) ) {
-                               // IE doesn't fire change on a check/radio until blur; trigger it on click
-                               // after a propertychange. Eat the blur-change in special.change.handle.
-                               // This still fires onchange a second time for check/radio after blur.
-                               if ( this.type === "checkbox" || this.type === "radio" ) {
-                                       jQuery.event.add( this, "propertychange._change", function( event ) {
-                                               if ( event.originalEvent.propertyName === "checked" ) {
-                                                       this._just_changed = true;
-                                               }
-                                       });
-                                       jQuery.event.add( this, "click._change", function( event ) {
-                                               if ( this._just_changed && !event.isTrigger ) {
-                                                       this._just_changed = false;
-                                                       jQuery.event.simulate( "change", this, event, true );
-                                               }
-                                       });
-                               }
-                               return false;
-                       }
-                       // Delegated event; lazy-add a change handler on descendant inputs
-                       jQuery.event.add( this, "beforeactivate._change", function( e ) {
-                               var elem = e.target;
-
-                               if ( rformElems.test( elem.nodeName ) && !elem._change_attached ) {
-                                       jQuery.event.add( elem, "change._change", function( event ) {
-                                               if ( this.parentNode && !event.isSimulated && !event.isTrigger ) {
-                                                       jQuery.event.simulate( "change", this.parentNode, event, true );
-                                               }
-                                       });
-                                       elem._change_attached = true;
-                               }
-                       });
-               },
-
-               handle: function( event ) {
-                       var elem = event.target;
-
-                       // Swallow native change events from checkbox/radio, we already triggered them above
-                       if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) {
-                               return event.handleObj.handler.apply( this, arguments );
-                       }
-               },
-
-               teardown: function() {
-                       jQuery.event.remove( this, "._change" );
-
-                       return rformElems.test( this.nodeName );
-               }
-       };
-}
-
-// Create "bubbling" focus and blur events
-if ( !jQuery.support.focusinBubbles ) {
-       jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
-
-               // Attach a single capturing handler while someone wants focusin/focusout
-               var attaches = 0,
-                       handler = function( event ) {
-                               jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
-                       };
-
-               jQuery.event.special[ fix ] = {
-                       setup: function() {
-                               if ( attaches++ === 0 ) {
-                                       document.addEventListener( orig, handler, true );
-                               }
-                       },
-                       teardown: function() {
-                               if ( --attaches === 0 ) {
-                                       document.removeEventListener( orig, handler, true );
-                               }
-                       }
-               };
-       });
-}
-
-jQuery.fn.extend({
-
-       on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
-               var origFn, type;
-
-               // Types can be a map of types/handlers
-               if ( typeof types === "object" ) {
-                       // ( types-Object, selector, data )
-                       if ( typeof selector !== "string" ) {
-                               // ( types-Object, data )
-                               data = selector;
-                               selector = undefined;
-                       }
-                       for ( type in types ) {
-                               this.on( type, selector, data, types[ type ], one );
-                       }
-                       return this;
-               }
-
-               if ( data == null && fn == null ) {
-                       // ( types, fn )
-                       fn = selector;
-                       data = selector = undefined;
-               } else if ( fn == null ) {
-                       if ( typeof selector === "string" ) {
-                               // ( types, selector, fn )
-                               fn = data;
-                               data = undefined;
-                       } else {
-                               // ( types, data, fn )
-                               fn = data;
-                               data = selector;
-                               selector = undefined;
-                       }
-               }
-               if ( fn === false ) {
-                       fn = returnFalse;
-               } else if ( !fn ) {
-                       return this;
-               }
-
-               if ( one === 1 ) {
-                       origFn = fn;
-                       fn = function( event ) {
-                               // Can use an empty set, since event contains the info
-                               jQuery().off( event );
-                               return origFn.apply( this, arguments );
-                       };
-                       // Use same guid so caller can remove using origFn
-                       fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
-               }
-               return this.each( function() {
-                       jQuery.event.add( this, types, fn, data, selector );
-               });
-       },
-       one: function( types, selector, data, fn ) {
-               return this.on.call( this, types, selector, data, fn, 1 );
-       },
-       off: function( types, selector, fn ) {
-               if ( types && types.preventDefault && types.handleObj ) {
-                       // ( event )  dispatched jQuery.Event
-                       var handleObj = types.handleObj;
-                       jQuery( types.delegateTarget ).off(
-                               handleObj.namespace? handleObj.type + "." + handleObj.namespace : handleObj.type,
-                               handleObj.selector,
-                               handleObj.handler
-                       );
-                       return this;
-               }
-               if ( typeof types === "object" ) {
-                       // ( types-object [, selector] )
-                       for ( var type in types ) {
-                               this.off( type, selector, types[ type ] );
-                       }
-                       return this;
-               }
-               if ( selector === false || typeof selector === "function" ) {
-                       // ( types [, fn] )
-                       fn = selector;
-                       selector = undefined;
-               }
-               if ( fn === false ) {
-                       fn = returnFalse;
-               }
-               return this.each(function() {
-                       jQuery.event.remove( this, types, fn, selector );
-               });
-       },
-
-       bind: function( types, data, fn ) {
-               return this.on( types, null, data, fn );
-       },
-       unbind: function( types, fn ) {
-               return this.off( types, null, fn );
-       },
-
-       live: function( types, data, fn ) {
-               jQuery( this.context ).on( types, this.selector, data, fn );
-               return this;
-       },
-       die: function( types, fn ) {
-               jQuery( this.context ).off( types, this.selector || "**", fn );
-               return this;
-       },
-
-       delegate: function( selector, types, data, fn ) {
-               return this.on( types, selector, data, fn );
-       },
-       undelegate: function( selector, types, fn ) {
-               // ( namespace ) or ( selector, types [, fn] )
-               return arguments.length == 1? this.off( selector, "**" ) : this.off( types, selector, fn );
-       },
-
-       trigger: function( type, data ) {
-               return this.each(function() {
-                       jQuery.event.trigger( type, data, this );
-               });
-       },
-       triggerHandler: function( type, data ) {
-               if ( this[0] ) {
-                       return jQuery.event.trigger( type, data, this[0], true );
-               }
-       },
-
-       toggle: function( fn ) {
-               // Save reference to arguments for access in closure
-               var args = arguments,
-                       guid = fn.guid || jQuery.guid++,
-                       i = 0,
-                       toggler = function( event ) {
-                               // Figure out which function to execute
-                               var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i;
-                               jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 );
-
-                               // Make sure that clicks stop
-                               event.preventDefault();
-
-                               // and execute the function
-                               return args[ lastToggle ].apply( this, arguments ) || false;
-                       };
-
-               // link all the functions, so any of them can unbind this click handler
-               toggler.guid = guid;
-               while ( i < args.length ) {
-                       args[ i++ ].guid = guid;
-               }
-
-               return this.click( toggler );
-       },
-
-       hover: function( fnOver, fnOut ) {
-               return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
-       }
-});
-
-jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
-       "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
-       "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {
-
-       // Handle event binding
-       jQuery.fn[ name ] = function( data, fn ) {
-               if ( fn == null ) {
-                       fn = data;
-                       data = null;
-               }
-
-               return arguments.length > 0 ?
-                       this.on( name, null, data, fn ) :
-                       this.trigger( name );
-       };
-
-       if ( jQuery.attrFn ) {
-               jQuery.attrFn[ name ] = true;
-       }
-
-       if ( rkeyEvent.test( name ) ) {
-               jQuery.event.fixHooks[ name ] = jQuery.event.keyHooks;
-       }
-
-       if ( rmouseEvent.test( name ) ) {
-               jQuery.event.fixHooks[ name ] = jQuery.event.mouseHooks;
-       }
-});
-
-
-
-/*!
- * Sizzle CSS Selector Engine
- *  Copyright 2011, The Dojo Foundation
- *  Released under the MIT, BSD, and GPL Licenses.
- *  More information: http://sizzlejs.com/
- */
-(function(){
-
-var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
-       expando = "sizcache" + (Math.random() + '').replace('.', ''),
-       done = 0,
-       toString = Object.prototype.toString,
-       hasDuplicate = false,
-       baseHasDuplicate = true,
-       rBackslash = /\\/g,
-       rReturn = /\r\n/g,
-       rNonWord = /\W/;
-
-// Here we check if the JavaScript engine is using some sort of
-// optimization where it does not always call our comparision
-// function. If that is the case, discard the hasDuplicate value.
-//   Thus far that includes Google Chrome.
-[0, 0].sort(function() {
-       baseHasDuplicate = false;
-       return 0;
-});
-
-var Sizzle = function( selector, context, results, seed ) {
-       results = results || [];
-       context = context || document;
-
-       var origContext = context;
-
-       if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
-               return [];
-       }
-       
-       if ( !selector || typeof selector !== "string" ) {
-               return results;
-       }
-
-       var m, set, checkSet, extra, ret, cur, pop, i,
-               prune = true,
-               contextXML = Sizzle.isXML( context ),
-               parts = [],
-               soFar = selector;
-       
-       // Reset the position of the chunker regexp (start from head)
-       do {
-               chunker.exec( "" );
-               m = chunker.exec( soFar );
-
-               if ( m ) {
-                       soFar = m[3];
-               
-                       parts.push( m[1] );
-               
-                       if ( m[2] ) {
-                               extra = m[3];
-                               break;
-                       }
-               }
-       } while ( m );
-
-       if ( parts.length > 1 && origPOS.exec( selector ) ) {
-
-               if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
-                       set = posProcess( parts[0] + parts[1], context, seed );
-
-               } else {
-                       set = Expr.relative[ parts[0] ] ?
-                               [ context ] :
-                               Sizzle( parts.shift(), context );
-
-                       while ( parts.length ) {
-                               selector = parts.shift();
-
-                               if ( Expr.relative[ selector ] ) {
-                                       selector += parts.shift();
-                               }
-                               
-                               set = posProcess( selector, set, seed );
-                       }
-               }
-
-       } else {
-               // Take a shortcut and set the context if the root selector is an ID
-               // (but not if it'll be faster if the inner selector is an ID)
-               if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
-                               Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
-
-                       ret = Sizzle.find( parts.shift(), context, contextXML );
-                       context = ret.expr ?
-                               Sizzle.filter( ret.expr, ret.set )[0] :
-                               ret.set[0];
-               }
-
-               if ( context ) {
-                       ret = seed ?
-                               { expr: parts.pop(), set: makeArray(seed) } :
-                               Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );
-
-                       set = ret.expr ?
-                               Sizzle.filter( ret.expr, ret.set ) :
-                               ret.set;
-
-                       if ( parts.length > 0 ) {
-                               checkSet = makeArray( set );
-
-                       } else {
-                               prune = false;
-                       }
-
-                       while ( parts.length ) {
-                               cur = parts.pop();
-                               pop = cur;
-
-                               if ( !Expr.relative[ cur ] ) {
-                                       cur = "";
-                               } else {
-                                       pop = parts.pop();
-                               }
-
-                               if ( pop == null ) {
-                                       pop = context;
-                               }
-
-                               Expr.relative[ cur ]( checkSet, pop, contextXML );
-                       }
-
-               } else {
-                       checkSet = parts = [];
-               }
-       }
-
-       if ( !checkSet ) {
-               checkSet = set;
-       }
-
-       if ( !checkSet ) {
-               Sizzle.error( cur || selector );
-       }
-
-       if ( toString.call(checkSet) === "[object Array]" ) {
-               if ( !prune ) {
-                       results.push.apply( results, checkSet );
-
-               } else if ( context && context.nodeType === 1 ) {
-                       for ( i = 0; checkSet[i] != null; i++ ) {
-                               if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {
-                                       results.push( set[i] );
-                               }
-                       }
-
-               } else {
-                       for ( i = 0; checkSet[i] != null; i++ ) {
-                               if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
-                                       results.push( set[i] );
-                               }
-                       }
-               }
-
-       } else {
-               makeArray( checkSet, results );
-       }
-
-       if ( extra ) {
-               Sizzle( extra, origContext, results, seed );
-               Sizzle.uniqueSort( results );
-       }
-
-       return results;
-};
-
-Sizzle.uniqueSort = function( results ) {
-       if ( sortOrder ) {
-               hasDuplicate = baseHasDuplicate;
-               results.sort( sortOrder );
-
-               if ( hasDuplicate ) {
-                       for ( var i = 1; i < results.length; i++ ) {
-                               if ( results[i] === results[ i - 1 ] ) {
-                                       results.splice( i--, 1 );
-                               }
-                       }
-               }
-       }
-
-       return results;
-};
-
-Sizzle.matches = function( expr, set ) {
-       return Sizzle( expr, null, null, set );
-};
-
-Sizzle.matchesSelector = function( node, expr ) {
-       return Sizzle( expr, null, null, [node] ).length > 0;
-};
-
-Sizzle.find = function( expr, context, isXML ) {
-       var set, i, len, match, type, left;
-
-       if ( !expr ) {
-               return [];
-       }
-
-       for ( i = 0, len = Expr.order.length; i < len; i++ ) {
-               type = Expr.order[i];
-               
-               if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
-                       left = match[1];
-                       match.splice( 1, 1 );
-
-                       if ( left.substr( left.length - 1 ) !== "\\" ) {
-                               match[1] = (match[1] || "").replace( rBackslash, "" );
-                               set = Expr.find[ type ]( match, context, isXML );
-
-                               if ( set != null ) {
-                                       expr = expr.replace( Expr.match[ type ], "" );
-                                       break;
-                               }
-                       }
-               }
-       }
-
-       if ( !set ) {
-               set = typeof context.getElementsByTagName !== "undefined" ?
-                       context.getElementsByTagName( "*" ) :
-                       [];
-       }
-
-       return { set: set, expr: expr };
-};
-
-Sizzle.filter = function( expr, set, inplace, not ) {
-       var match, anyFound,
-               type, found, item, filter, left,
-               i, pass,
-               old = expr,
-               result = [],
-               curLoop = set,
-               isXMLFilter = set && set[0] && Sizzle.isXML( set[0] );
-
-       while ( expr && set.length ) {
-               for ( type in Expr.filter ) {
-                       if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
-                               filter = Expr.filter[ type ];
-                               left = match[1];
-
-                               anyFound = false;
-
-                               match.splice(1,1);
-
-                               if ( left.substr( left.length - 1 ) === "\\" ) {
-                                       continue;
-                               }
-
-                               if ( curLoop === result ) {
-                                       result = [];
-                               }
-
-                               if ( Expr.preFilter[ type ] ) {
-                                       match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
-
-                                       if ( !match ) {
-                                               anyFound = found = true;
-
-                                       } else if ( match === true ) {
-                                               continue;
-                                       }
-                               }
-
-                               if ( match ) {
-                                       for ( i = 0; (item = curLoop[i]) != null; i++ ) {
-                                               if ( item ) {
-                                                       found = filter( item, match, i, curLoop );
-                                                       pass = not ^ found;
-
-                                                       if ( inplace && found != null ) {
-                                                               if ( pass ) {
-                                                                       anyFound = true;
-
-                                                               } else {
-                                                                       curLoop[i] = false;
-                                                               }
-
-                                                       } else if ( pass ) {
-                                                               result.push( item );
-                                                               anyFound = true;
-                                                       }
-                                               }
-                                       }
-                               }
-
-                               if ( found !== undefined ) {
-                                       if ( !inplace ) {
-                                               curLoop = result;
-                                       }
-
-                                       expr = expr.replace( Expr.match[ type ], "" );
-
-                                       if ( !anyFound ) {
-                                               return [];
-                                       }
-
-                                       break;
-                               }
-                       }
-               }
-
-               // Improper expression
-               if ( expr === old ) {
-                       if ( anyFound == null ) {
-                               Sizzle.error( expr );
-
-                       } else {
-                               break;
-                       }
-               }
-
-               old = expr;
-       }
-
-       return curLoop;
-};
-
-Sizzle.error = function( msg ) {
-       throw new Error( "Syntax error, unrecognized expression: " + msg );
-};
-
-/**
- * Utility function for retreiving the text value of an array of DOM nodes
- * @param {Array|Element} elem
- */
-var getText = Sizzle.getText = function( elem ) {
-    var i, node,
-               nodeType = elem.nodeType,
-               ret = "";
-
-       if ( nodeType ) {
-               if ( nodeType === 1 || nodeType === 9 ) {
-                       // Use textContent || innerText for elements
-                       if ( typeof elem.textContent === 'string' ) {
-                               return elem.textContent;
-                       } else if ( typeof elem.innerText === 'string' ) {
-                               // Replace IE's carriage returns
-                               return elem.innerText.replace( rReturn, '' );
-                       } else {
-                               // Traverse it's children
-                               for ( elem = elem.firstChild; elem; elem = elem.nextSibling) {
-                                       ret += getText( elem );
-                               }
-                       }
-               } else if ( nodeType === 3 || nodeType === 4 ) {
-                       return elem.nodeValue;
-               }
-       } else {
-
-               // If no nodeType, this is expected to be an array
-               for ( i = 0; (node = elem[i]); i++ ) {
-                       // Do not traverse comment nodes
-                       if ( node.nodeType !== 8 ) {
-                               ret += getText( node );
-                       }
-               }
-       }
-       return ret;
-};
-
-var Expr = Sizzle.selectors = {
-       order: [ "ID", "NAME", "TAG" ],
-
-       match: {
-               ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
-               CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
-               NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
-               ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
-               TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,
-               CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,
-               POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,
-               PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
-       },
-
-       leftMatch: {},
-
-       attrMap: {
-               "class": "className",
-               "for": "htmlFor"
-       },
-
-       attrHandle: {
-               href: function( elem ) {
-                       return elem.getAttribute( "href" );
-               },
-               type: function( elem ) {
-                       return elem.getAttribute( "type" );
-               }
-       },
-
-       relative: {
-               "+": function(checkSet, part){
-                       var isPartStr = typeof part === "string",
-                               isTag = isPartStr && !rNonWord.test( part ),
-                               isPartStrNotTag = isPartStr && !isTag;
-
-                       if ( isTag ) {
-                               part = part.toLowerCase();
-                       }
-
-                       for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
-                               if ( (elem = checkSet[i]) ) {
-                                       while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
-
-                                       checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?
-                                               elem || false :
-                                               elem === part;
-                               }
-                       }
-
-                       if ( isPartStrNotTag ) {
-                               Sizzle.filter( part, checkSet, true );
-                       }
-               },
-
-               ">": function( checkSet, part ) {
-                       var elem,
-                               isPartStr = typeof part === "string",
-                               i = 0,
-                               l = checkSet.length;
-
-                       if ( isPartStr && !rNonWord.test( part ) ) {
-                               part = part.toLowerCase();
-
-                               for ( ; i < l; i++ ) {
-                                       elem = checkSet[i];
-
-                                       if ( elem ) {
-                                               var parent = elem.parentNode;
-                                               checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
-                                       }
-                               }
-
-                       } else {
-                               for ( ; i < l; i++ ) {
-                                       elem = checkSet[i];
-
-                                       if ( elem ) {
-                                               checkSet[i] = isPartStr ?
-                                                       elem.parentNode :
-                                                       elem.parentNode === part;
-                                       }
-                               }
-
-                               if ( isPartStr ) {
-                                       Sizzle.filter( part, checkSet, true );
-                               }
-                       }
-               },
-
-               "": function(checkSet, part, isXML){
-                       var nodeCheck,
-                               doneName = done++,
-                               checkFn = dirCheck;
-
-                       if ( typeof part === "string" && !rNonWord.test( part ) ) {
-                               part = part.toLowerCase();
-                               nodeCheck = part;
-                               checkFn = dirNodeCheck;
-                       }
-
-                       checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML );
-               },
-
-               "~": function( checkSet, part, isXML ) {
-                       var nodeCheck,
-                               doneName = done++,
-                               checkFn = dirCheck;
-
-                       if ( typeof part === "string" && !rNonWord.test( part ) ) {
-                               part = part.toLowerCase();
-                               nodeCheck = part;
-                               checkFn = dirNodeCheck;
-                       }
-
-                       checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML );
-               }
-       },
-
-       find: {
-               ID: function( match, context, isXML ) {
-                       if ( typeof context.getElementById !== "undefined" && !isXML ) {
-                               var m = context.getElementById(match[1]);
-                               // Check parentNode to catch when Blackberry 4.6 returns
-                               // nodes that are no longer in the document #6963
-                               return m && m.parentNode ? [m] : [];
-                       }
-               },
-
-               NAME: function( match, context ) {
-                       if ( typeof context.getElementsByName !== "undefined" ) {
-                               var ret = [],
-                                       results = context.getElementsByName( match[1] );
-
-                               for ( var i = 0, l = results.length; i < l; i++ ) {
-                                       if ( results[i].getAttribute("name") === match[1] ) {
-                                               ret.push( results[i] );
-                                       }
-                               }
-
-                               return ret.length === 0 ? null : ret;
-                       }
-               },
-
-               TAG: function( match, context ) {
-                       if ( typeof context.getElementsByTagName !== "undefined" ) {
-                               return context.getElementsByTagName( match[1] );
-                       }
-               }
-       },
-       preFilter: {
-               CLASS: function( match, curLoop, inplace, result, not, isXML ) {
-                       match = " " + match[1].replace( rBackslash, "" ) + " ";
-
-                       if ( isXML ) {
-                               return match;
-                       }
-
-                       for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
-                               if ( elem ) {
-                                       if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) {
-                                               if ( !inplace ) {
-                                                       result.push( elem );
-                                               }
-
-                                       } else if ( inplace ) {
-                                               curLoop[i] = false;
-                                       }
-                               }
-                       }
-
-                       return false;
-               },
-
-               ID: function( match ) {
-                       return match[1].replace( rBackslash, "" );
-               },
-
-               TAG: function( match, curLoop ) {
-                       return match[1].replace( rBackslash, "" ).toLowerCase();
-               },
-
-               CHILD: function( match ) {
-                       if ( match[1] === "nth" ) {
-                               if ( !match[2] ) {
-                                       Sizzle.error( match[0] );
-                               }
-
-                               match[2] = match[2].replace(/^\+|\s*/g, '');
-
-                               // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
-                               var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec(
-                                       match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
-                                       !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
-
-                               // calculate the numbers (first)n+(last) including if they are negative
-                               match[2] = (test[1] + (test[2] || 1)) - 0;
-                               match[3] = test[3] - 0;
-                       }
-                       else if ( match[2] ) {
-                               Sizzle.error( match[0] );
-                       }
-
-                       // TODO: Move to normal caching system
-                       match[0] = done++;
-
-                       return match;
-               },
-
-               ATTR: function( match, curLoop, inplace, result, not, isXML ) {
-                       var name = match[1] = match[1].replace( rBackslash, "" );
-                       
-                       if ( !isXML && Expr.attrMap[name] ) {
-                               match[1] = Expr.attrMap[name];
-                       }
-
-                       // Handle if an un-quoted value was used
-                       match[4] = ( match[4] || match[5] || "" ).replace( rBackslash, "" );
-
-                       if ( match[2] === "~=" ) {
-                               match[4] = " " + match[4] + " ";
-                       }
-
-                       return match;
-               },
-
-               PSEUDO: function( match, curLoop, inplace, result, not ) {
-                       if ( match[1] === "not" ) {
-                               // If we're dealing with a complex expression, or a simple one
-                               if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
-                                       match[3] = Sizzle(match[3], null, null, curLoop);
-
-                               } else {
-                                       var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
-
-                                       if ( !inplace ) {
-                                               result.push.apply( result, ret );
-                                       }
-
-                                       return false;
-                               }
-
-                       } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
-                               return true;
-                       }
-                       
-                       return match;
-               },
-
-               POS: function( match ) {
-                       match.unshift( true );
-
-                       return match;
-               }
-       },
-       
-       filters: {
-               enabled: function( elem ) {
-                       return elem.disabled === false && elem.type !== "hidden";
-               },
-
-               disabled: function( elem ) {
-                       return elem.disabled === true;
-               },
-
-               checked: function( elem ) {
-                       return elem.checked === true;
-               },
-               
-               selected: function( elem ) {
-                       // Accessing this property makes selected-by-default
-                       // options in Safari work properly
-                       if ( elem.parentNode ) {
-                               elem.parentNode.selectedIndex;
-                       }
-                       
-                       return elem.selected === true;
-               },
-
-               parent: function( elem ) {
-                       return !!elem.firstChild;
-               },
-
-               empty: function( elem ) {
-                       return !elem.firstChild;
-               },
-
-               has: function( elem, i, match ) {
-                       return !!Sizzle( match[3], elem ).length;
-               },
-
-               header: function( elem ) {
-                       return (/h\d/i).test( elem.nodeName );
-               },
-
-               text: function( elem ) {
-                       var attr = elem.getAttribute( "type" ), type = elem.type;
-                       // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) 
-                       // use getAttribute instead to test this case
-                       return elem.nodeName.toLowerCase() === "input" && "text" === type && ( attr === type || attr === null );
-               },
-
-               radio: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "radio" === elem.type;
-               },
-
-               checkbox: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "checkbox" === elem.type;
-               },
-
-               file: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "file" === elem.type;
-               },
-
-               password: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "password" === elem.type;
-               },
-
-               submit: function( elem ) {
-                       var name = elem.nodeName.toLowerCase();
-                       return (name === "input" || name === "button") && "submit" === elem.type;
-               },
-
-               image: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "image" === elem.type;
-               },
-
-               reset: function( elem ) {
-                       var name = elem.nodeName.toLowerCase();
-                       return (name === "input" || name === "button") && "reset" === elem.type;
-               },
-
-               button: function( elem ) {
-                       var name = elem.nodeName.toLowerCase();
-                       return name === "input" && "button" === elem.type || name === "button";
-               },
-
-               input: function( elem ) {
-                       return (/input|select|textarea|button/i).test( elem.nodeName );
-               },
-
-               focus: function( elem ) {
-                       return elem === elem.ownerDocument.activeElement;
-               }
-       },
-       setFilters: {
-               first: function( elem, i ) {
-                       return i === 0;
-               },
-
-               last: function( elem, i, match, array ) {
-                       return i === array.length - 1;
-               },
-
-               even: function( elem, i ) {
-                       return i % 2 === 0;
-               },
-
-               odd: function( elem, i ) {
-                       return i % 2 === 1;
-               },
-
-               lt: function( elem, i, match ) {
-                       return i < match[3] - 0;
-               },
-
-               gt: function( elem, i, match ) {
-                       return i > match[3] - 0;
-               },
-
-               nth: function( elem, i, match ) {
-                       return match[3] - 0 === i;
-               },
-
-               eq: function( elem, i, match ) {
-                       return match[3] - 0 === i;
-               }
-       },
-       filter: {
-               PSEUDO: function( elem, match, i, array ) {
-                       var name = match[1],
-                               filter = Expr.filters[ name ];
-
-                       if ( filter ) {
-                               return filter( elem, i, match, array );
-
-                       } else if ( name === "contains" ) {
-                               return (elem.textContent || elem.innerText || getText([ elem ]) || "").indexOf(match[3]) >= 0;
-
-                       } else if ( name === "not" ) {
-                               var not = match[3];
-
-                               for ( var j = 0, l = not.length; j < l; j++ ) {
-                                       if ( not[j] === elem ) {
-                                               return false;
-                                       }
-                               }
-
-                               return true;
-
-                       } else {
-                               Sizzle.error( name );
-                       }
-               },
-
-               CHILD: function( elem, match ) {
-                       var first, last,
-                               doneName, parent, cache,
-                               count, diff,
-                               type = match[1],
-                               node = elem;
-
-                       switch ( type ) {
-                               case "only":
-                               case "first":
-                                       while ( (node = node.previousSibling) )  {
-                                               if ( node.nodeType === 1 ) { 
-                                                       return false; 
-                                               }
-                                       }
-
-                                       if ( type === "first" ) { 
-                                               return true; 
-                                       }
-
-                                       node = elem;
-
-                               case "last":
-                                       while ( (node = node.nextSibling) )      {
-                                               if ( node.nodeType === 1 ) { 
-                                                       return false; 
-                                               }
-                                       }
-
-                                       return true;
-
-                               case "nth":
-                                       first = match[2];
-                                       last = match[3];
-
-                                       if ( first === 1 && last === 0 ) {
-                                               return true;
-                                       }
-                                       
-                                       doneName = match[0];
-                                       parent = elem.parentNode;
-       
-                                       if ( parent && (parent[ expando ] !== doneName || !elem.nodeIndex) ) {
-                                               count = 0;
-                                               
-                                               for ( node = parent.firstChild; node; node = node.nextSibling ) {
-                                                       if ( node.nodeType === 1 ) {
-                                                               node.nodeIndex = ++count;
-                                                       }
-                                               } 
-
-                                               parent[ expando ] = doneName;
-                                       }
-                                       
-                                       diff = elem.nodeIndex - last;
-
-                                       if ( first === 0 ) {
-                                               return diff === 0;
-
-                                       } else {
-                                               return ( diff % first === 0 && diff / first >= 0 );
-                                       }
-                       }
-               },
-
-               ID: function( elem, match ) {
-                       return elem.nodeType === 1 && elem.getAttribute("id") === match;
-               },
-
-               TAG: function( elem, match ) {
-                       return (match === "*" && elem.nodeType === 1) || !!elem.nodeName && elem.nodeName.toLowerCase() === match;
-               },
-               
-               CLASS: function( elem, match ) {
-                       return (" " + (elem.className || elem.getAttribute("class")) + " ")
-                               .indexOf( match ) > -1;
-               },
-
-               ATTR: function( elem, match ) {
-                       var name = match[1],
-                               result = Sizzle.attr ?
-                                       Sizzle.attr( elem, name ) :
-                                       Expr.attrHandle[ name ] ?
-                                       Expr.attrHandle[ name ]( elem ) :
-                                       elem[ name ] != null ?
-                                               elem[ name ] :
-                                               elem.getAttribute( name ),
-                               value = result + "",
-                               type = match[2],
-                               check = match[4];
-
-                       return result == null ?
-                               type === "!=" :
-                               !type && Sizzle.attr ?
-                               result != null :
-                               type === "=" ?
-                               value === check :
-                               type === "*=" ?
-                               value.indexOf(check) >= 0 :
-                               type === "~=" ?
-                               (" " + value + " ").indexOf(check) >= 0 :
-                               !check ?
-                               value && result !== false :
-                               type === "!=" ?
-                               value !== check :
-                               type === "^=" ?
-                               value.indexOf(check) === 0 :
-                               type === "$=" ?
-                               value.substr(value.length - check.length) === check :
-                               type === "|=" ?
-                               value === check || value.substr(0, check.length + 1) === check + "-" :
-                               false;
-               },
-
-               POS: function( elem, match, i, array ) {
-                       var name = match[2],
-                               filter = Expr.setFilters[ name ];
-
-                       if ( filter ) {
-                               return filter( elem, i, match, array );
-                       }
-               }
-       }
-};
-
-var origPOS = Expr.match.POS,
-       fescape = function(all, num){
-               return "\\" + (num - 0 + 1);
-       };
-
-for ( var type in Expr.match ) {
-       Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) );
-       Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) );
-}
-
-var makeArray = function( array, results ) {
-       array = Array.prototype.slice.call( array, 0 );
-
-       if ( results ) {
-               results.push.apply( results, array );
-               return results;
-       }
-       
-       return array;
-};
-
-// Perform a simple check to determine if the browser is capable of
-// converting a NodeList to an array using builtin methods.
-// Also verifies that the returned array holds DOM nodes
-// (which is not the case in the Blackberry browser)
-try {
-       Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;
-
-// Provide a fallback method if it does not work
-} catch( e ) {
-       makeArray = function( array, results ) {
-               var i = 0,
-                       ret = results || [];
-
-               if ( toString.call(array) === "[object Array]" ) {
-                       Array.prototype.push.apply( ret, array );
-
-               } else {
-                       if ( typeof array.length === "number" ) {
-                               for ( var l = array.length; i < l; i++ ) {
-                                       ret.push( array[i] );
-                               }
-
-                       } else {
-                               for ( ; array[i]; i++ ) {
-                                       ret.push( array[i] );
-                               }
-                       }
-               }
-
-               return ret;
-       };
-}
-
-var sortOrder, siblingCheck;
-
-if ( document.documentElement.compareDocumentPosition ) {
-       sortOrder = function( a, b ) {
-               if ( a === b ) {
-                       hasDuplicate = true;
-                       return 0;
-               }
-
-               if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
-                       return a.compareDocumentPosition ? -1 : 1;
-               }
-
-               return a.compareDocumentPosition(b) & 4 ? -1 : 1;
-       };
-
-} else {
-       sortOrder = function( a, b ) {
-               // The nodes are identical, we can exit early
-               if ( a === b ) {
-                       hasDuplicate = true;
-                       return 0;
-
-               // Fallback to using sourceIndex (in IE) if it's available on both nodes
-               } else if ( a.sourceIndex && b.sourceIndex ) {
-                       return a.sourceIndex - b.sourceIndex;
-               }
-
-               var al, bl,
-                       ap = [],
-                       bp = [],
-                       aup = a.parentNode,
-                       bup = b.parentNode,
-                       cur = aup;
-
-               // If the nodes are siblings (or identical) we can do a quick check
-               if ( aup === bup ) {
-                       return siblingCheck( a, b );
-
-               // If no parents were found then the nodes are disconnected
-               } else if ( !aup ) {
-                       return -1;
-
-               } else if ( !bup ) {
-                       return 1;
-               }
-
-               // Otherwise they're somewhere else in the tree so we need
-               // to build up a full list of the parentNodes for comparison
-               while ( cur ) {
-                       ap.unshift( cur );
-                       cur = cur.parentNode;
-               }
-
-               cur = bup;
-
-               while ( cur ) {
-                       bp.unshift( cur );
-                       cur = cur.parentNode;
-               }
-
-               al = ap.length;
-               bl = bp.length;
-
-               // Start walking down the tree looking for a discrepancy
-               for ( var i = 0; i < al && i < bl; i++ ) {
-                       if ( ap[i] !== bp[i] ) {
-                               return siblingCheck( ap[i], bp[i] );
-                       }
-               }
-
-               // We ended someplace up the tree so do a sibling check
-               return i === al ?
-                       siblingCheck( a, bp[i], -1 ) :
-                       siblingCheck( ap[i], b, 1 );
-       };
-
-       siblingCheck = function( a, b, ret ) {
-               if ( a === b ) {
-                       return ret;
-               }
-
-               var cur = a.nextSibling;
-
-               while ( cur ) {
-                       if ( cur === b ) {
-                               return -1;
-                       }
-
-                       cur = cur.nextSibling;
-               }
-
-               return 1;
-       };
-}
-
-// Check to see if the browser returns elements by name when
-// querying by getElementById (and provide a workaround)
-(function(){
-       // We're going to inject a fake input element with a specified name
-       var form = document.createElement("div"),
-               id = "script" + (new Date()).getTime(),
-               root = document.documentElement;
-
-       form.innerHTML = "<a name='" + id + "'/>";
-
-       // Inject it into the root element, check its status, and remove it quickly
-       root.insertBefore( form, root.firstChild );
-
-       // The workaround has to do additional checks after a getElementById
-       // Which slows things down for other browsers (hence the branching)
-       if ( document.getElementById( id ) ) {
-               Expr.find.ID = function( match, context, isXML ) {
-                       if ( typeof context.getElementById !== "undefined" && !isXML ) {
-                               var m = context.getElementById(match[1]);
-
-                               return m ?
-                                       m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ?
-                                               [m] :
-                                               undefined :
-                                       [];
-                       }
-               };
-
-               Expr.filter.ID = function( elem, match ) {
-                       var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
-
-                       return elem.nodeType === 1 && node && node.nodeValue === match;
-               };
-       }
-
-       root.removeChild( form );
-
-       // release memory in IE
-       root = form = null;
-})();
-
-(function(){
-       // Check to see if the browser returns only elements
-       // when doing getElementsByTagName("*")
-
-       // Create a fake element
-       var div = document.createElement("div");
-       div.appendChild( document.createComment("") );
-
-       // Make sure no comments are found
-       if ( div.getElementsByTagName("*").length > 0 ) {
-               Expr.find.TAG = function( match, context ) {
-                       var results = context.getElementsByTagName( match[1] );
-
-                       // Filter out possible comments
-                       if ( match[1] === "*" ) {
-                               var tmp = [];
-
-                               for ( var i = 0; results[i]; i++ ) {
-                                       if ( results[i].nodeType === 1 ) {
-                                               tmp.push( results[i] );
-                                       }
-                               }
-
-                               results = tmp;
-                       }
-
-                       return results;
-               };
-       }
-
-       // Check to see if an attribute returns normalized href attributes
-       div.innerHTML = "<a href='#'></a>";
-
-       if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
-                       div.firstChild.getAttribute("href") !== "#" ) {
-
-               Expr.attrHandle.href = function( elem ) {
-                       return elem.getAttribute( "href", 2 );
-               };
-       }
-
-       // release memory in IE
-       div = null;
-})();
-
-if ( document.querySelectorAll ) {
-       (function(){
-               var oldSizzle = Sizzle,
-                       div = document.createElement("div"),
-                       id = "__sizzle__";
-
-               div.innerHTML = "<p class='TEST'></p>";
-
-               // Safari can't handle uppercase or unicode characters when
-               // in quirks mode.
-               if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
-                       return;
-               }
-       
-               Sizzle = function( query, context, extra, seed ) {
-                       context = context || document;
-
-                       // Only use querySelectorAll on non-XML documents
-                       // (ID selectors don't work in non-HTML documents)
-                       if ( !seed && !Sizzle.isXML(context) ) {
-                               // See if we find a selector to speed up
-                               var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query );
-                               
-                               if ( match && (context.nodeType === 1 || context.nodeType === 9) ) {
-                                       // Speed-up: Sizzle("TAG")
-                                       if ( match[1] ) {
-                                               return makeArray( context.getElementsByTagName( query ), extra );
-                                       
-                                       // Speed-up: Sizzle(".CLASS")
-                                       } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) {
-                                               return makeArray( context.getElementsByClassName( match[2] ), extra );
-                                       }
-                               }
-                               
-                               if ( context.nodeType === 9 ) {
-                                       // Speed-up: Sizzle("body")
-                                       // The body element only exists once, optimize finding it
-                                       if ( query === "body" && context.body ) {
-                                               return makeArray( [ context.body ], extra );
-                                               
-                                       // Speed-up: Sizzle("#ID")
-                                       } else if ( match && match[3] ) {
-                                               var elem = context.getElementById( match[3] );
-
-                                               // Check parentNode to catch when Blackberry 4.6 returns
-                                               // nodes that are no longer in the document #6963
-                                               if ( elem && elem.parentNode ) {
-                                                       // Handle the case where IE and Opera return items
-                                                       // by name instead of ID
-                                                       if ( elem.id === match[3] ) {
-                                                               return makeArray( [ elem ], extra );
-                                                       }
-                                                       
-                                               } else {
-                                                       return makeArray( [], extra );
-                                               }
-                                       }
-                                       
-                                       try {
-                                               return makeArray( context.querySelectorAll(query), extra );
-                                       } catch(qsaError) {}
-
-                               // qSA works strangely on Element-rooted queries
-                               // We can work around this by specifying an extra ID on the root
-                               // and working up from there (Thanks to Andrew Dupont for the technique)
-                               // IE 8 doesn't work on object elements
-                               } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
-                                       var oldContext = context,
-                                               old = context.getAttribute( "id" ),
-                                               nid = old || id,
-                                               hasParent = context.parentNode,
-                                               relativeHierarchySelector = /^\s*[+~]/.test( query );
-
-                                       if ( !old ) {
-                                               context.setAttribute( "id", nid );
-                                       } else {
-                                               nid = nid.replace( /'/g, "\\$&" );
-                                       }
-                                       if ( relativeHierarchySelector && hasParent ) {
-                                               context = context.parentNode;
-                                       }
-
-                                       try {
-                                               if ( !relativeHierarchySelector || hasParent ) {
-                                                       return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
-                                               }
-
-                                       } catch(pseudoError) {
-                                       } finally {
-                                               if ( !old ) {
-                                                       oldContext.removeAttribute( "id" );
-                                               }
-                                       }
-                               }
-                       }
-               
-                       return oldSizzle(query, context, extra, seed);
-               };
-
-               for ( var prop in oldSizzle ) {
-                       Sizzle[ prop ] = oldSizzle[ prop ];
-               }
-
-               // release memory in IE
-               div = null;
-       })();
-}
-
-(function(){
-       var html = document.documentElement,
-               matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector;
-
-       if ( matches ) {
-               // Check to see if it's possible to do matchesSelector
-               // on a disconnected node (IE 9 fails this)
-               var disconnectedMatch = !matches.call( document.createElement( "div" ), "div" ),
-                       pseudoWorks = false;
-
-               try {
-                       // This should fail with an exception
-                       // Gecko does not error, returns false instead
-                       matches.call( document.documentElement, "[test!='']:sizzle" );
-       
-               } catch( pseudoError ) {
-                       pseudoWorks = true;
-               }
-
-               Sizzle.matchesSelector = function( node, expr ) {
-                       // Make sure that attribute selectors are quoted
-                       expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']");
-
-                       if ( !Sizzle.isXML( node ) ) {
-                               try { 
-                                       if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) {
-                                               var ret = matches.call( node, expr );
-
-                                               // IE 9's matchesSelector returns false on disconnected nodes
-                                               if ( ret || !disconnectedMatch ||
-                                                               // As well, disconnected nodes are said to be in a document
-                                                               // fragment in IE 9, so check for that
-                                                               node.document && node.document.nodeType !== 11 ) {
-                                                       return ret;
-                                               }
-                                       }
-                               } catch(e) {}
-                       }
-
-                       return Sizzle(expr, null, null, [node]).length > 0;
-               };
-       }
-})();
-
-(function(){
-       var div = document.createElement("div");
-
-       div.innerHTML = "<div class='test e'></div><div class='test'></div>";
-
-       // Opera can't find a second classname (in 9.6)
-       // Also, make sure that getElementsByClassName actually exists
-       if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
-               return;
-       }
-
-       // Safari caches class attributes, doesn't catch changes (in 3.2)
-       div.lastChild.className = "e";
-
-       if ( div.getElementsByClassName("e").length === 1 ) {
-               return;
-       }
-       
-       Expr.order.splice(1, 0, "CLASS");
-       Expr.find.CLASS = function( match, context, isXML ) {
-               if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
-                       return context.getElementsByClassName(match[1]);
-               }
-       };
-
-       // release memory in IE
-       div = null;
-})();
-
-function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
-       for ( var i = 0, l = checkSet.length; i < l; i++ ) {
-               var elem = checkSet[i];
-
-               if ( elem ) {
-                       var match = false;
-
-                       elem = elem[dir];
-
-                       while ( elem ) {
-                               if ( elem[ expando ] === doneName ) {
-                                       match = checkSet[elem.sizset];
-                                       break;
-                               }
-
-                               if ( elem.nodeType === 1 && !isXML ){
-                                       elem[ expando ] = doneName;
-                                       elem.sizset = i;
-                               }
-
-                               if ( elem.nodeName.toLowerCase() === cur ) {
-                                       match = elem;
-                                       break;
-                               }
-
-                               elem = elem[dir];
-                       }
-
-                       checkSet[i] = match;
-               }
-       }
-}
-
-function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
-       for ( var i = 0, l = checkSet.length; i < l; i++ ) {
-               var elem = checkSet[i];
-
-               if ( elem ) {
-                       var match = false;
-                       
-                       elem = elem[dir];
-
-                       while ( elem ) {
-                               if ( elem[ expando ] === doneName ) {
-                                       match = checkSet[elem.sizset];
-                                       break;
-                               }
-
-                               if ( elem.nodeType === 1 ) {
-                                       if ( !isXML ) {
-                                               elem[ expando ] = doneName;
-                                               elem.sizset = i;
-                                       }
-
-                                       if ( typeof cur !== "string" ) {
-                                               if ( elem === cur ) {
-                                                       match = true;
-                                                       break;
-                                               }
-
-                                       } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
-                                               match = elem;
-                                               break;
-                                       }
-                               }
-
-                               elem = elem[dir];
-                       }
-
-                       checkSet[i] = match;
-               }
-       }
-}
-
-if ( document.documentElement.contains ) {
-       Sizzle.contains = function( a, b ) {
-               return a !== b && (a.contains ? a.contains(b) : true);
-       };
-
-} else if ( document.documentElement.compareDocumentPosition ) {
-       Sizzle.contains = function( a, b ) {
-               return !!(a.compareDocumentPosition(b) & 16);
-       };
-
-} else {
-       Sizzle.contains = function() {
-               return false;
-       };
-}
-
-Sizzle.isXML = function( elem ) {
-       // documentElement is verified for cases where it doesn't yet exist
-       // (such as loading iframes in IE - #4833) 
-       var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
-
-       return documentElement ? documentElement.nodeName !== "HTML" : false;
-};
-
-var posProcess = function( selector, context, seed ) {
-       var match,
-               tmpSet = [],
-               later = "",
-               root = context.nodeType ? [context] : context;
-
-       // Position selectors must be done after the filter
-       // And so must :not(positional) so we move all PSEUDOs to the end
-       while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
-               later += match[0];
-               selector = selector.replace( Expr.match.PSEUDO, "" );
-       }
-
-       selector = Expr.relative[selector] ? selector + "*" : selector;
-
-       for ( var i = 0, l = root.length; i < l; i++ ) {
-               Sizzle( selector, root[i], tmpSet, seed );
-       }
-
-       return Sizzle.filter( later, tmpSet );
-};
-
-// EXPOSE
-// Override sizzle attribute retrieval
-Sizzle.attr = jQuery.attr;
-Sizzle.selectors.attrMap = {};
-jQuery.find = Sizzle;
-jQuery.expr = Sizzle.selectors;
-jQuery.expr[":"] = jQuery.expr.filters;
-jQuery.unique = Sizzle.uniqueSort;
-jQuery.text = Sizzle.getText;
-jQuery.isXMLDoc = Sizzle.isXML;
-jQuery.contains = Sizzle.contains;
-
-
-})();
-
-
-var runtil = /Until$/,
-       rparentsprev = /^(?:parents|prevUntil|prevAll)/,
-       // Note: This RegExp should be improved, or likely pulled from Sizzle
-       rmultiselector = /,/,
-       isSimple = /^.[^:#\[\.,]*$/,
-       slice = Array.prototype.slice,
-       POS = jQuery.expr.match.POS,
-       // methods guaranteed to produce a unique set when starting from a unique set
-       guaranteedUnique = {
-               children: true,
-               contents: true,
-               next: true,
-               prev: true
-       };
-
-jQuery.fn.extend({
-       find: function( selector ) {
-               var self = this,
-                       i, l;
-
-               if ( typeof selector !== "string" ) {
-                       return jQuery( selector ).filter(function() {
-                               for ( i = 0, l = self.length; i < l; i++ ) {
-                                       if ( jQuery.contains( self[ i ], this ) ) {
-                                               return true;
-                                       }
-                               }
-                       });
-               }
-
-               var ret = this.pushStack( "", "find", selector ),
-                       length, n, r;
-
-               for ( i = 0, l = this.length; i < l; i++ ) {
-                       length = ret.length;
-                       jQuery.find( selector, this[i], ret );
-
-                       if ( i > 0 ) {
-                               // Make sure that the results are unique
-                               for ( n = length; n < ret.length; n++ ) {
-                                       for ( r = 0; r < length; r++ ) {
-                                               if ( ret[r] === ret[n] ) {
-                                                       ret.splice(n--, 1);
-                                                       break;
-                                               }
-                                       }
-                               }
-                       }
-               }
-
-               return ret;
-       },
-
-       has: function( target ) {
-               var targets = jQuery( target );
-               return this.filter(function() {
-                       for ( var i = 0, l = targets.length; i < l; i++ ) {
-                               if ( jQuery.contains( this, targets[i] ) ) {
-                                       return true;
-                               }
-                       }
-               });
-       },
-
-       not: function( selector ) {
-               return this.pushStack( winnow(this, selector, false), "not", selector);
-       },
-
-       filter: function( selector ) {
-               return this.pushStack( winnow(this, selector, true), "filter", selector );
-       },
-
-       is: function( selector ) {
-               return !!selector && ( 
-                       typeof selector === "string" ?
-                               // If this is a positional selector, check membership in the returned set
-                               // so $("p:first").is("p:last") won't return true for a doc with two "p".
-                               POS.test( selector ) ? 
-                                       jQuery( selector, this.context ).index( this[0] ) >= 0 :
-                                       jQuery.filter( selector, this ).length > 0 :
-                               this.filter( selector ).length > 0 );
-       },
-
-       closest: function( selectors, context ) {
-               var ret = [], i, l, cur = this[0];
-               
-               // Array (deprecated as of jQuery 1.7)
-               if ( jQuery.isArray( selectors ) ) {
-                       var level = 1;
-
-                       while ( cur && cur.ownerDocument && cur !== context ) {
-                               for ( i = 0; i < selectors.length; i++ ) {
-
-                                       if ( jQuery( cur ).is( selectors[ i ] ) ) {
-                                               ret.push({ selector: selectors[ i ], elem: cur, level: level });
-                                       }
-                               }
-
-                               cur = cur.parentNode;
-                               level++;
-                       }
-
-                       return ret;
-               }
-
-               // String
-               var pos = POS.test( selectors ) || typeof selectors !== "string" ?
-                               jQuery( selectors, context || this.context ) :
-                               0;
-
-               for ( i = 0, l = this.length; i < l; i++ ) {
-                       cur = this[i];
-
-                       while ( cur ) {
-                               if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {
-                                       ret.push( cur );
-                                       break;
-
-                               } else {
-                                       cur = cur.parentNode;
-                                       if ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) {
-                                               break;
-                                       }
-                               }
-                       }
-               }
-
-               ret = ret.length > 1 ? jQuery.unique( ret ) : ret;
-
-               return this.pushStack( ret, "closest", selectors );
-       },
-
-       // Determine the position of an element within
-       // the matched set of elements
-       index: function( elem ) {
-
-               // No argument, return index in parent
-               if ( !elem ) {
-                       return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1;
-               }
-
-               // index in selector
-               if ( typeof elem === "string" ) {
-                       return jQuery.inArray( this[0], jQuery( elem ) );
-               }
-
-               // Locate the position of the desired element
-               return jQuery.inArray(
-                       // If it receives a jQuery object, the first element is used
-                       elem.jquery ? elem[0] : elem, this );
-       },
-
-       add: function( selector, context ) {
-               var set = typeof selector === "string" ?
-                               jQuery( selector, context ) :
-                               jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),
-                       all = jQuery.merge( this.get(), set );
-
-               return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?
-                       all :
-                       jQuery.unique( all ) );
-       },
-
-       andSelf: function() {
-               return this.add( this.prevObject );
-       }
-});
-
-// A painfully simple check to see if an element is disconnected
-// from a document (should be improved, where feasible).
-function isDisconnected( node ) {
-       return !node || !node.parentNode || node.parentNode.nodeType === 11;
-}
-
-jQuery.each({
-       parent: function( elem ) {
-               var parent = elem.parentNode;
-               return parent && parent.nodeType !== 11 ? parent : null;
-       },
-       parents: function( elem ) {
-               return jQuery.dir( elem, "parentNode" );
-       },
-       parentsUntil: function( elem, i, until ) {
-               return jQuery.dir( elem, "parentNode", until );
-       },
-       next: function( elem ) {
-               return jQuery.nth( elem, 2, "nextSibling" );
-       },
-       prev: function( elem ) {
-               return jQuery.nth( elem, 2, "previousSibling" );
-       },
-       nextAll: function( elem ) {
-               return jQuery.dir( elem, "nextSibling" );
-       },
-       prevAll: function( elem ) {
-               return jQuery.dir( elem, "previousSibling" );
-       },
-       nextUntil: function( elem, i, until ) {
-               return jQuery.dir( elem, "nextSibling", until );
-       },
-       prevUntil: function( elem, i, until ) {
-               return jQuery.dir( elem, "previousSibling", until );
-       },
-       siblings: function( elem ) {
-               return jQuery.sibling( elem.parentNode.firstChild, elem );
-       },
-       children: function( elem ) {
-               return jQuery.sibling( elem.firstChild );
-       },
-       contents: function( elem ) {
-               return jQuery.nodeName( elem, "iframe" ) ?
-                       elem.contentDocument || elem.contentWindow.document :
-                       jQuery.makeArray( elem.childNodes );
-       }
-}, function( name, fn ) {
-       jQuery.fn[ name ] = function( until, selector ) {
-               var ret = jQuery.map( this, fn, until );
-
-               if ( !runtil.test( name ) ) {
-                       selector = until;
-               }
-
-               if ( selector && typeof selector === "string" ) {
-                       ret = jQuery.filter( selector, ret );
-               }
-
-               ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;
-
-               if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {
-                       ret = ret.reverse();
-               }
-
-               return this.pushStack( ret, name, slice.call( arguments ).join(",") );
-       };
-});
-
-jQuery.extend({
-       filter: function( expr, elems, not ) {
-               if ( not ) {
-                       expr = ":not(" + expr + ")";
-               }
-
-               return elems.length === 1 ?
-                       jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :
-                       jQuery.find.matches(expr, elems);
-       },
-
-       dir: function( elem, dir, until ) {
-               var matched = [],
-                       cur = elem[ dir ];
-
-               while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
-                       if ( cur.nodeType === 1 ) {
-                               matched.push( cur );
-                       }
-                       cur = cur[dir];
-               }
-               return matched;
-       },
-
-       nth: function( cur, result, dir, elem ) {
-               result = result || 1;
-               var num = 0;
-
-               for ( ; cur; cur = cur[dir] ) {
-                       if ( cur.nodeType === 1 && ++num === result ) {
-                               break;
-                       }
-               }
-
-               return cur;
-       },
-
-       sibling: function( n, elem ) {
-               var r = [];
-
-               for ( ; n; n = n.nextSibling ) {
-                       if ( n.nodeType === 1 && n !== elem ) {
-                               r.push( n );
-                       }
-               }
-
-               return r;
-       }
-});
-
-// Implement the identical functionality for filter and not
-function winnow( elements, qualifier, keep ) {
-
-       // Can't pass null or undefined to indexOf in Firefox 4
-       // Set to 0 to skip string check
-       qualifier = qualifier || 0;
-
-       if ( jQuery.isFunction( qualifier ) ) {
-               return jQuery.grep(elements, function( elem, i ) {
-                       var retVal = !!qualifier.call( elem, i, elem );
-                       return retVal === keep;
-               });
-
-       } else if ( qualifier.nodeType ) {
-               return jQuery.grep(elements, function( elem, i ) {
-                       return ( elem === qualifier ) === keep;
-               });
-
-       } else if ( typeof qualifier === "string" ) {
-               var filtered = jQuery.grep(elements, function( elem ) {
-                       return elem.nodeType === 1;
-               });
-
-               if ( isSimple.test( qualifier ) ) {
-                       return jQuery.filter(qualifier, filtered, !keep);
-               } else {
-                       qualifier = jQuery.filter( qualifier, filtered );
-               }
-       }
-
-       return jQuery.grep(elements, function( elem, i ) {
-               return ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep;
-       });
-}
-
-
-
-
-function createSafeFragment( document ) {
-       var list = nodeNames.split( "|" ),
-       safeFrag = document.createDocumentFragment();
-
-       if ( safeFrag.createElement ) {
-               while ( list.length ) {
-                       safeFrag.createElement(
-                               list.pop()
-                       );
-               }
-       }
-       return safeFrag;
-}
-
-var nodeNames = "abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|" +
-               "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
-       rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
-       rleadingWhitespace = /^\s+/,
-       rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,
-       rtagName = /<([\w:]+)/,
-       rtbody = /<tbody/i,
-       rhtml = /<|&#?\w+;/,
-       rnoInnerhtml = /<(?:script|style)/i,
-       rnocache = /<(?:script|object|embed|option|style)/i,
-       rnoshimcache = new RegExp("<(?:" + nodeNames + ")", "i"),
-       // checked="checked" or checked
-       rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
-       rscriptType = /\/(java|ecma)script/i,
-       rcleanScript = /^\s*<!(?:\[CDATA\[|\-\-)/,
-       wrapMap = {
-               option: [ 1, "<select multiple='multiple'>", "</select>" ],
-               legend: [ 1, "<fieldset>", "</fieldset>" ],
-               thead: [ 1, "<table>", "</table>" ],
-               tr: [ 2, "<table><tbody>", "</tbody></table>" ],
-               td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
-               col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
-               area: [ 1, "<map>", "</map>" ],
-               _default: [ 0, "", "" ]
-       },
-       safeFragment = createSafeFragment( document );
-
-wrapMap.optgroup = wrapMap.option;
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
-wrapMap.th = wrapMap.td;
-
-// IE can't serialize <link> and <script> tags normally
-if ( !jQuery.support.htmlSerialize ) {
-       wrapMap._default = [ 1, "div<div>", "</div>" ];
-}
-
-jQuery.fn.extend({
-       text: function( text ) {
-               if ( jQuery.isFunction(text) ) {
-                       return this.each(function(i) {
-                               var self = jQuery( this );
-
-                               self.text( text.call(this, i, self.text()) );
-                       });
-               }
-
-               if ( typeof text !== "object" && text !== undefined ) {
-                       return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
-               }
-
-               return jQuery.text( this );
-       },
-
-       wrapAll: function( html ) {
-               if ( jQuery.isFunction( html ) ) {
-                       return this.each(function(i) {
-                               jQuery(this).wrapAll( html.call(this, i) );
-                       });
-               }
-
-               if ( this[0] ) {
-                       // The elements to wrap the target around
-                       var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
-
-                       if ( this[0].parentNode ) {
-                               wrap.insertBefore( this[0] );
-                       }
-
-                       wrap.map(function() {
-                               var elem = this;
-
-                               while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
-                                       elem = elem.firstChild;
-                               }
-
-                               return elem;
-                       }).append( this );
-               }
-
-               return this;
-       },
-
-       wrapInner: function( html ) {
-               if ( jQuery.isFunction( html ) ) {
-                       return this.each(function(i) {
-                               jQuery(this).wrapInner( html.call(this, i) );
-                       });
-               }
-
-               return this.each(function() {
-                       var self = jQuery( this ),
-                               contents = self.contents();
-
-                       if ( contents.length ) {
-                               contents.wrapAll( html );
-
-                       } else {
-                               self.append( html );
-                       }
-               });
-       },
-
-       wrap: function( html ) {
-               var isFunction = jQuery.isFunction( html );
-
-               return this.each(function(i) {
-                       jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
-               });
-       },
-
-       unwrap: function() {
-               return this.parent().each(function() {
-                       if ( !jQuery.nodeName( this, "body" ) ) {
-                               jQuery( this ).replaceWith( this.childNodes );
-                       }
-               }).end();
-       },
-
-       append: function() {
-               return this.domManip(arguments, true, function( elem ) {
-                       if ( this.nodeType === 1 ) {
-                               this.appendChild( elem );
-                       }
-               });
-       },
-
-       prepend: function() {
-               return this.domManip(arguments, true, function( elem ) {
-                       if ( this.nodeType === 1 ) {
-                               this.insertBefore( elem, this.firstChild );
-                       }
-               });
-       },
-
-       before: function() {
-               if ( this[0] && this[0].parentNode ) {
-                       return this.domManip(arguments, false, function( elem ) {
-                               this.parentNode.insertBefore( elem, this );
-                       });
-               } else if ( arguments.length ) {
-                       var set = jQuery.clean( arguments );
-                       set.push.apply( set, this.toArray() );
-                       return this.pushStack( set, "before", arguments );
-               }
-       },
-
-       after: function() {
-               if ( this[0] && this[0].parentNode ) {
-                       return this.domManip(arguments, false, function( elem ) {
-                               this.parentNode.insertBefore( elem, this.nextSibling );
-                       });
-               } else if ( arguments.length ) {
-                       var set = this.pushStack( this, "after", arguments );
-                       set.push.apply( set, jQuery.clean(arguments) );
-                       return set;
-               }
-       },
-
-       // keepData is for internal use only--do not document
-       remove: function( selector, keepData ) {
-               for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
-                       if ( !selector || jQuery.filter( selector, [ elem ] ).length ) {
-                               if ( !keepData && elem.nodeType === 1 ) {
-                                       jQuery.cleanData( elem.getElementsByTagName("*") );
-                                       jQuery.cleanData( [ elem ] );
-                               }
-
-                               if ( elem.parentNode ) {
-                                       elem.parentNode.removeChild( elem );
-                               }
-                       }
-               }
-
-               return this;
-       },
-
-       empty: function() {
-               for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
-                       // Remove element nodes and prevent memory leaks
-                       if ( elem.nodeType === 1 ) {
-                               jQuery.cleanData( elem.getElementsByTagName("*") );
-                       }
-
-                       // Remove any remaining nodes
-                       while ( elem.firstChild ) {
-                               elem.removeChild( elem.firstChild );
-                       }
-               }
-
-               return this;
-       },
-
-       clone: function( dataAndEvents, deepDataAndEvents ) {
-               dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
-               deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
-
-               return this.map( function () {
-                       return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
-               });
-       },
-
-       html: function( value ) {
-               if ( value === undefined ) {
-                       return this[0] && this[0].nodeType === 1 ?
-                               this[0].innerHTML.replace(rinlinejQuery, "") :
-                               null;
-
-               // See if we can take a shortcut and just use innerHTML
-               } else if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
-                       (jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
-                       !wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {
-
-                       value = value.replace(rxhtmlTag, "<$1></$2>");
-
-                       try {
-                               for ( var i = 0, l = this.length; i < l; i++ ) {
-                                       // Remove element nodes and prevent memory leaks
-                                       if ( this[i].nodeType === 1 ) {
-                                               jQuery.cleanData( this[i].getElementsByTagName("*") );
-                                               this[i].innerHTML = value;
-                                       }
-                               }
-
-                       // If using innerHTML throws an exception, use the fallback method
-                       } catch(e) {
-                               this.empty().append( value );
-                       }
-
-               } else if ( jQuery.isFunction( value ) ) {
-                       this.each(function(i){
-                               var self = jQuery( this );
-
-                               self.html( value.call(this, i, self.html()) );
-                       });
-
-               } else {
-                       this.empty().append( value );
-               }
-
-               return this;
-       },
-
-       replaceWith: function( value ) {
-               if ( this[0] && this[0].parentNode ) {
-                       // Make sure that the elements are removed from the DOM before they are inserted
-                       // this can help fix replacing a parent with child elements
-                       if ( jQuery.isFunction( value ) ) {
-                               return this.each(function(i) {
-                                       var self = jQuery(this), old = self.html();
-                                       self.replaceWith( value.call( this, i, old ) );
-                               });
-                       }
-
-                       if ( typeof value !== "string" ) {
-                               value = jQuery( value ).detach();
-                       }
-
-                       return this.each(function() {
-                               var next = this.nextSibling,
-                                       parent = this.parentNode;
-
-                               jQuery( this ).remove();
-
-                               if ( next ) {
-                                       jQuery(next).before( value );
-                               } else {
-                                       jQuery(parent).append( value );
-                               }
-                       });
-               } else {
-                       return this.length ?
-                               this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value ) :
-                               this;
-               }
-       },
-
-       detach: function( selector ) {
-               return this.remove( selector, true );
-       },
-
-       domManip: function( args, table, callback ) {
-               var results, first, fragment, parent,
-                       value = args[0],
-                       scripts = [];
-
-               // We can't cloneNode fragments that contain checked, in WebKit
-               if ( !jQuery.support.checkClone && arguments.length === 3 && typeof value === "string" && rchecked.test( value ) ) {
-                       return this.each(function() {
-                               jQuery(this).domManip( args, table, callback, true );
-                       });
-               }
-
-               if ( jQuery.isFunction(value) ) {
-                       return this.each(function(i) {
-                               var self = jQuery(this);
-                               args[0] = value.call(this, i, table ? self.html() : undefined);
-                               self.domManip( args, table, callback );
-                       });
-               }
-
-               if ( this[0] ) {
-                       parent = value && value.parentNode;
-
-                       // If we're in a fragment, just use that instead of building a new one
-                       if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
-                               results = { fragment: parent };
-
-                       } else {
-                               results = jQuery.buildFragment( args, this, scripts );
-                       }
-
-                       fragment = results.fragment;
-
-                       if ( fragment.childNodes.length === 1 ) {
-                               first = fragment = fragment.firstChild;
-                       } else {
-                               first = fragment.firstChild;
-                       }
-
-                       if ( first ) {
-                               table = table && jQuery.nodeName( first, "tr" );
-
-                               for ( var i = 0, l = this.length, lastIndex = l - 1; i < l; i++ ) {
-                                       callback.call(
-                                               table ?
-                                                       root(this[i], first) :
-                                                       this[i],
-                                               // Make sure that we do not leak memory by inadvertently discarding
-                                               // the original fragment (which might have attached data) instead of
-                                               // using it; in addition, use the original fragment object for the last
-                                               // item instead of first because it can end up being emptied incorrectly
-                                               // in certain situations (Bug #8070).
-                                               // Fragments from the fragment cache must always be cloned and never used
-                                               // in place.
-                                               results.cacheable || ( l > 1 && i < lastIndex ) ?
-                                                       jQuery.clone( fragment, true, true ) :
-                                                       fragment
-                                       );
-                               }
-                       }
-
-                       if ( scripts.length ) {
-                               jQuery.each( scripts, evalScript );
-                       }
-               }
-
-               return this;
-       }
-});
-
-function root( elem, cur ) {
-       return jQuery.nodeName(elem, "table") ?
-               (elem.getElementsByTagName("tbody")[0] ||
-               elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
-               elem;
-}
-
-function cloneCopyEvent( src, dest ) {
-
-       if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {
-               return;
-       }
-
-       var type, i, l,
-               oldData = jQuery._data( src ),
-               curData = jQuery._data( dest, oldData ),
-               events = oldData.events;
-
-       if ( events ) {
-               delete curData.handle;
-               curData.events = {};
-
-               for ( type in events ) {
-                       for ( i = 0, l = events[ type ].length; i < l; i++ ) {
-                               jQuery.event.add( dest, type + ( events[ type ][ i ].namespace ? "." : "" ) + events[ type ][ i ].namespace, events[ type ][ i ], events[ type ][ i ].data );
-                       }
-               }
-       }
-
-       // make the cloned public data object a copy from the original
-       if ( curData.data ) {
-               curData.data = jQuery.extend( {}, curData.data );
-       }
-}
-
-function cloneFixAttributes( src, dest ) {
-       var nodeName;
-
-       // We do not need to do anything for non-Elements
-       if ( dest.nodeType !== 1 ) {
-               return;
-       }
-
-       // clearAttributes removes the attributes, which we don't want,
-       // but also removes the attachEvent events, which we *do* want
-       if ( dest.clearAttributes ) {
-               dest.clearAttributes();
-       }
-
-       // mergeAttributes, in contrast, only merges back on the
-       // original attributes, not the events
-       if ( dest.mergeAttributes ) {
-               dest.mergeAttributes( src );
-       }
-
-       nodeName = dest.nodeName.toLowerCase();
-
-       // IE6-8 fail to clone children inside object elements that use
-       // the proprietary classid attribute value (rather than the type
-       // attribute) to identify the type of content to display
-       if ( nodeName === "object" ) {
-               dest.outerHTML = src.outerHTML;
-
-       } else if ( nodeName === "input" && (src.type === "checkbox" || src.type === "radio") ) {
-               // IE6-8 fails to persist the checked state of a cloned checkbox
-               // or radio button. Worse, IE6-7 fail to give the cloned element
-               // a checked appearance if the defaultChecked value isn't also set
-               if ( src.checked ) {
-                       dest.defaultChecked = dest.checked = src.checked;
-               }
-
-               // IE6-7 get confused and end up setting the value of a cloned
-               // checkbox/radio button to an empty string instead of "on"
-               if ( dest.value !== src.value ) {
-                       dest.value = src.value;
-               }
-
-       // IE6-8 fails to return the selected option to the default selected
-       // state when cloning options
-       } else if ( nodeName === "option" ) {
-               dest.selected = src.defaultSelected;
-
-       // IE6-8 fails to set the defaultValue to the correct value when
-       // cloning other types of input fields
-       } else if ( nodeName === "input" || nodeName === "textarea" ) {
-               dest.defaultValue = src.defaultValue;
-       }
-
-       // Event data gets referenced instead of copied if the expando
-       // gets copied too
-       dest.removeAttribute( jQuery.expando );
-}
-
-jQuery.buildFragment = function( args, nodes, scripts ) {
-       var fragment, cacheable, cacheresults, doc,
-       first = args[ 0 ];
-
-       // nodes may contain either an explicit document object,
-       // a jQuery collection or context object.
-       // If nodes[0] contains a valid object to assign to doc
-       if ( nodes && nodes[0] ) {
-               doc = nodes[0].ownerDocument || nodes[0];
-       }
-
-       // Ensure that an attr object doesn't incorrectly stand in as a document object
-       // Chrome and Firefox seem to allow this to occur and will throw exception
-       // Fixes #8950
-       if ( !doc.createDocumentFragment ) {
-               doc = document;
-       }
-
-       // Only cache "small" (1/2 KB) HTML strings that are associated with the main document
-       // Cloning options loses the selected state, so don't cache them
-       // IE 6 doesn't like it when you put <object> or <embed> elements in a fragment
-       // Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache
-       // Lastly, IE6,7,8 will not correctly reuse cached fragments that were created from unknown elems #10501
-       if ( args.length === 1 && typeof first === "string" && first.length < 512 && doc === document &&
-               first.charAt(0) === "<" && !rnocache.test( first ) &&
-               (jQuery.support.checkClone || !rchecked.test( first )) &&
-               (jQuery.support.html5Clone || !rnoshimcache.test( first )) ) {
-
-               cacheable = true;
-
-               cacheresults = jQuery.fragments[ first ];
-               if ( cacheresults && cacheresults !== 1 ) {
-                       fragment = cacheresults;
-               }
-       }
-
-       if ( !fragment ) {
-               fragment = doc.createDocumentFragment();
-               jQuery.clean( args, doc, fragment, scripts );
-       }
-
-       if ( cacheable ) {
-               jQuery.fragments[ first ] = cacheresults ? fragment : 1;
-       }
-
-       return { fragment: fragment, cacheable: cacheable };
-};
-
-jQuery.fragments = {};
-
-jQuery.each({
-       appendTo: "append",
-       prependTo: "prepend",
-       insertBefore: "before",
-       insertAfter: "after",
-       replaceAll: "replaceWith"
-}, function( name, original ) {
-       jQuery.fn[ name ] = function( selector ) {
-               var ret = [],
-                       insert = jQuery( selector ),
-                       parent = this.length === 1 && this[0].parentNode;
-
-               if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {
-                       insert[ original ]( this[0] );
-                       return this;
-
-               } else {
-                       for ( var i = 0, l = insert.length; i < l; i++ ) {
-                               var elems = ( i > 0 ? this.clone(true) : this ).get();
-                               jQuery( insert[i] )[ original ]( elems );
-                               ret = ret.concat( elems );
-                       }
-
-                       return this.pushStack( ret, name, insert.selector );
-               }
-       };
-});
-
-function getAll( elem ) {
-       if ( typeof elem.getElementsByTagName !== "undefined" ) {
-               return elem.getElementsByTagName( "*" );
-
-       } else if ( typeof elem.querySelectorAll !== "undefined" ) {
-               return elem.querySelectorAll( "*" );
-
-       } else {
-               return [];
-       }
-}
-
-// Used in clean, fixes the defaultChecked property
-function fixDefaultChecked( elem ) {
-       if ( elem.type === "checkbox" || elem.type === "radio" ) {
-               elem.defaultChecked = elem.checked;
-       }
-}
-// Finds all inputs and passes them to fixDefaultChecked
-function findInputs( elem ) {
-       var nodeName = ( elem.nodeName || "" ).toLowerCase();
-       if ( nodeName === "input" ) {
-               fixDefaultChecked( elem );
-       // Skip scripts, get other children
-       } else if ( nodeName !== "script" && typeof elem.getElementsByTagName !== "undefined" ) {
-               jQuery.grep( elem.getElementsByTagName("input"), fixDefaultChecked );
-       }
-}
-
-// Derived From: http://www.iecss.com/shimprove/javascript/shimprove.1-0-1.js
-function shimCloneNode( elem ) {
-       var div = document.createElement( "div" );
-       safeFragment.appendChild( div );
-
-       div.innerHTML = elem.outerHTML;
-       return div.firstChild;
-}
-
-jQuery.extend({
-       clone: function( elem, dataAndEvents, deepDataAndEvents ) {
-               var srcElements,
-                       destElements,
-                       i,
-                       // IE<=8 does not properly clone detached, unknown element nodes
-                       clone = jQuery.support.html5Clone || !rnoshimcache.test( "<" + elem.nodeName ) ?
-                               elem.cloneNode( true ) :
-                               shimCloneNode( elem );
-
-               if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) &&
-                               (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {
-                       // IE copies events bound via attachEvent when using cloneNode.
-                       // Calling detachEvent on the clone will also remove the events
-                       // from the original. In order to get around this, we use some
-                       // proprietary methods to clear the events. Thanks to MooTools
-                       // guys for this hotness.
-
-                       cloneFixAttributes( elem, clone );
-
-                       // Using Sizzle here is crazy slow, so we use getElementsByTagName instead
-                       srcElements = getAll( elem );
-                       destElements = getAll( clone );
-
-                       // Weird iteration because IE will replace the length property
-                       // with an element if you are cloning the body and one of the
-                       // elements on the page has a name or id of "length"
-                       for ( i = 0; srcElements[i]; ++i ) {
-                               // Ensure that the destination node is not null; Fixes #9587
-                               if ( destElements[i] ) {
-                                       cloneFixAttributes( srcElements[i], destElements[i] );
-                               }
-                       }
-               }
-
-               // Copy the events from the original to the clone
-               if ( dataAndEvents ) {
-                       cloneCopyEvent( elem, clone );
-
-                       if ( deepDataAndEvents ) {
-                               srcElements = getAll( elem );
-                               destElements = getAll( clone );
-
-                               for ( i = 0; srcElements[i]; ++i ) {
-                                       cloneCopyEvent( srcElements[i], destElements[i] );
-                               }
-                       }
-               }
-
-               srcElements = destElements = null;
-
-               // Return the cloned set
-               return clone;
-       },
-
-       clean: function( elems, context, fragment, scripts ) {
-               var checkScriptType;
-
-               context = context || document;
-
-               // !context.createElement fails in IE with an error but returns typeof 'object'
-               if ( typeof context.createElement === "undefined" ) {
-                       context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
-               }
-
-               var ret = [], j;
-
-               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
-                       if ( typeof elem === "number" ) {
-                               elem += "";
-                       }
-
-                       if ( !elem ) {
-                               continue;
-                       }
-
-                       // Convert html string into DOM nodes
-                       if ( typeof elem === "string" ) {
-                               if ( !rhtml.test( elem ) ) {
-                                       elem = context.createTextNode( elem );
-                               } else {
-                                       // Fix "XHTML"-style tags in all browsers
-                                       elem = elem.replace(rxhtmlTag, "<$1></$2>");
-
-                                       // Trim whitespace, otherwise indexOf won't work as expected
-                                       var tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase(),
-                                               wrap = wrapMap[ tag ] || wrapMap._default,
-                                               depth = wrap[0],
-                                               div = context.createElement("div");
-
-                                       // Append wrapper element to unknown element safe doc fragment
-                                       if ( context === document ) {
-                                               // Use the fragment we've already created for this document
-                                               safeFragment.appendChild( div );
-                                       } else {
-                                               // Use a fragment created with the owner document
-                                               createSafeFragment( context ).appendChild( div );
-                                       }
-
-                                       // Go to html and back, then peel off extra wrappers
-                                       div.innerHTML = wrap[1] + elem + wrap[2];
-
-                                       // Move to the right depth
-                                       while ( depth-- ) {
-                                               div = div.lastChild;
-                                       }
-
-                                       // Remove IE's autoinserted <tbody> from table fragments
-                                       if ( !jQuery.support.tbody ) {
-
-                                               // String was a <table>, *may* have spurious <tbody>
-                                               var hasBody = rtbody.test(elem),
-                                                       tbody = tag === "table" && !hasBody ?
-                                                               div.firstChild && div.firstChild.childNodes :
-
-                                                               // String was a bare <thead> or <tfoot>
-                                                               wrap[1] === "<table>" && !hasBody ?
-                                                                       div.childNodes :
-                                                                       [];
-
-                                               for ( j = tbody.length - 1; j >= 0 ; --j ) {
-                                                       if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
-                                                               tbody[ j ].parentNode.removeChild( tbody[ j ] );
-                                                       }
-                                               }
-                                       }
-
-                                       // IE completely kills leading whitespace when innerHTML is used
-                                       if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
-                                               div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );
-                                       }
-
-                                       elem = div.childNodes;
-                               }
-                       }
-
-                       // Resets defaultChecked for any radios and checkboxes
-                       // about to be appended to the DOM in IE 6/7 (#8060)
-                       var len;
-                       if ( !jQuery.support.appendChecked ) {
-                               if ( elem[0] && typeof (len = elem.length) === "number" ) {
-                                       for ( j = 0; j < len; j++ ) {
-                                               findInputs( elem[j] );
-                                       }
-                               } else {
-                                       findInputs( elem );
-                               }
-                       }
-
-                       if ( elem.nodeType ) {
-                               ret.push( elem );
-                       } else {
-                               ret = jQuery.merge( ret, elem );
-                       }
-               }
-
-               if ( fragment ) {
-                       checkScriptType = function( elem ) {
-                               return !elem.type || rscriptType.test( elem.type );
-                       };
-                       for ( i = 0; ret[i]; i++ ) {
-                               if ( scripts && jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
-                                       scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
-
-                               } else {
-                                       if ( ret[i].nodeType === 1 ) {
-                                               var jsTags = jQuery.grep( ret[i].getElementsByTagName( "script" ), checkScriptType );
-
-                                               ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) );
-                                       }
-                                       fragment.appendChild( ret[i] );
-                               }
-                       }
-               }
-
-               return ret;
-       },
-
-       cleanData: function( elems ) {
-               var data, id,
-                       cache = jQuery.cache,
-                       special = jQuery.event.special,
-                       deleteExpando = jQuery.support.deleteExpando;
-
-               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
-                       if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
-                               continue;
-                       }
-
-                       id = elem[ jQuery.expando ];
-
-                       if ( id ) {
-                               data = cache[ id ];
-
-                               if ( data && data.events ) {
-                                       for ( var type in data.events ) {
-                                               if ( special[ type ] ) {
-                                                       jQuery.event.remove( elem, type );
-
-                                               // This is a shortcut to avoid jQuery.event.remove's overhead
-                                               } else {
-                                                       jQuery.removeEvent( elem, type, data.handle );
-                                               }
-                                       }
-
-                                       // Null the DOM reference to avoid IE6/7/8 leak (#7054)
-                                       if ( data.handle ) {
-                                               data.handle.elem = null;
-                                       }
-                               }
-
-                               if ( deleteExpando ) {
-                                       delete elem[ jQuery.expando ];
-
-                               } else if ( elem.removeAttribute ) {
-                                       elem.removeAttribute( jQuery.expando );
-                               }
-
-                               delete cache[ id ];
-                       }
-               }
-       }
-});
-
-function evalScript( i, elem ) {
-       if ( elem.src ) {
-               jQuery.ajax({
-                       url: elem.src,
-                       async: false,
-                       dataType: "script"
-               });
-       } else {
-               jQuery.globalEval( ( elem.text || elem.textContent || elem.innerHTML || "" ).replace( rcleanScript, "/*$0*/" ) );
-       }
-
-       if ( elem.parentNode ) {
-               elem.parentNode.removeChild( elem );
-       }
-}
-
-
-
-
-var ralpha = /alpha\([^)]*\)/i,
-       ropacity = /opacity=([^)]*)/,
-       // fixed for IE9, see #8346
-       rupper = /([A-Z]|^ms)/g,
-       rnumpx = /^-?\d+(?:px)?$/i,
-       rnum = /^-?\d/,
-       rrelNum = /^([\-+])=([\-+.\de]+)/,
-
-       cssShow = { position: "absolute", visibility: "hidden", display: "block" },
-       cssWidth = [ "Left", "Right" ],
-       cssHeight = [ "Top", "Bottom" ],
-       curCSS,
-
-       getComputedStyle,
-       currentStyle;
-
-jQuery.fn.css = function( name, value ) {
-       // Setting 'undefined' is a no-op
-       if ( arguments.length === 2 && value === undefined ) {
-               return this;
-       }
-
-       return jQuery.access( this, name, value, true, function( elem, name, value ) {
-               return value !== undefined ?
-                       jQuery.style( elem, name, value ) :
-                       jQuery.css( elem, name );
-       });
-};
-
-jQuery.extend({
-       // Add in style property hooks for overriding the default
-       // behavior of getting and setting a style property
-       cssHooks: {
-               opacity: {
-                       get: function( elem, computed ) {
-                               if ( computed ) {
-                                       // We should always get a number back from opacity
-                                       var ret = curCSS( elem, "opacity", "opacity" );
-                                       return ret === "" ? "1" : ret;
-
-                               } else {
-                                       return elem.style.opacity;
-                               }
-                       }
-               }
-       },
-
-       // Exclude the following css properties to add px
-       cssNumber: {
-               "fillOpacity": true,
-               "fontWeight": true,
-               "lineHeight": true,
-               "opacity": true,
-               "orphans": true,
-               "widows": true,
-               "zIndex": true,
-               "zoom": true
-       },
-
-       // Add in properties whose names you wish to fix before
-       // setting or getting the value
-       cssProps: {
-               // normalize float css property
-               "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat"
-       },
-
-       // Get and set the style property on a DOM Node
-       style: function( elem, name, value, extra ) {
-               // Don't set styles on text and comment nodes
-               if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
-                       return;
-               }
-
-               // Make sure that we're working with the right name
-               var ret, type, origName = jQuery.camelCase( name ),
-                       style = elem.style, hooks = jQuery.cssHooks[ origName ];
-
-               name = jQuery.cssProps[ origName ] || origName;
-
-               // Check if we're setting a value
-               if ( value !== undefined ) {
-                       type = typeof value;
-
-                       // convert relative number strings (+= or -=) to relative numbers. #7345
-                       if ( type === "string" && (ret = rrelNum.exec( value )) ) {
-                               value = ( +( ret[1] + 1) * +ret[2] ) + parseFloat( jQuery.css( elem, name ) );
-                               // Fixes bug #9237
-                               type = "number";
-                       }
-
-                       // Make sure that NaN and null values aren't set. See: #7116
-                       if ( value == null || type === "number" && isNaN( value ) ) {
-                               return;
-                       }
-
-                       // If a number was passed in, add 'px' to the (except for certain CSS properties)
-                       if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
-                               value += "px";
-                       }
-
-                       // If a hook was provided, use that value, otherwise just set the specified value
-                       if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value )) !== undefined ) {
-                               // Wrapped to prevent IE from throwing errors when 'invalid' values are provided
-                               // Fixes bug #5509
-                               try {
-                                       style[ name ] = value;
-                               } catch(e) {}
-                       }
-
-               } else {
-                       // If a hook was provided get the non-computed value from there
-                       if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
-                               return ret;
-                       }
-
-                       // Otherwise just get the value from the style object
-                       return style[ name ];
-               }
-       },
-
-       css: function( elem, name, extra ) {
-               var ret, hooks;
-
-               // Make sure that we're working with the right name
-               name = jQuery.camelCase( name );
-               hooks = jQuery.cssHooks[ name ];
-               name = jQuery.cssProps[ name ] || name;
-
-               // cssFloat needs a special treatment
-               if ( name === "cssFloat" ) {
-                       name = "float";
-               }
-
-               // If a hook was provided get the computed value from there
-               if ( hooks && "get" in hooks && (ret = hooks.get( elem, true, extra )) !== undefined ) {
-                       return ret;
-
-               // Otherwise, if a way to get the computed value exists, use that
-               } else if ( curCSS ) {
-                       return curCSS( elem, name );
-               }
-       },
-
-       // A method for quickly swapping in/out CSS properties to get correct calculations
-       swap: function( elem, options, callback ) {
-               var old = {};
-
-               // Remember the old values, and insert the new ones
-               for ( var name in options ) {
-                       old[ name ] = elem.style[ name ];
-                       elem.style[ name ] = options[ name ];
-               }
-
-               callback.call( elem );
-
-               // Revert the old values
-               for ( name in options ) {
-                       elem.style[ name ] = old[ name ];
-               }
-       }
-});
-
-// DEPRECATED, Use jQuery.css() instead
-jQuery.curCSS = jQuery.css;
-
-jQuery.each(["height", "width"], function( i, name ) {
-       jQuery.cssHooks[ name ] = {
-               get: function( elem, computed, extra ) {
-                       var val;
-
-                       if ( computed ) {
-                               if ( elem.offsetWidth !== 0 ) {
-                                       return getWH( elem, name, extra );
-                               } else {
-                                       jQuery.swap( elem, cssShow, function() {
-                                               val = getWH( elem, name, extra );
-                                       });
-                               }
-
-                               return val;
-                       }
-               },
-
-               set: function( elem, value ) {
-                       if ( rnumpx.test( value ) ) {
-                               // ignore negative width and height values #1599
-                               value = parseFloat( value );
-
-                               if ( value >= 0 ) {
-                                       return value + "px";
-                               }
-
-                       } else {
-                               return value;
-                       }
-               }
-       };
-});
-
-if ( !jQuery.support.opacity ) {
-       jQuery.cssHooks.opacity = {
-               get: function( elem, computed ) {
-                       // IE uses filters for opacity
-                       return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
-                               ( parseFloat( RegExp.$1 ) / 100 ) + "" :
-                               computed ? "1" : "";
-               },
-
-               set: function( elem, value ) {
-                       var style = elem.style,
-                               currentStyle = elem.currentStyle,
-                               opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "",
-                               filter = currentStyle && currentStyle.filter || style.filter || "";
-
-                       // IE has trouble with opacity if it does not have layout
-                       // Force it by setting the zoom level
-                       style.zoom = 1;
-
-                       // if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
-                       if ( value >= 1 && jQuery.trim( filter.replace( ralpha, "" ) ) === "" ) {
-
-                               // Setting style.filter to null, "" & " " still leave "filter:" in the cssText
-                               // if "filter:" is present at all, clearType is disabled, we want to avoid this
-                               // style.removeAttribute is IE Only, but so apparently is this code path...
-                               style.removeAttribute( "filter" );
-
-                               // if there there is no filter style applied in a css rule, we are done
-                               if ( currentStyle && !currentStyle.filter ) {
-                                       return;
-                               }
-                       }
-
-                       // otherwise, set new filter values
-                       style.filter = ralpha.test( filter ) ?
-                               filter.replace( ralpha, opacity ) :
-                               filter + " " + opacity;
-               }
-       };
-}
-
-jQuery(function() {
-       // This hook cannot be added until DOM ready because the support test
-       // for it is not run until after DOM ready
-       if ( !jQuery.support.reliableMarginRight ) {
-               jQuery.cssHooks.marginRight = {
-                       get: function( elem, computed ) {
-                               // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
-                               // Work around by temporarily setting element display to inline-block
-                               var ret;
-                               jQuery.swap( elem, { "display": "inline-block" }, function() {
-                                       if ( computed ) {
-                                               ret = curCSS( elem, "margin-right", "marginRight" );
-                                       } else {
-                                               ret = elem.style.marginRight;
-                                       }
-                               });
-                               return ret;
-                       }
-               };
-       }
-});
-
-if ( document.defaultView && document.defaultView.getComputedStyle ) {
-       getComputedStyle = function( elem, name ) {
-               var ret, defaultView, computedStyle;
-
-               name = name.replace( rupper, "-$1" ).toLowerCase();
-
-               if ( (defaultView = elem.ownerDocument.defaultView) &&
-                               (computedStyle = defaultView.getComputedStyle( elem, null )) ) {
-                       ret = computedStyle.getPropertyValue( name );
-                       if ( ret === "" && !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) {
-                               ret = jQuery.style( elem, name );
-                       }
-               }
-
-               return ret;
-       };
-}
-
-if ( document.documentElement.currentStyle ) {
-       currentStyle = function( elem, name ) {
-               var left, rsLeft, uncomputed,
-                       ret = elem.currentStyle && elem.currentStyle[ name ],
-                       style = elem.style;
-
-               // Avoid setting ret to empty string here
-               // so we don't default to auto
-               if ( ret === null && style && (uncomputed = style[ name ]) ) {
-                       ret = uncomputed;
-               }
-
-               // From the awesome hack by Dean Edwards
-               // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
-
-               // If we're not dealing with a regular pixel number
-               // but a number that has a weird ending, we need to convert it to pixels
-               if ( !rnumpx.test( ret ) && rnum.test( ret ) ) {
-
-                       // Remember the original values
-                       left = style.left;
-                       rsLeft = elem.runtimeStyle && elem.runtimeStyle.left;
-
-                       // Put in the new values to get a computed value out
-                       if ( rsLeft ) {
-                               elem.runtimeStyle.left = elem.currentStyle.left;
-                       }
-                       style.left = name === "fontSize" ? "1em" : ( ret || 0 );
-                       ret = style.pixelLeft + "px";
-
-                       // Revert the changed values
-                       style.left = left;
-                       if ( rsLeft ) {
-                               elem.runtimeStyle.left = rsLeft;
-                       }
-               }
-
-               return ret === "" ? "auto" : ret;
-       };
-}
-
-curCSS = getComputedStyle || currentStyle;
-
-function getWH( elem, name, extra ) {
-
-       // Start with offset property
-       var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
-               which = name === "width" ? cssWidth : cssHeight,
-               i = 0,
-               len = which.length;
-
-       if ( val > 0 ) {
-               if ( extra !== "border" ) {
-                       for ( ; i < len; i++ ) {
-                               if ( !extra ) {
-                                       val -= parseFloat( jQuery.css( elem, "padding" + which[ i ] ) ) || 0;
-                               }
-                               if ( extra === "margin" ) {
-                                       val += parseFloat( jQuery.css( elem, extra + which[ i ] ) ) || 0;
-                               } else {
-                                       val -= parseFloat( jQuery.css( elem, "border" + which[ i ] + "Width" ) ) || 0;
-                               }
-                       }
-               }
-
-               return val + "px";
-       }
-
-       // Fall back to computed then uncomputed css if necessary
-       val = curCSS( elem, name, name );
-       if ( val < 0 || val == null ) {
-               val = elem.style[ name ] || 0;
-       }
-       // Normalize "", auto, and prepare for extra
-       val = parseFloat( val ) || 0;
-
-       // Add padding, border, margin
-       if ( extra ) {
-               for ( ; i < len; i++ ) {
-                       val += parseFloat( jQuery.css( elem, "padding" + which[ i ] ) ) || 0;
-                       if ( extra !== "padding" ) {
-                               val += parseFloat( jQuery.css( elem, "border" + which[ i ] + "Width" ) ) || 0;
-                       }
-                       if ( extra === "margin" ) {
-                               val += parseFloat( jQuery.css( elem, extra + which[ i ] ) ) || 0;
-                       }
-               }
-       }
-
-       return val + "px";
-}
-
-if ( jQuery.expr && jQuery.expr.filters ) {
-       jQuery.expr.filters.hidden = function( elem ) {
-               var width = elem.offsetWidth,
-                       height = elem.offsetHeight;
-
-               return ( width === 0 && height === 0 ) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");
-       };
-
-       jQuery.expr.filters.visible = function( elem ) {
-               return !jQuery.expr.filters.hidden( elem );
-       };
-}
-
-
-
-
-var r20 = /%20/g,
-       rbracket = /\[\]$/,
-       rCRLF = /\r?\n/g,
-       rhash = /#.*$/,
-       rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
-       rinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
-       // #7653, #8125, #8152: local protocol detection
-       rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,
-       rnoContent = /^(?:GET|HEAD)$/,
-       rprotocol = /^\/\//,
-       rquery = /\?/,
-       rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
-       rselectTextarea = /^(?:select|textarea)/i,
-       rspacesAjax = /\s+/,
-       rts = /([?&])_=[^&]*/,
-       rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,
-
-       // Keep a copy of the old load method
-       _load = jQuery.fn.load,
-
-       /* Prefilters
-        * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
-        * 2) These are called:
-        *    - BEFORE asking for a transport
-        *    - AFTER param serialization (s.data is a string if s.processData is true)
-        * 3) key is the dataType
-        * 4) the catchall symbol "*" can be used
-        * 5) execution will start with transport dataType and THEN continue down to "*" if needed
-        */
-       prefilters = {},
-
-       /* Transports bindings
-        * 1) key is the dataType
-        * 2) the catchall symbol "*" can be used
-        * 3) selection will start with transport dataType and THEN go to "*" if needed
-        */
-       transports = {},
-
-       // Document location
-       ajaxLocation,
-
-       // Document location segments
-       ajaxLocParts,
-
-       // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
-       allTypes = ["*/"] + ["*"];
-
-// #8138, IE may throw an exception when accessing
-// a field from window.location if document.domain has been set
-try {
-       ajaxLocation = location.href;
-} catch( e ) {
-       // Use the href attribute of an A element
-       // since IE will modify it given document.location
-       ajaxLocation = document.createElement( "a" );
-       ajaxLocation.href = "";
-       ajaxLocation = ajaxLocation.href;
-}
-
-// Segment location into parts
-ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
-
-// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
-function addToPrefiltersOrTransports( structure ) {
-
-       // dataTypeExpression is optional and defaults to "*"
-       return function( dataTypeExpression, func ) {
-
-               if ( typeof dataTypeExpression !== "string" ) {
-                       func = dataTypeExpression;
-                       dataTypeExpression = "*";
-               }
-
-               if ( jQuery.isFunction( func ) ) {
-                       var dataTypes = dataTypeExpression.toLowerCase().split( rspacesAjax ),
-                               i = 0,
-                               length = dataTypes.length,
-                               dataType,
-                               list,
-                               placeBefore;
-
-                       // For each dataType in the dataTypeExpression
-                       for ( ; i < length; i++ ) {
-                               dataType = dataTypes[ i ];
-                               // We control if we're asked to add before
-                               // any existing element
-                               placeBefore = /^\+/.test( dataType );
-                               if ( placeBefore ) {
-                                       dataType = dataType.substr( 1 ) || "*";
-                               }
-                               list = structure[ dataType ] = structure[ dataType ] || [];
-                               // then we add to the structure accordingly
-                               list[ placeBefore ? "unshift" : "push" ]( func );
-                       }
-               }
-       };
-}
-
-// Base inspection function for prefilters and transports
-function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR,
-               dataType /* internal */, inspected /* internal */ ) {
-
-       dataType = dataType || options.dataTypes[ 0 ];
-       inspected = inspected || {};
-
-       inspected[ dataType ] = true;
-
-       var list = structure[ dataType ],
-               i = 0,
-               length = list ? list.length : 0,
-               executeOnly = ( structure === prefilters ),
-               selection;
-
-       for ( ; i < length && ( executeOnly || !selection ); i++ ) {
-               selection = list[ i ]( options, originalOptions, jqXHR );
-               // If we got redirected to another dataType
-               // we try there if executing only and not done already
-               if ( typeof selection === "string" ) {
-                       if ( !executeOnly || inspected[ selection ] ) {
-                               selection = undefined;
-                       } else {
-                               options.dataTypes.unshift( selection );
-                               selection = inspectPrefiltersOrTransports(
-                                               structure, options, originalOptions, jqXHR, selection, inspected );
-                       }
-               }
-       }
-       // If we're only executing or nothing was selected
-       // we try the catchall dataType if not done already
-       if ( ( executeOnly || !selection ) && !inspected[ "*" ] ) {
-               selection = inspectPrefiltersOrTransports(
-                               structure, options, originalOptions, jqXHR, "*", inspected );
-       }
-       // unnecessary when only executing (prefilters)
-       // but it'll be ignored by the caller in that case
-       return selection;
-}
-
-// A special extend for ajax options
-// that takes "flat" options (not to be deep extended)
-// Fixes #9887
-function ajaxExtend( target, src ) {
-       var key, deep,
-               flatOptions = jQuery.ajaxSettings.flatOptions || {};
-       for ( key in src ) {
-               if ( src[ key ] !== undefined ) {
-                       ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
-               }
-       }
-       if ( deep ) {
-               jQuery.extend( true, target, deep );
-       }
-}
-
-jQuery.fn.extend({
-       load: function( url, params, callback ) {
-               if ( typeof url !== "string" && _load ) {
-                       return _load.apply( this, arguments );
-
-               // Don't do a request if no elements are being requested
-               } else if ( !this.length ) {
-                       return this;
-               }
-
-               var off = url.indexOf( " " );
-               if ( off >= 0 ) {
-                       var selector = url.slice( off, url.length );
-                       url = url.slice( 0, off );
-               }
-
-               // Default to a GET request
-               var type = "GET";
-
-               // If the second parameter was provided
-               if ( params ) {
-                       // If it's a function
-                       if ( jQuery.isFunction( params ) ) {
-                               // We assume that it's the callback
-                               callback = params;
-                               params = undefined;
-
-                       // Otherwise, build a param string
-                       } else if ( typeof params === "object" ) {
-                               params = jQuery.param( params, jQuery.ajaxSettings.traditional );
-                               type = "POST";
-                       }
-               }
-
-               var self = this;
-
-               // Request the remote document
-               jQuery.ajax({
-                       url: url,
-                       type: type,
-                       dataType: "html",
-                       data: params,
-                       // Complete callback (responseText is used internally)
-                       complete: function( jqXHR, status, responseText ) {
-                               // Store the response as specified by the jqXHR object
-                               responseText = jqXHR.responseText;
-                               // If successful, inject the HTML into all the matched elements
-                               if ( jqXHR.isResolved() ) {
-                                       // #4825: Get the actual response in case
-                                       // a dataFilter is present in ajaxSettings
-                                       jqXHR.done(function( r ) {
-                                               responseText = r;
-                                       });
-                                       // See if a selector was specified
-                                       self.html( selector ?
-                                               // Create a dummy div to hold the results
-                                               jQuery("<div>")
-                                                       // inject the contents of the document in, removing the scripts
-                                                       // to avoid any 'Permission Denied' errors in IE
-                                                       .append(responseText.replace(rscript, ""))
-
-                                                       // Locate the specified elements
-                                                       .find(selector) :
-
-                                               // If not, just inject the full result
-                                               responseText );
-                               }
-
-                               if ( callback ) {
-                                       self.each( callback, [ responseText, status, jqXHR ] );
-                               }
-                       }
-               });
-
-               return this;
-       },
-
-       serialize: function() {
-               return jQuery.param( this.serializeArray() );
-       },
-
-       serializeArray: function() {
-               return this.map(function(){
-                       return this.elements ? jQuery.makeArray( this.elements ) : this;
-               })
-               .filter(function(){
-                       return this.name && !this.disabled &&
-                               ( this.checked || rselectTextarea.test( this.nodeName ) ||
-                                       rinput.test( this.type ) );
-               })
-               .map(function( i, elem ){
-                       var val = jQuery( this ).val();
-
-                       return val == null ?
-                               null :
-                               jQuery.isArray( val ) ?
-                                       jQuery.map( val, function( val, i ){
-                                               return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
-                                       }) :
-                                       { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
-               }).get();
-       }
-});
-
-// Attach a bunch of functions for handling common AJAX events
-jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split( " " ), function( i, o ){
-       jQuery.fn[ o ] = function( f ){
-               return this.on( o, f );
-       };
-});
-
-jQuery.each( [ "get", "post" ], function( i, method ) {
-       jQuery[ method ] = function( url, data, callback, type ) {
-               // shift arguments if data argument was omitted
-               if ( jQuery.isFunction( data ) ) {
-                       type = type || callback;
-                       callback = data;
-                       data = undefined;
-               }
-
-               return jQuery.ajax({
-                       type: method,
-                       url: url,
-                       data: data,
-                       success: callback,
-                       dataType: type
-               });
-       };
-});
-
-jQuery.extend({
-
-       getScript: function( url, callback ) {
-               return jQuery.get( url, undefined, callback, "script" );
-       },
-
-       getJSON: function( url, data, callback ) {
-               return jQuery.get( url, data, callback, "json" );
-       },
-
-       // Creates a full fledged settings object into target
-       // with both ajaxSettings and settings fields.
-       // If target is omitted, writes into ajaxSettings.
-       ajaxSetup: function( target, settings ) {
-               if ( settings ) {
-                       // Building a settings object
-                       ajaxExtend( target, jQuery.ajaxSettings );
-               } else {
-                       // Extending ajaxSettings
-                       settings = target;
-                       target = jQuery.ajaxSettings;
-               }
-               ajaxExtend( target, settings );
-               return target;
-       },
-
-       ajaxSettings: {
-               url: ajaxLocation,
-               isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
-               global: true,
-               type: "GET",
-               contentType: "application/x-www-form-urlencoded",
-               processData: true,
-               async: true,
-               /*
-               timeout: 0,
-               data: null,
-               dataType: null,
-               username: null,
-               password: null,
-               cache: null,
-               traditional: false,
-               headers: {},
-               */
-
-               accepts: {
-                       xml: "application/xml, text/xml",
-                       html: "text/html",
-                       text: "text/plain",
-                       json: "application/json, text/javascript",
-                       "*": allTypes
-               },
-
-               contents: {
-                       xml: /xml/,
-                       html: /html/,
-                       json: /json/
-               },
-
-               responseFields: {
-                       xml: "responseXML",
-                       text: "responseText"
-               },
-
-               // List of data converters
-               // 1) key format is "source_type destination_type" (a single space in-between)
-               // 2) the catchall symbol "*" can be used for source_type
-               converters: {
-
-                       // Convert anything to text
-                       "* text": window.String,
-
-                       // Text to html (true = no transformation)
-                       "text html": true,
-
-                       // Evaluate text as a json expression
-                       "text json": jQuery.parseJSON,
-
-                       // Parse text as xml
-                       "text xml": jQuery.parseXML
-               },
-
-               // For options that shouldn't be deep extended:
-               // you can add your own custom options here if
-               // and when you create one that shouldn't be
-               // deep extended (see ajaxExtend)
-               flatOptions: {
-                       context: true,
-                       url: true
-               }
-       },
-
-       ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
-       ajaxTransport: addToPrefiltersOrTransports( transports ),
-
-       // Main method
-       ajax: function( url, options ) {
-
-               // If url is an object, simulate pre-1.5 signature
-               if ( typeof url === "object" ) {
-                       options = url;
-                       url = undefined;
-               }
-
-               // Force options to be an object
-               options = options || {};
-
-               var // Create the final options object
-                       s = jQuery.ajaxSetup( {}, options ),
-                       // Callbacks context
-                       callbackContext = s.context || s,
-                       // Context for global events
-                       // It's the callbackContext if one was provided in the options
-                       // and if it's a DOM node or a jQuery collection
-                       globalEventContext = callbackContext !== s &&
-                               ( callbackContext.nodeType || callbackContext instanceof jQuery ) ?
-                                               jQuery( callbackContext ) : jQuery.event,
-                       // Deferreds
-                       deferred = jQuery.Deferred(),
-                       completeDeferred = jQuery.Callbacks( "once memory" ),
-                       // Status-dependent callbacks
-                       statusCode = s.statusCode || {},
-                       // ifModified key
-                       ifModifiedKey,
-                       // Headers (they are sent all at once)
-                       requestHeaders = {},
-                       requestHeadersNames = {},
-                       // Response headers
-                       responseHeadersString,
-                       responseHeaders,
-                       // transport
-                       transport,
-                       // timeout handle
-                       timeoutTimer,
-                       // Cross-domain detection vars
-                       parts,
-                       // The jqXHR state
-                       state = 0,
-                       // To know if global events are to be dispatched
-                       fireGlobals,
-                       // Loop variable
-                       i,
-                       // Fake xhr
-                       jqXHR = {
-
-                               readyState: 0,
-
-                               // Caches the header
-                               setRequestHeader: function( name, value ) {
-                                       if ( !state ) {
-                                               var lname = name.toLowerCase();
-                                               name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
-                                               requestHeaders[ name ] = value;
-                                       }
-                                       return this;
-                               },
-
-                               // Raw string
-                               getAllResponseHeaders: function() {
-                                       return state === 2 ? responseHeadersString : null;
-                               },
-
-                               // Builds headers hashtable if needed
-                               getResponseHeader: function( key ) {
-                                       var match;
-                                       if ( state === 2 ) {
-                                               if ( !responseHeaders ) {
-                                                       responseHeaders = {};
-                                                       while( ( match = rheaders.exec( responseHeadersString ) ) ) {
-                                                               responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
-                                                       }
-                                               }
-                                               match = responseHeaders[ key.toLowerCase() ];
-                                       }
-                                       return match === undefined ? null : match;
-                               },
-
-                               // Overrides response content-type header
-                               overrideMimeType: function( type ) {
-                                       if ( !state ) {
-                                               s.mimeType = type;
-                                       }
-                                       return this;
-                               },
-
-                               // Cancel the request
-                               abort: function( statusText ) {
-                                       statusText = statusText || "abort";
-                                       if ( transport ) {
-                                               transport.abort( statusText );
-                                       }
-                                       done( 0, statusText );
-                                       return this;
-                               }
-                       };
-
-               // Callback for when everything is done
-               // It is defined here because jslint complains if it is declared
-               // at the end of the function (which would be more logical and readable)
-               function done( status, nativeStatusText, responses, headers ) {
-
-                       // Called once
-                       if ( state === 2 ) {
-                               return;
-                       }
-
-                       // State is "done" now
-                       state = 2;
-
-                       // Clear timeout if it exists
-                       if ( timeoutTimer ) {
-                               clearTimeout( timeoutTimer );
-                       }
-
-                       // Dereference transport for early garbage collection
-                       // (no matter how long the jqXHR object will be used)
-                       transport = undefined;
-
-                       // Cache response headers
-                       responseHeadersString = headers || "";
-
-                       // Set readyState
-                       jqXHR.readyState = status > 0 ? 4 : 0;
-
-                       var isSuccess,
-                               success,
-                               error,
-                               statusText = nativeStatusText,
-                               response = responses ? ajaxHandleResponses( s, jqXHR, responses ) : undefined,
-                               lastModified,
-                               etag;
-
-                       // If successful, handle type chaining
-                       if ( status >= 200 && status < 300 || status === 304 ) {
-
-                               // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
-                               if ( s.ifModified ) {
-
-                                       if ( ( lastModified = jqXHR.getResponseHeader( "Last-Modified" ) ) ) {
-                                               jQuery.lastModified[ ifModifiedKey ] = lastModified;
-                                       }
-                                       if ( ( etag = jqXHR.getResponseHeader( "Etag" ) ) ) {
-                                               jQuery.etag[ ifModifiedKey ] = etag;
-                                       }
-                               }
-
-                               // If not modified
-                               if ( status === 304 ) {
-
-                                       statusText = "notmodified";
-                                       isSuccess = true;
-
-                               // If we have data
-                               } else {
-
-                                       try {
-                                               success = ajaxConvert( s, response );
-                                               statusText = "success";
-                                               isSuccess = true;
-                                       } catch(e) {
-                                               // We have a parsererror
-                                               statusText = "parsererror";
-                                               error = e;
-                                       }
-                               }
-                       } else {
-                               // We extract error from statusText
-                               // then normalize statusText and status for non-aborts
-                               error = statusText;
-                               if ( !statusText || status ) {
-                                       statusText = "error";
-                                       if ( status < 0 ) {
-                                               status = 0;
-                                       }
-                               }
-                       }
-
-                       // Set data for the fake xhr object
-                       jqXHR.status = status;
-                       jqXHR.statusText = "" + ( nativeStatusText || statusText );
-
-                       // Success/Error
-                       if ( isSuccess ) {
-                               deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
-                       } else {
-                               deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
-                       }
-
-                       // Status-dependent callbacks
-                       jqXHR.statusCode( statusCode );
-                       statusCode = undefined;
-
-                       if ( fireGlobals ) {
-                               globalEventContext.trigger( "ajax" + ( isSuccess ? "Success" : "Error" ),
-                                               [ jqXHR, s, isSuccess ? success : error ] );
-                       }
-
-                       // Complete
-                       completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
-
-                       if ( fireGlobals ) {
-                               globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
-                               // Handle the global AJAX counter
-                               if ( !( --jQuery.active ) ) {
-                                       jQuery.event.trigger( "ajaxStop" );
-                               }
-                       }
-               }
-
-               // Attach deferreds
-               deferred.promise( jqXHR );
-               jqXHR.success = jqXHR.done;
-               jqXHR.error = jqXHR.fail;
-               jqXHR.complete = completeDeferred.add;
-
-               // Status-dependent callbacks
-               jqXHR.statusCode = function( map ) {
-                       if ( map ) {
-                               var tmp;
-                               if ( state < 2 ) {
-                                       for ( tmp in map ) {
-                                               statusCode[ tmp ] = [ statusCode[tmp], map[tmp] ];
-                                       }
-                               } else {
-                                       tmp = map[ jqXHR.status ];
-                                       jqXHR.then( tmp, tmp );
-                               }
-                       }
-                       return this;
-               };
-
-               // Remove hash character (#7531: and string promotion)
-               // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
-               // We also use the url parameter if available
-               s.url = ( ( url || s.url ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
-
-               // Extract dataTypes list
-               s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( rspacesAjax );
-
-               // Determine if a cross-domain request is in order
-               if ( s.crossDomain == null ) {
-                       parts = rurl.exec( s.url.toLowerCase() );
-                       s.crossDomain = !!( parts &&
-                               ( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||
-                                       ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
-                                               ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) )
-                       );
-               }
-
-               // Convert data if not already a string
-               if ( s.data && s.processData && typeof s.data !== "string" ) {
-                       s.data = jQuery.param( s.data, s.traditional );
-               }
-
-               // Apply prefilters
-               inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
-
-               // If request was aborted inside a prefiler, stop there
-               if ( state === 2 ) {
-                       return false;
-               }
-
-               // We can fire global events as of now if asked to
-               fireGlobals = s.global;
-
-               // Uppercase the type
-               s.type = s.type.toUpperCase();
-
-               // Determine if request has content
-               s.hasContent = !rnoContent.test( s.type );
-
-               // Watch for a new set of requests
-               if ( fireGlobals && jQuery.active++ === 0 ) {
-                       jQuery.event.trigger( "ajaxStart" );
-               }
-
-               // More options handling for requests with no content
-               if ( !s.hasContent ) {
-
-                       // If data is available, append data to url
-                       if ( s.data ) {
-                               s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.data;
-                               // #9682: remove data so that it's not used in an eventual retry
-                               delete s.data;
-                       }
-
-                       // Get ifModifiedKey before adding the anti-cache parameter
-                       ifModifiedKey = s.url;
-
-                       // Add anti-cache in url if needed
-                       if ( s.cache === false ) {
-
-                               var ts = jQuery.now(),
-                                       // try replacing _= if it is there
-                                       ret = s.url.replace( rts, "$1_=" + ts );
-
-                               // if nothing was replaced, add timestamp to the end
-                               s.url = ret + ( ( ret === s.url ) ? ( rquery.test( s.url ) ? "&" : "?" ) + "_=" + ts : "" );
-                       }
-               }
-
-               // Set the correct header, if data is being sent
-               if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
-                       jqXHR.setRequestHeader( "Content-Type", s.contentType );
-               }
-
-               // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
-               if ( s.ifModified ) {
-                       ifModifiedKey = ifModifiedKey || s.url;
-                       if ( jQuery.lastModified[ ifModifiedKey ] ) {
-                               jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ ifModifiedKey ] );
-                       }
-                       if ( jQuery.etag[ ifModifiedKey ] ) {
-                               jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ ifModifiedKey ] );
-                       }
-               }
-
-               // Set the Accepts header for the server, depending on the dataType
-               jqXHR.setRequestHeader(
-                       "Accept",
-                       s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
-                               s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
-                               s.accepts[ "*" ]
-               );
-
-               // Check for headers option
-               for ( i in s.headers ) {
-                       jqXHR.setRequestHeader( i, s.headers[ i ] );
-               }
-
-               // Allow custom headers/mimetypes and early abort
-               if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
-                               // Abort if not done already
-                               jqXHR.abort();
-                               return false;
-
-               }
-
-               // Install callbacks on deferreds
-               for ( i in { success: 1, error: 1, complete: 1 } ) {
-                       jqXHR[ i ]( s[ i ] );
-               }
-
-               // Get transport
-               transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
-
-               // If no transport, we auto-abort
-               if ( !transport ) {
-                       done( -1, "No Transport" );
-               } else {
-                       jqXHR.readyState = 1;
-                       // Send global event
-                       if ( fireGlobals ) {
-                               globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
-                       }
-                       // Timeout
-                       if ( s.async && s.timeout > 0 ) {
-                               timeoutTimer = setTimeout( function(){
-                                       jqXHR.abort( "timeout" );
-                               }, s.timeout );
-                       }
-
-                       try {
-                               state = 1;
-                               transport.send( requestHeaders, done );
-                       } catch (e) {
-                               // Propagate exception as error if not done
-                               if ( state < 2 ) {
-                                       done( -1, e );
-                               // Simply rethrow otherwise
-                               } else {
-                                       throw e;
-                               }
-                       }
-               }
-
-               return jqXHR;
-       },
-
-       // Serialize an array of form elements or a set of
-       // key/values into a query string
-       param: function( a, traditional ) {
-               var s = [],
-                       add = function( key, value ) {
-                               // If value is a function, invoke it and return its value
-                               value = jQuery.isFunction( value ) ? value() : value;
-                               s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
-                       };
-
-               // Set traditional to true for jQuery <= 1.3.2 behavior.
-               if ( traditional === undefined ) {
-                       traditional = jQuery.ajaxSettings.traditional;
-               }
-
-               // If an array was passed in, assume that it is an array of form elements.
-               if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
-                       // Serialize the form elements
-                       jQuery.each( a, function() {
-                               add( this.name, this.value );
-                       });
-
-               } else {
-                       // If traditional, encode the "old" way (the way 1.3.2 or older
-                       // did it), otherwise encode params recursively.
-                       for ( var prefix in a ) {
-                               buildParams( prefix, a[ prefix ], traditional, add );
-                       }
-               }
-
-               // Return the resulting serialization
-               return s.join( "&" ).replace( r20, "+" );
-       }
-});
-
-function buildParams( prefix, obj, traditional, add ) {
-       if ( jQuery.isArray( obj ) ) {
-               // Serialize array item.
-               jQuery.each( obj, function( i, v ) {
-                       if ( traditional || rbracket.test( prefix ) ) {
-                               // Treat each array item as a scalar.
-                               add( prefix, v );
-
-                       } else {
-                               // If array item is non-scalar (array or object), encode its
-                               // numeric index to resolve deserialization ambiguity issues.
-                               // Note that rack (as of 1.0.0) can't currently deserialize
-                               // nested arrays properly, and attempting to do so may cause
-                               // a server error. Possible fixes are to modify rack's
-                               // deserialization algorithm or to provide an option or flag
-                               // to force array serialization to be shallow.
-                               buildParams( prefix + "[" + ( typeof v === "object" || jQuery.isArray(v) ? i : "" ) + "]", v, traditional, add );
-                       }
-               });
-
-       } else if ( !traditional && obj != null && typeof obj === "object" ) {
-               // Serialize object item.
-               for ( var name in obj ) {
-                       buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
-               }
-
-       } else {
-               // Serialize scalar item.
-               add( prefix, obj );
-       }
-}
-
-// This is still on the jQuery object... for now
-// Want to move this to jQuery.ajax some day
-jQuery.extend({
-
-       // Counter for holding the number of active queries
-       active: 0,
-
-       // Last-Modified header cache for next request
-       lastModified: {},
-       etag: {}
-
-});
-
-/* Handles responses to an ajax request:
- * - sets all responseXXX fields accordingly
- * - finds the right dataType (mediates between content-type and expected dataType)
- * - returns the corresponding response
- */
-function ajaxHandleResponses( s, jqXHR, responses ) {
-
-       var contents = s.contents,
-               dataTypes = s.dataTypes,
-               responseFields = s.responseFields,
-               ct,
-               type,
-               finalDataType,
-               firstDataType;
-
-       // Fill responseXXX fields
-       for ( type in responseFields ) {
-               if ( type in responses ) {
-                       jqXHR[ responseFields[type] ] = responses[ type ];
-               }
-       }
-
-       // Remove auto dataType and get content-type in the process
-       while( dataTypes[ 0 ] === "*" ) {
-               dataTypes.shift();
-               if ( ct === undefined ) {
-                       ct = s.mimeType || jqXHR.getResponseHeader( "content-type" );
-               }
-       }
-
-       // Check if we're dealing with a known content-type
-       if ( ct ) {
-               for ( type in contents ) {
-                       if ( contents[ type ] && contents[ type ].test( ct ) ) {
-                               dataTypes.unshift( type );
-                               break;
-                       }
-               }
-       }
-
-       // Check to see if we have a response for the expected dataType
-       if ( dataTypes[ 0 ] in responses ) {
-               finalDataType = dataTypes[ 0 ];
-       } else {
-               // Try convertible dataTypes
-               for ( type in responses ) {
-                       if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
-                               finalDataType = type;
-                               break;
-                       }
-                       if ( !firstDataType ) {
-                               firstDataType = type;
-                       }
-               }
-               // Or just use first one
-               finalDataType = finalDataType || firstDataType;
-       }
-
-       // If we found a dataType
-       // We add the dataType to the list if needed
-       // and return the corresponding response
-       if ( finalDataType ) {
-               if ( finalDataType !== dataTypes[ 0 ] ) {
-                       dataTypes.unshift( finalDataType );
-               }
-               return responses[ finalDataType ];
-       }
-}
-
-// Chain conversions given the request and the original response
-function ajaxConvert( s, response ) {
-
-       // Apply the dataFilter if provided
-       if ( s.dataFilter ) {
-               response = s.dataFilter( response, s.dataType );
-       }
-
-       var dataTypes = s.dataTypes,
-               converters = {},
-               i,
-               key,
-               length = dataTypes.length,
-               tmp,
-               // Current and previous dataTypes
-               current = dataTypes[ 0 ],
-               prev,
-               // Conversion expression
-               conversion,
-               // Conversion function
-               conv,
-               // Conversion functions (transitive conversion)
-               conv1,
-               conv2;
-
-       // For each dataType in the chain
-       for ( i = 1; i < length; i++ ) {
-
-               // Create converters map
-               // with lowercased keys
-               if ( i === 1 ) {
-                       for ( key in s.converters ) {
-                               if ( typeof key === "string" ) {
-                                       converters[ key.toLowerCase() ] = s.converters[ key ];
-                               }
-                       }
-               }
-
-               // Get the dataTypes
-               prev = current;
-               current = dataTypes[ i ];
-
-               // If current is auto dataType, update it to prev
-               if ( current === "*" ) {
-                       current = prev;
-               // If no auto and dataTypes are actually different
-               } else if ( prev !== "*" && prev !== current ) {
-
-                       // Get the converter
-                       conversion = prev + " " + current;
-                       conv = converters[ conversion ] || converters[ "* " + current ];
-
-                       // If there is no direct converter, search transitively
-                       if ( !conv ) {
-                               conv2 = undefined;
-                               for ( conv1 in converters ) {
-                                       tmp = conv1.split( " " );
-                                       if ( tmp[ 0 ] === prev || tmp[ 0 ] === "*" ) {
-                                               conv2 = converters[ tmp[1] + " " + current ];
-                                               if ( conv2 ) {
-                                                       conv1 = converters[ conv1 ];
-                                                       if ( conv1 === true ) {
-                                                               conv = conv2;
-                                                       } else if ( conv2 === true ) {
-                                                               conv = conv1;
-                                                       }
-                                                       break;
-                                               }
-                                       }
-                               }
-                       }
-                       // If we found no converter, dispatch an error
-                       if ( !( conv || conv2 ) ) {
-                               jQuery.error( "No conversion from " + conversion.replace(" "," to ") );
-                       }
-                       // If found converter is not an equivalence
-                       if ( conv !== true ) {
-                               // Convert with 1 or 2 converters accordingly
-                               response = conv ? conv( response ) : conv2( conv1(response) );
-                       }
-               }
-       }
-       return response;
-}
-
-
-
-
-var jsc = jQuery.now(),
-       jsre = /(\=)\?(&|$)|\?\?/i;
-
-// Default jsonp settings
-jQuery.ajaxSetup({
-       jsonp: "callback",
-       jsonpCallback: function() {
-               return jQuery.expando + "_" + ( jsc++ );
-       }
-});
-
-// Detect, normalize options and install callbacks for jsonp requests
-jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
-
-       var inspectData = s.contentType === "application/x-www-form-urlencoded" &&
-               ( typeof s.data === "string" );
-
-       if ( s.dataTypes[ 0 ] === "jsonp" ||
-               s.jsonp !== false && ( jsre.test( s.url ) ||
-                               inspectData && jsre.test( s.data ) ) ) {
-
-               var responseContainer,
-                       jsonpCallback = s.jsonpCallback =
-                               jQuery.isFunction( s.jsonpCallback ) ? s.jsonpCallback() : s.jsonpCallback,
-                       previous = window[ jsonpCallback ],
-                       url = s.url,
-                       data = s.data,
-                       replace = "$1" + jsonpCallback + "$2";
-
-               if ( s.jsonp !== false ) {
-                       url = url.replace( jsre, replace );
-                       if ( s.url === url ) {
-                               if ( inspectData ) {
-                                       data = data.replace( jsre, replace );
-                               }
-                               if ( s.data === data ) {
-                                       // Add callback manually
-                                       url += (/\?/.test( url ) ? "&" : "?") + s.jsonp + "=" + jsonpCallback;
-                               }
-                       }
-               }
-
-               s.url = url;
-               s.data = data;
-
-               // Install callback
-               window[ jsonpCallback ] = function( response ) {
-                       responseContainer = [ response ];
-               };
-
-               // Clean-up function
-               jqXHR.always(function() {
-                       // Set callback back to previous value
-                       window[ jsonpCallback ] = previous;
-                       // Call if it was a function and we have a response
-                       if ( responseContainer && jQuery.isFunction( previous ) ) {
-                               window[ jsonpCallback ]( responseContainer[ 0 ] );
-                       }
-               });
-
-               // Use data converter to retrieve json after script execution
-               s.converters["script json"] = function() {
-                       if ( !responseContainer ) {
-                               jQuery.error( jsonpCallback + " was not called" );
-                       }
-                       return responseContainer[ 0 ];
-               };
-
-               // force json dataType
-               s.dataTypes[ 0 ] = "json";
-
-               // Delegate to script
-               return "script";
-       }
-});
-
-
-
-
-// Install script dataType
-jQuery.ajaxSetup({
-       accepts: {
-               script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
-       },
-       contents: {
-               script: /javascript|ecmascript/
-       },
-       converters: {
-               "text script": function( text ) {
-                       jQuery.globalEval( text );
-                       return text;
-               }
-       }
-});
-
-// Handle cache's special case and global
-jQuery.ajaxPrefilter( "script", function( s ) {
-       if ( s.cache === undefined ) {
-               s.cache = false;
-       }
-       if ( s.crossDomain ) {
-               s.type = "GET";
-               s.global = false;
-       }
-});
-
-// Bind script tag hack transport
-jQuery.ajaxTransport( "script", function(s) {
-
-       // This transport only deals with cross domain requests
-       if ( s.crossDomain ) {
-
-               var script,
-                       head = document.head || document.getElementsByTagName( "head" )[0] || document.documentElement;
-
-               return {
-
-                       send: function( _, callback ) {
-
-                               script = document.createElement( "script" );
-
-                               script.async = "async";
-
-                               if ( s.scriptCharset ) {
-                                       script.charset = s.scriptCharset;
-                               }
-
-                               script.src = s.url;
-
-                               // Attach handlers for all browsers
-                               script.onload = script.onreadystatechange = function( _, isAbort ) {
-
-                                       if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {
-
-                                               // Handle memory leak in IE
-                                               script.onload = script.onreadystatechange = null;
-
-                                               // Remove the script
-                                               if ( head && script.parentNode ) {
-                                                       head.removeChild( script );
-                                               }
-
-                                               // Dereference the script
-                                               script = undefined;
-
-                                               // Callback if not abort
-                                               if ( !isAbort ) {
-                                                       callback( 200, "success" );
-                                               }
-                                       }
-                               };
-                               // Use insertBefore instead of appendChild  to circumvent an IE6 bug.
-                               // This arises when a base node is used (#2709 and #4378).
-                               head.insertBefore( script, head.firstChild );
-                       },
-
-                       abort: function() {
-                               if ( script ) {
-                                       script.onload( 0, 1 );
-                               }
-                       }
-               };
-       }
-});
-
-
-
-
-var // #5280: Internet Explorer will keep connections alive if we don't abort on unload
-       xhrOnUnloadAbort = window.ActiveXObject ? function() {
-               // Abort all pending requests
-               for ( var key in xhrCallbacks ) {
-                       xhrCallbacks[ key ]( 0, 1 );
-               }
-       } : false,
-       xhrId = 0,
-       xhrCallbacks;
-
-// Functions to create xhrs
-function createStandardXHR() {
-       try {
-               return new window.XMLHttpRequest();
-       } catch( e ) {}
-}
-
-function createActiveXHR() {
-       try {
-               return new window.ActiveXObject( "Microsoft.XMLHTTP" );
-       } catch( e ) {}
-}
-
-// Create the request object
-// (This is still attached to ajaxSettings for backward compatibility)
-jQuery.ajaxSettings.xhr = window.ActiveXObject ?
-       /* Microsoft failed to properly
-        * implement the XMLHttpRequest in IE7 (can't request local files),
-        * so we use the ActiveXObject when it is available
-        * Additionally XMLHttpRequest can be disabled in IE7/IE8 so
-        * we need a fallback.
-        */
-       function() {
-               return !this.isLocal && createStandardXHR() || createActiveXHR();
-       } :
-       // For all other browsers, use the standard XMLHttpRequest object
-       createStandardXHR;
-
-// Determine support properties
-(function( xhr ) {
-       jQuery.extend( jQuery.support, {
-               ajax: !!xhr,
-               cors: !!xhr && ( "withCredentials" in xhr )
-       });
-})( jQuery.ajaxSettings.xhr() );
-
-// Create transport if the browser can provide an xhr
-if ( jQuery.support.ajax ) {
-
-       jQuery.ajaxTransport(function( s ) {
-               // Cross domain only allowed if supported through XMLHttpRequest
-               if ( !s.crossDomain || jQuery.support.cors ) {
-
-                       var callback;
-
-                       return {
-                               send: function( headers, complete ) {
-
-                                       // Get a new xhr
-                                       var xhr = s.xhr(),
-                                               handle,
-                                               i;
-
-                                       // Open the socket
-                                       // Passing null username, generates a login popup on Opera (#2865)
-                                       if ( s.username ) {
-                                               xhr.open( s.type, s.url, s.async, s.username, s.password );
-                                       } else {
-                                               xhr.open( s.type, s.url, s.async );
-                                       }
-
-                                       // Apply custom fields if provided
-                                       if ( s.xhrFields ) {
-                                               for ( i in s.xhrFields ) {
-                                                       xhr[ i ] = s.xhrFields[ i ];
-                                               }
-                                       }
-
-                                       // Override mime type if needed
-                                       if ( s.mimeType && xhr.overrideMimeType ) {
-                                               xhr.overrideMimeType( s.mimeType );
-                                       }
-
-                                       // X-Requested-With header
-                                       // For cross-domain requests, seeing as conditions for a preflight are
-                                       // akin to a jigsaw puzzle, we simply never set it to be sure.
-                                       // (it can always be set on a per-request basis or even using ajaxSetup)
-                                       // For same-domain requests, won't change header if already provided.
-                                       if ( !s.crossDomain && !headers["X-Requested-With"] ) {
-                                               headers[ "X-Requested-With" ] = "XMLHttpRequest";
-                                       }
-
-                                       // Need an extra try/catch for cross domain requests in Firefox 3
-                                       try {
-                                               for ( i in headers ) {
-                                                       xhr.setRequestHeader( i, headers[ i ] );
-                                               }
-                                       } catch( _ ) {}
-
-                                       // Do send the request
-                                       // This may raise an exception which is actually
-                                       // handled in jQuery.ajax (so no try/catch here)
-                                       xhr.send( ( s.hasContent && s.data ) || null );
-
-                                       // Listener
-                                       callback = function( _, isAbort ) {
-
-                                               var status,
-                                                       statusText,
-                                                       responseHeaders,
-                                                       responses,
-                                                       xml;
-
-                                               // Firefox throws exceptions when accessing properties
-                                               // of an xhr when a network error occured
-                                               // http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
-                                               try {
-
-                                                       // Was never called and is aborted or complete
-                                                       if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
-
-                                                               // Only called once
-                                                               callback = undefined;
-
-                                                               // Do not keep as active anymore
-                                                               if ( handle ) {
-                                                                       xhr.onreadystatechange = jQuery.noop;
-                                                                       if ( xhrOnUnloadAbort ) {
-                                                                               delete xhrCallbacks[ handle ];
-                                                                       }
-                                                               }
-
-                                                               // If it's an abort
-                                                               if ( isAbort ) {
-                                                                       // Abort it manually if needed
-                                                                       if ( xhr.readyState !== 4 ) {
-                                                                               xhr.abort();
-                                                                       }
-                                                               } else {
-                                                                       status = xhr.status;
-                                                                       responseHeaders = xhr.getAllResponseHeaders();
-                                                                       responses = {};
-                                                                       xml = xhr.responseXML;
-
-                                                                       // Construct response list
-                                                                       if ( xml && xml.documentElement /* #4958 */ ) {
-                                                                               responses.xml = xml;
-                                                                       }
-                                                                       responses.text = xhr.responseText;
-
-                                                                       // Firefox throws an exception when accessing
-                                                                       // statusText for faulty cross-domain requests
-                                                                       try {
-                                                                               statusText = xhr.statusText;
-                                                                       } catch( e ) {
-                                                                               // We normalize with Webkit giving an empty statusText
-                                                                               statusText = "";
-                                                                       }
-
-                                                                       // Filter status for non standard behaviors
-
-                                                                       // If the request is local and we have data: assume a success
-                                                                       // (success with no data won't get notified, that's the best we
-                                                                       // can do given current implementations)
-                                                                       if ( !status && s.isLocal && !s.crossDomain ) {
-                                                                               status = responses.text ? 200 : 404;
-                                                                       // IE - #1450: sometimes returns 1223 when it should be 204
-                                                                       } else if ( status === 1223 ) {
-                                                                               status = 204;
-                                                                       }
-                                                               }
-                                                       }
-                                               } catch( firefoxAccessException ) {
-                                                       if ( !isAbort ) {
-                                                               complete( -1, firefoxAccessException );
-                                                       }
-                                               }
-
-                                               // Call complete if needed
-                                               if ( responses ) {
-                                                       complete( status, statusText, responses, responseHeaders );
-                                               }
-                                       };
-
-                                       // if we're in sync mode or it's in cache
-                                       // and has been retrieved directly (IE6 & IE7)
-                                       // we need to manually fire the callback
-                                       if ( !s.async || xhr.readyState === 4 ) {
-                                               callback();
-                                       } else {
-                                               handle = ++xhrId;
-                                               if ( xhrOnUnloadAbort ) {
-                                                       // Create the active xhrs callbacks list if needed
-                                                       // and attach the unload handler
-                                                       if ( !xhrCallbacks ) {
-                                                               xhrCallbacks = {};
-                                                               jQuery( window ).unload( xhrOnUnloadAbort );
-                                                       }
-                                                       // Add to list of active xhrs callbacks
-                                                       xhrCallbacks[ handle ] = callback;
-                                               }
-                                               xhr.onreadystatechange = callback;
-                                       }
-                               },
-
-                               abort: function() {
-                                       if ( callback ) {
-                                               callback(0,1);
-                                       }
-                               }
-                       };
-               }
-       });
-}
-
-
-
-
-var elemdisplay = {},
-       iframe, iframeDoc,
-       rfxtypes = /^(?:toggle|show|hide)$/,
-       rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
-       timerId,
-       fxAttrs = [
-               // height animations
-               [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
-               // width animations
-               [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
-               // opacity animations
-               [ "opacity" ]
-       ],
-       fxNow;
-
-jQuery.fn.extend({
-       show: function( speed, easing, callback ) {
-               var elem, display;
-
-               if ( speed || speed === 0 ) {
-                       return this.animate( genFx("show", 3), speed, easing, callback );
-
-               } else {
-                       for ( var i = 0, j = this.length; i < j; i++ ) {
-                               elem = this[ i ];
-
-                               if ( elem.style ) {
-                                       display = elem.style.display;
-
-                                       // Reset the inline display of this element to learn if it is
-                                       // being hidden by cascaded rules or not
-                                       if ( !jQuery._data(elem, "olddisplay") && display === "none" ) {
-                                               display = elem.style.display = "";
-                                       }
-
-                                       // Set elements which have been overridden with display: none
-                                       // in a stylesheet to whatever the default browser style is
-                                       // for such an element
-                                       if ( display === "" && jQuery.css(elem, "display") === "none" ) {
-                                               jQuery._data( elem, "olddisplay", defaultDisplay(elem.nodeName) );
-                                       }
-                               }
-                       }
-
-                       // Set the display of most of the elements in a second loop
-                       // to avoid the constant reflow
-                       for ( i = 0; i < j; i++ ) {
-                               elem = this[ i ];
-
-                               if ( elem.style ) {
-                                       display = elem.style.display;
-
-                                       if ( display === "" || display === "none" ) {
-                                               elem.style.display = jQuery._data( elem, "olddisplay" ) || "";
-                                       }
-                               }
-                       }
-
-                       return this;
-               }
-       },
-
-       hide: function( speed, easing, callback ) {
-               if ( speed || speed === 0 ) {
-                       return this.animate( genFx("hide", 3), speed, easing, callback);
-
-               } else {
-                       var elem, display,
-                               i = 0,
-                               j = this.length;
-
-                       for ( ; i < j; i++ ) {
-                               elem = this[i];
-                               if ( elem.style ) {
-                                       display = jQuery.css( elem, "display" );
-
-                                       if ( display !== "none" && !jQuery._data( elem, "olddisplay" ) ) {
-                                               jQuery._data( elem, "olddisplay", display );
-                                       }
-                               }
-                       }
-
-                       // Set the display of the elements in a second loop
-                       // to avoid the constant reflow
-                       for ( i = 0; i < j; i++ ) {
-                               if ( this[i].style ) {
-                                       this[i].style.display = "none";
-                               }
-                       }
-
-                       return this;
-               }
-       },
-
-       // Save the old toggle function
-       _toggle: jQuery.fn.toggle,
-
-       toggle: function( fn, fn2, callback ) {
-               var bool = typeof fn === "boolean";
-
-               if ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) {
-                       this._toggle.apply( this, arguments );
-
-               } else if ( fn == null || bool ) {
-                       this.each(function() {
-                               var state = bool ? fn : jQuery(this).is(":hidden");
-                               jQuery(this)[ state ? "show" : "hide" ]();
-                       });
-
-               } else {
-                       this.animate(genFx("toggle", 3), fn, fn2, callback);
-               }
-
-               return this;
-       },
-
-       fadeTo: function( speed, to, easing, callback ) {
-               return this.filter(":hidden").css("opacity", 0).show().end()
-                                       .animate({opacity: to}, speed, easing, callback);
-       },
-
-       animate: function( prop, speed, easing, callback ) {
-               var optall = jQuery.speed( speed, easing, callback );
-
-               if ( jQuery.isEmptyObject( prop ) ) {
-                       return this.each( optall.complete, [ false ] );
-               }
-
-               // Do not change referenced properties as per-property easing will be lost
-               prop = jQuery.extend( {}, prop );
-
-               function doAnimation() {
-                       // XXX 'this' does not always have a nodeName when running the
-                       // test suite
-
-                       if ( optall.queue === false ) {
-                               jQuery._mark( this );
-                       }
-
-                       var opt = jQuery.extend( {}, optall ),
-                               isElement = this.nodeType === 1,
-                               hidden = isElement && jQuery(this).is(":hidden"),
-                               name, val, p, e,
-                               parts, start, end, unit,
-                               method;
-
-                       // will store per property easing and be used to determine when an animation is complete
-                       opt.animatedProperties = {};
-
-                       for ( p in prop ) {
-
-                               // property name normalization
-                               name = jQuery.camelCase( p );
-                               if ( p !== name ) {
-                                       prop[ name ] = prop[ p ];
-                                       delete prop[ p ];
-                               }
-
-                               val = prop[ name ];
-
-                               // easing resolution: per property > opt.specialEasing > opt.easing > 'swing' (default)
-                               if ( jQuery.isArray( val ) ) {
-                                       opt.animatedProperties[ name ] = val[ 1 ];
-                                       val = prop[ name ] = val[ 0 ];
-                               } else {
-                                       opt.animatedProperties[ name ] = opt.specialEasing && opt.specialEasing[ name ] || opt.easing || 'swing';
-                               }
-
-                               if ( val === "hide" && hidden || val === "show" && !hidden ) {
-                                       return opt.complete.call( this );
-                               }
-
-                               if ( isElement && ( name === "height" || name === "width" ) ) {
-                                       // Make sure that nothing sneaks out
-                                       // Record all 3 overflow attributes because IE does not
-                                       // change the overflow attribute when overflowX and
-                                       // overflowY are set to the same value
-                                       opt.overflow = [ this.style.overflow, this.style.overflowX, this.style.overflowY ];
-
-                                       // Set display property to inline-block for height/width
-                                       // animations on inline elements that are having width/height animated
-                                       if ( jQuery.css( this, "display" ) === "inline" &&
-                                                       jQuery.css( this, "float" ) === "none" ) {
-
-                                               // inline-level elements accept inline-block;
-                                               // block-level elements need to be inline with layout
-                                               if ( !jQuery.support.inlineBlockNeedsLayout || defaultDisplay( this.nodeName ) === "inline" ) {
-                                                       this.style.display = "inline-block";
-
-                                               } else {
-                                                       this.style.zoom = 1;
-                                               }
-                                       }
-                               }
-                       }
-
-                       if ( opt.overflow != null ) {
-                               this.style.overflow = "hidden";
-                       }
-
-                       for ( p in prop ) {
-                               e = new jQuery.fx( this, opt, p );
-                               val = prop[ p ];
-
-                               if ( rfxtypes.test( val ) ) {
-
-                                       // Tracks whether to show or hide based on private
-                                       // data attached to the element
-                                       method = jQuery._data( this, "toggle" + p ) || ( val === "toggle" ? hidden ? "show" : "hide" : 0 );
-                                       if ( method ) {
-                                               jQuery._data( this, "toggle" + p, method === "show" ? "hide" : "show" );
-                                               e[ method ]();
-                                       } else {
-                                               e[ val ]();
-                                       }
-
-                               } else {
-                                       parts = rfxnum.exec( val );
-                                       start = e.cur();
-
-                                       if ( parts ) {
-                                               end = parseFloat( parts[2] );
-                                               unit = parts[3] || ( jQuery.cssNumber[ p ] ? "" : "px" );
-
-                                               // We need to compute starting value
-                                               if ( unit !== "px" ) {
-                                                       jQuery.style( this, p, (end || 1) + unit);
-                                                       start = ( (end || 1) / e.cur() ) * start;
-                                                       jQuery.style( this, p, start + unit);
-                                               }
-
-                                               // If a +=/-= token was provided, we're doing a relative animation
-                                               if ( parts[1] ) {
-                                                       end = ( (parts[ 1 ] === "-=" ? -1 : 1) * end ) + start;
-                                               }
-
-                                               e.custom( start, end, unit );
-
-                                       } else {
-                                               e.custom( start, val, "" );
-                                       }
-                               }
-                       }
-
-                       // For JS strict compliance
-                       return true;
-               }
-
-               return optall.queue === false ?
-                       this.each( doAnimation ) :
-                       this.queue( optall.queue, doAnimation );
-       },
-
-       stop: function( type, clearQueue, gotoEnd ) {
-               if ( typeof type !== "string" ) {
-                       gotoEnd = clearQueue;
-                       clearQueue = type;
-                       type = undefined;
-               }
-               if ( clearQueue && type !== false ) {
-                       this.queue( type || "fx", [] );
-               }
-
-               return this.each(function() {
-                       var index,
-                               hadTimers = false,
-                               timers = jQuery.timers,
-                               data = jQuery._data( this );
-
-                       // clear marker counters if we know they won't be
-                       if ( !gotoEnd ) {
-                               jQuery._unmark( true, this );
-                       }
-
-                       function stopQueue( elem, data, index ) {
-                               var hooks = data[ index ];
-                               jQuery.removeData( elem, index, true );
-                               hooks.stop( gotoEnd );
-                       }
-
-                       if ( type == null ) {
-                               for ( index in data ) {
-                                       if ( data[ index ] && data[ index ].stop && index.indexOf(".run") === index.length - 4 ) {
-                                               stopQueue( this, data, index );
-                                       }
-                               }
-                       } else if ( data[ index = type + ".run" ] && data[ index ].stop ){
-                               stopQueue( this, data, index );
-                       }
-
-                       for ( index = timers.length; index--; ) {
-                               if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {
-                                       if ( gotoEnd ) {
-
-                                               // force the next step to be the last
-                                               timers[ index ]( true );
-                                       } else {
-                                               timers[ index ].saveState();
-                                       }
-                                       hadTimers = true;
-                                       timers.splice( index, 1 );
-                               }
-                       }
-
-                       // start the next in the queue if the last step wasn't forced
-                       // timers currently will call their complete callbacks, which will dequeue
-                       // but only if they were gotoEnd
-                       if ( !( gotoEnd && hadTimers ) ) {
-                               jQuery.dequeue( this, type );
-                       }
-               });
-       }
-
-});
-
-// Animations created synchronously will run synchronously
-function createFxNow() {
-       setTimeout( clearFxNow, 0 );
-       return ( fxNow = jQuery.now() );
-}
-
-function clearFxNow() {
-       fxNow = undefined;
-}
-
-// Generate parameters to create a standard animation
-function genFx( type, num ) {
-       var obj = {};
-
-       jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice( 0, num )), function() {
-               obj[ this ] = type;
-       });
-
-       return obj;
-}
-
-// Generate shortcuts for custom animations
-jQuery.each({
-       slideDown: genFx( "show", 1 ),
-       slideUp: genFx( "hide", 1 ),
-       slideToggle: genFx( "toggle", 1 ),
-       fadeIn: { opacity: "show" },
-       fadeOut: { opacity: "hide" },
-       fadeToggle: { opacity: "toggle" }
-}, function( name, props ) {
-       jQuery.fn[ name ] = function( speed, easing, callback ) {
-               return this.animate( props, speed, easing, callback );
-       };
-});
-
-jQuery.extend({
-       speed: function( speed, easing, fn ) {
-               var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
-                       complete: fn || !fn && easing ||
-                               jQuery.isFunction( speed ) && speed,
-                       duration: speed,
-                       easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
-               };
-
-               opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
-                       opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
-
-               // normalize opt.queue - true/undefined/null -> "fx"
-               if ( opt.queue == null || opt.queue === true ) {
-                       opt.queue = "fx";
-               }
-
-               // Queueing
-               opt.old = opt.complete;
-
-               opt.complete = function( noUnmark ) {
-                       if ( jQuery.isFunction( opt.old ) ) {
-                               opt.old.call( this );
-                       }
-
-                       if ( opt.queue ) {
-                               jQuery.dequeue( this, opt.queue );
-                       } else if ( noUnmark !== false ) {
-                               jQuery._unmark( this );
-                       }
-               };
-
-               return opt;
-       },
-
-       easing: {
-               linear: function( p, n, firstNum, diff ) {
-                       return firstNum + diff * p;
-               },
-               swing: function( p, n, firstNum, diff ) {
-                       return ( ( -Math.cos( p*Math.PI ) / 2 ) + 0.5 ) * diff + firstNum;
-               }
-       },
-
-       timers: [],
-
-       fx: function( elem, options, prop ) {
-               this.options = options;
-               this.elem = elem;
-               this.prop = prop;
-
-               options.orig = options.orig || {};
-       }
-
-});
-
-jQuery.fx.prototype = {
-       // Simple function for setting a style value
-       update: function() {
-               if ( this.options.step ) {
-                       this.options.step.call( this.elem, this.now, this );
-               }
-
-               ( jQuery.fx.step[ this.prop ] || jQuery.fx.step._default )( this );
-       },
-
-       // Get the current size
-       cur: function() {
-               if ( this.elem[ this.prop ] != null && (!this.elem.style || this.elem.style[ this.prop ] == null) ) {
-                       return this.elem[ this.prop ];
-               }
-
-               var parsed,
-                       r = jQuery.css( this.elem, this.prop );
-               // Empty strings, null, undefined and "auto" are converted to 0,
-               // complex values such as "rotate(1rad)" are returned as is,
-               // simple values such as "10px" are parsed to Float.
-               return isNaN( parsed = parseFloat( r ) ) ? !r || r === "auto" ? 0 : r : parsed;
-       },
-
-       // Start an animation from one number to another
-       custom: function( from, to, unit ) {
-               var self = this,
-                       fx = jQuery.fx;
-
-               this.startTime = fxNow || createFxNow();
-               this.end = to;
-               this.now = this.start = from;
-               this.pos = this.state = 0;
-               this.unit = unit || this.unit || ( jQuery.cssNumber[ this.prop ] ? "" : "px" );
-
-               function t( gotoEnd ) {
-                       return self.step( gotoEnd );
-               }
-
-               t.queue = this.options.queue;
-               t.elem = this.elem;
-               t.saveState = function() {
-                       if ( self.options.hide && jQuery._data( self.elem, "fxshow" + self.prop ) === undefined ) {
-                               jQuery._data( self.elem, "fxshow" + self.prop, self.start );
-                       }
-               };
-
-               if ( t() && jQuery.timers.push(t) && !timerId ) {
-                       timerId = setInterval( fx.tick, fx.interval );
-               }
-       },
-
-       // Simple 'show' function
-       show: function() {
-               var dataShow = jQuery._data( this.elem, "fxshow" + this.prop );
-
-               // Remember where we started, so that we can go back to it later
-               this.options.orig[ this.prop ] = dataShow || jQuery.style( this.elem, this.prop );
-               this.options.show = true;
-
-               // Begin the animation
-               // Make sure that we start at a small width/height to avoid any flash of content
-               if ( dataShow !== undefined ) {
-                       // This show is picking up where a previous hide or show left off
-                       this.custom( this.cur(), dataShow );
-               } else {
-                       this.custom( this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur() );
-               }
-
-               // Start by showing the element
-               jQuery( this.elem ).show();
-       },
-
-       // Simple 'hide' function
-       hide: function() {
-               // Remember where we started, so that we can go back to it later
-               this.options.orig[ this.prop ] = jQuery._data( this.elem, "fxshow" + this.prop ) || jQuery.style( this.elem, this.prop );
-               this.options.hide = true;
-
-               // Begin the animation
-               this.custom( this.cur(), 0 );
-       },
-
-       // Each step of an animation
-       step: function( gotoEnd ) {
-               var p, n, complete,
-                       t = fxNow || createFxNow(),
-                       done = true,
-                       elem = this.elem,
-                       options = this.options;
-
-               if ( gotoEnd || t >= options.duration + this.startTime ) {
-                       this.now = this.end;
-                       this.pos = this.state = 1;
-                       this.update();
-
-                       options.animatedProperties[ this.prop ] = true;
-
-                       for ( p in options.animatedProperties ) {
-                               if ( options.animatedProperties[ p ] !== true ) {
-                                       done = false;
-                               }
-                       }
-
-                       if ( done ) {
-                               // Reset the overflow
-                               if ( options.overflow != null && !jQuery.support.shrinkWrapBlocks ) {
-
-                                       jQuery.each( [ "", "X", "Y" ], function( index, value ) {
-                                               elem.style[ "overflow" + value ] = options.overflow[ index ];
-                                       });
-                               }
-
-                               // Hide the element if the "hide" operation was done
-                               if ( options.hide ) {
-                                       jQuery( elem ).hide();
-                               }
-
-                               // Reset the properties, if the item has been hidden or shown
-                               if ( options.hide || options.show ) {
-                                       for ( p in options.animatedProperties ) {
-                                               jQuery.style( elem, p, options.orig[ p ] );
-                                               jQuery.removeData( elem, "fxshow" + p, true );
-                                               // Toggle data is no longer needed
-                                               jQuery.removeData( elem, "toggle" + p, true );
-                                       }
-                               }
-
-                               // Execute the complete function
-                               // in the event that the complete function throws an exception
-                               // we must ensure it won't be called twice. #5684
-
-                               complete = options.complete;
-                               if ( complete ) {
-
-                                       options.complete = false;
-                                       complete.call( elem );
-                               }
-                       }
-
-                       return false;
-
-               } else {
-                       // classical easing cannot be used with an Infinity duration
-                       if ( options.duration == Infinity ) {
-                               this.now = t;
-                       } else {
-                               n = t - this.startTime;
-                               this.state = n / options.duration;
-
-                               // Perform the easing function, defaults to swing
-                               this.pos = jQuery.easing[ options.animatedProperties[this.prop] ]( this.state, n, 0, 1, options.duration );
-                               this.now = this.start + ( (this.end - this.start) * this.pos );
-                       }
-                       // Perform the next step of the animation
-                       this.update();
-               }
-
-               return true;
-       }
-};
-
-jQuery.extend( jQuery.fx, {
-       tick: function() {
-               var timer,
-                       timers = jQuery.timers,
-                       i = 0;
-
-               for ( ; i < timers.length; i++ ) {
-                       timer = timers[ i ];
-                       // Checks the timer has not already been removed
-                       if ( !timer() && timers[ i ] === timer ) {
-                               timers.splice( i--, 1 );
-                       }
-               }
-
-               if ( !timers.length ) {
-                       jQuery.fx.stop();
-               }
-       },
-
-       interval: 13,
-
-       stop: function() {
-               clearInterval( timerId );
-               timerId = null;
-       },
-
-       speeds: {
-               slow: 600,
-               fast: 200,
-               // Default speed
-               _default: 400
-       },
-
-       step: {
-               opacity: function( fx ) {
-                       jQuery.style( fx.elem, "opacity", fx.now );
-               },
-
-               _default: function( fx ) {
-                       if ( fx.elem.style && fx.elem.style[ fx.prop ] != null ) {
-                               fx.elem.style[ fx.prop ] = fx.now + fx.unit;
-                       } else {
-                               fx.elem[ fx.prop ] = fx.now;
-                       }
-               }
-       }
-});
-
-// Adds width/height step functions
-// Do not set anything below 0
-jQuery.each([ "width", "height" ], function( i, prop ) {
-       jQuery.fx.step[ prop ] = function( fx ) {
-               jQuery.style( fx.elem, prop, Math.max(0, fx.now) + fx.unit );
-       };
-});
-
-if ( jQuery.expr && jQuery.expr.filters ) {
-       jQuery.expr.filters.animated = function( elem ) {
-               return jQuery.grep(jQuery.timers, function( fn ) {
-                       return elem === fn.elem;
-               }).length;
-       };
-}
-
-// Try to restore the default display value of an element
-function defaultDisplay( nodeName ) {
-
-       if ( !elemdisplay[ nodeName ] ) {
-
-               var body = document.body,
-                       elem = jQuery( "<" + nodeName + ">" ).appendTo( body ),
-                       display = elem.css( "display" );
-               elem.remove();
-
-               // If the simple way fails,
-               // get element's real default display by attaching it to a temp iframe
-               if ( display === "none" || display === "" ) {
-                       // No iframe to use yet, so create it
-                       if ( !iframe ) {
-                               iframe = document.createElement( "iframe" );
-                               iframe.frameBorder = iframe.width = iframe.height = 0;
-                       }
-
-                       body.appendChild( iframe );
-
-                       // Create a cacheable copy of the iframe document on first call.
-                       // IE and Opera will allow us to reuse the iframeDoc without re-writing the fake HTML
-                       // document to it; WebKit & Firefox won't allow reusing the iframe document.
-                       if ( !iframeDoc || !iframe.createElement ) {
-                               iframeDoc = ( iframe.contentWindow || iframe.contentDocument ).document;
-                               iframeDoc.write( ( document.compatMode === "CSS1Compat" ? "<!doctype html>" : "" ) + "<html><body>" );
-                               iframeDoc.close();
-                       }
-
-                       elem = iframeDoc.createElement( nodeName );
-
-                       iframeDoc.body.appendChild( elem );
-
-                       display = jQuery.css( elem, "display" );
-                       body.removeChild( iframe );
-               }
-
-               // Store the correct default display
-               elemdisplay[ nodeName ] = display;
-       }
-
-       return elemdisplay[ nodeName ];
-}
-
-
-
-
-var rtable = /^t(?:able|d|h)$/i,
-       rroot = /^(?:body|html)$/i;
-
-if ( "getBoundingClientRect" in document.documentElement ) {
-       jQuery.fn.offset = function( options ) {
-               var elem = this[0], box;
-
-               if ( options ) {
-                       return this.each(function( i ) {
-                               jQuery.offset.setOffset( this, options, i );
-                       });
-               }
-
-               if ( !elem || !elem.ownerDocument ) {
-                       return null;
-               }
-
-               if ( elem === elem.ownerDocument.body ) {
-                       return jQuery.offset.bodyOffset( elem );
-               }
-
-               try {
-                       box = elem.getBoundingClientRect();
-               } catch(e) {}
-
-               var doc = elem.ownerDocument,
-                       docElem = doc.documentElement;
-
-               // Make sure we're not dealing with a disconnected DOM node
-               if ( !box || !jQuery.contains( docElem, elem ) ) {
-                       return box ? { top: box.top, left: box.left } : { top: 0, left: 0 };
-               }
-
-               var body = doc.body,
-                       win = getWindow(doc),
-                       clientTop  = docElem.clientTop  || body.clientTop  || 0,
-                       clientLeft = docElem.clientLeft || body.clientLeft || 0,
-                       scrollTop  = win.pageYOffset || jQuery.support.boxModel && docElem.scrollTop  || body.scrollTop,
-                       scrollLeft = win.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft,
-                       top  = box.top  + scrollTop  - clientTop,
-                       left = box.left + scrollLeft - clientLeft;
-
-               return { top: top, left: left };
-       };
-
-} else {
-       jQuery.fn.offset = function( options ) {
-               var elem = this[0];
-
-               if ( options ) {
-                       return this.each(function( i ) {
-                               jQuery.offset.setOffset( this, options, i );
-                       });
-               }
-
-               if ( !elem || !elem.ownerDocument ) {
-                       return null;
-               }
-
-               if ( elem === elem.ownerDocument.body ) {
-                       return jQuery.offset.bodyOffset( elem );
-               }
-
-               var computedStyle,
-                       offsetParent = elem.offsetParent,
-                       prevOffsetParent = elem,
-                       doc = elem.ownerDocument,
-                       docElem = doc.documentElement,
-                       body = doc.body,
-                       defaultView = doc.defaultView,
-                       prevComputedStyle = defaultView ? defaultView.getComputedStyle( elem, null ) : elem.currentStyle,
-                       top = elem.offsetTop,
-                       left = elem.offsetLeft;
-
-               while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
-                       if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {
-                               break;
-                       }
-
-                       computedStyle = defaultView ? defaultView.getComputedStyle(elem, null) : elem.currentStyle;
-                       top  -= elem.scrollTop;
-                       left -= elem.scrollLeft;
-
-                       if ( elem === offsetParent ) {
-                               top  += elem.offsetTop;
-                               left += elem.offsetLeft;
-
-                               if ( jQuery.support.doesNotAddBorder && !(jQuery.support.doesAddBorderForTableAndCells && rtable.test(elem.nodeName)) ) {
-                                       top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
-                                       left += parseFloat( computedStyle.borderLeftWidth ) || 0;
-                               }
-
-                               prevOffsetParent = offsetParent;
-                               offsetParent = elem.offsetParent;
-                       }
-
-                       if ( jQuery.support.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" ) {
-                               top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
-                               left += parseFloat( computedStyle.borderLeftWidth ) || 0;
-                       }
-
-                       prevComputedStyle = computedStyle;
-               }
-
-               if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" ) {
-                       top  += body.offsetTop;
-                       left += body.offsetLeft;
-               }
-
-               if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {
-                       top  += Math.max( docElem.scrollTop, body.scrollTop );
-                       left += Math.max( docElem.scrollLeft, body.scrollLeft );
-               }
-
-               return { top: top, left: left };
-       };
-}
-
-jQuery.offset = {
-
-       bodyOffset: function( body ) {
-               var top = body.offsetTop,
-                       left = body.offsetLeft;
-
-               if ( jQuery.support.doesNotIncludeMarginInBodyOffset ) {
-                       top  += parseFloat( jQuery.css(body, "marginTop") ) || 0;
-                       left += parseFloat( jQuery.css(body, "marginLeft") ) || 0;
-               }
-
-               return { top: top, left: left };
-       },
-
-       setOffset: function( elem, options, i ) {
-               var position = jQuery.css( elem, "position" );
-
-               // set position first, in-case top/left are set even on static elem
-               if ( position === "static" ) {
-                       elem.style.position = "relative";
-               }
-
-               var curElem = jQuery( elem ),
-                       curOffset = curElem.offset(),
-                       curCSSTop = jQuery.css( elem, "top" ),
-                       curCSSLeft = jQuery.css( elem, "left" ),
-                       calculatePosition = ( position === "absolute" || position === "fixed" ) && jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1,
-                       props = {}, curPosition = {}, curTop, curLeft;
-
-               // need to be able to calculate position if either top or left is auto and position is either absolute or fixed
-               if ( calculatePosition ) {
-                       curPosition = curElem.position();
-                       curTop = curPosition.top;
-                       curLeft = curPosition.left;
-               } else {
-                       curTop = parseFloat( curCSSTop ) || 0;
-                       curLeft = parseFloat( curCSSLeft ) || 0;
-               }
-
-               if ( jQuery.isFunction( options ) ) {
-                       options = options.call( elem, i, curOffset );
-               }
-
-               if ( options.top != null ) {
-                       props.top = ( options.top - curOffset.top ) + curTop;
-               }
-               if ( options.left != null ) {
-                       props.left = ( options.left - curOffset.left ) + curLeft;
-               }
-
-               if ( "using" in options ) {
-                       options.using.call( elem, props );
-               } else {
-                       curElem.css( props );
-               }
-       }
-};
-
-
-jQuery.fn.extend({
-
-       position: function() {
-               if ( !this[0] ) {
-                       return null;
-               }
-
-               var elem = this[0],
-
-               // Get *real* offsetParent
-               offsetParent = this.offsetParent(),
-
-               // Get correct offsets
-               offset       = this.offset(),
-               parentOffset = rroot.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset();
-
-               // Subtract element margins
-               // note: when an element has margin: auto the offsetLeft and marginLeft
-               // are the same in Safari causing offset.left to incorrectly be 0
-               offset.top  -= parseFloat( jQuery.css(elem, "marginTop") ) || 0;
-               offset.left -= parseFloat( jQuery.css(elem, "marginLeft") ) || 0;
-
-               // Add offsetParent borders
-               parentOffset.top  += parseFloat( jQuery.css(offsetParent[0], "borderTopWidth") ) || 0;
-               parentOffset.left += parseFloat( jQuery.css(offsetParent[0], "borderLeftWidth") ) || 0;
-
-               // Subtract the two offsets
-               return {
-                       top:  offset.top  - parentOffset.top,
-                       left: offset.left - parentOffset.left
-               };
-       },
-
-       offsetParent: function() {
-               return this.map(function() {
-                       var offsetParent = this.offsetParent || document.body;
-                       while ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) {
-                               offsetParent = offsetParent.offsetParent;
-                       }
-                       return offsetParent;
-               });
-       }
-});
-
-
-// Create scrollLeft and scrollTop methods
-jQuery.each( ["Left", "Top"], function( i, name ) {
-       var method = "scroll" + name;
-
-       jQuery.fn[ method ] = function( val ) {
-               var elem, win;
-
-               if ( val === undefined ) {
-                       elem = this[ 0 ];
-
-                       if ( !elem ) {
-                               return null;
-                       }
-
-                       win = getWindow( elem );
-
-                       // Return the scroll offset
-                       return win ? ("pageXOffset" in win) ? win[ i ? "pageYOffset" : "pageXOffset" ] :
-                               jQuery.support.boxModel && win.document.documentElement[ method ] ||
-                                       win.document.body[ method ] :
-                               elem[ method ];
-               }
-
-               // Set the scroll offset
-               return this.each(function() {
-                       win = getWindow( this );
-
-                       if ( win ) {
-                               win.scrollTo(
-                                       !i ? val : jQuery( win ).scrollLeft(),
-                                        i ? val : jQuery( win ).scrollTop()
-                               );
-
-                       } else {
-                               this[ method ] = val;
-                       }
-               });
-       };
-});
-
-function getWindow( elem ) {
-       return jQuery.isWindow( elem ) ?
-               elem :
-               elem.nodeType === 9 ?
-                       elem.defaultView || elem.parentWindow :
-                       false;
-}
-
-
-
-
-// Create width, height, innerHeight, innerWidth, outerHeight and outerWidth methods
-jQuery.each([ "Height", "Width" ], function( i, name ) {
-
-       var type = name.toLowerCase();
-
-       // innerHeight and innerWidth
-       jQuery.fn[ "inner" + name ] = function() {
-               var elem = this[0];
-               return elem ?
-                       elem.style ?
-                       parseFloat( jQuery.css( elem, type, "padding" ) ) :
-                       this[ type ]() :
-                       null;
-       };
-
-       // outerHeight and outerWidth
-       jQuery.fn[ "outer" + name ] = function( margin ) {
-               var elem = this[0];
-               return elem ?
-                       elem.style ?
-                       parseFloat( jQuery.css( elem, type, margin ? "margin" : "border" ) ) :
-                       this[ type ]() :
-                       null;
-       };
-
-       jQuery.fn[ type ] = function( size ) {
-               // Get window width or height
-               var elem = this[0];
-               if ( !elem ) {
-                       return size == null ? null : this;
-               }
-
-               if ( jQuery.isFunction( size ) ) {
-                       return this.each(function( i ) {
-                               var self = jQuery( this );
-                               self[ type ]( size.call( this, i, self[ type ]() ) );
-                       });
-               }
-
-               if ( jQuery.isWindow( elem ) ) {
-                       // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
-                       // 3rd condition allows Nokia support, as it supports the docElem prop but not CSS1Compat
-                       var docElemProp = elem.document.documentElement[ "client" + name ],
-                               body = elem.document.body;
-                       return elem.document.compatMode === "CSS1Compat" && docElemProp ||
-                               body && body[ "client" + name ] || docElemProp;
-
-               // Get document width or height
-               } else if ( elem.nodeType === 9 ) {
-                       // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
-                       return Math.max(
-                               elem.documentElement["client" + name],
-                               elem.body["scroll" + name], elem.documentElement["scroll" + name],
-                               elem.body["offset" + name], elem.documentElement["offset" + name]
-                       );
-
-               // Get or set width or height on the element
-               } else if ( size === undefined ) {
-                       var orig = jQuery.css( elem, type ),
-                               ret = parseFloat( orig );
-
-                       return jQuery.isNumeric( ret ) ? ret : orig;
-
-               // Set the width or height on the element (default to pixels if value is unitless)
-               } else {
-                       return this.css( type, typeof size === "string" ? size : size + "px" );
-               }
-       };
-
-});
-
-
-
-
-// Expose jQuery to the global object
-window.jQuery = window.$ = jQuery;
-
-// Expose jQuery as an AMD module, but only for AMD loaders that
-// understand the issues with loading multiple versions of jQuery
-// in a page that all might call define(). The loader will indicate
-// they have special allowances for multiple jQuery versions by
-// specifying define.amd.jQuery = true. Register as a named module,
-// since jQuery can be concatenated with other files that may use define,
-// but not use a proper concatenation script that understands anonymous
-// AMD modules. A named AMD is safest and most robust way to register.
-// Lowercase jquery is used because AMD module names are derived from
-// file names, and jQuery is normally delivered in a lowercase file name.
-// Do this after creating the global so that if an AMD module wants to call
-// noConflict to hide this version of jQuery, it will work.
-if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
-       define( "jquery", [], function () { return jQuery; } );
-}
-
-
-
-})( window );
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.buttonMarkup.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.buttonMarkup.js
deleted file mode 100644 (file)
index c5f32b4..0000000
+++ /dev/null
@@ -1,252 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Applies button styling to links
-//>>label: Buttons: Link-based
-//>>group: Forms
-//>>css: ../css/themes/default/jquery.mobile.theme.css, ../css/structure/jquery.mobile.button.css
-
-define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.vmouse" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-( function( $, undefined ) {
-
-$.fn.buttonMarkup = function( options ) {
-       var $workingSet = this;
-
-       // Enforce options to be of type string
-       options = ( options && ( $.type( options ) == "object" ) )? options : {};
-       for ( var i = 0; i < $workingSet.length; i++ ) {
-               var el = $workingSet.eq( i ),
-                       e = el[ 0 ],
-                       o = $.extend( {}, $.fn.buttonMarkup.defaults, {
-                               icon:       options.icon       !== undefined ? options.icon       : el.jqmData( "icon" ),
-                               iconpos:    options.iconpos    !== undefined ? options.iconpos    : el.jqmData( "iconpos" ),
-                               theme:      options.theme      !== undefined ? options.theme      : el.jqmData( "theme" ) || $.mobile.getInheritedTheme( el, "c" ),
-                               inline:     options.inline     !== undefined ? options.inline     : el.jqmData( "inline" ),
-                               shadow:     options.shadow     !== undefined ? options.shadow     : el.jqmData( "shadow" ),
-                               corners:    options.corners    !== undefined ? options.corners    : el.jqmData( "corners" ),
-                               iconshadow: options.iconshadow !== undefined ? options.iconshadow : el.jqmData( "iconshadow" ),
-                               mini:       options.mini       !== undefined ? options.mini       : el.jqmData( "mini" )
-                       }, options ),
-
-                       // Classes Defined
-                       innerClass = "ui-btn-inner",
-                       textClass = "ui-btn-text",
-                       buttonClass, iconClass,
-                       // Button inner markup
-                       buttonInner,
-                       buttonText,
-                       buttonIcon,
-                       buttonElements;
-
-               $.each(o, function(key, value) {
-                       e.setAttribute( "data-" + $.mobile.ns + key, value );
-                       el.jqmData(key, value);
-               });
-
-               // Check if this element is already enhanced
-               buttonElements = $.data(((e.tagName === "INPUT" || e.tagName === "BUTTON") ? e.parentNode : e), "buttonElements");
-
-               if (buttonElements) {
-                       e = buttonElements.outer;
-                       el = $(e);
-                       buttonInner = buttonElements.inner;
-                       buttonText = buttonElements.text;
-                       // We will recreate this icon below
-                       $(buttonElements.icon).remove();
-                       buttonElements.icon = null;
-               }
-               else {
-                       buttonInner = document.createElement( o.wrapperEls );
-                       buttonText = document.createElement( o.wrapperEls );
-               }
-               buttonIcon = o.icon ? document.createElement( "span" ) : null;
-
-               if ( attachEvents && !buttonElements) {
-                       attachEvents();
-               }
-               
-               // if not, try to find closest theme container  
-               if ( !o.theme ) {
-                       o.theme = $.mobile.getInheritedTheme( el, "c" );        
-               }               
-
-               buttonClass = "ui-btn ui-btn-up-" + o.theme;
-               buttonClass += o.inline ? " ui-btn-inline" : "";
-               buttonClass += o.shadow ? " ui-shadow" : "";
-               buttonClass += o.corners ? " ui-btn-corner-all" : "";
-
-               if ( o.mini !== undefined ) {
-                       // Used to control styling in headers/footers, where buttons default to `mini` style.
-                       buttonClass += o.mini ? " ui-mini" : " ui-fullsize";
-               }
-               
-               if ( o.inline !== undefined ) {                 
-                       // Used to control styling in headers/footers, where buttons default to `mini` style.
-                       buttonClass += o.inline === false ? " ui-btn-block" : " ui-btn-inline";
-               }
-               
-               
-               if ( o.icon ) {
-                       o.icon = "ui-icon-" + o.icon;
-                       o.iconpos = o.iconpos || "left";
-
-                       iconClass = "ui-icon " + o.icon;
-
-                       if ( o.iconshadow ) {
-                               iconClass += " ui-icon-shadow";
-                       }
-               }
-
-               if ( o.iconpos ) {
-                       buttonClass += " ui-btn-icon-" + o.iconpos;
-
-                       if ( o.iconpos == "notext" && !el.attr( "title" ) ) {
-                               el.attr( "title", el.getEncodedText() );
-                       }
-               }
-    
-               innerClass += o.corners ? " ui-btn-corner-all" : "";
-
-               if ( o.iconpos && o.iconpos === "notext" && !el.attr( "title" ) ) {
-                       el.attr( "title", el.getEncodedText() );
-               }
-
-               if ( buttonElements ) {
-                       el.removeClass( buttonElements.bcls || "" );
-               }
-               el.removeClass( "ui-link" ).addClass( buttonClass );
-
-               buttonInner.className = innerClass;
-
-               buttonText.className = textClass;
-               if ( !buttonElements ) {
-                       buttonInner.appendChild( buttonText );
-               }
-               if ( buttonIcon ) {
-                       buttonIcon.className = iconClass;
-                       if ( !(buttonElements && buttonElements.icon) ) {
-                               buttonIcon.appendChild( document.createTextNode("\u00a0") );
-                               buttonInner.appendChild( buttonIcon );
-                       }
-               }
-
-               while ( e.firstChild && !buttonElements) {
-                       buttonText.appendChild( e.firstChild );
-               }
-
-               if ( !buttonElements ) {
-                       e.appendChild( buttonInner );
-               }
-
-               // Assign a structure containing the elements of this button to the elements of this button. This
-               // will allow us to recognize this as an already-enhanced button in future calls to buttonMarkup().
-               buttonElements = {
-                       bcls  : buttonClass,
-                       outer : e,
-                       inner : buttonInner,
-                       text  : buttonText,
-                       icon  : buttonIcon
-               };
-
-               $.data(e,           'buttonElements', buttonElements);
-               $.data(buttonInner, 'buttonElements', buttonElements);
-               $.data(buttonText,  'buttonElements', buttonElements);
-               if (buttonIcon) {
-                       $.data(buttonIcon, 'buttonElements', buttonElements);
-               }
-       }
-
-       return this;
-};
-
-$.fn.buttonMarkup.defaults = {
-       corners: true,
-       shadow: true,
-       iconshadow: true,
-       wrapperEls: "span"
-};
-
-function closestEnabledButton( element ) {
-    var cname;
-
-    while ( element ) {
-               // Note that we check for typeof className below because the element we
-               // handed could be in an SVG DOM where className on SVG elements is defined to
-               // be of a different type (SVGAnimatedString). We only operate on HTML DOM
-               // elements, so we look for plain "string".
-        cname = ( typeof element.className === 'string' ) && (element.className + ' ');
-        if ( cname && cname.indexOf("ui-btn ") > -1 && cname.indexOf("ui-disabled ") < 0 ) {
-            break;
-        }
-
-        element = element.parentNode;
-    }
-
-    return element;
-}
-
-var attachEvents = function() {
-       var hoverDelay = $.mobile.buttonMarkup.hoverDelay, hov, foc;
-
-       $( document ).bind( {
-               "vmousedown vmousecancel vmouseup vmouseover vmouseout focus blur scrollstart": function( event ) {
-                       var theme,
-                               $btn = $( closestEnabledButton( event.target ) ),
-                               evt = event.type;
-               
-                       if ( $btn.length ) {
-                               theme = $btn.attr( "data-" + $.mobile.ns + "theme" );
-               
-                               if ( evt === "vmousedown" ) {
-                                       if ( $.support.touch ) {
-                                               hov = setTimeout(function() {
-                                                       $btn.removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-down-" + theme );
-                                               }, hoverDelay );
-                                       } else {
-                                               $btn.removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-down-" + theme );
-                                       }
-                               } else if ( evt === "vmousecancel" || evt === "vmouseup" ) {
-                                       $btn.removeClass( "ui-btn-down-" + theme ).addClass( "ui-btn-up-" + theme );
-                               } else if ( evt === "vmouseover" || evt === "focus" ) {
-                                       if ( $.support.touch ) {
-                                               foc = setTimeout(function() {
-                                                       $btn.removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-hover-" + theme );
-                                               }, hoverDelay );
-                                       } else {
-                                               $btn.removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-hover-" + theme );
-                                       }
-                               } else if ( evt === "vmouseout" || evt === "blur" || evt === "scrollstart" ) {
-                                       $btn.removeClass( "ui-btn-hover-" + theme  + " ui-btn-down-" + theme ).addClass( "ui-btn-up-" + theme );
-                                       if ( hov ) {
-                                               clearTimeout( hov );
-                                       }
-                                       if ( foc ) {
-                                               clearTimeout( foc );
-                                       }
-                               }
-                       }
-               },
-               "focusin focus": function( event ){
-                       $( closestEnabledButton( event.target ) ).addClass( $.mobile.focusClass );
-               },
-               "focusout blur": function( event ){
-                       $( closestEnabledButton( event.target ) ).removeClass( $.mobile.focusClass );
-               }
-       });
-
-       attachEvents = null;
-};
-
-//links in bars, or those with  data-role become buttons
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-
-       $( ":jqmData(role='button'), .ui-bar > a, .ui-header > a, .ui-footer > a, .ui-bar > :jqmData(role='controlgroup') > a", e.target )
-               .not( ".ui-btn, :jqmData(role='none'), :jqmData(role='nojs')" )
-               .buttonMarkup();
-});
-
-})( jQuery );
-
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.collapsible.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.collapsible.js
deleted file mode 100644 (file)
index d1e1eb9..0000000
+++ /dev/null
@@ -1,135 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Creates collapsible content blocks.
-//>>label: Collapsible
-//>>group: Widgets
-//>>css: ../css/themes/default/jquery.mobile.theme.css,../css/structure/jquery.mobile.collapsible.css
-
-define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.buttonMarkup" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, undefined ) {
-
-$.widget( "mobile.collapsible", $.mobile.widget, {
-       options: {
-               expandCueText: " click to expand contents",
-               collapseCueText: " click to collapse contents",
-               collapsed: true,
-               heading: "h1,h2,h3,h4,h5,h6,legend",
-               theme: null,
-               contentTheme: null,
-               iconTheme: "d",
-               mini: false,
-               initSelector: ":jqmData(role='collapsible')"
-       },
-       _create: function() {
-
-               var $el = this.element,
-                       o = this.options,
-                       collapsible = $el.addClass( "ui-collapsible" ),
-                       collapsibleHeading = $el.children( o.heading ).first(),
-                       collapsibleContent = collapsible.wrapInner( "<div class='ui-collapsible-content'></div>" ).find( ".ui-collapsible-content" ),
-                       collapsibleSet = $el.closest( ":jqmData(role='collapsible-set')" ).addClass( "ui-collapsible-set" );
-
-               // Replace collapsibleHeading if it's a legend
-               if ( collapsibleHeading.is( "legend" ) ) {
-                       collapsibleHeading = $( "<div role='heading'>"+ collapsibleHeading.html() +"</div>" ).insertBefore( collapsibleHeading );
-                       collapsibleHeading.next().remove();
-               }
-
-               // If we are in a collapsible set
-               if ( collapsibleSet.length ) {
-                       // Inherit the theme from collapsible-set
-                       if ( !o.theme ) {
-                               o.theme = collapsibleSet.jqmData("theme") || $.mobile.getInheritedTheme( collapsibleSet, "c" );
-                       }
-                       // Inherit the content-theme from collapsible-set
-                       if ( !o.contentTheme ) {
-                               o.contentTheme = collapsibleSet.jqmData( "content-theme" );
-                       }
-
-                       // Gets the preference icon position in the set
-                       if ( !o.iconPos ) {
-                               o.iconPos = collapsibleSet.jqmData( "iconpos" );
-                       }
-
-                       if( !o.mini ) {
-                               o.mini = collapsibleSet.jqmData( "mini" );
-                       }
-               }
-               collapsibleContent.addClass( ( o.contentTheme ) ? ( "ui-body-" + o.contentTheme ) : "");
-
-               collapsibleHeading
-                       //drop heading in before content
-                       .insertBefore( collapsibleContent )
-                       //modify markup & attributes
-                       .addClass( "ui-collapsible-heading" )
-                       .append( "<span class='ui-collapsible-heading-status'></span>" )
-                       .wrapInner( "<a href='#' class='ui-collapsible-heading-toggle'></a>" )
-                       .find( "a" )
-                               .first()
-                               .buttonMarkup({
-                                       shadow: false,
-                                       corners: false,
-                                       iconpos: $el.jqmData( "iconpos" ) || o.iconPos || "left",
-                                       icon: "plus",
-                                       mini: o.mini,
-                                       theme: o.theme
-                               })
-                       .add( ".ui-btn-inner", $el )
-                               .addClass( "ui-corner-top ui-corner-bottom" );
-
-               //events
-               collapsible
-                       .bind( "expand collapse", function( event ) {
-                               if ( !event.isDefaultPrevented() ) {
-
-                                       event.preventDefault();
-
-                                       var $this = $( this ),
-                                               isCollapse = ( event.type === "collapse" ),
-                                           contentTheme = o.contentTheme;
-
-                                       collapsibleHeading
-                                               .toggleClass( "ui-collapsible-heading-collapsed", isCollapse)
-                                               .find( ".ui-collapsible-heading-status" )
-                                                       .text( isCollapse ? o.expandCueText : o.collapseCueText )
-                                               .end()
-                                               .find( ".ui-icon" )
-                                                       .toggleClass( "ui-icon-minus", !isCollapse )
-                                                       .toggleClass( "ui-icon-plus", isCollapse );
-
-                                       $this.toggleClass( "ui-collapsible-collapsed", isCollapse );
-                                       collapsibleContent.toggleClass( "ui-collapsible-content-collapsed", isCollapse ).attr( "aria-hidden", isCollapse );
-
-                                       if ( contentTheme && ( !collapsibleSet.length || collapsible.jqmData( "collapsible-last" ) ) ) {
-                                               collapsibleHeading
-                                                       .find( "a" ).first().add( collapsibleHeading.find( ".ui-btn-inner" ) )
-                                                       .toggleClass( "ui-corner-bottom", isCollapse );
-                                               collapsibleContent.toggleClass( "ui-corner-bottom", !isCollapse );
-                                       }
-                                       collapsibleContent.trigger( "updatelayout" );
-                               }
-                       })
-                       .trigger( o.collapsed ? "collapse" : "expand" );
-
-               collapsibleHeading
-                       .bind( "click", function( event ) {
-
-                               var type = collapsibleHeading.is( ".ui-collapsible-heading-collapsed" ) ?
-                                                                               "expand" : "collapse";
-
-                               collapsible.trigger( type );
-
-                               event.preventDefault();
-                       });
-       }
-});
-
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-       $.mobile.collapsible.prototype.enhanceWithin( e.target );
-});
-
-})( jQuery );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.collapsibleSet.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.collapsibleSet.js
deleted file mode 100644 (file)
index b88fca0..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: For creating grouped collapsible content areas.
-//>>label: Collapsible Sets (Accordions)
-//>>group: Widgets
-//>>css: ../css/themes/default/jquery.mobile.theme.css,../css/structure/jquery.mobile.collapsible.css
-
-define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.collapsible" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, undefined ) {
-
-$.widget( "mobile.collapsibleset", $.mobile.widget, {
-       options: {
-               initSelector: ":jqmData(role='collapsible-set')"
-       },
-       _create: function() {
-               var $el = this.element.addClass( "ui-collapsible-set" ),
-                       o = this.options;
-
-               // Inherit the theme from collapsible-set
-               if ( !o.theme ) {
-                       o.theme = $.mobile.getInheritedTheme( $el, "c" );
-               }
-               // Inherit the content-theme from collapsible-set
-               if ( !o.contentTheme ) {
-                       o.contentTheme = $el.jqmData( "content-theme" );
-               }
-
-               if ( !o.corners ) {
-                       o.corners = $el.jqmData( "corners" ) === undefined ? true : false;
-               }
-
-               // Initialize the collapsible set if it's not already initialized
-               if ( !$el.jqmData( "collapsiblebound" ) ) {
-                       $el
-                               .jqmData( "collapsiblebound", true )
-                               .bind( "expand collapse", function( event ) {
-                                       var isCollapse = ( event.type === "collapse" ),
-                                               collapsible = $( event.target ).closest( ".ui-collapsible" ),
-                                               widget = collapsible.data( "collapsible" ),
-                                           contentTheme = widget.options.contentTheme;
-                                       if ( contentTheme && collapsible.jqmData( "collapsible-last" ) ) {
-                                               collapsible.find( widget.options.heading ).first()
-                                                       .find( "a" ).first()
-                                                       .add( ".ui-btn-inner" )
-                                                       .toggleClass( "ui-corner-bottom", isCollapse );
-                                               collapsible.find( ".ui-collapsible-content" ).toggleClass( "ui-corner-bottom", !isCollapse );
-                                       }
-                               })
-                               .bind( "expand", function( event ) {
-                                       $( event.target )
-                                               .closest( ".ui-collapsible" )
-                                               .siblings( ".ui-collapsible" )
-                                               .trigger( "collapse" );
-                               });
-               }
-       },
-
-       _init: function() {
-               this.refresh();
-       },
-
-       refresh: function() {
-               var $el = this.element,
-                       o = this.options,
-                       collapsiblesInSet = $el.children( ":jqmData(role='collapsible')" );
-
-               $.mobile.collapsible.prototype.enhance( collapsiblesInSet.not( ".ui-collapsible" ) );
-
-               // clean up borders
-               collapsiblesInSet.each( function() {
-                       $( this ).find( $.mobile.collapsible.prototype.options.heading )
-                               .find( "a" ).first()
-                               .add( ".ui-btn-inner" )
-                               .removeClass( "ui-corner-top ui-corner-bottom" );
-               });
-
-               collapsiblesInSet.first()
-                       .find( "a" )
-                               .first()
-                               .addClass( o.corners ? "ui-corner-top" : "" )
-                               .find( ".ui-btn-inner" )
-                                       .addClass( "ui-corner-top" );
-
-               collapsiblesInSet.last()
-                       .jqmData( "collapsible-last", true )
-                       .find( "a" )
-                               .first()
-                               .addClass( o.corners ? "ui-corner-bottom" : "" )
-                               .find( ".ui-btn-inner" )
-                                       .addClass( "ui-corner-bottom" );
-       }
-});
-
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-       $.mobile.collapsibleset.prototype.enhanceWithin( e.target );
-});
-
-})( jQuery );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.controlGroup.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.controlGroup.js
deleted file mode 100644 (file)
index 4794cca..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Visually groups sets of buttons, checks, radios, etc. 
-//>>label: Controlgroups
-//>>group: Forms
-//>>css: ../css/themes/default/jquery.mobile.theme.css,../css/structure/jquery.mobile.controlgroup.css
-
-define( [ "jquery", "./jquery.mobile.buttonMarkup" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, undefined ) {
-
-$.fn.controlgroup = function( options ) {
-       function flipClasses( els, flCorners  ) {
-               els.removeClass( "ui-btn-corner-all ui-shadow" )
-                       .eq( 0 ).addClass( flCorners[ 0 ] )
-                       .end()
-                       .last().addClass( flCorners[ 1 ] ).addClass( "ui-controlgroup-last" );
-       }
-
-       return this.each(function() {
-               var $el = $( this ),
-                       o = $.extend({
-                                               direction: $el.jqmData( "type" ) || "vertical",
-                                               shadow: false,
-                                               excludeInvisible: true,
-                                               mini: $el.jqmData( "mini" )
-                                       }, options ),
-                       groupheading = $el.children( "legend" ),
-                       flCorners = o.direction == "horizontal" ? [ "ui-corner-left", "ui-corner-right" ] : [ "ui-corner-top", "ui-corner-bottom" ],
-                       type = $el.find( "input" ).first().attr( "type" );
-
-               // Replace legend with more stylable replacement div
-               if ( groupheading.length ) {
-                       $el.wrapInner( "<div class='ui-controlgroup-controls'></div>" );
-                       $( "<div role='heading' class='ui-controlgroup-label'>" + groupheading.html() + "</div>" ).insertBefore( $el.children(0) );
-                       groupheading.remove();
-               }
-
-               $el.addClass( "ui-corner-all ui-controlgroup ui-controlgroup-" + o.direction );
-
-               flipClasses( $el.find( ".ui-btn" + ( o.excludeInvisible ? ":visible" : "" ) ).not('.ui-slider-handle'), flCorners );
-               flipClasses( $el.find( ".ui-btn-inner" ), flCorners );
-
-               if ( o.shadow ) {
-                       $el.addClass( "ui-shadow" );
-               }
-
-               if ( o.mini ) {
-                       $el.addClass( "ui-mini" );
-               }
-
-       });
-};
-
-// The pagecreate handler for controlgroup is in jquery.mobile.init because of the soft-dependency on the wrapped widgets
-
-})(jQuery);
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.core.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.core.js
deleted file mode 100644 (file)
index 7bde672..0000000
+++ /dev/null
@@ -1,334 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Base file for jQuery Mobile
-//>>label: Core
-//>>group: Core
-//>>required: true
-//>>css: ../css/structure/jquery.mobile.core.css
-
-define( [ "jquery", "../external/requirejs/text!../version.txt", "./jquery.mobile.widget" ], function( $, __version__ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, window, undefined ) {
-
-       var nsNormalizeDict = {};
-
-       // jQuery.mobile configurable options
-       $.mobile = $.extend( {}, {
-
-               // Version of the jQuery Mobile Framework
-               version: __version__,
-
-               // Namespace used framework-wide for data-attrs. Default is no namespace
-               ns: "",
-
-               // Define the url parameter used for referencing widget-generated sub-pages.
-               // Translates to to example.html&ui-page=subpageIdentifier
-               // hash segment before &ui-page= is used to make Ajax request
-               subPageUrlKey: "ui-page",
-
-               // Class assigned to page currently in view, and during transitions
-               activePageClass: "ui-page-active",
-
-               // Class used for "active" button state, from CSS framework
-               activeBtnClass: "ui-btn-active",
-
-               // Class used for "focus" form element state, from CSS framework
-               focusClass: "ui-focus",
-
-               // Automatically handle clicks and form submissions through Ajax, when same-domain
-               ajaxEnabled: true,
-
-               // Automatically load and show pages based on location.hash
-               hashListeningEnabled: true,
-
-               // disable to prevent jquery from bothering with links
-               linkBindingEnabled: true,
-
-               // Set default page transition - 'none' for no transitions
-               defaultPageTransition: "fade",
-
-               // Set maximum window width for transitions to apply - 'false' for no limit
-               maxTransitionWidth: false,
-
-               // Minimum scroll distance that will be remembered when returning to a page
-               minScrollBack: 250,
-
-               // DEPRECATED: the following property is no longer in use, but defined until 2.0 to prevent conflicts
-               touchOverflowEnabled: false,
-
-               // Set default dialog transition - 'none' for no transitions
-               defaultDialogTransition: "pop",
-
-               // Show loading message during Ajax requests
-               // if false, message will not appear, but loading classes will still be toggled on html el
-               loadingMessage: "loading",
-
-               // Error response message - appears when an Ajax page request fails
-               pageLoadErrorMessage: "Error Loading Page",
-
-               // Should the text be visble in the loading message?
-               loadingMessageTextVisible: false,
-
-               // When the text is visible, what theme does the loading box use?
-               loadingMessageTheme: "a",
-
-               // For error messages, which theme does the box uses?
-               pageLoadErrorMessageTheme: "e",
-
-               //automatically initialize the DOM when it's ready
-               autoInitializePage: true,
-
-               pushStateEnabled: true,
-
-               // allows users to opt in to ignoring content by marking a parent element as
-               // data-ignored
-               ignoreContentEnabled: false,
-
-               // turn of binding to the native orientationchange due to android orientation behavior
-               orientationChangeEnabled: true,
-
-               buttonMarkup: {
-                       hoverDelay: 200
-               },
-
-               // TODO might be useful upstream in jquery itself ?
-               keyCode: {
-                       ALT: 18,
-                       BACKSPACE: 8,
-                       CAPS_LOCK: 20,
-                       COMMA: 188,
-                       COMMAND: 91,
-                       COMMAND_LEFT: 91, // COMMAND
-                       COMMAND_RIGHT: 93,
-                       CONTROL: 17,
-                       DELETE: 46,
-                       DOWN: 40,
-                       END: 35,
-                       ENTER: 13,
-                       ESCAPE: 27,
-                       HOME: 36,
-                       INSERT: 45,
-                       LEFT: 37,
-                       MENU: 93, // COMMAND_RIGHT
-                       NUMPAD_ADD: 107,
-                       NUMPAD_DECIMAL: 110,
-                       NUMPAD_DIVIDE: 111,
-                       NUMPAD_ENTER: 108,
-                       NUMPAD_MULTIPLY: 106,
-                       NUMPAD_SUBTRACT: 109,
-                       PAGE_DOWN: 34,
-                       PAGE_UP: 33,
-                       PERIOD: 190,
-                       RIGHT: 39,
-                       SHIFT: 16,
-                       SPACE: 32,
-                       TAB: 9,
-                       UP: 38,
-                       WINDOWS: 91 // COMMAND
-               },
-
-               // Scroll page vertically: scroll to 0 to hide iOS address bar, or pass a Y value
-               silentScroll: function( ypos ) {
-                       if ( $.type( ypos ) !== "number" ) {
-                               ypos = $.mobile.defaultHomeScroll;
-                       }
-
-                       // prevent scrollstart and scrollstop events
-                       $.event.special.scrollstart.enabled = false;
-
-                       setTimeout(function() {
-                               window.scrollTo( 0, ypos );
-                               $( document ).trigger( "silentscroll", { x: 0, y: ypos });
-                       }, 20 );
-
-                       setTimeout(function() {
-                               $.event.special.scrollstart.enabled = true;
-                       }, 150 );
-               },
-
-               // Expose our cache for testing purposes.
-               nsNormalizeDict: nsNormalizeDict,
-
-               // Take a data attribute property, prepend the namespace
-               // and then camel case the attribute string. Add the result
-               // to our nsNormalizeDict so we don't have to do this again.
-               nsNormalize: function( prop ) {
-                       if ( !prop ) {
-                               return;
-                       }
-
-                       return nsNormalizeDict[ prop ] || ( nsNormalizeDict[ prop ] = $.camelCase( $.mobile.ns + prop ) );
-               },
-
-               getInheritedTheme: function( el, defaultTheme ) {
-
-                       // Find the closest parent with a theme class on it. Note that
-                       // we are not using $.fn.closest() on purpose here because this
-                       // method gets called quite a bit and we need it to be as fast
-                       // as possible.
-
-                       var e = el[ 0 ],
-                               ltr = "",
-                               re = /ui-(bar|body|overlay)-([a-z])\b/,
-                               c, m;
-
-                       while ( e ) {
-                               var c = e.className || "";
-                               if ( ( m = re.exec( c ) ) && ( ltr = m[ 2 ] ) ) {
-                                       // We found a parent with a theme class
-                                       // on it so bail from this loop.
-                                       break;
-                               }
-                               e = e.parentNode;
-                       }
-
-                       // Return the theme letter we found, if none, return the
-                       // specified default.
-
-                       return ltr || defaultTheme || "a";
-               },
-
-               // TODO the following $ and $.fn extensions can/probably should be moved into jquery.mobile.core.helpers
-               //
-               // Find the closest javascript page element to gather settings data jsperf test
-               // http://jsperf.com/single-complex-selector-vs-many-complex-selectors/edit
-               // possibly naive, but it shows that the parsing overhead for *just* the page selector vs
-               // the page and dialog selector is negligable. This could probably be speed up by
-               // doing a similar parent node traversal to the one found in the inherited theme code above
-               closestPageData: function( $target ) {
-                       return $target
-                               .closest(':jqmData(role="page"), :jqmData(role="dialog")')
-                               .data("page");
-               },
-
-               enhanceable: function( $set ) {
-                       return this.haveParents( $set, "enhance" );
-               },
-
-               hijackable: function( $set ) {
-                       return this.haveParents( $set, "ajax" );
-               },
-
-               haveParents: function( $set, attr ) {
-                       if( !$.mobile.ignoreContentEnabled ){
-                               return $set;
-                       }
-
-                       var count = $set.length,
-                               $newSet = $(),
-                               e, $element, excluded;
-
-                       for ( var i = 0; i < count; i++ ) {
-                               $element = $set.eq( i );
-                               excluded = false;
-                               e = $set[ i ];
-
-                               while ( e ) {
-                                       var c = e.getAttribute ? e.getAttribute( "data-" + $.mobile.ns + attr ) : "";
-
-                                       if ( c === "false" ) {
-                                               excluded = true;
-                                               break;
-                                       }
-
-                                       e = e.parentNode;
-                               }
-
-                               if ( !excluded ) {
-                                       $newSet = $newSet.add( $element );
-                               }
-                       }
-
-                       return $newSet;
-               }
-       }, $.mobile );
-
-       // Mobile version of data and removeData and hasData methods
-       // ensures all data is set and retrieved using jQuery Mobile's data namespace
-       $.fn.jqmData = function( prop, value ) {
-               var result;
-               if ( typeof prop != "undefined" ) {
-                       if ( prop ) {
-                               prop = $.mobile.nsNormalize( prop );
-                       }
-                       result = this.data.apply( this, arguments.length < 2 ? [ prop ] : [ prop, value ] );
-               }
-               return result;
-       };
-
-       $.jqmData = function( elem, prop, value ) {
-               var result;
-               if ( typeof prop != "undefined" ) {
-                       result = $.data( elem, prop ? $.mobile.nsNormalize( prop ) : prop, value );
-               }
-               return result;
-       };
-
-       $.fn.jqmRemoveData = function( prop ) {
-               return this.removeData( $.mobile.nsNormalize( prop ) );
-       };
-
-       $.jqmRemoveData = function( elem, prop ) {
-               return $.removeData( elem, $.mobile.nsNormalize( prop ) );
-       };
-
-       $.fn.removeWithDependents = function() {
-               $.removeWithDependents( this );
-       };
-
-       $.removeWithDependents = function( elem ) {
-               var $elem = $( elem );
-
-               ( $elem.jqmData('dependents') || $() ).remove();
-               $elem.remove();
-       };
-
-       $.fn.addDependents = function( newDependents ) {
-               $.addDependents( $(this), newDependents );
-       };
-
-       $.addDependents = function( elem, newDependents ) {
-               var dependents = $(elem).jqmData( 'dependents' ) || $();
-
-               $(elem).jqmData( 'dependents', $.merge(dependents, newDependents) );
-       };
-
-       // note that this helper doesn't attempt to handle the callback
-       // or setting of an html elements text, its only purpose is
-       // to return the html encoded version of the text in all cases. (thus the name)
-       $.fn.getEncodedText = function() {
-               return $( "<div/>" ).text( $(this).text() ).html();
-       };
-
-       // fluent helper function for the mobile namespaced equivalent
-       $.fn.jqmEnhanceable = function() {
-               return $.mobile.enhanceable( this );
-       };
-
-       $.fn.jqmHijackable = function() {
-               return $.mobile.hijackable( this );
-       };
-
-       // Monkey-patching Sizzle to filter the :jqmData selector
-       var oldFind = $.find,
-               jqmDataRE = /:jqmData\(([^)]*)\)/g;
-
-       $.find = function( selector, context, ret, extra ) {
-               selector = selector.replace( jqmDataRE, "[data-" + ( $.mobile.ns || "" ) + "$1]" );
-
-               return oldFind.call( this, selector, context, ret, extra );
-       };
-
-       $.extend( $.find, oldFind );
-
-       $.find.matches = function( expr, set ) {
-               return $.find( expr, null, null, set );
-       };
-
-       $.find.matchesSelector = function( node, expr ) {
-               return $.find( expr, null, null, [ node ] ).length > 0;
-       };
-})( jQuery, this );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
-
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.define.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.define.js
deleted file mode 100644 (file)
index 7a8b74e..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Creates the define method on window, for async loading
-//>>label: Define
-//>>group: exclude
-//>>excludeEnd("jqmBuildExclude");
-
-// creates the define method on window, only used where async loading
-// is not desired in the docs and experiments
-window.define = function(){
-       Array.prototype.slice.call( arguments ).pop()( window.jQuery );
-};
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.degradeInputs.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.degradeInputs.js
deleted file mode 100644 (file)
index b479063..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Changes input type to another after custom enhancements are made (ex. range > numberic).
-//>>label: Degrade Inputs
-//>>group: Utilities
-
-
-define( [ "jquery", "./jquery.mobile.page" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, undefined ) {
-
-$.mobile.page.prototype.options.degradeInputs = {
-       color: false,
-       date: false,
-       datetime: false,
-       "datetime-local": false,
-       email: false,
-       month: false,
-       number: false,
-       range: "number",
-       search: "text",
-       tel: false,
-       time: false,
-       url: false,
-       week: false
-};
-
-
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-
-       var page = $.mobile.closestPageData($(e.target)), options;
-
-       if( !page ) {
-               return;
-       }
-
-       options = page.options;
-
-       // degrade inputs to avoid poorly implemented native functionality
-       $( e.target ).find( "input" ).not( page.keepNativeSelector() ).each(function() {
-               var $this = $( this ),
-                       type = this.getAttribute( "type" ),
-                       optType = options.degradeInputs[ type ] || "text";
-
-               if ( options.degradeInputs[ type ] ) {
-                       var html = $( "<div>" ).html( $this.clone() ).html(),
-                               // In IE browsers, the type sometimes doesn't exist in the cloned markup, so we replace the closing tag instead
-                               hasType = html.indexOf( " type=" ) > -1,
-                               findstr = hasType ? /\s+type=["']?\w+['"]?/ : /\/?>/,
-                               repstr = " type=\"" + optType + "\" data-" + $.mobile.ns + "type=\"" + type + "\"" + ( hasType ? "" : ">" );
-
-                       $this.replaceWith( html.replace( findstr, repstr ) );
-               }
-       });
-
-});
-
-})( jQuery );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.dialog.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.dialog.js
deleted file mode 100644 (file)
index 7ac0387..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Displays a page as a modal dialog with inset appearance and overlay background
-//>>label: Dialogs
-//>>group: Widgets
-//>>css: ../css/themes/default/jquery.mobile.theme.css,../css/structure/jquery.mobile.dialog.css
-
-define( [ "jquery", "./jquery.mobile.widget" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, window, undefined ) {
-
-$.widget( "mobile.dialog", $.mobile.widget, {
-       options: {
-               closeBtnText    : "Close",
-               overlayTheme    : "a",
-               initSelector    : ":jqmData(role='dialog')"
-       },
-       _create: function() {
-               var self = this,
-                       $el = this.element,
-                       headerCloseButton = $( "<a href='#' data-" + $.mobile.ns + "icon='delete' data-" + $.mobile.ns + "iconpos='notext'>"+ this.options.closeBtnText + "</a>" ),
-                       dialogWrap = $("<div/>", {
-                                       "role" : "dialog",
-                                       "class" : "ui-dialog-contain ui-corner-all ui-overlay-shadow"
-                               });
-
-               $el.addClass( "ui-dialog ui-overlay-" + this.options.overlayTheme );
-               
-               // Class the markup for dialog styling
-               // Set aria role
-               $el
-                       .wrapInner( dialogWrap )
-                       .children()
-                               .find( ":jqmData(role='header')" )
-                                       .prepend( headerCloseButton )
-                               .end()
-                               .children( ':first-child')
-                                       .addClass( "ui-corner-top" )
-                               .end()
-                               .children( ":last-child" )
-                                       .addClass( "ui-corner-bottom" );
-
-               // this must be an anonymous function so that select menu dialogs can replace
-               // the close method. This is a change from previously just defining data-rel=back
-               // on the button and letting nav handle it
-               //
-               // Use click rather than vclick in order to prevent the possibility of unintentionally
-               // reopening the dialog if the dialog opening item was directly under the close button.
-               headerCloseButton.bind( "click", function() {
-                       self.close();
-               });
-
-               /* bind events
-                       - clicks and submits should use the closing transition that the dialog opened with
-                         unless a data-transition is specified on the link/form
-                       - if the click was on the close button, or the link has a data-rel="back" it'll go back in history naturally
-               */
-               $el.bind( "vclick submit", function( event ) {
-                       var $target = $( event.target ).closest( event.type === "vclick" ? "a" : "form" ),
-                               active;
-
-                       if ( $target.length && !$target.jqmData( "transition" ) ) {
-
-                               active = $.mobile.urlHistory.getActive() || {};
-
-                               $target.attr( "data-" + $.mobile.ns + "transition", ( active.transition || $.mobile.defaultDialogTransition ) )
-                                       .attr( "data-" + $.mobile.ns + "direction", "reverse" );
-                       }
-               })
-               .bind( "pagehide", function( e, ui ) {
-                       $( this ).find( "." + $.mobile.activeBtnClass ).removeClass( $.mobile.activeBtnClass );
-               })
-               // Override the theme set by the page plugin on pageshow
-               .bind( "pagebeforeshow", function(){
-                       if( self.options.overlayTheme ){
-                               self.element
-                                       .page( "removeContainerBackground" )
-                                       .page( "setContainerBackground", self.options.overlayTheme );
-                       }
-               });
-       },
-
-       // Close method goes back in history
-       close: function() {
-               window.history.back();
-       }
-});
-
-//auto self-init widgets
-$( document ).delegate( $.mobile.dialog.prototype.options.initSelector, "pagecreate", function(){
-       $.mobile.dialog.prototype.enhance( this );
-});
-
-})( jQuery, this );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.docs.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.docs.js
deleted file mode 100644 (file)
index e458b7e..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: jQuery Mobile documentation JS
-//>>label: Docs
-//>>group: exclude
-define( [ "../external/requirejs/depend!../docs/_assets/js/jqm-docs[jquery]", "../external/requirejs/order!./jquery.mobile" ] );
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.event.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.event.js
deleted file mode 100644 (file)
index f9d1744..0000000
+++ /dev/null
@@ -1,375 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Custom events and shortcuts.
-//>>label: Events
-//>>group: Core
-//>>required: true
-
-define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.support", "./jquery.mobile.vmouse" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, window, undefined ) {
-
-// add new event shortcuts
-$.each( ( "touchstart touchmove touchend orientationchange throttledresize " +
-                                       "tap taphold swipe swipeleft swiperight scrollstart scrollstop" ).split( " " ), function( i, name ) {
-
-       $.fn[ name ] = function( fn ) {
-               return fn ? this.bind( name, fn ) : this.trigger( name );
-       };
-
-       $.attrFn[ name ] = true;
-});
-
-var supportTouch = $.support.touch,
-       scrollEvent = "touchmove scroll",
-       touchStartEvent = supportTouch ? "touchstart" : "mousedown",
-       touchStopEvent = supportTouch ? "touchend" : "mouseup",
-       touchMoveEvent = supportTouch ? "touchmove" : "mousemove";
-
-function triggerCustomEvent( obj, eventType, event ) {
-       var originalType = event.type;
-       event.type = eventType;
-       $.event.handle.call( obj, event );
-       event.type = originalType;
-}
-
-// also handles scrollstop
-$.event.special.scrollstart = {
-
-       enabled: true,
-
-       setup: function() {
-
-               var thisObject = this,
-                       $this = $( thisObject ),
-                       scrolling,
-                       timer;
-
-               function trigger( event, state ) {
-                       scrolling = state;
-                       triggerCustomEvent( thisObject, scrolling ? "scrollstart" : "scrollstop", event );
-               }
-
-               // iPhone triggers scroll after a small delay; use touchmove instead
-               $this.bind( scrollEvent, function( event ) {
-
-                       if ( !$.event.special.scrollstart.enabled ) {
-                               return;
-                       }
-
-                       if ( !scrolling ) {
-                               trigger( event, true );
-                       }
-
-                       clearTimeout( timer );
-                       timer = setTimeout(function() {
-                               trigger( event, false );
-                       }, 50 );
-               });
-       }
-};
-
-// also handles taphold
-$.event.special.tap = {
-       setup: function() {
-               var thisObject = this,
-                       $this = $( thisObject );
-
-               $this.bind( "vmousedown", function( event ) {
-
-                       if ( event.which && event.which !== 1 ) {
-                               return false;
-                       }
-
-                       var origTarget = event.target,
-                               origEvent = event.originalEvent,
-                               timer;
-
-                       function clearTapTimer() {
-                               clearTimeout( timer );
-                       }
-
-                       function clearTapHandlers() {
-                               clearTapTimer();
-
-                               $this.unbind( "vclick", clickHandler )
-                                       .unbind( "vmouseup", clearTapTimer );
-                               $( document ).unbind( "vmousecancel", clearTapHandlers );
-                       }
-
-                       function clickHandler(event) {
-                               clearTapHandlers();
-
-                               // ONLY trigger a 'tap' event if the start target is
-                               // the same as the stop target.
-                               if ( origTarget == event.target ) {
-                                       triggerCustomEvent( thisObject, "tap", event );
-                               }
-                       }
-
-                       $this.bind( "vmouseup", clearTapTimer )
-                               .bind( "vclick", clickHandler );
-                       $( document ).bind( "vmousecancel", clearTapHandlers );
-
-                       timer = setTimeout(function() {
-                                       triggerCustomEvent( thisObject, "taphold", $.Event( "taphold", { target: origTarget } ) );
-                       }, 750 );
-               });
-       }
-};
-
-// also handles swipeleft, swiperight
-$.event.special.swipe = {
-       scrollSupressionThreshold: 10, // More than this horizontal displacement, and we will suppress scrolling.
-
-       durationThreshold: 1000, // More time than this, and it isn't a swipe.
-
-       horizontalDistanceThreshold: 30,  // Swipe horizontal displacement must be more than this.
-
-       verticalDistanceThreshold: 75,  // Swipe vertical displacement must be less than this.
-
-       setup: function() {
-               var thisObject = this,
-                       $this = $( thisObject );
-
-               $this.bind( touchStartEvent, function( event ) {
-                       var data = event.originalEvent.touches ?
-                                                               event.originalEvent.touches[ 0 ] : event,
-                               start = {
-                                       time: ( new Date() ).getTime(),
-                                       coords: [ data.pageX, data.pageY ],
-                                       origin: $( event.target )
-                               },
-                               stop;
-
-                       function moveHandler( event ) {
-
-                               if ( !start ) {
-                                       return;
-                               }
-
-                               var data = event.originalEvent.touches ?
-                                               event.originalEvent.touches[ 0 ] : event;
-
-                               stop = {
-                                       time: ( new Date() ).getTime(),
-                                       coords: [ data.pageX, data.pageY ]
-                               };
-
-                               // prevent scrolling
-                               if ( Math.abs( start.coords[ 0 ] - stop.coords[ 0 ] ) > $.event.special.swipe.scrollSupressionThreshold ) {
-                                       event.preventDefault();
-                               }
-                       }
-
-                       $this.bind( touchMoveEvent, moveHandler )
-                               .one( touchStopEvent, function( event ) {
-                                       $this.unbind( touchMoveEvent, moveHandler );
-
-                                       if ( start && stop ) {
-                                               if ( stop.time - start.time < $.event.special.swipe.durationThreshold &&
-                                                               Math.abs( start.coords[ 0 ] - stop.coords[ 0 ] ) > $.event.special.swipe.horizontalDistanceThreshold &&
-                                                               Math.abs( start.coords[ 1 ] - stop.coords[ 1 ] ) < $.event.special.swipe.verticalDistanceThreshold ) {
-
-                                                       start.origin.trigger( "swipe" )
-                                                               .trigger( start.coords[0] > stop.coords[ 0 ] ? "swipeleft" : "swiperight" );
-                                               }
-                                       }
-                                       start = stop = undefined;
-                               });
-               });
-       }
-};
-
-(function( $, window ) {
-       // "Cowboy" Ben Alman
-
-       var win = $( window ),
-               special_event,
-               get_orientation,
-               last_orientation,
-               initial_orientation_is_landscape,
-               initial_orientation_is_default,
-               portrait_map = { "0": true, "180": true };
-
-       // It seems that some device/browser vendors use window.orientation values 0 and 180 to
-       // denote the "default" orientation. For iOS devices, and most other smart-phones tested,
-       // the default orientation is always "portrait", but in some Android and RIM based tablets,
-       // the default orientation is "landscape". The following code attempts to use the window
-       // dimensions to figure out what the current orientation is, and then makes adjustments
-       // to the to the portrait_map if necessary, so that we can properly decode the
-       // window.orientation value whenever get_orientation() is called.
-       //
-       // Note that we used to use a media query to figure out what the orientation the browser
-       // thinks it is in:
-       //
-       //     initial_orientation_is_landscape = $.mobile.media("all and (orientation: landscape)");
-       //
-       // but there was an iPhone/iPod Touch bug beginning with iOS 4.2, up through iOS 5.1,
-       // where the browser *ALWAYS* applied the landscape media query. This bug does not
-       // happen on iPad.
-
-       if ( $.support.orientation ) {
-
-               // Check the window width and height to figure out what the current orientation
-               // of the device is at this moment. Note that we've initialized the portrait map
-               // values to 0 and 180, *AND* we purposely check for landscape so that if we guess
-               // wrong, , we default to the assumption that portrait is the default orientation.
-               // We use a threshold check below because on some platforms like iOS, the iPhone
-               // form-factor can report a larger width than height if the user turns on the
-               // developer console. The actual threshold value is somewhat arbitrary, we just
-               // need to make sure it is large enough to exclude the developer console case.
-
-               var ww = window.innerWidth || $( window ).width(),
-                       wh = window.innerHeight || $( window ).height(),
-                       landscape_threshold = 50;
-
-               initial_orientation_is_landscape = ww > wh && ( ww - wh ) > landscape_threshold;
-
-
-               // Now check to see if the current window.orientation is 0 or 180.
-               initial_orientation_is_default = portrait_map[ window.orientation ];
-
-               // If the initial orientation is landscape, but window.orientation reports 0 or 180, *OR*
-               // if the initial orientation is portrait, but window.orientation reports 90 or -90, we
-               // need to flip our portrait_map values because landscape is the default orientation for
-               // this device/browser.
-               if ( ( initial_orientation_is_landscape && initial_orientation_is_default ) || ( !initial_orientation_is_landscape && !initial_orientation_is_default ) ) {
-                       portrait_map = { "-90": true, "90": true };
-               }
-       }
-
-       $.event.special.orientationchange = special_event = {
-               setup: function() {
-                       // If the event is supported natively, return false so that jQuery
-                       // will bind to the event using DOM methods.
-                       if ( $.support.orientation && $.mobile.orientationChangeEnabled ) {
-                               return false;
-                       }
-
-                       // Get the current orientation to avoid initial double-triggering.
-                       last_orientation = get_orientation();
-
-                       // Because the orientationchange event doesn't exist, simulate the
-                       // event by testing window dimensions on resize.
-                       win.bind( "throttledresize", handler );
-               },
-               teardown: function(){
-                       // If the event is not supported natively, return false so that
-                       // jQuery will unbind the event using DOM methods.
-                       if ( $.support.orientation && $.mobile.orientationChangeEnabled ) {
-                               return false;
-                       }
-
-                       // Because the orientationchange event doesn't exist, unbind the
-                       // resize event handler.
-                       win.unbind( "throttledresize", handler );
-               },
-               add: function( handleObj ) {
-                       // Save a reference to the bound event handler.
-                       var old_handler = handleObj.handler;
-
-
-                       handleObj.handler = function( event ) {
-                               // Modify event object, adding the .orientation property.
-                               event.orientation = get_orientation();
-
-                               // Call the originally-bound event handler and return its result.
-                               return old_handler.apply( this, arguments );
-                       };
-               }
-       };
-
-       // If the event is not supported natively, this handler will be bound to
-       // the window resize event to simulate the orientationchange event.
-       function handler() {
-               // Get the current orientation.
-               var orientation = get_orientation();
-
-               if ( orientation !== last_orientation ) {
-                       // The orientation has changed, so trigger the orientationchange event.
-                       last_orientation = orientation;
-                       win.trigger( "orientationchange" );
-               }
-       }
-
-       // Get the current page orientation. This method is exposed publicly, should it
-       // be needed, as jQuery.event.special.orientationchange.orientation()
-       $.event.special.orientationchange.orientation = get_orientation = function() {
-               var isPortrait = true, elem = document.documentElement;
-
-               // prefer window orientation to the calculation based on screensize as
-               // the actual screen resize takes place before or after the orientation change event
-               // has been fired depending on implementation (eg android 2.3 is before, iphone after).
-               // More testing is required to determine if a more reliable method of determining the new screensize
-               // is possible when orientationchange is fired. (eg, use media queries + element + opacity)
-               if ( $.support.orientation ) {
-                       // if the window orientation registers as 0 or 180 degrees report
-                       // portrait, otherwise landscape
-                       isPortrait = portrait_map[ window.orientation ];
-               } else {
-                       isPortrait = elem && elem.clientWidth / elem.clientHeight < 1.1;
-               }
-
-               return isPortrait ? "portrait" : "landscape";
-       };
-
-})( jQuery, window );
-
-
-// throttled resize event
-(function() {
-
-       $.event.special.throttledresize = {
-               setup: function() {
-                       $( this ).bind( "resize", handler );
-               },
-               teardown: function(){
-                       $( this ).unbind( "resize", handler );
-               }
-       };
-
-       var throttle = 250,
-               handler = function() {
-                       curr = ( new Date() ).getTime();
-                       diff = curr - lastCall;
-
-                       if ( diff >= throttle ) {
-
-                               lastCall = curr;
-                               $( this ).trigger( "throttledresize" );
-
-                       } else {
-
-                               if ( heldCall ) {
-                                       clearTimeout( heldCall );
-                               }
-
-                               // Promise a held call will still execute
-                               heldCall = setTimeout( handler, throttle - diff );
-                       }
-               },
-               lastCall = 0,
-               heldCall,
-               curr,
-               diff;
-})();
-
-
-$.each({
-       scrollstop: "scrollstart",
-       taphold: "tap",
-       swipeleft: "swipe",
-       swiperight: "swipe"
-}, function( event, sourceEvent ) {
-
-       $.event.special[ event ] = {
-               setup: function() {
-                       $( this ).bind( sourceEvent, $.noop );
-               }
-       };
-});
-
-})( jQuery, this );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.fieldContain.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.fieldContain.js
deleted file mode 100644 (file)
index 704b771..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Styling to responsively position forms and labels based on screen width and add visual separation
-//>>label: Fieldcontainers
-//>>group: Forms
-//>>css: ../css/themes/default/jquery.mobile.theme.css,../css/structure/jquery.mobile.forms.fieldcontain.css
-
-define( [ "jquery" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, undefined ) {
-
-$.fn.fieldcontain = function( options ) {
-       return this.addClass( "ui-field-contain ui-body ui-br" );
-};
-
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-       $( ":jqmData(role='fieldcontain')", e.target ).jqmEnhanceable().fieldcontain();
-});
-
-})( jQuery );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.fixedToolbar.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.fixedToolbar.js
deleted file mode 100644 (file)
index 0f9c23d..0000000
+++ /dev/null
@@ -1,285 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Behavior for "fixed" headers and footers
-//>>label: Toolbars: Fixed
-//>>group: Widgets
-//>>css: ../css/themes/default/jquery.mobile.theme.css,../css/structure/jquery.mobile.fixedToolbar.css
-
-define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.core", "./jquery.mobile.navigation", "./jquery.mobile.page", "./jquery.mobile.page.sections", "./jquery.mobile.zoom" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, undefined ) {
-
-
-       $.widget( "mobile.fixedtoolbar", $.mobile.widget, {
-               options: {
-                       visibleOnPageShow: true,
-                       disablePageZoom: true,
-                       transition: "slide", //can be none, fade, slide (slide maps to slideup or slidedown)
-                       fullscreen: false,
-                       tapToggle: true,
-                       tapToggleBlacklist: "a, input, select, textarea, .ui-header-fixed, .ui-footer-fixed",
-                       hideDuringFocus: "input, textarea, select",
-                       updatePagePadding: true,
-                       trackPersistentToolbars: true,
-
-                       // Browser detection! Weeee, here we go...
-                       // Unfortunately, position:fixed is costly, not to mention probably impossible, to feature-detect accurately.
-                       // Some tests exist, but they currently return false results in critical devices and browsers, which could lead to a broken experience.
-                       // Testing fixed positioning is also pretty obtrusive to page load, requiring injected elements and scrolling the window
-                       // The following function serves to rule out some popular browsers with known fixed-positioning issues
-                       // This is a plugin option like any other, so feel free to improve or overwrite it
-                       supportBlacklist: function(){
-                               var w = window,
-                                       ua = navigator.userAgent,
-                                       platform = navigator.platform,
-                                       // Rendering engine is Webkit, and capture major version
-                                       wkmatch = ua.match( /AppleWebKit\/([0-9]+)/ ),
-                                       wkversion = !!wkmatch && wkmatch[ 1 ],
-                                       ffmatch = ua.match( /Fennec\/([0-9]+)/ ),
-                                       ffversion = !!ffmatch && ffmatch[ 1 ],
-                                       operammobilematch = ua.match( /Opera Mobi\/([0-9]+)/ ),
-                                       omversion = !!operammobilematch && operammobilematch[ 1 ];
-
-                               if(
-                                       // iOS 4.3 and older : Platform is iPhone/Pad/Touch and Webkit version is less than 534 (ios5)
-                                       ( ( platform.indexOf( "iPhone" ) > -1 || platform.indexOf( "iPad" ) > -1  || platform.indexOf( "iPod" ) > -1 ) && wkversion && wkversion < 534 )
-                                       ||
-                                       // Opera Mini
-                                       ( w.operamini && ({}).toString.call( w.operamini ) === "[object OperaMini]" )
-                                       ||
-                                       ( operammobilematch && omversion < 7458 )
-                                       ||
-                                       //Android lte 2.1: Platform is Android and Webkit version is less than 533 (Android 2.2)
-                                       ( ua.indexOf( "Android" ) > -1 && wkversion && wkversion < 533 )
-                                       ||
-                                       // Firefox Mobile before 6.0 -
-                                       ( ffversion && ffversion < 6 )
-                                       ||
-                                       // WebOS less than 3
-                                       ( "palmGetResource" in window && wkversion && wkversion < 534 )
-                                       ||
-                                       // MeeGo
-                                       ( ua.indexOf( "MeeGo" ) > -1 && ua.indexOf( "NokiaBrowser/8.5.0" ) > -1 )
-                               ){
-                                       return true;
-                               }
-
-                               return false;
-                       },
-                       initSelector: ":jqmData(position='fixed')"
-               },
-
-               _create: function() {
-
-                       var self = this,
-                               o = self.options,
-                               $el = self.element,
-                               tbtype = $el.is( ":jqmData(role='header')" ) ? "header" : "footer",
-                               $page = $el.closest(".ui-page");
-
-                       // Feature detecting support for
-                       if( o.supportBlacklist() ){
-                               self.destroy();
-                               return;
-                       }
-
-                       $el.addClass( "ui-"+ tbtype +"-fixed" );
-
-                       // "fullscreen" overlay positioning
-                       if( o.fullscreen ){
-                               $el.addClass( "ui-"+ tbtype +"-fullscreen" );
-                               $page.addClass( "ui-page-" + tbtype + "-fullscreen" );
-                       }
-                       // If not fullscreen, add class to page to set top or bottom padding
-                       else{
-                               $page.addClass( "ui-page-" + tbtype + "-fixed" );
-                       }
-
-                       self._addTransitionClass();
-                       self._bindPageEvents();
-                       self._bindToggleHandlers();
-               },
-
-               _addTransitionClass: function(){
-                       var tclass = this.options.transition;
-
-                       if( tclass && tclass !== "none" ){
-                               // use appropriate slide for header or footer
-                               if( tclass === "slide" ){
-                                       tclass = this.element.is( ".ui-header" ) ? "slidedown" : "slideup";
-                               }
-
-                               this.element.addClass( tclass );
-                       }
-               },
-
-               _bindPageEvents: function(){
-                       var self = this,
-                               o = self.options,
-                               $el = self.element;
-
-                       //page event bindings
-                       // Fixed toolbars require page zoom to be disabled, otherwise usability issues crop up
-                       // This method is meant to disable zoom while a fixed-positioned toolbar page is visible
-                       $el.closest( ".ui-page" )
-                               .bind( "pagebeforeshow", function(){
-                                       if( o.disablePageZoom ){
-                                               $.mobile.zoom.disable( true );
-                                       }
-                                       if( !o.visibleOnPageShow ){
-                                               self.hide( true );
-                                       }
-                               } )
-                               .bind( "webkitAnimationStart animationstart updatelayout", function(){
-                                       if( o.updatePagePadding ){
-                                               self.updatePagePadding();
-                                       }
-                               })
-                               .bind( "pageshow", function(){
-                                       self.updatePagePadding();
-                                       if( o.updatePagePadding ){
-                                               $( window ).bind( "throttledresize." + self.widgetName, function(){
-                                                       self.updatePagePadding();
-                                               });
-                                       }
-                               })
-                               .bind( "pagebeforehide", function( e, ui ){
-                                       if( o.disablePageZoom ){
-                                               $.mobile.zoom.enable( true );
-                                       }
-                                       if( o.updatePagePadding ){
-                                               $( window ).unbind( "throttledresize." + self.widgetName );
-                                       }
-
-                                       if( o.trackPersistentToolbars ){
-                                               var thisFooter = $( ".ui-footer-fixed:jqmData(id)", this ),
-                                                       thisHeader = $( ".ui-header-fixed:jqmData(id)", this ),
-                                                       nextFooter = thisFooter.length && ui.nextPage && $( ".ui-footer-fixed:jqmData(id='" + thisFooter.jqmData( "id" ) + "')", ui.nextPage ),
-                                                       nextHeader = thisHeader.length && ui.nextPage && $( ".ui-header-fixed:jqmData(id='" + thisHeader.jqmData( "id" ) + "')", ui.nextPage );
-
-                                               nextFooter = nextFooter || $();
-
-                                                       if( nextFooter.length || nextHeader.length ){
-
-                                                               nextFooter.add( nextHeader ).appendTo( $.mobile.pageContainer );
-
-                                                               ui.nextPage.one( "pageshow", function(){
-                                                                       nextFooter.add( nextHeader ).appendTo( this );
-                                                               });
-                                                       }
-                                       }
-                               });
-               },
-
-               _visible: true,
-
-               // This will set the content element's top or bottom padding equal to the toolbar's height
-               updatePagePadding: function() {
-                       var $el = this.element,
-                               header = $el.is( ".ui-header" );
-
-                       // This behavior only applies to "fixed", not "fullscreen"
-                       if( this.options.fullscreen ){ return; }
-
-                       $el.closest( ".ui-page" ).css( "padding-" + ( header ? "top" : "bottom" ), $el.outerHeight() );
-               },
-               
-               _useTransition: function( notransition ){
-                       var $win = $( window ),
-                               $el = this.element,
-                               scroll = $win.scrollTop(),
-                               elHeight = $el.height(),
-                               pHeight = $el.closest( ".ui-page" ).height(),
-                               viewportHeight = $.mobile.getScreenHeight(),
-                               tbtype = $el.is( ":jqmData(role='header')" ) ? "header" : "footer";
-                               
-                       return !notransition &&
-                               ( this.options.transition && this.options.transition !== "none" &&
-                               (
-                                       ( tbtype === "header" && !this.options.fullscreen && scroll > elHeight ) ||
-                                       ( tbtype === "footer" && !this.options.fullscreen && scroll + viewportHeight < pHeight - elHeight )
-                               ) || this.options.fullscreen
-                               );
-               },
-
-               show: function( notransition ){
-                       var hideClass = "ui-fixed-hidden",
-                               $el = this.element;
-
-                               if( this._useTransition( notransition ) ){
-                               $el
-                                       .removeClass( "out " + hideClass )
-                                       .addClass( "in" );
-                       }
-                       else {
-                               $el.removeClass( hideClass );
-                       }
-                       this._visible = true;
-               },
-
-               hide: function( notransition ){
-                       var hideClass = "ui-fixed-hidden",
-                               $el = this.element,
-                               // if it's a slide transition, our new transitions need the reverse class as well to slide outward
-                               outclass = "out" + ( this.options.transition === "slide" ? " reverse" : "" );
-
-                       if( this._useTransition( notransition ) ){
-                               $el
-                                       .addClass( outclass )
-                                       .removeClass( "in" )
-                                       .animationComplete( function(){
-                                               $el.addClass( hideClass ).removeClass( outclass );
-                                       });
-                       }
-                       else {
-                               $el.addClass( hideClass ).removeClass( outclass );
-                       }
-                       this._visible = false;
-               },
-
-               toggle: function(){
-                       this[ this._visible ? "hide" : "show" ]();
-               },
-
-               _bindToggleHandlers: function(){
-                       var self = this,
-                               o = self.options,
-                               $el = self.element;
-
-                       // tap toggle
-                       $el.closest( ".ui-page" )
-                               .bind( "vclick", function( e ){
-                                       if( o.tapToggle && !$( e.target ).closest( o.tapToggleBlacklist ).length ){
-                                               self.toggle();
-                                       }
-                               })
-                               .bind( "focusin focusout", function( e ){
-                                       if( screen.width < 500 && $( e.target ).is( o.hideDuringFocus ) && !$( e.target ).closest( ".ui-header-fixed, .ui-footer-fixed" ).length ){
-                                               self[ ( e.type === "focusin" && self._visible ) ? "hide" : "show" ]();
-                                       }
-                               });
-               },
-
-               destroy: function(){
-                       this.element.removeClass( "ui-header-fixed ui-footer-fixed ui-header-fullscreen ui-footer-fullscreen in out fade slidedown slideup ui-fixed-hidden" );
-                       this.element.closest( ".ui-page" ).removeClass( "ui-page-header-fixed ui-page-footer-fixed ui-page-header-fullscreen ui-page-footer-fullscreen" );
-               }
-
-       });
-
-       //auto self-init widgets
-       $( document )
-               .bind( "pagecreate create", function( e ){
-                       
-                       // DEPRECATED in 1.1: support for data-fullscreen=true|false on the page element.
-                       // This line ensures it still works, but we recommend moving the attribute to the toolbars themselves.
-                       if( $( e.target ).jqmData( "fullscreen" ) ){
-                               $( $.mobile.fixedtoolbar.prototype.options.initSelector, e.target ).not( ":jqmData(fullscreen)" ).jqmData( "fullscreen", true );
-                       }
-                       
-                       $.mobile.fixedtoolbar.prototype.enhanceWithin( e.target );
-               });
-
-})( jQuery );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.button.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.button.js
deleted file mode 100644 (file)
index d5a690a..0000000
+++ /dev/null
@@ -1,147 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Custom-styled native input/buttons
-//>>label: Buttons: Input or button-based 
-//>>group: Forms
-//>>css: ../css/themes/default/jquery.mobile.theme.css,../css/structure/jquery.mobile.button.css
-
-define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.buttonMarkup"  ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, undefined ) {
-
-$.widget( "mobile.button", $.mobile.widget, {
-       options: {
-               theme: null,
-               icon: null,
-               iconpos: null,
-               inline: false,
-               corners: true,
-               shadow: true,
-               iconshadow: true,
-               initSelector: "button, [type='button'], [type='submit'], [type='reset'], [type='image']",
-               mini: false
-       },
-       _create: function() {
-               var $el = this.element,
-                       $button,
-                       o = this.options,
-                       type,
-                       name,
-                       classes = "",
-                       $buttonPlaceholder;
-
-               // if this is a link, check if it's been enhanced and, if not, use the right function
-               if( $el[ 0 ].tagName === "A" ) {
-                       !$el.hasClass( "ui-btn" ) && $el.buttonMarkup();
-                       return;
-               }
-
-               // get the inherited theme
-               // TODO centralize for all widgets
-               if ( !this.options.theme ) {
-                       this.options.theme = $.mobile.getInheritedTheme( this.element, "c" );
-               }
-
-               // TODO: Post 1.1--once we have time to test thoroughly--any classes manually applied to the original element should be carried over to the enhanced element, with an `-enhanced` suffix. See https://github.com/jquery/jquery-mobile/issues/3577
-               /* if( $el[0].className.length ) {
-                       classes = $el[0].className;
-               } */
-               if( !!~$el[0].className.indexOf( "ui-btn-left" ) ) {
-                       classes = "ui-btn-left";
-               }
-
-               if(  !!~$el[0].className.indexOf( "ui-btn-right" ) ) {
-                       classes = "ui-btn-right";
-               }
-
-               // Add ARIA role
-               this.button = $( "<div></div>" )
-                       .text( $el.text() || $el.val() )
-                       .insertBefore( $el )
-                       .buttonMarkup({
-                               theme: o.theme,
-                               icon: o.icon,
-                               iconpos: o.iconpos,
-                               inline: o.inline,
-                               corners: o.corners,
-                               shadow: o.shadow,
-                               iconshadow: o.iconshadow,
-                               mini: o.mini
-                       })
-                       .addClass( classes )
-                       .append( $el.addClass( "ui-btn-hidden" ) );
-
-        $button = this.button;
-               type = $el.attr( "type" );
-               name = $el.attr( "name" );
-
-               // Add hidden input during submit if input type="submit" has a name.
-               if ( type !== "button" && type !== "reset" && name ) {
-                               $el.bind( "vclick", function() {
-                                       // Add hidden input if it doesn’t already exist.
-                                       if( $buttonPlaceholder === undefined ) {
-                                               $buttonPlaceholder = $( "<input>", {
-                                                       type: "hidden",
-                                                       name: $el.attr( "name" ),
-                                                       value: $el.attr( "value" )
-                                               }).insertBefore( $el );
-
-                                               // Bind to doc to remove after submit handling
-                                               $( document ).one("submit", function(){
-                                                       $buttonPlaceholder.remove();
-
-                                                       // reset the local var so that the hidden input
-                                                       // will be re-added on subsequent clicks
-                                                       $buttonPlaceholder = undefined;
-                                               });
-                                       }
-                               });
-               }
-
-        $el.bind({
-            focus: function() {
-                $button.addClass( $.mobile.focusClass );
-            },
-
-            blur: function() {
-                $button.removeClass( $.mobile.focusClass );
-            }
-        });
-
-               this.refresh();
-       },
-
-       enable: function() {
-               this.element.attr( "disabled", false );
-               this.button.removeClass( "ui-disabled" ).attr( "aria-disabled", false );
-               return this._setOption( "disabled", false );
-       },
-
-       disable: function() {
-               this.element.attr( "disabled", true );
-               this.button.addClass( "ui-disabled" ).attr( "aria-disabled", true );
-               return this._setOption( "disabled", true );
-       },
-
-       refresh: function() {
-               var $el = this.element;
-
-               if ( $el.prop("disabled") ) {
-                       this.disable();
-               } else {
-                       this.enable();
-               }
-
-               // Grab the button's text element from its implementation-independent data item
-               $( this.button.data( 'buttonElements' ).text ).text( $el.text() || $el.val() );
-       }
-});
-
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-       $.mobile.button.prototype.enhanceWithin( e.target, true );
-});
-
-})( jQuery );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.checkboxradio.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.checkboxradio.js
deleted file mode 100644 (file)
index eb4731b..0000000
+++ /dev/null
@@ -1,209 +0,0 @@
-/*
-* "checkboxradio" plugin
-*/
-
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Consistent styling for checkboxes/radio buttons.
-//>>label: Checkboxes & Radio Buttons
-//>>group: Forms
-//>>css: ../css/themes/default/jquery.mobile.theme.css,../css/structure/jquery.mobile.forms.checkboxradio.css
-
-define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.widget", "./jquery.mobile.buttonMarkup" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, undefined ) {
-
-$.widget( "mobile.checkboxradio", $.mobile.widget, {
-       options: {
-               theme: null,
-               initSelector: "input[type='checkbox'],input[type='radio']"
-       },
-       _create: function() {
-               var self = this,
-                       input = this.element,
-                       inheritAttr = function( input, dataAttr ) {
-                               return input.jqmData( dataAttr ) || input.closest( "form,fieldset" ).jqmData( dataAttr )
-                       },
-                       // NOTE: Windows Phone could not find the label through a selector
-                       // filter works though.
-                       parentLabel = $( input ).closest( "label" ),
-                       label = parentLabel.length ? parentLabel : $( input ).closest( "form,fieldset,:jqmData(role='page'),:jqmData(role='dialog')" ).find( "label" ).filter( "[for='" + input[0].id + "']" ),
-                       inputtype = input[0].type,
-                       mini = inheritAttr( input, "mini" ),
-                       checkedState = inputtype + "-on",
-                       uncheckedState = inputtype + "-off",
-                       icon = input.parents( ":jqmData(type='horizontal')" ).length ? undefined : uncheckedState,
-                       iconpos = inheritAttr( input, "iconpos" ),
-                       activeBtn = icon ? "" : " " + $.mobile.activeBtnClass,
-                       checkedClass = "ui-" + checkedState + activeBtn,
-                       uncheckedClass = "ui-" + uncheckedState,
-                       checkedicon = "ui-icon-" + checkedState,
-                       uncheckedicon = "ui-icon-" + uncheckedState;
-
-               if ( inputtype !== "checkbox" && inputtype !== "radio" ) {
-                       return;
-               }
-
-               // Expose for other methods
-               $.extend( this, {
-                       label: label,
-                       inputtype: inputtype,
-                       checkedClass: checkedClass,
-                       uncheckedClass: uncheckedClass,
-                       checkedicon: checkedicon,
-                       uncheckedicon: uncheckedicon
-               });
-
-               // If there's no selected theme check the data attr
-               if( !this.options.theme ) {
-                       this.options.theme = $.mobile.getInheritedTheme( this.element, "c" );
-               }
-
-               label.buttonMarkup({
-                       theme: this.options.theme,
-                       icon: icon,
-                       shadow: false,
-                       mini: mini,
-                       iconpos: iconpos
-               });
-
-               // Wrap the input + label in a div
-               var wrapper = document.createElement('div');
-               wrapper.className = 'ui-' + inputtype;
-
-               input.add( label ).wrapAll( wrapper );
-
-               label.bind({
-                       vmouseover: function( event ) {
-                               if ( $( this ).parent().is( ".ui-disabled" ) ) {
-                                       event.stopPropagation();
-                               }
-                       },
-
-                       vclick: function( event ) {
-                               if ( input.is( ":disabled" ) ) {
-                                       event.preventDefault();
-                                       return;
-                               }
-
-                               self._cacheVals();
-
-                               input.prop( "checked", inputtype === "radio" && true || !input.prop( "checked" ) );
-
-                               // trigger click handler's bound directly to the input as a substitute for
-                               // how label clicks behave normally in the browsers
-                               // TODO: it would be nice to let the browser's handle the clicks and pass them
-                               //       through to the associate input. we can swallow that click at the parent
-                               //       wrapper element level
-                               input.triggerHandler( 'click' );
-
-                               // Input set for common radio buttons will contain all the radio
-                               // buttons, but will not for checkboxes. clearing the checked status
-                               // of other radios ensures the active button state is applied properly
-                               self._getInputSet().not( input ).prop( "checked", false );
-
-                               self._updateAll();
-                               return false;
-                       }
-               });
-
-               input
-                       .bind({
-                               vmousedown: function() {
-                                       self._cacheVals();
-                               },
-
-                               vclick: function() {
-                                       var $this = $(this);
-
-                                       // Adds checked attribute to checked input when keyboard is used
-                                       if ( $this.is( ":checked" ) ) {
-
-                                               $this.prop( "checked", true);
-                                               self._getInputSet().not($this).prop( "checked", false );
-                                       } else {
-
-                                               $this.prop( "checked", false );
-                                       }
-
-                                       self._updateAll();
-                               },
-
-                               focus: function() {
-                                       label.addClass( $.mobile.focusClass );
-                               },
-
-                               blur: function() {
-                                       label.removeClass( $.mobile.focusClass );
-                               }
-                       });
-
-               this.refresh();
-       },
-
-       _cacheVals: function() {
-               this._getInputSet().each(function() {
-                       $(this).jqmData( "cacheVal", this.checked );
-               });
-       },
-
-       //returns either a set of radios with the same name attribute, or a single checkbox
-       _getInputSet: function(){
-               if(this.inputtype === "checkbox") {
-                       return this.element;
-               }
-
-               return this.element.closest( "form,fieldset,:jqmData(role='page')" )
-                       .find( "input[name='"+ this.element[0].name +"'][type='"+ this.inputtype +"']" );
-       },
-
-       _updateAll: function() {
-               var self = this;
-
-               this._getInputSet().each(function() {
-                       var $this = $(this);
-
-                       if ( this.checked || self.inputtype === "checkbox" ) {
-                               $this.trigger( "change" );
-                       }
-               })
-               .checkboxradio( "refresh" );
-       },
-
-       refresh: function() {
-               var input = this.element[0],
-                       label = this.label,
-                       icon = label.find( ".ui-icon" );
-
-               if ( input.checked ) {
-                       label.addClass( this.checkedClass ).removeClass( this.uncheckedClass );
-                       icon.addClass( this.checkedicon ).removeClass( this.uncheckedicon );
-               } else {
-                       label.removeClass( this.checkedClass ).addClass( this.uncheckedClass );
-                       icon.removeClass( this.checkedicon ).addClass( this.uncheckedicon );
-               }
-
-               if ( input.disabled ) {
-                       this.disable();
-               } else {
-                       this.enable();
-               }
-       },
-
-       disable: function() {
-               this.element.prop( "disabled", true ).parent().addClass( "ui-disabled" );
-       },
-
-       enable: function() {
-               this.element.prop( "disabled", false ).parent().removeClass( "ui-disabled" );
-       }
-});
-
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-       $.mobile.checkboxradio.prototype.enhanceWithin( e.target, true );
-});
-
-})( jQuery );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.select.custom.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.select.custom.js
deleted file mode 100644 (file)
index 124c704..0000000
+++ /dev/null
@@ -1,545 +0,0 @@
-/*
-* custom "selectmenu" plugin
-*/
-
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Extension to select menus to support menu styling, placeholder options, and multi-select features. 
-//>>label: Selects: Custom menus
-//>>group: Forms
-//>>css: ../css/themes/default/jquery.mobile.theme.css, ../css/structure/jquery.mobile.forms.select.css
-
-define( [
-       "jquery",
-       "./jquery.mobile.buttonMarkup",
-       "./jquery.mobile.core",
-       "./jquery.mobile.dialog",
-       "./jquery.mobile.forms.select",
-       "./jquery.mobile.listview",
-       "./jquery.mobile.page",
-       // NOTE expects ui content in the defined page, see selector for menuPageContent definition
-       "./jquery.mobile.page.sections" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, undefined ) {
-       var extendSelect = function( widget ){
-
-               var select = widget.select,
-                       selectID  = widget.selectID,
-                       label = widget.label,
-                       thisPage = widget.select.closest( ".ui-page" ),
-                       screen = $( "<div>", {"class": "ui-selectmenu-screen ui-screen-hidden"} ).appendTo( thisPage ),
-                       selectOptions = widget._selectOptions(),
-                       isMultiple = widget.isMultiple = widget.select[ 0 ].multiple,
-                       buttonId = selectID + "-button",
-                       menuId = selectID + "-menu",
-                       menuPage = $( "<div data-" + $.mobile.ns + "role='dialog' data-" +$.mobile.ns + "theme='"+ widget.options.theme +"' data-" +$.mobile.ns + "overlay-theme='"+ widget.options.overlayTheme +"'>" +
-                               "<div data-" + $.mobile.ns + "role='header'>" +
-                               "<div class='ui-title'>" + label.getEncodedText() + "</div>"+
-                               "</div>"+
-                               "<div data-" + $.mobile.ns + "role='content'></div>"+
-                               "</div>" ),
-
-                       listbox =  $("<div>", { "class": "ui-selectmenu ui-selectmenu-hidden ui-overlay-shadow ui-corner-all ui-body-" + widget.options.overlayTheme + " " + $.mobile.defaultDialogTransition } ).insertAfter(screen),
-
-                       list = $( "<ul>", {
-                               "class": "ui-selectmenu-list",
-                               "id": menuId,
-                               "role": "listbox",
-                               "aria-labelledby": buttonId
-                       }).attr( "data-" + $.mobile.ns + "theme", widget.options.theme ).appendTo( listbox ),
-
-                       header = $( "<div>", {
-                               "class": "ui-header ui-bar-" + widget.options.theme
-                       }).prependTo( listbox ),
-
-                       headerTitle = $( "<h1>", {
-                               "class": "ui-title"
-                       }).appendTo( header ),
-
-                       menuPageContent,
-                       menuPageClose,
-                       headerClose;
-
-               if( widget.isMultiple ) {
-                       headerClose = $( "<a>", {
-                               "text": widget.options.closeText,
-                               "href": "#",
-                               "class": "ui-btn-left"
-                       }).attr( "data-" + $.mobile.ns + "iconpos", "notext" ).attr( "data-" + $.mobile.ns + "icon", "delete" ).appendTo( header ).buttonMarkup();
-               }
-
-               $.extend( widget, {
-                       select: widget.select,
-                       selectID: selectID,
-                       buttonId: buttonId,
-                       menuId: menuId,
-                       thisPage: thisPage,
-                       menuPage: menuPage,
-                       label: label,
-                       screen: screen,
-                       selectOptions: selectOptions,
-                       isMultiple: isMultiple,
-                       theme: widget.options.theme,
-                       listbox: listbox,
-                       list: list,
-                       header: header,
-                       headerTitle: headerTitle,
-                       headerClose: headerClose,
-                       menuPageContent: menuPageContent,
-                       menuPageClose: menuPageClose,
-                       placeholder: "",
-
-                       build: function() {
-                               var self = this;
-
-                               // Create list from select, update state
-                               self.refresh();
-
-                               self.select.attr( "tabindex", "-1" ).focus(function() {
-                                       $( this ).blur();
-                                       self.button.focus();
-                               });
-
-                               // Button events
-                               self.button.bind( "vclick keydown" , function( event ) {
-                                       if ( event.type == "vclick" ||
-                                                        event.keyCode && ( event.keyCode === $.mobile.keyCode.ENTER ||
-                                                                                                                                       event.keyCode === $.mobile.keyCode.SPACE ) ) {
-
-                                               self.open();
-                                               event.preventDefault();
-                                       }
-                               });
-
-                               // Events for list items
-                               self.list.attr( "role", "listbox" )
-                                       .bind( "focusin", function( e ){
-                                               $( e.target )
-                                                       .attr( "tabindex", "0" )
-                                                       .trigger( "vmouseover" );
-
-                                       })
-                                       .bind( "focusout", function( e ){
-                                               $( e.target )
-                                                       .attr( "tabindex", "-1" )
-                                                       .trigger( "vmouseout" );
-                                       })
-                                       .delegate( "li:not(.ui-disabled, .ui-li-divider)", "click", function( event ) {
-
-                                               // index of option tag to be selected
-                                               var oldIndex = self.select[ 0 ].selectedIndex,
-                                                       newIndex = self.list.find( "li:not(.ui-li-divider)" ).index( this ),
-                                                       option = self._selectOptions().eq( newIndex )[ 0 ];
-
-                                               // toggle selected status on the tag for multi selects
-                                               option.selected = self.isMultiple ? !option.selected : true;
-
-                                               // toggle checkbox class for multiple selects
-                                               if ( self.isMultiple ) {
-                                                       $( this ).find( ".ui-icon" )
-                                                               .toggleClass( "ui-icon-checkbox-on", option.selected )
-                                                               .toggleClass( "ui-icon-checkbox-off", !option.selected );
-                                               }
-
-                                               // trigger change if value changed
-                                               if ( self.isMultiple || oldIndex !== newIndex ) {
-                                                       self.select.trigger( "change" );
-                                               }
-
-                                               //hide custom select for single selects only
-                                               if ( !self.isMultiple ) {
-                                                       self.close();
-                                               }
-
-                                               event.preventDefault();
-                                       })
-                                       .keydown(function( event ) {  //keyboard events for menu items
-                                               var target = $( event.target ),
-                                                       li = target.closest( "li" ),
-                                                       prev, next;
-
-                                               // switch logic based on which key was pressed
-                                               switch ( event.keyCode ) {
-                                                       // up or left arrow keys
-                                                case 38:
-                                                       prev = li.prev().not( ".ui-selectmenu-placeholder" );
-
-                                                       if( prev.is( ".ui-li-divider" ) ) {
-                                                               prev = prev.prev();
-                                                       }
-
-                                                       // if there's a previous option, focus it
-                                                       if ( prev.length ) {
-                                                               target
-                                                                       .blur()
-                                                                       .attr( "tabindex", "-1" );
-
-                                                               prev.addClass( "ui-btn-down-" + widget.options.theme ).find( "a" ).first().focus();
-                                                       }
-
-                                                       return false;
-                                                       break;
-
-                                                       // down or right arrow keys
-                                                case 40:
-                                                       next = li.next();
-
-                                                       if( next.is( ".ui-li-divider" ) ) {
-                                                               next = next.next();
-                                                       }
-
-                                                       // if there's a next option, focus it
-                                                       if ( next.length ) {
-                                                               target
-                                                                       .blur()
-                                                                       .attr( "tabindex", "-1" );
-
-                                                               next.addClass( "ui-btn-down-" + widget.options.theme ).find( "a" ).first().focus();
-                                                       }
-
-                                                       return false;
-                                                       break;
-
-                                                       // If enter or space is pressed, trigger click
-                                                case 13:
-                                                case 32:
-                                                       target.trigger( "click" );
-
-                                                       return false;
-                                                       break;
-                                               }
-                                       });
-
-                               // button refocus ensures proper height calculation
-                               // by removing the inline style and ensuring page inclusion
-                               self.menuPage.bind( "pagehide", function() {
-                                       self.list.appendTo( self.listbox );
-                                       self._focusButton();
-
-                                       // TODO centralize page removal binding / handling in the page plugin.
-                                       // Suggestion from @jblas to do refcounting
-                                       //
-                                       // TODO extremely confusing dependency on the open method where the pagehide.remove
-                                       // bindings are stripped to prevent the parent page from disappearing. The way
-                                       // we're keeping pages in the DOM right now sucks
-                                       //
-                                       // rebind the page remove that was unbound in the open function
-                                       // to allow for the parent page removal from actions other than the use
-                                       // of a dialog sized custom select
-                                       //
-                                       // doing this here provides for the back button on the custom select dialog
-                                       $.mobile._bindPageRemove.call( self.thisPage );
-                               });
-
-                               // Events on "screen" overlay
-                               self.screen.bind( "vclick", function( event ) {
-                                       self.close();
-                               });
-
-                               // Close button on small overlays
-                               if( self.isMultiple ){
-                                       self.headerClose.click( function() {
-                                               if ( self.menuType == "overlay" ) {
-                                                       self.close();
-                                                       return false;
-                                               }
-                                       });
-                               }
-
-                               // track this dependency so that when the parent page
-                               // is removed on pagehide it will also remove the menupage
-                               self.thisPage.addDependents( this.menuPage );
-                       },
-
-                       _isRebuildRequired: function() {
-                               var list = this.list.find( "li" ),
-                                       options = this._selectOptions();
-
-                               // TODO exceedingly naive method to determine difference
-                               // ignores value changes etc in favor of a forcedRebuild
-                               // from the user in the refresh method
-                               return options.text() !== list.text();
-                       },
-
-                       refresh: function( forceRebuild , foo ){
-                               var self = this,
-                               select = this.element,
-                               isMultiple = this.isMultiple,
-                               options = this._selectOptions(),
-                               selected = this.selected(),
-                               // return an array of all selected index's
-                               indicies = this.selectedIndices();
-
-                               if (  forceRebuild || this._isRebuildRequired() ) {
-                                       self._buildList();
-                               }
-
-                               self.setButtonText();
-                               self.setButtonCount();
-
-                               self.list.find( "li:not(.ui-li-divider)" )
-                                       .removeClass( $.mobile.activeBtnClass )
-                                       .attr( "aria-selected", false )
-                                       .each(function( i ) {
-
-                                               if ( $.inArray( i, indicies ) > -1 ) {
-                                                       var item = $( this );
-
-                                                       // Aria selected attr
-                                                       item.attr( "aria-selected", true );
-
-                                                       // Multiple selects: add the "on" checkbox state to the icon
-                                                       if ( self.isMultiple ) {
-                                                               item.find( ".ui-icon" ).removeClass( "ui-icon-checkbox-off" ).addClass( "ui-icon-checkbox-on" );
-                                                       } else {
-                                                               if( item.is( ".ui-selectmenu-placeholder" ) ) {
-                                                                       item.next().addClass( $.mobile.activeBtnClass );
-                                                               } else {
-                                                                       item.addClass( $.mobile.activeBtnClass );
-                                                               }
-                                                       }
-                                               }
-                                       });
-                       },
-
-                       close: function() {
-                               if ( this.options.disabled || !this.isOpen ) {
-                                       return;
-                               }
-
-                               var self = this;
-
-                               if ( self.menuType == "page" ) {
-                                       // doesn't solve the possible issue with calling change page
-                                       // where the objects don't define data urls which prevents dialog key
-                                       // stripping - changePage has incoming refactor
-                                       window.history.back();
-                               } else {
-                                       self.screen.addClass( "ui-screen-hidden" );
-                                       self.listbox.addClass( "ui-selectmenu-hidden" ).removeAttr( "style" ).removeClass( "in" );
-                                       self.list.appendTo( self.listbox );
-                                       self._focusButton();
-                               }
-
-                               // allow the dialog to be closed again
-                               self.isOpen = false;
-                       },
-
-                       open: function() {
-                               if ( this.options.disabled ) {
-                                       return;
-                               }
-
-                               var self = this,
-          $window = $( window ),
-          selfListParent = self.list.parent(),
-                                       menuHeight = selfListParent.outerHeight(),
-                                       menuWidth = selfListParent.outerWidth(),
-                                       activePage = $( ".ui-page-active" ),
-                                       tScrollElem = activePage,
-                                       scrollTop = $window.scrollTop(),
-                                       btnOffset = self.button.offset().top,
-                                       screenHeight = $window.height(),
-                                       screenWidth = $window.width();
-
-                               //add active class to button
-                               self.button.addClass( $.mobile.activeBtnClass );
-
-                               //remove after delay
-                               setTimeout( function() {
-                                       self.button.removeClass( $.mobile.activeBtnClass );
-                               }, 300);
-
-                               function focusMenuItem() {
-                                       self.list.find( "." + $.mobile.activeBtnClass + " a" ).focus();
-                               }
-
-                               if ( menuHeight > screenHeight - 80 || !$.support.scrollTop ) {
-
-                                       self.menuPage.appendTo( $.mobile.pageContainer ).page();
-                                       self.menuPageContent = menuPage.find( ".ui-content" );
-                                       self.menuPageClose = menuPage.find( ".ui-header a" );
-
-                                       // prevent the parent page from being removed from the DOM,
-                                       // otherwise the results of selecting a list item in the dialog
-                                       // fall into a black hole
-                                       self.thisPage.unbind( "pagehide.remove" );
-
-                                       //for WebOS/Opera Mini (set lastscroll using button offset)
-                                       if ( scrollTop == 0 && btnOffset > screenHeight ) {
-                                               self.thisPage.one( "pagehide", function() {
-                                                       $( this ).jqmData( "lastScroll", btnOffset );
-                                               });
-                                       }
-
-                                       self.menuPage.one( "pageshow", function() {
-                                               focusMenuItem();
-                                               self.isOpen = true;
-                                       });
-
-                                       self.menuType = "page";
-                                       self.menuPageContent.append( self.list );
-                                       self.menuPage.find("div .ui-title").text(self.label.text());
-                                       $.mobile.changePage( self.menuPage, {
-                                               transition: $.mobile.defaultDialogTransition
-                                       });
-                               } else {
-                                       self.menuType = "overlay";
-
-                                       self.screen.height( $(document).height() )
-                                               .removeClass( "ui-screen-hidden" );
-
-                                       // Try and center the overlay over the button
-                                       var roomtop = btnOffset - scrollTop,
-                                               roombot = scrollTop + screenHeight - btnOffset,
-                                               halfheight = menuHeight / 2,
-                                               maxwidth = parseFloat( self.list.parent().css( "max-width" ) ),
-                                               newtop, newleft;
-
-                                       if ( roomtop > menuHeight / 2 && roombot > menuHeight / 2 ) {
-                                               newtop = btnOffset + ( self.button.outerHeight() / 2 ) - halfheight;
-                                       } else {
-                                               // 30px tolerance off the edges
-                                               newtop = roomtop > roombot ? scrollTop + screenHeight - menuHeight - 30 : scrollTop + 30;
-                                       }
-
-                                       // If the menuwidth is smaller than the screen center is
-                                       if ( menuWidth < maxwidth ) {
-                                               newleft = ( screenWidth - menuWidth ) / 2;
-                                       } else {
-
-                                               //otherwise insure a >= 30px offset from the left
-                                               newleft = self.button.offset().left + self.button.outerWidth() / 2 - menuWidth / 2;
-
-                                               // 30px tolerance off the edges
-                                               if ( newleft < 30 ) {
-                                                       newleft = 30;
-                                               } else if ( (newleft + menuWidth) > screenWidth ) {
-                                                       newleft = screenWidth - menuWidth - 30;
-                                               }
-                                       }
-
-                                       self.listbox.append( self.list )
-                                               .removeClass( "ui-selectmenu-hidden" )
-                                               .css({
-                                                       top: newtop,
-                                                       left: newleft
-                                               })
-                                               .addClass( "in" );
-
-                                       focusMenuItem();
-
-                                       // duplicate with value set in page show for dialog sized selects
-                                       self.isOpen = true;
-                               }
-                       },
-
-                       _buildList: function() {
-                               var self = this,
-                                       o = this.options,
-                                       placeholder = this.placeholder,
-                                       needPlaceholder = true,
-                                       optgroups = [],
-                                       lis = [],
-                                       dataIcon = self.isMultiple ? "checkbox-off" : "false";
-
-                               self.list.empty().filter( ".ui-listview" ).listview( "destroy" );
-
-                               var $options = self.select.find("option"),
-                                       numOptions = $options.length,
-                                       select = this.select[ 0 ],
-                                       dataPrefix = 'data-' + $.mobile.ns,
-                                       dataIndexAttr = dataPrefix + 'option-index',
-                                       dataIconAttr = dataPrefix + 'icon',
-                                       dataRoleAttr = dataPrefix + 'role',
-                                       fragment = document.createDocumentFragment(),
-                                       optGroup;
-
-                               for (var i = 0; i < numOptions;i++){
-                                       var option = $options[i],
-                                               $option = $(option),
-                                               parent = option.parentNode,
-                                               text = $option.text(),
-                                               anchor  = document.createElement('a'),
-                                               classes = [];
-
-                                       anchor.setAttribute('href','#');
-                                       anchor.appendChild(document.createTextNode(text));
-
-                                       // Are we inside an optgroup?
-                                       if (parent !== select && parent.nodeName.toLowerCase() === "optgroup"){
-                                               var optLabel = parent.getAttribute('label');
-                                               if ( optLabel != optGroup) {
-                                                       var divider = document.createElement('li');
-                                                       divider.setAttribute(dataRoleAttr,'list-divider');
-                                                       divider.setAttribute('role','option');
-                                                       divider.setAttribute('tabindex','-1');
-                                                       divider.appendChild(document.createTextNode(optLabel));
-                                                       fragment.appendChild(divider);
-                                                       optGroup = optLabel;
-                                               }
-                                       }
-
-                                       if (needPlaceholder && (!option.getAttribute( "value" ) || text.length == 0 || $option.jqmData( "placeholder" ))) {
-                                               needPlaceholder = false;
-                                               if ( o.hidePlaceholderMenuItems ) {
-                                                       classes.push( "ui-selectmenu-placeholder" );
-                                               }
-                                               if (!placeholder) {
-                                                       placeholder = self.placeholder = text;
-                                               }
-                                       }
-
-                                       var item = document.createElement('li');
-                                       if ( option.disabled ) {
-                                               classes.push( "ui-disabled" );
-                                               item.setAttribute('aria-disabled',true);
-                                       }
-                                       item.setAttribute(dataIndexAttr,i);
-                                       item.setAttribute(dataIconAttr,dataIcon);
-                                       item.className = classes.join(" ");
-                                       item.setAttribute('role','option');
-                                       anchor.setAttribute('tabindex','-1');
-                                       item.appendChild(anchor);
-                                       fragment.appendChild(item);
-                               }
-
-                               self.list[0].appendChild(fragment);
-
-                               // Hide header if it's not a multiselect and there's no placeholder
-                               if ( !this.isMultiple && !placeholder.length ) {
-                                       this.header.hide();
-                               } else {
-                                       this.headerTitle.text( this.placeholder );
-                               }
-
-                               // Now populated, create listview
-                               self.list.listview();
-                       },
-
-                       _button: function(){
-                               return $( "<a>", {
-                                       "href": "#",
-                                       "role": "button",
-                                       // TODO value is undefined at creation
-                                       "id": this.buttonId,
-                                       "aria-haspopup": "true",
-
-                                       // TODO value is undefined at creation
-                                       "aria-owns": this.menuId
-                               });
-                       }
-               });
-       };
-
-       // issue #3894 - core doesn't triggered events on disabled delegates
-       $( document ).bind( "selectmenubeforecreate", function( event ){
-               var selectmenuWidget = $( event.target ).data( "selectmenu" );
-
-               if( !selectmenuWidget.options.nativeMenu ){
-                       extendSelect( selectmenuWidget );
-               }
-       });
-})( jQuery );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.select.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.select.js
deleted file mode 100644 (file)
index 65c121e..0000000
+++ /dev/null
@@ -1,246 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Consistent styling for native select menus. Tapping opens a native select menu.
-//>>label: Selects
-//>>group: Forms
-//>>css: ../css/themes/default/jquery.mobile.theme.css, ../css/structure/jquery.mobile.forms.select.css
-
-define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.widget", "./jquery.mobile.buttonMarkup", "./jquery.mobile.zoom" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, undefined ) {
-
-$.widget( "mobile.selectmenu", $.mobile.widget, {
-       options: {
-               theme: null,
-               disabled: false,
-               icon: "arrow-d",
-               iconpos: "right",
-               inline: false,
-               corners: true,
-               shadow: true,
-               iconshadow: true,
-               overlayTheme: "a",
-               hidePlaceholderMenuItems: true,
-               closeText: "Close",
-               nativeMenu: true,
-               // This option defaults to true on iOS devices.
-               preventFocusZoom: /iPhone|iPad|iPod/.test( navigator.platform ) && navigator.userAgent.indexOf( "AppleWebKit" ) > -1,
-               initSelector: "select:not(:jqmData(role='slider'))",
-               mini: false
-       },
-
-       _button: function(){
-               return $( "<div/>" );
-       },
-
-       _setDisabled: function( value ) {
-               this.element.attr( "disabled", value );
-               this.button.attr( "aria-disabled", value );
-               return this._setOption( "disabled", value );
-       },
-
-       _focusButton : function() {
-               var self = this;
-
-               setTimeout( function() {
-                       self.button.focus();
-               }, 40);
-       },
-
-  _selectOptions: function() {
-    return this.select.find( "option" );
-  },
-
-       // setup items that are generally necessary for select menu extension
-       _preExtension: function(){
-               var classes = "";
-               // TODO: Post 1.1--once we have time to test thoroughly--any classes manually applied to the original element should be carried over to the enhanced element, with an `-enhanced` suffix. See https://github.com/jquery/jquery-mobile/issues/3577
-               /* if( $el[0].className.length ) {
-                       classes = $el[0].className;
-               } */
-               if( !!~this.element[0].className.indexOf( "ui-btn-left" ) ) {
-                       classes =  " ui-btn-left";
-               }
-               
-               if(  !!~this.element[0].className.indexOf( "ui-btn-right" ) ) {
-                       classes = " ui-btn-right";
-               }
-               
-               this.select = this.element.wrap( "<div class='ui-select" + classes + "'>" );
-               this.selectID  = this.select.attr( "id" );
-               this.label = $( "label[for='"+ this.selectID +"']" ).addClass( "ui-select" );
-               this.isMultiple = this.select[ 0 ].multiple;
-               if ( !this.options.theme ) {
-                       this.options.theme = $.mobile.getInheritedTheme( this.select, "c" );
-               }
-       },
-
-       _create: function() {
-               this._preExtension();
-
-               // Allows for extension of the native select for custom selects and other plugins
-               // see select.custom for example extension
-               // TODO explore plugin registration
-               this._trigger( "beforeCreate" );
-
-               this.button = this._button();
-
-               var self = this,
-
-                       options = this.options,
-
-                       // IE throws an exception at options.item() function when
-                       // there is no selected item
-                       // select first in this case
-                       selectedIndex = this.select[ 0 ].selectedIndex == -1 ? 0 : this.select[ 0 ].selectedIndex,
-
-                       // TODO values buttonId and menuId are undefined here
-                       button = this.button
-                               .text( $( this.select[ 0 ].options.item( selectedIndex ) ).text() )
-                               .insertBefore( this.select )
-                               .buttonMarkup( {
-                                       theme: options.theme,
-                                       icon: options.icon,
-                                       iconpos: options.iconpos,
-                                       inline: options.inline,
-                                       corners: options.corners,
-                                       shadow: options.shadow,
-                                       iconshadow: options.iconshadow,
-                                       mini: options.mini
-                               });
-
-               // Opera does not properly support opacity on select elements
-               // In Mini, it hides the element, but not its text
-               // On the desktop,it seems to do the opposite
-               // for these reasons, using the nativeMenu option results in a full native select in Opera
-               if ( options.nativeMenu && window.opera && window.opera.version ) {
-                       this.select.addClass( "ui-select-nativeonly" );
-               }
-
-               // Add counter for multi selects
-               if ( this.isMultiple ) {
-                       this.buttonCount = $( "<span>" )
-                               .addClass( "ui-li-count ui-btn-up-c ui-btn-corner-all" )
-                               .hide()
-                               .appendTo( button.addClass('ui-li-has-count') );
-               }
-
-               // Disable if specified
-               if ( options.disabled || this.element.attr('disabled')) {
-                       this.disable();
-               }
-
-               // Events on native select
-               this.select.change( function() {
-                       self.refresh();
-               });
-
-               this.build();
-       },
-
-       build: function() {
-               var self = this;
-
-               this.select
-                       .appendTo( self.button )
-                       .bind( "vmousedown", function() {
-                               // Add active class to button
-                               self.button.addClass( $.mobile.activeBtnClass );
-                       })
-            .bind( "focus", function() {
-                self.button.addClass( $.mobile.focusClass );
-            })
-            .bind( "blur", function() {
-                self.button.removeClass( $.mobile.focusClass );
-            })
-                       .bind( "focus vmouseover", function() {
-                               self.button.trigger( "vmouseover" );
-                       })
-                       .bind( "vmousemove", function() {
-                               // Remove active class on scroll/touchmove
-                               self.button.removeClass( $.mobile.activeBtnClass );
-                       })
-                       .bind( "change blur vmouseout", function() {
-                               self.button.trigger( "vmouseout" )
-                                       .removeClass( $.mobile.activeBtnClass );
-                       })
-                       .bind( "change blur", function() {
-                               self.button.removeClass( "ui-btn-down-" + self.options.theme );
-                       });
-
-               // In many situations, iOS will zoom into the select upon tap, this prevents that from happening
-               self.button.bind( "vmousedown", function() {
-                       if( self.options.preventFocusZoom ){
-                               $.mobile.zoom.disable( true );
-                       }
-               })
-               .bind( "mouseup", function() {
-                       if( self.options.preventFocusZoom ){
-                               $.mobile.zoom.enable( true );
-                       }
-               });
-       },
-
-       selected: function() {
-               return this._selectOptions().filter( ":selected" );
-       },
-
-       selectedIndices: function() {
-               var self = this;
-
-               return this.selected().map( function() {
-                       return self._selectOptions().index( this );
-               }).get();
-       },
-
-       setButtonText: function() {
-               var self = this, selected = this.selected();
-
-               this.button.find( ".ui-btn-text" ).text( function() {
-                       if ( !self.isMultiple ) {
-                               return selected.text();
-                       }
-
-                       return selected.length ? selected.map( function() {
-                               return $( this ).text();
-                       }).get().join( ", " ) : self.placeholder;
-               });
-       },
-
-       setButtonCount: function() {
-               var selected = this.selected();
-
-               // multiple count inside button
-               if ( this.isMultiple ) {
-                       this.buttonCount[ selected.length > 1 ? "show" : "hide" ]().text( selected.length );
-               }
-       },
-
-       refresh: function() {
-               this.setButtonText();
-               this.setButtonCount();
-       },
-
-       // open and close preserved in native selects
-       // to simplify users code when looping over selects
-       open: $.noop,
-       close: $.noop,
-
-       disable: function() {
-               this._setDisabled( true );
-               this.button.addClass( "ui-disabled" );
-       },
-
-       enable: function() {
-               this._setDisabled( false );
-               this.button.removeClass( "ui-disabled" );
-       }
-});
-
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-       $.mobile.selectmenu.prototype.enhanceWithin( e.target, true );
-});
-})( jQuery );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.slider.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.slider.js
deleted file mode 100644 (file)
index 19a5691..0000000
+++ /dev/null
@@ -1,418 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Slider form widget
-//>>label: Slider
-//>>group: Forms
-//>>css: ../css/themes/default/jquery.mobile.theme.css, ../css/structure/jquery.mobile.forms.slider.css
-
-define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.widget", "./jquery.mobile.forms.textinput", "./jquery.mobile.buttonMarkup" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-( function( $, undefined ) {
-
-$.widget( "mobile.slider", $.mobile.widget, {
-       options: {
-               theme: null,
-               trackTheme: null,
-               disabled: false,
-               initSelector: "input[type='range'], :jqmData(type='range'), :jqmData(role='slider')",
-               mini: false
-       },
-
-       _create: function() {
-
-               // TODO: Each of these should have comments explain what they're for
-               var self = this,
-
-                       control = this.element,
-
-                       parentTheme = $.mobile.getInheritedTheme( control, "c" ),
-
-                       theme = this.options.theme || parentTheme,
-
-                       trackTheme = this.options.trackTheme || parentTheme,
-
-                       cType = control[ 0 ].nodeName.toLowerCase(),
-
-                       selectClass = ( cType == "select" ) ? "ui-slider-switch" : "",
-
-                       controlID = control.attr( "id" ),
-
-                       labelID = controlID + "-label",
-
-                       label = $( "[for='"+ controlID +"']" ).attr( "id", labelID ),
-
-                       val = function() {
-                               return  cType == "input"  ? parseFloat( control.val() ) : control[0].selectedIndex;
-                       },
-
-                       min =  cType == "input" ? parseFloat( control.attr( "min" ) ) : 0,
-
-                       max =  cType == "input" ? parseFloat( control.attr( "max" ) ) : control.find( "option" ).length-1,
-
-                       step = window.parseFloat( control.attr( "step" ) || 1 ),
-
-                       inlineClass = ( this.options.inline || control.jqmData("inline") == true ) ? " ui-slider-inline" : "",
-
-                       miniClass = ( this.options.mini || control.jqmData("mini") ) ? " ui-slider-mini" : "",
-
-
-                       domHandle = document.createElement('a'),
-                       handle = $( domHandle ),
-                       domSlider = document.createElement('div'),
-                       slider = $( domSlider ),
-
-                       valuebg = control.jqmData("highlight") && cType != "select" ? (function() {
-                               var bg = document.createElement('div');
-                               bg.className = 'ui-slider-bg ui-btn-active ui-btn-corner-all';
-                               return $( bg ).prependTo( slider );
-                       })() : false,
-
-                       options;
-
-        domHandle.setAttribute( 'href', "#" );
-               domSlider.setAttribute('role','application');
-               domSlider.className = ['ui-slider ',selectClass," ui-btn-down-",trackTheme,' ui-btn-corner-all', inlineClass, miniClass].join("");
-               domHandle.className = 'ui-slider-handle';
-               domSlider.appendChild(domHandle);
-
-               handle.buttonMarkup({ corners: true, theme: theme, shadow: true })
-                               .attr({
-                                       "role": "slider",
-                                       "aria-valuemin": min,
-                                       "aria-valuemax": max,
-                                       "aria-valuenow": val(),
-                                       "aria-valuetext": val(),
-                                       "title": val(),
-                                       "aria-labelledby": labelID
-                               });
-
-               $.extend( this, {
-                       slider: slider,
-                       handle: handle,
-                       valuebg: valuebg,
-                       dragging: false,
-                       beforeStart: null,
-                       userModified: false,
-                       mouseMoved: false
-               });
-
-               if ( cType == "select" ) {
-                       var wrapper = document.createElement('div');
-                       wrapper.className = 'ui-slider-inneroffset';
-
-                       for(var j = 0,length = domSlider.childNodes.length;j < length;j++){
-                               wrapper.appendChild(domSlider.childNodes[j]);
-                       }
-
-                       domSlider.appendChild(wrapper);
-
-                       // slider.wrapInner( "<div class='ui-slider-inneroffset'></div>" );
-
-                       // make the handle move with a smooth transition
-                       handle.addClass( "ui-slider-handle-snapping" );
-
-                       options = control.find( "option" );
-
-                       for(var i = 0, optionsCount = options.length; i < optionsCount; i++){
-                               var side = !i ? "b":"a",
-                                       sliderTheme = !i ? " ui-btn-down-" + trackTheme :( " " + $.mobile.activeBtnClass ),
-                                       sliderLabel = document.createElement('div'),
-                                       sliderImg = document.createElement('span');
-
-                               sliderImg.className = ['ui-slider-label ui-slider-label-',side,sliderTheme," ui-btn-corner-all"].join("");
-                               sliderImg.setAttribute('role','img');
-                               sliderImg.appendChild(document.createTextNode(options[i].innerHTML));
-                               $(sliderImg).prependTo( slider );
-                       }
-
-                       self._labels = $( ".ui-slider-label", slider );
-
-               }
-
-               label.addClass( "ui-slider" );
-
-               // monitor the input for updated values
-               control.addClass( cType === "input" ? "ui-slider-input" : "ui-slider-switch" )
-                       .change( function() {
-                               // if the user dragged the handle, the "change" event was triggered from inside refresh(); don't call refresh() again
-                               if (!self.mouseMoved) {
-                                       self.refresh( val(), true );
-                               }
-                       })
-                       .keyup( function() { // necessary?
-                               self.refresh( val(), true, true );
-                       })
-                       .blur( function() {
-                               self.refresh( val(), true );
-                       });
-
-               // prevent screen drag when slider activated
-               $( document ).bind( "vmousemove", function( event ) {
-                       if ( self.dragging ) {
-                               // self.mouseMoved must be updated before refresh() because it will be used in the control "change" event
-                               self.mouseMoved = true;
-
-                               if ( cType === "select" ) {
-                                       // make the handle move in sync with the mouse
-                                       handle.removeClass( "ui-slider-handle-snapping" );
-                               }
-
-                               self.refresh( event );
-
-                               // only after refresh() you can calculate self.userModified
-                               self.userModified = self.beforeStart !== control[0].selectedIndex;
-                               return false;
-                       }
-               });
-
-               slider.bind( "vmousedown", function( event ) {
-                       self.dragging = true;
-                       self.userModified = false;
-                       self.mouseMoved = false;
-
-                       if ( cType === "select" ) {
-                               self.beforeStart = control[0].selectedIndex;
-                       }
-
-                       self.refresh( event );
-                       return false;
-               })
-               .bind( "vclick", false );
-
-               slider.add( document )
-                       .bind( "vmouseup", function() {
-                               if ( self.dragging ) {
-
-                                       self.dragging = false;
-
-                                       if ( cType === "select") {
-
-                                               // make the handle move with a smooth transition
-                                               handle.addClass( "ui-slider-handle-snapping" );
-
-                                               if ( self.mouseMoved ) {
-
-                                                       // this is a drag, change the value only if user dragged enough
-                                                       if ( self.userModified ) {
-                                                               self.refresh( self.beforeStart == 0 ? 1 : 0 );
-                                                       }
-                                                       else {
-                                                               self.refresh( self.beforeStart );
-                                                       }
-
-                                               }
-                                               else {
-                                                       // this is just a click, change the value
-                                                       self.refresh( self.beforeStart == 0 ? 1 : 0 );
-                                               }
-
-                                       }
-
-                                       self.mouseMoved = false;
-
-                                       return false;
-                               }
-                       });
-
-               slider.insertAfter( control );
-
-               // Only add focus class to toggle switch, sliders get it automatically from ui-btn
-               if( cType == 'select' ) {
-                       this.handle.bind({
-                               focus: function() {
-                                       slider.addClass( $.mobile.focusClass );
-                               },
-
-                               blur: function() {
-                                       slider.removeClass( $.mobile.focusClass );
-                               }
-                       });
-               }
-
-               this.handle.bind({
-                       // NOTE force focus on handle
-                       vmousedown: function() {
-                               $( this ).focus();
-                       },
-
-                       vclick: false,
-
-                       keydown: function( event ) {
-                               var index = val();
-
-                               if ( self.options.disabled ) {
-                                       return;
-                               }
-
-                               // In all cases prevent the default and mark the handle as active
-                               switch ( event.keyCode ) {
-                                       case $.mobile.keyCode.HOME:
-                                       case $.mobile.keyCode.END:
-                                       case $.mobile.keyCode.PAGE_UP:
-                                       case $.mobile.keyCode.PAGE_DOWN:
-                                       case $.mobile.keyCode.UP:
-                                       case $.mobile.keyCode.RIGHT:
-                                       case $.mobile.keyCode.DOWN:
-                                       case $.mobile.keyCode.LEFT:
-                                               event.preventDefault();
-
-                                               if ( !self._keySliding ) {
-                                                       self._keySliding = true;
-                                                       $( this ).addClass( "ui-state-active" );
-                                               }
-                                               break;
-                               }
-
-                               // move the slider according to the keypress
-                               switch ( event.keyCode ) {
-                                       case $.mobile.keyCode.HOME:
-                                               self.refresh( min );
-                                               break;
-                                       case $.mobile.keyCode.END:
-                                               self.refresh( max );
-                                               break;
-                                       case $.mobile.keyCode.PAGE_UP:
-                                       case $.mobile.keyCode.UP:
-                                       case $.mobile.keyCode.RIGHT:
-                                               self.refresh( index + step );
-                                               break;
-                                       case $.mobile.keyCode.PAGE_DOWN:
-                                       case $.mobile.keyCode.DOWN:
-                                       case $.mobile.keyCode.LEFT:
-                                               self.refresh( index - step );
-                                               break;
-                               }
-                       }, // remove active mark
-
-                       keyup: function( event ) {
-                               if ( self._keySliding ) {
-                                       self._keySliding = false;
-                                       $( this ).removeClass( "ui-state-active" );
-                               }
-                       }
-                       });
-
-               this.refresh(undefined, undefined, true);
-       },
-
-       refresh: function( val, isfromControl, preventInputUpdate ) {
-
-               if ( this.options.disabled || this.element.attr('disabled')) {
-                       this.disable();
-               }
-
-               var control = this.element, percent,
-                       cType = control[0].nodeName.toLowerCase(),
-                       min = cType === "input" ? parseFloat( control.attr( "min" ) ) : 0,
-                       max = cType === "input" ? parseFloat( control.attr( "max" ) ) : control.find( "option" ).length - 1,
-                       step = (cType === "input" && parseFloat( control.attr( "step" ) ) > 0) ? parseFloat(control.attr("step")) : 1;
-
-               if ( typeof val === "object" ) {
-                       var data = val,
-                               // a slight tolerance helped get to the ends of the slider
-                               tol = 8;
-                       if ( !this.dragging ||
-                                       data.pageX < this.slider.offset().left - tol ||
-                                       data.pageX > this.slider.offset().left + this.slider.width() + tol ) {
-                               return;
-                       }
-                       percent = Math.round( ( ( data.pageX - this.slider.offset().left ) / this.slider.width() ) * 100 );
-               } else {
-                       if ( val == null ) {
-                               val = cType === "input" ? parseFloat( control.val() || 0 ) : control[0].selectedIndex;
-                       }
-                       percent = ( parseFloat( val ) - min ) / ( max - min ) * 100;
-               }
-
-               if ( isNaN( percent ) ) {
-                       return;
-               }
-
-               if ( percent < 0 ) {
-                       percent = 0;
-               }
-
-               if ( percent > 100 ) {
-                       percent = 100;
-               }
-
-               var newval = ( percent / 100 ) * ( max - min ) + min;
-
-               //from jQuery UI slider, the following source will round to the nearest step
-               var valModStep = ( newval - min ) % step;
-               var alignValue = newval - valModStep;
-
-               if ( Math.abs( valModStep ) * 2 >= step ) {
-                       alignValue += ( valModStep > 0 ) ? step : ( -step );
-               }
-               // Since JavaScript has problems with large floats, round
-               // the final value to 5 digits after the decimal point (see jQueryUI: #4124)
-               newval = parseFloat( alignValue.toFixed(5) );
-
-               if ( newval < min ) {
-                       newval = min;
-               }
-
-               if ( newval > max ) {
-                       newval = max;
-               }
-
-               this.handle.css( "left", percent + "%" );
-               this.handle.attr( {
-                               "aria-valuenow": cType === "input" ? newval : control.find( "option" ).eq( newval ).attr( "value" ),
-                               "aria-valuetext": cType === "input" ? newval : control.find( "option" ).eq( newval ).getEncodedText(),
-                               title: cType === "input" ? newval : control.find( "option" ).eq( newval ).getEncodedText()
-                       });
-               this.valuebg && this.valuebg.css( "width", percent + "%" );
-
-               // drag the label widths
-               if ( this._labels ) {
-                       var handlePercent = this.handle.width() / this.slider.width() * 100,
-                               aPercent = percent && handlePercent + ( 100 - handlePercent ) * percent / 100,
-                               bPercent = percent === 100 ? 0 : Math.min( handlePercent + 100 - aPercent, 100 );
-
-                       this._labels.each(function(){
-                               var ab = $(this).is( ".ui-slider-label-a" );
-                               $( this ).width( ( ab ? aPercent : bPercent  ) + "%" );
-                       });
-               }
-
-               if ( !preventInputUpdate ) {
-                       var valueChanged = false;
-
-                       // update control"s value
-                       if ( cType === "input" ) {
-                               valueChanged = control.val() !== newval;
-                               control.val( newval );
-                       } else {
-                               valueChanged = control[ 0 ].selectedIndex !== newval;
-                               control[ 0 ].selectedIndex = newval;
-                       }
-                       if ( !isfromControl && valueChanged ) {
-                               control.trigger( "change" );
-                       }
-               }
-       },
-
-       enable: function() {
-               this.element.attr( "disabled", false );
-               this.slider.removeClass( "ui-disabled" ).attr( "aria-disabled", false );
-               return this._setOption( "disabled", false );
-       },
-
-       disable: function() {
-               this.element.attr( "disabled", true );
-               this.slider.addClass( "ui-disabled" ).attr( "aria-disabled", true );
-               return this._setOption( "disabled", true );
-       }
-
-});
-
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-       $.mobile.slider.prototype.enhanceWithin( e.target, true );
-});
-
-})( jQuery );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.textinput.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.textinput.js
deleted file mode 100644 (file)
index f444522..0000000
+++ /dev/null
@@ -1,154 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Enhances and consistently styles text inputs.
-//>>label: Text Inputs & Textareas
-//>>group: Forms
-//>>css: ../css/themes/default/jquery.mobile.theme.css, ../css/structure/jquery.mobile.forms.textinput.css
-
-define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.widget", "./jquery.mobile.degradeInputs", "./jquery.mobile.buttonMarkup", "./jquery.mobile.zoom"  ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, undefined ) {
-
-$.widget( "mobile.textinput", $.mobile.widget, {
-       options: {
-               theme: null,
-               // This option defaults to true on iOS devices.
-               preventFocusZoom: /iPhone|iPad|iPod/.test( navigator.platform ) && navigator.userAgent.indexOf( "AppleWebKit" ) > -1,
-               initSelector: "input[type='text'], input[type='search'], :jqmData(type='search'), input[type='number'], :jqmData(type='number'), input[type='password'], input[type='email'], input[type='url'], input[type='tel'], textarea, input[type='time'], input[type='date'], input[type='month'], input[type='week'], input[type='datetime'], input[type='datetime-local'], input[type='color'], input:not([type])",
-               clearSearchButtonText: "clear text"
-       },
-
-       _create: function() {
-
-               var input = this.element,
-                       o = this.options,
-                       theme = o.theme || $.mobile.getInheritedTheme( this.element, "c" ),
-                       themeclass  = " ui-body-" + theme,
-                       mini = input.jqmData("mini") == true,
-                       miniclass = mini ? " ui-mini" : "",
-                       focusedEl, clearbtn;
-
-               $( "label[for='" + input.attr( "id" ) + "']" ).addClass( "ui-input-text" );
-
-               focusedEl = input.addClass("ui-input-text ui-body-"+ theme );
-
-               // XXX: Temporary workaround for issue 785 (Apple bug 8910589).
-               //      Turn off autocorrect and autocomplete on non-iOS 5 devices
-               //      since the popup they use can't be dismissed by the user. Note
-               //      that we test for the presence of the feature by looking for
-               //      the autocorrect property on the input element. We currently
-               //      have no test for iOS 5 or newer so we're temporarily using
-               //      the touchOverflow support flag for jQM 1.0. Yes, I feel dirty. - jblas
-               if ( typeof input[0].autocorrect !== "undefined" && !$.support.touchOverflow ) {
-                       // Set the attribute instead of the property just in case there
-                       // is code that attempts to make modifications via HTML.
-                       input[0].setAttribute( "autocorrect", "off" );
-                       input[0].setAttribute( "autocomplete", "off" );
-               }
-
-
-               //"search" input widget
-               if ( input.is( "[type='search'],:jqmData(type='search')" ) ) {
-
-                       focusedEl = input.wrap( "<div class='ui-input-search ui-shadow-inset ui-btn-corner-all ui-btn-shadow ui-icon-searchfield" + themeclass + miniclass + "'></div>" ).parent();
-                       clearbtn = $( "<a href='#' class='ui-input-clear' title='" + o.clearSearchButtonText + "'>" + o.clearSearchButtonText + "</a>" )
-                               .bind('click', function( event ) {
-                                       input
-                                               .val( "" )
-                                               .focus()
-                                               .trigger( "change" );
-                                       clearbtn.addClass( "ui-input-clear-hidden" );
-                                       event.preventDefault();
-                               })
-                               .appendTo( focusedEl )
-                               .buttonMarkup({
-                                       icon: "delete",
-                                       iconpos: "notext",
-                                       corners: true,
-                                       shadow: true,
-                                       mini: mini
-                               });
-
-                       function toggleClear() {
-                               setTimeout(function() {
-                                       clearbtn.toggleClass( "ui-input-clear-hidden", !input.val() );
-                               }, 0);
-                       }
-
-                       toggleClear();
-
-                       input.bind('paste cut keyup focus change blur', toggleClear);
-
-               } else {
-                       input.addClass( "ui-corner-all ui-shadow-inset" + themeclass + miniclass );
-               }
-
-               input.focus(function() {
-                               focusedEl.addClass( $.mobile.focusClass );
-                       })
-                       .blur(function(){
-                               focusedEl.removeClass( $.mobile.focusClass );
-                       })
-                       // In many situations, iOS will zoom into the select upon tap, this prevents that from happening
-                       .bind( "focus", function() {
-                               if( o.preventFocusZoom ){
-                                       $.mobile.zoom.disable( true );
-                               }
-                       })
-                       .bind( "blur", function() {
-                               if( o.preventFocusZoom ){
-                                       $.mobile.zoom.enable( true );
-                               }
-                       });
-
-               // Autogrow
-               if ( input.is( "textarea" ) ) {
-                       var extraLineHeight = 15,
-                               keyupTimeoutBuffer = 100,
-                               keyup = function() {
-                                       var scrollHeight = input[ 0 ].scrollHeight,
-                                               clientHeight = input[ 0 ].clientHeight;
-
-                                       if ( clientHeight < scrollHeight ) {
-                                               input.height(scrollHeight + extraLineHeight);
-                                       }
-                               },
-                               keyupTimeout;
-
-                       input.keyup(function() {
-                               clearTimeout( keyupTimeout );
-                               keyupTimeout = setTimeout( keyup, keyupTimeoutBuffer );
-                       });
-
-                       // binding to pagechange here ensures that for pages loaded via
-                       // ajax the height is recalculated without user input
-                       $( document ).one( "pagechange", keyup );
-
-                       // Issue 509: the browser is not providing scrollHeight properly until the styles load
-                       if ( $.trim( input.val() ) ) {
-                               // bind to the window load to make sure the height is calculated based on BOTH
-                               // the DOM and CSS
-                               $( window ).load( keyup );
-                       }
-               }
-       },
-
-       disable: function(){
-               ( this.element.attr( "disabled", true ).is( "[type='search'],:jqmData(type='search')" ) ?
-                       this.element.parent() : this.element ).addClass( "ui-disabled" );
-       },
-
-       enable: function(){
-               ( this.element.attr( "disabled", false).is( "[type='search'],:jqmData(type='search')" ) ?
-                       this.element.parent() : this.element ).removeClass( "ui-disabled" );
-       }
-});
-
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-       $.mobile.textinput.prototype.enhanceWithin( e.target, true );
-});
-
-})( jQuery );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.grid.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.grid.js
deleted file mode 100644 (file)
index 8c39875..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Applies classes for creating grid or column styling.
-//>>label: Grid Layouts (Columns)
-//>>group: Widgets
-//>>css: ../css/themes/default/jquery.mobile.theme.css, ../css/structure/jquery.mobile.grid.css
-
-define( [ "jquery" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, undefined ) {
-
-$.fn.grid = function( options ) {
-       return this.each(function() {
-
-               var $this = $( this ),
-                       o = $.extend({
-                               grid: null
-                       },options),
-                       $kids = $this.children(),
-                       gridCols = {solo:1, a:2, b:3, c:4, d:5},
-                       grid = o.grid,
-                       iterator;
-
-                       if ( !grid ) {
-                               if ( $kids.length <= 5 ) {
-                                       for ( var letter in gridCols ) {
-                                               if ( gridCols[ letter ] === $kids.length ) {
-                                                       grid = letter;
-                                               }
-                                       }
-                               } else {
-                                       grid = "a";
-                               }
-                       }
-                       iterator = gridCols[grid];
-
-               $this.addClass( "ui-grid-" + grid );
-
-               $kids.filter( ":nth-child(" + iterator + "n+1)" ).addClass( "ui-block-a" );
-
-               if ( iterator > 1 ) {
-                       $kids.filter( ":nth-child(" + iterator + "n+2)" ).addClass( "ui-block-b" );
-               }
-               if ( iterator > 2 ) {
-                       $kids.filter( ":nth-child(3n+3)" ).addClass( "ui-block-c" );
-               }
-               if ( iterator > 3 ) {
-                       $kids.filter( ":nth-child(4n+4)" ).addClass( "ui-block-d" );
-               }
-               if ( iterator > 4 ) {
-                       $kids.filter( ":nth-child(5n+5)" ).addClass( "ui-block-e" );
-               }
-       });
-};
-})( jQuery );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.hashchange.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.hashchange.js
deleted file mode 100644 (file)
index d6591be..0000000
+++ /dev/null
@@ -1,386 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Hashchange event management for AJAX navigation system
-//>>label: Hashchange
-//>>group: Navigation
-//>>excludeEnd("jqmBuildExclude");
-
-
-// Script: jQuery hashchange event
-// 
-// *Version: 1.3, Last updated: 7/21/2010*
-// 
-// Project Home - http://benalman.com/projects/jquery-hashchange-plugin/
-// GitHub       - http://github.com/cowboy/jquery-hashchange/
-// Source       - http://github.com/cowboy/jquery-hashchange/raw/master/jquery.ba-hashchange.js
-// (Minified)   - http://github.com/cowboy/jquery-hashchange/raw/master/jquery.ba-hashchange.min.js (0.8kb gzipped)
-// 
-// About: License
-// 
-// Copyright (c) 2010 "Cowboy" Ben Alman,
-// Dual licensed under the MIT and GPL licenses.
-// http://benalman.com/about/license/
-// 
-// About: Examples
-// 
-// These working examples, complete with fully commented code, illustrate a few
-// ways in which this plugin can be used.
-// 
-// hashchange event - http://benalman.com/code/projects/jquery-hashchange/examples/hashchange/
-// document.domain - http://benalman.com/code/projects/jquery-hashchange/examples/document_domain/
-// 
-// About: Support and Testing
-// 
-// Information about what version or versions of jQuery this plugin has been
-// tested with, what browsers it has been tested in, and where the unit tests
-// reside (so you can test it yourself).
-// 
-// jQuery Versions - 1.2.6, 1.3.2, 1.4.1, 1.4.2
-// Browsers Tested - Internet Explorer 6-8, Firefox 2-4, Chrome 5-6, Safari 3.2-5,
-//                   Opera 9.6-10.60, iPhone 3.1, Android 1.6-2.2, BlackBerry 4.6-5.
-// Unit Tests      - http://benalman.com/code/projects/jquery-hashchange/unit/
-// 
-// About: Known issues
-// 
-// While this jQuery hashchange event implementation is quite stable and
-// robust, there are a few unfortunate browser bugs surrounding expected
-// hashchange event-based behaviors, independent of any JavaScript
-// window.onhashchange abstraction. See the following examples for more
-// information:
-// 
-// Chrome: Back Button - http://benalman.com/code/projects/jquery-hashchange/examples/bug-chrome-back-button/
-// Firefox: Remote XMLHttpRequest - http://benalman.com/code/projects/jquery-hashchange/examples/bug-firefox-remote-xhr/
-// WebKit: Back Button in an Iframe - http://benalman.com/code/projects/jquery-hashchange/examples/bug-webkit-hash-iframe/
-// Safari: Back Button from a different domain - http://benalman.com/code/projects/jquery-hashchange/examples/bug-safari-back-from-diff-domain/
-// 
-// Also note that should a browser natively support the window.onhashchange 
-// event, but not report that it does, the fallback polling loop will be used.
-// 
-// About: Release History
-// 
-// 1.3   - (7/21/2010) Reorganized IE6/7 Iframe code to make it more
-//         "removable" for mobile-only development. Added IE6/7 document.title
-//         support. Attempted to make Iframe as hidden as possible by using
-//         techniques from http://www.paciellogroup.com/blog/?p=604. Added 
-//         support for the "shortcut" format $(window).hashchange( fn ) and
-//         $(window).hashchange() like jQuery provides for built-in events.
-//         Renamed jQuery.hashchangeDelay to <jQuery.fn.hashchange.delay> and
-//         lowered its default value to 50. Added <jQuery.fn.hashchange.domain>
-//         and <jQuery.fn.hashchange.src> properties plus document-domain.html
-//         file to address access denied issues when setting document.domain in
-//         IE6/7.
-// 1.2   - (2/11/2010) Fixed a bug where coming back to a page using this plugin
-//         from a page on another domain would cause an error in Safari 4. Also,
-//         IE6/7 Iframe is now inserted after the body (this actually works),
-//         which prevents the page from scrolling when the event is first bound.
-//         Event can also now be bound before DOM ready, but it won't be usable
-//         before then in IE6/7.
-// 1.1   - (1/21/2010) Incorporated document.documentMode test to fix IE8 bug
-//         where browser version is incorrectly reported as 8.0, despite
-//         inclusion of the X-UA-Compatible IE=EmulateIE7 meta tag.
-// 1.0   - (1/9/2010) Initial Release. Broke out the jQuery BBQ event.special
-//         window.onhashchange functionality into a separate plugin for users
-//         who want just the basic event & back button support, without all the
-//         extra awesomeness that BBQ provides. This plugin will be included as
-//         part of jQuery BBQ, but also be available separately.
-
-(function($,window,undefined){
-  // Reused string.
-  var str_hashchange = 'hashchange',
-    
-    // Method / object references.
-    doc = document,
-    fake_onhashchange,
-    special = $.event.special,
-    
-    // Does the browser support window.onhashchange? Note that IE8 running in
-    // IE7 compatibility mode reports true for 'onhashchange' in window, even
-    // though the event isn't supported, so also test document.documentMode.
-    doc_mode = doc.documentMode,
-    supports_onhashchange = 'on' + str_hashchange in window && ( doc_mode === undefined || doc_mode > 7 );
-  
-  // Get location.hash (or what you'd expect location.hash to be) sans any
-  // leading #. Thanks for making this necessary, Firefox!
-  function get_fragment( url ) {
-    url = url || location.href;
-    return '#' + url.replace( /^[^#]*#?(.*)$/, '$1' );
-  };
-  
-  // Method: jQuery.fn.hashchange
-  // 
-  // Bind a handler to the window.onhashchange event or trigger all bound
-  // window.onhashchange event handlers. This behavior is consistent with
-  // jQuery's built-in event handlers.
-  // 
-  // Usage:
-  // 
-  // > jQuery(window).hashchange( [ handler ] );
-  // 
-  // Arguments:
-  // 
-  //  handler - (Function) Optional handler to be bound to the hashchange
-  //    event. This is a "shortcut" for the more verbose form:
-  //    jQuery(window).bind( 'hashchange', handler ). If handler is omitted,
-  //    all bound window.onhashchange event handlers will be triggered. This
-  //    is a shortcut for the more verbose
-  //    jQuery(window).trigger( 'hashchange' ). These forms are described in
-  //    the <hashchange event> section.
-  // 
-  // Returns:
-  // 
-  //  (jQuery) The initial jQuery collection of elements.
-  
-  // Allow the "shortcut" format $(elem).hashchange( fn ) for binding and
-  // $(elem).hashchange() for triggering, like jQuery does for built-in events.
-  $.fn[ str_hashchange ] = function( fn ) {
-    return fn ? this.bind( str_hashchange, fn ) : this.trigger( str_hashchange );
-  };
-  
-  // Property: jQuery.fn.hashchange.delay
-  // 
-  // The numeric interval (in milliseconds) at which the <hashchange event>
-  // polling loop executes. Defaults to 50.
-  
-  // Property: jQuery.fn.hashchange.domain
-  // 
-  // If you're setting document.domain in your JavaScript, and you want hash
-  // history to work in IE6/7, not only must this property be set, but you must
-  // also set document.domain BEFORE jQuery is loaded into the page. This
-  // property is only applicable if you are supporting IE6/7 (or IE8 operating
-  // in "IE7 compatibility" mode).
-  // 
-  // In addition, the <jQuery.fn.hashchange.src> property must be set to the
-  // path of the included "document-domain.html" file, which can be renamed or
-  // modified if necessary (note that the document.domain specified must be the
-  // same in both your main JavaScript as well as in this file).
-  // 
-  // Usage:
-  // 
-  // jQuery.fn.hashchange.domain = document.domain;
-  
-  // Property: jQuery.fn.hashchange.src
-  // 
-  // If, for some reason, you need to specify an Iframe src file (for example,
-  // when setting document.domain as in <jQuery.fn.hashchange.domain>), you can
-  // do so using this property. Note that when using this property, history
-  // won't be recorded in IE6/7 until the Iframe src file loads. This property
-  // is only applicable if you are supporting IE6/7 (or IE8 operating in "IE7
-  // compatibility" mode).
-  // 
-  // Usage:
-  // 
-  // jQuery.fn.hashchange.src = 'path/to/file.html';
-  
-  $.fn[ str_hashchange ].delay = 50;
-  /*
-  $.fn[ str_hashchange ].domain = null;
-  $.fn[ str_hashchange ].src = null;
-  */
-  
-  // Event: hashchange event
-  // 
-  // Fired when location.hash changes. In browsers that support it, the native
-  // HTML5 window.onhashchange event is used, otherwise a polling loop is
-  // initialized, running every <jQuery.fn.hashchange.delay> milliseconds to
-  // see if the hash has changed. In IE6/7 (and IE8 operating in "IE7
-  // compatibility" mode), a hidden Iframe is created to allow the back button
-  // and hash-based history to work.
-  // 
-  // Usage as described in <jQuery.fn.hashchange>:
-  // 
-  // > // Bind an event handler.
-  // > jQuery(window).hashchange( function(e) {
-  // >   var hash = location.hash;
-  // >   ...
-  // > });
-  // > 
-  // > // Manually trigger the event handler.
-  // > jQuery(window).hashchange();
-  // 
-  // A more verbose usage that allows for event namespacing:
-  // 
-  // > // Bind an event handler.
-  // > jQuery(window).bind( 'hashchange', function(e) {
-  // >   var hash = location.hash;
-  // >   ...
-  // > });
-  // > 
-  // > // Manually trigger the event handler.
-  // > jQuery(window).trigger( 'hashchange' );
-  // 
-  // Additional Notes:
-  // 
-  // * The polling loop and Iframe are not created until at least one handler
-  //   is actually bound to the 'hashchange' event.
-  // * If you need the bound handler(s) to execute immediately, in cases where
-  //   a location.hash exists on page load, via bookmark or page refresh for
-  //   example, use jQuery(window).hashchange() or the more verbose 
-  //   jQuery(window).trigger( 'hashchange' ).
-  // * The event can be bound before DOM ready, but since it won't be usable
-  //   before then in IE6/7 (due to the necessary Iframe), recommended usage is
-  //   to bind it inside a DOM ready handler.
-  
-  // Override existing $.event.special.hashchange methods (allowing this plugin
-  // to be defined after jQuery BBQ in BBQ's source code).
-  special[ str_hashchange ] = $.extend( special[ str_hashchange ], {
-    
-    // Called only when the first 'hashchange' event is bound to window.
-    setup: function() {
-      // If window.onhashchange is supported natively, there's nothing to do..
-      if ( supports_onhashchange ) { return false; }
-      
-      // Otherwise, we need to create our own. And we don't want to call this
-      // until the user binds to the event, just in case they never do, since it
-      // will create a polling loop and possibly even a hidden Iframe.
-      $( fake_onhashchange.start );
-    },
-    
-    // Called only when the last 'hashchange' event is unbound from window.
-    teardown: function() {
-      // If window.onhashchange is supported natively, there's nothing to do..
-      if ( supports_onhashchange ) { return false; }
-      
-      // Otherwise, we need to stop ours (if possible).
-      $( fake_onhashchange.stop );
-    }
-    
-  });
-  
-  // fake_onhashchange does all the work of triggering the window.onhashchange
-  // event for browsers that don't natively support it, including creating a
-  // polling loop to watch for hash changes and in IE 6/7 creating a hidden
-  // Iframe to enable back and forward.
-  fake_onhashchange = (function(){
-    var self = {},
-      timeout_id,
-      
-      // Remember the initial hash so it doesn't get triggered immediately.
-      last_hash = get_fragment(),
-      
-      fn_retval = function(val){ return val; },
-      history_set = fn_retval,
-      history_get = fn_retval;
-    
-    // Start the polling loop.
-    self.start = function() {
-      timeout_id || poll();
-    };
-    
-    // Stop the polling loop.
-    self.stop = function() {
-      timeout_id && clearTimeout( timeout_id );
-      timeout_id = undefined;
-    };
-    
-    // This polling loop checks every $.fn.hashchange.delay milliseconds to see
-    // if location.hash has changed, and triggers the 'hashchange' event on
-    // window when necessary.
-    function poll() {
-      var hash = get_fragment(),
-        history_hash = history_get( last_hash );
-      
-      if ( hash !== last_hash ) {
-        history_set( last_hash = hash, history_hash );
-        
-        $(window).trigger( str_hashchange );
-        
-      } else if ( history_hash !== last_hash ) {
-        location.href = location.href.replace( /#.*/, '' ) + history_hash;
-      }
-      
-      timeout_id = setTimeout( poll, $.fn[ str_hashchange ].delay );
-    };
-    
-    // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
-    // vvvvvvvvvvvvvvvvvvv REMOVE IF NOT SUPPORTING IE6/7/8 vvvvvvvvvvvvvvvvvvv
-    // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
-    $.browser.msie && !supports_onhashchange && (function(){
-      // Not only do IE6/7 need the "magical" Iframe treatment, but so does IE8
-      // when running in "IE7 compatibility" mode.
-      
-      var iframe,
-        iframe_src;
-      
-      // When the event is bound and polling starts in IE 6/7, create a hidden
-      // Iframe for history handling.
-      self.start = function(){
-        if ( !iframe ) {
-          iframe_src = $.fn[ str_hashchange ].src;
-          iframe_src = iframe_src && iframe_src + get_fragment();
-          
-          // Create hidden Iframe. Attempt to make Iframe as hidden as possible
-          // by using techniques from http://www.paciellogroup.com/blog/?p=604.
-          iframe = $('<iframe tabindex="-1" title="empty"/>').hide()
-            
-            // When Iframe has completely loaded, initialize the history and
-            // start polling.
-            .one( 'load', function(){
-              iframe_src || history_set( get_fragment() );
-              poll();
-            })
-            
-            // Load Iframe src if specified, otherwise nothing.
-            .attr( 'src', iframe_src || 'javascript:0' )
-            
-            // Append Iframe after the end of the body to prevent unnecessary
-            // initial page scrolling (yes, this works).
-            .insertAfter( 'body' )[0].contentWindow;
-          
-          // Whenever `document.title` changes, update the Iframe's title to
-          // prettify the back/next history menu entries. Since IE sometimes
-          // errors with "Unspecified error" the very first time this is set
-          // (yes, very useful) wrap this with a try/catch block.
-          doc.onpropertychange = function(){
-            try {
-              if ( event.propertyName === 'title' ) {
-                iframe.document.title = doc.title;
-              }
-            } catch(e) {}
-          };
-          
-        }
-      };
-      
-      // Override the "stop" method since an IE6/7 Iframe was created. Even
-      // if there are no longer any bound event handlers, the polling loop
-      // is still necessary for back/next to work at all!
-      self.stop = fn_retval;
-      
-      // Get history by looking at the hidden Iframe's location.hash.
-      history_get = function() {
-        return get_fragment( iframe.location.href );
-      };
-      
-      // Set a new history item by opening and then closing the Iframe
-      // document, *then* setting its location.hash. If document.domain has
-      // been set, update that as well.
-      history_set = function( hash, history_hash ) {
-        var iframe_doc = iframe.document,
-          domain = $.fn[ str_hashchange ].domain;
-        
-        if ( hash !== history_hash ) {
-          // Update Iframe with any initial `document.title` that might be set.
-          iframe_doc.title = doc.title;
-          
-          // Opening the Iframe's document after it has been closed is what
-          // actually adds a history entry.
-          iframe_doc.open();
-          
-          // Set document.domain for the Iframe document as well, if necessary.
-          domain && iframe_doc.write( '<script>document.domain="' + domain + '"</script>' );
-          
-          iframe_doc.close();
-          
-          // Update the Iframe's hash, for great justice.
-          iframe.location.hash = hash;
-        }
-      };
-      
-    })();
-    // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-    // ^^^^^^^^^^^^^^^^^^^ REMOVE IF NOT SUPPORTING IE6/7/8 ^^^^^^^^^^^^^^^^^^^
-    // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-    
-    return self;
-  })();
-  
-})(jQuery,this);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.init.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.init.js
deleted file mode 100644 (file)
index 93c03e8..0000000
+++ /dev/null
@@ -1,193 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Global initialization of the library.
-//>>label: Init
-//>>group: Core
-
-
-define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.support", "./jquery.mobile.navigation",
-       "./jquery.mobile.navigation.pushstate", "../external/requirejs/depend!./jquery.mobile.hashchange[jquery]" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-( function( $, window, undefined ) {
-       var     $html = $( "html" ),
-                       $head = $( "head" ),
-                       $window = $( window );
-
-       // trigger mobileinit event - useful hook for configuring $.mobile settings before they're used
-       $( window.document ).trigger( "mobileinit" );
-
-       // support conditions
-       // if device support condition(s) aren't met, leave things as they are -> a basic, usable experience,
-       // otherwise, proceed with the enhancements
-       if ( !$.mobile.gradeA() ) {
-               return;
-       }
-
-       // override ajaxEnabled on platforms that have known conflicts with hash history updates
-       // or generally work better browsing in regular http for full page refreshes (BB5, Opera Mini)
-       if ( $.mobile.ajaxBlacklist ) {
-               $.mobile.ajaxEnabled = false;
-       }
-
-       // Add mobile, initial load "rendering" classes to docEl
-       $html.addClass( "ui-mobile ui-mobile-rendering" );
-
-       // This is a fallback. If anything goes wrong (JS errors, etc), or events don't fire,
-       // this ensures the rendering class is removed after 5 seconds, so content is visible and accessible
-       setTimeout( hideRenderingClass, 5000 );
-
-       // loading div which appears during Ajax requests
-       // will not appear if $.mobile.loadingMessage is false
-       var loaderClass = "ui-loader",
-               $loader = $( "<div class='" + loaderClass + "'><span class='ui-icon ui-icon-loading'></span><h1></h1></div>" );
-
-       // For non-fixed supportin browsers. Position at y center (if scrollTop supported), above the activeBtn (if defined), or just 100px from top
-       function fakeFixLoader(){
-               var activeBtn = $( "." + $.mobile.activeBtnClass ).first();
-
-               $loader
-                       .css({
-                               top: $.support.scrollTop && $window.scrollTop() + $window.height() / 2 ||
-                               activeBtn.length && activeBtn.offset().top || 100
-                       });
-       }
-
-       // check position of loader to see if it appears to be "fixed" to center
-       // if not, use abs positioning
-       function checkLoaderPosition(){
-               var offset = $loader.offset(),
-                       scrollTop = $window.scrollTop(),
-                       screenHeight = $.mobile.getScreenHeight();
-
-               if( offset.top < scrollTop || (offset.top - scrollTop) > screenHeight ) {
-                       $loader.addClass( "ui-loader-fakefix" );
-                       fakeFixLoader();
-                       $window
-                               .unbind( "scroll", checkLoaderPosition )
-                               .bind( "scroll", fakeFixLoader );
-               }
-       }
-
-       //remove initial build class (only present on first pageshow)
-       function hideRenderingClass(){
-               $html.removeClass( "ui-mobile-rendering" );
-       }
-
-       $.extend($.mobile, {
-               // turn on/off page loading message.
-               showPageLoadingMsg: function( theme, msgText, textonly ) {
-                       $html.addClass( "ui-loading" );
-
-                       if ( $.mobile.loadingMessage ) {
-                               // text visibility from argument takes priority
-                               var textVisible = textonly || $.mobile.loadingMessageTextVisible;
-
-                               theme = theme || $.mobile.loadingMessageTheme,
-
-                               $loader
-                                       .attr( "class", loaderClass + " ui-corner-all ui-body-" + ( theme || "a" ) + " ui-loader-" + ( textVisible ? "verbose" : "default" ) + ( textonly ? " ui-loader-textonly" : "" ) )
-                                       .find( "h1" )
-                                               .text( msgText || $.mobile.loadingMessage )
-                                               .end()
-                                       .appendTo( $.mobile.pageContainer );
-
-                               checkLoaderPosition();
-                               $window.bind( "scroll", checkLoaderPosition );
-                       }
-               },
-
-               hidePageLoadingMsg: function() {
-                       $html.removeClass( "ui-loading" );
-
-                       if( $.mobile.loadingMessage ){
-                               $loader.removeClass( "ui-loader-fakefix" );
-                       }
-
-                       $( window ).unbind( "scroll", fakeFixLoader );
-                       $( window ).unbind( "scroll", checkLoaderPosition );
-               },
-
-               // find and enhance the pages in the dom and transition to the first page.
-               initializePage: function() {
-                       // find present pages
-                       var $pages = $( ":jqmData(role='page'), :jqmData(role='dialog')" );
-
-                       // if no pages are found, create one with body's inner html
-                       if ( !$pages.length ) {
-                               $pages = $( "body" ).wrapInner( "<div data-" + $.mobile.ns + "role='page'></div>" ).children( 0 );
-                       }
-
-                       // add dialogs, set data-url attrs
-                       $pages.each(function() {
-                               var $this = $(this);
-
-                               // unless the data url is already set set it to the pathname
-                               if ( !$this.jqmData("url") ) {
-                                       $this.attr( "data-" + $.mobile.ns + "url", $this.attr( "id" ) || location.pathname + location.search );
-                               }
-                       });
-
-                       // define first page in dom case one backs out to the directory root (not always the first page visited, but defined as fallback)
-                       $.mobile.firstPage = $pages.first();
-
-                       // define page container
-                       $.mobile.pageContainer = $pages.first().parent().addClass( "ui-mobile-viewport" );
-
-                       // alert listeners that the pagecontainer has been determined for binding
-                       // to events triggered on it
-                       $window.trigger( "pagecontainercreate" );
-
-                       // cue page loading message
-                       $.mobile.showPageLoadingMsg();
-
-                       //remove initial build class (only present on first pageshow)
-                       hideRenderingClass();
-
-                       // if hashchange listening is disabled or there's no hash deeplink, change to the first page in the DOM
-                       if ( !$.mobile.hashListeningEnabled || !$.mobile.path.stripHash( location.hash ) ) {
-                               $.mobile.changePage( $.mobile.firstPage, { transition: "none", reverse: true, changeHash: false, fromHashChange: true } );
-                       }
-                       // otherwise, trigger a hashchange to load a deeplink
-                       else {
-                               $window.trigger( "hashchange", [ true ] );
-                       }
-               }
-       });
-
-       // initialize events now, after mobileinit has occurred
-       $.mobile._registerInternalEvents();
-
-       // check which scrollTop value should be used by scrolling to 1 immediately at domready
-       // then check what the scroll top is. Android will report 0... others 1
-       // note that this initial scroll won't hide the address bar. It's just for the check.
-       $(function() {
-               window.scrollTo( 0, 1 );
-
-               // if defaultHomeScroll hasn't been set yet, see if scrollTop is 1
-               // it should be 1 in most browsers, but android treats 1 as 0 (for hiding addr bar)
-               // so if it's 1, use 0 from now on
-               $.mobile.defaultHomeScroll = ( !$.support.scrollTop || $(window).scrollTop() === 1 ) ? 0 : 1;
-
-
-               // TODO: Implement a proper registration mechanism with dependency handling in order to not have exceptions like the one below
-               //auto self-init widgets for those widgets that have a soft dependency on others
-               if ( $.fn.controlgroup ) {
-                       $( document ).bind( "pagecreate create", function( e ){
-                               $( ":jqmData(role='controlgroup')", e.target )
-                                       .jqmEnhanceable()
-                                       .controlgroup({ excludeInvisible: false });
-                       });
-               }
-
-               //dom-ready inits
-               if( $.mobile.autoInitializePage ){
-                       $.mobile.initializePage();
-               }
-
-               // window load event
-               // hide iOS browser chrome on load
-               $window.load( $.mobile.silentScroll );
-       });
-}( jQuery, this ));
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.js
deleted file mode 100644 (file)
index dd73b6a..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>group: exclude
-
-define([
-       'require',
-       './jquery.mobile.navigation',
-       './jquery.mobile.navigation.pushstate',
-       './jquery.mobile.transition.pop',
-       './jquery.mobile.transition.slide',
-       './jquery.mobile.transition.slidedown',
-       './jquery.mobile.transition.slideup',
-       './jquery.mobile.transition.flip',
-       './jquery.mobile.transition.flow',
-       './jquery.mobile.transition.turn',
-       './jquery.mobile.degradeInputs',
-       './jquery.mobile.dialog',
-       './jquery.mobile.page.sections',
-       './jquery.mobile.collapsible',
-       './jquery.mobile.collapsibleSet',
-       './jquery.mobile.fieldContain',
-       './jquery.mobile.grid',
-       './jquery.mobile.navbar',
-       './jquery.mobile.listview',
-       './jquery.mobile.listview.filter',
-       './jquery.mobile.nojs',
-       './jquery.mobile.forms.checkboxradio',
-       './jquery.mobile.forms.button',
-       './jquery.mobile.forms.slider',
-       './jquery.mobile.forms.textinput',
-       './jquery.mobile.forms.select.custom',
-       './jquery.mobile.forms.select',
-       './jquery.mobile.buttonMarkup',
-       './jquery.mobile.controlGroup',
-       './jquery.mobile.links',
-       './jquery.mobile.fixedToolbar',
-       './jquery.mobile.zoom',
-       './jquery.mobile.zoom.iosorientationfix'
-], function( require ) {
-       require( [ './jquery.mobile.init' ], function() {} );
-});
-//>>excludeEnd("jqmBuildExclude");
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.links.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.links.js
deleted file mode 100644 (file)
index ff9aa62..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Adds classes to links.
-//>>label: Link Classes
-//>>group: Utilities
-
-
-define( [ "jquery" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, undefined ) {
-
-$( document ).bind( "pagecreate create", function( e ){
-
-       //links within content areas, tests included with page
-       $( e.target )
-               .find( "a" )
-               .jqmEnhanceable()
-               .not( ".ui-btn, .ui-link-inherit, :jqmData(role='none'), :jqmData(role='nojs')" )
-               .addClass( "ui-link" );
-
-});
-
-})( jQuery );
-
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.listview.filter.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.listview.filter.js
deleted file mode 100644 (file)
index a2420d8..0000000
+++ /dev/null
@@ -1,119 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Extends the listview to add a search box to filter lists
-//>>label: Listview: Filter
-//>>group: Widgets
-
-
-define( [ "jquery", "./jquery.mobile.listview", "./jquery.mobile.forms.textinput" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, undefined ) {
-
-$.mobile.listview.prototype.options.filter = false;
-$.mobile.listview.prototype.options.filterPlaceholder = "Filter items...";
-$.mobile.listview.prototype.options.filterTheme = "c";
-$.mobile.listview.prototype.options.filterCallback = function( text, searchValue ){
-       return text.toLowerCase().indexOf( searchValue ) === -1;
-};
-
-$( document ).delegate( ":jqmData(role='listview')", "listviewcreate", function() {
-
-       var list = $( this ),
-               listview = list.data( "listview" );
-
-       if ( !listview.options.filter ) {
-               return;
-       }
-
-       var wrapper = $( "<form>", {
-                       "class": "ui-listview-filter ui-bar-" + listview.options.filterTheme,
-                       "role": "search"
-               }),
-               search = $( "<input>", {
-                       placeholder: listview.options.filterPlaceholder
-               })
-               .attr( "data-" + $.mobile.ns + "type", "search" )
-               .jqmData( "lastval", "" )
-               .bind( "keyup change", function() {
-
-                       var $this = $(this),
-                               val = this.value.toLowerCase(),
-                               listItems = null,
-                               lastval = $this.jqmData( "lastval" ) + "",
-                               childItems = false,
-                               itemtext = "",
-                               item;
-
-                       // Change val as lastval for next execution
-                       $this.jqmData( "lastval" , val );
-                       if ( val.length < lastval.length || val.indexOf(lastval) !== 0 ) {
-
-                               // Removed chars or pasted something totally different, check all items
-                               listItems = list.children();
-                       } else {
-
-                               // Only chars added, not removed, only use visible subset
-                               listItems = list.children( ":not(.ui-screen-hidden)" );
-                       }
-
-                       if ( val ) {
-
-                               // This handles hiding regular rows without the text we search for
-                               // and any list dividers without regular rows shown under it
-
-                               for ( var i = listItems.length - 1; i >= 0; i-- ) {
-                                       item = $( listItems[ i ] );
-                                       itemtext = item.jqmData( "filtertext" ) || item.text();
-
-                                       if ( item.is( "li:jqmData(role=list-divider)" ) ) {
-
-                                               item.toggleClass( "ui-filter-hidequeue" , !childItems );
-
-                                               // New bucket!
-                                               childItems = false;
-
-                                       } else if ( listview.options.filterCallback( itemtext, val ) ) {
-
-                                               //mark to be hidden
-                                               item.toggleClass( "ui-filter-hidequeue" , true );
-                                       } else {
-
-                                               // There's a shown item in the bucket
-                                               childItems = true;
-                                       }
-                               }
-
-                               // Show items, not marked to be hidden
-                               listItems
-                                       .filter( ":not(.ui-filter-hidequeue)" )
-                                       .toggleClass( "ui-screen-hidden", false );
-
-                               // Hide items, marked to be hidden
-                               listItems
-                                       .filter( ".ui-filter-hidequeue" )
-                                       .toggleClass( "ui-screen-hidden", true )
-                                       .toggleClass( "ui-filter-hidequeue", false );
-
-                       } else {
-
-                               //filtervalue is empty => show all
-                               listItems.toggleClass( "ui-screen-hidden", false );
-                       }
-                       listview._refreshCorners();
-               })
-               .appendTo( wrapper )
-               .textinput();
-
-       if ( listview.options.inset ) {
-               wrapper.addClass( "ui-listview-filter-inset" );
-       }
-
-       wrapper.bind( "submit", function() {
-               return false;
-       })
-       .insertBefore( list );
-});
-
-})( jQuery );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.listview.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.listview.js
deleted file mode 100644 (file)
index f3fabfa..0000000
+++ /dev/null
@@ -1,414 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Applies listview styling of various types (standard, numbered, split button, etc.)
-//>>label: Listview
-//>>group: Widgets
-//>>css: ../css/themes/default/jquery.mobile.theme.css, ../css/structure/jquery.mobile.listview.css
-
-define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.buttonMarkup", "./jquery.mobile.page", "./jquery.mobile.page.sections" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, undefined ) {
-
-//Keeps track of the number of lists per page UID
-//This allows support for multiple nested list in the same page
-//https://github.com/jquery/jquery-mobile/issues/1617
-var listCountPerPage = {};
-
-$.widget( "mobile.listview", $.mobile.widget, {
-
-       options: {
-               theme: null,
-               countTheme: "c",
-               headerTheme: "b",
-               dividerTheme: "b",
-               splitIcon: "arrow-r",
-               splitTheme: "b",
-               mini: false,
-               inset: false,
-               initSelector: ":jqmData(role='listview')"
-       },
-
-       _create: function() {
-               var t = this,
-                       listviewClasses = "";
-                       
-               listviewClasses += t.options.inset ? " ui-listview-inset ui-corner-all ui-shadow " : "";
-               listviewClasses += t.element.jqmData( "mini" ) || t.options.mini === true ? " ui-mini" : "";
-               
-               // create listview markup
-               t.element.addClass(function( i, orig ) {
-                       return orig + " ui-listview " + listviewClasses;
-               });
-
-               t.refresh( true );
-       },
-
-       _removeCorners: function( li, which ) {
-               var top = "ui-corner-top ui-corner-tr ui-corner-tl",
-                       bot = "ui-corner-bottom ui-corner-br ui-corner-bl";
-
-               li = li.add( li.find( ".ui-btn-inner, .ui-li-link-alt, .ui-li-thumb" ) );
-
-               if ( which === "top" ) {
-                       li.removeClass( top );
-               } else if ( which === "bottom" ) {
-                       li.removeClass( bot );
-               } else {
-                       li.removeClass( top + " " + bot );
-               }
-       },
-
-       _refreshCorners: function( create ) {
-               var $li,
-                       $visibleli,
-                       $topli,
-                       $bottomli;
-
-               if ( this.options.inset ) {
-                       $li = this.element.children( "li" );
-                       // at create time the li are not visible yet so we need to rely on .ui-screen-hidden
-                       $visibleli = create?$li.not( ".ui-screen-hidden" ):$li.filter( ":visible" );
-
-                       this._removeCorners( $li );
-
-                       // Select the first visible li element
-                       $topli = $visibleli.first()
-                               .addClass( "ui-corner-top" );
-
-                       $topli.add( $topli.find( ".ui-btn-inner" )
-                                       .not( ".ui-li-link-alt span:first-child" ) )
-                                .addClass( "ui-corner-top" )
-                                .end()
-                               .find( ".ui-li-link-alt, .ui-li-link-alt span:first-child" )
-                                       .addClass( "ui-corner-tr" )
-                               .end()
-                               .find( ".ui-li-thumb" )
-                                       .not(".ui-li-icon")
-                                       .addClass( "ui-corner-tl" );
-
-                       // Select the last visible li element
-                       $bottomli = $visibleli.last()
-                               .addClass( "ui-corner-bottom" );
-
-                       $bottomli.add( $bottomli.find( ".ui-btn-inner" ) )
-                               .find( ".ui-li-link-alt" )
-                                       .addClass( "ui-corner-br" )
-                               .end()
-                               .find( ".ui-li-thumb" )
-                                       .not(".ui-li-icon")
-                                       .addClass( "ui-corner-bl" );
-               }
-               if ( !create ) {
-                       this.element.trigger( "updatelayout" );
-               }
-       },
-
-       // This is a generic utility method for finding the first
-       // node with a given nodeName. It uses basic DOM traversal
-       // to be fast and is meant to be a substitute for simple
-       // $.fn.closest() and $.fn.children() calls on a single
-       // element. Note that callers must pass both the lowerCase
-       // and upperCase version of the nodeName they are looking for.
-       // The main reason for this is that this function will be
-       // called many times and we want to avoid having to lowercase
-       // the nodeName from the element every time to ensure we have
-       // a match. Note that this function lives here for now, but may
-       // be moved into $.mobile if other components need a similar method.
-       _findFirstElementByTagName: function( ele, nextProp, lcName, ucName )
-       {
-               var dict = {};
-               dict[ lcName ] = dict[ ucName ] = true;
-               while ( ele ) {
-                       if ( dict[ ele.nodeName ] ) {
-                               return ele;
-                       }
-                       ele = ele[ nextProp ];
-               }
-               return null;
-       },
-       _getChildrenByTagName: function( ele, lcName, ucName )
-       {
-               var results = [],
-                       dict = {};
-               dict[ lcName ] = dict[ ucName ] = true;
-               ele = ele.firstChild;
-               while ( ele ) {
-                       if ( dict[ ele.nodeName ] ) {
-                               results.push( ele );
-                       }
-                       ele = ele.nextSibling;
-               }
-               return $( results );
-       },
-
-       _addThumbClasses: function( containers )
-       {
-               var i, img, len = containers.length;
-               for ( i = 0; i < len; i++ ) {
-                       img = $( this._findFirstElementByTagName( containers[ i ].firstChild, "nextSibling", "img", "IMG" ) );
-                       if ( img.length ) {
-                               img.addClass( "ui-li-thumb" );
-                               $( this._findFirstElementByTagName( img[ 0 ].parentNode, "parentNode", "li", "LI" ) ).addClass( img.is( ".ui-li-icon" ) ? "ui-li-has-icon" : "ui-li-has-thumb" );
-                       }
-               }
-       },
-
-       refresh: function( create ) {
-               this.parentPage = this.element.closest( ".ui-page" );
-               this._createSubPages();
-
-               var o = this.options,
-                       $list = this.element,
-                       self = this,
-                       dividertheme = $list.jqmData( "dividertheme" ) || o.dividerTheme,
-                       listsplittheme = $list.jqmData( "splittheme" ),
-                       listspliticon = $list.jqmData( "spliticon" ),
-                       li = this._getChildrenByTagName( $list[ 0 ], "li", "LI" ),
-                       counter = $.support.cssPseudoElement || !$.nodeName( $list[ 0 ], "ol" ) ? 0 : 1,
-                       itemClassDict = {},
-                       item, itemClass, itemTheme,
-                       a, last, splittheme, countParent, icon, imgParents, img, linkIcon;
-
-               if ( counter ) {
-                       $list.find( ".ui-li-dec" ).remove();
-               }
-
-               if ( !o.theme ) {
-                       o.theme = $.mobile.getInheritedTheme( this.element, "c" );
-               }
-
-               for ( var pos = 0, numli = li.length; pos < numli; pos++ ) {
-                       item = li.eq( pos );
-                       itemClass = "ui-li";
-
-                       // If we're creating the element, we update it regardless
-                       if ( create || !item.hasClass( "ui-li" ) ) {
-                               itemTheme = item.jqmData("theme") || o.theme;
-                               a = this._getChildrenByTagName( item[ 0 ], "a", "A" );
-
-                               if ( a.length ) {
-                                       icon = item.jqmData("icon");
-
-                                       item.buttonMarkup({
-                                               wrapperEls: "div",
-                                               shadow: false,
-                                               corners: false,
-                                               iconpos: "right",
-                                               icon: a.length > 1 || icon === false ? false : icon || "arrow-r",
-                                               theme: itemTheme
-                                       });
-
-                                       if ( ( icon != false ) && ( a.length == 1 ) ) {
-                                               item.addClass( "ui-li-has-arrow" );
-                                       }
-
-                                       a.first().removeClass( "ui-link" ).addClass( "ui-link-inherit" );
-
-                                       if ( a.length > 1 ) {
-                                               itemClass += " ui-li-has-alt";
-
-                                               last = a.last();
-                                               splittheme = listsplittheme || last.jqmData( "theme" ) || o.splitTheme;
-                                               linkIcon = last.jqmData("icon");
-
-                                               last.appendTo(item)
-                                                       .attr( "title", last.getEncodedText() )
-                                                       .addClass( "ui-li-link-alt" )
-                                                       .empty()
-                                                       .buttonMarkup({
-                                                               shadow: false,
-                                                               corners: false,
-                                                               theme: itemTheme,
-                                                               icon: false,
-                                                               iconpos: false
-                                                       })
-                                                       .find( ".ui-btn-inner" )
-                                                               .append(
-                                                                       $( document.createElement( "span" ) ).buttonMarkup({
-                                                                               shadow: true,
-                                                                               corners: true,
-                                                                               theme: splittheme,
-                                                                               iconpos: "notext",
-                                                                               // link icon overrides list item icon overrides ul element overrides options
-                                                                               icon: linkIcon || icon || listspliticon || o.splitIcon
-                                                                       })
-                                                               );
-                                       }
-                               } else if ( item.jqmData( "role" ) === "list-divider" ) {
-
-                                       itemClass += " ui-li-divider ui-bar-" + dividertheme;
-                                       item.attr( "role", "heading" );
-
-                                       //reset counter when a divider heading is encountered
-                                       if ( counter ) {
-                                               counter = 1;
-                                       }
-
-                               } else {
-                                       itemClass += " ui-li-static ui-body-" + itemTheme;
-                               }
-                       }
-
-                       if ( counter && itemClass.indexOf( "ui-li-divider" ) < 0 ) {
-                               countParent = item.is( ".ui-li-static:first" ) ? item : item.find( ".ui-link-inherit" );
-
-                               countParent.addClass( "ui-li-jsnumbering" )
-                                       .prepend( "<span class='ui-li-dec'>" + (counter++) + ". </span>" );
-                       }
-
-                       // Instead of setting item class directly on the list item and its
-                       // btn-inner at this point in time, push the item into a dictionary
-                       // that tells us what class to set on it so we can do this after this
-                       // processing loop is finished.
-
-                       if ( !itemClassDict[ itemClass ] ) {
-                               itemClassDict[ itemClass ] = [];
-                       }
-
-                       itemClassDict[ itemClass ].push( item[ 0 ] );
-               }
-
-               // Set the appropriate listview item classes on each list item
-               // and their btn-inner elements. The main reason we didn't do this
-               // in the for-loop above is because we can eliminate per-item function overhead
-               // by calling addClass() and children() once or twice afterwards. This
-               // can give us a significant boost on platforms like WP7.5.
-
-               for ( itemClass in itemClassDict ) {
-                       $( itemClassDict[ itemClass ] ).addClass( itemClass ).children( ".ui-btn-inner" ).addClass( itemClass );
-               }
-
-               $list.find( "h1, h2, h3, h4, h5, h6" ).addClass( "ui-li-heading" )
-                       .end()
-
-                       .find( "p, dl" ).addClass( "ui-li-desc" )
-                       .end()
-
-                       .find( ".ui-li-aside" ).each(function() {
-                                       var $this = $(this);
-                                       $this.prependTo( $this.parent() ); //shift aside to front for css float
-                               })
-                       .end()
-
-                       .find( ".ui-li-count" ).each( function() {
-                                       $( this ).closest( "li" ).addClass( "ui-li-has-count" );
-                               }).addClass( "ui-btn-up-" + ( $list.jqmData( "counttheme" ) || this.options.countTheme) + " ui-btn-corner-all" );
-
-               // The idea here is to look at the first image in the list item
-               // itself, and any .ui-link-inherit element it may contain, so we
-               // can place the appropriate classes on the image and list item.
-               // Note that we used to use something like:
-               //
-               //    li.find(">img:eq(0), .ui-link-inherit>img:eq(0)").each( ... );
-               //
-               // But executing a find() like that on Windows Phone 7.5 took a
-               // really long time. Walking things manually with the code below
-               // allows the 400 listview item page to load in about 3 seconds as
-               // opposed to 30 seconds.
-
-               this._addThumbClasses( li );
-               this._addThumbClasses( $list.find( ".ui-link-inherit" ) );
-
-               this._refreshCorners( create );
-       },
-
-       //create a string for ID/subpage url creation
-       _idStringEscape: function( str ) {
-               return str.replace(/[^a-zA-Z0-9]/g, '-');
-       },
-
-       _createSubPages: function() {
-               var parentList = this.element,
-                       parentPage = parentList.closest( ".ui-page" ),
-                       parentUrl = parentPage.jqmData( "url" ),
-                       parentId = parentUrl || parentPage[ 0 ][ $.expando ],
-                       parentListId = parentList.attr( "id" ),
-                       o = this.options,
-                       dns = "data-" + $.mobile.ns,
-                       self = this,
-                       persistentFooterID = parentPage.find( ":jqmData(role='footer')" ).jqmData( "id" ),
-                       hasSubPages;
-
-               if ( typeof listCountPerPage[ parentId ] === "undefined" ) {
-                       listCountPerPage[ parentId ] = -1;
-               }
-
-               parentListId = parentListId || ++listCountPerPage[ parentId ];
-
-               $( parentList.find( "li>ul, li>ol" ).toArray().reverse() ).each(function( i ) {
-                       var self = this,
-                               list = $( this ),
-                               listId = list.attr( "id" ) || parentListId + "-" + i,
-                               parent = list.parent(),
-                               nodeEls = $( list.prevAll().toArray().reverse() ),
-                               nodeEls = nodeEls.length ? nodeEls : $( "<span>" + $.trim(parent.contents()[ 0 ].nodeValue) + "</span>" ),
-                               title = nodeEls.first().getEncodedText(),//url limits to first 30 chars of text
-                               id = ( parentUrl || "" ) + "&" + $.mobile.subPageUrlKey + "=" + listId,
-                               theme = list.jqmData( "theme" ) || o.theme,
-                               countTheme = list.jqmData( "counttheme" ) || parentList.jqmData( "counttheme" ) || o.countTheme,
-                               newPage, anchor;
-
-                       //define hasSubPages for use in later removal
-                       hasSubPages = true;
-
-                       newPage = list.detach()
-                                               .wrap( "<div " + dns + "role='page' " + dns + "url='" + id + "' " + dns + "theme='" + theme + "' " + dns + "count-theme='" + countTheme + "'><div " + dns + "role='content'></div></div>" )
-                                               .parent()
-                                                       .before( "<div " + dns + "role='header' " + dns + "theme='" + o.headerTheme + "'><div class='ui-title'>" + title + "</div></div>" )
-                                                       .after( persistentFooterID ? $( "<div " + dns + "role='footer' " + dns + "id='"+ persistentFooterID +"'>") : "" )
-                                                       .parent()
-                                                               .appendTo( $.mobile.pageContainer );
-
-                       newPage.page();
-
-                       anchor = parent.find('a:first');
-
-                       if ( !anchor.length ) {
-                               anchor = $( "<a/>" ).html( nodeEls || title ).prependTo( parent.empty() );
-                       }
-
-                       anchor.attr( "href", "#" + id );
-
-               }).listview();
-
-               // on pagehide, remove any nested pages along with the parent page, as long as they aren't active
-               // and aren't embedded
-               if( hasSubPages &&
-                       parentPage.is( ":jqmData(external-page='true')" ) &&
-                       parentPage.data("page").options.domCache === false ) {
-
-                       var newRemove = function( e, ui ){
-                               var nextPage = ui.nextPage, npURL;
-
-                               if( ui.nextPage ){
-                                       npURL = nextPage.jqmData( "url" );
-                                       if( npURL.indexOf( parentUrl + "&" + $.mobile.subPageUrlKey ) !== 0 ){
-                                               self.childPages().remove();
-                                               parentPage.remove();
-                                       }
-                               }
-                       };
-
-                       // unbind the original page remove and replace with our specialized version
-                       parentPage
-                               .unbind( "pagehide.remove" )
-                               .bind( "pagehide.remove", newRemove);
-               }
-       },
-
-       // TODO sort out a better way to track sub pages of the listview this is brittle
-       childPages: function(){
-               var parentUrl = this.parentPage.jqmData( "url" );
-
-               return $( ":jqmData(url^='"+  parentUrl + "&" + $.mobile.subPageUrlKey +"')");
-       }
-});
-
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-       $.mobile.listview.prototype.enhanceWithin( e.target );
-});
-
-})( jQuery );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.media.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.media.js
deleted file mode 100644 (file)
index f2302e5..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: A workaround for browsers without window.matchMedia
-//>>label: matchMedia Polyfill
-//>>group: Utilities
-
-
-define( [ "jquery", "./jquery.mobile.core" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, undefined ) {
-
-var $window = $( window ),
-       $html = $( "html" );
-
-/* $.mobile.media method: pass a CSS media type or query and get a bool return
-       note: this feature relies on actual media query support for media queries, though types will work most anywhere
-       examples:
-               $.mobile.media('screen') // tests for screen media type
-               $.mobile.media('screen and (min-width: 480px)') // tests for screen media type with window width > 480px
-               $.mobile.media('@media screen and (-webkit-min-device-pixel-ratio: 2)') // tests for webkit 2x pixel ratio (iPhone 4)
-*/
-$.mobile.media = (function() {
-       // TODO: use window.matchMedia once at least one UA implements it
-       var cache = {},
-               testDiv = $( "<div id='jquery-mediatest'>" ),
-               fakeBody = $( "<body>" ).append( testDiv );
-
-       return function( query ) {
-               if ( !( query in cache ) ) {
-                       var styleBlock = document.createElement( "style" ),
-                               cssrule = "@media " + query + " { #jquery-mediatest { position:absolute; } }";
-
-                       //must set type for IE!
-                       styleBlock.type = "text/css";
-
-                       if ( styleBlock.styleSheet  ){
-                               styleBlock.styleSheet.cssText = cssrule;
-                       } else {
-                               styleBlock.appendChild( document.createTextNode(cssrule) );
-                       }
-
-                       $html.prepend( fakeBody ).prepend( styleBlock );
-                       cache[ query ] = testDiv.css( "position" ) === "absolute";
-                       fakeBody.add( styleBlock ).remove();
-               }
-               return cache[ query ];
-       };
-})();
-
-})(jQuery);
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.navbar.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.navbar.js
deleted file mode 100644 (file)
index 42c2f12..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Formats groups of links as horizontal navigation bars.
-//>>label: Navbars
-//>>group: Widgets
-//>>css: ../css/themes/default/jquery.mobile.theme.css, ../css/structure/jquery.mobile.navbar.css
-
-
-define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.buttonMarkup", "./jquery.mobile.grid" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, undefined ) {
-
-$.widget( "mobile.navbar", $.mobile.widget, {
-       options: {
-               iconpos: "top",
-               grid: null,
-               initSelector: ":jqmData(role='navbar')"
-       },
-
-       _create: function(){
-
-               var $navbar = this.element,
-                       $navbtns = $navbar.find( "a" ),
-                       iconpos = $navbtns.filter( ":jqmData(icon)" ).length ?
-                                                                       this.options.iconpos : undefined;
-
-               $navbar.addClass( "ui-navbar" )
-                       .attr( "role","navigation" )
-                       .find( "ul" )
-                       .jqmEnhanceable()
-                       .grid({ grid: this.options.grid });
-
-               if ( !iconpos ) {
-                       $navbar.addClass( "ui-navbar-noicons" );
-               }
-
-               $navbtns.buttonMarkup({
-                       corners:        false,
-                       shadow:         false,
-                       inline:     true,
-                       iconpos:        iconpos
-               });
-
-               $navbar.delegate( "a", "vclick", function( event ) {
-                       if( !$(event.target).hasClass("ui-disabled") ) {
-                               $navbtns.removeClass( $.mobile.activeBtnClass );
-                               $( this ).addClass( $.mobile.activeBtnClass );
-                       }
-               });
-
-               // Buttons in the navbar with ui-state-persist class should regain their active state before page show
-               $navbar.closest( ".ui-page" ).bind( "pagebeforeshow", function() {
-                       $navbtns.filter( ".ui-state-persist" ).addClass( $.mobile.activeBtnClass );
-               });
-       }
-});
-
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-       $.mobile.navbar.prototype.enhanceWithin( e.target );
-});
-
-})( jQuery );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.navigation.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.navigation.js
deleted file mode 100644 (file)
index ad2f67c..0000000
+++ /dev/null
@@ -1,1456 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Applies the AJAX navigation system to links and forms to enable page transitions
-//>>label: AJAX Navigation System
-//>>group: Navigation
-
-define( [
-       "jquery",
-       "./jquery.mobile.core",
-       "./jquery.mobile.event",
-       "../external/requirejs/depend!./jquery.mobile.hashchange[jquery]",
-       "./jquery.mobile.page",
-       "./jquery.mobile.transition" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-( function( $, undefined ) {
-
-       //define vars for interal use
-       var $window = $( window ),
-               $html = $( 'html' ),
-               $head = $( 'head' ),
-
-               //url path helpers for use in relative url management
-               path = {
-
-                       // This scary looking regular expression parses an absolute URL or its relative
-                       // variants (protocol, site, document, query, and hash), into the various
-                       // components (protocol, host, path, query, fragment, etc that make up the
-                       // URL as well as some other commonly used sub-parts. When used with RegExp.exec()
-                       // or String.match, it parses the URL into a results array that looks like this:
-                       //
-                       //     [0]: http://jblas:password@mycompany.com:8080/mail/inbox?msg=1234&type=unread#msg-content
-                       //     [1]: http://jblas:password@mycompany.com:8080/mail/inbox?msg=1234&type=unread
-                       //     [2]: http://jblas:password@mycompany.com:8080/mail/inbox
-                       //     [3]: http://jblas:password@mycompany.com:8080
-                       //     [4]: http:
-                       //     [5]: //
-                       //     [6]: jblas:password@mycompany.com:8080
-                       //     [7]: jblas:password
-                       //     [8]: jblas
-                       //     [9]: password
-                       //    [10]: mycompany.com:8080
-                       //    [11]: mycompany.com
-                       //    [12]: 8080
-                       //    [13]: /mail/inbox
-                       //    [14]: /mail/
-                       //    [15]: inbox
-                       //    [16]: ?msg=1234&type=unread
-                       //    [17]: #msg-content
-                       //
-                       urlParseRE: /^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/,
-
-                       //Parse a URL into a structure that allows easy access to
-                       //all of the URL components by name.
-                       parseUrl: function( url ) {
-                               // If we're passed an object, we'll assume that it is
-                               // a parsed url object and just return it back to the caller.
-                               if ( $.type( url ) === "object" ) {
-                                       return url;
-                               }
-
-                               var matches = path.urlParseRE.exec( url || "" ) || [];
-
-                                       // Create an object that allows the caller to access the sub-matches
-                                       // by name. Note that IE returns an empty string instead of undefined,
-                                       // like all other browsers do, so we normalize everything so its consistent
-                                       // no matter what browser we're running on.
-                                       return {
-                                               href:         matches[  0 ] || "",
-                                               hrefNoHash:   matches[  1 ] || "",
-                                               hrefNoSearch: matches[  2 ] || "",
-                                               domain:       matches[  3 ] || "",
-                                               protocol:     matches[  4 ] || "",
-                                               doubleSlash:  matches[  5 ] || "",
-                                               authority:    matches[  6 ] || "",
-                                               username:     matches[  8 ] || "",
-                                               password:     matches[  9 ] || "",
-                                               host:         matches[ 10 ] || "",
-                                               hostname:     matches[ 11 ] || "",
-                                               port:         matches[ 12 ] || "",
-                                               pathname:     matches[ 13 ] || "",
-                                               directory:    matches[ 14 ] || "",
-                                               filename:     matches[ 15 ] || "",
-                                               search:       matches[ 16 ] || "",
-                                               hash:         matches[ 17 ] || ""
-                                       };
-                       },
-
-                       //Turn relPath into an asbolute path. absPath is
-                       //an optional absolute path which describes what
-                       //relPath is relative to.
-                       makePathAbsolute: function( relPath, absPath ) {
-                               if ( relPath && relPath.charAt( 0 ) === "/" ) {
-                                       return relPath;
-                               }
-
-                               relPath = relPath || "";
-                               absPath = absPath ? absPath.replace( /^\/|(\/[^\/]*|[^\/]+)$/g, "" ) : "";
-
-                               var absStack = absPath ? absPath.split( "/" ) : [],
-                                       relStack = relPath.split( "/" );
-                               for ( var i = 0; i < relStack.length; i++ ) {
-                                       var d = relStack[ i ];
-                                       switch ( d ) {
-                                               case ".":
-                                                       break;
-                                               case "..":
-                                                       if ( absStack.length ) {
-                                                               absStack.pop();
-                                                       }
-                                                       break;
-                                               default:
-                                                       absStack.push( d );
-                                                       break;
-                                       }
-                               }
-                               return "/" + absStack.join( "/" );
-                       },
-
-                       //Returns true if both urls have the same domain.
-                       isSameDomain: function( absUrl1, absUrl2 ) {
-                               return path.parseUrl( absUrl1 ).domain === path.parseUrl( absUrl2 ).domain;
-                       },
-
-                       //Returns true for any relative variant.
-                       isRelativeUrl: function( url ) {
-                               // All relative Url variants have one thing in common, no protocol.
-                               return path.parseUrl( url ).protocol === "";
-                       },
-
-                       //Returns true for an absolute url.
-                       isAbsoluteUrl: function( url ) {
-                               return path.parseUrl( url ).protocol !== "";
-                       },
-
-                       //Turn the specified realtive URL into an absolute one. This function
-                       //can handle all relative variants (protocol, site, document, query, fragment).
-                       makeUrlAbsolute: function( relUrl, absUrl ) {
-                               if ( !path.isRelativeUrl( relUrl ) ) {
-                                       return relUrl;
-                               }
-
-                               var relObj = path.parseUrl( relUrl ),
-                                       absObj = path.parseUrl( absUrl ),
-                                       protocol = relObj.protocol || absObj.protocol,
-                                       doubleSlash = relObj.protocol ? relObj.doubleSlash : ( relObj.doubleSlash || absObj.doubleSlash ),
-                                       authority = relObj.authority || absObj.authority,
-                                       hasPath = relObj.pathname !== "",
-                                       pathname = path.makePathAbsolute( relObj.pathname || absObj.filename, absObj.pathname ),
-                                       search = relObj.search || ( !hasPath && absObj.search ) || "",
-                                       hash = relObj.hash;
-
-                               return protocol + doubleSlash + authority + pathname + search + hash;
-                       },
-
-                       //Add search (aka query) params to the specified url.
-                       addSearchParams: function( url, params ) {
-                               var u = path.parseUrl( url ),
-                                       p = ( typeof params === "object" ) ? $.param( params ) : params,
-                                       s = u.search || "?";
-                               return u.hrefNoSearch + s + ( s.charAt( s.length - 1 ) !== "?" ? "&" : "" ) + p + ( u.hash || "" );
-                       },
-
-                       convertUrlToDataUrl: function( absUrl ) {
-                               var u = path.parseUrl( absUrl );
-                               if ( path.isEmbeddedPage( u ) ) {
-                                   // For embedded pages, remove the dialog hash key as in getFilePath(),
-                                   // otherwise the Data Url won't match the id of the embedded Page.
-                                       return u.hash.split( dialogHashKey )[0].replace( /^#/, "" );
-                               } else if ( path.isSameDomain( u, documentBase ) ) {
-                                       return u.hrefNoHash.replace( documentBase.domain, "" );
-                               }
-                               return absUrl;
-                       },
-
-                       //get path from current hash, or from a file path
-                       get: function( newPath ) {
-                               if( newPath === undefined ) {
-                                       newPath = location.hash;
-                               }
-                               return path.stripHash( newPath ).replace( /[^\/]*\.[^\/*]+$/, '' );
-                       },
-
-                       //return the substring of a filepath before the sub-page key, for making a server request
-                       getFilePath: function( path ) {
-                               var splitkey = '&' + $.mobile.subPageUrlKey;
-                               return path && path.split( splitkey )[0].split( dialogHashKey )[0];
-                       },
-
-                       //set location hash to path
-                       set: function( path ) {
-                               location.hash = path;
-                       },
-
-                       //test if a given url (string) is a path
-                       //NOTE might be exceptionally naive
-                       isPath: function( url ) {
-                               return ( /\// ).test( url );
-                       },
-
-                       //return a url path with the window's location protocol/hostname/pathname removed
-                       clean: function( url ) {
-                               return url.replace( documentBase.domain, "" );
-                       },
-
-                       //just return the url without an initial #
-                       stripHash: function( url ) {
-                               return url.replace( /^#/, "" );
-                       },
-
-                       //remove the preceding hash, any query params, and dialog notations
-                       cleanHash: function( hash ) {
-                               return path.stripHash( hash.replace( /\?.*$/, "" ).replace( dialogHashKey, "" ) );
-                       },
-
-                       //check whether a url is referencing the same domain, or an external domain or different protocol
-                       //could be mailto, etc
-                       isExternal: function( url ) {
-                               var u = path.parseUrl( url );
-                               return u.protocol && u.domain !== documentUrl.domain ? true : false;
-                       },
-
-                       hasProtocol: function( url ) {
-                               return ( /^(:?\w+:)/ ).test( url );
-                       },
-
-                       //check if the specified url refers to the first page in the main application document.
-                       isFirstPageUrl: function( url ) {
-                               // We only deal with absolute paths.
-                               var u = path.parseUrl( path.makeUrlAbsolute( url, documentBase ) ),
-
-                                       // Does the url have the same path as the document?
-                                       samePath = u.hrefNoHash === documentUrl.hrefNoHash || ( documentBaseDiffers && u.hrefNoHash === documentBase.hrefNoHash ),
-
-                                       // Get the first page element.
-                                       fp = $.mobile.firstPage,
-
-                                       // Get the id of the first page element if it has one.
-                                       fpId = fp && fp[0] ? fp[0].id : undefined;
-
-                                       // The url refers to the first page if the path matches the document and
-                                       // it either has no hash value, or the hash is exactly equal to the id of the
-                                       // first page element.
-                                       return samePath && ( !u.hash || u.hash === "#" || ( fpId && u.hash.replace( /^#/, "" ) === fpId ) );
-                       },
-
-                       isEmbeddedPage: function( url ) {
-                               var u = path.parseUrl( url );
-
-                               //if the path is absolute, then we need to compare the url against
-                               //both the documentUrl and the documentBase. The main reason for this
-                               //is that links embedded within external documents will refer to the
-                               //application document, whereas links embedded within the application
-                               //document will be resolved against the document base.
-                               if ( u.protocol !== "" ) {
-                                       return ( u.hash && ( u.hrefNoHash === documentUrl.hrefNoHash || ( documentBaseDiffers && u.hrefNoHash === documentBase.hrefNoHash ) ) );
-                               }
-                               return (/^#/).test( u.href );
-                       }
-               },
-
-               //will be defined when a link is clicked and given an active class
-               $activeClickedLink = null,
-
-               //urlHistory is purely here to make guesses at whether the back or forward button was clicked
-               //and provide an appropriate transition
-               urlHistory = {
-                       // Array of pages that are visited during a single page load.
-                       // Each has a url and optional transition, title, and pageUrl (which represents the file path, in cases where URL is obscured, such as dialogs)
-                       stack: [],
-
-                       //maintain an index number for the active page in the stack
-                       activeIndex: 0,
-
-                       //get active
-                       getActive: function() {
-                               return urlHistory.stack[ urlHistory.activeIndex ];
-                       },
-
-                       getPrev: function() {
-                               return urlHistory.stack[ urlHistory.activeIndex - 1 ];
-                       },
-
-                       getNext: function() {
-                               return urlHistory.stack[ urlHistory.activeIndex + 1 ];
-                       },
-
-                       // addNew is used whenever a new page is added
-                       addNew: function( url, transition, title, pageUrl, role ) {
-                               //if there's forward history, wipe it
-                               if( urlHistory.getNext() ) {
-                                       urlHistory.clearForward();
-                               }
-
-                               urlHistory.stack.push( {url : url, transition: transition, title: title, pageUrl: pageUrl, role: role } );
-
-                               urlHistory.activeIndex = urlHistory.stack.length - 1;
-                       },
-
-                       //wipe urls ahead of active index
-                       clearForward: function() {
-                               urlHistory.stack = urlHistory.stack.slice( 0, urlHistory.activeIndex + 1 );
-                       },
-
-                       directHashChange: function( opts ) {
-                               var back , forward, newActiveIndex, prev = this.getActive();
-
-                               // check if url isp in history and if it's ahead or behind current page
-                               $.each( urlHistory.stack, function( i, historyEntry ) {
-
-                                       //if the url is in the stack, it's a forward or a back
-                                       if( opts.currentUrl === historyEntry.url ) {
-                                               //define back and forward by whether url is older or newer than current page
-                                               back = i < urlHistory.activeIndex;
-                                               forward = !back;
-                                               newActiveIndex = i;
-                                       }
-                               });
-
-                               // save new page index, null check to prevent falsey 0 result
-                               this.activeIndex = newActiveIndex !== undefined ? newActiveIndex : this.activeIndex;
-
-                               if( back ) {
-                                       ( opts.either || opts.isBack )( true );
-                               } else if( forward ) {
-                                       ( opts.either || opts.isForward )( false );
-                               }
-                       },
-
-                       //disable hashchange event listener internally to ignore one change
-                       //toggled internally when location.hash is updated to match the url of a successful page load
-                       ignoreNextHashChange: false
-               },
-
-               //define first selector to receive focus when a page is shown
-               focusable = "[tabindex],a,button:visible,select:visible,input",
-
-               //queue to hold simultanious page transitions
-               pageTransitionQueue = [],
-
-               //indicates whether or not page is in process of transitioning
-               isPageTransitioning = false,
-
-               //nonsense hash change key for dialogs, so they create a history entry
-               dialogHashKey = "&ui-state=dialog",
-
-               //existing base tag?
-               $base = $head.children( "base" ),
-
-               //tuck away the original document URL minus any fragment.
-               documentUrl = path.parseUrl( location.href ),
-
-               //if the document has an embedded base tag, documentBase is set to its
-               //initial value. If a base tag does not exist, then we default to the documentUrl.
-               documentBase = $base.length ? path.parseUrl( path.makeUrlAbsolute( $base.attr( "href" ), documentUrl.href ) ) : documentUrl,
-
-               //cache the comparison once.
-               documentBaseDiffers = ( documentUrl.hrefNoHash !== documentBase.hrefNoHash );
-
-               //base element management, defined depending on dynamic base tag support
-               var base = $.support.dynamicBaseTag ? {
-
-                       //define base element, for use in routing asset urls that are referenced in Ajax-requested markup
-                       element: ( $base.length ? $base : $( "<base>", { href: documentBase.hrefNoHash } ).prependTo( $head ) ),
-
-                       //set the generated BASE element's href attribute to a new page's base path
-                       set: function( href ) {
-                               base.element.attr( "href", path.makeUrlAbsolute( href, documentBase ) );
-                       },
-
-                       //set the generated BASE element's href attribute to a new page's base path
-                       reset: function() {
-                               base.element.attr( "href", documentBase.hrefNoHash );
-                       }
-
-               } : undefined;
-
-/*
-       internal utility functions
---------------------------------------*/
-
-
-       //direct focus to the page title, or otherwise first focusable element
-       $.mobile.focusPage = function ( page ) {
-               var autofocus = page.find("[autofocus]"),
-                       pageTitle = page.find( ".ui-title:eq(0)" );
-
-               if( autofocus.length ) {
-                       autofocus.focus();
-                       return;
-               }
-
-               if( pageTitle.length ) {
-                       pageTitle.focus();
-               }
-               else{
-                       page.focus();
-               }
-       }
-
-       //remove active classes after page transition or error
-       function removeActiveLinkClass( forceRemoval ) {
-               if( !!$activeClickedLink && ( !$activeClickedLink.closest( '.ui-page-active' ).length || forceRemoval ) ) {
-                       $activeClickedLink.removeClass( $.mobile.activeBtnClass );
-               }
-               $activeClickedLink = null;
-       }
-
-       function releasePageTransitionLock() {
-               isPageTransitioning = false;
-               if( pageTransitionQueue.length > 0 ) {
-                       $.mobile.changePage.apply( null, pageTransitionQueue.pop() );
-               }
-       }
-
-       // Save the last scroll distance per page, before it is hidden
-       var setLastScrollEnabled = true,
-               setLastScroll, delayedSetLastScroll;
-
-       setLastScroll = function() {
-               // this barrier prevents setting the scroll value based on the browser
-               // scrolling the window based on a hashchange
-               if( !setLastScrollEnabled ) {
-                       return;
-               }
-
-               var active = $.mobile.urlHistory.getActive();
-
-               if( active ) {
-                       var lastScroll = $window.scrollTop();
-
-                       // Set active page's lastScroll prop.
-                       // If the location we're scrolling to is less than minScrollBack, let it go.
-                       active.lastScroll = lastScroll < $.mobile.minScrollBack ? $.mobile.defaultHomeScroll : lastScroll;
-               }
-       };
-
-       // bind to scrollstop to gather scroll position. The delay allows for the hashchange
-       // event to fire and disable scroll recording in the case where the browser scrolls
-       // to the hash targets location (sometimes the top of the page). once pagechange fires
-       // getLastScroll is again permitted to operate
-       delayedSetLastScroll = function() {
-               setTimeout( setLastScroll, 100 );
-       };
-
-       // disable an scroll setting when a hashchange has been fired, this only works
-       // because the recording of the scroll position is delayed for 100ms after
-       // the browser might have changed the position because of the hashchange
-       $window.bind( $.support.pushState ? "popstate" : "hashchange", function() {
-               setLastScrollEnabled = false;
-       });
-
-       // handle initial hashchange from chrome :(
-       $window.one( $.support.pushState ? "popstate" : "hashchange", function() {
-               setLastScrollEnabled = true;
-       });
-
-       // wait until the mobile page container has been determined to bind to pagechange
-       $window.one( "pagecontainercreate", function(){
-               // once the page has changed, re-enable the scroll recording
-               $.mobile.pageContainer.bind( "pagechange", function() {
-
-                       setLastScrollEnabled = true;
-
-                       // remove any binding that previously existed on the get scroll
-                       // which may or may not be different than the scroll element determined for
-                       // this page previously
-                       $window.unbind( "scrollstop", delayedSetLastScroll );
-
-                       // determine and bind to the current scoll element which may be the window
-                       // or in the case of touch overflow the element with touch overflow
-                       $window.bind( "scrollstop", delayedSetLastScroll );
-               });
-       });
-
-       // bind to scrollstop for the first page as "pagechange" won't be fired in that case
-       $window.bind( "scrollstop", delayedSetLastScroll );
-
-       //function for transitioning between two existing pages
-       function transitionPages( toPage, fromPage, transition, reverse ) {
-
-               if( fromPage ) {
-                       //trigger before show/hide events
-                       fromPage.data( "page" )._trigger( "beforehide", null, { nextPage: toPage } );
-               }
-
-               toPage.data( "page" )._trigger( "beforeshow", null, { prevPage: fromPage || $( "" ) } );
-
-               //clear page loader
-               $.mobile.hidePageLoadingMsg();
-               
-               // If transition is defined, check if css 3D transforms are supported, and if not, if a fallback is specified
-               if( transition && !$.support.cssTransform3d && $.mobile.transitionFallbacks[ transition ] ){
-                       transition = $.mobile.transitionFallbacks[ transition ];
-               }
-               
-               //find the transition handler for the specified transition. If there
-               //isn't one in our transitionHandlers dictionary, use the default one.
-               //call the handler immediately to kick-off the transition.
-               var th = $.mobile.transitionHandlers[ transition || "default" ] || $.mobile.defaultTransitionHandler,
-                       promise = th( transition, reverse, toPage, fromPage );
-
-               promise.done(function() {
-
-                       //trigger show/hide events
-                       if( fromPage ) {
-                               fromPage.data( "page" )._trigger( "hide", null, { nextPage: toPage } );
-                       }
-
-                       //trigger pageshow, define prevPage as either fromPage or empty jQuery obj
-                       toPage.data( "page" )._trigger( "show", null, { prevPage: fromPage || $( "" ) } );
-               });
-
-               return promise;
-       }
-
-       //simply set the active page's minimum height to screen height, depending on orientation
-       function getScreenHeight(){
-               // Native innerHeight returns more accurate value for this across platforms, 
-               // jQuery version is here as a normalized fallback for platforms like Symbian
-               return window.innerHeight || $( window ).height();
-       }
-
-       $.mobile.getScreenHeight = getScreenHeight;
-
-       //simply set the active page's minimum height to screen height, depending on orientation
-       function resetActivePageHeight(){
-               var aPage = $( "." + $.mobile.activePageClass ),
-                       aPagePadT = parseFloat( aPage.css( "padding-top" ) ),
-                       aPagePadB = parseFloat( aPage.css( "padding-bottom" ) );
-                               
-               aPage.css( "min-height", getScreenHeight() - aPagePadT - aPagePadB );
-       }
-
-       //shared page enhancements
-       function enhancePage( $page, role ) {
-               // If a role was specified, make sure the data-role attribute
-               // on the page element is in sync.
-               if( role ) {
-                       $page.attr( "data-" + $.mobile.ns + "role", role );
-               }
-
-               //run page plugin
-               $page.page();
-       }
-
-/* exposed $.mobile methods     */
-
-       //animation complete callback
-       $.fn.animationComplete = function( callback ) {
-               if( $.support.cssTransitions ) {
-                       return $( this ).one( 'webkitAnimationEnd animationend', callback );
-               }
-               else{
-                       // defer execution for consistency between webkit/non webkit
-                       setTimeout( callback, 0 );
-                       return $( this );
-               }
-       };
-
-       //expose path object on $.mobile
-       $.mobile.path = path;
-
-       //expose base object on $.mobile
-       $.mobile.base = base;
-
-       //history stack
-       $.mobile.urlHistory = urlHistory;
-
-       $.mobile.dialogHashKey = dialogHashKey;
-
-
-
-       //enable cross-domain page support
-       $.mobile.allowCrossDomainPages = false;
-
-       //return the original document url
-       $.mobile.getDocumentUrl = function(asParsedObject) {
-               return asParsedObject ? $.extend( {}, documentUrl ) : documentUrl.href;
-       };
-
-       //return the original document base url
-       $.mobile.getDocumentBase = function(asParsedObject) {
-               return asParsedObject ? $.extend( {}, documentBase ) : documentBase.href;
-       };
-
-       $.mobile._bindPageRemove = function() {
-               var page = $(this);
-
-               // when dom caching is not enabled or the page is embedded bind to remove the page on hide
-               if( !page.data("page").options.domCache
-                               && page.is(":jqmData(external-page='true')") ) {
-
-                       page.bind( 'pagehide.remove', function() {
-                               var $this = $( this ),
-                                       prEvent = new $.Event( "pageremove" );
-
-                               $this.trigger( prEvent );
-
-                               if( !prEvent.isDefaultPrevented() ){
-                                       $this.removeWithDependents();
-                               }
-                       });
-               }
-       };
-
-       // Load a page into the DOM.
-       $.mobile.loadPage = function( url, options ) {
-               // This function uses deferred notifications to let callers
-               // know when the page is done loading, or if an error has occurred.
-               var deferred = $.Deferred(),
-
-                       // The default loadPage options with overrides specified by
-                       // the caller.
-                       settings = $.extend( {}, $.mobile.loadPage.defaults, options ),
-
-                       // The DOM element for the page after it has been loaded.
-                       page = null,
-
-                       // If the reloadPage option is true, and the page is already
-                       // in the DOM, dupCachedPage will be set to the page element
-                       // so that it can be removed after the new version of the
-                       // page is loaded off the network.
-                       dupCachedPage = null,
-
-                       // determine the current base url
-                       findBaseWithDefault = function(){
-                               var closestBase = ( $.mobile.activePage && getClosestBaseUrl( $.mobile.activePage ) );
-                               return closestBase || documentBase.hrefNoHash;
-                       },
-
-                       // The absolute version of the URL passed into the function. This
-                       // version of the URL may contain dialog/subpage params in it.
-                       absUrl = path.makeUrlAbsolute( url, findBaseWithDefault() );
-
-
-               // If the caller provided data, and we're using "get" request,
-               // append the data to the URL.
-               if ( settings.data && settings.type === "get" ) {
-                       absUrl = path.addSearchParams( absUrl, settings.data );
-                       settings.data = undefined;
-               }
-
-               // If the caller is using a "post" request, reloadPage must be true
-               if(  settings.data && settings.type === "post" ){
-                       settings.reloadPage = true;
-               }
-
-                       // The absolute version of the URL minus any dialog/subpage params.
-                       // In otherwords the real URL of the page to be loaded.
-               var fileUrl = path.getFilePath( absUrl ),
-
-                       // The version of the Url actually stored in the data-url attribute of
-                       // the page. For embedded pages, it is just the id of the page. For pages
-                       // within the same domain as the document base, it is the site relative
-                       // path. For cross-domain pages (Phone Gap only) the entire absolute Url
-                       // used to load the page.
-                       dataUrl = path.convertUrlToDataUrl( absUrl );
-
-               // Make sure we have a pageContainer to work with.
-               settings.pageContainer = settings.pageContainer || $.mobile.pageContainer;
-
-               // Check to see if the page already exists in the DOM.
-               page = settings.pageContainer.children( ":jqmData(url='" + dataUrl + "')" );
-
-               // If we failed to find the page, check to see if the url is a
-               // reference to an embedded page. If so, it may have been dynamically
-               // injected by a developer, in which case it would be lacking a data-url
-               // attribute and in need of enhancement.
-               if ( page.length === 0 && dataUrl && !path.isPath( dataUrl ) ) {
-                       page = settings.pageContainer.children( "#" + dataUrl )
-                               .attr( "data-" + $.mobile.ns + "url", dataUrl );
-               }
-
-               // If we failed to find a page in the DOM, check the URL to see if it
-               // refers to the first page in the application. If it isn't a reference
-               // to the first page and refers to non-existent embedded page, error out.
-               if ( page.length === 0 ) {
-                       if ( $.mobile.firstPage && path.isFirstPageUrl( fileUrl ) ) {
-                               // Check to make sure our cached-first-page is actually
-                               // in the DOM. Some user deployed apps are pruning the first
-                               // page from the DOM for various reasons, we check for this
-                               // case here because we don't want a first-page with an id
-                               // falling through to the non-existent embedded page error
-                               // case. If the first-page is not in the DOM, then we let
-                               // things fall through to the ajax loading code below so
-                               // that it gets reloaded.
-                               if ( $.mobile.firstPage.parent().length ) {
-                                       page = $( $.mobile.firstPage );
-                               }
-                       } else if ( path.isEmbeddedPage( fileUrl )  ) {
-                               deferred.reject( absUrl, options );
-                               return deferred.promise();
-                       }
-               }
-
-               // Reset base to the default document base.
-               if ( base ) {
-                       base.reset();
-               }
-
-               // If the page we are interested in is already in the DOM,
-               // and the caller did not indicate that we should force a
-               // reload of the file, we are done. Otherwise, track the
-               // existing page as a duplicated.
-               if ( page.length ) {
-                       if ( !settings.reloadPage ) {
-                               enhancePage( page, settings.role );
-                               deferred.resolve( absUrl, options, page );
-                               return deferred.promise();
-                       }
-                       dupCachedPage = page;
-               }
-
-               var mpc = settings.pageContainer,
-                       pblEvent = new $.Event( "pagebeforeload" ),
-                       triggerData = { url: url, absUrl: absUrl, dataUrl: dataUrl, deferred: deferred, options: settings };
-
-               // Let listeners know we're about to load a page.
-               mpc.trigger( pblEvent, triggerData );
-
-               // If the default behavior is prevented, stop here!
-               if( pblEvent.isDefaultPrevented() ){
-                       return deferred.promise();
-               }
-
-               if ( settings.showLoadMsg ) {
-
-                       // This configurable timeout allows cached pages a brief delay to load without showing a message
-                       var loadMsgDelay = setTimeout(function(){
-                                       $.mobile.showPageLoadingMsg();
-                               }, settings.loadMsgDelay ),
-
-                               // Shared logic for clearing timeout and removing message.
-                               hideMsg = function(){
-
-                                       // Stop message show timer
-                                       clearTimeout( loadMsgDelay );
-
-                                       // Hide loading message
-                                       $.mobile.hidePageLoadingMsg();
-                               };
-               }
-
-               if ( !( $.mobile.allowCrossDomainPages || path.isSameDomain( documentUrl, absUrl ) ) ) {
-                       deferred.reject( absUrl, options );
-               } else {
-                       // Load the new page.
-                       $.ajax({
-                               url: fileUrl,
-                               type: settings.type,
-                               data: settings.data,
-                               dataType: "html",
-                               success: function( html, textStatus, xhr ) {
-                                       //pre-parse html to check for a data-url,
-                                       //use it as the new fileUrl, base path, etc
-                                       var all = $( "<div></div>" ),
-
-                                               //page title regexp
-                                               newPageTitle = html.match( /<title[^>]*>([^<]*)/ ) && RegExp.$1,
-
-                                               // TODO handle dialogs again
-                                               pageElemRegex = new RegExp( "(<[^>]+\\bdata-" + $.mobile.ns + "role=[\"']?page[\"']?[^>]*>)" ),
-                                               dataUrlRegex = new RegExp( "\\bdata-" + $.mobile.ns + "url=[\"']?([^\"'>]*)[\"']?" );
-
-
-                                       // data-url must be provided for the base tag so resource requests can be directed to the
-                                       // correct url. loading into a temprorary element makes these requests immediately
-                                       if( pageElemRegex.test( html )
-                                                       && RegExp.$1
-                                                       && dataUrlRegex.test( RegExp.$1 )
-                                                       && RegExp.$1 ) {
-                                               url = fileUrl = path.getFilePath( RegExp.$1 );
-                                       }
-
-                                       if ( base ) {
-                                               base.set( fileUrl );
-                                       }
-
-                                       //workaround to allow scripts to execute when included in page divs
-                                       all.get( 0 ).innerHTML = html;
-                                       page = all.find( ":jqmData(role='page'), :jqmData(role='dialog')" ).first();
-
-                                       //if page elem couldn't be found, create one and insert the body element's contents
-                                       if( !page.length ){
-                                               page = $( "<div data-" + $.mobile.ns + "role='page'>" + html.split( /<\/?body[^>]*>/gmi )[1] + "</div>" );
-                                       }
-
-                                       if ( newPageTitle && !page.jqmData( "title" ) ) {
-                                               if ( ~newPageTitle.indexOf( "&" ) ) {
-                                                       newPageTitle = $( "<div>" + newPageTitle + "</div>" ).text();
-                                               }
-                                               page.jqmData( "title", newPageTitle );
-                                       }
-
-                                       //rewrite src and href attrs to use a base url
-                                       if( !$.support.dynamicBaseTag ) {
-                                               var newPath = path.get( fileUrl );
-                                               page.find( "[src], link[href], a[rel='external'], :jqmData(ajax='false'), a[target]" ).each(function() {
-                                                       var thisAttr = $( this ).is( '[href]' ) ? 'href' :
-                                                                       $(this).is('[src]') ? 'src' : 'action',
-                                                               thisUrl = $( this ).attr( thisAttr );
-
-                                                       // XXX_jblas: We need to fix this so that it removes the document
-                                                       //            base URL, and then prepends with the new page URL.
-                                                       //if full path exists and is same, chop it - helps IE out
-                                                       thisUrl = thisUrl.replace( location.protocol + '//' + location.host + location.pathname, '' );
-
-                                                       if( !/^(\w+:|#|\/)/.test( thisUrl ) ) {
-                                                               $( this ).attr( thisAttr, newPath + thisUrl );
-                                                       }
-                                               });
-                                       }
-
-                                       //append to page and enhance
-                                       // TODO taging a page with external to make sure that embedded pages aren't removed
-                                       //      by the various page handling code is bad. Having page handling code in many
-                                       //      places is bad. Solutions post 1.0
-                                       page
-                                               .attr( "data-" + $.mobile.ns + "url", path.convertUrlToDataUrl( fileUrl ) )
-                                               .attr( "data-" + $.mobile.ns + "external-page", true )
-                                               .appendTo( settings.pageContainer );
-
-                                       // wait for page creation to leverage options defined on widget
-                                       page.one( 'pagecreate', $.mobile._bindPageRemove );
-
-                                       enhancePage( page, settings.role );
-
-                                       // Enhancing the page may result in new dialogs/sub pages being inserted
-                                       // into the DOM. If the original absUrl refers to a sub-page, that is the
-                                       // real page we are interested in.
-                                       if ( absUrl.indexOf( "&" + $.mobile.subPageUrlKey ) > -1 ) {
-                                               page = settings.pageContainer.children( ":jqmData(url='" + dataUrl + "')" );
-                                       }
-
-                                       //bind pageHide to removePage after it's hidden, if the page options specify to do so
-
-                                       // Remove loading message.
-                                       if ( settings.showLoadMsg ) {
-                                               hideMsg();
-                                       }
-
-                                       // Add the page reference and xhr to our triggerData.
-                                       triggerData.xhr = xhr;
-                                       triggerData.textStatus = textStatus;
-                                       triggerData.page = page;
-
-                                       // Let listeners know the page loaded successfully.
-                                       settings.pageContainer.trigger( "pageload", triggerData );
-
-                                       deferred.resolve( absUrl, options, page, dupCachedPage );
-                               },
-                               error: function( xhr, textStatus, errorThrown ) {
-                                       //set base back to current path
-                                       if( base ) {
-                                               base.set( path.get() );
-                                       }
-
-                                       // Add error info to our triggerData.
-                                       triggerData.xhr = xhr;
-                                       triggerData.textStatus = textStatus;
-                                       triggerData.errorThrown = errorThrown;
-
-                                       var plfEvent = new $.Event( "pageloadfailed" );
-
-                                       // Let listeners know the page load failed.
-                                       settings.pageContainer.trigger( plfEvent, triggerData );
-
-                                       // If the default behavior is prevented, stop here!
-                                       // Note that it is the responsibility of the listener/handler
-                                       // that called preventDefault(), to resolve/reject the
-                                       // deferred object within the triggerData.
-                                       if( plfEvent.isDefaultPrevented() ){
-                                               return;
-                                       }
-
-                                       // Remove loading message.
-                                       if ( settings.showLoadMsg ) {
-
-                                               // Remove loading message.
-                                               hideMsg();
-
-                                               // show error message
-                                               $.mobile.showPageLoadingMsg( $.mobile.pageLoadErrorMessageTheme, $.mobile.pageLoadErrorMessage, true );
-
-                                               // hide after delay
-                                               setTimeout( $.mobile.hidePageLoadingMsg, 1500 );
-                                       }
-
-                                       deferred.reject( absUrl, options );
-                               }
-                       });
-               }
-
-               return deferred.promise();
-       };
-
-       $.mobile.loadPage.defaults = {
-               type: "get",
-               data: undefined,
-               reloadPage: false,
-               role: undefined, // By default we rely on the role defined by the @data-role attribute.
-               showLoadMsg: false,
-               pageContainer: undefined,
-               loadMsgDelay: 50 // This delay allows loads that pull from browser cache to occur without showing the loading message.
-       };
-
-       // Show a specific page in the page container.
-       $.mobile.changePage = function( toPage, options ) {
-               // If we are in the midst of a transition, queue the current request.
-               // We'll call changePage() once we're done with the current transition to
-               // service the request.
-               if( isPageTransitioning ) {
-                       pageTransitionQueue.unshift( arguments );
-                       return;
-               }
-
-               var settings = $.extend( {}, $.mobile.changePage.defaults, options );
-
-               // Make sure we have a pageContainer to work with.
-               settings.pageContainer = settings.pageContainer || $.mobile.pageContainer;
-
-               // Make sure we have a fromPage.
-               settings.fromPage = settings.fromPage || $.mobile.activePage;
-
-               var mpc = settings.pageContainer,
-                       pbcEvent = new $.Event( "pagebeforechange" ),
-                       triggerData = { toPage: toPage, options: settings };
-
-               // Let listeners know we're about to change the current page.
-               mpc.trigger( pbcEvent, triggerData );
-
-               // If the default behavior is prevented, stop here!
-               if( pbcEvent.isDefaultPrevented() ){
-                       return;
-               }
-
-               // We allow "pagebeforechange" observers to modify the toPage in the trigger
-               // data to allow for redirects. Make sure our toPage is updated.
-
-               toPage = triggerData.toPage;
-
-               // Set the isPageTransitioning flag to prevent any requests from
-               // entering this method while we are in the midst of loading a page
-               // or transitioning.
-
-               isPageTransitioning = true;
-
-               // If the caller passed us a url, call loadPage()
-               // to make sure it is loaded into the DOM. We'll listen
-               // to the promise object it returns so we know when
-               // it is done loading or if an error ocurred.
-               if ( typeof toPage == "string" ) {
-                       $.mobile.loadPage( toPage, settings )
-                               .done(function( url, options, newPage, dupCachedPage ) {
-                                       isPageTransitioning = false;
-                                       options.duplicateCachedPage = dupCachedPage;
-                                       $.mobile.changePage( newPage, options );
-                               })
-                               .fail(function( url, options ) {
-                                       isPageTransitioning = false;
-
-                                       //clear out the active button state
-                                       removeActiveLinkClass( true );
-
-                                       //release transition lock so navigation is free again
-                                       releasePageTransitionLock();
-                                       settings.pageContainer.trigger( "pagechangefailed", triggerData );
-                               });
-                       return;
-               }
-
-               // If we are going to the first-page of the application, we need to make
-               // sure settings.dataUrl is set to the application document url. This allows
-               // us to avoid generating a document url with an id hash in the case where the
-               // first-page of the document has an id attribute specified.
-               if ( toPage[ 0 ] === $.mobile.firstPage[ 0 ] && !settings.dataUrl ) {
-                       settings.dataUrl = documentUrl.hrefNoHash;
-               }
-
-               // The caller passed us a real page DOM element. Update our
-               // internal state and then trigger a transition to the page.
-               var fromPage = settings.fromPage,
-                       url = ( settings.dataUrl && path.convertUrlToDataUrl( settings.dataUrl ) ) || toPage.jqmData( "url" ),
-                       // The pageUrl var is usually the same as url, except when url is obscured as a dialog url. pageUrl always contains the file path
-                       pageUrl = url,
-                       fileUrl = path.getFilePath( url ),
-                       active = urlHistory.getActive(),
-                       activeIsInitialPage = urlHistory.activeIndex === 0,
-                       historyDir = 0,
-                       pageTitle = document.title,
-                       isDialog = settings.role === "dialog" || toPage.jqmData( "role" ) === "dialog";
-
-               // By default, we prevent changePage requests when the fromPage and toPage
-               // are the same element, but folks that generate content manually/dynamically
-               // and reuse pages want to be able to transition to the same page. To allow
-               // this, they will need to change the default value of allowSamePageTransition
-               // to true, *OR*, pass it in as an option when they manually call changePage().
-               // It should be noted that our default transition animations assume that the
-               // formPage and toPage are different elements, so they may behave unexpectedly.
-               // It is up to the developer that turns on the allowSamePageTransitiona option
-               // to either turn off transition animations, or make sure that an appropriate
-               // animation transition is used.
-               if( fromPage && fromPage[0] === toPage[0] && !settings.allowSamePageTransition ) {
-                       isPageTransitioning = false;
-                       mpc.trigger( "pagechange", triggerData );
-                       return;
-               }
-
-               // We need to make sure the page we are given has already been enhanced.
-               enhancePage( toPage, settings.role );
-
-               // If the changePage request was sent from a hashChange event, check to see if the
-               // page is already within the urlHistory stack. If so, we'll assume the user hit
-               // the forward/back button and will try to match the transition accordingly.
-               if( settings.fromHashChange ) {
-                       urlHistory.directHashChange({
-                               currentUrl:     url,
-                               isBack:         function() { historyDir = -1; },
-                               isForward:      function() { historyDir = 1; }
-                       });
-               }
-
-               // Kill the keyboard.
-               // XXX_jblas: We need to stop crawling the entire document to kill focus. Instead,
-               //            we should be tracking focus with a delegate() handler so we already have
-               //            the element in hand at this point.
-               // Wrap this in a try/catch block since IE9 throw "Unspecified error" if document.activeElement
-               // is undefined when we are in an IFrame.
-               try {
-                       if(document.activeElement && document.activeElement.nodeName.toLowerCase() != 'body') {
-                               $(document.activeElement).blur();
-                       } else {
-                               $( "input:focus, textarea:focus, select:focus" ).blur();
-                       }
-               } catch(e) {}
-
-               // If we're displaying the page as a dialog, we don't want the url
-               // for the dialog content to be used in the hash. Instead, we want
-               // to append the dialogHashKey to the url of the current page.
-               if ( isDialog && active ) {
-                       // on the initial page load active.url is undefined and in that case should
-                       // be an empty string. Moving the undefined -> empty string back into
-                       // urlHistory.addNew seemed imprudent given undefined better represents
-                       // the url state
-                       url = ( active.url || "" ) + dialogHashKey;
-               }
-
-               // Set the location hash.
-               if( settings.changeHash !== false && url ) {
-                       //disable hash listening temporarily
-                       urlHistory.ignoreNextHashChange = true;
-                       //update hash and history
-                       path.set( url );
-               }
-
-               // if title element wasn't found, try the page div data attr too
-               // If this is a deep-link or a reload ( active === undefined ) then just use pageTitle
-               var newPageTitle = ( !active )? pageTitle : toPage.jqmData( "title" ) || toPage.children(":jqmData(role='header')").find(".ui-title" ).getEncodedText();
-               if( !!newPageTitle && pageTitle == document.title ) {
-                       pageTitle = newPageTitle;
-               }
-               if ( !toPage.jqmData( "title" ) ) {
-                       toPage.jqmData( "title", pageTitle );
-               }
-
-               // Make sure we have a transition defined.
-               settings.transition = settings.transition
-                       || ( ( historyDir && !activeIsInitialPage ) ? active.transition : undefined )
-                       || ( isDialog ? $.mobile.defaultDialogTransition : $.mobile.defaultPageTransition );
-
-               //add page to history stack if it's not back or forward
-               if( !historyDir ) {
-                       urlHistory.addNew( url, settings.transition, pageTitle, pageUrl, settings.role );
-               }
-
-               //set page title
-               document.title = urlHistory.getActive().title;
-
-               //set "toPage" as activePage
-               $.mobile.activePage = toPage;
-
-               // If we're navigating back in the URL history, set reverse accordingly.
-               settings.reverse = settings.reverse || historyDir < 0;
-
-               transitionPages( toPage, fromPage, settings.transition, settings.reverse )
-                       .done(function( name, reverse, $to, $from, alreadyFocused ) {
-                               removeActiveLinkClass();
-
-                               //if there's a duplicateCachedPage, remove it from the DOM now that it's hidden
-                               if ( settings.duplicateCachedPage ) {
-                                       settings.duplicateCachedPage.remove();
-                               }
-
-                               // Send focus to the newly shown page. Moved from promise .done binding in transitionPages
-                               // itself to avoid ie bug that reports offsetWidth as > 0 (core check for visibility)
-                               // despite visibility: hidden addresses issue #2965
-                               // https://github.com/jquery/jquery-mobile/issues/2965
-                               if( !alreadyFocused ){
-                                       $.mobile.focusPage( toPage );
-                               }
-
-                               releasePageTransitionLock();
-
-                               // Let listeners know we're all done changing the current page.
-                               mpc.trigger( "pagechange", triggerData );
-                       });
-       };
-
-       $.mobile.changePage.defaults = {
-               transition: undefined,
-               reverse: false,
-               changeHash: true,
-               fromHashChange: false,
-               role: undefined, // By default we rely on the role defined by the @data-role attribute.
-               duplicateCachedPage: undefined,
-               pageContainer: undefined,
-               showLoadMsg: true, //loading message shows by default when pages are being fetched during changePage
-               dataUrl: undefined,
-               fromPage: undefined,
-               allowSamePageTransition: false
-       };
-
-/* Event Bindings - hashchange, submit, and click */
-       function findClosestLink( ele )
-       {
-               while ( ele ) {
-                       // Look for the closest element with a nodeName of "a".
-                       // Note that we are checking if we have a valid nodeName
-                       // before attempting to access it. This is because the
-                       // node we get called with could have originated from within
-                       // an embedded SVG document where some symbol instance elements
-                       // don't have nodeName defined on them, or strings are of type
-                       // SVGAnimatedString.
-                       if ( ( typeof ele.nodeName === "string" ) && ele.nodeName.toLowerCase() == "a" ) {
-                               break;
-                       }
-                       ele = ele.parentNode;
-               }
-               return ele;
-       }
-
-       // The base URL for any given element depends on the page it resides in.
-       function getClosestBaseUrl( ele )
-       {
-               // Find the closest page and extract out its url.
-               var url = $( ele ).closest( ".ui-page" ).jqmData( "url" ),
-                       base = documentBase.hrefNoHash;
-
-               if ( !url || !path.isPath( url ) ) {
-                       url = base;
-               }
-
-               return path.makeUrlAbsolute( url, base);
-       }
-
-
-       //The following event bindings should be bound after mobileinit has been triggered
-       //the following function is called in the init file
-       $.mobile._registerInternalEvents = function(){
-
-               //bind to form submit events, handle with Ajax
-               $( document ).delegate( "form", "submit", function( event ) {
-                       var $this = $( this );
-
-                       if( !$.mobile.ajaxEnabled ||
-                                       // test that the form is, itself, ajax false
-                                       $this.is(":jqmData(ajax='false')") ||
-                                       // test that $.mobile.ignoreContentEnabled is set and
-                                       // the form or one of it's parents is ajax=false
-                                       !$this.jqmHijackable().length ) {
-                               return;
-                       }
-
-                       var type = $this.attr( "method" ),
-                               target = $this.attr( "target" ),
-                               url = $this.attr( "action" );
-
-                       // If no action is specified, browsers default to using the
-                       // URL of the document containing the form. Since we dynamically
-                       // pull in pages from external documents, the form should submit
-                       // to the URL for the source document of the page containing
-                       // the form.
-                       if ( !url ) {
-                               // Get the @data-url for the page containing the form.
-                               url = getClosestBaseUrl( $this );
-                               if ( url === documentBase.hrefNoHash ) {
-                                       // The url we got back matches the document base,
-                                       // which means the page must be an internal/embedded page,
-                                       // so default to using the actual document url as a browser
-                                       // would.
-                                       url = documentUrl.hrefNoSearch;
-                               }
-                       }
-
-                       url = path.makeUrlAbsolute(  url, getClosestBaseUrl($this) );
-
-                       //external submits use regular HTTP
-                       if( path.isExternal( url ) || target ) {
-                               return;
-                       }
-
-                       $.mobile.changePage(
-                               url,
-                               {
-                                       type:           type && type.length && type.toLowerCase() || "get",
-                                       data:           $this.serialize(),
-                                       transition:     $this.jqmData( "transition" ),
-                                       direction:      $this.jqmData( "direction" ),
-                                       reloadPage:     true
-                               }
-                       );
-                       event.preventDefault();
-               });
-
-               //add active state on vclick
-               $( document ).bind( "vclick", function( event ) {
-                       // if this isn't a left click we don't care. Its important to note
-                       // that when the virtual event is generated it will create the which attr
-                       if ( event.which > 1 || !$.mobile.linkBindingEnabled ) {
-                               return;
-                       }
-
-                       var link = findClosestLink( event.target );
-
-                       // split from the previous return logic to avoid find closest where possible
-                       // TODO teach $.mobile.hijackable to operate on raw dom elements so the link wrapping
-                       // can be avoided
-                       if ( !$(link).jqmHijackable().length ) {
-                               return;
-                       }
-
-                       if ( link ) {
-                               if ( path.parseUrl( link.getAttribute( "href" ) || "#" ).hash !== "#" ) {
-                                       removeActiveLinkClass( true );
-                                       $activeClickedLink = $( link ).closest( ".ui-btn" ).not( ".ui-disabled" );
-                                       $activeClickedLink.addClass( $.mobile.activeBtnClass );
-                                       $( "." + $.mobile.activePageClass + " .ui-btn" ).not( link ).blur();
-
-                                       // By caching the href value to data and switching the href to a #, we can avoid address bar showing in iOS. The click handler resets the href during its initial steps if this data is present
-                                       $( link )
-                                               .jqmData( "href", $( link  ).attr( "href" )  )
-                                               .attr( "href", "#" );
-                               }
-                       }
-               });
-
-               // click routing - direct to HTTP or Ajax, accordingly
-               $( document ).bind( "click", function( event ) {
-                       if( !$.mobile.linkBindingEnabled ){
-                               return;
-                       }
-
-                       var link = findClosestLink( event.target ), $link = $( link ), httpCleanup;
-
-                       // If there is no link associated with the click or its not a left
-                       // click we want to ignore the click
-                       // TODO teach $.mobile.hijackable to operate on raw dom elements so the link wrapping
-                       // can be avoided
-                       if ( !link || event.which > 1 || !$link.jqmHijackable().length ) {
-                               return;
-                       }
-
-                       //remove active link class if external (then it won't be there if you come back)
-                       httpCleanup = function(){
-                               window.setTimeout( function() { removeActiveLinkClass( true ); }, 200 );
-                       };
-
-                       // If there's data cached for the real href value, set the link's href back to it again. This pairs with an address bar workaround from the vclick handler
-                       if( $link.jqmData( "href" ) ){
-                               $link.attr( "href", $link.jqmData( "href" ) );
-                       }
-
-                       //if there's a data-rel=back attr, go back in history
-                       if( $link.is( ":jqmData(rel='back')" ) ) {
-                               window.history.back();
-                               return false;
-                       }
-
-                       var baseUrl = getClosestBaseUrl( $link ),
-
-                               //get href, if defined, otherwise default to empty hash
-                               href = path.makeUrlAbsolute( $link.attr( "href" ) || "#", baseUrl );
-
-                       //if ajax is disabled, exit early
-                       if( !$.mobile.ajaxEnabled && !path.isEmbeddedPage( href ) ){
-                               httpCleanup();
-                               //use default click handling
-                               return;
-                       }
-
-                       // XXX_jblas: Ideally links to application pages should be specified as
-                       //            an url to the application document with a hash that is either
-                       //            the site relative path or id to the page. But some of the
-                       //            internal code that dynamically generates sub-pages for nested
-                       //            lists and select dialogs, just write a hash in the link they
-                       //            create. This means the actual URL path is based on whatever
-                       //            the current value of the base tag is at the time this code
-                       //            is called. For now we are just assuming that any url with a
-                       //            hash in it is an application page reference.
-                       if ( href.search( "#" ) != -1 ) {
-                               href = href.replace( /[^#]*#/, "" );
-                               if ( !href ) {
-                                       //link was an empty hash meant purely
-                                       //for interaction, so we ignore it.
-                                       event.preventDefault();
-                                       return;
-                               } else if ( path.isPath( href ) ) {
-                                       //we have apath so make it the href we want to load.
-                                       href = path.makeUrlAbsolute( href, baseUrl );
-                               } else {
-                                       //we have a simple id so use the documentUrl as its base.
-                                       href = path.makeUrlAbsolute( "#" + href, documentUrl.hrefNoHash );
-                               }
-                       }
-
-                               // Should we handle this link, or let the browser deal with it?
-                       var useDefaultUrlHandling = $link.is( "[rel='external']" ) || $link.is( ":jqmData(ajax='false')" ) || $link.is( "[target]" ),
-
-                               // Some embedded browsers, like the web view in Phone Gap, allow cross-domain XHR
-                               // requests if the document doing the request was loaded via the file:// protocol.
-                               // This is usually to allow the application to "phone home" and fetch app specific
-                               // data. We normally let the browser handle external/cross-domain urls, but if the
-                               // allowCrossDomainPages option is true, we will allow cross-domain http/https
-                               // requests to go through our page loading logic.
-                               isCrossDomainPageLoad = ( $.mobile.allowCrossDomainPages && documentUrl.protocol === "file:" && href.search( /^https?:/ ) != -1 ),
-
-                               //check for protocol or rel and its not an embedded page
-                               //TODO overlap in logic from isExternal, rel=external check should be
-                               //     moved into more comprehensive isExternalLink
-                               isExternal = useDefaultUrlHandling || ( path.isExternal( href ) && !isCrossDomainPageLoad );
-
-                       if( isExternal ) {
-                               httpCleanup();
-                               //use default click handling
-                               return;
-                       }
-
-                       //use ajax
-                       var transition = $link.jqmData( "transition" ),
-                               direction = $link.jqmData( "direction" ),
-                               reverse = ( direction && direction === "reverse" ) ||
-                                                       // deprecated - remove by 1.0
-                                                       $link.jqmData( "back" ),
-
-                               //this may need to be more specific as we use data-rel more
-                               role = $link.attr( "data-" + $.mobile.ns + "rel" ) || undefined;
-
-                       $.mobile.changePage( href, { transition: transition, reverse: reverse, role: role } );
-                       event.preventDefault();
-               });
-
-               //prefetch pages when anchors with data-prefetch are encountered
-               $( document ).delegate( ".ui-page", "pageshow.prefetch", function() {
-                       var urls = [];
-                       $( this ).find( "a:jqmData(prefetch)" ).each(function(){
-                               var $link = $(this),
-                                       url = $link.attr( "href" );
-
-                               if ( url && $.inArray( url, urls ) === -1 ) {
-                                       urls.push( url );
-
-                                       $.mobile.loadPage( url, {role: $link.attr("data-" + $.mobile.ns + "rel")} );
-                               }
-                       });
-               });
-
-               $.mobile._handleHashChange = function( hash ) {
-                       //find first page via hash
-                       var to = path.stripHash( hash ),
-                               //transition is false if it's the first page, undefined otherwise (and may be overridden by default)
-                               transition = $.mobile.urlHistory.stack.length === 0 ? "none" : undefined,
-
-                               // default options for the changPage calls made after examining the current state
-                               // of the page and the hash
-                               changePageOptions = {
-                                       transition: transition,
-                                       changeHash: false,
-                                       fromHashChange: true
-                               };
-
-                       //if listening is disabled (either globally or temporarily), or it's a dialog hash
-                       if( !$.mobile.hashListeningEnabled || urlHistory.ignoreNextHashChange ) {
-                               urlHistory.ignoreNextHashChange = false;
-                               return;
-                       }
-
-                       // special case for dialogs
-                       if( urlHistory.stack.length > 1 && to.indexOf( dialogHashKey ) > -1 ) {
-
-                               // If current active page is not a dialog skip the dialog and continue
-                               // in the same direction
-                               if(!$.mobile.activePage.is( ".ui-dialog" )) {
-                                       //determine if we're heading forward or backward and continue accordingly past
-                                       //the current dialog
-                                       urlHistory.directHashChange({
-                                               currentUrl: to,
-                                               isBack: function() { window.history.back(); },
-                                               isForward: function() { window.history.forward(); }
-                                       });
-
-                                       // prevent changePage()
-                                       return;
-                               } else {
-                                       // if the current active page is a dialog and we're navigating
-                                       // to a dialog use the dialog objected saved in the stack
-                                       urlHistory.directHashChange({
-                                               currentUrl: to,
-
-                                               // regardless of the direction of the history change
-                                               // do the following
-                                               either: function( isBack ) {
-                                                       var active = $.mobile.urlHistory.getActive();
-
-                                                       to = active.pageUrl;
-
-                                                       // make sure to set the role, transition and reversal
-                                                       // as most of this is lost by the domCache cleaning
-                                                       $.extend( changePageOptions, {
-                                                               role: active.role,
-                                                               transition:      active.transition,
-                                                               reverse: isBack
-                                                       });
-                                               }
-                                       });
-                               }
-                       }
-
-                       //if to is defined, load it
-                       if ( to ) {
-                               // At this point, 'to' can be one of 3 things, a cached page element from
-                               // a history stack entry, an id, or site-relative/absolute URL. If 'to' is
-                               // an id, we need to resolve it against the documentBase, not the location.href,
-                               // since the hashchange could've been the result of a forward/backward navigation
-                               // that crosses from an external page/dialog to an internal page/dialog.
-                               to = ( typeof to === "string" && !path.isPath( to ) ) ? ( path.makeUrlAbsolute( '#' + to, documentBase ) ) : to;
-                               $.mobile.changePage( to, changePageOptions );
-                       }       else {
-                               //there's no hash, go to the first page in the dom
-                               $.mobile.changePage( $.mobile.firstPage, changePageOptions );
-                       }
-               };
-
-               //hashchange event handler
-               $window.bind( "hashchange", function( e, triggered ) {
-                       $.mobile._handleHashChange( location.hash );
-               });
-
-               //set page min-heights to be device specific
-               $( document ).bind( "pageshow", resetActivePageHeight );
-               $( window ).bind( "throttledresize", resetActivePageHeight );
-
-       };//_registerInternalEvents callback
-
-})( jQuery );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.navigation.pushstate.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.navigation.pushstate.js
deleted file mode 100644 (file)
index 85a524e..0000000
+++ /dev/null
@@ -1,163 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: history.pushState support, layered on top of hashchange.
-//>>label: Pushstate Support
-//>>group: Navigation
-
-define( [ "jquery", "./jquery.mobile.navigation", "../external/requirejs/depend!./jquery.mobile.hashchange[jquery]" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-( function( $, window ) {
-       // For now, let's Monkeypatch this onto the end of $.mobile._registerInternalEvents
-       // Scope self to pushStateHandler so we can reference it sanely within the
-       // methods handed off as event handlers
-       var     pushStateHandler = {},
-               self = pushStateHandler,
-               $win = $( window ),
-               url = $.mobile.path.parseUrl( location.href );
-
-       $.extend( pushStateHandler, {
-               // TODO move to a path helper, this is rather common functionality
-               initialFilePath: (function() {
-                       return url.pathname + url.search;
-               })(),
-
-               initialHref: url.hrefNoHash,
-
-               state: function() {
-                       return {
-                               hash: location.hash || "#" + self.initialFilePath,
-                               title: document.title,
-
-                               // persist across refresh
-                               initialHref: self.initialHref
-                       };
-               },
-
-               resetUIKeys: function( url ) {
-                       var dialog = $.mobile.dialogHashKey,
-                               subkey = "&" + $.mobile.subPageUrlKey,
-                               dialogIndex = url.indexOf( dialog );
-
-                       if( dialogIndex > -1 ) {
-                               url = url.slice( 0, dialogIndex ) + "#" + url.slice( dialogIndex );
-                       } else if( url.indexOf( subkey ) > -1 ) {
-                               url = url.split( subkey ).join( "#" + subkey );
-                       }
-
-                       return url;
-               },
-
-               hashValueAfterReset: function( url ) {
-                       var resetUrl = self.resetUIKeys( url );
-                       return $.mobile.path.parseUrl( resetUrl ).hash;
-               },
-
-               // TODO sort out a single barrier to hashchange functionality
-               nextHashChangePrevented: function( value ) {
-                       $.mobile.urlHistory.ignoreNextHashChange = value;
-                       self.onHashChangeDisabled = value;
-               },
-
-               // on hash change we want to clean up the url
-               // NOTE this takes place *after* the vanilla navigation hash change
-               // handling has taken place and set the state of the DOM
-               onHashChange: function( e ) {
-                       // disable this hash change
-                       if( self.onHashChangeDisabled ){
-                               return;
-                       }
-
-                       var href, state,
-                               hash = location.hash,
-                               isPath = $.mobile.path.isPath( hash ),
-                               resolutionUrl = isPath ? location.href : $.mobile.getDocumentUrl();
-
-                       hash = isPath ? hash.replace( "#", "" ) : hash;
-
-
-                       // propulate the hash when its not available
-                       state = self.state();
-
-                       // make the hash abolute with the current href
-                       href = $.mobile.path.makeUrlAbsolute( hash, resolutionUrl );
-
-                       if ( isPath ) {
-                               href = self.resetUIKeys( href );
-                       }
-
-                       // replace the current url with the new href and store the state
-                       // Note that in some cases we might be replacing an url with the
-                       // same url. We do this anyways because we need to make sure that
-                       // all of our history entries have a state object associated with
-                       // them. This allows us to work around the case where window.history.back()
-                       // is called to transition from an external page to an embedded page.
-                       // In that particular case, a hashchange event is *NOT* generated by the browser.
-                       // Ensuring each history entry has a state object means that onPopState()
-                       // will always trigger our hashchange callback even when a hashchange event
-                       // is not fired.
-                       history.replaceState( state, document.title, href );
-               },
-
-               // on popstate (ie back or forward) we need to replace the hash that was there previously
-               // cleaned up by the additional hash handling
-               onPopState: function( e ) {
-                       var poppedState = e.originalEvent.state,
-                               timeout, fromHash, toHash, hashChanged;
-
-                       // if there's no state its not a popstate we care about, eg chrome's initial popstate
-                       if( poppedState ) {
-                               // the active url in the history stack will still be from the previous state
-                               // so we can use it to verify if a hashchange will be fired from the popstate
-                               fromHash = self.hashValueAfterReset( $.mobile.urlHistory.getActive().url );
-
-                               // the hash stored in the state popped off the stack will be our currenturl or
-                               // the url to which we wish to navigate
-                               toHash = self.hashValueAfterReset( poppedState.hash.replace("#", "") );
-
-                               // if the hashes of the urls are different we must assume that the browser
-                               // will fire a hashchange
-                               hashChanged = fromHash !== toHash;
-
-                               // unlock hash handling once the hashchange caused be the popstate has fired
-                               if( hashChanged ) {
-                                       $win.one( "hashchange.pushstate", function() {
-                                               self.nextHashChangePrevented( false );
-                                       });
-                               }
-
-                               // enable hash handling for the the _handleHashChange call
-                               self.nextHashChangePrevented( false );
-
-                               // change the page based on the hash
-                               $.mobile._handleHashChange( poppedState.hash );
-
-                               // only prevent another hash change handling if a hash change will be fired
-                               // by the browser
-                               if( hashChanged ) {
-                                       // disable hash handling until one of the above timers fires
-                                       self.nextHashChangePrevented( true );
-                               }
-                       }
-               },
-
-               init: function() {
-                       $win.bind( "hashchange", self.onHashChange );
-
-                       // Handle popstate events the occur through history changes
-                       $win.bind( "popstate", self.onPopState );
-
-                       // if there's no hash, we need to replacestate for returning to home
-                       if ( location.hash === "" ) {
-                               history.replaceState( self.state(), document.title, location.href );
-                       }
-               }
-       });
-
-       $( function() {
-               if( $.mobile.pushStateEnabled && $.support.pushState ){
-                       pushStateHandler.init();
-               }
-       });
-})( jQuery, this );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.nojs.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.nojs.js
deleted file mode 100644 (file)
index 7137ebd..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Adds class to make elements hidden to A grade browsers
-//>>label: “nojs” Classes
-//>>group: Utilities
-
-define( [ "jquery" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, undefined ) {
-
-$( document ).bind( "pagecreate create", function( e ){
-       $( ":jqmData(role='nojs')", e.target ).addClass( "ui-nojs" );
-       
-});
-
-})( jQuery );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.page.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.page.js
deleted file mode 100644 (file)
index d2bd195..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Basic page definition and formatting.
-//>>label: Page Creation
-//>>group: Core
-
-define( [ "jquery", "./jquery.mobile.widget" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, undefined ) {
-
-$.widget( "mobile.page", $.mobile.widget, {
-       options: {
-               theme: "c",
-               domCache: false,
-               keepNativeDefault: ":jqmData(role='none'), :jqmData(role='nojs')"
-       },
-
-       _create: function() {
-               
-               var self = this;
-               
-               // if false is returned by the callbacks do not create the page
-               if( self._trigger( "beforecreate" ) === false ){
-                       return false;
-               }
-
-               self.element
-                       .attr( "tabindex", "0" )
-                       .addClass( "ui-page ui-body-" + self.options.theme )
-                       .bind( "pagebeforehide", function(){
-                               self.removeContainerBackground();
-                       } )
-                       .bind( "pagebeforeshow", function(){
-                               self.setContainerBackground();
-                       } );
-
-       },
-       
-       removeContainerBackground: function(){
-               $.mobile.pageContainer.removeClass( "ui-overlay-" + $.mobile.getInheritedTheme( this.element.parent() ) );
-       },
-       
-       // set the page container background to the page theme
-       setContainerBackground: function( theme ){
-               if( this.options.theme ){
-                       $.mobile.pageContainer.addClass( "ui-overlay-" + ( theme || this.options.theme ) );
-               }
-       },
-
-       keepNativeSelector: function() {
-               var options = this.options,
-                       keepNativeDefined = options.keepNative && $.trim(options.keepNative);
-
-               if( keepNativeDefined && options.keepNative !== options.keepNativeDefault ){
-                       return [options.keepNative, options.keepNativeDefault].join(", ");
-               }
-
-               return options.keepNativeDefault;
-       }
-});
-})( jQuery );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.page.sections.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.page.sections.js
deleted file mode 100644 (file)
index e0a718d..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Theming and layout of headers, footers, and content areas
-//>>label: Page Sections
-//>>group: Core
-
-define( [ "jquery", "./jquery.mobile.page", "./jquery.mobile.core", "./jquery.mobile.buttonMarkup" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, undefined ) {
-
-$.mobile.page.prototype.options.backBtnText  = "Back";
-$.mobile.page.prototype.options.addBackBtn   = false;
-$.mobile.page.prototype.options.backBtnTheme = null;
-$.mobile.page.prototype.options.headerTheme  = "a";
-$.mobile.page.prototype.options.footerTheme  = "a";
-$.mobile.page.prototype.options.contentTheme = null;
-
-$( document ).delegate( ":jqmData(role='page'), :jqmData(role='dialog')", "pagecreate", function( e ) {
-
-       var $page = $( this ),
-               o = $page.data( "page" ).options,
-               pageRole = $page.jqmData( "role" ),
-               pageTheme = o.theme;
-
-       $( ":jqmData(role='header'), :jqmData(role='footer'), :jqmData(role='content')", this )
-               .jqmEnhanceable()
-               .each(function() {
-
-               var $this = $( this ),
-                       role = $this.jqmData( "role" ),
-                       theme = $this.jqmData( "theme" ),
-                       contentTheme = theme || o.contentTheme || ( pageRole === "dialog" && pageTheme ),
-                       $headeranchors,
-                       leftbtn,
-                       rightbtn,
-                       backBtn;
-
-               $this.addClass( "ui-" + role );
-
-               //apply theming and markup modifications to page,header,content,footer
-               if ( role === "header" || role === "footer" ) {
-
-                       var thisTheme = theme || ( role === "header" ? o.headerTheme : o.footerTheme ) || pageTheme;
-
-                       $this
-                               //add theme class
-                               .addClass( "ui-bar-" + thisTheme )
-                               // Add ARIA role
-                               .attr( "role", role === "header" ? "banner" : "contentinfo" );
-
-                       if( role === "header") {
-                               // Right,left buttons
-                               $headeranchors  = $this.children( "a" );
-                               leftbtn = $headeranchors.hasClass( "ui-btn-left" );
-                               rightbtn = $headeranchors.hasClass( "ui-btn-right" );
-
-                               leftbtn = leftbtn || $headeranchors.eq( 0 ).not( ".ui-btn-right" ).addClass( "ui-btn-left" ).length;
-
-                               rightbtn = rightbtn || $headeranchors.eq( 1 ).addClass( "ui-btn-right" ).length;
-                       }
-
-                       // Auto-add back btn on pages beyond first view
-                       if ( o.addBackBtn &&
-                               role === "header" &&
-                               $( ".ui-page" ).length > 1 &&
-                               $page.jqmData( "url" ) !== $.mobile.path.stripHash( location.hash ) &&
-                               !leftbtn ) {
-
-                               backBtn = $( "<a href='#' class='ui-btn-left' data-"+ $.mobile.ns +"rel='back' data-"+ $.mobile.ns +"icon='arrow-l'>"+ o.backBtnText +"</a>" )
-                                       // If theme is provided, override default inheritance
-                                       .attr( "data-"+ $.mobile.ns +"theme", o.backBtnTheme || thisTheme )
-                                       .prependTo( $this );
-                       }
-
-                       // Page title
-                       $this.children( "h1, h2, h3, h4, h5, h6" )
-                               .addClass( "ui-title" )
-                               // Regardless of h element number in src, it becomes h1 for the enhanced page
-                               .attr({
-                                       "role": "heading",
-                                       "aria-level": "1"
-                               });
-
-               } else if ( role === "content" ) {
-                       if ( contentTheme ) {
-                           $this.addClass( "ui-body-" + ( contentTheme ) );
-                       }
-
-                       // Add ARIA role
-                       $this.attr( "role", "main" );
-               }
-       });
-});
-
-})( jQuery );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.support.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.support.js
deleted file mode 100644 (file)
index 58483b4..0000000
+++ /dev/null
@@ -1,168 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Assorted tests to qualify browsers by detecting features
-//>>label: Support Tests
-//>>group: Core
-//>>required: true
-
-define( [  "jquery", "./jquery.mobile.media", "./jquery.mobile.core" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, undefined ) {
-
-var fakeBody = $( "<body>" ).prependTo( "html" ),
-       fbCSS = fakeBody[ 0 ].style,
-       vendors = [ "Webkit", "Moz", "O" ],
-       webos = "palmGetResource" in window, //only used to rule out scrollTop
-       operamini = window.operamini && ({}).toString.call( window.operamini ) === "[object OperaMini]",
-       bb = window.blackberry; //only used to rule out box shadow, as it's filled opaque on BB
-
-// thx Modernizr
-function propExists( prop ) {
-       var uc_prop = prop.charAt( 0 ).toUpperCase() + prop.substr( 1 ),
-               props = ( prop + " " + vendors.join( uc_prop + " " ) + uc_prop ).split( " " );
-
-       for ( var v in props ){
-               if ( fbCSS[ props[ v ] ] !== undefined ) {
-                       return true;
-               }
-       }
-}
-
-function validStyle( prop, value, check_vend ) {
-       var div = document.createElement('div'),
-               uc = function( txt ) {
-                       return txt.charAt( 0 ).toUpperCase() + txt.substr( 1 )
-               },
-               vend_pref = function( vend ) {
-                       return  "-" + vend.charAt( 0 ).toLowerCase() + vend.substr( 1 ) + "-";
-               },
-               check_style = function( vend ) {
-                       var vend_prop = vend_pref( vend ) + prop + ": " + value + ";",
-                               uc_vend = uc( vend ),
-                               propStyle = uc_vend + uc( prop );
-               
-                       div.setAttribute( "style", vend_prop );
-               
-                       if( !!div.style[ propStyle ] ) {
-                               ret = true;
-                       }
-               },
-               check_vends = check_vend ? [ check_vend ] : vendors,
-               ret;
-
-       for( i = 0; i < check_vends.length; i++ ) {
-               check_style( check_vends[i] );
-       }
-       return !!ret;
-}
-
-// Thanks to Modernizr src for this test idea. `perspective` check is limited to Moz to prevent a false positive for 3D transforms on Android.
-function transform3dTest() {
-       var prop = "transform-3d";
-       return validStyle( 'perspective', '10px', 'moz' ) || $.mobile.media( "(-" + vendors.join( "-" + prop + "),(-" ) + "-" + prop + "),(" + prop + ")" );
-}
-
-// Test for dynamic-updating base tag support ( allows us to avoid href,src attr rewriting )
-function baseTagTest() {
-       var fauxBase = location.protocol + "//" + location.host + location.pathname + "ui-dir/",
-               base = $( "head base" ),
-               fauxEle = null,
-               href = "",
-               link, rebase;
-
-       if ( !base.length ) {
-               base = fauxEle = $( "<base>", { "href": fauxBase }).appendTo( "head" );
-       } else {
-               href = base.attr( "href" );
-       }
-
-       link = $( "<a href='testurl' />" ).prependTo( fakeBody );
-       rebase = link[ 0 ].href;
-       base[ 0 ].href = href || location.pathname;
-
-       if ( fauxEle ) {
-               fauxEle.remove();
-       }
-       return rebase.indexOf( fauxBase ) === 0;
-}
-
-
-// non-UA-based IE version check by James Padolsey, modified by jdalton - from http://gist.github.com/527683
-// allows for inclusion of IE 6+, including Windows Mobile 7
-$.extend( $.mobile, { browser: {} } );
-$.mobile.browser.ie = (function() {
-       var v = 3,
-       div = document.createElement( "div" ),
-       a = div.all || [];
-
-       // added {} to silence closure compiler warnings. registering my dislike of all things
-       // overly clever here for future reference
-       while ( div.innerHTML = "<!--[if gt IE " + ( ++v ) + "]><br><![endif]-->", a[ 0 ] ){};
-
-       return v > 4 ? v : !v;
-})();
-
-
-$.extend( $.support, {
-       orientation: "orientation" in window && "onorientationchange" in window,
-       touch: "ontouchend" in document,
-       cssTransitions: "WebKitTransitionEvent" in window || validStyle( 'transition', 'height 100ms linear' ),
-       pushState: "pushState" in history && "replaceState" in history,
-       mediaquery: $.mobile.media( "only all" ),
-       cssPseudoElement: !!propExists( "content" ),
-       touchOverflow: !!propExists( "overflowScrolling" ),
-       cssTransform3d: transform3dTest(),
-       boxShadow: !!propExists( "boxShadow" ) && !bb,
-       scrollTop: ( "pageXOffset" in window || "scrollTop" in document.documentElement || "scrollTop" in fakeBody[ 0 ] ) && !webos && !operamini,
-       dynamicBaseTag: baseTagTest()
-});
-
-fakeBody.remove();
-
-
-// $.mobile.ajaxBlacklist is used to override ajaxEnabled on platforms that have known conflicts with hash history updates (BB5, Symbian)
-// or that generally work better browsing in regular http for full page refreshes (Opera Mini)
-// Note: This detection below is used as a last resort.
-// We recommend only using these detection methods when all other more reliable/forward-looking approaches are not possible
-var nokiaLTE7_3 = (function(){
-
-       var ua = window.navigator.userAgent;
-
-       //The following is an attempt to match Nokia browsers that are running Symbian/s60, with webkit, version 7.3 or older
-       return ua.indexOf( "Nokia" ) > -1 &&
-                       ( ua.indexOf( "Symbian/3" ) > -1 || ua.indexOf( "Series60/5" ) > -1 ) &&
-                       ua.indexOf( "AppleWebKit" ) > -1 &&
-                       ua.match( /(BrowserNG|NokiaBrowser)\/7\.[0-3]/ );
-})();
-
-// Support conditions that must be met in order to proceed
-// default enhanced qualifications are media query support OR IE 7+
-$.mobile.gradeA = function(){
-       return $.support.mediaquery || $.mobile.browser.ie && $.mobile.browser.ie >= 7;
-};
-
-$.mobile.ajaxBlacklist =
-                       // BlackBerry browsers, pre-webkit
-                       window.blackberry && !window.WebKitPoint ||
-                       // Opera Mini
-                       operamini ||
-                       // Symbian webkits pre 7.3
-                       nokiaLTE7_3;
-
-// Lastly, this workaround is the only way we've found so far to get pre 7.3 Symbian webkit devices
-// to render the stylesheets when they're referenced before this script, as we'd recommend doing.
-// This simply reappends the CSS in place, which for some reason makes it apply
-if ( nokiaLTE7_3 ) {
-       $(function() {
-               $( "head link[rel='stylesheet']" ).attr( "rel", "alternate stylesheet" ).attr( "rel", "stylesheet" );
-       });
-}
-
-// For ruling out shadows via css
-if ( !$.support.boxShadow ) {
-       $( "html" ).addClass( "ui-mobile-nosupport-boxshadow" );
-}
-
-})( jQuery );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.support.orientation.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.support.orientation.js
deleted file mode 100644 (file)
index 0991383..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Feature test for orientation
-//>>label: Orientation support test
-//>>group: Core
-
-define( [ "jquery" ], function( jQuery ) {
-//>>excludeEnd("jqmBuildExclude");
-       (function( $, undefined ) {
-               $.extend( $.support, {
-                       orientation: "orientation" in window && "onorientationchange" in window
-               });
-       }( jQuery ));
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.support.touch.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.support.touch.js
deleted file mode 100644 (file)
index 9cba62a..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Touch feature test
-//>>label: Touch support test
-//>>group: Core
-
-define( [ "jquery" ], function( jQuery ) {
-//>>excludeEnd("jqmBuildExclude");
-       (function( $, undefined ) {
-               var support = {
-                       touch: "ontouchend" in document
-               };
-
-               $.mobile = $.mobile || {};
-               $.mobile.support = $.mobile.support || {};
-               $.extend( $.support, support );
-               $.extend( $.mobile.support, support );
-       }( jQuery ));
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.flip.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.flip.js
deleted file mode 100644 (file)
index 143c6c2..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
-* fallback transition for flip in non-3D supporting browsers (which tend to handle complex transitions poorly in general
-*/
-
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Animation styles and fallback transition definition for non-3D supporting browsers
-//>>label: Flip Transition
-//>>group: Transitions
-//>>css: ../css/structure/jquery.mobile.transition.flip.css
-
-define( [ "jquery", "./jquery.mobile.transition" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, window, undefined ) {
-
-$.mobile.transitionFallbacks.flip = "fade";
-
-})( jQuery, this );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.flow.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.flow.js
deleted file mode 100644 (file)
index 2d1a2d9..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
-* fallback transition for flow in non-3D supporting browsers (which tend to handle complex transitions poorly in general
-*/
-
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Animation styles and fallback transition definition for non-3D supporting browsers
-//>>label: Flow Transition
-//>>group: Transitions
-//>>css: ../css/structure/jquery.mobile.transition.flow.css
-
-define( [ "jquery", "./jquery.mobile.transition" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, window, undefined ) {
-
-$.mobile.transitionFallbacks.flow = "fade";
-
-})( jQuery, this );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.js
deleted file mode 100644 (file)
index 9a099dc..0000000
+++ /dev/null
@@ -1,153 +0,0 @@
-
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Animated page change core logic and sequence handlers
-//>>label: Transition Core
-//>>group: Transitions
-//>>css: ../css/themes/default/jquery.mobile.theme.css, ../css/structure/jquery.mobile.transition.css
-
-define( [ "jquery", "./jquery.mobile.core" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, window, undefined ) {
-
-var createHandler = function( sequential ){
-       
-       // Default to sequential
-       if( sequential === undefined ){
-               sequential = true;
-       }
-       
-       return function( name, reverse, $to, $from ) {
-
-               var deferred = new $.Deferred(),
-                       reverseClass = reverse ? " reverse" : "",
-                       active  = $.mobile.urlHistory.getActive(),
-                       toScroll = active.lastScroll || $.mobile.defaultHomeScroll,
-                       screenHeight = $.mobile.getScreenHeight(),
-                       maxTransitionOverride = $.mobile.maxTransitionWidth !== false && $( window ).width() > $.mobile.maxTransitionWidth,
-                       none = !$.support.cssTransitions || maxTransitionOverride || !name || name === "none",
-                       toggleViewportClass = function(){
-                               $.mobile.pageContainer.toggleClass( "ui-mobile-viewport-transitioning viewport-" + name );
-                       },
-                       scrollPage = function(){
-                               // By using scrollTo instead of silentScroll, we can keep things better in order
-                               // Just to be precautios, disable scrollstart listening like silentScroll would
-                               $.event.special.scrollstart.enabled = false;
-                               
-                               window.scrollTo( 0, toScroll );
-                               
-                               // reenable scrollstart listening like silentScroll would
-                               setTimeout(function() {
-                                       $.event.special.scrollstart.enabled = true;
-                               }, 150 );
-                       },
-                       cleanFrom = function(){
-                               $from
-                                       .removeClass( $.mobile.activePageClass + " out in reverse " + name )
-                                       .height( "" );
-                       },
-                       startOut = function(){
-                               // if it's not sequential, call the doneOut transition to start the TO page animating in simultaneously
-                               if( !sequential ){
-                                       doneOut();
-                               }
-                               else {
-                                       $from.animationComplete( doneOut );     
-                               }
-                               
-                               // Set the from page's height and start it transitioning out
-                               // Note: setting an explicit height helps eliminate tiling in the transitions
-                               $from
-                                       .height( screenHeight + $(window ).scrollTop() )
-                                       .addClass( name + " out" + reverseClass );
-                       },
-                       
-                       doneOut = function() {
-
-                               if ( $from && sequential ) {
-                                       cleanFrom();
-                               }
-                               
-                               startIn();
-                       },
-                       
-                       startIn = function(){   
-                       
-                               $to.addClass( $.mobile.activePageClass );                               
-                       
-                               // Send focus to page as it is now display: block
-                               $.mobile.focusPage( $to );
-
-                               // Set to page height
-                               $to.height( screenHeight + toScroll );
-                               
-                               scrollPage();
-                               
-                               if( !none ){
-                                       $to.animationComplete( doneIn );
-                               }
-                               
-                               $to.addClass( name + " in" + reverseClass );
-                               
-                               if( none ){
-                                       doneIn();
-                               }
-                               
-                       },
-               
-                       doneIn = function() {
-                       
-                               if ( !sequential ) {
-                                       
-                                       if( $from ){
-                                               cleanFrom();
-                                       }
-                               }
-                       
-                               $to
-                                       .removeClass( "out in reverse " + name )
-                                       .height( "" );
-                               
-                               toggleViewportClass();
-                               
-                               // In some browsers (iOS5), 3D transitions block the ability to scroll to the desired location during transition
-                               // This ensures we jump to that spot after the fact, if we aren't there already.
-                               if( $( window ).scrollTop() !== toScroll ){
-                                       scrollPage();
-                               }
-
-                               deferred.resolve( name, reverse, $to, $from, true );
-                       };
-
-               toggleViewportClass();
-       
-               if ( $from && !none ) {
-                       startOut();
-               }
-               else {
-                       doneOut();
-               }
-
-               return deferred.promise();
-       };
-}
-
-// generate the handlers from the above
-var sequentialHandler = createHandler(),
-       simultaneousHandler = createHandler( false );
-
-// Make our transition handler the public default.
-$.mobile.defaultTransitionHandler = sequentialHandler;
-
-//transition handler dictionary for 3rd party transitions
-$.mobile.transitionHandlers = {
-       "default": $.mobile.defaultTransitionHandler,
-       "sequential": sequentialHandler,
-       "simultaneous": simultaneousHandler
-};
-
-$.mobile.transitionFallbacks = {};
-
-})( jQuery, this );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.pop.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.pop.js
deleted file mode 100644 (file)
index bbb8f78..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
-* fallback transition for pop in non-3D supporting browsers (which tend to handle complex transitions poorly in general
-*/
-
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Animation styles and fallback transition definition for non-3D supporting browsers
-//>>label: Pop Transition
-//>>group: Transitions
-//>>css: ../css/structure/jquery.mobile.transition.pop.css
-
-define( [ "jquery", "./jquery.mobile.transition" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, window, undefined ) {
-
-$.mobile.transitionFallbacks.pop = "fade";
-
-})( jQuery, this );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.slide.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.slide.js
deleted file mode 100644 (file)
index 60fda61..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
-* fallback transition for slide in non-3D supporting browsers (which tend to handle complex transitions poorly in general
-*/
-
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Animation styles and fallback transition definition for non-3D supporting browsers
-//>>label: Slide Transition
-//>>group: Transitions
-//>>css: ../css/structure/jquery.mobile.transition.slide.css
-
-define( [ "jquery", "./jquery.mobile.transition" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, window, undefined ) {
-
-// Use the simultaneous transition handler for slide transitions
-$.mobile.transitionHandlers.slide = $.mobile.transitionHandlers.simultaneous;
-
-// Set the slide transition's fallback to "fade"
-$.mobile.transitionFallbacks.slide = "fade";
-
-})( jQuery, this );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.slidedown.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.slidedown.js
deleted file mode 100644 (file)
index cfbbac2..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
-* fallback transition for slidedown in non-3D supporting browsers (which tend to handle complex transitions poorly in general
-*/
-
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Animation styles and fallback transition definition for non-3D supporting browsers
-//>>label: Slidedown Transition
-//>>group: Transitions
-//>>css: ../css/structure/jquery.mobile.transition.slidedown.css
-
-define( [ "jquery", "./jquery.mobile.transition" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, window, undefined ) {
-
-$.mobile.transitionFallbacks.slidedown = "fade";
-
-})( jQuery, this );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.slidefade.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.slidefade.js
deleted file mode 100644 (file)
index 17c47dc..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
-* fallback transition for slidefade in non-3D supporting browsers (which tend to handle complex transitions poorly in general
-*/
-
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Animation styles and fallback transition definition for non-3D supporting browsers
-//>>label: Slidefade Transition
-//>>group: Transitions
-//>>css: ../css/structure/jquery.mobile.transition.slidefade.css
-
-define( [ "jquery", "./jquery.mobile.transition" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, window, undefined ) {
-
-// Set the slide transition's fallback to "fade"
-$.mobile.transitionFallbacks.slidefade = "fade";
-
-})( jQuery, this );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.slideup.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.slideup.js
deleted file mode 100644 (file)
index aac741f..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
-* fallback transition for slideup in non-3D supporting browsers (which tend to handle complex transitions poorly in general
-*/
-
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Animation styles and fallback transition definition for non-3D supporting browsers
-//>>label: Slideup Transition
-//>>group: Transitions
-//>>css: ../css/structure/jquery.mobile.transition.slideup.css
-
-define( [ "jquery", "./jquery.mobile.transition" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, window, undefined ) {
-
-$.mobile.transitionFallbacks.slideup = "fade";
-
-})( jQuery, this );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.turn.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.turn.js
deleted file mode 100644 (file)
index 5a30b1f..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
-* fallback transition for turn in non-3D supporting browsers (which tend to handle complex transitions poorly in general
-*/
-
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Animation styles and fallback transition definition for non-3D supporting browsers
-//>>label: Turn Transition
-//>>group: Transitions
-//>>css: ../css/structure/jquery.mobile.transition.turn.css
-
-define( [ "jquery", "./jquery.mobile.transition" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, window, undefined ) {
-
-$.mobile.transitionFallbacks.turn = "fade";
-
-})( jQuery, this );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.vmouse.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.vmouse.js
deleted file mode 100644 (file)
index 6e9b504..0000000
+++ /dev/null
@@ -1,510 +0,0 @@
-
-// This plugin is an experiment for abstracting away the touch and mouse
-// events so that developers don't have to worry about which method of input
-// the device their document is loaded on supports.
-//
-// The idea here is to allow the developer to register listeners for the
-// basic mouse events, such as mousedown, mousemove, mouseup, and click,
-// and the plugin will take care of registering the correct listeners
-// behind the scenes to invoke the listener at the fastest possible time
-// for that device, while still retaining the order of event firing in
-// the traditional mouse environment, should multiple handlers be registered
-// on the same element for different events.
-//
-// The current version exposes the following virtual events to jQuery bind methods:
-// "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel"
-
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Normalizes touch/mouse events.
-//>>label: Virtual Mouse (vmouse) Bindings
-//>>group: Core
-
-define( [ "jquery" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, window, document, undefined ) {
-
-var dataPropertyName = "virtualMouseBindings",
-       touchTargetPropertyName = "virtualTouchID",
-       virtualEventNames = "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split( " " ),
-       touchEventProps = "clientX clientY pageX pageY screenX screenY".split( " " ),
-       mouseHookProps = $.event.mouseHooks ? $.event.mouseHooks.props : [],
-       mouseEventProps = $.event.props.concat( mouseHookProps ),
-       activeDocHandlers = {},
-       resetTimerID = 0,
-       startX = 0,
-       startY = 0,
-       didScroll = false,
-       clickBlockList = [],
-       blockMouseTriggers = false,
-       blockTouchTriggers = false,
-       eventCaptureSupported = "addEventListener" in document,
-       $document = $( document ),
-       nextTouchID = 1,
-       lastTouchID = 0;
-
-$.vmouse = {
-       moveDistanceThreshold: 10,
-       clickDistanceThreshold: 10,
-       resetTimerDuration: 1500
-};
-
-function getNativeEvent( event ) {
-
-       while ( event && typeof event.originalEvent !== "undefined" ) {
-               event = event.originalEvent;
-       }
-       return event;
-}
-
-function createVirtualEvent( event, eventType ) {
-
-       var t = event.type,
-               oe, props, ne, prop, ct, touch, i, j;
-
-       event = $.Event(event);
-       event.type = eventType;
-
-       oe = event.originalEvent;
-       props = $.event.props;
-
-       // addresses separation of $.event.props in to $.event.mouseHook.props and Issue 3280
-       // https://github.com/jquery/jquery-mobile/issues/3280
-       if ( t.search( /^(mouse|click)/ ) > -1 ) {
-               props = mouseEventProps;
-       }
-
-       // copy original event properties over to the new event
-       // this would happen if we could call $.event.fix instead of $.Event
-       // but we don't have a way to force an event to be fixed multiple times
-       if ( oe ) {
-               for ( i = props.length, prop; i; ) {
-                       prop = props[ --i ];
-                       event[ prop ] = oe[ prop ];
-               }
-       }
-
-       // make sure that if the mouse and click virtual events are generated
-       // without a .which one is defined
-       if ( t.search(/mouse(down|up)|click/) > -1 && !event.which ){
-               event.which = 1;
-       }
-
-       if ( t.search(/^touch/) !== -1 ) {
-               ne = getNativeEvent( oe );
-               t = ne.touches;
-               ct = ne.changedTouches;
-               touch = ( t && t.length ) ? t[0] : ( (ct && ct.length) ? ct[ 0 ] : undefined );
-
-               if ( touch ) {
-                       for ( j = 0, len = touchEventProps.length; j < len; j++){
-                               prop = touchEventProps[ j ];
-                               event[ prop ] = touch[ prop ];
-                       }
-               }
-       }
-
-       return event;
-}
-
-function getVirtualBindingFlags( element ) {
-
-       var flags = {},
-               b, k;
-
-       while ( element ) {
-
-               b = $.data( element, dataPropertyName );
-
-               for (  k in b ) {
-                       if ( b[ k ] ) {
-                               flags[ k ] = flags.hasVirtualBinding = true;
-                       }
-               }
-               element = element.parentNode;
-       }
-       return flags;
-}
-
-function getClosestElementWithVirtualBinding( element, eventType ) {
-       var b;
-       while ( element ) {
-
-               b = $.data( element, dataPropertyName );
-
-               if ( b && ( !eventType || b[ eventType ] ) ) {
-                       return element;
-               }
-               element = element.parentNode;
-       }
-       return null;
-}
-
-function enableTouchBindings() {
-       blockTouchTriggers = false;
-}
-
-function disableTouchBindings() {
-       blockTouchTriggers = true;
-}
-
-function enableMouseBindings() {
-       lastTouchID = 0;
-       clickBlockList.length = 0;
-       blockMouseTriggers = false;
-
-       // When mouse bindings are enabled, our
-       // touch bindings are disabled.
-       disableTouchBindings();
-}
-
-function disableMouseBindings() {
-       // When mouse bindings are disabled, our
-       // touch bindings are enabled.
-       enableTouchBindings();
-}
-
-function startResetTimer() {
-       clearResetTimer();
-       resetTimerID = setTimeout(function(){
-               resetTimerID = 0;
-               enableMouseBindings();
-       }, $.vmouse.resetTimerDuration );
-}
-
-function clearResetTimer() {
-       if ( resetTimerID ){
-               clearTimeout( resetTimerID );
-               resetTimerID = 0;
-       }
-}
-
-function triggerVirtualEvent( eventType, event, flags ) {
-       var ve;
-
-       if ( ( flags && flags[ eventType ] ) ||
-                               ( !flags && getClosestElementWithVirtualBinding( event.target, eventType ) ) ) {
-
-               ve = createVirtualEvent( event, eventType );
-
-               $( event.target).trigger( ve );
-       }
-
-       return ve;
-}
-
-function mouseEventCallback( event ) {
-       var touchID = $.data(event.target, touchTargetPropertyName);
-
-       if ( !blockMouseTriggers && ( !lastTouchID || lastTouchID !== touchID ) ){
-               var ve = triggerVirtualEvent( "v" + event.type, event );
-               if ( ve ) {
-                       if ( ve.isDefaultPrevented() ) {
-                               event.preventDefault();
-                       }
-                       if ( ve.isPropagationStopped() ) {
-                               event.stopPropagation();
-                       }
-                       if ( ve.isImmediatePropagationStopped() ) {
-                               event.stopImmediatePropagation();
-                       }
-               }
-       }
-}
-
-function handleTouchStart( event ) {
-
-       var touches = getNativeEvent( event ).touches,
-               target, flags;
-
-       if ( touches && touches.length === 1 ) {
-
-               target = event.target;
-               flags = getVirtualBindingFlags( target );
-
-               if ( flags.hasVirtualBinding ) {
-
-                       lastTouchID = nextTouchID++;
-                       $.data( target, touchTargetPropertyName, lastTouchID );
-
-                       clearResetTimer();
-
-                       disableMouseBindings();
-                       didScroll = false;
-
-                       var t = getNativeEvent( event ).touches[ 0 ];
-                       startX = t.pageX;
-                       startY = t.pageY;
-
-                       triggerVirtualEvent( "vmouseover", event, flags );
-                       triggerVirtualEvent( "vmousedown", event, flags );
-               }
-       }
-}
-
-function handleScroll( event ) {
-       if ( blockTouchTriggers ) {
-               return;
-       }
-
-       if ( !didScroll ) {
-               triggerVirtualEvent( "vmousecancel", event, getVirtualBindingFlags( event.target ) );
-       }
-
-       didScroll = true;
-       startResetTimer();
-}
-
-function handleTouchMove( event ) {
-       if ( blockTouchTriggers ) {
-               return;
-       }
-
-       var t = getNativeEvent( event ).touches[ 0 ],
-               didCancel = didScroll,
-               moveThreshold = $.vmouse.moveDistanceThreshold;
-               didScroll = didScroll ||
-                       ( Math.abs(t.pageX - startX) > moveThreshold ||
-                               Math.abs(t.pageY - startY) > moveThreshold ),
-               flags = getVirtualBindingFlags( event.target );
-
-       if ( didScroll && !didCancel ) {
-               triggerVirtualEvent( "vmousecancel", event, flags );
-       }
-
-       triggerVirtualEvent( "vmousemove", event, flags );
-       startResetTimer();
-}
-
-function handleTouchEnd( event ) {
-       if ( blockTouchTriggers ) {
-               return;
-       }
-
-       disableTouchBindings();
-
-       var flags = getVirtualBindingFlags( event.target ),
-               t;
-       triggerVirtualEvent( "vmouseup", event, flags );
-
-       if ( !didScroll ) {
-               var ve = triggerVirtualEvent( "vclick", event, flags );
-               if ( ve && ve.isDefaultPrevented() ) {
-                       // The target of the mouse events that follow the touchend
-                       // event don't necessarily match the target used during the
-                       // touch. This means we need to rely on coordinates for blocking
-                       // any click that is generated.
-                       t = getNativeEvent( event ).changedTouches[ 0 ];
-                       clickBlockList.push({
-                               touchID: lastTouchID,
-                               x: t.clientX,
-                               y: t.clientY
-                       });
-
-                       // Prevent any mouse events that follow from triggering
-                       // virtual event notifications.
-                       blockMouseTriggers = true;
-               }
-       }
-       triggerVirtualEvent( "vmouseout", event, flags);
-       didScroll = false;
-
-       startResetTimer();
-}
-
-function hasVirtualBindings( ele ) {
-       var bindings = $.data( ele, dataPropertyName ),
-               k;
-
-       if ( bindings ) {
-               for ( k in bindings ) {
-                       if ( bindings[ k ] ) {
-                               return true;
-                       }
-               }
-       }
-       return false;
-}
-
-function dummyMouseHandler(){}
-
-function getSpecialEventObject( eventType ) {
-       var realType = eventType.substr( 1 );
-
-       return {
-               setup: function( data, namespace ) {
-                       // If this is the first virtual mouse binding for this element,
-                       // add a bindings object to its data.
-
-                       if ( !hasVirtualBindings( this ) ) {
-                               $.data( this, dataPropertyName, {});
-                       }
-
-                       // If setup is called, we know it is the first binding for this
-                       // eventType, so initialize the count for the eventType to zero.
-                       var bindings = $.data( this, dataPropertyName );
-                       bindings[ eventType ] = true;
-
-                       // If this is the first virtual mouse event for this type,
-                       // register a global handler on the document.
-
-                       activeDocHandlers[ eventType ] = ( activeDocHandlers[ eventType ] || 0 ) + 1;
-
-                       if ( activeDocHandlers[ eventType ] === 1 ) {
-                               $document.bind( realType, mouseEventCallback );
-                       }
-
-                       // Some browsers, like Opera Mini, won't dispatch mouse/click events
-                       // for elements unless they actually have handlers registered on them.
-                       // To get around this, we register dummy handlers on the elements.
-
-                       $( this ).bind( realType, dummyMouseHandler );
-
-                       // For now, if event capture is not supported, we rely on mouse handlers.
-                       if ( eventCaptureSupported ) {
-                               // If this is the first virtual mouse binding for the document,
-                               // register our touchstart handler on the document.
-
-                               activeDocHandlers[ "touchstart" ] = ( activeDocHandlers[ "touchstart" ] || 0) + 1;
-
-                               if (activeDocHandlers[ "touchstart" ] === 1) {
-                                       $document.bind( "touchstart", handleTouchStart )
-                                               .bind( "touchend", handleTouchEnd )
-
-                                               // On touch platforms, touching the screen and then dragging your finger
-                                               // causes the window content to scroll after some distance threshold is
-                                               // exceeded. On these platforms, a scroll prevents a click event from being
-                                               // dispatched, and on some platforms, even the touchend is suppressed. To
-                                               // mimic the suppression of the click event, we need to watch for a scroll
-                                               // event. Unfortunately, some platforms like iOS don't dispatch scroll
-                                               // events until *AFTER* the user lifts their finger (touchend). This means
-                                               // we need to watch both scroll and touchmove events to figure out whether
-                                               // or not a scroll happenens before the touchend event is fired.
-
-                                               .bind( "touchmove", handleTouchMove )
-                                               .bind( "scroll", handleScroll );
-                               }
-                       }
-               },
-
-               teardown: function( data, namespace ) {
-                       // If this is the last virtual binding for this eventType,
-                       // remove its global handler from the document.
-
-                       --activeDocHandlers[ eventType ];
-
-                       if ( !activeDocHandlers[ eventType ] ) {
-                               $document.unbind( realType, mouseEventCallback );
-                       }
-
-                       if ( eventCaptureSupported ) {
-                               // If this is the last virtual mouse binding in existence,
-                               // remove our document touchstart listener.
-
-                               --activeDocHandlers[ "touchstart" ];
-
-                               if ( !activeDocHandlers[ "touchstart" ] ) {
-                                       $document.unbind( "touchstart", handleTouchStart )
-                                               .unbind( "touchmove", handleTouchMove )
-                                               .unbind( "touchend", handleTouchEnd )
-                                               .unbind( "scroll", handleScroll );
-                               }
-                       }
-
-                       var $this = $( this ),
-                               bindings = $.data( this, dataPropertyName );
-
-                       // teardown may be called when an element was
-                       // removed from the DOM. If this is the case,
-                       // jQuery core may have already stripped the element
-                       // of any data bindings so we need to check it before
-                       // using it.
-                       if ( bindings ) {
-                               bindings[ eventType ] = false;
-                       }
-
-                       // Unregister the dummy event handler.
-
-                       $this.unbind( realType, dummyMouseHandler );
-
-                       // If this is the last virtual mouse binding on the
-                       // element, remove the binding data from the element.
-
-                       if ( !hasVirtualBindings( this ) ) {
-                               $this.removeData( dataPropertyName );
-                       }
-               }
-       };
-}
-
-// Expose our custom events to the jQuery bind/unbind mechanism.
-
-for ( var i = 0; i < virtualEventNames.length; i++ ){
-       $.event.special[ virtualEventNames[ i ] ] = getSpecialEventObject( virtualEventNames[ i ] );
-}
-
-// Add a capture click handler to block clicks.
-// Note that we require event capture support for this so if the device
-// doesn't support it, we punt for now and rely solely on mouse events.
-if ( eventCaptureSupported ) {
-       document.addEventListener( "click", function( e ){
-               var cnt = clickBlockList.length,
-                       target = e.target,
-                       x, y, ele, i, o, touchID;
-
-               if ( cnt ) {
-                       x = e.clientX;
-                       y = e.clientY;
-                       threshold = $.vmouse.clickDistanceThreshold;
-
-                       // The idea here is to run through the clickBlockList to see if
-                       // the current click event is in the proximity of one of our
-                       // vclick events that had preventDefault() called on it. If we find
-                       // one, then we block the click.
-                       //
-                       // Why do we have to rely on proximity?
-                       //
-                       // Because the target of the touch event that triggered the vclick
-                       // can be different from the target of the click event synthesized
-                       // by the browser. The target of a mouse/click event that is syntehsized
-                       // from a touch event seems to be implementation specific. For example,
-                       // some browsers will fire mouse/click events for a link that is near
-                       // a touch event, even though the target of the touchstart/touchend event
-                       // says the user touched outside the link. Also, it seems that with most
-                       // browsers, the target of the mouse/click event is not calculated until the
-                       // time it is dispatched, so if you replace an element that you touched
-                       // with another element, the target of the mouse/click will be the new
-                       // element underneath that point.
-                       //
-                       // Aside from proximity, we also check to see if the target and any
-                       // of its ancestors were the ones that blocked a click. This is necessary
-                       // because of the strange mouse/click target calculation done in the
-                       // Android 2.1 browser, where if you click on an element, and there is a
-                       // mouse/click handler on one of its ancestors, the target will be the
-                       // innermost child of the touched element, even if that child is no where
-                       // near the point of touch.
-
-                       ele = target;
-
-                       while ( ele ) {
-                               for ( i = 0; i < cnt; i++ ) {
-                                       o = clickBlockList[ i ];
-                                       touchID = 0;
-
-                                       if ( ( ele === target && Math.abs( o.x - x ) < threshold && Math.abs( o.y - y ) < threshold ) ||
-                                                               $.data( ele, touchTargetPropertyName ) === o.touchID ) {
-                                               // XXX: We may want to consider removing matches from the block list
-                                               //      instead of waiting for the reset timer to fire.
-                                               e.preventDefault();
-                                               e.stopPropagation();
-                                               return;
-                                       }
-                               }
-                               ele = ele.parentNode;
-                       }
-               }
-       }, true);
-}
-})( jQuery, window, document );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.widget.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.widget.js
deleted file mode 100644 (file)
index 37b6fdf..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Widget factory extentions for mobile.
-//>>label: Widget Factory 
-//>>group: Core
-//>>css: ../css/themes/default/jquery.mobile.theme.css
-
-define( [ "jquery", "../external/requirejs/depend!./jquery.ui.widget[jquery]" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-(function( $, undefined ) {
-
-$.widget( "mobile.widget", {
-       // decorate the parent _createWidget to trigger `widgetinit` for users
-       // who wish to do post post `widgetcreate` alterations/additions
-       //
-       // TODO create a pull request for jquery ui to trigger this event
-       // in the original _createWidget
-       _createWidget: function() {
-               $.Widget.prototype._createWidget.apply( this, arguments );
-               this._trigger( 'init' );
-       },
-
-       _getCreateOptions: function() {
-
-               var elem = this.element,
-                       options = {};
-
-               $.each( this.options, function( option ) {
-
-                       var value = elem.jqmData( option.replace( /[A-Z]/g, function( c ) {
-                                                       return "-" + c.toLowerCase();
-                                               })
-                                       );
-
-                       if ( value !== undefined ) {
-                               options[ option ] = value;
-                       }
-               });
-
-               return options;
-       },
-
-       enhanceWithin: function( target, useKeepNative ) {
-               this.enhance( $( this.options.initSelector, $( target )), useKeepNative );
-       },
-
-       enhance: function( targets, useKeepNative ) {
-               var page, keepNative, $widgetElements = $( targets ), self = this;
-
-               // if ignoreContentEnabled is set to true the framework should
-               // only enhance the selected elements when they do NOT have a
-               // parent with the data-namespace-ignore attribute
-               $widgetElements = $.mobile.enhanceable( $widgetElements );
-
-               if ( useKeepNative && $widgetElements.length ) {
-                       // TODO remove dependency on the page widget for the keepNative.
-                       // Currently the keepNative value is defined on the page prototype so
-                       // the method is as well
-                       page = $.mobile.closestPageData( $widgetElements );
-                       keepNative = (page && page.keepNativeSelector()) || "";
-
-                       $widgetElements = $widgetElements.not( keepNative );
-               }
-
-               $widgetElements[ this.widgetName ]();
-       },
-
-       raise: function( msg ) {
-               throw "Widget [" + this.widgetName + "]: " + msg;
-       }
-});
-
-})( jQuery );
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.zoom.iosorientationfix.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.zoom.iosorientationfix.js
deleted file mode 100644 (file)
index 846f546..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Fixes the orientation change bug in iOS when switching between landspace and portrait
-//>>label: iOS Orientation Change Fix
-//>>group: Utilities
-
-define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.zoom" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-( function( $, window ) {
-       
-       // This fix addresses an iOS bug, so return early if the UA claims it's something else.
-       if( !(/iPhone|iPad|iPod/.test( navigator.platform ) && navigator.userAgent.indexOf( "AppleWebKit" ) > -1 ) ){
-               return;
-       }
-       
-    var zoom = $.mobile.zoom,
-               evt, x, y, z, aig;
-       
-    function checkTilt( e ){
-               evt = e.originalEvent;
-               aig = evt.accelerationIncludingGravity;
-               
-               x = Math.abs( aig.x );
-               y = Math.abs( aig.y );
-               z = Math.abs( aig.z );
-                               
-               // If portrait orientation and in one of the danger zones
-        if( !window.orientation && ( x > 7 || ( ( z > 6 && y < 8 || z < 8 && y > 6 ) && x > 5 ) ) ){
-                       if( zoom.enabled ){
-                               zoom.disable();
-                       }               
-        }
-               else if( !zoom.enabled ){
-                       zoom.enable();
-        }
-    }
-
-    $( window )
-               .bind( "orientationchange.iosorientationfix", zoom.enable )
-               .bind( "devicemotion.iosorientationfix", checkTilt );
-
-}( jQuery, this ));
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.zoom.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.zoom.js
deleted file mode 100644 (file)
index 171c4d5..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-//>>description: Utility methods for enabling and disabling user scaling (pinch zoom)
-//>>label: Zoom Handling
-//>>group: Utilities
-
-define( [ "jquery", "./jquery.mobile.core" ], function( $ ) {
-//>>excludeEnd("jqmBuildExclude");
-( function( $ ) {
-       var     meta = $( "meta[name=viewport]" ),
-        initialContent = meta.attr( "content" ),
-        disabledZoom = initialContent + ",maximum-scale=1, user-scalable=no",
-        enabledZoom = initialContent + ",maximum-scale=10, user-scalable=yes",
-               disabledInitially = /(user-scalable[\s]*=[\s]*no)|(maximum-scale[\s]*=[\s]*1)[$,\s]/.test( initialContent );
-       
-       $.mobile.zoom = $.extend( {}, {
-               enabled: !disabledInitially,
-               locked: false,
-               disable: function( lock ) {
-                       if( !disabledInitially && !$.mobile.zoom.locked ){
-                       meta.attr( "content", disabledZoom );
-                       $.mobile.zoom.enabled = false;
-                               $.mobile.zoom.locked = lock || false;
-                       }
-               },
-               enable: function( unlock ) {
-                       if( !disabledInitially && ( !$.mobile.zoom.locked || unlock === true ) ){
-                       meta.attr( "content", enabledZoom );
-                       $.mobile.zoom.enabled = true;
-                               $.mobile.zoom.locked = false;
-                       }
-               },
-               restore: function() {
-                       if( !disabledInitially ){
-                       meta.attr( "content", initialContent );
-                       $.mobile.zoom.enabled = true;
-                       }
-               }
-       });
-
-}( jQuery ));
-//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
-});
-//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.tag.inserter.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.tag.inserter.js
deleted file mode 100644 (file)
index fb81544..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-(function() {
-       // Insert a script tag pointing at the desired version of jQuery
-
-       // Get the version from the url
-       var jqueryRE = /[\\?&]jquery=([^&#]*)/,
-               results = jqueryRE.exec( location.search ),
-               version = "",
-               jq,
-               myScriptTag = document.getElementsByTagName( "script" )[document.getElementsByTagName( "script" ).length - 1],
-               baseUrl = myScriptTag.src.replace( /(.*)\/.*$/, "$1/" ),
-               url = baseUrl + "jquery-1.7.1.js";
-
-       if( results ) {
-               version = decodeURIComponent(results[results.length - 1].replace(/\+/g, " "));
-       }
-
-       switch( version ) {
-               case "1.6.4":
-                       url = baseUrl + "jquery-1.6.4.js";
-                       break;
-               case "git":
-                       url = "http://code.jquery.com/jquery-git.js";
-                       break;
-       }
-
-       document.write( "<script src='" + url + "'></script>" );
-
-       if ( parseInt( version.replace( /\./g, "" ), 10 ) < 170 && window.define && window.define.amd ) {
-               document.write( '<script>define( "jquery", [], function () { return jQuery; } );</script>' );
-       }
-}());
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.ui.widget.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.ui.widget.js
deleted file mode 100644 (file)
index 86e83a0..0000000
+++ /dev/null
@@ -1,263 +0,0 @@
-/*!
- * jQuery UI Widget @VERSION
- *
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Widget
- */
-
-(function( $, undefined ) {
-
-// jQuery 1.4+
-if ( $.cleanData ) {
-       var _cleanData = $.cleanData;
-       $.cleanData = function( elems ) {
-               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
-                       $( elem ).triggerHandler( "remove" );
-               }
-               _cleanData( elems );
-       };
-} else {
-       var _remove = $.fn.remove;
-       $.fn.remove = function( selector, keepData ) {
-               return this.each(function() {
-                       if ( !keepData ) {
-                               if ( !selector || $.filter( selector, [ this ] ).length ) {
-                                       $( "*", this ).add( [ this ] ).each(function() {
-                                               $( this ).triggerHandler( "remove" );
-                                       });
-                               }
-                       }
-                       return _remove.call( $(this), selector, keepData );
-               });
-       };
-}
-
-$.widget = function( name, base, prototype ) {
-       var namespace = name.split( "." )[ 0 ],
-               fullName;
-       name = name.split( "." )[ 1 ];
-       fullName = namespace + "-" + name;
-
-       if ( !prototype ) {
-               prototype = base;
-               base = $.Widget;
-       }
-
-       // create selector for plugin
-       $.expr[ ":" ][ fullName ] = function( elem ) {
-               return !!$.data( elem, name );
-       };
-
-       $[ namespace ] = $[ namespace ] || {};
-       $[ namespace ][ name ] = function( options, element ) {
-               // allow instantiation without initializing for simple inheritance
-               if ( arguments.length ) {
-                       this._createWidget( options, element );
-               }
-       };
-
-       var basePrototype = new base();
-       // we need to make the options hash a property directly on the new instance
-       // otherwise we'll modify the options hash on the prototype that we're
-       // inheriting from
-//     $.each( basePrototype, function( key, val ) {
-//             if ( $.isPlainObject(val) ) {
-//                     basePrototype[ key ] = $.extend( {}, val );
-//             }
-//     });
-       basePrototype.options = $.extend( true, {}, basePrototype.options );
-       $[ namespace ][ name ].prototype = $.extend( true, basePrototype, {
-               namespace: namespace,
-               widgetName: name,
-               widgetEventPrefix: $[ namespace ][ name ].prototype.widgetEventPrefix || name,
-               widgetBaseClass: fullName
-       }, prototype );
-
-       $.widget.bridge( name, $[ namespace ][ name ] );
-};
-
-$.widget.bridge = function( name, object ) {
-       $.fn[ name ] = function( options ) {
-               var isMethodCall = typeof options === "string",
-                       args = Array.prototype.slice.call( arguments, 1 ),
-                       returnValue = this;
-
-               // allow multiple hashes to be passed on init
-               options = !isMethodCall && args.length ?
-                       $.extend.apply( null, [ true, options ].concat(args) ) :
-                       options;
-
-               // prevent calls to internal methods
-               if ( isMethodCall && options.charAt( 0 ) === "_" ) {
-                       return returnValue;
-               }
-
-               if ( isMethodCall ) {
-                       this.each(function() {
-                               var instance = $.data( this, name );
-                               if ( !instance ) {
-                                       throw "cannot call methods on " + name + " prior to initialization; " +
-                                               "attempted to call method '" + options + "'";
-                               }
-                               if ( !$.isFunction( instance[options] ) ) {
-                                       throw "no such method '" + options + "' for " + name + " widget instance";
-                               }
-                               var methodValue = instance[ options ].apply( instance, args );
-                               if ( methodValue !== instance && methodValue !== undefined ) {
-                                       returnValue = methodValue;
-                                       return false;
-                               }
-                       });
-               } else {
-                       this.each(function() {
-                               var instance = $.data( this, name );
-                               if ( instance ) {
-                                       instance.option( options || {} )._init();
-                               } else {
-                                       $.data( this, name, new object( options, this ) );
-                               }
-                       });
-               }
-
-               return returnValue;
-       };
-};
-
-$.Widget = function( options, element ) {
-       // allow instantiation without initializing for simple inheritance
-       if ( arguments.length ) {
-               this._createWidget( options, element );
-       }
-};
-
-$.Widget.prototype = {
-       widgetName: "widget",
-       widgetEventPrefix: "",
-       options: {
-               disabled: false
-       },
-       _createWidget: function( options, element ) {
-               // $.widget.bridge stores the plugin instance, but we do it anyway
-               // so that it's stored even before the _create function runs
-               $.data( element, this.widgetName, this );
-               this.element = $( element );
-               this.options = $.extend( true, {},
-                       this.options,
-                       this._getCreateOptions(),
-                       options );
-
-               var self = this;
-               this.element.bind( "remove." + this.widgetName, function() {
-                       self.destroy();
-               });
-
-               this._create();
-               this._trigger( "create" );
-               this._init();
-       },
-       _getCreateOptions: function() {
-               var options = {};
-               if ( $.metadata ) {
-                       options = $.metadata.get( element )[ this.widgetName ];
-               }
-               return options;
-       },
-       _create: function() {},
-       _init: function() {},
-
-       destroy: function() {
-               this.element
-                       .unbind( "." + this.widgetName )
-                       .removeData( this.widgetName );
-               this.widget()
-                       .unbind( "." + this.widgetName )
-                       .removeAttr( "aria-disabled" )
-                       .removeClass(
-                               this.widgetBaseClass + "-disabled " +
-                               "ui-state-disabled" );
-       },
-
-       widget: function() {
-               return this.element;
-       },
-
-       option: function( key, value ) {
-               var options = key;
-
-               if ( arguments.length === 0 ) {
-                       // don't return a reference to the internal hash
-                       return $.extend( {}, this.options );
-               }
-
-               if  (typeof key === "string" ) {
-                       if ( value === undefined ) {
-                               return this.options[ key ];
-                       }
-                       options = {};
-                       options[ key ] = value;
-               }
-
-               this._setOptions( options );
-
-               return this;
-       },
-       _setOptions: function( options ) {
-               var self = this;
-               $.each( options, function( key, value ) {
-                       self._setOption( key, value );
-               });
-
-               return this;
-       },
-       _setOption: function( key, value ) {
-               this.options[ key ] = value;
-
-               if ( key === "disabled" ) {
-                       this.widget()
-                               [ value ? "addClass" : "removeClass"](
-                                       this.widgetBaseClass + "-disabled" + " " +
-                                       "ui-state-disabled" )
-                               .attr( "aria-disabled", value );
-               }
-
-               return this;
-       },
-
-       enable: function() {
-               return this._setOption( "disabled", false );
-       },
-       disable: function() {
-               return this._setOption( "disabled", true );
-       },
-
-       _trigger: function( type, event, data ) {
-               var callback = this.options[ type ];
-
-               event = $.Event( event );
-               event.type = ( type === this.widgetEventPrefix ?
-                       type :
-                       this.widgetEventPrefix + type ).toLowerCase();
-               data = data || {};
-
-               // copy original event properties over to the new event
-               // this would happen if we could call $.event.fix instead of $.Event
-               // but we don't have a way to force an event to be fixed multiple times
-               if ( event.originalEvent ) {
-                       for ( var i = $.event.props.length, prop; i; ) {
-                               prop = $.event.props[ --i ];
-                               event[ prop ] = event.originalEvent[ prop ];
-                       }
-               }
-
-               this.element.trigger( event, data );
-
-               return !( $.isFunction(callback) &&
-                       callback.call( this.element[0], event, data ) === false ||
-                       event.isDefaultPrevented() );
-       }
-};
-
-})( jQuery );
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/addrbar.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/addrbar.html
deleted file mode 100644 (file)
index ebe18df..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile: Event Logger</title>
-       <link rel="stylesheet"  href="../../css/themes/default/jquery.mobile.css" />
-       <link rel="stylesheet" href="../../docs/_assets/css/jqm-docs.css" />
-       <script src="../../js/jquery.tag.inserter.js"></script>
-       <script src="../../js/jquery.js"></script>
-       <script src="../../docs/_assets/js/jqm-docs.js"></script>
-       <script src="../../js/"></script>
-
-       <script>
-       $(function(){
-       $( "a" ).bind("tap click",function( e ){
-                       $("#log")
-                               .prepend("<li>"+ e.type +" event; target: "+ e.target.nodeName +"</li>")
-                               .listview("refresh");
-                       return false;
-               })
-               .bind("tap click", false);
-       });
-       </script>
-
-       <style>
-               #jqm-home {
-                       height: 500px;
-               }
-       </style>
-</head>
-<body>
-<div  data-role="page"  data-theme="b" id="jqm-home">
-       <div  data-role="header">
-               <h1>Event Logger</h1>
-       </div>
-
-       <div  data-role="content">
-               <p>Touch events on this page will log out below, prepending to the top as they arrive.</p>
-
-               <a href="foo.html"  data-role="button">Click me</a>
-
-               <ul  data-role="listview" id="log">
-
-               </ul>
-
-       </div>
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/button-markup.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/button-markup.html
deleted file mode 100644 (file)
index cbcaa35..0000000
+++ /dev/null
@@ -1,131 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <meta charset="utf-8" />
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile Button Markup Tester</title>
-       <link rel="stylesheet"  href="../../css/themes/default/jquery.mobile.css" />
-       <link rel="stylesheet" href="../../docs/_assets/css/jqm-docs.css" />
-       <script src="../../js/jquery.tag.inserter.js"></script>
-       <script src="../../js"></script>
-<script>
-$(document).bind("pagecreate", function() {
-       $("#button-apply").bind("vclick", function() {
-               var options = {empty: true};
-
-               $("[data-setter]").each(function() {
-                       var self = $(this),
-                           val = ($(this).is("[type='checkbox']") ? $(this).is(":checked") : $(this).val()),
-                           key = $(this).parent().find("label").text(),
-                           apply = $("#button-" + key + "-apply").is(":checked");
-
-                       if (apply) {
-                               options.empty = false;
-                               options[key] = val;
-                       }
-               });
-               if (!options.empty) {
-                       delete options.empty;
-                       $("#sample-link,#sample-input-button,#sample-button").buttonMarkup(options);
-               }
-       });
-});
-</script>
-<style>
-.ui-field-contain {
-       margin-top: 0px;
-       margin-bottom: 0px;
-}
-</style>
-</head>
-
-<body>
-       <div data-role="page">
-               <div data-role="header">
-                       <h1>jQuery Mobile Widget Option Tester</h1>
-               </div>
-               <div data-role="contents">
-                       <a id="sample-link" data-role="button">Sample Link</a>
-                       <input id="sample-input-button" type="button" name="Input Button" value="Sample Input Button"></input>
-                       <button id="sample-button" name="Button">Sample Button</button>
-
-                       <form id="button-settings" name="button-settings" action="#" method="get" style="display: table;">
-                               <table><tr><td>
-                                       <div data-role="fieldcontain">
-                                               <label for="button-icon">icon</label>
-                                               <input data-setter="true" type="text" id="button-icon"></input>
-                                       </div>
-                               </td><td>
-                                       <div data-role="fieldcontain">
-                                               <label for="button-icon-apply">Apply</label>
-                                               <input data-apply="true" type="checkbox" id="button-icon-apply"></input>
-                                       </div>
-                               </td></tr><tr><td>
-                                       <div data-role="fieldcontain">
-                                               <label for="button-iconpos">iconpos</label>
-                                               <input data-setter="true" type="text" id="button-iconpos"></input>
-                                       </div>
-                               </td><td>
-                                       <div data-role="fieldcontain">
-                                               <label for="button-iconpos-apply">Apply</label>
-                                               <input data-apply="true" type="checkbox" id="button-iconpos-apply"></input>
-                                       </div>
-                               </td></tr><tr><td>
-                                       <div data-role="fieldcontain">
-                                               <label for="button-theme">theme</label>
-                                               <input data-setter="true" type="text" id="button-theme"></input>
-                                       </div>
-                               </td><td>
-                                       <div data-role="fieldcontain">
-                                               <label for="button-theme-apply">Apply</label>
-                                               <input data-apply="true" type="checkbox" id="button-theme-apply"></input>
-                                       </div>
-                               </td></tr><tr><td>
-                                       <div data-role="fieldcontain">
-                                               <label for="button-inline">inline</label>
-                                               <input data-setter="true" type="checkbox" id="button-inline"></input>
-                                       </div>
-                               </td><td>
-                                       <div data-role="fieldcontain">
-                                               <label for="button-inline-apply">Apply</label>
-                                               <input data-apply="true" type="checkbox" id="button-inline-apply"></input>
-                                       </div>
-                               </td></tr><tr><td>
-                                       <div data-role="fieldcontain">
-                                               <label for="button-shadow">shadow</label>
-                                               <input data-setter="true" type="checkbox" id="button-shadow"></input>
-                                       </div>
-                               </td><td>
-                                       <div data-role="fieldcontain">
-                                               <label for="button-shadow-apply">Apply</label>
-                                               <input data-apply="true" type="checkbox" id="button-shadow-apply"></input>
-                                       </div>
-                               </td></tr><tr><td>
-                                       <div data-role="fieldcontain">
-                                               <label for="button-corners">corners</label>
-                                               <input data-setter="true" type="checkbox" id="button-corners"></input>
-                                       </div>
-                               </td><td>
-                                       <div data-role="fieldcontain">
-                                               <label for="button-corners-apply">Apply</label>
-                                               <input data-apply="true" type="checkbox" id="button-corners-apply"></input>
-                                       </div>
-                               </td></tr><tr><td>
-                                       <div data-role="fieldcontain">
-                                               <label for="button-iconshadow">iconshadow</label>
-                                               <input data-setter="true" type="checkbox" id="button-iconshadow"></input>
-                                       </div>
-                               </td><td>
-                                       <div data-role="fieldcontain">
-                                               <label for="button-iconshadow-apply">Apply</label>
-                                               <input data-apply="true" type="checkbox" id="button-iconshadow-apply"></input>
-                                       </div>
-                               </td></tr>
-                               <tr><td colspan="2">
-                                       <input type="button" name="button-apply" value="Apply" id="button-apply"></input>
-                               </td></tr></table>
-                       </form>
-               </div>
-       </div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/eventlogger.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/eventlogger.html
deleted file mode 100644 (file)
index 1486f2e..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile: Event Logger</title>
-       <link rel="stylesheet"  href="../../css/themes/default/jquery.mobile.css" />
-       <link rel="stylesheet" href="../../docs/_assets/css/jqm-docs.css" />
-       <script src="../../js/jquery.tag.inserter.js"></script>
-       <script src="../../js/jquery.js"></script>
-       <script src="../../docs/_assets/js/jqm-docs.js"></script>
-       <script src="../../js/"></script>
-
-       <script>
-       $( document )
-               .bind("tap taphold swipe swipeleft swiperight scrollstart scrollstop orientationchange",function( e ){
-                       $("#log")
-                               .prepend("<li>"+ e.type +" event; target: "+ e.target.nodeName +"</li>")
-                               .listview("refresh");
-
-               });
-       </script>
-</head>
-<body>
-<div  data-role="page"  data-theme="b" id="jqm-home">
-       <div  data-role="header">
-               <h1>Event Logger</h1>
-       </div>
-
-       <div  data-role="content">
-               <p>Touch events on this page will log out below, prepending to the top as they arrive.</p>
-
-               <ul  data-role="listview" id="log">
-
-               </ul>
-
-       </div>
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/gridlayout.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/gridlayout.html
deleted file mode 100644 (file)
index 286386a..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <meta charset="utf-8" />
-       <title>jQuery Mobile: Grid Layout</title>
-       <link rel="stylesheet"  href="../../css/themes/default/jquery.mobile.css" />
-       <link rel="stylesheet" href="../../docs/_assets/css/jqm-docs.css" />
-       <script src="../../js/jquery.tag.inserter.js"></script>
-       <script src="../../js/jquery.js"></script>
-       <script src="../../docs/_assets/js/jqm-docs.js"></script>
-       <script src="../../js/"></script>
-
-       <script>
-       $(function(){
-               $(".ui-grid-d a").bind("tap click", function(e){
-                       $(this).hide();
-                       $("#log")
-                               .prepend("<li>"+ e.type +" event; target: "+ e.target.nodeName +"; message: grid '"+$(this).text()+"' hidden</li>")
-                               .listview("refresh");
-                       return false;
-               }).bind("tap click", false);
-               $("#showbtn").bind("tap click", function(e){
-                       $(".ui-grid-d a").show();
-                       $("#log")
-                               .prepend("<li>"+ e.type +" event; target: "+ e.target.nodeName +"; message: show all buttons</li>")
-                               .listview("refresh");
-               }).bind("tap click", false);
-       });
-       </script>
-</head>
-<body>
-<div data-role="page" data-theme="b" id="jqm-home">
-       <div data-role="header">
-               <h1>Grid Layout</h1>
-       </div>
-
-       <div data-role="content">
-               <p>Touch events on this page will log out below, prepending to the top as they arrive.</p>
-
-               <div class="ui-grid-d">
-                       <div class="ui-block-a">
-                               <a data-role="button" id="btn1" data-theme="b">Button 1</a>
-                       </div>
-                       <div class="ui-block-b">
-                               <a data-role="button" id="btn2" data-theme="b">Button 2</a>
-                       </div>
-                       <div class="ui-block-c">
-                               <a data-role="button" id="btn3" data-theme="b">Button 3</a>
-                       </div>
-                       <div class="ui-block-d">
-                               <a data-role="button" id="btn4" data-theme="b">Button 4</a>
-                       </div>
-                       <div class="ui-block-e">
-                               <a data-role="button" id="btn5" data-theme="b">Button 5</a>
-                       </div>
-               </div>
-
-               <a data-role="button" id="showbtn">Show all button</a>
-
-               <ul data-role="listview" id="log">
-
-               </ul>
-
-       </div>
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/orientation.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/orientation.html
deleted file mode 100644 (file)
index 9052490..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile: Orientation</title>
-       <link rel="stylesheet"  href="../../css/themes/default/jquery.mobile.css" />
-       <link rel="stylesheet" href="../../docs/_assets/css/jqm-docs.css" />
-       <style>
-    
-               #orientationText {
-                       font-size: x-large;
-                       font-weight: bold;
-                       margin: 1em;
-               }
-
-       </style>
-       <script src="../../external/requirejs/require.js"></script>
-       <script src="../../js/jquery.tag.inserter.js"></script>
-       <script>
-               require( {
-                       baseUrl: "../../js"
-               } )( [ "jquery", "jquery.mobile" ], function( $ ) {
-                       $( document ).one( "pageinit", function() {
-                               function updateOrientation()
-                               {
-                                       $( "#orientationText" ).text( $.event.special.orientationchange.orientation() );
-                               }
-
-                               updateOrientation();
-                               $( window ).bind( $.support.orientation ? "orientationchange" : "resize", updateOrientation);
-                       });
-               });
-    </script>
-</head>
-
-<body>
-<div data-role="page">
-       <div data-role="header"><h1>Orientation Test</h1></div>
-       <div data-role="content">
-       <p>The current device orientation is displayed below. It should *ALWAYS* be correct!</p>
-        <div id="orientationText">Orientation Not Supported!</div>
-    </div>
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/jquery.testHelper.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/jquery.testHelper.js
deleted file mode 100644 (file)
index b010263..0000000
+++ /dev/null
@@ -1,246 +0,0 @@
-/*
- * mobile support unit tests
- */
-
-(function( $ ) {
-       $.testHelper = {
-               // This function takes sets of files to load asynchronously. Each set will be loaded after
-               // the previous set has completed loading. That is, each require and it's dependencies in a
-               // set will be loaded asynchronously, but each set will be run in serial.
-               asyncLoad: function( seq ) {
-                       require({
-                               baseUrl: "../../../js"
-                       });
-
-                       function loadSeq( seq, i ){
-                               if( !seq[i] ){
-                                       $( document ).ready( function() {
-                                               var $fixture = $( '#qunit-fixture' );
-                                               if ( $fixture.length ) {
-                                                       QUnit.config.fixture = $fixture.html();
-                                               }
-                                               QUnit.start();
-                                       });
-                                       return;
-                               }
-
-                               require( seq[i], function() {
-                                       loadSeq(seq, i + 1);
-                               });
-                       }
-
-                       // stop qunit from running the tests until everything is in the page
-                       QUnit.config.autostart = false;
-
-                       loadSeq( seq, 0 );
-               },
-
-               excludeFileProtocol: function(callback){
-                       var message = "Tests require script reload and cannot be run via file: protocol";
-
-                       if (location.protocol == "file:") {
-                               test(message, function(){
-                                       ok(false, message);
-                               });
-                       } else {
-                               callback();
-                       }
-               },
-
-               // TODO prevent test suite loads when the browser doesn't support push state
-               // and push-state false is defined.
-               setPushState: function() {
-                       if( $.support.pushState && location.search.indexOf( "push-state" ) >= 0 ) {
-                               $.support.pushState = false;
-                       }
-               },
-
-               reloads: {},
-
-               reloadModule: function(libName){
-                       var deferred = $.Deferred(),
-                               context;
-
-                       // where a module loader isn't defined use the old way
-                       if( !window.require ) {
-                               this.reloadLib( libName );
-                               deferred.resolve();
-                               return deferred;
-                       }
-
-                       if(this.reloads[libName] === undefined) {
-                               this.reloads[libName] = {
-                                       count: 0
-                               };
-                       }
-
-                       //Clear internal cache of module inside of require
-                       context = require.s.contexts._;
-                       delete context.defined[libName];
-                       delete context.specified[libName];
-                       delete context.loaded[libName];
-                       delete context.urlFetched[require.toUrl(libName + '.js')];
-
-                       require(
-                               {
-                                       baseUrl: "../../../js"
-                               }, [libName],
-                               function() {
-                                       deferred.resolve();
-                               }
-                       );
-
-                       return deferred;
-               },
-
-               reloadLib: function(libName){
-                       if(this.reloads[libName] === undefined) {
-                               this.reloads[libName] = {
-                                       lib: $("script[src$='" + libName + "']"),
-                                       count: 0
-                               };
-                       }
-
-                       var lib = this.reloads[libName].lib.clone(),
-                               src = lib.attr('src');
-
-                       //NOTE append "cache breaker" to force reload
-                       lib.attr('src', src + "?" + this.reloads[libName].count++);
-                       $("body").append(lib);
-               },
-
-               rerunQunit: function(){
-                       var self = this;
-                       QUnit.init();
-                       $("script:not([src*='.\/'])").each(function(i, elem){
-                               var src = elem.src.split("/");
-                               self.reloadLib(src[src.length - 1]);
-                       });
-                       QUnit.start();
-               },
-
-               alterExtend: function(extraExtension){
-                       var extendFn = $.extend;
-
-                       $.extend = function(object, extension){
-                               // NOTE extend the object as normal
-                               var result = extendFn.apply(this, arguments);
-
-                               // NOTE add custom extensions
-                               result = extendFn(result, extraExtension);
-                               return result;
-                       };
-               },
-
-               hideActivePageWhenComplete: function() {
-                       if( $('#qunit-testresult').length > 0 ) {
-                               $('.ui-page-active').css('display', 'none');
-                       } else {
-                               setTimeout($.testHelper.hideActivePageWhenComplete, 500);
-                       }
-               },
-
-               openPage: function(hash){
-                       location.href = location.href.split('#')[0] + hash;
-               },
-
-               sequence: function(fns, interval){
-                       $.each(fns, function(i, fn){
-                               setTimeout(fn, i * interval);
-                       });
-               },
-
-               pageSequence: function( fns ){
-                       this.eventSequence( "pagechange", fns );
-               },
-
-               eventSequence: function( event, fns, timedOut ){
-                       var seq = [];
-                       $.each(fns, function( i, fn ) {
-                               seq.push( fn );
-                               if( i !== fns.length - 1) seq.push( event );
-                       });
-
-                       this.eventCascade( seq );
-               },
-
-               eventCascade: function( sequence, timedOut ) {
-                       var fn = sequence.shift(),
-                               event = sequence.shift(),
-                               self = this;
-
-                       if( fn === undefined ) {
-                               return;
-                       }
-
-                       if( event ){
-                               // if a pagechange or defined event is never triggered
-                               // continue in the sequence to alert possible failures
-                               var warnTimer = setTimeout(function() {
-                                       self.eventCascade( sequence, true );
-                               }, 2000);
-
-                               // bind the recursive call to the event
-                               $.mobile.pageContainer.one(event, function() {
-                                       clearTimeout( warnTimer );
-
-                                       // Let the current stack unwind before we fire off the next item in the sequence.
-                                       // TODO setTimeout(self.pageSequence, 0, sequence);
-                                       setTimeout(function(){ self.eventCascade(sequence); }, 0);
-                               });
-                       }
-
-                       // invoke the function which should, in some fashion,
-                       // trigger the next event
-                       fn( timedOut );
-               },
-
-               deferredSequence: function(fns) {
-                       var fn = fns.shift(),
-                               deferred = $.Deferred(),
-                               self = this, res;
-
-                       if (fn) {
-                               res = fn();
-                               if ( res && $.type( res.done ) === "function" ) {
-                                       res.done(function() {
-                                               self.deferredSequence( fns ).done(function() {
-                                                       deferred.resolve();
-                                               });
-                                       });
-                               } else {
-                                       self.deferredSequence( fns ).done(function() {
-                                               deferred.resolve();
-                                       });
-                               }
-                       } else {
-                               deferred.resolve();
-                       }
-                       return deferred;
-               },
-
-               decorate: function(opts){
-                       var thisVal = opts.self || window;
-
-                       return function(){
-                               var returnVal;
-                               opts.before && opts.before.apply(thisVal, arguments);
-                               returnVal = opts.fn.apply(thisVal, arguments);
-                               opts.after && opts.after.apply(thisVal, arguments);
-
-                               return returnVal;
-                       };
-               },
-
-               assertUrlLocation: function( args ) {
-                       var parts = $.mobile.path.parseUrl( location.href ),
-                               pathnameOnward = location.href.replace( parts.domain, "" );
-
-                       if( $.support.pushState ) {
-                               same( pathnameOnward, args.hashOrPush || args.push, args.report );
-                       } else {
-                               same( parts.hash, "#" + (args.hashOrPush || args.hash), args.report );
-                       }
-               }
-       };
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/button/button_core.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/button/button_core.js
deleted file mode 100644 (file)
index b2fb8d6..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * mobile button unit tests
- */
-(function($){
-       $.mobile.page.prototype.options.keepNative = "button.should-be-native";
-
-       test( "button elements in the keepNative set shouldn't be enhanced", function() {
-               same( $("button.should-be-native").siblings("div.ui-slider").length, 0 );
-       });
-
-       test( "button elements should be enhanced", function() {
-               ok( $("#enhanced").hasClass( "ui-btn-hidden" ) );
-       });
-
-       test( "button markup text value should be changed on refresh", function() {
-               var textValueButton = $("#text"), valueButton = $("#value");
-
-               // the value shouldn't change unless it's been altered
-               textValueButton.button( 'refresh' );
-               same( textValueButton.siblings().text(), "foo" );
-
-               // use the text where it's provided
-               same( textValueButton.siblings().text(), "foo" );
-               textValueButton.text( "bar" ).button( 'refresh' );
-               same( textValueButton.siblings().text(), "bar" );
-
-               // use the val if it's provided where the text isn't
-               same( valueButton.siblings().text(), "foo" );
-               valueButton.val( "bar" ).button( 'refresh' );
-               same( valueButton.siblings().text(), "bar" );
-
-               // prefer the text to the value
-               textValueButton.text( "bar" ).val( "baz" ).button( 'refresh' );
-               same( textValueButton.siblings().text(), "bar" );
-       });
-
-       // Issue 2877
-       test( "verify the button placeholder is added many times", function() {
-               var $form =     $( "#hidden-element-addition-form" ), count = 3;
-               expect( count * 2 );
-
-               for( var x = 0; x < count; x++ ) {
-                       $( "#hidden-element-addition" ).trigger( "vclick" );
-                       same( $form.find( "input[type='hidden']" ).length, 1, "hidden form input should be added" );
-
-                       $form.trigger( "submit" );
-                       same( $form.find( "[type='hidden']" ).length, 0, "hidden form input is removed" );
-               }
-       });
-
-       test( "theme should be inherited", function() {
-               var $inherited = $( "#theme-check" ),
-                   $explicit = $( "#theme-check-explicit" );
-
-               ok( $inherited.closest("div").hasClass( "ui-btn-up-a" ), "should inherit from page" );
-               ok( $explicit.closest("div").hasClass( "ui-btn-up-b" ), "should not inherit" );
-       });
-})( jQuery );
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/button/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/button/index.html
deleted file mode 100644 (file)
index ad806f7..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile Button Test Suite</title>
-
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../../tests/jquery.testHelper.js"></script>
-
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-       <script src="../../../external/qunit.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [
-                               "jquery.mobile.forms.button",
-                       ],
-                       [ "jquery.mobile.init" ],
-                       [
-                               "button_core.js"
-                       ]
-               ]);
-       </script>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-  <h1 id="qunit-header">jQuery Mobile Button Test Suite</h1>
-  <h2 id="qunit-banner"></h2>
-  <h2 id="qunit-userAgent"></h2>
-  <ol id="qunit-tests">
-  </ol>
-
-  <div data-nstest-role="page" data-nstest-theme="a">
-    <div data-nstest-role="content" data-nstest-theme="p">
-      <button class="should-be-native">foo</button>
-      <button id="enhanced">bar</button>
-      <button id="text">foo</button>
-      <button id="value" value="foo"></button>
-      <form id="hidden-element-addition-form" method="get" action="this will fail!">
-        <input type="submit" id="hidden-element-addition" name="foo">foo</input>
-      </form>
-      <button id="theme-check" value="foo"></button>
-      <button id="theme-check-explicit" value="foo" data-nstest-theme="b"></button>
-    </div>
-  </div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/buttonMarkup/buttonMarkup_core.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/buttonMarkup/buttonMarkup_core.js
deleted file mode 100644 (file)
index 3cf8980..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-/*
- * mobile buttonMarkup tests
- */
-(function($){
-       module("jquery.mobile.buttonMarkup.js");
-
-       test( "header buttons should have the header class", function() {
-               var headerButton1 = $("#header-button-1"),
-                   headerButton2 = $("#header-button-2");
-
-               ok((headerButton1.hasClass("ui-btn-left") &&
-                   headerButton2.hasClass("ui-btn-right")), "first header button should have class 'ui-btn-left' and the second one should have 'ui-btn-right'");
-       });
-
-       test( "control group buttons should be enhanced inside a footer", function(){
-               var group, linkCount;
-
-               group = $("#control-group-footer");
-               linkCount = group.find( "a" ).length;
-
-               same( group.find("a.ui-btn").length, linkCount, "all 4 links should be buttons");
-               same( group.find("a > span.ui-corner-left").length, 1, "only 1 left cornered button");
-               same( group.find("a > span.ui-corner-right").length, 1, "only 1 right cornered button");
-               same( group.find("a > span:not(.ui-corner-left):not(.ui-corner-right)").length, linkCount - 2, "only 2 buttons are cornered");
-       });
-
-       test( "control group buttons should respect theme-related data attributes", function(){
-               var group = $("#control-group-content");
-
-               ok(!group.find('[data-shadow=false]').hasClass("ui-shadow"),
-                        "buttons with data-shadow=false should not have the ui-shadow class");
-               ok(!group.find('[data-corners=false]').hasClass("ui-btn-corner-all"),
-                        "buttons with data-corners=false should not have the ui-btn-corner-all class");
-               ok(!group.find('[data-iconshadow=false] .ui-icon').hasClass("ui-icon-shadow"),
-                        "buttons with data-iconshadow=false should not have the ui-icon-shadow class on their icons");
-       });
-
-       // Test for issue #3046 and #3054:
-       test( "mousedown on SVG elements should not throw an exception", function(){
-               var svg = $("#embedded-svg"),
-                       success = true,
-                       rect;
-               ok(svg.length > 0, "found embedded svg document" );
-               if ( svg.length > 0 ) {
-                       rect = $( "rect", svg );
-                       ok(rect.length > 0, "found rect" );
-                       try {
-                               rect.trigger("mousedown");
-                       } catch ( ex ) {
-                               success = false;
-                       }
-                       ok( success, "mousedown executed without exception");
-               }
-       });
-
-       test( "Elements with “data-mini='true'” should have “ui-mini” class attached to enhanced element.", function(){
-               var $mini = $("#mini"),
-                       $full = $("#full"),
-                       $minicontrol = $('#mini-control');
-
-               ok( $full.not('.ui-mini'), "Original element does not have data attribute, enhanced version does not recieve .ui-mini.");
-               ok( $mini.is('.ui-mini'), "Original element has data attribute, enhanced version recieves .ui-mini." );
-               ok( $minicontrol.is('.ui-mini'), "Controlgroup has data attribute and recieves .ui-mini.");
-       });
-       
-       test( "Ensure icon positioning defaults to left, and can be overridden with “data-iconpos”", function() {
-               var posdefault = $("#iconpos1"),
-                   posleft = $("#iconpos2"),
-                       posright = $("#iconpos3");
-
-               ok( posdefault.hasClass("ui-btn-icon-left"), "Button with unspecified icon position gets .ui-btn-icon-left" );
-               ok( posleft.hasClass("ui-btn-icon-left"), "Button with left icon positioning specified .ui-btn-icon-left" );
-               ok( posright.hasClass("ui-btn-icon-right"), "Button with right icon positioning specified .ui-btn-icon-right" );
-
-       });
-
-       asyncTest( "ui-btn-* should be applied based on a setting", function() {
-               // force touch support so the timeout is set
-               $.support.touch = true;
-
-               var $btn = $( "#hover-delay" );
-
-               $.testHelper.sequence([
-                       function() {
-                               $btn.trigger( "vmousedown" );
-                       },
-
-                       function() {
-                               ok( $btn.attr("class").indexOf( "ui-btn-down" ) == -1, "button doesn't have the down class yet" );
-                       },
-
-                       function() {
-                               ok( $btn.attr("class").indexOf( "ui-btn-down" ) >= 0, "button has the down class yet" );
-                               start();
-                       }
-                       // the value is split and some padding is added to make sure that the last check fires
-                       // after the hoverDelay has expired
-               ], $.mobile.buttonMarkup.hoverDelay / 2 + 50 );
-       });
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/buttonMarkup/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/buttonMarkup/index.html
deleted file mode 100644 (file)
index efae48d..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="UTF-8" />
-       <title>jQuery Mobile Button Markup Test Suite</title>
-       <!-- meta viewport left out on purpose for test append -->
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script src="../../jquery.testHelper.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [
-                               "jquery.mobile.buttonMarkup",
-                               "jquery.mobile.controlGroup",
-                               "jquery.mobile.fixedToolbar",
-                               "jquery.mobile.forms.button",
-                       ],
-                       [ "jquery.mobile.init" ],
-                       [
-                               "buttonMarkup_core.js"
-                       ]
-               ]);
-       </script>
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css" />
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Button Markup Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div data-nstest-role="page" id="default">
-  <div data-nstest-role="header" id="page-header">
-    <a id="header-button-1" data-role="button" href="index.html">Header button 1</a>
-    <a id="header-button-2" data-role="button" href="index.html">Header button 2</a>
-  </div>
-  <div data-nstest-role="content" id="control-group-content">
-    <input type="submit" data-nstest-role="button" value="Double Enhanced?" id="double-enhanced" />
-    <a href="index.html" data-nstest-role="button" data-nstest-shadow="false">No shadow</a>
-    <a href="index.html" data-nstest-role="button" data-nstest-corners="false">No corners</a>
-    <a href="index.html" data-nstest-role="button" data-nstest-shadow="false" data-nstest-corners="false">No shadow or corners</a>
-    <a href="index.html" data-nstest-role="button" data-nstest-icon="delete" data-nstest-iconshadow="false">No iconshadow</a>
-    <button data-nstest-shadow="false" data-nstest-corners="false" data-nstest-icon="delete" data-nstest-iconshadow="false">None of the above</button>
-    <svg id="embedded-svg" width="120" height="120" viewPort="0 0 120 120" version="1.1" xmlns="http://www.w3.org/2000/svg">
-      <rect x="10" y="10" width="100" height="100"/>
-    </svg>
-
-       <a href="docs-bars.html" data-nstest-role="button" id="full">Fullsize</a>
-       <a href="docs-bars.html" data-nstest-role="button" data-nstest-mini="true" id="mini">Mini</a>
-
-       <div data-nstest-role="controlgroup" data-nstest-mini="true" id="mini-control">
-               <a href="index.html" data-nstest-role="button">Yes</a>
-       </div>
-
-       <a id="iconpos1" data-nstest-role="button" href="index.html" data-nstest-icon="check">Default iconpos</a>
-       <a id="iconpos2" data-nstest-role="button" href="index.html" data-nstest-icon="check" data-nstest-iconpos="left">Left iconpos</a>
-       <a id="iconpos3" data-nstest-role="button" href="index.html" data-nstest-icon="check" data-nstest-iconpos="right">Right iconpos</a>
-       <a id="hover-delay" data-nstest-role="button" href="index.html"></a>
-  </div>
-       <div data-nstest-role="footer" id="control-group-footer" class="ui-bar" data-nstest-position="inline">
-               <div data-nstest-role="controlgroup" data-nstest-type="horizontal">
-                       <a href="index.html" data-nstest-icon="delete">Remove</a>
-                       <a href="index.html" data-nstest-icon="plus">Add</a>
-                       <a href="index.html" data-nstest-icon="arrow-u">Up</a>
-                       <a href="index.html" data-nstest-icon="arrow-d">Down</a>
-               </div>
-       </div>
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/checkboxradio/checkboxradio_core.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/checkboxradio/checkboxradio_core.js
deleted file mode 100644 (file)
index 463107b..0000000
+++ /dev/null
@@ -1,273 +0,0 @@
-/*
- * mobile checkboxradio unit tests
- */
-(function($){
-       module( 'jquery.mobile.forms.checkboxradio.js' );
-
-       test( "widget can be disabled and enabled", function(){
-               var input = $( "#checkbox-1" ),
-                       button = input.parent().find( ".ui-btn" );
-
-               input.checkboxradio( "disable" );
-               input.checkboxradio( "enable" );
-               ok( !input.attr( "disabled" ), "start input as enabled" );
-               ok( !input.parent().hasClass( "ui-disabled" ), "no disabled styles" );
-               ok( !input.attr( "checked" ), "not checked before click" );
-               button.trigger( "click" );
-               ok( input.attr( "checked" ), "checked after click" );
-               ok( button.hasClass( "ui-checkbox-on" ), "active styles after click" );
-               button.trigger( "click" );
-
-               input.checkboxradio( "disable" );
-               ok( input.attr( "disabled" ), "input disabled" );
-               ok( input.parent().hasClass( "ui-disabled" ), "disabled styles" );
-               ok( !input.attr( "checked" ), "not checked before click" );
-               button.trigger( "click" );
-               ok( !input.attr( "checked" ), "not checked after click" );
-               ok( !button.hasClass( "ui-checkbox-on" ), "no active styles after click" );
-       });
-
-       test( "clicking a checkbox within a controlgroup does not affect checkboxes with the same name in the same controlgroup", function(){
-               var input1 = $("#checkbox-31");
-               var button1 = input1.parent().find(".ui-btn");
-               var input2 = $("#checkbox-32");
-               var button2 = input2.parent().find(".ui-btn");
-
-               ok(!input1.attr("checked"), "input1 not checked before click");
-               ok(!input2.attr("checked"), "input2 not checked before click");
-
-               button1.trigger("click");
-               ok(input1.attr("checked"), "input1 checked after click on input1");
-               ok(!input2.attr("checked"), "input2 not checked after click on input1");
-
-               button2.trigger("click");
-               ok(input1.attr("checked"), "input1 not changed after click on input2");
-               ok(input2.attr("checked"), "input2 checked after click on input2");
-       });
-
-       asyncTest( "change events fired on checkbox for both check and uncheck", function(){
-               var $checkbox = $( "#checkbox-2" ),
-                       $checkboxLabel = $checkbox.parent().find( ".ui-btn" );
-
-               $checkbox.unbind( "change" );
-
-               expect( 1 );
-
-               $checkbox.one('change', function(){
-                       ok( true, "change fired on click to check the box" );
-               });
-
-               $checkboxLabel.trigger( "click" );
-
-               //test above will be triggered twice, and the start here once
-               $checkbox.one('change', function(){
-                       start();
-               });
-
-               $checkboxLabel.trigger( "click" );
-       });
-
-       asyncTest( "radio button labels should update the active button class to last clicked and clear checked", function(){
-               var $radioBtns = $( '#radio-active-btn-test input' ),
-                       singleActiveAndChecked = function(){
-                               same( $( "#radio-active-btn-test .ui-radio-on" ).length, 1, "there should be only one active button" );
-                               // Use the .checked property, not the checked attribute which is not dynamic
-                               var numChecked = 0;
-                               $( "#radio-active-btn-test input" ).each(function(i, e) {
-                                       if( e.checked ) {
-                                               numChecked++;
-                                       }
-                               });
-                               same( numChecked, 1, "there should be only one checked" );
-                       };
-
-               $.testHelper.sequence([
-                       function(){
-                               $radioBtns.last().siblings( 'label' ).click();
-                       },
-
-                       function(){
-                               ok( $radioBtns.last().prop( 'checked' ), "last input is checked" );
-                               ok( $radioBtns.last().siblings( 'label' ).hasClass( 'ui-radio-on' ),
-                                       "last input label is an active button" );
-
-                               ok( !$radioBtns.first().prop( 'checked' ), "first input label is not active" );
-                               ok( !$radioBtns.first().siblings( 'label' ).hasClass( 'ui-radio-on' ),
-                                       "first input label is not active" );
-
-                               singleActiveAndChecked();
-
-                               $radioBtns.first().siblings( 'label' ).click();
-                       },
-
-                       function(){
-                               ok( $radioBtns.first().prop( 'checked' ));
-                               ok( $radioBtns.first().siblings( 'label' ).hasClass( 'ui-radio-on' ),
-                                       "first input label is an active button" );
-
-                               ok( !$radioBtns.last().prop( 'checked' ));
-                               ok( !$radioBtns.last().siblings( 'label' ).hasClass( 'ui-radio-on' ),
-                                       "last input label is not active" );
-
-                               singleActiveAndChecked();
-
-                               start();
-                       }
-               ], 500);
-
-       });
-
-       test( "checkboxradio controls will create when inside a container that receives a 'create' event", function(){
-               ok( !$("#enhancetest").appendTo(".ui-page-active").find(".ui-checkbox").length, "did not have enhancements applied" );
-               ok( $("#enhancetest").trigger("create").find(".ui-checkbox").length, "enhancements applied" );
-       });
-
-       $.mobile.page.prototype.options.keepNative = "input.should-be-native";
-
-       // not testing the positive case here since's it's obviously tested elsewhere
-       test( "checkboxradio elements in the keepNative set shouldn't be enhanced", function() {
-               ok( !$("input.should-be-native").parent().is("div.ui-checkbox") );
-       });
-
-       test( "Elements with \u201cdata-mini='true'\u201d should have \u201cui-mini\u201d class attached to enhanced element.", function(){
-               var full = document.getElementById("radio-full"),
-                       $fulllbl = $('[for="radio-full"]'),
-                       mini = document.getElementById("radio-mini"),
-                       $minilbl = $('[for="radio-mini"]'),
-                       minictrl = $("#mini-control");
-
-               ok( !full.getAttribute('data-nstest-mini') && !$fulllbl.hasClass('ui-mini'), "Original element does not have data attribute, enhanced version does not recieve .ui-mini.");
-               ok( mini.getAttribute('data-nstest-mini'), "Original element has data attribute, enhanced version recieves .ui-mini." );
-       });
-
-       asyncTest( "clicking the label triggers a click on the element", function() {
-               var clicked = false;
-
-               expect( 1 );
-
-               $( "#checkbox-click-triggered" ).one('click', function() {
-                       clicked = true;
-               });
-
-               $.testHelper.sequence([
-                       function() {
-                               $( "[for='checkbox-click-triggered']" ).click();
-                       },
-
-                       function() {
-                               ok(clicked, "click was fired on input");
-                               start();
-                       }
-               ], 2000);
-       });
-
-       asyncTest( "clicking the label triggers a change on the element", function() {
-               var changed = false;
-
-               expect( 1 );
-
-               $( "#checkbox-change-triggered" ).one('change', function() {
-                       changed = true;
-               });
-
-               $.testHelper.sequence([
-                       function() {
-                               $( "[for='checkbox-change-triggered']" ).click();
-                       },
-
-                       function() {
-                               ok(changed, "change was fired on input");
-                               start();
-                       }
-               ], 2000);
-       });
-
-
-       test( "theme should be inherited", function() {
-               var $inherited = $( "#checkbox-inherit-theme" ),
-                   $explicit = $( "#checkbox-explicit-theme" );
-
-               ok( $inherited.siblings("label").hasClass( "ui-btn-up-a" ), "should inherit from page" );
-               ok( $explicit.siblings("label").hasClass( "ui-btn-up-b" ), "should not inherit" );
-       });
-
-       asyncTest( "form submission should include radio button values", function() {
-               var $form = $( "#radio-form" ), $input = $form.find("input").first();
-
-               $.testHelper.pageSequence([
-                       function() {
-                               $input.click();
-                               $form.submit();
-                       },
-
-                       function( timeout ){
-                               ok( location.search.indexOf("radio1=1") >= 0, "the radio was checked" );
-
-                               // if the changepage in the previous function failed don't go back
-                               if( !timeout ){
-                                       window.history.back();
-                               }
-                       },
-
-                       function(){
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "form submission should include checkbox button values", function() {
-               var $form = $( "#check-form" ), $inputs = $form.find("input");
-
-               $.testHelper.pageSequence([
-                       function() {
-                               $inputs.click();
-                               $form.submit();
-                       },
-
-                       function( timeout ){
-                               ok( location.search.indexOf("checkbox-form=on") >= 0, "the first checkbox was checked" );
-                               ok( location.search.indexOf("checkbox-form-2=on") >= 0, "the second checkbox was checked" );
-                               // if the changepage in the previous function failed don't go back
-                               if( !timeout ){
-                                       window.history.back();
-                               }
-                       },
-
-                       function(){
-                               start();
-                       }
-               ]);
-       });
-
-  test( "nested label checkbox still renders", function() {
-    var $checkbox = $( "#checkbox-nested-label" );
-
-    try {
-      $checkbox.checkboxradio();
-    } catch (e) {
-      ok( false, "checkboxradio exception raised: " + e.toString());
-    }
-
-    ok( $checkbox.parent().hasClass("ui-checkbox"), "enhancement has occured");
-  });
-  
-  test( "nested label (no [for]) checkbox still renders", function() {
-    var $checkbox = $( "#checkbox-nested-label-no-for" );
-
-    try {
-      $checkbox.checkboxradio();
-    } catch (e) {
-      ok( false, "checkboxradio exception raised: " + e.toString());
-    }
-
-    ok( $checkbox.parent().hasClass("ui-checkbox"), "enhancement has occured");
-  });
-  
-       test( "Icon positioning", function() {
-               var bottomicon = $("[for='bottomicon']")
-                       topicon = $("[for='topicon']");
-
-               ok( bottomicon.hasClass("ui-btn-icon-bottom"), "Icon position set on label adds the appropriate class." );
-               ok( topicon.hasClass("ui-btn-icon-top"), "Icon position set on input adds the appropriate class to the label." );
-       });
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/checkboxradio/form-result.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/checkboxradio/form-result.html
deleted file mode 100644 (file)
index a963e0e..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-<div id="form-result" data-role="page">
-</div>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/checkboxradio/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/checkboxradio/index.html
deleted file mode 100644 (file)
index a6a09af..0000000
+++ /dev/null
@@ -1,202 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="UTF-8" />
-       <title>jQuery Mobile Checkboxradio Test Suite</title>
-
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../../tests/jquery.testHelper.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [
-                               "jquery.mobile.forms.checkboxradio",
-                               "jquery.mobile.page" // Needed by the test suite
-                       ],
-                       [
-                               "checkboxradio_core.js"
-                       ],
-                       [ "jquery.mobile.init" ]
-               ]);
-       </script>
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Checkbockradio Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div data-nstest-role="page" data-nstest-theme="a">
-       <div data-nstest-role="content">
-
-               <div data-nstest-role="fieldcontain">
-                       <fieldset data-nstest-role="controlgroup">
-                               <legend>Agree to the terms:</legend>
-                               <input type="checkbox" name="checkbox-1" id="checkbox-1" class="custom"/>
-                               <label for="checkbox-1">I agree</label>
-                       </fieldset>
-               </div>
-
-               <div data-nstest-role="fieldcontain">
-                       <fieldset data-nstest-role="controlgroup">
-                               <legend>Agree to the terms:</legend>
-                               <input type="checkbox" name="checkbox-2" id="checkbox-2" class="custom"/>
-                               <label for="checkbox-2">I agree</label>
-                       </fieldset>
-               </div>
-
-        <div data-nstest-role="fieldcontain" data-nstest-role="controlgroup">
-            <div>
-                <legend>Agree to the terms 3.1:</legend>
-                <input type="checkbox" name="checkbox-3" id="checkbox-31" class="custom"/>
-                <label for="checkbox-31">I agree 3.1</label>
-            </div>
-            <div>
-                <legend>Agree to the terms 3.2:</legend>
-                <input type="checkbox" name="checkbox-3" id="checkbox-32" class="custom"/>
-                <label for="checkbox-32">I agree 3.2</label>
-            </div>
-        </div>
-       </div>
-
-<div data-role="fieldcontain" id="radio-active-btn-test">
-       <fieldset data-role="controlgroup">
-         <legend>Choose a pet:</legend>
-         <input type="radio" name="radio-pet-active-btn" id="radio-pet-1" value="choice-1" checked="checked"  />
-         <label for="radio-pet-1">Cat</label>
-
-         <input type="radio" name="radio-pet-active-btn" id="radio-pet-2" value="choice-2"  />
-         <label for="radio-pet-2">Dog</label>
-
-         <input type="radio" name="radio-pet-active-btn" id="radio-pet-3" value="choice-3"  />
-         <label for="radio-pet-3">Hamster</label>
-
-         <input type="radio" name="radio-pet-active-btn" id="radio-pet-4" value="choice-4"  />
-         <label for="radio-pet-4">Lizard</label>
-       </fieldset>
-</div>
-
-<div data-role="fieldcontain">
-       <input type="radio" name="radio-full" value="choice-3" id="radio-full" />
-       <label for="radio-full">Hamster</label>
-
-       <input type="radio" name="radio-mini" value="choice-3" id="radio-mini" data-nstest-mini="true" />
-       <label for="radio-mini">Hamster</label>
-
-       <div data-nstest-role="controlgroup" data-nstest-mini="true" id="mini-control">
-               <input type="radio" name="radio-mini" value="choice-3" id="mini-ctrl" />
-               <label for="mini-ctrl">Hamster</label>
-               <input type="radio" name="full-ctrl" value="choice-3" id="full-ctrl" />
-               <label for="full-ctrl">Hamster</label>
-       </div>
-</div>
-
-
-<div data-role="fieldcontain">
-       <fieldset data-role="controlgroup">
-               <legend>Agree to the terms:</legend>
-               <input type="checkbox" name="checkbox-1" id="checkbox-1" class="should-be-native" />
-               <label for="checkbox-1">I agree</label>
-       </fieldset>
-</div>
-
-<div data-role="fieldcontain">
-       <fieldset data-role="controlgroup">
-               <legend>Agree to the terms:</legend>
-               <input type="checkbox" name="checkbox-click-triggered" id="checkbox-click-triggered"/>
-               <label for="checkbox-click-triggered">click triggered</label>
-               <input type="checkbox" name="checkbox-click-triggered" id="checkbox-click-triggered-2"/>
-               <label for="checkbox-click-triggered-2">click triggered</label>
-
-               <input type="radio" name="checkbox-change-triggered" id="checkbox-change-triggered"/>
-               <label for="checkbox-change-triggered">click triggered</label>
-               <input type="radio" name="checkbox-change-triggered" id="checkbox-change-triggered-2"/>
-               <label for="checkbox-change-triggered-2">click triggered</label>
-       </fieldset>
-</div>
-
-<div data-role="fieldcontain">
-       <fieldset data-role="controlgroup">
-               <legend>Agree to the terms:</legend>
-               <input type="checkbox" name="checkbox-inherit-theme" id="checkbox-inherit-theme"/>
-               <label for="checkbox-inherit-theme">foo</label>
-       </fieldset>
-
-       <fieldset data-role="controlgroup">
-               <legend>Agree to the terms:</legend>
-               <input type="checkbox" name="checkbox-explicit-theme" id="checkbox-explicit-theme" data-nstest-theme="b"/>
-               <label for="checkbox-explicit-theme">foo</label>
-       </fieldset>
-</div>
-               
-<div data-nstest-role="fieldcontain">
-       <fieldset data-nstest-role="controlgroup">
-               <input type="checkbox" name="topicon" id="topicon" class="custom" data-nstest-iconpos="top" />
-               <label for="topicon">I agree</label>
-
-               <input type="checkbox" name="bottomicon" id="bottomicon" class="custom" />
-               <label for="bottomicon" data-nstest-iconpos="bottom">I agree</label>
-       </fieldset>
-</div>
-
-<form id="radio-form" method="get" action="form-result.html">
-       <fieldset data-role="controlgroup" data-type="horizontal">
-               <legend>Check one:</legend>
-               <input type="radio" id="radio1" name="radio1" value="1" />
-               <label for="radio1">Radio1</label>
-       </fieldset>
-</form>
-
-
-<form id="check-form" method="get" action="form-result.html">
-       <div data-role="fieldcontain">
-               <fieldset data-role="controlgroup" data-type="horizontal">
-                       <legend>Font styling:</legend>
-                       <input type="checkbox" name="checkbox-form" id="checkbox-form" class="custom" />
-                       <label for="checkbox-form">b</label>
-
-                       <input type="checkbox" name="checkbox-form-2" id="checkbox-form-2" class="custom" />
-                       <label for="checkbox-form-2"><em>i</em></label>
-               </fieldset>
-       </div>
-</form>
-
-</div>
-
-<div id="enhancetest">
-       <input type="checkbox" name="checkbox-332" id="checkbox-332" class="custom"/>
-       <label for="checkbox-332">I agree 3.2</label>
-</div>
-
-<div id="exception-test">
-       <form>
-               <input type="checkbox" name="checkbox-exception" id="checkbox-exception" class="custom"/>
-       </form>
-</div>
-
-<div id="nested-label-test">
-       <form>
-               <label for="checkbox-nested-label">
-                       <input type="checkbox" name="checkbox-nested-label" id="checkbox-nested-label" class="custom"/>
-               </label>
-       </form>
-</div>
-
-<div id="nested-label-no-for-test">
-  <form>
-    <label>
-      <input type="checkbox" name="checkbox-nested-label-no-for" id="checkbox-nested-label-no-for" class="custom"/>
-    </label>
-  </form>
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/collapsible/collapsible_core.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/collapsible/collapsible_core.js
deleted file mode 100644 (file)
index b8c222f..0000000
+++ /dev/null
@@ -1,216 +0,0 @@
-/*
- * mobile listview unit tests
- */
-
-// TODO split out into seperate test files
-(function( $ ){
-       module( "Collapsible section", {});
-
-       asyncTest( "The page should enhanced correctly", function(){
-               $.testHelper.pageSequence([
-                       function(){
-                               $.testHelper.openPage( "#basic-collapsible-test" );
-                       },
-
-                       function() {
-                               var $page = $( "#basic-collapsible-test" );
-                               ok($page.find( ".ui-content >:eq(0)" ).hasClass( "ui-collapsible" ), ".ui-collapsible class added to collapsible elements" );
-                               ok($page.find( ".ui-content >:eq(0) >:header" ).hasClass( "ui-collapsible-heading" ), ".ui-collapsible-heading class added to collapsible heading" );
-                               ok($page.find( ".ui-content >:eq(0) > div" ).hasClass( "ui-collapsible-content" ), ".ui-collapsible-content class added to collapsible content" );
-                               ok($page.find( ".ui-content >:eq(0)" ).hasClass( "ui-collapsible-collapsed" ), ".ui-collapsible-collapsed added to collapsed elements" );
-                               ok(!$page.find( ".ui-content >:eq(1)" ).hasClass( "ui-collapsible-collapsed" ), ".ui-collapsible-collapsed not added to expanded elements" );
-                               ok($page.find( ".ui-collapsible.ui-collapsible-collapsed" ).find( ".ui-collapsible-heading-toggle > .ui-btn-inner" ).hasClass( "ui-corner-top ui-corner-bottom" ), "Collapsible header button should have class ui-corner-all" );
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "Expand/Collapse", function(){
-               $.testHelper.pageSequence([
-                       function(){
-                               $.testHelper.openPage( "#basic-collapsible-test" );
-                       },
-
-                       function() {
-                               ok($( "#basic-collapsible-test .ui-collapsible" ).eq(0).hasClass( "ui-collapsible-collapsed" ), "First collapsible should be collapsed");
-                               $( "#basic-collapsible-test .ui-collapsible-heading-toggle" ).eq(0).click();
-                               ok(!$( "#basic-collapsible-test .ui-collapsible" ).eq(0).hasClass( "ui-collapsible-collapsed" ), "First collapsible should be expanded after click");
-                               $( "#basic-collapsible-test .ui-collapsible-heading-toggle" ).eq(0).click();
-                               ok($( "#basic-collapsible-test .ui-collapsible" ).eq(0).hasClass( "ui-collapsible-collapsed" ), "First collapsible should be collapsed");
-                               start();
-                       }
-               ]);
-       });
-
-       module( "Collapsible set", {});
-
-       asyncTest( "The page should enhanced correctly", function(){
-               $.testHelper.pageSequence([
-                       function(){
-                               $.testHelper.openPage( "#basic-collapsible-set-test" );
-                       },
-
-                       function() {
-                               var $page = $( "#basic-collapsible-set-test" );
-
-                               ok($page.find( ".ui-content >:eq(0)" ).hasClass( "ui-collapsible-set" ), ".ui-collapsible-set class added to collapsible set" );
-                               ok($page.find( ".ui-content >:eq(0) > div" ).hasClass( "ui-collapsible" ), ".ui-collapsible class added to collapsible elements" );
-                               $page.find( ".ui-collapsible-set" ).each(function() {
-                                       var $this = $( this );
-                                       ok($this.find( ".ui-collapsible" ).first().find( ".ui-collapsible-heading-toggle > .ui-btn-inner" ).hasClass( "ui-corner-top" ), "First collapsible header button should have class ui-corner-top" );
-                                       ok($this.find( ".ui-collapsible" ).last().find( ".ui-collapsible-heading-toggle > .ui-btn-inner" ).hasClass( "ui-corner-bottom" ), "Last collapsible header button should have class ui-corner-bottom" );
-                               });
-
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "Collapsible set with only one collapsible", function() {
-               $.testHelper.pageSequence([
-                       function(){
-                               $.testHelper.openPage( "#collapsible-set-with-lonely-collapsible-test" );
-                       },
-
-                       function() {
-                               var $page = $( "#collapsible-set-with-lonely-collapsible-test" );
-                               $page.find( ".ui-collapsible-set" ).each(function() {
-                                       var $this = $( this );
-                                       ok($this.find( ".ui-collapsible" ).first().find( ".ui-collapsible-heading-toggle > .ui-btn-inner" ).hasClass( "ui-corner-top" ), "First collapsible header button should have class ui-corner-top" );
-                                       ok($this.find( ".ui-collapsible" ).last().find( ".ui-collapsible-heading-toggle > .ui-btn-inner" ).hasClass( "ui-corner-bottom" ), "Last collapsible header button should have class ui-corner-bottom" );
-                               });
-
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "Section expanded by default", function(){
-               $.testHelper.pageSequence([
-                       function(){
-                               $.testHelper.openPage( "#basic-collapsible-set-test" );
-                       },
-
-                       function() {
-                               equals($( "#basic-collapsible-set-test .ui-content >:eq(0) .ui-collapsible-collapsed" ).length, 2, "There should be 2 section collapsed" );
-                               ok(!$( "#basic-collapsible-set-test .ui-content >:eq(0) >:eq(1)" ).hasClass( "ui-collapsible-collapsed" ), "Section B should be expanded" );
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "Expand/Collapse", function(){
-               $.testHelper.pageSequence([
-                       function(){
-                               $.testHelper.openPage( "#basic-collapsible-set-test" );
-                       },
-
-                       function() {
-                               ok($( "#basic-collapsible-set-test .ui-collapsible" ).eq(0).hasClass( "ui-collapsible-collapsed" ), "First collapsible should be collapsed");
-                               $( "#basic-collapsible-set-test .ui-collapsible-heading-toggle" ).eq(0).click();
-                               ok(!$( "#basic-collapsible-set-test .ui-collapsible" ).eq(0).hasClass( "ui-collapsible-collapsed" ), "First collapsible should be expanded after click");
-                               $( "#basic-collapsible-set-test .ui-collapsible-heading-toggle" ).eq(0).click();
-                               ok($( "#basic-collapsible-set-test .ui-collapsible" ).hasClass( "ui-collapsible-collapsed" ), "All collapsible should be collapsed");
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "Collapsible Set with dynamic content", function(){
-               $.testHelper.pageSequence([
-                       function(){
-                               $.testHelper.openPage( "#collapsible-set-with-dynamic-content" );
-                       },
-
-                       function() {
-                               var set = $( ".ui-page-active" ).find( ".ui-collapsible-set" );
-                               for ( var i = 0; i < 3; i++ ) {
-                                       $( '<div data-'+ $.mobile.ns +'role="collapsible"><h3>Collapsible Item ' + i + '</h3></div>' ).appendTo( set );
-                               }
-                               set.collapsibleset( "refresh" );
-                               equal( set.find( ".ui-collapsible" ).length, 3, "The 3 collapsibles should be enhanced" );
-                               ok( set.find( ".ui-collapsible" ).eq( 0 ).find( "a" ).hasClass( "ui-corner-top" ), "The 1st collapsible should have top corners" );
-                               ok( !set.find( ".ui-collapsible" ).eq( 0 ).find( "a" ).hasClass( "ui-corner-bottom" ), "The 1st collapsible should NOT have bottom corners" );
-                               ok( !set.find( ".ui-collapsible" ).eq( 1 ).find( "a" ).hasClass( "ui-corner-top" ), "The 2nd collapsible should NOT have top corners" );
-                               ok( !set.find( ".ui-collapsible" ).eq( 1 ).find( "a" ).hasClass( "ui-corner-bottom" ), "The 2nd collapsible should NOT have bottom corners" );
-                               ok( set.find( ".ui-collapsible" ).eq( 2 ).find( "a" ).hasClass( "ui-corner-bottom" ), "The 3rd collapsible should have bottom corners" );
-                               ok( !set.find( ".ui-collapsible" ).eq( 2 ).find( "a" ).hasClass( "ui-corner-top" ), "The 3rd collapsible should NOT have top corners" );
-                               start();
-                       }
-               ]);
-       });
-
-  asyncTest( "Collapsible Set with static and dynamic content", function(){
-               $.testHelper.pageSequence([
-                       function(){
-                               $.testHelper.openPage( "#collapsible-set-with-static-and-dynamic-content" );
-                       },
-
-                       function() {
-                               var set = $( ".ui-page-active" ).find( ".ui-collapsible-set" );
-                               for ( var i = 0; i < 2; i++ ) {
-                                       $( '<div data-'+ $.mobile.ns +'role="collapsible"><h3>Collapsible Item ' + i + '</h3></div>' ).appendTo( set );
-                               }
-                               set.collapsibleset( "refresh" );
-                               equal( set.find( ".ui-collapsible" ).length, 3, "The 3 collapsibles should be enhanced" );
-                               ok( set.find( ".ui-collapsible" ).eq( 0 ).find( "a" ).hasClass( "ui-corner-top" ), "The 1st collapsible should have top corners" );
-                               ok( !set.find( ".ui-collapsible" ).eq( 0 ).find( "a" ).hasClass( "ui-corner-bottom" ), "The 1st collapsible should NOT have bottom corners" );
-                               ok( !set.find( ".ui-collapsible" ).eq( 1 ).find( "a" ).hasClass( "ui-corner-top" ), "The 2nd collapsible should NOT have top corners" );
-                               ok( !set.find( ".ui-collapsible" ).eq( 1 ).find( "a" ).hasClass( "ui-corner-bottom" ), "The 2nd collapsible should NOT have bottom corners" );
-                               ok( set.find( ".ui-collapsible" ).eq( 2 ).find( "a" ).hasClass( "ui-corner-bottom" ), "The 3rd collapsible should have bottom corners" );
-                               ok( !set.find( ".ui-collapsible" ).eq( 2 ).find( "a" ).hasClass( "ui-corner-top" ), "The 3rd collapsible should NOT have top corners" );
-                               start();
-                       }
-               ]);
-       });
-
-       module( "Theming", {});
-
-       asyncTest( "Collapsible", 6, function(){
-               $.testHelper.pageSequence([
-                       function(){
-                               $.testHelper.openPage( "#collapsible-with-theming" );
-                       },
-
-                       function() {
-                               var collapsibles = $.mobile.activePage.find( ".ui-collapsible" );
-                               ok( collapsibles.eq(0).find( ".ui-collapsible-heading-toggle" ).hasClass( "ui-btn-up-a" ), "Heading of first collapsible should have class ui-btn-up-a");
-                               ok( !collapsibles.eq(0).find( ".ui-collapsible-content" ).hasClass( "ui-btn-up-a" ), "Content of first collapsible should NOT have class ui-btn-up-a");
-                               ok( collapsibles.eq(1).find( ".ui-collapsible-heading-toggle" ).hasClass( "ui-btn-up-b" ), "Heading of second collapsible should have class ui-btn-up-b");
-                               ok( collapsibles.eq(1).find( ".ui-collapsible-content" ).hasClass( "ui-body-b" ), "Content of second collapsible should have class ui-btn-up-b");
-                               ok( collapsibles.eq(2).find( ".ui-collapsible-heading-toggle" ).hasClass( "ui-btn-up-c" ), "Heading of third collapsible should have class ui-btn-up-c");
-                               ok( collapsibles.eq(2).find( ".ui-collapsible-content" ).hasClass( "ui-body-c" ), "Content of third collapsible should have class ui-btn-up-c");
-                               start();
-                       }
-               ]);
-       });
-
-
-       asyncTest( "Collapsible Set", function(){
-               $.testHelper.pageSequence([
-                       function(){
-                               $.testHelper.openPage( "#collapsible-set-with-theming" );
-                       },
-
-                       function() {
-                               var collapsibles = $.mobile.activePage.find( ".ui-collapsible" );
-                               ok( collapsibles.eq(0).find( ".ui-collapsible-heading-toggle" ).hasClass( "ui-btn-up-a" ), "Heading of first collapsible should have class ui-btn-up-a");
-                               ok( !collapsibles.eq(0).find( ".ui-collapsible-content" ).is( ".ui-body-a,.ui-body-b,.ui-body-c" ), "Content of first collapsible should NOT have class ui-btn-up-[a,b,c]");
-                               ok( collapsibles.eq(0).find( ".ui-collapsible-content" ).hasClass( "ui-body-d" ), "Content of first collapsible should NOT have class ui-btn-up-d");
-                               ok( collapsibles.eq(1).find( ".ui-collapsible-heading-toggle" ).hasClass( "ui-btn-up-b" ), "Heading of second collapsible should have class ui-btn-up-b");
-                               ok( !collapsibles.eq(1).find( ".ui-collapsible-content" ).is( ".ui-body-a,.ui-body-c,.ui-body-d" ), "Content of second collapsible should NOT have class ui-btn-up-[a,c,d]");
-                               ok( collapsibles.eq(1).find( ".ui-collapsible-content" ).hasClass( "ui-body-b" ), "Content of second collapsible should have class ui-btn-up-b");
-                               ok( collapsibles.eq(2).find( ".ui-collapsible-heading-toggle" ).hasClass( "ui-btn-up-d" ), "Heading of third collapsible should have class ui-btn-up-d");
-                               ok( !collapsibles.eq(2).find( ".ui-collapsible-content" ).is( ".ui-body-a,.ui-body-b,.ui-body-c" ), "Content of third collapsible should NOT have class ui-btn-up-[a,b,c]");
-                               ok( collapsibles.eq(2).find( ".ui-collapsible-content" ).hasClass( "ui-body-d" ), "Content of third collapsible should have class ui-btn-up-d");
-                               ok( !collapsibles.eq(2).find( ".ui-collapsible-content" ).hasClass( "ui-collapsible-content-collapsed" ), "Content of third collapsible should NOT have class ui-collapsible-content-collapsed");
-                               ok( collapsibles.eq(3).find( ".ui-collapsible-heading-toggle" ).hasClass( "ui-btn-up-d" ), "Heading of fourth collapsible should have class ui-btn-up-d");
-                               ok( !collapsibles.eq(3).find( ".ui-collapsible-content" ).is( ".ui-body-a,.ui-body-b,.ui-body-c" ), "Content of fourth collapsible should NOT have class ui-btn-up-[a,b,c]");
-                               ok( collapsibles.eq(3).find( ".ui-collapsible-content" ).hasClass( "ui-body-d" ), "Content of fourth collapsible should have class ui-btn-up-d");
-                               start();
-                       }
-               ]);
-       });
-
-
-})( jQuery );
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/collapsible/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/collapsible/index.html
deleted file mode 100644 (file)
index cf42f4c..0000000
+++ /dev/null
@@ -1,203 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile Collapsible Integration Test</title>
-
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../jquery.testHelper.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [
-                               "jquery.mobile.collapsible",
-                               "jquery.mobile.collapsibleSet",
-                               "jquery.mobile.page.sections"
-                       ],
-                       [ "jquery.mobile.init" ],
-                       [
-                               "collapsible_core.js"
-                       ]
-               ]);
-       </script>
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css" />
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Collapsible Integration Test</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div data-nstest-role="page" id='basic-collapsible-test'>
-       <div data-nstest-role="header">
-               <h1>Basic collapsible</h1>
-       </div>
-       <div data-nstest-role="content">
-               <div data-nstest-role="collapsible">
-                       <h3>Section A</h3>
-
-                       <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
-                               have the "collapsed" state; you need to expand the header to see me.</p>
-
-               </div>
-               <div data-nstest-role="collapsible" data-nstest-collapsed="false">
-                       <h3>Section B</h3>
-
-                       <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
-                               have the "collapsed" state; you need to expand the header to see me.</p>
-
-               </div>
-       </div>
-</div>
-
-<div data-nstest-role="page" id='basic-collapsible-set-test'>
-       <div data-nstest-role="header">
-               <h1>Basic collapsible</h1>
-       </div>
-       <div data-nstest-role="content">
-               <div data-nstest-role="collapsible-set">
-                       <div data-nstest-role="collapsible">
-                               <h3>Section A</h3>
-
-                               <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
-                                       have the "collapsed" state; you need to expand the header to see me.</p>
-
-                       </div>
-                       <div data-nstest-role="collapsible" data-nstest-collapsed="false">
-                               <h3>Section B</h3>
-
-                               <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
-                                       have the "collapsed" state; you need to expand the header to see me.</p>
-
-                       </div>
-                       <div data-nstest-role="collapsible">
-                               <h3>Section C</h3>
-
-                               <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
-                                       have the "collapsed" state; you need to expand the header to see me.</p>
-
-                       </div>
-               </div>
-       </div>
-</div>
-
-<div data-nstest-role="page" id='collapsible-set-with-lonely-collapsible-test'>
-       <div data-nstest-role="header">
-               <h1>Basic collapsible</h1>
-       </div>
-       <div data-nstest-role="content">
-               <div data-nstest-role="collapsible-set">
-                       <div data-nstest-role="collapsible" >
-                               <h3>Section D</h3>
-
-                               <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
-                                       have the "collapsed" state; you need to expand the header to see me.</p>
-                       </div>
-               </div>
-
-               <div data-nstest-role="collapsible" >
-                       <h3>Section E</h3>
-
-                       <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
-                               have the "collapsed" state; you need to expand the header to see me.</p>
-               </div>
-       </div>
-</div>
-
-<div data-nstest-role="page" id='collapsible-with-theming'>
-       <div data-nstest-role="header">
-               <h1>Themed collapsibles</h1>
-       </div>
-       <div data-nstest-role="content">
-               <div data-nstest-role="collapsible" data-nstest-theme="a">
-                       <h3>Section A</h3>
-
-                       <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
-                               have the "collapsed" state; you need to expand the header to see me.</p>
-               </div>
-               <div data-nstest-role="collapsible" data-nstest-theme="b" data-nstest-content-theme="b">
-                       <h3>Section B</h3>
-
-                       <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
-                               have the "collapsed" state; you need to expand the header to see me.</p>
-               </div>
-               <div data-nstest-role="collapsible" data-nstest-theme="c" data-nstest-content-theme="c" data-nstest-collapsed="false">
-                       <h3>Section B</h3>
-
-                       <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
-                               have the "collapsed" state; you need to expand the header to see me.</p>
-               </div>
-
-       </div>
-</div>
-
-<div data-nstest-role="page" id='collapsible-set-with-theming'>
-       <div data-nstest-role="header">
-               <h1>Themed collapsibles</h1>
-       </div>
-       <div data-nstest-role="content">
-               <div data-nstest-role="collapsible-set" data-nstest-theme="d" data-nstest-content-theme="d">
-                       <div data-nstest-role="collapsible" data-nstest-theme="a">
-                               <h3>Section A</h3>
-
-                               <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
-                                       have the "collapsed" state; you need to expand the header to see me.</p>
-                       </div>
-                       <div data-nstest-role="collapsible" data-nstest-theme="b" data-nstest-content-theme="b">
-                               <h3>Section B</h3>
-
-                               <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
-                                       have the "collapsed" state; you need to expand the header to see me.</p>
-                       </div>
-                       <div data-nstest-role="collapsible" data-nstest-collapsed="false">
-                               <h3>Section C</h3>
-
-                               <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
-                                       have the "collapsed" state; you need to expand the header to see me.</p>
-                       </div>
-                       <div data-nstest-role="collapsible">
-                               <h3>Section D</h3>
-
-                               <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
-                                       have the "collapsed" state; you need to expand the header to see me.</p>
-                       </div>
-               </div>
-
-       </div>
-</div>
-
-<div data-nstest-role="page" id='collapsible-set-with-dynamic-content'>
-       <div data-nstest-role="header">
-               <h1>Collapsible Set with dynamic content</h1>
-       </div>
-       <div data-nstest-role="content">
-               <div data-nstest-role="collapsible-set"></div>
-       </div>
-</div>
-
-<div data-nstest-role="page" id='collapsible-set-with-static-and-dynamic-content'>
-       <div data-nstest-role="header">
-               <h1>Collapsible Set with dynamic content</h1>
-       </div>
-       <div data-nstest-role="content">
-               <div data-nstest-role="collapsible-set">
-      <div data-nstest-role="collapsible">
-        <h3>Section A</h3>
-
-        <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
-          have the "collapsed" state; you need to expand the header to see me.</p>
-      </div>
-               </div>
-       </div>
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/controlgroup/controlgroup_core.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/controlgroup/controlgroup_core.js
deleted file mode 100644 (file)
index eaf97fc..0000000
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- * mobile checkboxradio unit tests
- */
-(function($){
-       module( 'vertical controlgroup, no refresh' , {
-               setup: function() {
-                       this.vcontrolgroup = $( "#vertical-controlgroup" );
-               }
-       });
-
-       test( "vertical controlgroup classes", function() {
-               var buttons = this.vcontrolgroup.find( ".ui-btn" ),
-                       middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
-                       length = buttons.length;
-
-               ok( !buttons.hasClass( "ui-btn-corner-all" ), "no button should have class 'ui-btn-corner-all'");
-               ok( buttons.first().hasClass( "ui-corner-top" ), "first button should have class 'ui-corner-top'" );
-               ok( !middlebuttons.hasClass( "ui-corner-top" ), "middle buttons should not have class 'ui-corner-top'" );
-               ok( !middlebuttons.hasClass( "ui-corner-bottom" ), "middle buttons should not have class 'ui-corner-bottom'" );
-               ok( buttons.last().hasClass( "ui-corner-bottom"), "last button should have class 'ui-corner-bottom'" );
-       });
-
-       module( 'vertical controlgroup, refresh', {
-               setup: function() {
-                       this.vcontrolgroup = $( "#vertical-controlgroup" );
-                       this.vcontrolgroup.find( ".ui-btn" ).show();
-                       this.vcontrolgroup.controlgroup();
-               }
-       });
-
-       test( "vertical controlgroup after first button was hidden", function() {
-               //https://github.com/jquery/jquery-mobile/issues/1929
-
-               //We hide the first button and refresh
-               this.vcontrolgroup.find( ".ui-btn" ).first().hide();
-               this.vcontrolgroup.controlgroup();
-
-               var buttons = this.vcontrolgroup.find( ".ui-btn" ).filter( ":visible" ),
-                       middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
-                       length = buttons.length;
-
-               ok( buttons.first().hasClass( "ui-corner-top" ), "first visible button should have class 'ui-corner-top'" );
-               ok( !middlebuttons.hasClass( "ui-corner-top" ), "middle buttons should not have class 'ui-corner-top'" );
-               ok( !middlebuttons.hasClass( "ui-corner-bottom" ), "middle buttons should not have class 'ui-corner-bottom'" );
-               ok( buttons.last().hasClass( "ui-corner-bottom"), "last visible button should have class 'ui-corner-bottom'" );
-       });
-
-       test( "vertical controlgroup after last button was hidden", function() {
-               //https://github.com/jquery/jquery-mobile/issues/1929
-
-               //We hide the last button and refresh
-               this.vcontrolgroup.find( ".ui-btn" ).last().hide();
-               this.vcontrolgroup.controlgroup();
-
-               var buttons = this.vcontrolgroup.find( ".ui-btn" ).filter( ":visible" ),
-                       middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
-                       length = buttons.length;
-
-               ok( buttons.first().hasClass( "ui-corner-top" ), "first visible button should have class 'ui-corner-top'" );
-               ok( !middlebuttons.hasClass( "ui-corner-top" ), "middle buttons should not have class 'ui-corner-top'" );
-               ok( !middlebuttons.hasClass( "ui-corner-bottom" ), "middle buttons should not have class 'ui-corner-bottom'" );
-               ok( buttons.last().hasClass( "ui-corner-bottom"), "last visible button should have class 'ui-corner-bottom'" );
-       });
-
-       module( 'horizontal controlgroup, no refresh', {
-               setup: function() {
-                       this.hcontrolgroup = $( "#horizontal-controlgroup" );
-               }
-       });
-
-       test( "horizontal controlgroup classes", function() {
-               var buttons = this.hcontrolgroup.find( ".ui-btn" ),
-                       middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
-                       length = buttons.length;
-
-               ok( !buttons.hasClass( "ui-btn-corner-all" ), "no button should have class 'ui-btn-corner-all'");
-               ok( buttons.first().hasClass( "ui-corner-left" ), "first button should have class 'ui-corner-left'" );
-               ok( !middlebuttons.hasClass( "ui-corner-left" ), "middle buttons should not have class 'ui-corner-left'" );
-               ok( !middlebuttons.hasClass( "ui-corner-right" ), "middle buttons should not have class 'ui-corner-right'" );
-               ok( buttons.last().hasClass( "ui-corner-right"), "last button should have class 'ui-corner-right'" );
-       });
-
-       module( 'horizontal controlgroup, refresh', {
-               setup: function() {
-                       this.hcontrolgroup = $( "#horizontal-controlgroup" );
-                       this.hcontrolgroup.find( ".ui-btn" ).show();
-                       this.hcontrolgroup.controlgroup();
-               }
-       });
-
-       test( "horizontal controlgroup after first button was hidden", function() {
-               //We hide the first button and refresh
-               this.hcontrolgroup.find( ".ui-btn" ).first().hide();
-               this.hcontrolgroup.controlgroup();
-
-               var buttons = this.hcontrolgroup.find( ".ui-btn" ).filter( ":visible" ),
-                       middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
-                       length = buttons.length;
-
-               ok( buttons.first().hasClass( "ui-corner-left" ), "first visible button should have class 'ui-corner-left'" );
-               ok( !middlebuttons.hasClass( "ui-corner-left" ), "middle buttons should not have class 'ui-corner-left'" );
-               ok( !middlebuttons.hasClass( "ui-corner-right" ), "middle buttons should not have class 'ui-corner-right'" );
-               ok( buttons.last().hasClass( "ui-corner-right"), "last visible button should have class 'ui-corner-right'" );
-       });
-
-       test( "horizontal controlgroup after last button was hidden", function() {
-               //We hide the last button and refresh
-               this.hcontrolgroup.find( ".ui-btn" ).last().hide();
-               this.hcontrolgroup.controlgroup();
-
-               var buttons = this.hcontrolgroup.find( ".ui-btn" ).filter( ":visible" ),
-                       middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
-                       length = buttons.length;
-
-               ok( buttons.first().hasClass( "ui-corner-left" ), "first visible button should have class 'ui-corner-left'" );
-               ok( !middlebuttons.hasClass( "ui-corner-left" ), "middle buttons should not have class 'ui-corner-left'" );
-               ok( !middlebuttons.hasClass( "ui-corner-right" ), "middle buttons should not have class 'ui-corner-right'" );
-               ok( buttons.last().hasClass( "ui-corner-right"), "last visible button should have class 'ui-corner-right'" );
-       });
-
-
-       test( "controlgroups will create when inside a container that receives a 'create' event", function(){
-               ok( !$("#enhancetest").appendTo(".ui-page-active").find(".ui-controlgroup").length, "did not have enhancements applied" );
-               ok( $("#enhancetest").trigger("create").find(".ui-controlgroup").length, "enhancements applied" );
-       });
-
-       test( "controlgroups in ignored containers aren't enhanced", function() {
-               var $unenhancedFieldSet = $( "#unenhanced-fieldset" ),
-                       $enhancedFieldSet = $( "#enhanced-fieldset" );
-
-               $.mobile.ignoreContentEnabled = true;
-
-               // attempt to enhance the controlgroup
-               $unenhancedFieldSet.parent().trigger("create");
-
-               same( $unenhancedFieldSet.length, 1, "the fieldset test fixtures exist" );
-               ok( !$unenhancedFieldSet.is(".ui-controlgroup"), "there is no control group" );
-
-               // attempt to enhance the controlgroup
-               $enhancedFieldSet.parent().trigger("create");
-
-               same( $enhancedFieldSet.length, 1, "the fieldset test fixtures exist" );
-               ok( $enhancedFieldSet.is(".ui-controlgroup"), "there is a control group" );
-
-               $.mobile.ignoreContentEnabled = false;
-       });
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/controlgroup/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/controlgroup/index.html
deleted file mode 100644 (file)
index add115e..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-<!DOCTYPE html>
-
-<html lang="en">
-<head>
-       <meta charset="UTF-8" />
-       <title>jQuery Mobile Controlgroup Test Suite</title>
-
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../../tests/jquery.testHelper.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [
-                               "jquery.mobile.forms.checkboxradio",
-                               "jquery.mobile.controlGroup"
-                       ],
-                       [ "jquery.mobile.init" ],
-                       [
-                               "controlgroup_core.js"
-                       ]
-               ]);
-       </script>
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Controlgroup Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div data-nstest-role="page">
-       <div data-nstest-role="content">
-
-               <div data-nstest-role="fieldcontain" id="radio-active-btn-test">
-                       <fieldset data-nstest-role="controlgroup" id="vertical-controlgroup">
-                         <legend>Choose a pet:</legend>
-                         <input type="radio" name="radio-pet-active-btn" id="radio-pet-1" value="choice-1" checked="checked"  />
-                         <label for="radio-pet-1">Cat</label>
-
-                         <input type="radio" name="radio-pet-active-btn" id="radio-pet-2" value="choice-2"  />
-                         <label for="radio-pet-2">Dog</label>
-
-                         <input type="radio" name="radio-pet-active-btn" id="radio-pet-3" value="choice-3"  />
-                         <label for="radio-pet-3">Hamster</label>
-
-                         <input type="radio" name="radio-pet-active-btn" id="radio-pet-4" value="choice-4"  />
-                         <label for="radio-pet-4">Lizard</label>
-                       </fieldset>
-               </div>
-
-               <div data-nstest-role="fieldcontain">
-                       <fieldset data-nstest-role="controlgroup" data-nstest-type="horizontal" id="horizontal-controlgroup">
-                               <legend>Font styling:</legend>
-                               <input type="checkbox" name="checkbox-6" id="checkbox-6" class="custom" />
-                               <label for="checkbox-6">b</label>
-
-                               <input type="checkbox" name="checkbox-7" id="checkbox-7" class="custom" />
-                               <label for="checkbox-7"><em>i</em></label>
-
-                               <input type="checkbox" name="checkbox-8" id="checkbox-8" class="custom" />
-                               <label for="checkbox-8"><em>s</em></label>
-
-                               <input type="checkbox" name="checkbox-9" id="checkbox-9" class="custom" />
-                               <label for="checkbox-9">u</label>
-                       </fieldset>
-               </div>
-
-       </div>
-</div>
-
-<div data-nstest-enhance="false" data-nstest-role="fieldcontain" id="unenhanced-fieldcontain">
-       <fieldset data-nstest-type="horizontal" id="unenhanced-fieldset" data-nstest-role="controlgroup">
-               <input type="checkbox" name="checkbox-10" id="checkbox-10" class="custom" />
-               <label for="checkbox-10">b</label>
-
-               <input type="checkbox" name="checkbox-11" id="checkbox-11" class="custom" />
-               <label for="checkbox-11"><em>i</em></label>
-       </fieldset>
-</div>
-
-<div data-nstest-role="fieldcontain" id="enhanced-fieldcontain">
-       <fieldset data-nstest-type="horizontal" id="enhanced-fieldset" data-nstest-role="controlgroup">
-               <input type="checkbox" name="checkbox-12" id="checkbox-12" class="custom" />
-               <label for="checkbox-12">b</label>
-
-               <input type="checkbox" name="checkbox-13" id="checkbox-13" class="custom" />
-               <label for="checkbox-13"><em>i</em></label>
-       </fieldset>
-</div>
-
-<div data-nstest-role="fieldcontain" id="enhancetest">
-       <fieldset data-nstest-role="controlgroup">
-       </fieldset>
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/core/core.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/core/core.js
deleted file mode 100644 (file)
index 1b60562..0000000
+++ /dev/null
@@ -1,190 +0,0 @@
-/*
- * mobile core unit tests
- */
-
-(function($){
-       var libName = "jquery.mobile.core",
-                       setGradeA = function(value, version) {
-                               $.support.mediaquery = value;
-                               $.mobile.browser.ie = version;
-                       },
-                       extendFn = $.extend;
-
-       module(libName, {
-               setup: function(){
-                       // NOTE reset for gradeA tests
-                       $('html').removeClass('ui-mobile');
-
-                       // NOTE reset for pageLoading tests
-                       $('.ui-loader').remove();
-               },
-               teardown: function(){
-                       $.extend = extendFn;
-               }
-       });
-
-       $.testHelper.excludeFileProtocol(function(){
-               asyncTest( "grade A browser either supports media queries or is IE 7+", function(){
-                       setGradeA(false, 6);
-                       $.testHelper.deferredSequence([
-                               function() {
-                                       return $.testHelper.reloadModule(libName);
-                               },
-
-                               function() {
-                                       ok(!$.mobile.gradeA());
-                               },
-
-                               function() {
-                                       setGradeA(true, 8);
-                                       return $.testHelper.reloadModule(libName);
-                               },
-
-                               function() {
-                                       ok($.mobile.gradeA());
-                                       start();
-                               }
-                       ]);
-               });
-       });
-
-       function clearNSNormalizeDictionary()
-       {
-               var dict = $.mobile.nsNormalizeDict;
-               for ( var prop in dict ) {
-                       delete dict[ prop ];
-               }
-       }
-
-       test( "$.mobile.nsNormalize works properly with namespace defined (test default)", function(){
-               // Start with a fresh namespace property cache, just in case
-               // the previous test mucked with namespaces.
-               clearNSNormalizeDictionary();
-
-               equal($.mobile.nsNormalize("foo"), "nstestFoo", "appends ns and initcaps");
-               equal($.mobile.nsNormalize("fooBar"), "nstestFooBar", "leaves capped strings intact");
-               equal($.mobile.nsNormalize("foo-bar"), "nstestFooBar", "changes dashed strings");
-               equal($.mobile.nsNormalize("foo-bar-bak"), "nstestFooBarBak", "changes multiple dashed strings");
-
-               // Reset the namespace property cache for the next test.
-               clearNSNormalizeDictionary();
-       });
-
-       test( "$.mobile.nsNormalize works properly with an empty namespace", function(){
-               var realNs = $.mobile.ns;
-
-               $.mobile.ns = "";
-
-               // Start with a fresh namespace property cache, just in case
-               // the previous test mucked with namespaces.
-               clearNSNormalizeDictionary();
-
-               equal($.mobile.nsNormalize("foo"), "foo", "leaves uncapped and undashed");
-               equal($.mobile.nsNormalize("fooBar"), "fooBar", "leaves capped strings intact");
-               equal($.mobile.nsNormalize("foo-bar"), "fooBar", "changes dashed strings");
-               equal($.mobile.nsNormalize("foo-bar-bak"), "fooBarBak", "changes multiple dashed strings");
-
-               $.mobile.ns = realNs;
-
-               // Reset the namespace property cache for the next test.
-               clearNSNormalizeDictionary();
-       });
-
-       //data tests
-       test( "$.fn.jqmData and $.fn.jqmRemoveData methods are working properly", function(){
-               var data;
-
-               same( $("body").jqmData("foo", true), $("body"), "setting data returns the element" );
-
-               same( $("body").jqmData("foo"), true, "getting data returns the right value" );
-
-               same( $("body").data($.mobile.nsNormalize("foo")), true, "data was set using namespace" );
-
-               same( $("body").jqmData("foo", undefined), true, "getting data still returns the value if there's an undefined second arg" );
-
-               data = $.extend( {}, $("body").data() );
-               delete data[ $.expando ]; //discard the expando for that test
-               same( data , { "nstestFoo": true }, "passing .data() no arguments returns a hash with all set properties" );
-
-               same( $("body").jqmData(), undefined, "passing no arguments returns undefined" );
-
-               same( $("body").jqmData(undefined), undefined, "passing a single undefined argument returns undefined" );
-
-               same( $("body").jqmData(undefined, undefined), undefined, "passing 2 undefined arguments returns undefined" );
-
-               same( $("body").jqmRemoveData("foo"), $("body"), "jqmRemoveData returns the element" );
-
-               same( $("body").jqmData("foo"), undefined, "jqmRemoveData properly removes namespaced data" );
-
-       });
-
-
-       test( "$.jqmData and $.jqmRemoveData methods are working properly", function(){
-               same( $.jqmData(document.body, "foo", true), true, "setting data returns the value" );
-
-               same( $.jqmData(document.body, "foo"), true, "getting data returns the right value" );
-
-               same( $.data(document.body, $.mobile.nsNormalize("foo")), true, "data was set using namespace" );
-
-               same( $.jqmData(document.body, "foo", undefined), true, "getting data still returns the value if there's an undefined second arg" );
-
-               same( $.jqmData(document.body), undefined, "passing no arguments returns undefined" );
-
-               same( $.jqmData(document.body, undefined), undefined, "passing a single undefined argument returns undefined" );
-
-               same( $.jqmData(document.body, undefined, undefined), undefined, "passing 2 undefined arguments returns undefined" );
-
-               same( $.jqmRemoveData(document.body, "foo"), undefined, "jqmRemoveData returns the undefined value" );
-
-               same( $("body").jqmData("foo"), undefined, "jqmRemoveData properly removes namespaced data" );
-
-       });
-
-       test( "addDependents works properly", function() {
-               same( $("#parent").jqmData('dependents'), undefined );
-               $( "#parent" ).addDependents( $("#dependent") );
-               same( $("#parent").jqmData('dependents').length, 1 );
-       });
-
-       test( "removeWithDependents removes the parent element and ", function(){
-               $( "#parent" ).addDependents( $("#dependent") );
-               same($( "#parent, #dependent" ).length, 2);
-               $( "#parent" ).removeWithDependents();
-               same($( "#parent, #dependent" ).length, 0);
-       });
-
-       test( "$.fn.getEncodedText should return the encoded value where $.fn.text doesn't", function() {
-               same( $("#encoded").text(), "foo>");
-               same( $("#encoded").getEncodedText(), "foo&gt;");
-               same( $("#unencoded").getEncodedText(), "var foo;");
-       });
-
-       test( "closestPageData returns the parent's page data", function() {
-               var pageChild = $( "#page-child" );
-
-               $( "#parent-page" ).data( "page", { foo: "bar" } );
-               same( $.mobile.closestPageData( pageChild ).foo, "bar" );
-       });
-
-       test( "closestPageData returns the parent dialog's page data", function() {
-               var dialogChild = $( "#dialog-child" );
-
-               $( "#parent-dialog" ).data( "page", { foo: "bar" } );
-               same( $.mobile.closestPageData(dialogChild).foo, "bar" );
-       });
-
-       test( "test that $.fn.jqmHijackable works", function() {
-               $.mobile.ignoreContentEnabled = true;
-
-               same( $( "#hijacked-link" ).jqmHijackable().length, 1,
-                                       "a link without any association to data-ajax=false should be included");
-
-               same( $( "#unhijacked-link-by-parent" ).jqmHijackable().length, 0,
-                                       "a link with a data-ajax=false parent should be excluded");
-
-               same( $( "#unhijacked-link-by-attr" ).jqmHijackable().length, 0,
-                                       "a link with data-ajax=false should be excluded");
-
-               $.mobile.ignoreContentEnabled = false;
-       });
-})(jQuery);
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/core/core_scroll.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/core/core_scroll.js
deleted file mode 100644 (file)
index d1b8ef0..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * mobile core unit tests
- */
-
-(function($){
-       var libName = "jquery.mobile.core",
-                       scrollTimeout = 20, // TODO expose timing as an attribute
-                       scrollStartEnabledTimeout = 150;
-
-       module(libName, {
-               setup: function(){
-                       $("<div id='scroll-testing' style='height: 1000px'></div>").appendTo("body");
-               },
-
-               teardown: function(){
-                       $("#scroll-testing").remove();
-               }
-       });
-
-       var scrollUp = function( pos ){
-               $(window).scrollTop(1000);
-               ok($(window).scrollTop() > 0, $(window).scrollTop());
-               $.mobile.silentScroll(pos);
-       };
-
-       asyncTest( "silent scroll scrolls the page to the top by default", function(){
-               scrollUp();
-
-               setTimeout(function(){
-                       same($(window).scrollTop(), 0);
-                       start();
-               }, scrollTimeout);
-       });
-
-       asyncTest( "silent scroll scrolls the page to the passed y position", function(){
-               var pos = 10;
-               scrollUp(pos);
-
-               setTimeout(function(){
-                       same($(window).scrollTop(), pos);
-                       start();
-               }, scrollTimeout);
-       });
-
-       test( "silent scroll is async", function(){
-               scrollUp();
-               ok($(window).scrollTop() != 0, "scrolltop position should not be zero");
-               start();
-       });
-
-       asyncTest( "scrolling marks scrollstart as disabled for 150 ms", function(){
-               $.event.special.scrollstart.enabled = true;
-               scrollUp();
-               ok(!$.event.special.scrollstart.enabled);
-
-               setTimeout(function(){
-                       ok($.event.special.scrollstart.enabled);
-                       start();
-               }, scrollStartEnabledTimeout);
-       });
-
-       //TODO test that silentScroll is called on window load
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/core/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/core/index.html
deleted file mode 100644 (file)
index 4cad369..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile Core Test Suite</title>
-
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../jquery.testHelper.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [
-                               "jquery.mobile.core"
-                       ],
-                       [ "jquery.mobile.init" ],
-                       [
-                               "core.js",
-                               "core_scroll.js"
-                       ]
-               ]);
-       </script>
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css" />
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Core Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div  data-nstest-role="page">
-</div>
-
-<div id="qunit-fixtures">
-  <div id="parent"></div>
-  <div id="dependent"></div>
-  <div id="encoded">foo&gt;</div>
-  <div id="unencoded"><script>var foo;</script></div>
-
-  <div id="parent-page" data-nstest-role="page">
-    <div id="page-child"></div>
-  </div>
-
-  <div id="parent-dialog" data-nstest-role="dialog">
-    <div id="dialog-child"></div>
-  </div>
-</div>
-
-<div id="hijackable">
-       <a href="#" id="hijacked-link"></a>
-       <a href="#" id="unhijacked-link-by-attr" data-nstest-ajax="false"></a>
-</div>
-
-<div id="not-hijackable" data-nstest-ajax="false">
-       <a href="#" id="unhijacked-link-by-parent"></a>
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/degradeInputs/degradeInputs.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/degradeInputs/degradeInputs.js
deleted file mode 100644 (file)
index 98659a9..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * degradeInputs unit tests
- */
-
-(function($){
-       module('jquery.mobile.degradeInputs.js');
-
-       test('keepNative elements should not be degraded', function() {
-               same($('input#not-to-be-degraded').attr("type"), "range");
-       });
-
-       asyncTest('should degrade input type to a different type, as specified in page options', function(){
-               var degradeInputs = $.mobile.page.prototype.options.degradeInputs;
-
-               expect( degradeInputs.length );
-
-               // NOTE the initial page is already enhanced (or expected to be) so we load the dialog to enhance it
-               // and _expect_ that the default page will remain "unreaped". This will break if that assumption changes
-               $.testHelper.pageSequence([
-                       function() {
-                               $.mobile.changePage( "#dialog" );
-                       },
-
-                       function() {
-                               $.each(degradeInputs, function( oldType, newType ) {
-                                       if (newType === false) {
-                                               newType = oldType;
-                                       }
-
-                                       $('#page-test-container').html('<input type="' + oldType + '" />').trigger("create");
-
-                                       same($('#page-test-container input').attr("type"), newType, "type attr on page is: " + newType);
-
-                                       $('#dialog-test-container').html('<input type="' + oldType + '" />').trigger("create");
-
-                                       same($('#dialog-test-container input').attr("type"), newType, "type attr on dialog is: " + newType);
-                               });
-
-                               start();
-                       }
-               ]);
-       });
-})(jQuery);
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/degradeInputs/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/degradeInputs/index.html
deleted file mode 100644 (file)
index 45a2fb4..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
- <!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile Degrade Inputs Test Suite</title>
-
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../jquery.testHelper.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [ "jquery.mobile.degradeInputs" ],
-                       [ "jquery.mobile.init" ],
-                       [ "degradeInputs.js" ]
-               ]);
-       </script>
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Degrade Inputs Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div id="page" data-nstest-role="page">
-
-       <input id="not-to-be-degraded" type="range" data-nstest-role="nojs" />
-
-       <div id="page-test-container">
-       </div>
-
-</div>
-
-<div id="dialog" data-nstest-role="dialog">
-
-       <div id="dialog-test-container">
-       </div>
-
-</div>
-
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/dialog/dialog_count.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/dialog/dialog_count.js
deleted file mode 100644 (file)
index 53a9316..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-/*
- * mobile dialog unit tests
- */
-(function($) {
-
-       test( "When the page loads, any dialogs in the page should be initialized", function() {
-               expect( 1 );
-
-               ok( $( "#foo-dialog" ).is( ".ui-dialog" ), "When a dialog is the first element in a page, it is created as a dialog widget." );
-       });
-
-       
-})( jQuery );
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/dialog/dialog_events.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/dialog/dialog_events.js
deleted file mode 100644 (file)
index 15628ba..0000000
+++ /dev/null
@@ -1,146 +0,0 @@
-/*
- * mobile dialog unit tests
- */
-(function($) {
-       module( "jquery.mobile.dialog.js", {
-               setup: function() {
-                       $.mobile.page.prototype.options.contentTheme = "d";
-               }
-       });
-
-       asyncTest( "dialog hash is added when the dialog is opened and removed when closed", function() {
-               expect( 2 );
-
-               $.testHelper.pageSequence([
-                       function() {
-                               $.mobile.changePage( $( "#mypage" ) );
-                       },
-
-                       function() {
-                               //bring up the dialog
-                               $( "#foo-dialog-link" ).click();
-                       },
-
-                       function() {
-                               var fooDialog = $( "#foo-dialog" );
-
-                               // make sure the dialog came up
-                               ok( /&ui-state=dialog/.test(location.hash), "ui-state=dialog =~ location.hash", "dialog open" );
-
-                               // close the dialog
-                               $( ".ui-dialog" ).dialog( "close" );
-                       },
-
-                       function() {
-                               ok( !/&ui-state=dialog/.test(location.hash), "ui-state=dialog !~ location.hash" );
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "dialog element with no theming", function() {
-               expect(4);
-               
-               $.testHelper.pageSequence([
-                       function() {
-                               $.mobile.changePage( $( "#mypage" ) );
-                       },
-
-                       function() {
-                               //bring up the dialog
-                               $( "#link-a" ).click();
-                       },
-
-                       function() {
-                               var dialog = $( "#dialog-a" );
-
-                               // Assert dialog theme inheritance (issue 1375):
-                               ok( dialog.hasClass( "ui-body-c" ), "Expected explicit theme ui-body-c" );
-                               ok( dialog.find( ":jqmData(role=header)" ).hasClass( "ui-bar-" + $.mobile.page.prototype.options.footerTheme ), "Expected header to inherit from $.mobile.page.prototype.options.headerTheme" );
-                               ok( dialog.find( ":jqmData(role=content)" ).hasClass( "ui-body-" + $.mobile.page.prototype.options.contentTheme ), "Expect content to inherit from $.mobile.page.prototype.options.contentTheme" );
-                               ok( dialog.find( ":jqmData(role=footer)" ).hasClass( "ui-bar-" + $.mobile.page.prototype.options.footerTheme ), "Expected footer to inherit from $.mobile.page.prototype.options.footerTheme" );
-
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "dialog element with data-theme", function() {
-               // Reset fallback theme for content
-               $.mobile.page.prototype.options.contentTheme = null;
-
-               expect(5);
-
-               $.testHelper.pageSequence([
-                       function() {
-                               $.mobile.changePage( $( "#mypage" ) );
-                       },
-
-                       function() {
-                               //bring up the dialog
-                               $( "#link-b" ).click();
-                       },
-
-                       function() {
-                               var dialog = $( "#dialog-b" );
-
-                               // Assert dialog theme inheritance (issue 1375):
-                               ok( dialog.hasClass( "ui-body-e" ), "Expected explicit theme ui-body-e" );
-                               ok( !dialog.hasClass( "ui-overlay-b" ), "Expected no theme ui-overlay-b" );
-                               ok( dialog.find( ":jqmData(role=header)" ).hasClass( "ui-bar-" + $.mobile.page.prototype.options.footerTheme ), "Expected header to inherit from $.mobile.page.prototype.options.headerTheme" );
-                               ok( dialog.find( ":jqmData(role=content)" ).hasClass( "ui-body-e" ), "Expect content to inherit from data-theme" );
-                               ok( dialog.find( ":jqmData(role=footer)" ).hasClass( "ui-bar-" + $.mobile.page.prototype.options.footerTheme ), "Expected footer to inherit from $.mobile.page.prototype.options.footerTheme" );
-
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "dialog element with data-theme & data-overlay-theme", function() {
-               expect(5);
-
-               $.testHelper.pageSequence([
-                       function() {
-                               $.mobile.changePage( $( "#mypage" ) );
-                       },
-
-                       function() {
-                               //bring up the dialog
-                               $( "#link-c" ).click();
-                       },
-
-                       function() {
-                               var dialog = $( "#dialog-c" );
-
-                               // Assert dialog theme inheritance (issue 1375):
-                               ok( dialog.hasClass( "ui-body-e" ), "Expected explicit theme ui-body-e" );
-                               ok( dialog.hasClass( "ui-overlay-b" ), "Expected explicit theme ui-overlay-b" );
-                               ok( dialog.find( ":jqmData(role=header)" ).hasClass( "ui-bar-" + $.mobile.page.prototype.options.footerTheme ), "Expected header to inherit from $.mobile.page.prototype.options.headerTheme" );
-                               ok( dialog.find( ":jqmData(role=content)" ).hasClass( "ui-body-" + $.mobile.page.prototype.options.contentTheme ), "Expect content to inherit from $.mobile.page.prototype.options.contentTheme" );
-                               ok( dialog.find( ":jqmData(role=footer)" ).hasClass( "ui-bar-" + $.mobile.page.prototype.options.footerTheme ), "Expected footer to inherit from $.mobile.page.prototype.options.footerTheme" );
-
-                               start();
-                       }
-               ]);
-       });
-       
-       
-       asyncTest( "page container is updated to dialog overlayTheme at pagebeforeshow", function(){
-               
-               expect( 1 );
-               
-               var pageTheme = "ui-overlay-" + $.mobile.activePage.dialog( "option", "overlayTheme" );
-
-               $.mobile.pageContainer.removeClass( pageTheme );
-               
-               $.mobile.activePage
-                       .bind( "pagebeforeshow", function(){
-                               ok( $.mobile.pageContainer.hasClass( pageTheme ), "Page container has the same theme as the dialog overlayTheme on pagebeforeshow" );
-                               start();
-                       })
-                       .trigger( "pagebeforeshow" );
-
-       } );
-       
-       
-})( jQuery );
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/dialog/index-count.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/dialog/index-count.html
deleted file mode 100644 (file)
index 88d7e01..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile Dialog Test Suite</title>
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script>
-               $(document).bind('mobileinit',function(){
-                       // Expect content to inherit this theme when not explicitly set
-                       $.mobile.page.prototype.options.contentTheme = "d";
-               });
-       </script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../jquery.testHelper.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [
-                               "jquery.mobile.dialog",
-                               "jquery.mobile.page",
-                               "jquery.mobile.page.sections"
-                       ],
-                       [ "jquery.mobile.init" ],
-                       [
-                               "dialog_count.js"
-                       ]
-               ]);
-       </script>
-
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Dialog Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div id="qunit-fixture">
-
-<div id="foo-dialog" data-nstest-role="dialog" data-nstest-theme="b">
-       <div  data-nstest-role="header">
-               <h1>Dialog</h1>
-       </div>
-       <div data-nstest-role="content" >
-       
-       </div>
-       <div data-nstest-role="footer">
-               footer
-       </div>
-</div>
-
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/dialog/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/dialog/index.html
deleted file mode 100644 (file)
index 50c8f68..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile Dialog Test Suite</title>
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script>
-               $(document).bind('mobileinit',function(){
-                       // Expect content to inherit this theme when not explicitly set
-                       $.mobile.page.prototype.options.contentTheme = "d";
-               });
-       </script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../jquery.testHelper.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [
-                               "jquery.mobile.dialog",
-                               "jquery.mobile.page",
-                               "jquery.mobile.page.sections"
-                       ],
-                       [ "jquery.mobile.init" ],
-                       [
-                               "dialog_events.js"
-                       ]
-               ]);
-       </script>
-
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Dialog Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div id="mypage" data-nstest-role="page" data-nstest-theme="a">
-       <a href="#foo-dialog" id="foo-dialog-link" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog"></a>
-       <a href="#dialog-a" id="link-a" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog">no theme set</a>
-       <a href="#dialog-b" id="link-b" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog">data-theme set</a>
-       <a href="#dialog-c" id="link-c" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog">data-theme & data-nstest-overlay-theme set</a>
-</div>
-
-<div id="foo-dialog" data-nstest-role="dialog" data-nstest-theme="b">
-       <div  data-nstest-role="header" data-nstest-position="inline">
-               <h1>Dialog</h1>
-       </div>
-       <div data-nstest-role="content" >
-               <a href="#" id="internal-link">foo</a>
-       </div>
-       <div data-nstest-role="footer">
-               footer
-       </div>
-</div>
-
-<div data-nstest-role="page" id="dialog-a">
-       <div data-nstest-role="header" data-nstest-position="inline">
-               <h1> No theme set </h1>
-       </div>
-       <div data-nstest-role="content">
-                Some text here....
-       </div>
-       <div data-nstest-role="footer">
-               footer
-       </div>
-</div>
-
-<div data-nstest-role="page" data-nstest-theme="e" id="dialog-b">
-       <div data-nstest-role="header">
-               <h1> data-nstest-theme set </h1>
-       </div>
-       <div data-nstest-role="content">
-                Some text here....
-       </div>
-       <div data-nstest-role="footer">
-               footer
-       </div>
-</div>
-
-<div data-nstest-role="page" id="dialog-c" data-nstest-overlay-theme="b" data-nstest-theme="e">
-       <div data-nstest-role="header">
-               <h1> data-nstest-theme & data-nstest-overlay-theme set </h1>
-       </div>
-       <div data-nstest-role="content">
-                Some text here....
-       </div>
-       <div data-nstest-role="footer">
-               footer
-       </div>
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/event/event_core.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/event/event_core.js
deleted file mode 100644 (file)
index 23e6f59..0000000
+++ /dev/null
@@ -1,551 +0,0 @@
-/*
- * mobile event unit tests
- */
-
-(function($){
-       var libName = "jquery.mobile.event.js",
-                       absFn = Math.abs,
-                       originalEventFn = $.Event.prototype.originalEvent,
-                       preventDefaultFn = $.Event.prototype.preventDefault,
-                       events = ("touchstart touchmove touchend orientationchange tap taphold " +
-                                                               "swipe swipeleft swiperight scrollstart scrollstop").split( " " );
-
-       module(libName, {
-               setup: function(){
-
-                       // ensure bindings are removed
-                       $.each(events + "vmouseup vmousedown".split(" "), function(i, name){
-                               $("#qunit-fixture").unbind();
-                       });
-
-                       //NOTE unmock
-                       Math.abs = absFn;
-                       $.Event.prototype.originalEvent = originalEventFn;
-                       $.Event.prototype.preventDefault = preventDefaultFn;
-
-                       // make sure the event objects respond to touches to simulate
-                       // the collections existence in non touch enabled test browsers
-                       $.Event.prototype.touches = [{pageX: 1, pageY: 1 }];
-
-                       $($.mobile.pageContainer).unbind( "throttledresize" );
-               }
-       });
-
-       $.testHelper.excludeFileProtocol(function(){
-               test( "new events defined on the jquery object", function(){
-                       $.each(events, function( i, name ) {
-                               delete $.fn[name];
-                               same($.fn[name], undefined);
-                       });
-
-                       $.testHelper.reloadLib(libName);
-
-                       $.each(events, function( i, name ) {
-                               ok($.fn[name] !== undefined, name + " is not undefined");
-                       });
-               });
-       });
-
-       asyncTest( "defined event functions bind a closure when passed", function(){
-               expect( 1 );
-
-               $('#qunit-fixture').bind(events[0], function(){
-                       ok(true, "event fired");
-                       start();
-               });
-
-               $('#qunit-fixture').trigger(events[0]);
-       });
-
-       asyncTest( "defined event functions trigger the event with no arguments", function(){
-               expect( 1 );
-
-               $('#qunit-fixture').bind('touchstart', function(){
-                       ok(true, "event fired");
-                       start();
-               });
-
-               $('#qunit-fixture').touchstart();
-       });
-
-       test( "defining event functions sets the attrFn to true", function(){
-               $.each(events, function(i, name){
-                       ok($.attrFn[name], "attribute function is true");
-               });
-       });
-
-       test( "scrollstart enabled defaults to true", function(){
-               $.event.special.scrollstart.enabled = false;
-               $.testHelper.reloadLib(libName);
-               ok($.event.special.scrollstart.enabled, "scrollstart enabled");
-       });
-
-       asyncTest( "scrollstart setup binds a function that returns when its disabled", function(){
-               expect( 1 );
-               $.event.special.scrollstart.enabled = false;
-
-               $( "#qunit-fixture" ).bind("scrollstart", function(){
-                       ok(false, "scrollstart fired");
-               });
-
-               $( "#qunit-fixture" ).bind("touchmove", function(){
-                       ok(true, "touchmove fired");
-                       start();
-               });
-
-               $( "#qunit-fixture" ).trigger("touchmove");
-       });
-
-       asyncTest( "scrollstart setup binds a function that triggers scroll start when enabled", function(){
-               $.event.special.scrollstart.enabled = true;
-
-               $( "#qunit-fixture" ).bind("scrollstart", function(){
-                       ok(true, "scrollstart fired");
-                       start();
-               });
-
-               $( "#qunit-fixture" ).trigger("touchmove");
-       });
-
-       asyncTest( "scrollstart setup binds a function that triggers scroll stop after 50 ms", function(){
-               var triggered = false;
-               $.event.special.scrollstart.enabled = true;
-
-               $( "#qunit-fixture" ).bind("scrollstop", function(){
-                       triggered = true;
-               });
-
-               ok(!triggered, "not triggered");
-
-               $( "#qunit-fixture" ).trigger("touchmove");
-
-               setTimeout(function(){
-                       ok(triggered, "triggered");
-                       start();
-               }, 50);
-       });
-
-       var forceTouchSupport = function(){
-               $.support.touch = true;
-               $.testHelper.reloadLib(libName);
-
-               //mock originalEvent information
-               $.Event.prototype.originalEvent = {
-                       touches: [{ 'pageX' : 0 }, { 'pageY' : 0 }]
-               };
-       };
-
-       asyncTest( "long press fires tap hold after 750 ms", function(){
-               var taphold = false,
-                       target;
-
-               forceTouchSupport();
-
-               $( "#qunit-fixture" ).bind("taphold", function( e ){
-                       taphold = true;
-                       target = e.target;
-               });
-
-               $( "#qunit-fixture" ).trigger("vmousedown");
-
-               setTimeout(function(){
-                       ok( taphold );
-                       equal( target, $( "#qunit-fixture" ).get( 0 ), "taphold target should be #qunit-fixture" );
-                       start();
-               }, 751);
-       });
-
-       //NOTE used to simulate movement when checked
-       //TODO find a better way ...
-       var mockAbs = function(value){
-               Math.abs = function(){
-                       return value;
-               };
-       };
-
-       asyncTest( "move prevents taphold", function(){
-               expect( 1 );
-               var taphold = false;
-
-               forceTouchSupport();
-               mockAbs(100);
-
-               //NOTE record taphold event
-               $( "#qunit-fixture" ).bind("taphold", function(){
-                       ok(false, "taphold fired");
-                       taphold = true;
-               });
-
-               //NOTE start the touch events
-               $( "#qunit-fixture" ).trigger("vmousedown");
-
-               //NOTE fire touchmove to push back taphold
-               setTimeout(function(){
-                       $( "#qunit-fixture" ).trigger("vmousecancel");
-               }, 100);
-
-               //NOTE verify that the taphold hasn't been fired
-               //               with the normal timing
-               setTimeout(function(){
-                       ok(!taphold, "taphold not fired");
-                       start();
-               }, 751);
-       });
-
-       asyncTest( "tap event fired without movement", function(){
-               expect( 1 );
-               var tap = false,
-                               checkTap = function(){
-                                       ok(true, "tap fired");
-                               };
-
-               forceTouchSupport();
-
-               //NOTE record the tap event
-               $( "#qunit-fixture" ).bind("tap", checkTap);
-
-               $( "#qunit-fixture" ).trigger("vmousedown");
-               $( "#qunit-fixture" ).trigger("vmouseup");
-               $( "#qunit-fixture" ).trigger("vclick");
-
-               setTimeout(function(){
-                       start();
-               }, 400);
-       });
-
-       asyncTest( "tap event not fired when there is movement", function(){
-               expect( 1 );
-               var tap = false;
-               forceTouchSupport();
-
-               //NOTE record tap event
-               $( "#qunit-fixture" ).bind("tap", function(){
-                       ok(false, "tap fired");
-                       tap = true;
-               });
-
-               //NOTE make sure movement is recorded
-               mockAbs(100);
-
-               //NOTE start and move right away
-               $( "#qunit-fixture" ).trigger("touchstart");
-               $( "#qunit-fixture" ).trigger("touchmove");
-
-               //NOTE end touch sequence after 20 ms
-               setTimeout(function(){
-                       $( "#qunit-fixture" ).trigger("touchend");
-               }, 20);
-
-               setTimeout(function(){
-                       ok(!tap, "not tapped");
-                       start();
-               }, 40);
-       });
-
-       asyncTest( "tap event propagates up DOM tree", function(){
-               var tap = 0,
-                       $qf = $( "#qunit-fixture" ),
-                       $doc = $( document ),
-                       docTapCB = function(){
-                               same(++tap, 2, "document tap callback called once after #qunit-fixture callback");
-                       };
-
-               $qf.bind( "tap", function() {
-                       same(++tap, 1, "#qunit-fixture tap callback called once");
-               });
-
-               $doc.bind( "tap", docTapCB );
-
-               $qf.trigger( "vmousedown" )
-                       .trigger( "vmouseup" )
-                       .trigger( "vclick" );
-
-               // tap binding should be triggered twice, once for
-               // #qunit-fixture, and a second time for document.
-               same( tap, 2, "final tap callback count is 2" );
-
-               $doc.unbind( "tap", docTapCB );
-
-               start();
-       });
-
-       asyncTest( "stopPropagation() prevents tap from propagating up DOM tree", function(){
-               var tap = 0,
-                       $qf = $( "#qunit-fixture" ),
-                       $doc = $( document ),
-                       docTapCB = function(){
-                               ok(false, "tap should NOT be triggered on document");
-                       };
-
-               $qf.bind( "tap", function(e) {
-                       same(++tap, 1, "tap callback 1 triggered once on #qunit-fixture");
-                       e.stopPropagation();
-               })
-               .bind( "tap", function(e) {
-                       same(++tap, 2, "tap callback 2 triggered once on #qunit-fixture");
-               });
-
-               $doc.bind( "tap", docTapCB);
-
-               $qf.trigger( "vmousedown" )
-                       .trigger( "vmouseup" )
-                       .trigger( "vclick" );
-
-               // tap binding should be triggered twice.
-               same( tap, 2, "final tap count is 2" );
-
-               $doc.unbind( "tap", docTapCB );
-
-               start();
-       });
-
-       asyncTest( "stopImmediatePropagation() prevents tap propagation and execution of 2nd handler", function(){
-               var tap = 0,
-                       $cf = $( "#qunit-fixture" );
-                       $doc = $( document ),
-                       docTapCB = function(){
-                               ok(false, "tap should NOT be triggered on document");
-                       };
-
-               // Bind 2 tap callbacks on qunit-fixture. Only the first
-               // one should ever be called.
-               $cf.bind( "tap", function(e) {
-                       same(++tap, 1, "tap callback 1 triggered once on #qunit-fixture");
-                       e.stopImmediatePropagation();
-               })
-               .bind( "tap", function(e) {
-                       ok(false, "tap callback 2 should NOT be triggered on #qunit-fixture");
-               });
-
-               $doc.bind( "tap", docTapCB);
-
-               $cf.trigger( "vmousedown" )
-                       .trigger( "vmouseup" )
-                       .trigger( "vclick" );
-
-               // tap binding should be triggered once.
-               same( tap, 1, "final tap count is 1" );
-
-               $doc.unbind( "tap", docTapCB );
-
-               start();
-       });
-
-       var swipeTimedTest = function(opts){
-               var swipe = false;
-
-               forceTouchSupport();
-
-               $( "#qunit-fixture" ).bind('swipe', function(){
-                       swipe = true;
-               });
-
-               //NOTE bypass the trigger source check
-               $.Event.prototype.originalEvent = {
-                       touches: false
-               };
-
-               $( "#qunit-fixture" ).trigger("touchstart");
-
-               //NOTE make sure the coordinates are calculated within range
-               //               to be registered as a swipe
-               mockAbs(opts.coordChange);
-
-               setTimeout(function(){
-                       $( "#qunit-fixture" ).trigger("touchmove");
-                       $( "#qunit-fixture" ).trigger("touchend");
-               }, opts.timeout + 100);
-
-               setTimeout(function(){
-                       same(swipe, opts.expected, "swipe expected");
-                       start();
-               }, opts.timeout + 200);
-
-               stop();
-       };
-
-       test( "swipe fired when coordinate change in less than a second", function(){
-               swipeTimedTest({ timeout: 10, coordChange: 35, expected: true });
-       });
-
-       test( "swipe not fired when coordinate change takes more than a second", function(){
-               swipeTimedTest({ timeout: 1000, coordChange: 35, expected: false });
-       });
-
-       test( "swipe not fired when coordinate change <= 30", function(){
-               swipeTimedTest({ timeout: 1000, coordChange: 30, expected: false });
-       });
-
-       test( "swipe not fired when coordinate change >= 75", function(){
-               swipeTimedTest({ timeout: 1000, coordChange: 75, expected: false });
-       });
-
-       asyncTest( "scrolling prevented when coordinate change > 10", function(){
-               expect( 1 );
-
-               forceTouchSupport();
-
-               // ensure the swipe custome event is setup
-               $( "#qunit-fixture" ).bind('swipe', function(){});
-
-               //NOTE bypass the trigger source check
-               $.Event.prototype.originalEvent = {
-                       touches: false
-               };
-
-               $.Event.prototype.preventDefault = function(){
-                       ok(true, "prevent default called");
-                       start();
-               };
-
-               mockAbs(11);
-
-               $( "#qunit-fixture" ).trigger("touchstart");
-               $( "#qunit-fixture" ).trigger("touchmove");
-       });
-
-       asyncTest( "move handler returns when touchstart has been fired since touchstop", function(){
-               expect( 1 );
-
-               // bypass triggered event check
-               $.Event.prototype.originalEvent = {
-                       touches: false
-               };
-
-               forceTouchSupport();
-
-               // ensure the swipe custome event is setup
-               $( "#qunit-fixture" ).bind('swipe', function(){});
-
-               $( "#qunit-fixture" ).trigger("touchstart");
-               $( "#qunit-fixture" ).trigger("touchend");
-
-               $( "#qunit-fixture" ).bind("touchmove", function(){
-                       ok(true, "touchmove bound functions are fired");
-                       start();
-               });
-
-               Math.abs = function(){
-                       ok(false, "shouldn't compare coordinates");
-               };
-
-               $( "#qunit-fixture" ).trigger("touchmove");
-       });
-
-       var nativeSupportTest = function(opts){
-               $.support.orientation = opts.orientationSupport;
-               same($.event.special.orientationchange[opts.method](), opts.returnValue);
-       };
-
-       test( "orientation change setup should do nothing when natively supported", function(){
-               nativeSupportTest({
-                       method: 'setup',
-                       orientationSupport: true,
-                       returnValue: false
-               });
-       });
-
-       test( "orientation change setup should bind resize when not supported natively", function(){
-               nativeSupportTest({
-                       method: 'setup',
-                       orientationSupport: false,
-                       returnValue: undefined //NOTE result of bind function call
-               });
-       });
-
-       test( "orientation change teardown should do nothing when natively supported", function(){
-               nativeSupportTest({
-                       method: 'teardown',
-                       orientationSupport: true,
-                       returnValue: false
-               });
-       });
-
-       test( "orientation change teardown should unbind resize when not supported natively", function(){
-               nativeSupportTest({
-                       method: 'teardown',
-                       orientationSupport: false,
-                       returnValue: undefined //NOTE result of unbind function call
-               });
-       });
-
-       /* The following 4 tests are async so that the throttled event triggers don't interfere with subsequent tests */
-
-       asyncTest( "throttledresize event proxies resize events", function(){
-               $( window ).one( "throttledresize", function(){
-                       ok( true, "throttledresize called");
-                       start();
-               });
-
-               $( window ).trigger( "resize" );
-       });
-
-       asyncTest( "throttledresize event prevents resize events from firing more frequently than 250ms", function(){
-               var called = 0;
-
-               $(window).bind( "throttledresize", function(){
-                       called++;
-               });
-
-               // NOTE 250 ms * 3 = 750ms which is plenty of time
-               // for the events to trigger before the next test, but
-               // not so much time that the second resize will be triggered
-               // before the call to same() is made
-               $.testHelper.sequence([
-                       function(){
-                               $(window).trigger( "resize" ).trigger( "resize" );
-                       },
-
-                       // verify that only one throttled resize was called after 250ms
-                       function(){ same( called, 1 ); },
-
-                       function(){
-                               start();
-                       }
-               ], 250);
-       });
-
-       asyncTest( "throttledresize event promises that a held call will execute only once after throttled timeout", function(){
-               var called = 0;
-
-               expect( 2 );
-
-               $.testHelper.eventSequence( "throttledresize", [
-                       // ignore the first call
-                       $.noop,
-
-                       function(){
-                               ok( true, "second throttled resize should run" );
-                       },
-
-                       function(timedOut){
-                               ok( timedOut, "third throttled resize should not run");
-                               start();
-                       }
-               ]);
-
-               $.mobile.pageContainer
-                       .trigger( "resize" )
-                       .trigger( "resize" )
-                       .trigger( "resize" );
-       });
-
-       asyncTest( "mousedown mouseup and click events should add a which when its not defined", function() {
-               var whichDefined = function( event ){
-                       same(event.which, 1);
-               };
-
-               $( document ).bind( "vclick", whichDefined);
-               $( document ).trigger( "click" );
-
-               $( document ).bind( "vmousedown", whichDefined);
-               $( document ).trigger( "mousedown" );
-
-               $( document ).bind( "vmouseup", function( event ){
-                       same(event.which, 1);
-                       start();
-               });
-
-               $( document ).trigger( "mouseup" );
-       });
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/event/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/event/index.html
deleted file mode 100644 (file)
index b1c46a4..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile Event Test Suite</title>
-
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../../tests/jquery.testHelper.js"></script>
-       <script type="text/javascript">
-               $.testHelper.setPushState();
-       </script>
-
-       <script src="../../../js/jquery.mobile.define.js"></script>
-       <script src="../../../js/jquery.mobile.event.js"></script>
-       <script src="../../../js/"></script>
-
-
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-       <script src="../../../external/qunit.js"></script>
-
-       <script src="event_core.js"></script>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Event Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div id="qunit-fixture"></div>
-
-<div id="foo" data-nstest-role="page">
-       <a href="#bar" data-nstest-transition="flip"></a>
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/fieldContain/fieldContain_events.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/fieldContain/fieldContain_events.js
deleted file mode 100644 (file)
index 75066bf..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * mobile dialog unit tests
- */
-(function($){
-       module('jquery.mobile.fieldContain.js');
-
-       test( "Field container contains appropriate css styles", function(){
-               ok($('#test-fieldcontain').hasClass('ui-field-contain ui-body ui-br'), 'A fieldcontain element must contain styles "ui-field-contain ui-body ui-br"');
-       });
-
-       test( "Field container will create when inside a container that receives a 'create' event", function(){
-               ok( !$("#enhancetest").appendTo(".ui-page-active").find(".ui-field-contain").length, "did not have enhancements applied" );
-               ok( $("#enhancetest").trigger("create").find(".ui-field-contain").length, "enhancements applied" );
-       });
-
-       test( "field containers inside ignore container should not be enhanced", function() {
-               var $ignored = $( "#ignored-fieldcontain" ), $enhanced = $( "#enhanced-fieldcontain" );
-
-               $.mobile.ignoreContentEnabled = true;
-
-               $( "#ignore-container-tests" ).trigger( "create" );
-
-               same( $ignored.attr( "class" ), undefined, "ignored div does not have field contain class" );
-               ok( $enhanced.hasClass( "ui-field-contain" ), "enhanced div has field contain class" );
-
-               $.mobile.ignoreContentEnabled = false;
-
-       });
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/fieldContain/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/fieldContain/index.html
deleted file mode 100644 (file)
index 1be5157..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="UTF-8" />
-       <title>jQuery Mobile FieldContain Integration Test</title>
-
-
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../../tests/jquery.testHelper.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [
-                               "jquery.mobile.fieldContain"
-                       ],
-                       [ "jquery.mobile.init" ],
-                       [
-                               "./fieldContain_events.js"
-                       ]
-               ]);
-       </script>
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile FieldContainer Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div data-nstest-role="page">
-
-       <!-- Basic fieldcontain test -->
-       <div id="test-fieldcontain" data-nstest-role="fieldcontain">
-           <label for="name">Text Input:</label>
-           <input type="text" name="name" id="name" value=""  />
-       </div>
-
-</div>
-
-<div id="enhancetest">
-  <div data-nstest-role="fieldcontain">
-  </div>
-</div>
-
-<div id="ignore-container-tests">
-  <div data-nstest-enhance="false">
-    <div data-nstest-role="fieldcontain" id="ignored-fieldcontain">
-    </div>
-  </div>
-
-  <div>
-    <div data-nstest-role="fieldcontain" id="enhanced-fieldcontain">
-    </div>
-  </div>
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/fixedToolbar/fixedToolbar.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/fixedToolbar/fixedToolbar.js
deleted file mode 100644 (file)
index d03ae0a..0000000
+++ /dev/null
@@ -1,360 +0,0 @@
-/*
- * mobile Fixed Toolbar unit tests
- */
-(function($){
-       module('jquery.mobile.fixedToolbar.js');
-
-       $( "html" ).height( screen.height * 3 );
-
-       function scrollDown(){
-               window.scrollTo(0,screen.height );
-       }
-
-       function scrollUp(){
-               window.scrollTo(0,0);
-       }
-
-       module("jquery.mobile.fixedToolbar.js", {setup: function() {
-               var startTimeout;
-
-               // swallow the inital page change
-               stop();
-               $(document).one("pagechange", function() {
-                       clearTimeout(startTimeout);
-               });
-
-               startTimeout = setTimeout(start, 1000);
-       }});
-
-
-       test( "Fixed Header Structural Classes are applied correctly", function(){
-
-               //footer
-               ok( !$('#classes-test-a').hasClass('ui-header-fixed'), 'An ordinary header should not have fixed classes');
-               ok( $('#classes-test-b').hasClass('ui-header-fixed'), 'An header with data-position=fixed should have ui-header-fixed class');
-               ok( $('#classes-test-c').hasClass('ui-header-fullscreen'), 'An header with data-position=fixed and data-fullscreen should have ui-header-fullscreen class');
-
-               //footer
-               ok( !$('#classes-test-d').hasClass('ui-footer-fixed'), 'An ordinary footer should not have fixed classes');
-               ok( $('#classes-test-e').hasClass('ui-footer-fixed'), 'A footer with data-position=fixed should have ui-footer-fixed class"');
-               ok( $('#classes-test-f').hasClass('ui-footer-fullscreen'), 'A footer with data-position=fixed and data-fullscreen should have ui-footer-fullscreen class');
-
-               //parent
-               ok( $('#classes-test-b').closest( ".ui-page" ).hasClass( "ui-page-header-fixed" ), "Parent page of a fixed header has class ui-page-header-fixed" );
-               ok( $('#classes-test-e').closest( ".ui-page" ).hasClass( "ui-page-footer-fixed" ), "Parent page of a fixed footer has class ui-page-header-fixed" );
-               ok( $('#classes-test-c').closest( ".ui-page" ).hasClass( "ui-page-header-fullscreen" ), "Parent page of a fullscreen header has class ui-page-header-fullscreen" );
-               ok( $('#classes-test-f').closest( ".ui-page" ).hasClass( "ui-page-footer-fullscreen" ), "Parent page of a fullscreen footer has class ui-page-header-fullscreen" );
-
-
-       });
-
-       asyncTest( "Fixed header and footer transition classes are applied correctly", function(){
-
-               expect( 6 );
-
-               $.testHelper.sequence([
-                       function(){
-                               $( '#classes-test-b, #classes-test-g, #classes-test-e,#classes-test-h,#classes-test-i,#classes-test-j, #classes-test-k' ).fixedtoolbar( "hide" );
-                               scrollDown();
-                       },
-
-                       function(){
-                               //show first
-                               $( '#classes-test-b, #classes-test-g, #classes-test-e,#classes-test-h,#classes-test-i,#classes-test-j, #classes-test-k' ).fixedtoolbar( "show" );
-                       },
-
-                       function() {
-
-                               ok( $( '#classes-test-g' ).hasClass('slidedown'), 'The slidedown class should be applied by default');
-                               ok( $( '#classes-test-k' ).hasClass('in'), 'The "in" class should be applied for fade transitions');
-                               ok( !$( '#classes-test-h' ).hasClass('slidedown'), 'The slidedown class should not be applied when the header has a data-transition of "none"');
-
-                               ok( !$( '#classes-test-h' ).hasClass('in'), 'The "in" class should not be applied when the header has a data-transition of "none"');
-                               ok( $( '#classes-test-i' ).hasClass('slidedown'), 'The "slidedown" class should  be applied when the header has a data-transition of "slide"');
-                               ok( $( '#classes-test-j' ).hasClass('slideup'), 'The "slideup" class should  be applied when the footer has a data-transition of "slide"');
-
-                       },
-
-                       function(){
-                               scrollUp();
-                               start();
-                               }
-               ], 1000);
-
-       });
-
-       test( "User zooming is disabled when the header is visible and disablePageZoom is true", function(){
-               $.mobile.zoom.enable();
-               var defaultZoom = $.mobile.fixedtoolbar.prototype.options.disablePageZoom;
-               $( ".ui-page-active .ui-header-fixed" ).fixedtoolbar("option", "disablePageZoom", true );
-
-               $( ".ui-page-active" ).trigger( "pagebeforeshow" );
-               ok( !$.mobile.zoom.enabled, "Viewport scaling is disabled before page show." );
-               $( ".ui-page-active .ui-header-fixed" ).fixedtoolbar("option", "disablePageZoom", defaultZoom );
-               $.mobile.zoom.enable();
-       });
-
-       test( "Meta viewport content is restored to previous state, and zooming renabled, after pagebeforehide", function(){
-               $.mobile.zoom.enable( true );
-               var defaultZoom = $.mobile.fixedtoolbar.prototype.options.disablePageZoom;
-               $( ".ui-page-active .ui-header-fixed" ).fixedtoolbar("option", "disablePageZoom", true );
-
-               $( ".ui-page-active" ).trigger( "pagebeforeshow" );
-               ok( !$.mobile.zoom.enabled, "Viewport scaling is disabled before page show." );
-               $( ".ui-page-active" ).trigger( "pagebeforehide" );
-               ok( $.mobile.zoom.enabled, "Viewport scaling is enabled." );
-               $( ".ui-page-active .ui-header-fixed" ).fixedtoolbar("option", "disablePageZoom", defaultZoom );
-               $.mobile.zoom.enable( true );
-       });
-
-       test( "User zooming is not disabled when the header is visible and disablePageZoom is false", function(){
-               $.mobile.zoom.enable( true );
-               var defaultZoom = $.mobile.fixedtoolbar.prototype.options.disablePageZoom;
-               $( ".ui-page :jqmData(position='fixed')" ).fixedtoolbar( "option", "disablePageZoom", false );
-
-               $( ".ui-page-active" ).trigger( "pagebeforeshow" );
-
-               ok( $.mobile.zoom.enabled, "Viewport scaling is not disabled before page show." );
-
-               $( ".ui-page :jqmData(position='fixed')" ).fixedtoolbar( "option", "disablePageZoom", defaultZoom );
-
-               $.mobile.zoom.enable( true );
-       });
-
-
-       asyncTest( "The hide method is working properly", function() {
-
-               expect( 2 );
-
-               $.testHelper.sequence([
-                       function(){
-                               $( '#classes-test-g' ).fixedtoolbar( "show" );
-                               scrollDown();
-                       },
-
-                       function() {
-                               $( '#classes-test-g' ).fixedtoolbar( "hide" );
-
-                               ok( $( '#classes-test-g' ).hasClass('out'), 'The out class should be applied when hide is called');
-                       },
-
-                       function() {
-                               ok( $( '#classes-test-g' ).hasClass('ui-fixed-hidden'), 'The toolbar has the ui-fixed-hidden class applied after hide');
-                               $( '#classes-test-g' ).fixedtoolbar( "show" );
-
-                       },
-
-                       function(){
-                               scrollUp();
-                               start();
-                       }
-
-               ], 500);
-       });
-
-
-
-       asyncTest( "The show method is working properly", function() {
-
-               expect( 2 );
-
-               $.testHelper.sequence([
-                       function(){
-                               scrollDown();
-                       },
-
-                       function() {
-                               $( '#classes-test-g' ).fixedtoolbar( "hide" );
-                       },
-
-                       function() {
-                               $( '#classes-test-g' ).fixedtoolbar( "show" );
-
-                               ok( $( '#classes-test-g' ).hasClass('in'), 'The in class should be applied when show is called');
-                       },
-
-                       function() {
-                               ok( !$( '#classes-test-g' ).hasClass('ui-fixed-hidden'), 'The toolbar does not have the ui-fixed-hidden class applied after show');
-
-                       },
-
-                       function(){
-                               scrollUp();
-                               start();
-                       }
-               ], 500);
-       });
-
-
-       asyncTest( "The toggle method is working properly", function() {
-
-               expect( 3 );
-
-               $.testHelper.sequence([
-                       function(){
-                               scrollDown();
-                       },
-
-                       function(){
-                               $( '#classes-test-g' ).fixedtoolbar( "show" );
-                       },
-
-                       function() {
-                               ok( !$( '#classes-test-g' ).hasClass('ui-fixed-hidden'), 'The toolbar does not have the ui-fixed-hidden class');
-                               $( '#classes-test-g' ).fixedtoolbar( "toggle" );
-                       },
-
-                       function() {
-                               ok( $( '#classes-test-g' ).hasClass('ui-fixed-hidden'), 'The toolbar does have the ui-fixed-hidden class');
-                               $( '#classes-test-g' ).fixedtoolbar( "toggle" );
-                       },
-
-                       function() {
-                               ok( !$( '#classes-test-g' ).hasClass('ui-fixed-hidden'), 'The toolbar does not have the ui-fixed-hidden class');
-
-                       },
-
-                       function(){
-                               scrollUp();
-                               start();
-                       }
-
-               ], 500);
-       });
-
-
-       asyncTest( "The persistent headers and footers are working properly", function() {
-
-               expect( 3 );
-
-               $( "#persist-test-b, #persist-test-a" ).page();
-
-               var nextpageheader =  $( "#persist-test-b .ui-header-fixed" ),
-                       nextpagefooter =  $( "#persist-test-b .ui-footer-fixed" );
-
-
-               $.testHelper.pageSequence([
-                       function(){
-                               ok( nextpageheader.length && nextpagefooter.length, "next page has fixed header and fixed footer" );
-                               $.mobile.changePage( "#persist-test-a" );
-                       },
-
-                       function(){
-                               $( "#persist-test-b" )
-                                       .one( "pagebeforeshow", function(){
-                                               ok( nextpageheader.parent( ".ui-mobile-viewport" ).length, "fixed header and footer are now a child of page container" );
-                                       });
-
-                               $.mobile.changePage( "#persist-test-b" );
-                       },
-
-                       function() {
-                               ok( nextpageheader.parent( ".ui-page" ).length, "fixed header and footer are now a child of page again" );
-                               $.mobile.changePage( "#default" );
-                       },
-
-                       start
-               ]);
-       });
-
-       asyncTest( "The persistent headers should work without a footer", function() {
-
-               expect( 3 );
-
-               $( "#persist-test-c, #persist-test-d" ).page();
-
-               var nextpageheader =  $( "#persist-test-d .ui-header-fixed" );
-
-               $.testHelper.pageSequence([
-                       function(){
-                               ok( nextpageheader.length, "next page has fixed header and fixed footer" );
-                               $.mobile.changePage( "#persist-test-c" );
-                       },
-
-                       function(){
-                               $( "#persist-test-d" )
-                                       .one( "pagebeforeshow", function(){
-                                               same( nextpageheader.parent()[0], $.mobile.pageContainer[0], "fixed header is now a child of page container" );
-                                       });
-
-                               $.mobile.changePage( "#persist-test-d" );
-                       },
-
-                       function() {
-                               same( nextpageheader.parent()[0], $.mobile.activePage[0], "fixed header is now a child of page again" );
-                               $.mobile.changePage( "#default" );
-                       },
-
-                       start
-               ]);
-       });
-
-       asyncTest( "The persistent footers should work without a header", function() {
-
-               expect( 3 );
-
-               $( "#persist-test-e, #persist-test-f" ).page();
-
-               var nextpagefooter =  $( "#persist-test-f .ui-footer-fixed" );
-
-               $.testHelper.pageSequence([
-                       function(){
-                               ok( nextpagefooter.length, "next page has fixed footer and fixed footer" );
-                               $.mobile.changePage( "#persist-test-e" );
-                       },
-
-                       function(){
-                               $( "#persist-test-f" )
-                                       .one( "pagebeforeshow", function(){
-                                               same( nextpagefooter.parent()[0], $.mobile.pageContainer[0], "fixed footer is now a child of page container" );
-                                       });
-
-                               $.mobile.changePage( "#persist-test-f" );
-                       },
-
-                       function() {
-                               same( nextpagefooter.parent()[0], $.mobile.activePage[0], "fixed footer is now a child of page again" );
-                               $.mobile.changePage( "#default" );
-                       },
-
-                       start
-               ]);
-       });
-
-
-       var asyncTestFooterAndHeader = function( pageSelector, areHidden ) {
-               $.testHelper.pageSequence([
-                       function() {
-                               $.mobile.changePage( pageSelector );
-                       },
-
-                       function() {
-                               var $footer = $.mobile.activePage.find( ".ui-footer" ),
-                                       $header = $.mobile.activePage.find( ".ui-header" ),
-                                       hidden = areHidden ? "hidden" : "visible";
-
-                               equal( $footer.length, 1, "there should be one footer" );
-                               equal( $header.length, 1, "there should be one header" );
-
-                               equal( $footer.hasClass( "ui-fixed-hidden" ), areHidden, "the footer should be " + hiddenStr );
-                               equal( $header.hasClass( "ui-fixed-hidden" ), areHidden, "the header should be " + hiddenStr );
-
-                               $.mobile.changePage( "#default" );
-                       },
-
-                       start
-               ]);
-       };
-
-       asyncTest( "data-visible-on-page-show hides toolbars when false", function() {
-               asyncTestFooterAndHeader( "#page-show-visible-false", false );
-       });
-
-       asyncTest( "data-visible-on-page-show shows toolbars when explicitly true", function() {
-               asyncTestFooterAndHeader( "#page-show-visible-true", true );
-       });
-
-       asyncTest( "data-visible-on-page-show shows toolbars when undefined", function() {
-               asyncTestFooterAndHeader( "#page-show-visible-undefined", true );
-       });
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/fixedToolbar/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/fixedToolbar/index.html
deleted file mode 100644 (file)
index d65a471..0000000
+++ /dev/null
@@ -1,98 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="UTF-8" />
-       <title>jQuery Mobile Fixed Toolbar Integration Test</title>
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../../tests/jquery.testHelper.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [ "jquery.mobile.fixedToolbar" ],
-                       [ "jquery.mobile.init" ],
-                       [       "./fixedToolbar.js"     ]
-               ]);
-       </script>
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile FieldContainer Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div data-nstest-role="page" id="default">
-       <!-- structural classes -->
-       <div data-nstest-role="header" id="classes-test-a"></div>
-       <div data-nstest-role="header" data-nstest-position="fixed" id="classes-test-b"></div>
-       <div data-nstest-role="header" data-nstest-position="fixed" data-nstest-fullscreen="true" id="classes-test-c"></div>
-       <div data-nstest-role="footer" id="classes-test-d"></div>
-       <div data-nstest-role="footer" data-nstest-position="fixed" id="classes-test-e"></div>
-       <div data-nstest-role="footer" data-nstest-position="fixed" data-nstest-fullscreen="true" id="classes-test-f"></div>
-
-       <!-- transition classes -->
-       <div data-nstest-role="header" data-nstest-position="fixed" id="classes-test-g"></div>
-       <div data-nstest-role="header" data-nstest-position="fixed" data-nstest-transition="none" id="classes-test-h"></div>
-       <div data-nstest-role="header" data-nstest-position="fixed" data-nstest-transition="slide" id="classes-test-i"></div>
-       <div data-nstest-role="footer" data-nstest-position="fixed" data-nstest-transition="slide" id="classes-test-j"></div>
-       <div data-nstest-role="header" data-nstest-position="fixed" data-nstest-transition="fade" id="classes-test-k"></div>
-</div>
-
-
-
-<div data-nstest-role="page" id="persist-test-a">
-       <div data-nstest-role="header" data-nstest-position="fixed" data-nstest-id="a"></div>
-       <div data-nstest-role="footer" data-nstest-position="fixed" data-nstest-id="b"></div>
-</div>
-
-<div data-nstest-role="page" id="persist-test-b">
-       <div data-nstest-role="header" data-nstest-position="fixed" data-nstest-id="a"></div>
-       <div data-nstest-role="footer" data-nstest-position="fixed" data-nstest-id="b"></div>
-</div>
-
-<div data-nstest-role="page" id="persist-test-c">
-       <div data-nstest-role="header" data-nstest-position="fixed" data-nstest-id="c"></div>
-</div>
-
-<div data-nstest-role="page" id="persist-test-d">
-       <div data-nstest-role="header" data-nstest-position="fixed" data-nstest-id="c"></div>
-</div>
-
-<div data-nstest-role="page" id="persist-test-e">
-       <div data-nstest-role="footer" data-nstest-position="fixed" data-nstest-id="d"></div>
-</div>
-
-<div data-nstest-role="page" id="persist-test-f">
-       <div data-nstest-role="footer" data-nstest-position="fixed" data-nstest-id="d"></div>
-</div>
-
-<div data-nstest-role="page" id="page-show-visible-false">
-       <div data-nstest-role="header" data-nstest-position="fixed" data-nstest-fullscreen="true" data-nstest-visible-on-page-show="false">
-               <h1>foo</h1>
-       </div>
-       <div data-nstest-role="footer" data-nstest-position="fixed" data-nstest-fullscreen="true" data-nstest-visible-on-page-show="false">
-               <h1>foo</h1>
-       </div>
-</div>
-
-<div data-nstest-role="page" id="page-show-visible-true">
-       <div data-nstest-role="header" data-nstest-position="fixed" data-nstest-fullscreen="true" data-nstest-visible-on-page-show="true"></div>
-       <div data-nstest-role="footer" data-nstest-position="fixed" data-nstest-fullscreen="true" data-nstest-visible-on-page-show="true"></div>
-</div>
-
-<div data-nstest-role="page" id="page-show-visible-undefined">
-       <div data-nstest-role="header" data-nstest-fullscreen="true" data-nstest-position="fixed"></div>
-       <div data-nstest-role="footer" data-nstest-fullscreen="true" data-nstest-position="fixed"></div>
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/index.html
deleted file mode 100644 (file)
index c53dd96..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-  <meta charset="utf-8">
-       <link rel="stylesheet" href="../../external/qunit.css" />
-       <script src="../../js/jquery.tag.inserter.js"></script>
-       <script src="../../external/qunit.js"></script>
-       <script src="runner.js"></script>
-  <style type="text/css">
-    html, body {
-      width:100%;
-      height:100%;
-      margin:0px;
-      padding:0px;
-    }
-
-    #testFrame {
-      float: left;
-      border: 0px;
-      height: 100%;
-      width: 60%;
-    }
-
-    #results {
-      float: left;
-      width: 30%;
-    }
-  </style>
-</head>
-<body>
-  <div id="results">
-    <h1 id="qunit-header"><a href="#">jQuery Mobile Test Suite</a></h1>
-    <h2 id="qunit-banner"></h2>
-    <ol id="qunit-tests">
-    </ol>
-  </div>
-       <iframe data-src="../../tests/unit/{{testdir}}?jquery={{jquery.version}}" name="testFrame" id="testFrame" scrolling="no">
-       </iframe>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/dialog-load-test.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/dialog-load-test.html
deleted file mode 100644 (file)
index 716bdd6..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <meta charset="UTF-8" />
-       <title>jQuery Mobile Init Test Suite</title>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../../tests/jquery.testHelper.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script src="../../../external/requirejs/require.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [
-                               "jquery.mobile.core",
-                       ],
-                       [       "jquery.mobile.init" ],
-                       [       "init_dialog.js" ]
-               ]);
-       </script>
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-       </script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Init Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div data-nstest-role="dialog" id="foo">
-       <label for="select-choice-0" class="select">Shipping method:</label>
-       <select name="select-choice-0" id="select-choice-1">
-               <option value="standard">Standard: 7 day</option>
-               <option value="rush">Rush: 3 days</option>
-               <option value="express">Express: next day</option>
-               <option value="overnight">Overnight</option>
-       </select>
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/index.html
deleted file mode 100644 (file)
index 15854a6..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="UTF-8" />
-       <title>jQuery Mobile Init Test Suite</title>
-       <!-- meta viewport left out on purpose for test append -->
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../../js/"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script src="../../jquery.testHelper.js"></script>
-       <script src="init_core.js"></script>
-       <!-- added explicitly for library reloading (see testHelper )  -->
-       <script src="../../../js/jquery.mobile.core.js"></script>
-       <script src="../../../js/jquery.mobile.init.js"></script>
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css" />
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Init Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div data-nstest-role="page" id="foo">
-</div>
-
-<div data-nstest-role="page" id="bar" data-nstest-url="bak">
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/init_core.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/init_core.js
deleted file mode 100644 (file)
index 5c452bc..0000000
+++ /dev/null
@@ -1,271 +0,0 @@
-/*
- * mobile init tests
- */
-(function($){
-       var mobilePage = undefined,
-                       libName = 'jquery.mobile.init.js',
-                       coreLib = 'jquery.mobile.core.js',
-                       extendFn = $.extend,
-                       originalLoadingMessage = $.mobile.loadingMessage,
-                       setGradeA = function(value) { $.mobile.gradeA = function(){ return value; }; },
-                       reloadCoreNSandInit = function(){
-                               $.testHelper.reloadLib(coreLib);
-                               $.testHelper.reloadLib("jquery.setNamespace.js");
-                               $.testHelper.reloadLib(libName);
-                       };
-
-
-       module(libName, {
-               setup: function(){
-                       // NOTE reset for gradeA tests
-                       $('html').removeClass('ui-mobile');
-
-                       // TODO add post reload callback
-                       $('.ui-loader').remove();
-               },
-               teardown: function(){
-                       $.extend = extendFn;
-
-                       // NOTE reset for showPageLoadingMsg/hidePageLoadingMsg tests
-                       $('.ui-loader').remove();
-
-                       // clear the classes added by reloading the init
-                       $("html").attr('class', '');
-
-                       $.mobile.loadingMessage = originalLoadingMessage;
-               }
-       });
-
-       // NOTE important to use $.fn.one here to make sure library reloads don't fire
-       //      the event before the test check below
-       $(document).one("mobileinit", function(){
-               mobilePage = $.mobile.page;
-       });
-
-       // NOTE for the following two tests see index html for the binding
-       test( "mobile.page is available when mobile init is fired", function(){
-               ok( mobilePage !== undefined, "$.mobile.page is defined" );
-       });
-
-       $.testHelper.excludeFileProtocol(function(){
-               asyncTest( "loading the init library triggers mobilinit on the document", function(){
-                       var initFired = false;
-                       expect( 1 );
-
-                       $(window.document).one('mobileinit', function(event){
-                               initFired = true;
-                       });
-
-                       $.testHelper.reloadLib(libName);
-
-                       setTimeout(function(){
-                               ok(initFired, "init fired");
-                               start();
-                       }, 1000);
-               });
-
-               test( "enhancments are skipped when the browser is not grade A", function(){
-                       setGradeA(false);
-                       $.testHelper.reloadLib(libName);
-
-                       //NOTE easiest way to check for enhancements, not the most obvious
-                       ok(!$("html").hasClass("ui-mobile"), "html elem doesn't have class ui-mobile");
-               });
-
-               test( "enhancments are added when the browser is grade A", function(){
-                       setGradeA(true);
-                       $.testHelper.reloadLib(libName);
-
-                       ok($("html").hasClass("ui-mobile"), "html elem has class mobile");
-               });
-
-               asyncTest( "useFastClick is configurable via mobileinit", function(){
-                       $(document).one( "mobileinit", function(){
-                               $.mobile.useFastClick = false;
-                               start();
-                       });
-
-                       $.testHelper.reloadLib(libName);
-
-                       same( $.mobile.useFastClick, false , "fast click is set to false after init" );
-                       $.mobile.useFastClick = true;
-               });
-
-
-
-               var findFirstPage = function() {
-                       return $(":jqmData(role='page')").first();
-               };
-
-               test( "active page and start page should be set to the fist page in the selected set", function(){
-                       expect( 2 );
-                       $.testHelper.reloadLib(libName);
-                       var firstPage = findFirstPage();
-
-                       same($.mobile.firstPage[0], firstPage[0]);
-                       same($.mobile.activePage[0], firstPage[0]);
-               });
-
-               test( "mobile viewport class is defined on the first page's parent", function(){
-                       expect( 1 );
-                       $.testHelper.reloadLib(libName);
-                       var firstPage = findFirstPage();
-
-                       ok(firstPage.parent().hasClass("ui-mobile-viewport"), "first page has viewport");
-               });
-
-               test( "mobile page container is the first page's parent", function(){
-                       expect( 1 );
-                       $.testHelper.reloadLib(libName);
-                       var firstPage = findFirstPage();
-
-                       same($.mobile.pageContainer[0], firstPage.parent()[0]);
-               });
-
-               asyncTest( "hashchange triggered on document ready with single argument: true", function(){
-                       $.testHelper.sequence([
-                               function(){
-                                       location.hash = "#foo";
-                               },
-
-                               // delay the bind until the first hashchange
-                               function(){
-                                       $(window).one("hashchange", function(ev, arg){
-                                               same(arg, true);
-                                               start();
-                                       });
-                               },
-
-                               function(){
-                                       $.testHelper.reloadLib(libName);
-                               }
-                       ], 1000);
-               });
-
-               test( "pages without a data-url attribute have it set to their id", function(){
-                       same($("#foo").jqmData('url'), "foo");
-               });
-
-               test( "pages with a data-url attribute are left with the original value", function(){
-                       same($("#bar").jqmData('url'), "bak");
-               });
-
-               asyncTest( "showPageLoadingMsg doesn't add the dialog to the page when loading message is false", function(){
-                       expect( 1 );
-                       $.mobile.loadingMessage = false;
-                       $.mobile.showPageLoadingMsg();
-
-                       setTimeout(function(){
-                               ok(!$(".ui-loader").length, "no ui-loader element");
-                               start();
-                       }, 500);
-               });
-
-               asyncTest( "hidePageLoadingMsg doesn't add the dialog to the page when loading message is false", function(){
-                       expect( 1 );
-                       $.mobile.loadingMessage = true;
-                       $.mobile.hidePageLoadingMsg();
-
-                       setTimeout(function(){
-                               same($(".ui-loading").length, 0, "page should not be in the loading state");
-                               start();
-                       }, 500);
-               });
-
-               asyncTest( "showPageLoadingMsg adds the dialog to the page when loadingMessage is true", function(){
-                       expect( 1 );
-                       $.mobile.loadingMessage = true;
-                       $.mobile.showPageLoadingMsg();
-
-                       setTimeout(function(){
-                               same($(".ui-loading").length, 1, "page should be in the loading state");
-                               start();
-                       }, 500);
-               });
-
-               asyncTest( "page loading should contain default loading message", function(){
-                       expect( 1 );
-                       reloadCoreNSandInit();
-                       $.mobile.showPageLoadingMsg();
-
-                       setTimeout(function(){
-                               same($(".ui-loader h1").text(), "loading");
-                               start();
-                       }, 500);
-               });
-
-               asyncTest( "page loading should contain custom loading message", function(){
-                       $.mobile.loadingMessage = "foo";
-                       $.testHelper.reloadLib(libName);
-                       $.mobile.showPageLoadingMsg();
-
-                       setTimeout(function(){
-                               same($(".ui-loader h1").text(), "foo");
-                               start();
-                       }, 500);
-               });
-
-               asyncTest( "page loading should contain custom loading message when set during runtime", function(){
-                       $.mobile.loadingMessage = "bar";
-                       $.mobile.showPageLoadingMsg();
-
-                       setTimeout(function(){
-                               same($(".ui-loader h1").text(), "bar");
-                               start();
-                       }, 500);
-               });
-
-
-
-               // NOTE: the next two tests work on timeouts that assume a page will be created within 2 seconds
-               // it'd be great to get these using a more reliable callback or event
-
-               asyncTest( "page does auto-initialize at domready when autoinitialize option is true (default) ", function(){
-
-                       $( "<div />", { "data-nstest-role": "page", "id": "autoinit-on" } ).prependTo( "body" )
-
-                       $(document).one("mobileinit", function(){
-                               $.mobile.autoInitializePage = true;
-                       });
-
-                       location.hash = "";
-
-                       reloadCoreNSandInit();
-
-                       setTimeout(function(){
-                               same( $( "#autoinit-on.ui-page" ).length, 1 );
-
-                               start();
-                       }, 2000);
-               });
-
-
-               asyncTest( "page does not initialize at domready when autoinitialize option is false ", function(){
-                       $(document).one("mobileinit", function(){
-                               $.mobile.autoInitializePage = false;
-                       });
-
-                       $( "<div />", { "data-nstest-role": "page", "id": "autoinit-off" } ).prependTo( "body" )
-
-                       location.hash = "";
-
-
-                       reloadCoreNSandInit();
-
-                       setTimeout(function(){
-                               same( $( "#autoinit-off.ui-page" ).length, 0 );
-
-                               $(document).bind("mobileinit", function(){
-                                       $.mobile.autoInitializePage = true;
-                               });
-
-                               reloadCoreNSandInit();
-
-                               start();
-                       }, 2000);
-               });
-
-
-
-       });
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/init_core_nopage.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/init_core_nopage.js
deleted file mode 100644 (file)
index 193af25..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-/*
- * mobile init tests
- */
-(function($){
-
-               
-               test( "page element is generated when not present in initial markup", function(){
-                       ok( $( ".ui-page" ).length, 1 );
-               });
-
-
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/init_dialog.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/init_dialog.js
deleted file mode 100644 (file)
index 0479388..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
- * mobile init dialog tests
- */
-(function($){
-       module( "jquery.mobile.init dialog load tests" );
-
-       // issue #3275
-       test( "A document containing no pages and a dialog role div will enhance the div as a page", function() {
-               ok( $("#foo").hasClass( "ui-page" ), "the div has the page class" );
-
-               // NOTE this will fail when/if we decide to render it as a dialog
-               ok( !$("#foo").hasClass( "ui-dialog" ), "the div does NOT have the dialog page class" );
-       });
-
-       //NOTE the opposite case is tested everyewhere else in the suite :D
-})( jQuery );
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/nopage.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/nopage.html
deleted file mode 100644 (file)
index 4decaae..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="UTF-8" />
-       <title>jQuery Mobile Init Test Suite</title>
-       <!-- meta viewport left out on purpose for test append -->
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../../js/"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script src="../../jquery.testHelper.js"></script>
-       <script src="init_core_nopage.js"></script>
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css" />
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-       <script src="../swarminject.js"></script>
-
-       <style>
-       [data-nstest-role="page"], [data-nstest-role="dialog"] {
-       position: static !important;
-       }
-       </style>
-</head>
-
-<h1 id="qunit-header">jQuery Mobile Init Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/jquery.setNameSpace.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/jquery.setNameSpace.js
deleted file mode 100644 (file)
index 3e9e129..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-//set namespace for unit test markp
-$( document ).bind( "mobileinit", function(){
-       $.mobile.ns = "nstest-";
-});
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/kitchensink/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/kitchensink/index.html
deleted file mode 100644 (file)
index f390407..0000000
+++ /dev/null
@@ -1,421 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="UTF-8" />
-       <title>jQuery Mobile Kitchen Sink Test Suite</title>
-       <!-- meta viewport left out on purpose for test append -->
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script src="../../../js/jquery.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../jquery.testHelper.js"></script>
-       <script src="../../../js/"></script>
-
-       <script>
-               $.testHelper.asyncLoad([
-                       [ "jquery.mobile.init" ],
-                       [ "kitchensink_core.js" ]
-               ]);
-       </script>
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css" />
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Kitchen Sink Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div data-nstest-role="page" id="default">
-       <div data-nstest-role="header" data-nstest-position="fixed" data-nstest-theme="a">
-               <h1>Fixed toolbars</h1>
-               <a href="../../" data-nstest-icon="home" data-nstest-iconpos="notext" data-nstest-direction="reverse">Home</a>
-               <a href="../nav.html" data-nstest-icon="search" data-nstest-iconpos="notext" data-nstest-rel="dialog" data-nstest-transition="fade">Search</a>
-       </div>
-
-  <div data-nstest-role="content" id="control-group-content">
-
-        <h2>Form Elements in Fieldcontains</h2>
-       <div data-nstest-role="fieldcontain">
-     <label for="name">Text Input:</label>
-     <input type="text" name="name" id="name" value=""  />
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-       <label for="textarea">Textarea:</label>
-       <textarea cols="40" rows="8" name="textarea" id="textarea"></textarea>
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-     <label for="search">Search Input:</label>
-     <input type="search" name="password" id="search" value=""  />
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-               <label for="slider2">Flip switch:</label>
-               <select name="slider2" id="slider2" data-nstest-role="slider">
-                       <option value="off">Off</option>
-                       <option value="on">On</option>
-               </select>
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-               <label for="slider">Slider:</label>
-               <input type="range" name="slider" id="slider" value="50" min="0" max="100" data-nstest-highlight="true"  />
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-       <fieldset data-nstest-role="controlgroup">
-               <legend>Choose as many snacks as you'd like:</legend>
-               <input type="checkbox" name="checkbox-1a" id="checkbox-1a" class="custom" />
-               <label for="checkbox-1a">Cheetos</label>
-
-               <input type="checkbox" name="checkbox-2a" id="checkbox-2a" class="custom" />
-               <label for="checkbox-2a">Doritos</label>
-
-               <input type="checkbox" name="checkbox-3a" id="checkbox-3a" class="custom" />
-               <label for="checkbox-3a">Fritos</label>
-
-               <input type="checkbox" name="checkbox-4a" id="checkbox-4a" class="custom" />
-               <label for="checkbox-4a">Sun Chips</label>
-    </fieldset>
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-       <fieldset data-nstest-role="controlgroup" data-nstest-type="horizontal">
-       <legend>Font styling:</legend>
-       <input type="checkbox" name="checkbox-6" id="checkbox-6" class="custom" />
-               <label for="checkbox-6">b</label>
-
-               <input type="checkbox" name="checkbox-7" id="checkbox-7" class="custom" />
-               <label for="checkbox-7"><em>i</em></label>
-
-               <input type="checkbox" name="checkbox-8" id="checkbox-8" class="custom" />
-               <label for="checkbox-8">u</label>
-    </fieldset>
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-           <fieldset data-nstest-role="controlgroup" data-nstest-theme="c">
-               <legend>Choose a pet:</legend>
-                       <input type="radio" name="radio-choice-1" id="radio-choice-1" value="choice-1" checked="checked" />
-                       <label for="radio-choice-1">Cat</label>
-
-                       <input type="radio" name="radio-choice-1" id="radio-choice-2" value="choice-2"  />
-                       <label for="radio-choice-2">Dog</label>
-
-                       <input type="radio" name="radio-choice-1" id="radio-choice-3" value="choice-3"  />
-                       <label for="radio-choice-3">Hamster</label>
-
-                       <input type="radio" name="radio-choice-1" id="radio-choice-4" value="choice-4"  />
-                       <label for="radio-choice-4">Lizard</label>
-           </fieldset>
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-           <fieldset data-nstest-role="controlgroup" data-nstest-type="horizontal">
-               <legend>Layout view:</legend>
-                       <input type="radio" name="radio-choice-b" id="radio-choice-c" value="on" checked="checked" />
-                       <label for="radio-choice-c">List</label>
-                       <input type="radio" name="radio-choice-b" id="radio-choice-d" value="off" />
-                       <label for="radio-choice-d">Grid</label>
-                       <input type="radio" name="radio-choice-b" id="radio-choice-e" value="other" />
-                       <label for="radio-choice-e">Gallery</label>
-           </fieldset>
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-               <label for="select-choice-1" class="select">Choose shipping method:</label>
-               <select name="select-choice-1" id="select-choice-1">
-                       <option value="standard">Standard: 7 day</option>
-                       <option value="rush">Rush: 3 days</option>
-                       <option value="express">Express: next day</option>
-                       <option value="overnight">Overnight</option>
-               </select>
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-               <label for="select-choice-3" class="select">Your state:</label>
-               <select name="select-choice-3" id="select-choice-3">
-                       <option value="AL">Alabama</option>
-                       <option value="AK">Alaska</option>
-                       <option value="AZ">Arizona</option>
-                       <option value="AR">Arkansas</option>
-                       <option value="CA">California</option>
-               </select>
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-               <label for="select-choice-a" class="select">Choose shipping method:</label>
-               <select name="select-choice-a" id="select-choice-a" data-nstest-native-menu="false">
-                       <option>Custom menu example</option>
-                       <option value="standard">Standard: 7 day</option>
-                       <option value="rush">Rush: 3 days</option>
-                       <option value="express">Express: next day</option>
-                       <option value="overnight">Overnight</option>
-               </select>
-       </div>
-
-  </div>
-       <div data-nstest-role="footer" id="control-group-footer" class="ui-bar" data-nstest-position="inline">
-               <div data-nstest-role="controlgroup" data-nstest-type="horizontal">
-                       <a href="index.html" data-nstest-icon="delete">Remove</a>
-                       <a href="index.html" data-nstest-icon="plus">Add</a>
-                       <a href="index.html" data-nstest-icon="arrow-u">Up</a>
-                       <a href="index.html" data-nstest-icon="arrow-d">Down</a>
-               </div>
-       </div>
-
- <h2>Mini Form Elements</h2>
-
-    <label for="name">Text Input:</label>
-    <input type="text" name="name" id="name" value="" data-nstest-mini="true" />
-
-       <label for="textarea">Textarea:</label>
-       <textarea cols="40" rows="8" name="textarea" id="textarea" data-nstest-mini="true"></textarea>
-
-    <label for="search">Search Input:</label>
-    <input type="search" name="password" id="search" value="" data-nstest-mini="true" />
-
-       <label for="slider2">Flip switch:</label>
-       <select name="slider2" id="slider2" data-nstest-role="slider" data-nstest-mini="true">
-               <option value="off">Off</option>
-               <option value="on">On</option>
-       </select>
-
-       <div data-nstest-role="fieldcontain">
-               <label for="slider">Slider:</label>
-               <input type="range" name="slider" id="slider" value="50" min="0" max="100" data-nstest-highlight="true" data-nstest-mini="true" />
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-       <fieldset data-nstest-role="controlgroup" data-nstest-mini="true">
-               <!-- Mini set on controlgroup -->
-
-               <legend>Choose as many snacks as you'd like:</legend>
-               <input type="checkbox" name="checkbox-1a" id="checkbox-1a" class="custom" />
-               <label for="checkbox-1a">Cheetos</label>
-
-               <input type="checkbox" name="checkbox-2a" id="checkbox-2a" class="custom" />
-               <label for="checkbox-2a">Doritos</label>
-
-               <input type="checkbox" name="checkbox-3a" id="checkbox-3a" class="custom" />
-               <label for="checkbox-3a">Fritos</label>
-
-               <input type="checkbox" name="checkbox-4a" id="checkbox-4a" class="custom" />
-               <label for="checkbox-4a">Sun Chips</label>
-      </fieldset>
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-       <fieldset data-nstest-role="controlgroup" data-nstest-type="horizontal" data-nstest-mini="true">
-
-       <legend>Font styling:</legend>
-       <input type="checkbox" name="checkbox-6" id="checkbox-6" class="custom" />
-               <label for="checkbox-6">b</label>
-
-               <input type="checkbox" name="checkbox-7" id="checkbox-7" class="custom" />
-               <label for="checkbox-7"><em>i</em></label>
-
-               <input type="checkbox" name="checkbox-8" id="checkbox-8" class="custom" />
-               <label for="checkbox-8">u</label>
-      </fieldset>
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-               <input type="checkbox" name="radio-gaga" id="radio-gaga" value="choice-1" data-nstest-mini="true" data-nstest-mini="true" />
-           <label for="radio-gaga">Unchecked by Default</label>
-
-               <input type="checkbox" name="radio-googoo" id="radio-googoo" value="choice-1" data-nstest-mini="true" checked="checked" data-nstest-mini="true" />
-           <label for="radio-googoo">Checked by Default</label>
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-           <fieldset data-nstest-role="controlgroup" data-nstest-theme="c" >
-                       <!-- Mini set on individual elements. -->
-
-               <legend>Choose a pet:</legend>
-                       <input type="radio" name="radio-choice-1" id="radio-choice-1" value="choice-1" checked="checked" />
-                       <label for="radio-choice-1">Cat</label>
-
-                       <input type="radio" name="radio-choice-1" id="radio-choice-2" value="choice-2" data-nstest-mini="true"/>
-                       <label for="radio-choice-2">Dog</label>
-
-                       <input type="radio" name="radio-choice-1" id="radio-choice-3" value="choice-3" />
-                       <label for="radio-choice-3">Hamster</label>
-
-                       <input type="radio" name="radio-choice-1" id="radio-choice-4" value="choice-4" />
-                       <label for="radio-choice-4">Lizard</label>
-           </fieldset>
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-           <fieldset data-nstest-role="controlgroup" data-nstest-type="horizontal">
-               <legend>Layout view:</legend>
-                       <input type="radio" name="radio-choice-b" id="radio-choice-c" value="on" checked="checked" />
-                       <label for="radio-choice-c">List</label>
-                       <input type="radio" name="radio-choice-b" id="radio-choice-d" value="off" />
-                       <label for="radio-choice-d">Grid</label>
-                       <input type="radio" name="radio-choice-b" id="radio-choice-e" value="other" />
-                       <label for="radio-choice-e">Gallery</label>
-           </fieldset>
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-               <label for="select-choice-1" class="select">Choose shipping method:</label>
-               <select name="select-choice-1" id="select-choice-1">
-                       <option value="standard">Standard: 7 day</option>
-                       <option value="rush">Rush: 3 days</option>
-                       <option value="express">Express: next day</option>
-                       <option value="overnight">Overnight</option>
-               </select>
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-               <label for="select-choice-3" class="select">Your state:</label>
-               <select name="select-choice-3" id="select-choice-3">
-                       <option value="AL">Alabama</option>
-                       <option value="AK">Alaska</option>
-                       <option value="AZ">Arizona</option>
-                       <option value="AR">Arkansas</option>
-                       <option value="CA">California</option>
-               </select>
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-               <label for="select-choice-a" class="select">Choose shipping method:</label>
-               <select name="select-choice-a" id="select-choice-a" data-nstest-native-menu="false">
-                       <option>Custom menu example</option>
-                       <option value="standard">Standard: 7 day</option>
-                       <option value="rush">Rush: 3 days</option>
-                       <option value="express">Express: next day</option>
-                       <option value="overnight">Overnight</option>
-               </select>
-       </div>
-
-       <div data-nstest-role="footer" id="control-group-footer" class="ui-bar" data-nstest-position="inline">
-               <div data-nstest-role="controlgroup" data-nstest-type="horizontal">
-                       <a href="index.html" data-nstest-icon="delete">Remove</a>
-                       <a href="index.html" data-nstest-icon="plus">Add</a>
-                       <a href="index.html" data-nstest-icon="arrow-u">Up</a>
-                       <a href="index.html" data-nstest-icon="arrow-d">Down</a>
-               </div>
-       </div>
-
-
-               <h2>Simple list</h2>
-
-               <ul data-nstest-role="listview">
-                       <li><a href="index.html">Acura</a></li>
-                       <li><a href="index.html">Audi</a></li>
-                       <li><a href="index.html">BMW</a></li>
-               </ul>
-
-               <h2>Mini list</h2>
-               <ul data-nstest-role="listview" data-nstest-mini="true">
-                       <li><a href="index.html">Cooper</a></li>
-                       <li><a href="index.html">Cooper S</a></li>
-                       <li><a href="index.html">Clubman</a></li>
-               </ul>
-
-               <h2>Individual mini item</h2>
-               <ul data-nstest-role="listview">
-                       <li><a href="index.html">Cooper</a></li>
-                       <li data-nstest-mini="true"><a href="index.html">Cooper S</a></li>
-                       <li><a href="index.html">Clubman</a></li>
-               </ul>
-
-
-
-
-       <h2>Count bubbles</h2>
-       <ul data-nstest-role="listview">
-               <li><a href="index.html">Inbox <span class="ui-li-count">12</span></a></li>
-                       <li><a href="index.html">Outbox <span class="ui-li-count">0</span></a></li>
-                       <li><a href="index.html">Drafts <span class="ui-li-count">4</span></a></li>
-                       <li><a href="index.html">Sent <span class="ui-li-count">328</span></a></li>
-                       <li><a href="index.html">Trash <span class="ui-li-count">62</span></a></li>
-       </ul>
-
-       <h2>Numbered list</h2>
-               <ol data-nstest-role="listview">
-                       <li><a href="index.html">The Godfather</a></li>
-                       <li><a href="index.html">Inception</a></li>
-                       <li><a href="index.html">The Good, the Bad and the Ugly </a></li>
-                       <li><a href="index.html">Pulp Fiction</a></li>
-                       <li><a href="index.html">Schindler's List</a></li>
-               </ol>
-
-       <h2>Divided, formatted content</h2>
-       <ul data-nstest-role="listview">
-               <li><a href="index.html">
-                       <h3>Stephen Weber</h3>
-                       <p><strong>You've been invited to a meeting at Filament Group in Boston, MA</strong></p>
-                       <p>Hey Stephen, if you're available at 10am tomorrow, we've got a meeting with the jQuery team.</p>
-                       <p class="ui-li-aside"><strong>6:24</strong>PM</p>
-               </a></li>
-               <li><a href="index.html">
-                       <h3>jQuery Team</h3>
-                       <p><strong>Boston Conference Planning</strong></p>
-                       <p>In preparation for the upcoming conference in Boston, we need to start gathering a list of sponsors and speakers.</p>
-                       <p class="ui-li-aside"><strong>9:18</strong>AM</p>
-               </a></li>
-       </ul>
-
-
-
-       <h2>Icon list</h2>
-       <ul data-nstest-role="listview" data-nstest-theme="a">
-               <li><a href="index.html"><img src="../../../docs/lists/../../../docs/lists/images/gf.png" alt="France" class="ui-li-icon">France <span class="ui-li-count">4</span></a></li>
-               <li><a href="index.html"><img src="../../../docs/lists/images/de.png" alt="Germany" class="ui-li-icon">Germany <span class="ui-li-count">4</span></a></li>
-               <li data-nstest-theme="b"><a href="index.html"><img src="../../../docs/lists/images/gb.png" alt="Great Britain" class="ui-li-icon">Great Britain <span class="ui-li-count">0</span></a></li>
-               <li><a href="index.html"><img src="../../../docs/lists/images/fi.png" alt="Finland" class="ui-li-icon">Finland <span class="ui-li-count">12</span></a></li>
-               <li><a href="index.html"><img src="../../../docs/lists/images/sj.png" alt="Norway" class="ui-li-icon">Norway <span class="ui-li-count">328</span></a></li>
-               <li><a href="index.html"><img src="../../../docs/lists/images/us.png" alt="United States" class="ui-li-icon">United States <span class="ui-li-count">62</span></a></li>
-       </ul>
-
-       <h2>Thumbnail, split button list</h2>
-
-               <ul data-nstest-role="listview">
-                       <li><a href="index.html">
-                       <img src="../../../docs/lists/images/album-bb.jpg" />
-                       <h3>Broken Bells</h3>
-                       <p>Broken Bells</p>
-                       </a><a href="lists-split-purchase.html" data-nstest-rel="dialog" data-nstest-transition="slideup">Purchase album
-               </a></li>
-               <li><a href="index.html">
-                       <img src="../../../docs/lists/images/album-hc.jpg" />
-                       <h3>Warning</h3>
-                       <p>Hot Chip</p>
-               </a><a href="lists-split-purchase.html" data-nstest-rel="dialog" data-nstest-transition="slideup">Purchase album
-               </a></li>
-               <li><a href="index.html">
-                       <img src="../../../docs/lists/images/album-p.jpg" />
-                       <h3>Wolfgang Amadeus Phoenix</h3>
-                       <p>Phoenix</p>
-                       </a><a href="lists-split-purchase.html" data-nstest-rel="dialog" data-nstest-transition="slideup">Purchase album
-               </a></li>
-               </ul>
-
-       <h2>Divided, filterable list</h2>
-               <ul data-nstest-role="listview" data-nstest-filter="true">
-                       <li data-nstest-role="list-divider">A</li>
-                       <li><a href="index.html">Adam Kinkaid</a></li>
-                       <li><a href="index.html">Alex Wickerham</a></li>
-                       <li><a href="index.html">Avery Johnson</a></li>
-                       <li data-nstest-role="list-divider">B</li>
-                       <li><a href="index.html">Bob Cabot</a></li>
-                       <li data-nstest-role="list-divider">C</li>
-                       <li><a href="index.html">Caleb Booth</a></li>
-                       <li><a href="index.html">Christopher Adams</a></li>
-               </ul>
-
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/kitchensink/kitchensink_core.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/kitchensink/kitchensink_core.js
deleted file mode 100644 (file)
index 8f31310..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-/*
- * Kitchen Sink Tests
- */
-(function($){
-       module("kitchen sink class test");
-
-       test( "Nothing on the page has a class that contains `undefined`.", function(){
-               var undefClass = $(".ui-page").find("[class*='undefined']");
-
-               ok( undefClass.length == 0 );
-       });
-
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/cache-tests/cached-nested.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/cache-tests/cached-nested.html
deleted file mode 100644 (file)
index c6fbcdf..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-  <head>
-    <meta charset="utf-8">
-  </head>
-  <body>
-    <div data-nstest-role="page" id='cached-nested-list' data-nstest-dom-cache="true">
-      <div data-nstest-role="header" data-nstest-position="inline">
-        <h1>Basic multiple lists view</h1>
-      </div>
-      <div data-nstest-role="content">
-        <ul data-nstest-role="listview" data-nstest-inset="true" id="topmost">
-          <li>Item 1</li>
-          <li>Item 2</li>
-          <li>Item 3
-            <ul data-nstest-role="listview">
-              <li>Item A-3-0</li>
-              <li>Item A-3-1</li>
-              <li>Item A-3-2</li>
-            </ul>
-          </li>
-        </ul>
-        <ul data-nstest-role="listview" data-nstest-inset="true">
-          <li>Item 1</li>
-          <li>Item 2</li>
-          <li>Item 3
-            <ul data-nstest-role="listview">
-              <li>Item B-3-0
-                <ul data-nstest-role="listview">
-                  <li>Item B-3-0-0</li>
-                  <li>Item B-3-0-1
-                    <ul data-nstest-role="listview">
-                      <li>Item B-3-0-1-0</li>
-                      <li>Item B-3-0-1-1</li>
-                      <li>Item B-3-0-1-2</li>
-                    </ul>
-                  </li>
-                  <li>Item B-3-0-2</li>
-                </ul>
-              </li>
-              <li>Item B-3-1
-                <ul data-nstest-role="listview">
-                  <li>Item B-3-1-0</li>
-                  <li>Item B-3-1-1</li>
-                  <li>Item B-3-1-2</li>
-                </ul>
-              </li>
-              <li>Item B-3-2</li>
-            </ul>
-          </li>
-        </ul>
-      </div>
-    </div>
-  </body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/cache-tests/clear.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/cache-tests/clear.html
deleted file mode 100644 (file)
index c86bd96..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-</head>
-<body>
-  <div data-nstest-role="page" id="clear">
-    <div data-nstest-role="content">
-      cleared
-    </div>
-  </div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/cache-tests/uncached-nested.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/cache-tests/uncached-nested.html
deleted file mode 100644 (file)
index 4a3e8d6..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-  <head>
-    <meta charset="utf-8">
-  </head>
-  <body>
-    <div data-nstest-role="page" id='uncached-nested-list'>
-      <div data-nstest-role="header" data-nstest-position="inline">
-        <h1>Basic multiple lists view</h1>
-      </div>
-      <div data-nstest-role="content">
-        <ul data-nstest-role="listview" data-nstest-inset="true" id="topmost">
-          <li>Item 1</li>
-          <li>Item 2</li>
-          <li>Item 3
-            <ul data-nstest-role="listview">
-              <li>Item A-3-0</li>
-              <li>Item A-3-1</li>
-              <li>Item A-3-2</li>
-            </ul>
-          </li>
-        </ul>
-        <ul data-nstest-role="listview" data-nstest-inset="true">
-          <li>Item 1</li>
-          <li>Item 2</li>
-          <li>Item 3
-            <ul data-nstest-role="listview">
-              <li>Item B-3-0
-                <ul data-nstest-role="listview">
-                  <li>Item B-3-0-0</li>
-                  <li>Item B-3-0-1
-                    <ul data-nstest-role="listview">
-                      <li>Item B-3-0-1-0</li>
-                      <li>Item B-3-0-1-1</li>
-                      <li>Item B-3-0-1-2</li>
-                    </ul>
-                  </li>
-                  <li>Item B-3-0-2</li>
-                </ul>
-              </li>
-              <li>Item B-3-1
-                <ul data-nstest-role="listview">
-                  <li>Item B-3-1-0</li>
-                  <li>Item B-3-1-1</li>
-                  <li>Item B-3-1-2</li>
-                </ul>
-              </li>
-              <li>Item B-3-2</li>
-            </ul>
-          </li>
-        </ul>
-      </div>
-    </div>
-  </body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/index.html
deleted file mode 100644 (file)
index 0317c4a..0000000
+++ /dev/null
@@ -1,363 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile Listview Integration Test</title>
-
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../jquery.testHelper.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [
-                               "jquery.mobile.navigation",
-                               "jquery.mobile.listview",
-                               "jquery.mobile.listview.filter",
-                       ],
-                       [ "jquery.mobile.init" ],
-                       [
-                               "listview_core.js"
-                       ]
-               ]);
-       </script>
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css" />
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Listview Integration Test</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<!-- Basic Linked view test -->
-<div data-nstest-role="page" id='basic-linked-test'>
-       <div data-nstest-role="header" data-nstest-position="inline">
-               <h1>Basic List View</h1>
-       </div>
-       <div data-nstest-role="content">
-               <ul data-nstest-role="listview">
-                       <li><a href="#basic-link-results">Home</a></li>
-                       <li><a href="#basic-link-results">Back</a></li>
-                       <li><a href="#basic-link-results">Return</a></li>
-                       <li><a href="#nested-list-test" id="nested-list-test-anchor">Nested List Test</a></li>
-               </ul>
-       </div>
-  <a href="cache-tests/nested.html" id="cached-tests"></a>
-</div>
-
-<div data-nstest-role='page' id='basic-link-results'>
-       <div data-nstest-role="header" data-nstest-position="inline">
-               <h1>Results</h1>
-       </div>
-</div>
-
-<!-- Nested List -->
-<div data-nstest-role="page" id='nested-list-test'>
-       <div data-nstest-role="header" data-nstest-position="inline">
-               <h1>Basic List View</h1>
-       </div>
-       <div data-nstest-role="content">
-               <ul data-nstest-role="listview">
-                       <li>Groups of animals
-                               <ul>
-                                       <li>pod of whales</li>
-                                       <li>quiver of cobras</li>
-                                       <li>troop of baboons</li>
-                               </ul>
-                       </li>
-                       <li class="linebreaknode">
-
-                       More animals
-
-
-                               <ul>
-                                       <li>Shoal of Bass</li>
-                                       <li>Rhumba of rattlesnakes</li>
-                               </ul>
-                       </li>
-               </ul>
-       </div>
-</div>
-
-
-<div data-nstest-role="page" id='nested-lists-test'>
-       <div data-nstest-role="header" data-nstest-position="inline">
-               <h1>Basic multiple lists view</h1>
-       </div>
-    <div data-nstest-role="content">
-        <ul data-nstest-role="listview" data-nstest-inset="true">
-            <li>Item 1</li>
-            <li>Item 2</li>
-            <li>Item 3
-                <ul data-nstest-role="listview">
-                    <li>Item A-3-0</li>
-                    <li>Item A-3-1</li>
-                    <li>Item A-3-2</li>
-                </ul>
-            </li>
-        </ul>
-        <ul data-nstest-role="listview" data-nstest-inset="true">
-            <li>Item 1</li>
-            <li>Item 2</li>
-            <li>Item 3
-                <ul data-nstest-role="listview">
-                    <li>Item B-3-0
-                        <ul data-nstest-role="listview">
-                                                       <li>Item B-3-0-0</li>
-                                                       <li>Item B-3-0-1
-                                                               <ul data-nstest-role="listview">
-                                                                       <li>Item B-3-0-1-0</li>
-                                                                       <li>Item B-3-0-1-1</li>
-                                                                       <li>Item B-3-0-1-2</li>
-                                                               </ul>
-                                                       </li>
-                                                       <li>Item B-3-0-2</li>
-                                               </ul>
-                    </li>
-                    <li>Item B-3-1
-                                               <ul data-nstest-role="listview">
-                                                       <li>Item B-3-1-0</li>
-                                                       <li>Item B-3-1-1</li>
-                                                       <li>Item B-3-1-2</li>
-                                               </ul>
-                    </li>
-                    <li>Item B-3-2</li>
-                </ul>
-            </li>
-        </ul>
-    </div>
-</div>
-
-<!-- Numbered List -->
-<div data-nstest-role="page" id='numbered-list-test'>
-       <div data-nstest-role="header" data-nstest-position="inline">
-               <h1>Basic List View</h1>
-       </div>
-       <div data-nstest-role="content">
-                       <ol data-nstest-role="listview">
-                               <li><a href="#numbered-list-results">Number 1</a></li>
-                               <li><a href="#numbered-list-results">Number 2</a></li>
-                               <li><a href="#numbered-list-results">Number 3</a></li>
-                       </ol>
-       </div>
-</div>
-
-<div data-nstest-role='page' id='numbered-list-results'>
-       <div data-nstest-role="header" data-nstest-position="inline">
-               <h1>Numbered List</h1>
-       </div>
-</div>
-
-<!-- Read only List -->
-<div data-nstest-role="page" id='read-only-list-test'>
-       <div data-nstest-role="header" data-nstest-position="inline">
-               <h1>Basic List View</h1>
-       </div>
-       <div data-nstest-role="content">
-               <ul data-nstest-role="listview">
-                       <li>Read</li>
-                       <li>Only</li>
-                       <li>List</li>
-                       <li>View</li>
-               </ul>
-       </div>
-</div>
-
-<!-- Split listview -->
-<div data-nstest-role="page" id='split-list-test'>
-       <div data-nstest-role="header" data-nstest-position="inline">
-               <h1>Split List View</h1>
-       </div>
-       <div data-nstest-role="content">
-               <ul data-nstest-role="listview">
-                       <li>
-                               <a href="#split-list-link1">link one</a>
-                               <a href="#split-list-link2">link second</a>
-                       </li>
-                       <li>
-                               <a href="#split-list-link1">link one</a>
-                               <a href="#split-list-link2">link second</a>
-                       </li>
-                       <li>
-                               <a href="#split-list-link1">link one</a>
-                               <a href="#split-list-link2">link second</a>
-                       </li>
-               </ul>
-       </div>
-</div>
-
-<div data-nstest-role="page" id='split-list-link1'>
-       <div data-nstest-role="header" data-nstest-position="inline">
-               <h1>Split List view 1</h1>
-       </div>
-</div>
-
-<div data-nstest-role="page" id='split-list-link2'>
-       <div data-nstest-role="header" data-nstest-position="inline">
-               <h1>Split List view 2</h1>
-       </div>
-</div>
-
-<!-- List divider -->
-<div data-nstest-role="page" id='list-divider-test'>
-       <div data-nstest-role="header" data-nstest-position="inline">
-               <h1>List Divider Test</h1>
-       </div>
-       <div data-nstest-role="content">
-               <ul data-nstest-role="listview">
-                       <li>a is for aquaman</li>
-                       <li>b is for batman</li>
-                       <li data-nstest-role="list-divider">This is a list divider</li>
-                       <li>c is for catwoman</li>
-                       <li data-nstest-role="list-divider">This is another list divider</li>
-                       <li>d is for darkwing</li>
-               </ul>
-       </div>
-</div>
-
-<!-- Search bar filter -->
-<div data-nstest-role="page" id='search-filter-test'>
-       <div data-nstest-role="header" data-nstest-position="inline">
-               <h1>Split List View</h1>
-       </div>
-       <div data-nstest-role="content">
-               <ul data-nstest-role="listview" data-nstest-filter="true">
-                       <li>a is for aquaman</li>
-                       <li>b is for batman</li>
-                       <li>c is for catwoman</li>
-                       <li>d is for darkwing</li>
-               </ul>
-       </div>
-</div>
-
-<!-- Search bar filter with list-dividers -->
-<div data-nstest-role="page" id='search-filter-with-dividers-test'>
-       <div data-nstest-role="header" data-nstest-position="inline">
-               <h1>Split List View</h1>
-       </div>
-       <div data-nstest-role="content">
-               <ul data-nstest-role="listview" data-nstest-filter="true">
-                       <li data-nstest-role="list-divider">a</li>
-                       <li>a is for aquaman</li>
-                       <li data-nstest-role="list-divider">b</li>
-                       <li>b is for batman</li>
-                       <li data-nstest-role="list-divider">c</li>
-                       <li>c is for catwoman</li>
-                       <li data-nstest-role="list-divider">d</li>
-                       <li>d is for darkwing</li>
-               </ul>
-       </div>
-</div>
-
-<!-- Search bar filter inset -->
-<div data-nstest-role="page" id='search-filter-inset-test'>
-       <div data-nstest-role="header" data-nstest-position="inline">
-               <h1>Inset Filter List View</h1>
-       </div>
-       <div data-nstest-role="content">
-               <ul data-nstest-role="listview" data-nstest-filter="true" data-nstest-inset="true">
-                       <li>a is for aquaman</li>
-                       <li>b is for batman</li>
-                       <li>c is for catwoman</li>
-                       <li>d is for darkwing</li>
-               </ul>
-       </div>
-</div>
-
-<!-- Programmatically generated list items !-->
-<div data-nstest-role="page" id="programmatically-generated-list">
-       <ul data-nstest-role="listview" data-nstest-inset="true" id="programmatically-generated-list-items"></ul>
-</div>
-
-<!-- Removing items from list -->
-<div data-nstest-role="page" id='removing-items-from-list-test'>
-       <div data-nstest-role="header" data-nstest-position="inline">
-               <h1>Basic List View</h1>
-       </div>
-       <div data-nstest-role="content">
-               <ul data-nstest-role="listview" data-nstest-inset="true">
-                       <li>Item 1</li>
-                       <li>Item 2</li>
-                       <li>Item 3</li>
-                       <li>Item 4</li>
-               </ul>
-       </div>
-</div>
-
-<!-- Rounded corners inset list with variable items -->
-<div data-nstest-role="page" id='corner-rounded-test'>
-       <div data-nstest-role="header" data-nstest-position="inline">
-               <h1>Basic List View</h1>
-       </div>
-       <div data-nstest-role="content">
-               <ul data-nstest-role="listview" data-nstest-inset="true">
-               </ul>
-       </div>
-</div>
-
-<div data-nstest-role="page" id="enhancetest">
-       <ul data-nstest-role="listview">
-               <li><a href="#basic-link-results">Home</a></li>
-               <li><a href="#basic-link-results">Back</a></li>
-               <li><a href="#basic-link-results">Return</a></li>
-       </ul>
-</div>
-
-<div id="list-theme-inherit" data-nstest-theme="b">
-  <ul data-nstest-role="listview">
-    <li>foo</li>
-  </ul>
-</div>
-
-<div data-nstest-role="page" id="ui-li-has-test">
-  <div data-nstest-role="content">
-       <p>Right padding on item 1 is OK (75px).</p>
-       <p>Right padding on items 2 &amp; 3 should probably be around 30 or 35 (not 25).</p>
-       <p>Right padding on item 4 should be 15px to match the left side.</p>
-       <ol data-nstest-role="listview" data-nstest-inset="true">
-         <li><a href="#">Link LI with counter --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<span class="ui-li-count">123</span></a></li>
-         <li><a href="#">Link LI without counter -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</a></li>
-         <li><a href="#page1">Page1 Link LI without counter -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</a><a href="#page2"></a></li>
-         <li>Static LI with counter ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<span class="ui-li-count">123</span></li>
-         <li>Static LI without counter ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</li>
-       </ol>
-  </div>
-</div>
-
-
-<div id="list-inset-filter-prototype" data-nstest-theme="b">
-       <ul data-nstest-role="listview" data-nstest-filter="true">
-               <li>foo</li>
-               <li>bar</li>
-       </ul>
-</div>
-
-<div id="list-inset-filter-data-attr" data-nstest-theme="b">
-       <ul data-nstest-role="listview" data-nstest-filter="true" data-nstest-inset="true">
-               <li>foo</li>
-               <li>bar</li>
-       </ul>
-</div>
-
-
-<div data-nstest-role="page" id="split-list-icon">
-       <div data-nstest-role="content">
-               <ul data-nstest-role="listview" data-nstest-split-icon="delete">
-                       <li data-nstest-icon="star"><a href="#">Star</a><a href="#">Star</a></li>
-                       <li data-nstest-icon="plug"><a href="#">Plus</a><a href="#">Plus</a></li>
-                       <li><a href="#">Default</a><a href="#">Default</a></li>
-      <!-- respect the child element icon -->
-                       <li data-nstest-icon="star"><a href="#">Default</a><a data-nstest-icon="plug" href="#">Default</a></li>
-               </ul>
-       </div>
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/listview_core.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/listview_core.js
deleted file mode 100644 (file)
index 7652c8b..0000000
+++ /dev/null
@@ -1,857 +0,0 @@
-/*
- * mobile listview unit tests
- */
-
-// TODO split out into seperate test files
-(function($){
-       var home = $.mobile.path.parseUrl( location.href ).pathname + location.search,
-               insetVal = $.mobile.listview.prototype.options.inset;
-
-       $.mobile.defaultTransition = "none";
-
-       module( "Basic Linked list", {
-               setup: function(){
-                       if( location.hash != "#basic-linked-test" ){
-                               stop();
-
-                               $(document).one("pagechange", function() {
-                                       start();
-                               });
-
-                               $.mobile.changePage( home );
-                       }
-               },
-
-               teardown: function() {
-                       $.mobile.listview.prototype.options.inset = insetVal;
-               }
-       });
-
-       asyncTest( "The page should enhanced correctly", function(){
-               setTimeout(function() {
-                       ok($('#basic-linked-test .ui-li').length, ".ui-li classes added to li elements");
-                       start();
-               }, 800);
-       });
-
-       asyncTest( "Slides to the listview page when the li a is clicked", function() {
-               $.testHelper.pageSequence([
-                       function(){
-                               $.mobile.changePage("#basic-linked-test");
-                       },
-
-                       function(){
-                               $('#basic-linked-test li a').first().click();
-                       },
-
-                       function(){
-                               ok($('#basic-link-results').hasClass('ui-page-active'));
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "Slides back to main page when back button is clicked", function() {
-               $.testHelper.pageSequence([
-                       function(){
-                               $.mobile.changePage("#basic-link-results");
-                       },
-
-                       function(){
-                               window.history.back();
-                       },
-
-                       function(){
-                               ok($('#basic-linked-test').hasClass('ui-page-active'));
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "Presence of ui-li-has- classes", function(){
-               $.testHelper.pageSequence( [
-                       function() {
-                               $.mobile.changePage( "#ui-li-has-test" );
-                       },
-
-                       function() {
-                               var page = $( ".ui-page-active" ),
-                                       items = page.find( "li" );
-
-                               ok(  items.eq( 0 ).hasClass( "ui-li-has-count"), "First LI should have ui-li-has-count class" );
-                               ok(  items.eq( 0 ).hasClass( "ui-li-has-arrow"), "First LI should have ui-li-has-arrow class" );
-                               ok( !items.eq( 1 ).hasClass( "ui-li-has-count"), "Second LI should NOT have ui-li-has-count class" );
-                               ok(  items.eq( 1 ).hasClass( "ui-li-has-arrow"), "Second LI should have ui-li-has-arrow class" );
-                               ok( !items.eq( 2 ).hasClass( "ui-li-has-count"), "Third LI should NOT have ui-li-has-count class" );
-                               ok( !items.eq( 2 ).hasClass( "ui-li-has-arrow"), "Third LI should NOT have ui-li-has-arrow class" );
-                               ok(  items.eq( 3 ).hasClass( "ui-li-has-count"), "Fourth LI should have ui-li-has-count class" );
-                               ok( !items.eq( 3 ).hasClass( "ui-li-has-arrow"), "Fourth LI should NOT have ui-li-has-arrow class" );
-                               ok( !items.eq( 4 ).hasClass( "ui-li-has-count"), "Fifth LI should NOT have ui-li-has-count class" );
-                               ok( !items.eq( 4 ).hasClass( "ui-li-has-arrow"), "Fifth LI should NOT have ui-li-has-arrow class" );
-                               start();
-                       }
-               ]);
-       });
-
-       module('Nested List Test');
-
-       asyncTest( "Changes page to nested list test and enhances", function() {
-               $.testHelper.pageSequence([
-                       function(){
-                               $.mobile.changePage("#nested-list-test");
-                       },
-
-                       function(){
-                               ok($('#nested-list-test').hasClass('ui-page-active'), "makes nested list test page active");
-                               ok($(':jqmData(url="nested-list-test&ui-page=0-0")').length == 1, "Adds first UL to the page");
-                               ok($(':jqmData(url="nested-list-test&ui-page=0-1")').length == 1, "Adds second nested UL to the page");
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "change to nested page when the li a is clicked", function() {
-
-               $.testHelper.pageSequence([
-                       function(){
-                               $.mobile.changePage("#nested-list-test");
-                       },
-
-                       function(){
-                               $('.ui-page-active li:eq(1) a:eq(0)').click();
-                       },
-
-                       function(){
-                               var $new_page = $(':jqmData(url="nested-list-test&ui-page=0-0")');
-
-                               ok($new_page.hasClass('ui-page-active'), 'Makes the nested page the active page.');
-                               ok($('.ui-listview', $new_page).find(":contains('Rhumba of rattlesnakes')").length == 1, "The current page should have the proper text in the list.");
-                               ok($('.ui-listview', $new_page).find(":contains('Shoal of Bass')").length == 1, "The current page should have the proper text in the list.");
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "should go back to top level when the back button is clicked", function() {
-               $.testHelper.pageSequence([
-                       function(){
-                               $.mobile.changePage("#nested-list-test&ui-page=0-0");
-                       },
-
-                       function(){
-                               window.history.back();
-                       },
-
-                       function(){
-                               ok($('#nested-list-test').hasClass('ui-page-active'), 'Transitions back to the parent nested page');
-                               start();
-                       }
-               ]);
-       });
-
-       test( "nested list title should use first text node, regardless of line breaks", function(){
-               // NOTE this is a super fragile reference to the nested page, any change to the list will break it
-               ok($(":jqmData(url='nested-list-test&ui-page=0-0') .ui-title").text() === "More animals", 'Text should be "More animals"');
-       });
-
-       asyncTest( "Multiple nested lists on a page with same labels", function() {
-               $.testHelper.pageSequence([
-                       function(){
-                               // https://github.com/jquery/jquery-mobile/issues/1617
-                               $.mobile.changePage("#nested-lists-test");
-                       },
-
-                       function(){
-                               // Click on the link of the third li element
-                               $('.ui-page-active li:eq(2) a:eq(0)').click();
-                       },
-
-                       function(){
-                               equal($('.ui-page-active .ui-content .ui-listview li').text(), "Item A-3-0Item A-3-1Item A-3-2", 'Text should be "Item A-3-0Item A-3-1Item A-3-2"');
-                               start();
-                       }
-               ]);
-       });
-
-       module('Ordered Lists');
-
-       asyncTest( "changes to the numbered list page and enhances it", function() {
-               $.testHelper.pageSequence([
-                       function(){
-                               $.mobile.changePage("#numbered-list-test");
-                       },
-
-                       function(){
-                               var $new_page = $('#numbered-list-test');
-                               ok($new_page.hasClass('ui-page-active'), "Makes the new page active when the hash is changed.");
-                               ok($('.ui-link-inherit', $new_page).first().text() == "Number 1", "The text of the first LI should be Number 1");
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "changes to number 1 page when the li a is clicked", function() {
-               $.testHelper.pageSequence([
-                       function(){
-                               $('#numbered-list-test li a').first().click();
-                       },
-
-                       function(){
-                               ok($('#numbered-list-results').hasClass('ui-page-active'), "The new numbered page was transitioned correctly.");
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "takes us back to the numbered list when the back button is clicked", function() {
-               $.testHelper.pageSequence([
-                       function(){
-                               $.mobile.changePage('#numbered-list-test');
-                       },
-
-                       function(){
-                               $.mobile.changePage('#numbered-list-results');
-                       },
-
-                       function(){
-                               window.history.back();
-                       },
-
-                       function(){
-                               ok($('#numbered-list-test').hasClass('ui-page-active'));
-                               start();
-                       }
-               ]);
-       });
-
-       module('Read only list');
-
-       asyncTest( "changes to the read only page when hash is changed", function() {
-               $.testHelper.pageSequence([
-                       function(){
-                               $.mobile.changePage("#read-only-list-test");
-                       },
-
-                       function(){
-                               var $new_page = $('#read-only-list-test');
-                               ok($new_page.hasClass('ui-page-active'), "makes the read only page the active page");
-                               ok($('li', $new_page).first().text() === "Read", "The first LI has the proper text.");
-                               start();
-                       }
-               ]);
-       });
-
-       module('Split view list');
-
-       asyncTest( "changes the page to the split view list and enhances it correctly.", function() {
-               $.testHelper.pageSequence([
-                       function(){
-                               $.mobile.changePage("#split-list-test");
-                       },
-
-                       function(){
-                               var $new_page = $('#split-list-test');
-                               ok($('.ui-li-link-alt', $new_page).length == 3);
-                               ok($('.ui-link-inherit', $new_page).length == 3);
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "change the page to the split view page 1 when the first link is clicked", function() {
-               $.testHelper.pageSequence([
-                       function(){
-                               $.mobile.changePage("#split-list-test");
-                       },
-
-                       function(){
-                               $('.ui-page-active .ui-li a:eq(0)').click();
-                       },
-
-                       function(){
-                               ok($('#split-list-link1').hasClass('ui-page-active'));
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "Slide back to the parent list view when the back button is clicked", function() {
-               $.testHelper.pageSequence([
-                       function(){
-                               $.mobile.changePage("#split-list-test");
-                       },
-
-                       function(){
-                               $('.ui-page-active .ui-listview a:eq(0)').click();
-                       },
-
-                       function(){
-                               history.back();
-                       },
-
-                       function(){
-                               ok($('#split-list-test').hasClass('ui-page-active'));
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "Clicking on the icon (the second link) should take the user to other a href of this LI", function() {
-               $.testHelper.pageSequence([
-                       function(){
-                               $.mobile.changePage("#split-list-test");
-                       },
-
-                       function(){
-                               $('.ui-page-active .ui-li-link-alt:eq(0)').click();
-                       },
-
-                       function(){
-                               ok($('#split-list-link2').hasClass('ui-page-active'));
-                               start();
-                       }
-               ]);
-       });
-
-       module( "List Dividers" );
-
-       asyncTest( "Makes the list divider page the active page and enhances it correctly.", function() {
-               $.testHelper.pageSequence([
-                       function(){
-                               $.mobile.changePage("#list-divider-test");
-                       },
-
-                       function(){
-                               var $new_page = $('#list-divider-test');
-                               ok($new_page.find('.ui-li-divider').length == 2);
-                               ok($new_page.hasClass('ui-page-active'));
-                               start();
-                       }
-               ]);
-       });
-
-       module( "Search Filter");
-
-       var searchFilterId = "#search-filter-test";
-
-
-       asyncTest( "Filter downs results when the user enters information", function() {
-               var $searchPage = $(searchFilterId);
-               $.testHelper.pageSequence([
-                       function() {
-                               $.mobile.changePage(searchFilterId);
-                       },
-
-                       function() {
-                               $searchPage.find('input').val('at');
-                               $searchPage.find('input').trigger('change');
-
-                               same($searchPage.find('li.ui-screen-hidden').length, 2);
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "Redisplay results when user removes values", function() {
-               var $searchPage = $(searchFilterId);
-               $.testHelper.pageSequence([
-                       function() {
-                               $.mobile.changePage(searchFilterId);
-                       },
-
-                       function() {
-                               $searchPage.find('input').val('a');
-                               $searchPage.find('input').trigger('change');
-
-                               same($searchPage.find("li[style^='display: none;']").length, 0);
-                               start();
-                       }
-               ]);
-       });
-
-    asyncTest( "Filter works fine with \\W- or regexp-special-characters", function() {
-        var $searchPage = $(searchFilterId);
-        $.testHelper.pageSequence([
-            function() {
-                $.mobile.changePage(searchFilterId);
-            },
-
-            function() {
-                $searchPage.find('input').val('*');
-                $searchPage.find('input').trigger('change');
-
-                same($searchPage.find('li.ui-screen-hidden').length, 4);
-                start();
-            }
-        ]);
-    });
-
-       test( "Refresh applies thumb styling", function(){
-               var ul = $('.ui-page-active ul');
-
-               ul.append("<li id='fiz'><img/></li>");
-               ok(!ul.find("#fiz img").hasClass("ui-li-thumb"));
-               ul.listview('refresh');
-               ok(ul.find("#fiz img").hasClass("ui-li-thumb"));
-       });
-
-       asyncTest( "Filter downs results and dividers when the user enters information", function() {
-               var     $searchPage = $("#search-filter-with-dividers-test");
-               $.testHelper.pageSequence([
-                       function() {
-                               $.mobile.changePage("#search-filter-with-dividers-test");
-                       },
-
-                       // wait for the page to become active/enhanced
-                       function(){
-                               $searchPage.find('input').val('at');
-                               $searchPage.find('input').trigger('change');
-                               setTimeout(function() {
-                                       //there should be four hidden list entries
-                                       same($searchPage.find('li.ui-screen-hidden').length, 4);
-
-                                       //there should be two list entries that are list dividers and hidden
-                                       same($searchPage.find('li.ui-screen-hidden:jqmData(role=list-divider)').length, 2);
-
-                                       //there should be two list entries that are not list dividers and hidden
-                                       same($searchPage.find('li.ui-screen-hidden:not(:jqmData(role=list-divider))').length, 2);
-                                       start();
-                               }, 1000);
-                       }
-               ]);
-       });
-
-       asyncTest( "Redisplay results when user removes values", function() {
-               $.testHelper.pageSequence([
-                       function() {
-                               $.mobile.changePage("#search-filter-with-dividers-test");
-                       },
-
-                       function() {
-                               $('.ui-page-active input').val('a');
-                               $('.ui-page-active input').trigger('change');
-
-                               setTimeout(function() {
-                                       same($('.ui-page-active input').val(), 'a');
-                                       same($('.ui-page-active li[style^="display: none;"]').length, 0);
-                                       start();
-                               }, 1000);
-                       }
-               ]);
-       });
-
-       asyncTest( "Dividers are hidden when preceding hidden rows and shown when preceding shown rows", function () {
-               $.testHelper.pageSequence([
-                       function() {
-                               $.mobile.changePage("#search-filter-with-dividers-test");
-                       },
-
-                       function() {
-                               var $page = $('.ui-page-active');
-
-                               $page.find('input').val('at');
-                               $page.find('input').trigger('change');
-
-                               setTimeout(function() {
-                                       same($page.find('li:jqmData(role=list-divider):hidden').length, 2);
-                                       same($page.find('li:jqmData(role=list-divider):hidden + li:not(:jqmData(role=list-divider)):hidden').length, 2);
-                                       same($page.find('li:jqmData(role=list-divider):not(:hidden) + li:not(:jqmData(role=list-divider)):not([:hidden)').length, 2);
-                                       start();
-                               }, 1000);
-                       }
-               ]);
-       });
-
-       asyncTest( "Inset List View should refresh corner classes after filtering", 4 * 2, function () {
-               var checkClasses = function() {
-                       var $page = $( ".ui-page-active" ),
-                               $li = $page.find( "li:visible" );
-                       ok($li.first().hasClass( "ui-corner-top" ), $li.length+" li elements: First visible element should have class ui-corner-top");
-                       ok($li.last().hasClass( "ui-corner-bottom" ), $li.length+" li elements: Last visible element should have class ui-corner-bottom");
-               };
-
-               $.testHelper.pageSequence([
-                       function() {
-                               $.mobile.changePage("#search-filter-inset-test");
-                       },
-
-                       function() {
-                               var $page = $('.ui-page-active');
-                               $.testHelper.sequence([
-                                       function() {
-                                               checkClasses();
-
-                                               $page.find('input').val('man');
-                                               $page.find('input').trigger('change');
-                                       },
-
-                                       function() {
-                                               checkClasses();
-
-                                               $page.find('input').val('at');
-                                               $page.find('input').trigger('change');
-                                       },
-
-                                       function() {
-                                               checkClasses();
-
-                                               $page.find('input').val('catwoman');
-                                               $page.find('input').trigger('change');
-                                       },
-
-                                       function() {
-                                               checkClasses();
-                                               start();
-                                       }
-                               ], 50);
-                       }
-               ]);
-       });
-
-       module( "Programmatically generated list items", {
-               setup: function(){
-                       var item,
-                               data = [
-                                       {
-                                               id: 1,
-                                               label: "Item 1"
-                                       },
-                                       {
-                                               id: 2,
-                                               label: "Item 2"
-                                       },
-                                       {
-                                               id: 3,
-                                               label: "Item 3"
-                                       },
-                                       {
-                                               id: 4,
-                                               label: "Item 4"
-                                       }
-                               ];
-
-                       $( "#programmatically-generated-list-items" ).html("");
-
-                       for ( var i = 0, len = data.length; i < len; i++ ) {
-                               item = $( '<li id="myItem' + data[i].id + '">' );
-                               label = $( "<strong>" + data[i].label + "</strong>").appendTo( item );
-                               $( "#programmatically-generated-list-items" ).append( item );
-                       }
-               }
-       });
-
-       asyncTest( "Corner styling on programmatically created list items", function() {
-               // https://github.com/jquery/jquery-mobile/issues/1470
-               $.testHelper.pageSequence([
-                       function() {
-                               $.mobile.changePage( "#programmatically-generated-list" );
-                       },
-                       function() {
-                               ok(!$( "#programmatically-generated-list-items li:first-child" ).hasClass( "ui-corner-bottom" ), "First list item should not have class ui-corner-bottom" );
-                               start();
-                       }
-               ]);
-       });
-
-       module("Programmatic list items manipulation");
-
-       asyncTest("Removing list items", 4, function() {
-               $.testHelper.pageSequence([
-                       function() {
-                               $.mobile.changePage("#removing-items-from-list-test");
-                       },
-
-                       function() {
-                               var ul = $('#removing-items-from-list-test ul');
-                               ul.find("li").first().remove();
-                               equal(ul.find("li").length, 3, "There should be only 3 list items left");
-
-                               ul.listview('refresh');
-                               ok(ul.find("li").first().hasClass("ui-corner-top"), "First list item should have class ui-corner-top");
-
-                               ul.find("li").last().remove();
-                               equal(ul.find("li").length, 2, "There should be only 2 list items left");
-
-                               ul.listview('refresh');
-                               ok(ul.find("li").last().hasClass("ui-corner-bottom"), "Last list item should have class ui-corner-bottom");
-                               start();
-                       }
-               ]);
-       });
-
-       module("Rounded corners");
-
-       asyncTest("Top and bottom corners rounded in inset list", 14, function() {
-               $.testHelper.pageSequence([
-                       function() {
-                               $.mobile.changePage("#corner-rounded-test");
-                       },
-
-                       function() {
-                               var ul = $('#corner-rounded-test ul');
-
-                               for( var t = 0; t<3; t++){
-                                       ul.append("<li>Item " + t + "</li>");
-                                       ul.listview('refresh');
-                                       equals(ul.find(".ui-corner-top").length, 1, "There should be only one element with class ui-corner-top");
-                                       equals(ul.find("li:visible").first()[0], ul.find(".ui-corner-top")[0], "First list item should have class ui-corner-top in list with " + ul.find("li").length + " item(s)");
-                                       equals(ul.find(".ui-corner-bottom").length, 1, "There should be only one element with class ui-corner-bottom");
-                                       equals(ul.find("li:visible").last()[0], ul.find(".ui-corner-bottom")[0], "Last list item should have class ui-corner-bottom in list with " + ul.find("li").length + " item(s)");
-                               }
-
-                               ul.find( "li" ).first().hide();
-                               ul.listview( "refresh" );
-                               equals(ul.find("li:visible").first()[0], ul.find(".ui-corner-top")[0], "First visible list item should have class ui-corner-top");
-
-                               ul.find( "li" ).last().hide();
-                               ul.listview( "refresh" );
-                               equals(ul.find("li:visible").last()[0], ul.find(".ui-corner-bottom")[0], "Last visible list item should have class ui-corner-bottom");
-
-                               start();
-                       }
-               ]);
-       });
-
-       test( "Listview will create when inside a container that receives a 'create' event", function(){
-               ok( !$("#enhancetest").appendTo(".ui-page-active").find(".ui-listview").length, "did not have enhancements applied" );
-               ok( $("#enhancetest").trigger("create").find(".ui-listview").length, "enhancements applied" );
-       });
-
-       module( "Cached Linked List" );
-
-       var findNestedPages = function(selector){
-               return $( selector + " #topmost" ).listview( 'childPages' );
-       };
-
-       asyncTest( "nested pages are removed from the dom by default", function(){
-               $.testHelper.pageSequence([
-                       function(){
-                               //reset for relative url refs
-                               $.mobile.changePage( home );
-                       },
-
-                       function(){
-                               $.mobile.changePage( "cache-tests/uncached-nested.html" );
-                       },
-
-                       function(){
-                               ok( findNestedPages( "#uncached-nested-list" ).length > 0, "verify that there are nested pages" );
-                               $.mobile.changePage( home );
-                       },
-
-                       function() {
-                               $.mobile.changePage( "cache-tests/clear.html" );
-                       },
-
-                       function(){
-                               same( findNestedPages( "#uncached-nested-list" ).length, 0 );
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "nested pages preserved when parent page is cached", function(){
-
-               $.testHelper.pageSequence([
-                       function(){
-                               //reset for relative url refs
-                               $.mobile.changePage( home );
-                       },
-
-                       function(){
-                               $.mobile.changePage( "cache-tests/cached-nested.html" );
-                       },
-
-                       function(){
-                               ok( findNestedPages( "#cached-nested-list" ).length > 0, "verify that there are nested pages" );
-                               $.mobile.changePage( home );
-                       },
-
-                       function() {
-                               $.mobile.changePage( "cache-tests/clear.html" );
-                       },
-
-                       function(){
-                               ok( findNestedPages( "#cached-nested-list" ).length > 0, "nested pages remain" );
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "parent page is not removed when visiting a sub page", function(){
-               $.testHelper.pageSequence([
-                       function(){
-                               //reset for relative url refs
-                               $.mobile.changePage( home );
-                       },
-
-                       function(){
-                               $.mobile.changePage( "cache-tests/cached-nested.html" );
-                       },
-
-                       function(){
-                               same( $("#cached-nested-list").length, 1 );
-                               $.mobile.changePage( home );
-                       },
-
-                       function() {
-                               $.mobile.changePage( "cache-tests/clear.html" );
-                       },
-
-                       function(){
-                               same( $("#cached-nested-list").length, 1 );
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "filterCallback can be altered after widget creation", function(){
-               var listPage = $( "#search-filter-test" );
-               expect( listPage.find("li").length );
-
-               $.testHelper.pageSequence( [
-                       function(){
-                               //reset for relative url refs
-                               $.mobile.changePage( home );
-                       },
-
-                       function() {
-                               $.mobile.changePage( "#search-filter-test" );
-                       },
-
-                       function() {
-                               // set the listview instance callback
-                               listPage.find( "ul" ).listview( "option", "filterCallback", function() {
-                                       ok(true, "custom callback invoked");
-                               });
-
-                               // trigger a change in the search filter
-                               listPage.find( "input" ).val( "foo" ).trigger( "change" );
-
-                               //NOTE beware a poossible issue with timing here
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "nested pages hash key is always in the hash (replaceState)", function(){
-               $.testHelper.pageSequence([
-                       function(){
-                               //reset for relative url refs
-                               $.mobile.changePage( home );
-                       },
-
-                       function(){
-                               // https://github.com/jquery/jquery-mobile/issues/1617
-                               $.mobile.changePage("#nested-lists-test");
-                       },
-
-                       function(){
-                               // Click on the link of the third li element
-                               $('.ui-page-active li:eq(2) a:eq(0)').click();
-                       },
-
-                       function(){
-                               ok( location.hash.search($.mobile.subPageUrlKey) >= 0 );
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "embedded listview page with nested pages is not removed from the dom", function() {
-               $.testHelper.pageSequence([
-                       function() {
-                               // open the nested list page
-                               same( $("div#nested-list-test").length, 1 );
-                               $( "a#nested-list-test-anchor" ).click();
-                       },
-
-                       function() {
-                               // go back to the origin page
-                               window.history.back();
-                       },
-
-                       function() {
-                               // make sure the page is still in place
-                               same( $("div#nested-list-test").length, 1 );
-                               start();
-                       }
-               ]);
-       });
-
-
-       asyncTest( "list inherits theme from parent", function() {
-               $.testHelper.pageSequence([
-                       function() {
-                               $.mobile.changePage("#list-theme-inherit");
-                       },
-
-                       function() {
-                               var theme = $.mobile.activePage.jqmData('theme');
-                               ok( $.mobile.activePage.find("ul > li").hasClass("ui-body-b"), "theme matches the parent");
-                               window.history.back();
-                       },
-
-                       start
-               ]);
-       });
-
-       asyncTest( "list filter is inset from prototype options value", function() {
-               $.mobile.listview.prototype.options.inset = true;
-               $("#list-inset-filter-prototype").page();
-
-               $.testHelper.pageSequence([
-                       function() {
-                               $.mobile.changePage("#list-inset-filter-prototype");
-                       },
-
-                       function( timedOut) {
-                               ok( !timedOut );
-                               same( $.mobile.activePage.find("form.ui-listview-filter-inset").length, 1, "form is inset");
-                               window.history.back();
-                       },
-
-                       start
-               ]);
-       });
-
-       asyncTest( "list filter is inset from data attr value", function() {
-               $.mobile.listview.prototype.options.inset = false;
-               $("#list-inset-filter-data-attr").page();
-
-               $.testHelper.pageSequence([
-                       function() {
-                               $.mobile.changePage("#list-inset-filter-data-attr");
-                       },
-
-                       function( timedOut) {
-                               ok( !timedOut );
-                               same( $.mobile.activePage.find("form.ui-listview-filter-inset").length, 1, "form is inset");
-                               window.history.back();
-                       },
-
-                       start
-               ]);
-       });
-
-       asyncTest( "split list items respect the icon", function() {
-               $.testHelper.pageSequence([
-                       function() {
-                               $.mobile.changePage("#split-list-icon");
-                       },
-
-                       function() {
-                               $.mobile.activePage.find("li").each(function(i, elem){
-                                       var $elem = $(elem),
-                                               order = [ "star", "plug", "delete", "plug" ];
-
-                                       same( $elem.find("span.ui-icon-" + order[i]).length, 1, "there should be one " + order[i] + " icon" );
-                               });
-
-                               window.history.back();
-                       },
-
-                       start
-               ]);
-       });
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/listview_pushstate.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/listview_pushstate.js
deleted file mode 100644 (file)
index 6af09e7..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-(function($) {
-       asyncTest( "nested pages hash key is always in the hash on default page with no id (replaceState) ", function(){
-               $.testHelper.pageSequence([
-                       function(){
-                               // Click on the link of the third li element
-                               $('.ui-page-active li:eq(2) a:eq(0)').click();
-                       },
-
-                       function(){
-                               ok( location.hash.search($.mobile.subPageUrlKey) >= 0 );
-                               start();
-                       }
-               ]);
-       });
-})(jQuery);
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/pushstate-tests.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/pushstate-tests.html
deleted file mode 100644 (file)
index acf4234..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile Listview Integration Test</title>
-
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../../tests/jquery.testHelper.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [
-                               "jquery.mobile.navigation",
-                               "jquery.mobile.listview",
-                               "jquery.mobile.listview.filter",
-                       ],
-                       [       "jquery.mobile.init" ],
-                       [       "listview_pushstate.js" ]
-               ]);
-       </script>
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css" />
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Listview Integration Test</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div data-nstest-role="page">
-       <div data-nstest-role="header" data-nstest-position="inline">
-               <h1>Basic multiple lists view</h1>
-       </div>
-    <div data-nstest-role="content">
-        <ul data-nstest-role="listview" data-nstest-inset="true">
-            <li>Item 1</li>
-            <li>Item 2</li>
-            <li>Item 3
-                <ul data-nstest-role="listview">
-                    <li>Item A-3-0</li>
-                    <li>Item A-3-1</li>
-                    <li>Item A-3-2</li>
-                </ul>
-            </li>
-        </ul>
-        <ul data-nstest-role="listview" data-nstest-inset="true">
-            <li>Item 1</li>
-            <li>Item 2</li>
-            <li>Item 3
-                <ul data-nstest-role="listview">
-                    <li>Item B-3-0
-                        <ul data-nstest-role="listview">
-                                                       <li>Item B-3-0-0</li>
-                                                       <li>Item B-3-0-1
-                                                               <ul data-nstest-role="listview">
-                                                                       <li>Item B-3-0-1-0</li>
-                                                                       <li>Item B-3-0-1-1</li>
-                                                                       <li>Item B-3-0-1-2</li>
-                                                               </ul>
-                                                       </li>
-                                                       <li>Item B-3-0-2</li>
-                                               </ul>
-                    </li>
-                    <li>Item B-3-1
-                                               <ul data-nstest-role="listview">
-                                                       <li>Item B-3-1-0</li>
-                                                       <li>Item B-3-1-1</li>
-                                                       <li>Item B-3-1-2</li>
-                                               </ul>
-                    </li>
-                    <li>Item B-3-2</li>
-                </ul>
-            </li>
-        </ul>
-    </div>
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/ls.php b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/ls.php
deleted file mode 100644 (file)
index 577bfec..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-  header("Content-Type: application/json");
-
-  $directories = array();
-
-  if ($handle = opendir(getcwd())) {
-    while (false !== ($file = readdir($handle))) {
-      if (is_dir($file) && $file[0] !== "." ) {
-        array_push($directories, $file);
-      }
-    }
-
-    closedir($handle);
-  }
-
-  $test_pages = array_merge($directories, glob("**/*-tests.html"));
-  sort($test_pages);
-
-  echo '{ "testPages":["' . implode( '","', $test_pages ) . '"]}';
-?>
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/media/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/media/index.html
deleted file mode 100644 (file)
index 52c39a5..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile Media Test Suite</title>
-
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../jquery.testHelper.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [
-                               "jquery.mobile.media"
-                       ],
-                       [
-                               "./media_core.js"
-                       ]
-               ]);
-       </script>
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css" />
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Media Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div id="qunit-fixture"></div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/media/media_core.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/media/media_core.js
deleted file mode 100644 (file)
index 68eca0c..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * mobile media unit tests
- */
-
-(function($){
-       var cssFn = $.fn.css,
-                       widthFn = $.fn.width;
-
-       // make sure original definitions are reset
-       module('jquery.mobile.media.js', {
-               setup: function(){
-                       $(document).trigger('mobileinit.htmlclass');
-               },
-               teardown: function(){
-                       $.fn.css = cssFn;
-                       $.fn.width = widthFn;
-               }
-       });
-
-       test( "media query check returns true when the position is absolute", function(){
-               $.fn.css = function(){ return "absolute"; };
-               same($.mobile.media("screen 1"), true);
-       });
-
-       test( "media query check returns false when the position is not absolute", function(){
-               $.fn.css = function(){ return "not absolute"; };
-               same($.mobile.media("screen 2"), false);
-       });
-
-       test( "media query check is cached", function(){
-               $.fn.css = function(){ return "absolute"; };
-               same($.mobile.media("screen 3"), true);
-
-               $.fn.css = function(){ return "not absolute"; };
-               same($.mobile.media("screen 3"), true);
-       });
-
-
-})(jQuery);
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navbar/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navbar/index.html
deleted file mode 100644 (file)
index 9c83c95..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile Navigation Test Suite</title>
-
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../../tests/jquery.testHelper.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [
-                               "jquery.mobile.navbar"
-                       ],
-                       [ "jquery.mobile.init" ],
-                       [
-                               "./navbar_core.js"
-                       ]
-               ]);
-       </script>
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-</head>
-<body>
-<h1 id="qunit-header">jQuery Mobile Navigation Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-<div data-nstest-role="page" id="disabled-btn-click">
-       <div data-nstest-role="navbar">
-               <ul>
-                       <li><a href="#" class="ui-disabled">One</a></li>
-                       <li><a href="#">Two</a></li>
-               </ul>
-       </div>
-</div>
-
-<div id="foo">
-       <div data-nstest-role="navbar">
-               <div data-nstest-enhance="false">
-                       <ul id="ignored-grid">
-                               <li></li>
-                               <li></li>
-                       </ul>
-               </div>
-       </div>
-
-       <div data-nstest-role="navbar">
-               <div>
-                       <ul id="enhanced-grid">
-                               <li></li>
-                               <li></li>
-                       </ul>
-               </div>
-       </div>
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navbar/navbar_core.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navbar/navbar_core.js
deleted file mode 100644 (file)
index f80bb5d..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * mobile navbar unit tests
- */
-(function($){
-       test( "navbar button gets active button class when clicked", function() {
-               var link = $("#disabled-btn-click a:not(.ui-disabled)").first();
-
-               link.click();
-               ok( link.hasClass($.mobile.activeBtnClass), "link has active button class" );
-       });
-
-       test( "disabled navbar button doesn't add active button class when clicked", function() {
-               var link = $("#disabled-btn-click a.ui-disabled").first();
-
-               link.click();
-               ok( !link.hasClass($.mobile.activeBtnClass), "link doesn't have active button class" );
-       });
-
-       test( "grids inside an ignored container do not enhance", function() {
-               var $ignored = $( "#ignored-grid" ), $enhanced = $( "#enhanced-grid" );
-
-               $.mobile.ignoreContentEnabled = true;
-
-               $("#foo").trigger( "create" );
-
-               same( $ignored.attr( "class" ), undefined, "ignored list doesn't have the grid theme" );
-               same( $enhanced.attr( "class" ).indexOf("ui-grid"), 0, "enhanced list has the grid theme" );
-
-               $.mobile.ignoreContentEnabled = false;
-       });
-})(jQuery);
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests.html
deleted file mode 100644 (file)
index 7d1649e..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile Navigation Test Suite</title>
-
-    <script>
-
-       // This unit test requires a base tag to be set within the file.
-       // Most browsers require a base tag with an @href URL that is absolute.
-       // We need to dynamically inject the base tag so we can prefix it with
-       // the location of this test on the server without any server-side language
-       // requirements.
-
-       var baseUrl = location.href.replace(/[^\?\#\/]*(\?[^#]*)?(#.*)?$/, "");
-       document.write("<base href=\"" + baseUrl + "base-tests/app-base/\"/>\n");
-
-       </script>
-       <script src="../../../../../js/jquery.tag.inserter.js"></script>
-       <script src="../../../jquery.setNameSpace.js"></script>
-       <script src="../../../../../tests/jquery.testHelper.js"></script>
-       <script src="../../../../../js/"></script>
-
-
-       <link rel="stylesheet" href="../../../../../css/themes/default/jquery.mobile.css"/>
-       <link rel="stylesheet" href="../../../../../external/qunit.css"/>
-       <script src="../../../../../external/qunit.js"></script>
-       <script type="text/javascript">
-               $.testHelper.setPushState();
-       </script>
-
-       <script type="text/javascript" src="../../navigation_base.js"></script>
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Navigation Base Tag Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div id="internal-page-1" data-nstest-role="page">
-       <a href="base-page-1.html" class="bp1"></a>
-       <a href="base-page-2.html" class="bp2"></a>
-       <a href="../content/content-page-1.html" class="cp1"></a>
-       <a href="../content/content-page-2.html" class="cp2"></a>
-       <a href="#internal-page-2" class="ip2"></a>
-    <img src="images/internal-page-1.png">
-</div>
-
-<div id="internal-page-2" data-nstest-role="page">
-       <a href="base-page-1.html" class="bp1"></a>
-       <a href="base-page-2.html" class="bp2"></a>
-       <a href="../content/content-page-1.html" class="cp1"></a>
-       <a href="../content/content-page-2.html" class="cp2"></a>
-       <a href="#internal-page-1" class="ip1"></a>
-    <img src="images/internal-page-2.png">
-</div>
-
-<div data-nstest-role="page" id="internal-no-action-form-page">
-       <div data-nstest-role="content">
-               <form>
-                       <input type="hidden" name="foo" value="1">
-                       <input type="hidden" name="bar" value="2">
-               </form>
-    </div>
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests/app-base/base-page-1.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests/app-base/base-page-1.html
deleted file mode 100644 (file)
index b417713..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-<html>
-       <head>
-       </head>
-<body>
-       <div id="base-page-1" data-nstest-role="page">
-       <a href="base-page-2.html" class="bp2">Base Page 2</a>
-       <a href="../content/content-page-1.html" class="cp1">Content Page 1</a>
-       <a href="../../#internal-page-1" class="ip1">Internal Page 1</a>
-       <a href="../../#internal-page-2" class="ip2">Internal Page 2</a>
-        <img src="images/base-page-1.png">
-       </div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests/app-base/base-page-2.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests/app-base/base-page-2.html
deleted file mode 100644 (file)
index ac84a98..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-<html>
-       <head>
-       </head>
-<body>
-       <div id="base-page-2" data-nstest-role="page">
-       <a href="base-page-1.html" class="bp1">Base Page 1</a>
-       <a href="../content/content-page-1.html" class="cp1">Content Page 1</a>
-       <a href="../../#internal-page-1" class="ip1">Internal Page 1</a>
-       <a href="../../#internal-page-2" class="ip2">Internal Page 2</a>
-        <img src="images/base-page-2.png">
-       </div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests/content/content-page-1.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests/content/content-page-1.html
deleted file mode 100644 (file)
index 68cef02..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html>
-       <head>
-       </head>
-<body>
-       <div id="content-page-1" data-nstest-role="page">
-       <a href="content-page-2.html" class="cp2">Content Page 2</a>
-       <a href="../app-base/base-page-1.html" class="bp1">Base Page 1</a>
-       <a href="../../#internal-page-1" class="ip1">Internal Page 1</a>
-       <a href="../../#internal-page-2" class="ip2">Internal Page 2</a>
-        <img src="images/content-page-1.png">
-
-               <form>
-                       <input type="hidden" name="foo" value="1">
-                       <input type="hidden" name="bar" value="2">
-               </form>
-       </div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests/content/content-page-2.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests/content/content-page-2.html
deleted file mode 100644 (file)
index 76c9bbd..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-<html>
-       <head>
-       </head>
-<body>
-       <div id="content-page-2" data-nstest-role="page">
-       <a href="content-page-1.html" class="cp1">Content Page 1</a>
-       <a href="../app-base/base-page-1.html" class="bp1">Base Page 1</a>
-       <a href="../../#internal-page-1" class="ip1">Internal Page 1</a>
-       <a href="../../#internal-page-2" class="ip2">Internal Page 2</a>
-      <img src="images/content-page-2.png">
-       </div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/cached-external.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/cached-external.html
deleted file mode 100644 (file)
index 5ebcf06..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-</head>
-<body>
-       <div data-nstest-role="page" id="external-test-cached" data-nstest-dom-cache="true">
-  </div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/data-url.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/data-url.html
deleted file mode 100644 (file)
index bece3f8..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<!DOCTYPE html>
-<html>
-       <head>
-       </head>
-<body>
-       <div data-nstest-role="page" data-nstest-url="foo/" data-other="for testing">
-               This text intentionally left blank
-       </div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/nested.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/nested.html
deleted file mode 100644 (file)
index da75dbc..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<!DOCTYPE html>
-<html>
-       <head>
-       </head>
-<body>
-       <div  data-nstest-role="page" data-nstest-url="foo/bar.html"></div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/non-data-url.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/non-data-url.html
deleted file mode 100644 (file)
index e0a299f..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<!DOCTYPE html>
-<html>
-       <head>
-       </head>
-<body>
-       <div data-nstest-role="page">
-               <a href="?foo=bar" id="query-param-anchor">query param</a>
-       </div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/reverse-attr.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/reverse-attr.html
deleted file mode 100644 (file)
index 379577f..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<!DOCTYPE html>
-<html>
-       <head>
-       </head>
-<body>
-       <div data-nstest-url="foo/bar/reverse.html"  data-nstest-role="page"></div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/single-quotes.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/single-quotes.html
deleted file mode 100644 (file)
index 74afd7f..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<!DOCTYPE html>
-<html>
-       <head>
-       </head>
-<body>
-       <div  data-nstest-role='page' data-nstest-url='foo/bar/single.html'></div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/dialog-param-test/dialog-param.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/dialog-param-test/dialog-param.html
deleted file mode 100644 (file)
index 5c13d5f..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Navigation Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div id="dialog-param-link-page" data-nstest-role="page">
-       <a href="?foo=bar" data-nstest-rel="dialog">foo</a>
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/external.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/external.html
deleted file mode 100644 (file)
index c9a011d..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-</head>
-<body>
-       <div data-nstest-role="page" id="external-test"></div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/file.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/file.html
deleted file mode 100644 (file)
index 5109dee..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-</head>
-<body>
-       <div data-nstest-role="page">
-               <div class="test-value">doc rel test one</div>
-       </div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/form-tests/changepage-data.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/form-tests/changepage-data.html
deleted file mode 100644 (file)
index 2305c20..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<!DOCTYPE html>
-<html>
-       <head>
-       </head>
-<body>
-       <div id="changepage-data" data-nstest-role="page"> </div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/form-tests/form-no-action.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/form-tests/form-no-action.html
deleted file mode 100644 (file)
index 1b4ff7c..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html>
-       <head>
-       </head>
-<body>
-<div id="external-form-no-action-page" data-nstest-role="page">
-       <div data-nstest-role="content">
-               <form>
-                       <input type="hidden" name="foo" value="1">
-                       <input type="hidden" name="bar" value="2">
-               </form>
-       </div>
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/index.html
deleted file mode 100644 (file)
index ce2fcbc..0000000
+++ /dev/null
@@ -1,302 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile Navigation Test Suite</title>
-
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../../tests/jquery.testHelper.js"></script>
-       <script type="text/javascript">
-               $.testHelper.setPushState();
-       </script>
-
-       <script src="../../../js/"></script>
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-       <script src="../../../external/qunit.js"></script>
-
-       <script type="text/javascript" src="navigation_helpers.js"></script>
-       <script type="text/javascript" src="navigation_core.js"></script>
-       <script type="text/javascript" src="navigation_paths.js"></script>
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Navigation Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div id="harmless-default-page"         data-nstest-role="page" class="first-page">
-</div>
-
-<div id="foo" data-nstest-role="page" class="foo-class">
-       <a href="#bar" data-nstest-transition="flip"></a>
-       <a id="bad-internal-page-link" href="#non-existent-page"></a>
-</div>
-
-<div id="prefetch" data-nstest-role="page">
-       <a href="prefetched.html" data-nstest-prefetch>Prefetch test</a>
-</div>
-
-<div id="foozball" data-nstest-role="page">
-</div>
-
-<div id="bar"   data-nstest-role="page">
-       <a href="#baz"></a>
-</div>
-
-<div id="baz"   data-nstest-role="page">
-       <a href="#foo"></a>
-</div>
-
-<div id="fade-trans" data-nstest-role="page">
-       <a href="#flip-trans" data-nstest-transition="fade"></a>
-</div>
-
-<div id="flip-trans" data-nstest-role="page">
-       <a href="#fade-trans" data-nstest-transition="flip"></a>
-</div>
-
-<div id="no-trans" data-nstest-role="page">
-       <a href="#pop-trans"></a>
-</div>
-
-<div id="pop-trans"     data-nstest-role="page">
-       <a href="#no-trans" data-nstest-transition="pop"></a>
-</div>
-
-<div id="default-trans"         data-nstest-role="page">
-       <a href="#no-trans"></a>
-</div>
-
-<div id="data-url" data-nstest-role="page">
-       <a href="data-url-tests/data-url.html"></a>
-</div>
-
-<div id="non-data-url" data-nstest-role="page">
-       <a href="data-url-tests/non-data-url.html"></a>
-</div>
-
-<div id="nested-data-url"       data-nstest-role="page">
-       <a href="data-url-tests/nested.html"></a>
-</div>
-
-<div id="single-quotes-data-url" data-nstest-role="page">
-       <a href="data-url-tests/single-quotes.html"></a>
-</div>
-
-<div id="reverse-attr-data-url"         data-nstest-role="page">
-       <a href="data-url-tests/reverse-attr.html"></a>
-</div>
-
-<div id="ajax-disabled-form" data-nstest-role="page">
-       <form method="POST" id="non-ajax-form" action="/ajax-disabled-form" data-nstest-ajax="false">
-       </form>
-
-       <form method="POST" id="ajax-form" action="/ajax-disabled-form">
-       </form>
-
-       <form method="POST" id="rand-ajax-form" action="/ajax-disabled-form" data-nstest-ajax="foo">
-       </form>
-</div>
-
-<div id="default-trans-dialog" data-nstest-role="page">
-       <a href="#no-trans-dialog" data-nstest-rel="dialog"></a>
-</div>
-
-<div id="no-trans-dialog" data-nstest-role="page">
-</div>
-
-<div id="dup-history-first" data-nstest-role="page">
-       <a href="#dup-history-second" data-nstest-transition="slideup" data-nstest-role="button" >
-               Page 2
-       </a>
-</div>
-
-<div id="dup-history-second" data-nstest-role="page">
-       <a href="#dup-history-first" data-nstest-transition="slideup" data-nstest-role="button">
-               Page 1
-       </a>
-       <a href="#dup-history-dialog" data-nstest-role="button" data-nstest-transition="pop" data-nstest-rel="dialog">Dialog</a>
-</div>
-
-<div id="dup-history-dialog" data-nstest-role="dialog">
-        <div data-nstest-role="header" data-nstest-position="inline">
-                <h1>Dialog</h1>
-        </div>
-</div>
-
-<div id="skip-dialog-first" data-nstest-role="page">
-       <div data-nstest-role="content">
-               <a href="#skip-dialog" data-nstest-role="button" data-nstest-transition="pop" data-nstest-rel="dialog">Dialog</a>
-       </div>
-</div>
-
-<div id="skip-dialog" data-nstest-role="dialog">
-       <div data-nstest-role="content">
-               <a href="#skip-dialog-second">Page 2</a>
-       </div>
-</div>
-
-<div id="skip-dialog-second" data-nstest-role="page">
-       <a href="#" data-nstest-rel="back">Go Back</a>
-</div>
-
-
-<div id="nested-dialog-page" data-nstest-role="page">
-       <div data-nstest-role="content">
-               <a href="#nested-dialog-first">Dialog</a>
-       </div>
-</div>
-
-<div id="nested-dialog-first" data-nstest-role="dialog">
-       <div data-nstest-role="content">
-               <a href="#nested-dialog-second">Dialog 2</a>
-       </div>
-</div>
-
-<div id="nested-dialog-second" data-nstest-role="dialog">
-</div>
-
-<div id="relative-after-embeded-page-first" data-nstest-role="page">
-       <div data-nstest-role="content">
-               <a href="#relative-after-embeded-page-second">second page</a>
-       </div>
-</div>
-
-<div id="relative-after-embeded-page-second" data-nstest-role="page">
-       <div data-nstest-role="content">
-               <a href="data-url-tests/data-url.html">file path page</a>
-       </div>
-</div>
-
-<div id="ajax-title-page" data-nstest-title="Title Attr 1" data-nstest-role="page">
-       <a href="title1.html" id="titletest1" data-nstest-transition="none">test</a>
-       <a href="title2.html" id="titletest2" data-nstest-transition="none">test</a>
-       <a href="title3.html" id="titletest3" data-nstest-transition="none">test</a>
-</div>
-
-<div data-nstest-role="page" id="titletest4" data-nstest-title="Title Attr 2">
-       <div data-nstest-role="header"><h1>Title Heading</h1></div>
-</div>
-
-<div data-nstest-role="page" id="titletest5" data-nstest-title="Title Attr">
-       <div data-nstest-role="header"><h1>Title Heading</h1></div>
-</div>
-
-<div data-nstest-role="page" id="self-link">
-       <a href="#self-link">self!</a>
-</div>
-
-<div data-nstest-role="page" id="dialog-param-link">
-       <a href="dialog-param-test/dialog-param.html">go</a>
-</div>
-
-<div data-nstest-role="page" id="pathing-tests">
-       <!-- doc rel links -->
-       <a href="file.html" id="doc-rel-test-one">go</a>
-       <a href="path-tests/file.html" id="doc-rel-test-two">go</a>
-       <a href="path-tests/sub-dir/file.html" id="doc-rel-test-three">go</a>
-       <a href="path-tests/sub-dir/" id="doc-rel-test-four">go</a>
-       <a href="../../unit/navigation/path-tests/parent-ref.html" id="doc-rel-test-five">go</a>
-       <a href="../../unit/navigation/path-tests/parent/" id="doc-rel-test-six">go</a>
-
-       <!-- site rel links -->
-       <!-- these will be altered before the test suite runs to use the current path -->
-       <a href="file.html" id="site-rel-test-one" class="site-rel">go</a>
-       <a href="path-tests/file.html" id="site-rel-test-two" class="site-rel">go</a>
-       <a href="path-tests/sub-dir/file.html" id="site-rel-test-three" class="site-rel">go</a>
-       <a href="path-tests/sub-dir/" id="site-rel-test-four" class="site-rel">go</a>
-       <a href="../../unit/navigation/path-tests/parent-ref.html" id="site-rel-test-five" class="site-rel">go</a>
-       <a href="../../unit/navigation/path-tests/parent/" id="site-rel-test-six" class="site-rel">go</a>
-
-       <!-- protocol rel links -->
-       <!-- these will be altered before the test suite runs to use the
-                        current domain and path -->
-       <a href="file.html" id="protocol-rel-test-one" class="protocol-rel">go</a>
-       <a href="path-tests/file.html" id="protocol-rel-test-two" class="protocol-rel">go</a>
-       <a href="path-tests/sub-dir/file.html" id="protocol-rel-test-three" class="protocol-rel">go</a>
-       <a href="path-tests/sub-dir/" id="protocol-rel-test-four" class="protocol-rel">go</a>
-       <a href="../../unit/navigation/path-tests/parent-ref.html" id="protocol-rel-test-five" class="protocol-rel">go</a>
-       <a href="../../unit/navigation/path-tests/parent/" id="protocol-rel-test-six" class="protocol-rel">go</a>
-
-       <!-- absolute links -->
-       <!-- these will be altered before the test suite runs to use the
-                        current protocol, domain and path -->
-       <a href="file.html" id="absolute-test-one" class="absolute">go</a>
-       <a href="path-tests/file.html" id="absolute-test-two" class="absolute">go</a>
-       <a href="path-tests/sub-dir/file.html" id="absolute-test-three" class="absolute">go</a>
-       <a href="path-tests/sub-dir/" id="absolute-test-four" class="absolute">go</a>
-       <a href="../../unit/navigation/path-tests/parent-ref.html" id="absolute-test-five" class="absolute">go</a>
-       <a href="../../unit/navigation/path-tests/parent/" id="absolute-test-six" class="absolute">go</a>
-
-</div>
-
-<div data-nstest-role="page" id="pathing-tests-reset">
-       <div class="reset-value">page didn't change!</div>
-</div>
-
-<div data-nstest-role="page" id="internal-no-action-form-page">
-       <div data-nstest-role="content">
-               <form>
-                       <input type="hidden" name="foo" value="1">
-                       <input type="hidden" name="bar" value="2">
-               </form>
-                               <a href="form-tests/form-no-action.html">External page containing form with no action.</a>
-               </div>
-</div>
-
-<div id="active-state-page1" data-nstest-role="page">
-       <div data-nstest-role="content">
-               <a href="#active-state-page2" data-nstest-role="button">page2</a>
-       </div>
-</div>
-
-<div id="active-state-page2" data-nstest-role="page">
-       <div data-nstest-role="content">
-               <a href="#active-state-page1" data-nstest-role="button">href button</a>
-               <a href="#active-state-page1" data-nstest-rel="back" data-nstest-role="button">back button</a>
-       </div>
-</div>
-
-
-
-<div id="odd-clicks-page" data-nstest-role="page">
-  <a href="#odd-clicks-page-dest" id="right-or-middle-click">foo</a>
-</div>
-
-<div id="odd-clicks-page-dest" data-nstest-role="page"></div>
-
-<div id="inject-links-page" data-nstest-role="page">
-  <a href="#injected-test-page" id="static-injected-test-page-link">static link</a>
-</div>
-
-<div id="prefetched-dialog-page" data-nstest-role="page">
-  <a href="prefetched-dialog.html"
-     id="prefetched-dialog-link"
-     data-nstest-role="prefetch"
-     data-nstest-rel="dialog">
-    static link
-  </a>
-</div>
-
-<div id="link-hijacking-test" data-nstest-role="page">
-       <div id="hijackable">
-               <a href="#link-hijacking-destination" id="hijacked-link"></a>
-               <a href="#link-hijacking-destination" id="unhijacked-link-by-attr" data-nstest-ajax="false"></a>
-       </div>
-
-       <div id="not-hijackable" data-nstest-ajax="false">
-               <a href="#link-hijacking-destination" id="unhijacked-link-by-parent"></a>
-       </div>
-</div>
-
-<div id="link-hijacking-destination" data-nstest-role="page">
-       hello!
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_base.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_base.js
deleted file mode 100644 (file)
index 544691b..0000000
+++ /dev/null
@@ -1,206 +0,0 @@
-/*
- * mobile navigation base tag unit tests
- */
-(function($){
-       var baseDir = $.mobile.path.parseUrl($("base").attr("href")).directory,
-               contentDir = $.mobile.path.makePathAbsolute("../content/", baseDir),
-               home = location.pathname + location.search;
-
-       module('jquery.mobile.navigation.js - base tag', {
-               setup: function(){
-                       if ( location.hash ) {
-                               stop();
-                               $(document).one("pagechange", function() {
-                                       start();
-                               } );
-                               location.hash = "";
-                       }
-               }
-       });
-
-       asyncTest( "can navigate between internal and external pages", function(){
-               $.testHelper.pageSequence([
-                       function(){
-                               // Navigate from default internal page to another internal page.
-                               $.testHelper.openPage( "#internal-page-2" );
-                       },
-
-                       function(){
-                               // Verify that we are on the 2nd internal page.
-                               $.testHelper.assertUrlLocation({
-                                       push: home + "#internal-page-2",
-                                       hash: "internal-page-2",
-                                       report: "navigate to internal page"
-                               });
-
-                               // Navigate to a page that is in the base directory. Note that the application
-                               // document and this new page are *NOT* in the same directory.
-                               $("#internal-page-2 .bp1").click();
-                       },
-
-                       function(){
-                               // Verify that we are on the expected page.
-                               $.testHelper.assertUrlLocation({
-                                       hashOrPush: baseDir + "base-page-1.html",
-                                       report: "navigate from internal page to page in base directory"
-                               });
-
-                               // Navigate to another page in the same directory as the current page.
-                               $("#base-page-1 .bp2").click();
-                       },
-
-                       function(){
-                               // Verify that we are on the expected page.
-                               $.testHelper.assertUrlLocation({
-                                       hashOrPush: baseDir + "base-page-2.html",
-                                       report: "navigate from base directory page to another base directory page"
-                               });
-
-                               // Navigate to another page in a directory that is the sibling of the base.
-                               $("#base-page-2 .cp1").click();
-                       },
-
-                       function(){
-                               // Verify that we are on the expected page.
-                               $.testHelper.assertUrlLocation({
-                                       hashOrPush: contentDir + "content-page-1.html",
-                                       report: "navigate from base directory page to a page in a different directory hierarchy"
-                               });
-
-                               // Navigate to another page in a directory that is the sibling of the base.
-                               $("#content-page-1 .cp2").click();
-                       },
-
-                       function(){
-                               // Verify that we are on the expected page.
-                               $.testHelper.assertUrlLocation({
-                                       hashOrPush: contentDir + "content-page-2.html",
-                                       report: "navigate to another page within the same non-base directory hierarchy"
-                               });
-
-                               // Navigate to an internal page.
-                               $("#content-page-2 .ip1").click();
-                       },
-
-                       function(){
-                               // Verify that we are on the expected page.
-                               // the hash based nav result (hash:) is dictate by the fact that #internal-page-1
-                               // is the original root page element
-                               $.testHelper.assertUrlLocation({
-                                       hashOrPush: home,
-                                       report: "navigate from a page in a non-base directory to an internal page"
-                               });
-
-                               // Try calling changePage() directly with a relative path.
-                               $.mobile.changePage("base-page-1.html");
-                       },
-
-                       function(){
-                               // Verify that we are on the expected page.
-                               $.testHelper.assertUrlLocation({
-                                       hashOrPush: baseDir + "base-page-1.html",
-                                       report: "call changePage() with a filename (no path)"
-                               });
-
-                               // Try calling changePage() directly with a relative path.
-                               $.mobile.changePage("../content/content-page-1.html");
-                       },
-
-                       function(){
-                               // Verify that we are on the expected page.
-                               $.testHelper.assertUrlLocation({
-                                       hashOrPush: contentDir + "content-page-1.html",
-                                       report: "call changePage() with a relative path containing up-level references"
-                               });
-
-                               // Try calling changePage() with an id
-                               $.mobile.changePage("content-page-2.html");
-                       },
-
-                       function(){
-                               // Verify that we are on the expected page.
-                               $.testHelper.assertUrlLocation({
-                                       hashOrPush: contentDir + "content-page-2.html",
-                                       report: "call changePage() with a relative path should resolve relative to current page"
-                               });
-
-                               // test that an internal page works
-                               $("a.ip2").click();
-                       },
-
-                       function(){
-                               // Verify that we are on the expected page.
-                               $.testHelper.assertUrlLocation({
-                                       hash:  "internal-page-2",
-                                       push: home + "#internal-page-2",
-                                       report: "call changePage() with a page id"
-                               });
-
-                               // Try calling changePage() with an id
-                               $.mobile.changePage("internal-page-1");
-                       },
-
-                       function(){
-                               // Verify that we are on the expected page.
-                               $.testHelper.assertUrlLocation({
-                                       hash:  "internal-page-2",
-                                       push: home + "#internal-page-2",
-                                       report: "calling changePage() with a page id that is not prefixed with '#' should not change page"
-                               });
-
-                               // Previous load should have failed and left us on internal-page-2.
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "internal form with no action submits to document URL", function(){
-               $.testHelper.pageSequence([
-                       // open our test page
-                       function(){
-                               $.testHelper.openPage( "#internal-no-action-form-page" );
-                       },
-
-                       function(){
-                               $( "#internal-no-action-form-page form" ).eq( 0 ).submit();
-                       },
-
-                       function(){
-                               $.testHelper.assertUrlLocation({
-                                       hashOrPush: location.pathname + "?foo=1&bar=2",
-                                       report: "hash should match document url and not base url"
-                               });
-
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "external page form with no action submits to external page URL", function(){
-               $.testHelper.pageSequence([
-                       function(){
-                               // Go to an external page that has a form.
-                               $("#internal-page-1 .cp1").click();
-                       },
-
-                       function(){
-                               // Make sure we actually navigated to the external page.
-                               $.testHelper.assertUrlLocation({
-                                       hashOrPush: contentDir + "content-page-1.html",
-                                       report: "should be on content-page-1.html"
-                               });
-
-                               // Now submit the form in the external page.
-                               $("#content-page-1 form").eq(0).submit();
-                       },
-
-                       function(){
-                               $.testHelper.assertUrlLocation({
-                                       hashOrPush: contentDir + "content-page-1.html?foo=1&bar=2",
-                                       report: "hash should match page url and not document url"
-                               });
-
-                               start();
-                       }]);
-       });
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_core.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_core.js
deleted file mode 100644 (file)
index f62c3d1..0000000
+++ /dev/null
@@ -1,1216 +0,0 @@
-/*
- * mobile navigation unit tests
- */
-(function($){
-       // TODO move siteDirectory over to the nav path helper
-       var changePageFn = $.mobile.changePage,
-               originalTitle = document.title,
-               originalLinkBinding = $.mobile.linkBindingEnabled,
-               siteDirectory = location.pathname.replace( /[^/]+$/, "" ),
-               home = $.mobile.path.parseUrl(location.pathname).directory,
-               homeWithSearch = home + location.search,
-               navigateTestRoot = function(){
-                       $.testHelper.openPage( "#" + location.pathname + location.search );
-               };
-
-       module('jquery.mobile.navigation.js', {
-               setup: function(){
-                       $.mobile.changePage = changePageFn;
-                       document.title = originalTitle;
-
-                       var pageReset = function( hash ) {
-                               hash = hash || "";
-
-                               stop();
-
-                               $(document).one( "pagechange", function() {
-                                       start();
-                               });
-
-                               location.hash = "#" + hash;
-                       };
-
-                       // force the page reset for hash based tests
-                       if ( location.hash && !$.support.pushState ) {
-                               pageReset();
-                       }
-
-                       // force the page reset for all pushstate tests
-                       if ( $.support.pushState ) {
-                               pageReset( homeWithSearch );
-                       }
-
-
-                       $.mobile.urlHistory.stack = [];
-                       $.mobile.urlHistory.activeIndex = 0;
-                       $.Event.prototype.which = undefined;
-                       $.mobile.linkBindingEnabled = originalLinkBinding;
-               }
-       });
-
-       asyncTest( "window.history.back() from external to internal page", function(){
-
-               $.testHelper.pageSequence([
-
-                       // open our test page
-                       function(){
-                               $.testHelper.openPage("#active-state-page1");
-                       },
-
-                       function(){
-                               ok( $.mobile.activePage[0] === $( "#active-state-page1" )[ 0 ], "successful navigation to internal page." );
-
-                               //location.hash = siteDirectory + "external.html";
-                               $.mobile.changePage("external.html");
-                       },
-
-                       function(){
-                               ok( $.mobile.activePage[0] !== $( "#active-state-page1" )[ 0 ], "successful navigation to external page." );
-
-                               window.history.back();
-                       },
-
-                       function(){
-                               ok( $.mobile.activePage[0] === $( "#active-state-page1" )[ 0 ], "successful navigation back to internal page." );
-
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "external page is removed from the DOM after pagehide", function(){
-               $.testHelper.pageSequence([
-                       navigateTestRoot,
-
-                       function(){
-                               $.mobile.changePage( "external.html" );
-                       },
-
-                       // page is pulled and displayed in the dom
-                       function(){
-                               same( $( "#external-test" ).length, 1 );
-                               window.history.back();
-                       },
-
-                       // external-test is *NOT* cached in the dom after transitioning away
-                       function(){
-                               same( $( "#external-test" ).length, 0 );
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "preventDefault on pageremove event can prevent external page from being removed from the DOM", function(){
-               var preventRemoval = true,
-                       removeCallback = function( e ) {
-                               if ( preventRemoval ) {
-                                       e.preventDefault();
-                               }
-                       };
-
-               $( document ).bind( "pageremove", removeCallback );
-
-               $.testHelper.pageSequence([
-                       navigateTestRoot,
-
-                       function(){
-                               $.mobile.changePage( "external.html" );
-                       },
-
-                       // page is pulled and displayed in the dom
-                       function(){
-                               same( $( "#external-test" ).length, 1 );
-                               window.history.back();
-                       },
-
-                       // external-test *IS* cached in the dom after transitioning away
-                       function(){
-                               same( $( "#external-test" ).length, 1 );
-
-                               // Switch back to the page again!
-                               $.mobile.changePage( "external.html" );
-                       },
-
-                       // page is still present and displayed in the dom
-                       function(){
-                               same( $( "#external-test" ).length, 1 );
-
-                               // Now turn off our removal prevention.
-                               preventRemoval = false;
-
-                               window.history.back();
-                       },
-
-                       // external-test is *NOT* cached in the dom after transitioning away
-                       function(){
-                               same( $( "#external-test" ).length, 0 );
-                               $( document ).unbind( "pageremove", removeCallback );
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "external page is cached in the DOM after pagehide", function(){
-               $.testHelper.pageSequence([
-                       navigateTestRoot,
-
-                       function(){
-                               $.mobile.changePage( "cached-external.html" );
-                       },
-
-                       // page is pulled and displayed in the dom
-                       function(){
-                               same( $( "#external-test-cached" ).length, 1 );
-                               window.history.back();
-                       },
-
-                       // external test page is cached in the dom after transitioning away
-                       function(){
-                               same( $( "#external-test-cached" ).length, 1 );
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "external page is cached in the DOM after pagehide when option is set globally", function(){
-               $.testHelper.pageSequence([
-                       navigateTestRoot,
-
-                       function(){
-                               $.mobile.page.prototype.options.domCache = true;
-                               $.mobile.changePage( "external.html" );
-                       },
-
-                       // page is pulled and displayed in the dom
-                       function(){
-                               same( $( "#external-test" ).length, 1 );
-                               window.history.back();
-                       },
-
-                       // external test page is cached in the dom after transitioning away
-                       function(){
-                               same( $( "#external-test" ).length, 1 );
-                               $.mobile.page.prototype.options.domCache = false;
-                               $( "#external-test" ).remove();
-                               start();
-                       }]);
-       });
-
-       asyncTest( "page last scroll distance is remembered while navigating to and from pages", function(){
-               $.testHelper.pageSequence([
-                       function(){
-                               $( "body" ).height( $( window ).height() + 500 );
-                               $.mobile.changePage( "external.html" );
-                       },
-
-                       function(){
-                               // wait for the initial scroll to 0
-                               setTimeout( function() {
-                                       window.scrollTo( 0, 300 );
-                                       same( $(window).scrollTop(), 300, "scrollTop is 300 after setting it" );
-                               }, 300);
-
-                               // wait for the scrollstop to fire and for the scroll to be
-                               // recorded 100 ms afterward (see changes made to handle hash
-                               // scrolling in some browsers)
-                               setTimeout( navigateTestRoot, 500 );
-                       },
-
-                       function(){
-                               history.back();
-                       },
-
-                       function(){
-                               // Give the silentScroll function some time to kick in.
-                               setTimeout(function() {
-                                       same( $(window).scrollTop(), 300, "scrollTop is 300 after returning to the page" );
-                                       $( "body" ).height( "" );
-                                       start();
-                               }, 300 );
-                       }
-               ]);
-       });
-
-       asyncTest( "forms with data attribute ajax set to false will not call changePage", function(){
-               var called = false;
-               var newChangePage = function(){
-                       called = true;
-               };
-
-               $.testHelper.sequence([
-                       // avoid initial page load triggering changePage early
-                       function(){
-                               $.mobile.changePage = newChangePage;
-
-                               $('#non-ajax-form').one('submit', function(event){
-                                       ok(true, 'submit callbacks are fired');
-                                       event.preventDefault();
-                               }).submit();
-                       },
-
-                       function(){
-                               ok(!called, "change page should not be called");
-                               start();
-                       }], 1000);
-       });
-
-       asyncTest( "forms with data attribute ajax not set or set to anything but false will call changePage", function(){
-               var called = 0,
-                               newChangePage = function(){
-                                       called++;
-                               };
-
-               $.testHelper.sequence([
-                       // avoid initial page load triggering changePage early
-                       function(){
-                               $.mobile.changePage = newChangePage;
-                               $('#ajax-form, #rand-ajax-form').submit();
-                       },
-
-                       function(){
-                               ok(called >= 2, "change page should be called at least twice");
-                               start();
-                       }], 300);
-       });
-
-
-       asyncTest( "anchors with no href attribute will do nothing when clicked", function(){
-               var fired = false;
-
-               $(window).bind("hashchange.temp", function(){
-                       fired = true;
-               });
-
-               $( "<a>test</a>" ).appendTo( $.mobile.firstPage ).click();
-
-               setTimeout(function(){
-                       same(fired, false, "hash shouldn't change after click");
-                       $(window).unbind("hashchange.temp");
-                       start();
-               }, 500);
-       });
-
-       test( "urlHistory is working properly", function(){
-
-               //urlHistory
-               same( $.type( $.mobile.urlHistory.stack ), "array", "urlHistory.stack is an array" );
-
-               //preload the stack
-               $.mobile.urlHistory.stack[0] = { url: "foo", transition: "bar" };
-               $.mobile.urlHistory.stack[1] = { url: "baz", transition: "shizam" };
-               $.mobile.urlHistory.stack[2] = { url: "shizoo", transition: "shizaah" };
-
-               //active index
-               same( $.mobile.urlHistory.activeIndex , 0, "urlHistory.activeIndex is 0" );
-
-               //getActive
-               same( $.type( $.mobile.urlHistory.getActive() ) , "object", "active item is an object" );
-               same( $.mobile.urlHistory.getActive().url , "foo", "active item has url foo" );
-               same( $.mobile.urlHistory.getActive().transition , "bar", "active item has transition bar" );
-
-               //get prev / next
-               same( $.mobile.urlHistory.getPrev(), undefined, "urlHistory.getPrev() is undefined when active index is 0" );
-               $.mobile.urlHistory.activeIndex = 1;
-               same( $.mobile.urlHistory.getPrev().url, "foo", "urlHistory.getPrev() has url foo when active index is 1" );
-               $.mobile.urlHistory.activeIndex = 0;
-               same( $.mobile.urlHistory.getNext().url, "baz", "urlHistory.getNext() has url baz when active index is 0" );
-
-               //add new
-               $.mobile.urlHistory.activeIndex = 2;
-               $.mobile.urlHistory.addNew("test");
-               same( $.mobile.urlHistory.stack.length, 4, "urlHistory.addNew() adds an item after the active index" );
-               same( $.mobile.urlHistory.activeIndex, 3, "urlHistory.addNew() moves the activeIndex to the newly added item" );
-
-               //clearForward
-               $.mobile.urlHistory.activeIndex = 0;
-               $.mobile.urlHistory.clearForward();
-               same( $.mobile.urlHistory.stack.length, 1, "urlHistory.clearForward() clears the url stack after the active index" );
-       });
-
-       //url listening
-       function testListening( prop ){
-               var stillListening = false;
-               $(document).bind("pagebeforehide", function(){
-                       stillListening = true;
-               });
-               location.hash = "foozball";
-               setTimeout(function(){
-                       ok( prop == stillListening, prop + " = false disables default hashchange event handler");
-                       location.hash = "";
-                       prop = true;
-                       start();
-               }, 1000);
-       }
-
-       asyncTest( "ability to disable our hash change event listening internally", function(){
-               testListening( ! $.mobile.urlHistory.ignoreNextHashChange );
-       });
-
-       asyncTest( "ability to disable our hash change event listening globally", function(){
-               testListening( $.mobile.hashListeningEnabled );
-       });
-
-       var testDataUrlHash = function( linkSelector, matches ) {
-               $.testHelper.pageSequence([
-                       function(){ window.location.hash = ""; },
-                       function(){ $(linkSelector).click(); },
-                       function(){
-                               $.testHelper.assertUrlLocation(
-                                       $.extend(matches, {
-                                               report: "url or hash should match"
-                                       })
-                               );
-
-                               start();
-                       }
-               ]);
-
-               stop();
-       };
-
-       test( "when loading a page where data-url is not defined on a sub element hash defaults to the url", function(){
-               testDataUrlHash( "#non-data-url a", {hashOrPush: siteDirectory + "data-url-tests/non-data-url.html"} );
-       });
-
-       test( "data url works for nested paths", function(){
-               var url = "foo/bar.html";
-               testDataUrlHash( "#nested-data-url a", {hash: url, push: home + url} );
-       });
-
-       test( "data url works for single quoted paths and roles", function(){
-               var url = "foo/bar/single.html";
-               testDataUrlHash( "#single-quotes-data-url a", {hash: url, push: home + url} );
-       });
-
-       test( "data url works when role and url are reversed on the page element", function(){
-               var url = "foo/bar/reverse.html";
-               testDataUrlHash( "#reverse-attr-data-url a", {hash: url, push: home + url} );
-       });
-
-       asyncTest( "last entry choosen amongst multiple identical url history stack entries on hash change", function(){
-               // make sure the stack is clear after initial page load an any other delayed page loads
-               // TODO better browser state management
-               $.mobile.urlHistory.stack = [];
-               $.mobile.urlHistory.activeIndex = 0;
-
-               $.testHelper.pageSequence([
-                       function(){ $.testHelper.openPage("#dup-history-first"); },
-                       function(){ $("#dup-history-first a").click(); },
-                       function(){ $("#dup-history-second a:first").click(); },
-                       function(){ $("#dup-history-first a").click(); },
-                       function(){ $("#dup-history-second a:last").click(); },
-                       function(){ $("#dup-history-dialog a:contains('Close')").click(); },
-                       function(){
-
-                               // fourth page (third index) in the stack to account for first page being hash manipulation,
-                               // the third page is dup-history-second which has two entries in history
-                               // the test is to make sure the index isn't 1 in this case, or the first entry for dup-history-second
-                               same($.mobile.urlHistory.activeIndex, 3, "should be the fourth page in the stack");
-                               start();
-                       }]);
-       });
-
-       asyncTest( "going back from a page entered from a dialog skips the dialog and goes to the previous page", function(){
-               $.testHelper.pageSequence([
-                       // setup
-                       function(){ $.testHelper.openPage("#skip-dialog-first"); },
-
-                       // transition to the dialog
-                       function(){ $("#skip-dialog-first a").click(); },
-
-                       // transition to the second page
-                       function(){ $("#skip-dialog a").click(); },
-
-                       // transition past the dialog via data-rel=back link on the second page
-                       function(){ $("#skip-dialog-second a").click(); },
-
-                       // make sure we're at the first page and not the dialog
-                       function(){
-                               $.testHelper.assertUrlLocation({
-                                       hash: "skip-dialog-first",
-                                       push: homeWithSearch + "#skip-dialog-first",
-                                       report: "should be the first page in the sequence"
-                               });
-
-                               start();
-                       }]);
-       });
-
-       asyncTest( "going forward from a page entered from a dialog skips the dialog and goes to the next page", function(){
-               $.testHelper.pageSequence([
-                       // setup
-                       function(){ $.testHelper.openPage("#skip-dialog-first"); },
-
-                       // transition to the dialog
-                       function(){ $("#skip-dialog-first a").click(); },
-
-                       // transition to the second page
-                       function(){ $("#skip-dialog a").click(); },
-
-                       // transition to back past the dialog
-                       function(){ window.history.back(); },
-
-                       // transition to the second page past the dialog through history
-                       function(){ window.history.forward(); },
-
-                       // make sure we're on the second page and not the dialog
-                       function(){
-                               $.testHelper.assertUrlLocation({
-                                       hash: "skip-dialog-second",
-                                       push: homeWithSearch + "#skip-dialog-second",
-                                       report: "should be the second page after the dialog"
-                               });
-
-                               start();
-                       }]);
-       });
-
-       asyncTest( "going back from a dialog triggered from a dialog should result in the first dialog ", function(){
-               $.testHelper.pageSequence([
-                       // setup
-                       function(){ $.testHelper.openPage("#nested-dialog-page"); },
-
-                       // transition to the dialog
-                       function(){ $("#nested-dialog-page a").click(); },
-
-                       // transition to the second dialog
-                       function(){ $("#nested-dialog-first a").click(); },
-
-                       // transition to back to the first dialog
-                       function(){ window.history.back(); },
-
-                       // make sure we're on first dialog
-                       function(){
-                               same($(".ui-page-active")[0], $("#nested-dialog-first")[0], "should be the first dialog");
-                               start();
-                       }]);
-       });
-
-       asyncTest( "loading a relative file path after an embeded page works", function(){
-               $.testHelper.pageSequence([
-                       // transition second page
-                       function(){ $.testHelper.openPage("#relative-after-embeded-page-first"); },
-
-                       // transition second page
-                       function(){ $("#relative-after-embeded-page-first a").click(); },
-
-                       // transition to the relative ajax loaded page
-                       function(){ $("#relative-after-embeded-page-second a").click(); },
-
-                       // make sure the page was loaded properly via ajax
-                       function(){
-                               // data attribute intentionally left without namespace
-                               same($(".ui-page-active").data("other"), "for testing", "should be relative ajax loaded page");
-                               start();
-                       }]);
-       });
-
-       asyncTest( "Page title updates properly when clicking back to previous page", function(){
-               $.testHelper.pageSequence([
-                       function(){
-                               $.testHelper.openPage("#relative-after-embeded-page-first");
-                       },
-
-                       function(){
-                               window.history.back();
-                       },
-
-                       function(){
-                               same(document.title, "jQuery Mobile Navigation Test Suite");
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "Page title updates properly when clicking a link back to first page", function(){
-               var title = document.title;
-
-               $.testHelper.pageSequence([
-                       function(){
-                               $.testHelper.openPage("#ajax-title-page");
-                       },
-
-                       function(){
-                               $("#titletest1").click();
-                       },
-
-                       function(){
-                               same(document.title, "Title Tag");
-                               $.mobile.activePage.find("#title-check-link").click();
-                       },
-
-                       function(){
-                               same(document.title, title);
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "Page title updates properly from title tag when loading an external page", function(){
-               $.testHelper.pageSequence([
-                       function(){
-                               $.testHelper.openPage("#ajax-title-page");
-                       },
-
-                       function(){
-                               $("#titletest1").click();
-                       },
-
-                       function(){
-                               same(document.title, "Title Tag");
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "Page title updates properly from data-title attr  when loading an external page", function(){
-               $.testHelper.pageSequence([
-                       function(){
-                               $.testHelper.openPage("#ajax-title-page");
-                       },
-
-                       function(){
-                               $("#titletest2").click();
-                       },
-
-                       function(){
-                               same(document.title, "Title Attr");
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "Page title updates properly from heading text in header when loading an external page", function(){
-               $.testHelper.pageSequence([
-                       function(){
-                               $.testHelper.openPage("#ajax-title-page");
-                       },
-
-                       function(){
-                               $("#titletest3").click();
-                       },
-
-                       function(){
-                               same(document.title, "Title Heading");
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "Page links to the current active page result in the same active page", function(){
-               $.testHelper.pageSequence([
-                       function(){
-                               $.testHelper.openPage("#self-link");
-                       },
-
-                       function(){
-                               $("a[href='#self-link']").click();
-                       },
-
-                       function(){
-                               same($.mobile.activePage[0], $("#self-link")[0], "self-link page is still the active page" );
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "links on subdirectory pages with query params append the params and load the page", function(){
-               $.testHelper.pageSequence([
-                       function(){
-                               $.testHelper.openPage("#data-url-tests/non-data-url.html");
-                       },
-
-                       function(){
-                               $("#query-param-anchor").click();
-                       },
-
-                       function(){
-                               $.testHelper.assertUrlLocation({
-                                       hashOrPush: home + "data-url-tests/non-data-url.html?foo=bar",
-                                       report: "the hash or url has query params"
-                               });
-
-                               ok($(".ui-page-active").jqmData("url").indexOf("?foo=bar") > -1, "the query params are in the data url");
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "identical query param link doesn't add additional set of query params", function(){
-               $.testHelper.pageSequence([
-                       function(){
-                               $.testHelper.openPage("#data-url-tests/non-data-url.html");
-                       },
-
-                       function(){
-                               $("#query-param-anchor").click();
-                       },
-
-                       function(){
-                               $.testHelper.assertUrlLocation({
-                                       hashOrPush: home + "data-url-tests/non-data-url.html?foo=bar",
-                                       report: "the hash or url has query params"
-                               });
-
-                               $("#query-param-anchor").click();
-                       },
-
-                       function(){
-                               $.testHelper.assertUrlLocation({
-                                       hashOrPush: home + "data-url-tests/non-data-url.html?foo=bar",
-                                       report: "the hash or url still has query params"
-                               });
-
-                               start();
-                       }
-               ]);
-       });
-
-       // Special handling inside navigation because query params must be applied to the hash
-       // or absolute reference and dialogs apply extra information int the hash that must be removed
-       asyncTest( "query param link from a dialog to itself should be a not add another dialog", function(){
-               var firstDialogLoc;
-
-               $.testHelper.pageSequence([
-                       // open our test page
-                       function(){
-                               $.testHelper.openPage("#dialog-param-link");
-                       },
-
-                       // navigate to the subdirectory page with the query link
-                       function(){
-                               $("#dialog-param-link a").click();
-                       },
-
-                       // navigate to the query param self reference link
-                       function(){
-                               $("#dialog-param-link-page a").click();
-                       },
-
-                       // attempt to navigate to the same link
-                       function(){
-                               // store the current hash for comparison (with one dialog hash key)
-                               firstDialogLoc = location.hash || location.href;
-                               $("#dialog-param-link-page a").click();
-                       },
-
-                       function(){
-                               same(location.hash || location.href, firstDialogLoc, "additional dialog hash key not added");
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "query data passed as string to changePage is appended to URL", function(){
-               $.testHelper.pageSequence([
-                       // open our test page
-                       function(){
-                               $.mobile.changePage( "form-tests/changepage-data.html", {
-                                       data: "foo=1&bar=2"
-                               } );
-                       },
-
-                       function(){
-                               $.testHelper.assertUrlLocation({
-                                       hashOrPush: home + "form-tests/changepage-data.html?foo=1&bar=2",
-                                       report: "the hash or url still has query params"
-                               });
-
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "query data passed as object to changePage is appended to URL", function(){
-               $.testHelper.pageSequence([
-                       // open our test page
-                       function(){
-                               $.mobile.changePage( "form-tests/changepage-data.html", {
-                                       data: {
-                                               foo: 3,
-                                               bar: 4
-                                       }
-                               } );
-                       },
-
-                       function(){
-                               $.testHelper.assertUrlLocation({
-                                       hashOrPush: home + "form-tests/changepage-data.html?foo=3&bar=4",
-                                       report: "the hash or url still has query params"
-                               });
-
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "refresh of a dialog url should not duplicate page", function(){
-               $.testHelper.pageSequence([
-                       // open our test page
-                       function(){
-                               same($(".foo-class").length, 1, "should only have one instance of foo-class in the document");
-                               location.hash = "#foo&ui-state=dialog";
-                       },
-
-                       function(){
-                               $.testHelper.assertUrlLocation({
-                                       hash: "foo&ui-state=dialog",
-                                       push: homeWithSearch + "#foo&ui-state=dialog",
-                                       report: "hash should match what was loaded"
-                               });
-
-                               same( $(".foo-class").length, 1, "should only have one instance of foo-class in the document" );
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "internal form with no action submits to document URL", function(){
-               $.testHelper.pageSequence([
-                       // open our test page
-                       function(){
-                               $.testHelper.openPage("#internal-no-action-form-page");
-                       },
-
-                       function(){
-                               $("#internal-no-action-form-page form").eq(0).submit();
-                       },
-
-                       function(){
-                               $.testHelper.assertUrlLocation({
-                                       hashOrPush: home + "?foo=1&bar=2",
-                                       report: "hash should match what was loaded"
-                               });
-
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "external page containing form with no action submits to page URL", function(){
-               $.testHelper.pageSequence([
-                       // open our test page
-                       function(){
-                               $.testHelper.openPage("#internal-no-action-form-page");
-                       },
-
-                       function(){
-                               $("#internal-no-action-form-page a").eq(0).click();
-                       },
-
-                       function(){
-                               $("#external-form-no-action-page form").eq(0).submit();
-                       },
-
-                       function(){
-                               $.testHelper.assertUrlLocation({
-                                       hashOrPush: home + "form-tests/form-no-action.html?foo=1&bar=2",
-                                       report: "hash should match page url and not document url"
-                               });
-
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "handling of active button state when navigating", 1, function(){
-
-               $.testHelper.pageSequence([
-                       // open our test page
-                       function(){
-                               $.testHelper.openPage("#active-state-page1");
-                       },
-
-                       function(){
-                               $("#active-state-page1 a").eq(0).click();
-                       },
-
-                       function(){
-                               $("#active-state-page2 a").eq(0).click();
-                       },
-
-                       function(){
-                               ok(!$("#active-state-page1 a").hasClass( $.mobile.activeBtnClass ), "No button should not have class " + $.mobile.activeBtnClass );
-                               start();
-                       }
-               ]);
-       });
-
-       // issue 2444 https://github.com/jquery/jquery-mobile/issues/2444
-       // results from preventing spurious hash changes
-       asyncTest( "dialog should return to its parent page when open and closed multiple times", function() {
-               $.testHelper.pageSequence([
-                       // open our test page
-                       function(){
-                               $.testHelper.openPage("#default-trans-dialog");
-                       },
-
-                       function(){
-                               $.mobile.activePage.find( "a" ).click();
-                       },
-
-                       function(){
-                               window.history.back();
-                       },
-
-                       function(){
-                               same( $.mobile.activePage[0], $( "#default-trans-dialog" )[0] );
-                               $.mobile.activePage.find( "a" ).click();
-                       },
-
-                       function(){
-                               window.history.back();
-                       },
-
-                       function(){
-                               same( $.mobile.activePage[0], $( "#default-trans-dialog" )[0] );
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "clicks with middle mouse button are ignored", function() {
-               $.testHelper.pageSequence([
-                       function() {
-                               $.testHelper.openPage( "#odd-clicks-page" );
-                       },
-
-                       function() {
-                               $( "#right-or-middle-click" ).click();
-                       },
-
-                       // make sure the page is opening first without the mocked button click value
-                       // only necessary to prevent issues with test specific fixtures
-                       function() {
-                               same($.mobile.activePage[0], $("#odd-clicks-page-dest")[0]);
-                               $.testHelper.openPage( "#odd-clicks-page" );
-
-                               // mock the which value to simulate a middle click
-                               $.Event.prototype.which = 2;
-                       },
-
-                       function() {
-                               $( "#right-or-middle-click" ).click();
-                       },
-
-                       function( timeout ) {
-                               ok( timeout, "page event handler timed out due to ignored click" );
-                               ok($.mobile.activePage[0] !== $("#odd-clicks-page-dest")[0], "pages are not the same");
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "disabling link binding disables navigation via links and highlighting", function() {
-               $.mobile.linkBindingEnabled = false;
-
-               $.testHelper.pageSequence([
-                       function() {
-                               $.testHelper.openPage("#bar");
-                       },
-
-                       function() {
-                               $.mobile.activePage.find( "a" ).click();
-                       },
-
-                       function( timeout ) {
-                               ok( !$.mobile.activePage.find( "a" ).hasClass( $.mobile.activeBtnClass ), "vlick handler doesn't add the activebtn class" );
-                               ok( timeout, "no page change was fired" );
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "handling of button active state when navigating by clicking back button", 1, function(){
-               $.testHelper.pageSequence([
-                       // open our test page
-                       function(){
-                               $.testHelper.openPage("#active-state-page1");
-                       },
-
-                       function(){
-                               $("#active-state-page1 a").eq(0).click();
-                       },
-
-                       function(){
-                               $("#active-state-page2 a").eq(1).click();
-                       },
-
-                       function(){
-                               $("#active-state-page1 a").eq(0).click();
-                       },
-
-                       function(){
-                               ok(!$("#active-state-page2 a").hasClass( $.mobile.activeBtnClass ), "No button should not have class " + $.mobile.activeBtnClass );
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "can navigate to dynamically injected page with dynamically injected link", function(){
-               $.testHelper.pageSequence([
-                       // open our test page
-                       function(){
-                               $.testHelper.openPage("#inject-links-page");
-                       },
-
-                       function(){
-                               var $ilpage = $( "#inject-links-page" ),
-                                       $link = $( "<a href='#injected-test-page'>injected-test-page link</a>" );
-
-                               // Make sure we actually navigated to the expected page.
-                               ok( $.mobile.activePage[ 0 ] == $ilpage[ 0 ], "navigated successfully to #inject-links-page" );
-
-                               // Now dynamically insert a page.
-                               $ilpage.parent().append( "<div data-role='page' id='injected-test-page'>testing...</div>" );
-
-                               // Now inject a link to this page dynamically and attempt to navigate
-                               // to the page we just inserted.
-                               $link.appendTo( $ilpage ).click();
-                       },
-
-                       function(){
-                               // Make sure we actually navigated to the expected page.
-                               ok( $.mobile.activePage[ 0 ] == $( "#injected-test-page" )[ 0 ], "navigated successfully to #injected-test-page" );
-
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "application url with dialogHashKey loads application's first page", function(){
-               $.testHelper.pageSequence([
-                       // open our test page
-                       function(){
-                               // Navigate to any page except the first page of the application.
-                               $.testHelper.openPage("#foo");
-                       },
-
-                       function(){
-                               ok( $.mobile.activePage[ 0 ] === $( "#foo" )[ 0 ], "navigated successfully to #foo" );
-
-                               // Now navigate to an hash that contains just a dialogHashKey.
-                               $.mobile.changePage("#" + $.mobile.dialogHashKey);
-                       },
-
-                       function(){
-                               // Make sure we actually navigated to the first page.
-                               ok( $.mobile.activePage[ 0 ] === $.mobile.firstPage[ 0 ], "navigated successfully to first-page" );
-
-                               // Now make sure opening the page didn't result in page duplication.
-                               ok( $.mobile.firstPage.hasClass( "first-page" ), "first page has expected class" );
-                               same( $( ".first-page" ).length, 1, "first page was not duplicated" );
-
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "navigate to non-existent internal page throws pagechangefailed", function(){
-               var pagechangefailed = false,
-                       pageChangeFailedCB = function( e ) {
-                       pagechangefailed = true;
-               }
-
-               $( document ).bind( "pagechangefailed", pageChangeFailedCB );
-
-               $.testHelper.pageSequence([
-                       // open our test page
-                       function(){
-                               // Make sure there's only one copy of the first-page in the DOM to begin with.
-                               ok( $.mobile.firstPage.hasClass( "first-page" ), "first page has expected class" );
-                               same( $( ".first-page" ).length, 1, "first page was not duplicated" );
-
-                               // Navigate to any page except the first page of the application.
-                               $.testHelper.openPage("#foo");
-                       },
-
-                       function(){
-                               var $foo = $( "#foo" );
-                               ok( $.mobile.activePage[ 0 ] === $foo[ 0 ], "navigated successfully to #foo" );
-                               same( pagechangefailed, false, "no page change failures" );
-
-                               // Now navigate to a non-existent page.
-                               $foo.find( "#bad-internal-page-link" ).click();
-                       },
-
-                       function(){
-                               // Make sure a pagechangefailed event was triggered.
-                               same( pagechangefailed, true, "pagechangefailed dispatched" );
-
-                               // Make sure we didn't navigate away from #foo.
-                               ok( $.mobile.activePage[ 0 ] === $( "#foo" )[ 0 ], "did not navigate away from #foo" );
-
-                               // Now make sure opening the page didn't result in page duplication.
-                               same( $( ".first-page" ).length, 1, "first page was not duplicated" );
-
-                               $( document ).unbind( "pagechangefailed", pageChangeFailedCB );
-
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "prefetched links with data rel dialog result in a dialog", function() {
-               $.testHelper.pageSequence([
-                       // open our test page
-                       function(){
-                               // Navigate to any page except the first page of the application.
-                               $.testHelper.openPage("#prefetched-dialog-page");
-                       },
-
-                       function() {
-                               $("#prefetched-dialog-link").click();
-                       },
-
-                       function() {
-                               ok( $.mobile.activePage.is(".ui-dialog"), "prefetched page is rendered as a dialog" );
-        start();
-                       }
-               ]);
-       });
-
-       asyncTest( "first page gets reloaded if pruned from the DOM", function(){
-               var hideCallbackTriggered = false;
-
-               function hideCallback( e, data )
-               {
-                       var page = e.target;
-                       ok( ( page === $.mobile.firstPage[ 0 ] ), "hide called with prevPage set to firstPage");
-                       if ( page === $.mobile.firstPage[ 0 ] ) {
-                                $( page ).remove();
-                       }
-                       hideCallbackTriggered = true;
-               }
-
-               $(document).bind('pagehide', hideCallback);
-
-               $.testHelper.pageSequence([
-                       function(){
-                               // Make sure the first page is actually in the DOM.
-                               ok( $.mobile.firstPage.parent().length !== 0, "first page is currently in the DOM" );
-
-                               // Make sure the first page is the active page.
-                               ok( $.mobile.activePage[ 0 ] === $.mobile.firstPage[ 0 ], "first page is the active page" );
-
-                               // Now make sure the first page has an id that we can use to reload it.
-                               ok( $.mobile.firstPage[ 0 ].id, "first page has an id" );
-
-                               // Make sure there is only one first page in the DOM.
-                               same( $( ".first-page" ).length, 1, "only one instance of the first page in the DOM" );
-
-                               // Navigate to any page except the first page of the application.
-                               $.testHelper.openPage("#foo");
-                       },
-
-                       function(){
-                               // Make sure the active page is #foo.
-                               ok( $.mobile.activePage[ 0 ] === $( "#foo" )[ 0 ], "navigated successfully to #foo" );
-
-                               // Make sure our hide callback was triggered.
-                               ok( hideCallbackTriggered, "hide callback was triggered" );
-
-                               // Make sure the first page was actually pruned from the document.
-                               ok( $.mobile.firstPage.parent().length === 0, "first page was pruned from the DOM" );
-                               same( $( ".first-page" ).length, 0, "no instance of the first page in the DOM" );
-
-                               // Remove our hideCallback.
-                               $(document).unbind('pagehide', hideCallback);
-
-                               // Navigate back to the first page!
-                               $.testHelper.openPage( "#" + $.mobile.firstPage[0].id );
-                       },
-
-                       function(){
-                               var firstPage = $( ".first-page" );
-
-                               // We should only have one first page in the document at any time!
-                               same( firstPage.length, 1, "single instance of first page recreated in the DOM" );
-
-                               // Make sure the first page in the DOM is actually a different DOM element than the original
-                               // one we started with.
-                               ok( $.mobile.firstPage[ 0 ] !== firstPage[ 0 ], "first page is a new DOM element");
-
-                               // Make sure we actually navigated to the new first page.
-                               ok( $.mobile.activePage[ 0 ] === firstPage[ 0 ], "navigated successfully to new first-page");
-
-                               // Reset the $.mobile.firstPage for subsequent tests.
-                               // XXX: Should we just get rid of the new one and restore the old?
-                               $.mobile.firstPage = $.mobile.activePage;
-
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "test that clicks are ignored where data-ajax='false' parents exist", function() {
-               var $disabledByParent = $( "#unhijacked-link-by-parent" ),
-                       $disabledByAttr = $( "#unhijacked-link-by-attr" );
-
-               $.mobile.ignoreContentEnabled = true;
-
-               $.testHelper.pageSequence([
-                       function() {
-                               $.mobile.changePage( "#link-hijacking-test" );
-                       },
-
-                       function() {
-                               $( "#hijacked-link" ).trigger( 'click' );
-                       },
-
-                       function() {
-                               ok( $.mobile.activePage.is("#link-hijacking-destination"), "nav works for links to hijacking destination" );
-                               window.history.back();
-                       },
-
-                       function() {
-                               $disabledByParent.trigger( 'click' );
-                       },
-
-                       function() {
-                               ok( $.mobile.activePage.is("#link-hijacking-test"), "click should be ignored keeping the active mobile page the same as before" );
-                       },
-
-                       function() {
-                               $disabledByAttr.trigger( 'click' );
-                       },
-
-                       function() {
-                               ok( $.mobile.activePage.is("#link-hijacking-test"), "click should be ignored keeping the active mobile page the same as before" );
-
-                               $.mobile.ignoreContentEnabled = false;
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "test that *vclicks* are ignored where data-ajax='false' parents exist", function() {
-               var $disabledByParent = $( "#unhijacked-link-by-parent" ),
-                       $disabledByAttr = $( "#unhijacked-link-by-attr" ),
-                       $hijacked = $( "#hijacked-link" );
-
-               $.mobile.ignoreContentEnabled = true;
-
-               $.testHelper.pageSequence([
-                       function() {
-                               $.mobile.changePage( "#link-hijacking-test" );
-                       },
-
-                       function() {
-                               // force the active button class
-                               $hijacked.addClass( $.mobile.activeBtnClass );
-                               $hijacked.trigger( 'vclick' );
-                               ok( $hijacked.hasClass( $.mobile.activeBtnClass ), "active btn class is added to the link per normal" );
-
-                               $disabledByParent.trigger( 'vclick' );
-                               ok( !$disabledByParent.hasClass( $.mobile.activeBtnClass ), "active button class is never added to the link" );
-
-                               $disabledByAttr.trigger( 'vclick' );
-                               ok( !$disabledByAttr.hasClass( $.mobile.activeBtnClass ), "active button class is never added to the link" );
-
-                               $.mobile.ignoreContentEnabled = false;
-                               start();
-                       }
-               ]);
-       });
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_dialog_pushstate.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_dialog_pushstate.js
deleted file mode 100644 (file)
index a056f64..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-(function($) {
-       asyncTest( "dialog ui-state should be part of the hash", function(){
-               $.testHelper.sequence([
-                       function() {
-                               // open the test page
-                               $.mobile.activePage.find( "a" ).click();
-                       },
-
-                       function() {
-                               // verify that the hash contains the dialogHashKey
-                               ok( location.hash.search($.mobile.dialogHashKey) >= 0 );
-                               start();
-                       }
-               ]);
-       });
-})(jQuery);
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_helpers.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_helpers.js
deleted file mode 100644 (file)
index 88533b7..0000000
+++ /dev/null
@@ -1,218 +0,0 @@
-/*
- * mobile navigation unit tests
- */
-(function($){
-       var siteDirectory = location.pathname.replace(/[^/]+$/, "");
-
-       module('jquery.mobile.navigation.js', {
-               setup: function(){
-                       if ( location.hash ) {
-                               stop();
-                               $(document).one("pagechange", function() {
-                                       start();
-                               } );
-                               location.hash = "";
-                       }
-               }
-       });
-
-       test( "path.get method is working properly", function(){
-               window.location.hash = "foo";
-               same($.mobile.path.get(), "foo", "get method returns location.hash minus hash character");
-               same($.mobile.path.get( "#foo/bar/baz.html" ), "foo/bar/", "get method with hash arg returns path with no filename or hash prefix");
-               same($.mobile.path.get( "#foo/bar/baz.html/" ), "foo/bar/baz.html/", "last segment of hash is retained if followed by a trailing slash");
-       });
-
-       test( "path.isPath method is working properly", function(){
-               ok(!$.mobile.path.isPath('bar'), "anything without a slash is not a path");
-               ok($.mobile.path.isPath('bar/'), "anything with a slash is a path");
-               ok($.mobile.path.isPath('/bar'), "anything with a slash is a path");
-               ok($.mobile.path.isPath('a/r'), "anything with a slash is a path");
-               ok($.mobile.path.isPath('/'), "anything with a slash is a path");
-       });
-
-       test( "path.getFilePath method is working properly", function(){
-               same($.mobile.path.getFilePath("foo.html" + "&" + $.mobile.subPageUrlKey ), "foo.html", "returns path without sub page key");
-       });
-
-       test( "path.set method is working properly", function(){
-               $.mobile.urlHistory.ignoreNextHashChange = false;
-               $.mobile.path.set("foo");
-               same("foo", window.location.hash.replace(/^#/,""), "sets location.hash properly");
-       });
-
-       test( "path.makeUrlAbsolute is working properly", function(){
-               var mua = $.mobile.path.makeUrlAbsolute,
-                       p1 = "http://jqm.com/",
-                       p2 = "http://jqm.com/?foo=1&bar=2",
-                       p3 = "http://jqm.com/#spaz",
-                       p4 = "http://jqm.com/?foo=1&bar=2#spaz",
-
-                       p5 = "http://jqm.com/test.php",
-                       p6 = "http://jqm.com/test.php?foo=1&bar=2",
-                       p7 = "http://jqm.com/test.php#spaz",
-                       p8 = "http://jqm.com/test.php?foo=1&bar=2#spaz",
-
-                       p9 = "http://jqm.com/dir1/dir2/",
-                       p10 = "http://jqm.com/dir1/dir2/?foo=1&bar=2",
-                       p11 = "http://jqm.com/dir1/dir2/#spaz",
-                       p12 = "http://jqm.com/dir1/dir2/?foo=1&bar=2#spaz",
-
-                       p13 = "http://jqm.com/dir1/dir2/test.php",
-                       p14 = "http://jqm.com/dir1/dir2/test.php?foo=1&bar=2",
-                       p15 = "http://jqm.com/dir1/dir2/test.php#spaz",
-                       p16 = "http://jqm.com/dir1/dir2/test.php?foo=1&bar=2#spaz";
-
-               // Test URL conversion against an absolute URL to the site root.
-               // directory tests
-               same( mua( "http://jqm.com/",                            p1 ), "http://jqm.com/", "absolute root - absolute root" );
-               same( mua( "//jqm.com/",                                 p1 ), "http://jqm.com/", "protocol relative root - absolute root" );
-               same( mua( "/",                                          p1 ), "http://jqm.com/", "site relative root - absolute root" );
-
-               same( mua( "http://jqm.com/?foo=1&bar=2",                p1 ), "http://jqm.com/?foo=1&bar=2", "absolute root with query - absolute root" );
-               same( mua( "//jqm.com/?foo=1&bar=2",                     p1 ), "http://jqm.com/?foo=1&bar=2", "protocol relative root with query - absolute root" );
-               same( mua( "/?foo=1&bar=2",                              p1 ), "http://jqm.com/?foo=1&bar=2", "site relative root with query - absolute root" );
-               same( mua( "?foo=1&bar=2",                               p1 ), "http://jqm.com/?foo=1&bar=2", "query relative - absolute root" );
-
-               same( mua( "http://jqm.com/#spaz",                       p1 ), "http://jqm.com/#spaz", "absolute root with fragment - absolute root" );
-               same( mua( "//jqm.com/#spaz",                            p1 ), "http://jqm.com/#spaz", "protocol relative root with fragment - absolute root" );
-               same( mua( "/#spaz",                                     p1 ), "http://jqm.com/#spaz", "site relative root with fragment - absolute root" );
-               same( mua( "#spaz",                                      p1 ), "http://jqm.com/#spaz", "fragment relative - absolute root" );
-
-               same( mua( "http://jqm.com/?foo=1&bar=2#spaz",           p1 ), "http://jqm.com/?foo=1&bar=2#spaz", "absolute root with query and fragment - absolute root" );
-               same( mua( "//jqm.com/?foo=1&bar=2#spaz",                p1 ), "http://jqm.com/?foo=1&bar=2#spaz", "protocol relative root with query and fragment - absolute root" );
-               same( mua( "/?foo=1&bar=2#spaz",                         p1 ), "http://jqm.com/?foo=1&bar=2#spaz", "site relative root with query and fragment - absolute root" );
-               same( mua( "?foo=1&bar=2#spaz",                          p1 ), "http://jqm.com/?foo=1&bar=2#spaz", "query relative and fragment - absolute root" );
-
-               // file tests
-               same( mua( "http://jqm.com/test.php",                    p1 ), "http://jqm.com/test.php", "absolute file at root - absolute root" );
-               same( mua( "//jqm.com/test.php",                         p1 ), "http://jqm.com/test.php", "protocol relative file at root - absolute root" );
-               same( mua( "/test.php",                                  p1 ), "http://jqm.com/test.php", "site relative file at root - absolute root" );
-               same( mua( "test.php",                                   p1 ), "http://jqm.com/test.php", "document relative file at root - absolute root" );
-
-               same( mua( "http://jqm.com/test.php?foo=1&bar=2",        p1 ), "http://jqm.com/test.php?foo=1&bar=2", "absolute file at root with query - absolute root" );
-               same( mua( "//jqm.com/test.php?foo=1&bar=2",             p1 ), "http://jqm.com/test.php?foo=1&bar=2", "protocol relative file at root with query - absolute root" );
-               same( mua( "/test.php?foo=1&bar=2",                      p1 ), "http://jqm.com/test.php?foo=1&bar=2", "site relative file at root with query - absolute root" );
-               same( mua( "test.php?foo=1&bar=2",                       p1 ), "http://jqm.com/test.php?foo=1&bar=2", "document relative file at root with query - absolute root" );
-
-               same( mua( "http://jqm.com/test.php#spaz",               p1 ), "http://jqm.com/test.php#spaz", "absolute file at root with fragment - absolute root" );
-               same( mua( "//jqm.com/test.php#spaz",                    p1 ), "http://jqm.com/test.php#spaz", "protocol relative file at root with fragment - absolute root" );
-               same( mua( "/test.php#spaz",                             p1 ), "http://jqm.com/test.php#spaz", "site relative file at root with fragment - absolute root" );
-               same( mua( "test.php#spaz",                              p1 ), "http://jqm.com/test.php#spaz", "file at root with fragment - absolute root" );
-
-               same( mua( "http://jqm.com/test.php?foo=1&bar=2#spaz",   p1 ), "http://jqm.com/test.php?foo=1&bar=2#spaz", "absolute file at root with query and fragment - absolute root" );
-               same( mua( "//jqm.com/test.php?foo=1&bar=2#spaz",        p1 ), "http://jqm.com/test.php?foo=1&bar=2#spaz", "protocol relative file at root with query and fragment - absolute root" );
-               same( mua( "/test.php?foo=1&bar=2#spaz",                 p1 ), "http://jqm.com/test.php?foo=1&bar=2#spaz", "site relative file at root with query and fragment - absolute root" );
-               same( mua( "test.php?foo=1&bar=2#spaz",                  p1 ), "http://jqm.com/test.php?foo=1&bar=2#spaz", "query relative file at root fragment - absolute root" );
-
-               // Test URL conversion against an absolute URL to a file at the site root.
-
-               same( mua( "http://jqm.com/",                            p5 ), "http://jqm.com/", "absolute root - absolute root" );
-               same( mua( "//jqm.com/",                                 p5 ), "http://jqm.com/", "protocol relative root - absolute root" );
-               same( mua( "/",                                          p5 ), "http://jqm.com/", "site relative root - absolute root" );
-
-               same( mua( "http://jqm.com/?foo=1&bar=2",                p5 ), "http://jqm.com/?foo=1&bar=2", "absolute root with query - absolute root" );
-               same( mua( "//jqm.com/?foo=1&bar=2",                     p5 ), "http://jqm.com/?foo=1&bar=2", "protocol relative root with query - absolute root" );
-               same( mua( "/?foo=1&bar=2",                              p5 ), "http://jqm.com/?foo=1&bar=2", "site relative root with query - absolute root" );
-               same( mua( "?foo=1&bar=2",                               p5 ), "http://jqm.com/test.php?foo=1&bar=2", "query relative - absolute root" );
-
-               same( mua( "http://jqm.com/#spaz",                       p5 ), "http://jqm.com/#spaz", "absolute root with fragment - absolute root" );
-               same( mua( "//jqm.com/#spaz",                            p5 ), "http://jqm.com/#spaz", "protocol relative root with fragment - absolute root" );
-               same( mua( "/#spaz",                                     p5 ), "http://jqm.com/#spaz", "site relative root with fragment - absolute root" );
-               same( mua( "#spaz",                                      p5 ), "http://jqm.com/test.php#spaz", "fragment relative - absolute root" );
-
-               same( mua( "http://jqm.com/?foo=1&bar=2#spaz",           p5 ), "http://jqm.com/?foo=1&bar=2#spaz", "absolute root with query and fragment - absolute root" );
-               same( mua( "//jqm.com/?foo=1&bar=2#spaz",                p5 ), "http://jqm.com/?foo=1&bar=2#spaz", "protocol relative root with query and fragment - absolute root" );
-               same( mua( "/?foo=1&bar=2#spaz",                         p5 ), "http://jqm.com/?foo=1&bar=2#spaz", "site relative root with query and fragment - absolute root" );
-               same( mua( "?foo=1&bar=2#spaz",                          p5 ), "http://jqm.com/test.php?foo=1&bar=2#spaz", "query relative and fragment - absolute root" );
-       });
-
-       // https://github.com/jquery/jquery-mobile/issues/2362
-       test( "ipv6 host support", function(){
-               // http://www.ietf.org/rfc/rfc2732.txt ipv6 examples for tests
-               // most definitely not comprehensive
-               var     ipv6_1 = "http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html",
-                       ipv6_2 = "http://[1080:0:0:0:8:800:200C:417A]/index.html",
-                       ipv6_3 = "http://[3ffe:2a00:100:7031::1]",
-                       ipv6_4 = "http://[1080::8:800:200C:417A]/foo",
-                       ipv6_5 = "http://[::192.9.5.5]/ipng",
-                       ipv6_6 = "http://[::FFFF:129.144.52.38]:80/index.html",
-                       ipv6_7 = "http://[2010:836B:4179::836B:4179]",
-                 fromIssue = "http://[3fff:cafe:babe::]:443/foo";
-
-               same( $.mobile.path.parseUrl(ipv6_1).host, "[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80");
-               same( $.mobile.path.parseUrl(ipv6_1).hostname, "[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]");
-               same( $.mobile.path.parseUrl(ipv6_2).host, "[1080:0:0:0:8:800:200C:417A]");
-               same( $.mobile.path.parseUrl(ipv6_3).host, "[3ffe:2a00:100:7031::1]");
-               same( $.mobile.path.parseUrl(ipv6_4).host, "[1080::8:800:200C:417A]");
-               same( $.mobile.path.parseUrl(ipv6_5).host, "[::192.9.5.5]");
-               same( $.mobile.path.parseUrl(ipv6_6).host, "[::FFFF:129.144.52.38]:80");
-               same( $.mobile.path.parseUrl(ipv6_6).hostname, "[::FFFF:129.144.52.38]");
-               same( $.mobile.path.parseUrl(ipv6_7).host, "[2010:836B:4179::836B:4179]");
-               same( $.mobile.path.parseUrl(fromIssue).host, "[3fff:cafe:babe::]:443");
-               same( $.mobile.path.parseUrl(fromIssue).hostname, "[3fff:cafe:babe::]");
-       });
-
-       test( "path.clean is working properly", function(){
-               var localroot = location.protocol + "//" + location.host + location.pathname,
-                       remoteroot = "http://google.com/",
-                       fakepath = "#foo/bar/baz.html",
-                       pathWithParam = localroot + "bar?baz=" + localroot,
-                       localpath = localroot + fakepath,
-                       remotepath = remoteroot + fakepath;
-
-               same( $.mobile.path.clean( localpath ), location.pathname + fakepath, "removes location protocol, host, and portfrom same-domain path");
-               same( $.mobile.path.clean( remotepath ), remotepath, "does nothing to an external domain path");
-               same( $.mobile.path.clean( pathWithParam ), location.pathname + "bar?baz=" + localroot, "doesn't remove params with localroot value");
-       });
-
-       test( "path.stripHash is working properly", function(){
-               same( $.mobile.path.stripHash( "#bar" ), "bar", "returns a hash without the # prefix");
-       });
-
-       test( "path.hasProtocol is working properly", function(){
-               same( $.mobile.path.hasProtocol( "tel:5559999" ), true, "value in tel protocol format has protocol" );
-               same( $.mobile.path.hasProtocol( location.href ), true, "location href has protocol" );
-               same( $.mobile.path.hasProtocol( "foo/bar/baz.html" ), false, "simple directory path has no protocol" );
-               same( $.mobile.path.hasProtocol( "file://foo/bar/baz.html" ), true, "simple directory path with file:// has protocol" );
-       });
-
-       test( "path.isRelativeUrl is working properly", function(){
-               same( $.mobile.path.isRelativeUrl("http://company.com/"), false, "absolute url is not relative" );
-               same( $.mobile.path.isRelativeUrl("//company.com/"), true, "protocol relative url is relative" );
-               same( $.mobile.path.isRelativeUrl("/"), true, "site relative url is relative" );
-
-               same( $.mobile.path.isRelativeUrl("http://company.com/test.php"), false, "absolute url is not relative" );
-               same( $.mobile.path.isRelativeUrl("//company.com/test.php"), true, "protocol relative url is relative" );
-               same( $.mobile.path.isRelativeUrl("/test.php"), true, "site relative url is relative" );
-               same( $.mobile.path.isRelativeUrl("test.php"), true, "document relative url is relative" );
-
-               same( $.mobile.path.isRelativeUrl("http://company.com/dir1/dir2/test.php?foo=1&bar=2#frag"), false, "absolute url is not relative" );
-               same( $.mobile.path.isRelativeUrl("//company.com/dir1/dir2/test.php?foo=1&bar=2#frag"), true, "protocol relative url is relative" );
-               same( $.mobile.path.isRelativeUrl("/dir1/dir2/test.php?foo=1&bar=2#frag"), true, "site relative url is relative" );
-               same( $.mobile.path.isRelativeUrl("dir1/dir2/test.php?foo=1&bar=2#frag"), true, "document relative path url is relative" );
-               same( $.mobile.path.isRelativeUrl("test.php?foo=1&bar=2#frag"), true, "document relative file url is relative" );
-               same( $.mobile.path.isRelativeUrl("?foo=1&bar=2#frag"), true, "query relative url is relative" );
-               same( $.mobile.path.isRelativeUrl("#frag"), true, "fragments are relative" );
-       });
-
-       test( "path.isExternal is working properly", function(){
-               same( $.mobile.path.isExternal( location.href ), false, "same domain is not external" );
-               same( $.mobile.path.isExternal( "http://example.com" ), true, "example.com is external" );
-               same($.mobile.path.isExternal("mailto:"), true, "mailto protocol");
-               same($.mobile.path.isExternal("http://foo.com"), true, "http protocol");
-               same($.mobile.path.isExternal("http://www.foo.com"), true, "http protocol with www");
-               same($.mobile.path.isExternal("tel:16178675309"), true, "tel protocol");
-               same($.mobile.path.isExternal("foo.html"), false, "filename");
-               same($.mobile.path.isExternal("foo/foo/foo.html"), false, "file path");
-               same($.mobile.path.isExternal("../../index.html"), false, "relative parent path");
-               same($.mobile.path.isExternal("/foo"), false, "root-relative path");
-               same($.mobile.path.isExternal("foo"), false, "simple string");
-               same($.mobile.path.isExternal("#foo"), false, "local id reference");
-       });
-
-       test( "path.cleanHash", function(){
-               same( $.mobile.path.cleanHash( "#anything/atall?akjfdjjf" ), "anything/atall", "removes query param");
-               same( $.mobile.path.cleanHash( "#nothing/atall" ), "nothing/atall", "removes query param");
-       });
-})(jQuery);
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_paths.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_paths.js
deleted file mode 100644 (file)
index 017a943..0000000
+++ /dev/null
@@ -1,178 +0,0 @@
-/*
- * mobile navigation path unit tests
- */
-(function($){
-       var url = $.mobile.path.parseUrl( location.href ),
-               home = location.href.replace( url.domain, "" );
-
-       var testPageLoad = function(testPageAnchorSelector, expectedTextValue){
-               expect( 2 );
-
-               $.testHelper.pageSequence([
-                       function(){
-                               // reset before each test, all tests expect original page
-                               // for relative urls
-                               $.testHelper.openPage( "#" + home);
-                       },
-
-                       // open our test page
-                       function(){
-                               $.testHelper.openPage("#pathing-tests");
-                       },
-
-                       // navigate to the linked page
-                       function(){
-                               var page = $.mobile.activePage;
-
-                               // check that the reset page isn't still open
-                               equal("", page.find(".reset-value").text());
-
-                               //click he test page link to execute the path
-                               page.find("a" + testPageAnchorSelector).click();
-                       },
-
-                       // verify that the page has changed and the expected text value is present
-                       function(){
-                               same($.mobile.activePage.find(".test-value").text(), expectedTextValue);
-                               start();
-                       }
-               ]);
-       };
-
-       // all of these alterations assume location.pathname will be a directory
-       // this is required to prevent the tests breaking in a subdirectory
-       // TODO could potentially be fragile since the tests could be running while
-       //      the urls are being updated
-       $(function(){
-               $("a.site-rel").each(function(i, elem){
-                       var $elem = $(elem);
-                       $elem.attr("href", location.pathname + $(elem).attr("href"));
-               });
-
-               $('a.protocol-rel').each(function(i, elem){
-                       var $elem = $(elem);
-                       $elem.attr("href", "//" + location.host + location.pathname + $(elem).attr("href"));
-               });
-
-               $('a.absolute').each(function(i, elem){
-                       var $elem = $(elem);
-                       $elem.attr("href",
-                                                                       location.protocol + "//" + location.host +
-                                                                       location.pathname + $(elem).attr("href"));
-               });
-       });
-
-
-       //Doc relative tests
-       module("document relative paths");
-
-       asyncTest( "file reference no nesting", function(){
-               testPageLoad("#doc-rel-test-one", "doc rel test one");
-       });
-
-       asyncTest( "file reference with nesting", function(){
-               testPageLoad("#doc-rel-test-two", "doc rel test two");
-       });
-
-       asyncTest( "file reference with double nesting", function(){
-               testPageLoad("#doc-rel-test-three", "doc rel test three");
-       });
-
-       asyncTest( "dir refrence with nesting", function(){
-               testPageLoad("#doc-rel-test-four", "doc rel test four");
-       });
-
-       asyncTest( "file refrence with parent dir", function(){
-               testPageLoad("#doc-rel-test-five", "doc rel test five");
-       });
-
-       asyncTest( "dir refrence with parent dir", function(){
-               testPageLoad("#doc-rel-test-six", "doc rel test six");
-       });
-
-
-       // Site relative tests
-       // NOTE does not test root path or non nested references
-       module("site relative paths");
-
-       asyncTest( "file reference no nesting", function(){
-               testPageLoad("#site-rel-test-one", "doc rel test one");
-       });
-
-       asyncTest( "file reference with nesting", function(){
-               testPageLoad("#site-rel-test-two", "doc rel test two");
-       });
-
-       asyncTest( "file reference with double nesting", function(){
-               testPageLoad("#site-rel-test-three", "doc rel test three");
-       });
-
-       asyncTest( "dir refrence with nesting", function(){
-               testPageLoad("#site-rel-test-four", "doc rel test four");
-       });
-
-       asyncTest( "file refrence with parent dir", function(){
-               testPageLoad("#site-rel-test-five", "doc rel test five");
-       });
-
-       asyncTest( "dir refrence with parent dir", function(){
-               testPageLoad("#site-rel-test-six", "doc rel test six");
-       });
-
-
-       // Protocol relative tests
-       // NOTE does not test root path or non nested references
-       module("protocol relative paths");
-
-       asyncTest( "file reference no nesting", function(){
-               testPageLoad("#protocol-rel-test-one", "doc rel test one");
-       });
-
-       asyncTest( "file reference with nesting", function(){
-               testPageLoad("#protocol-rel-test-two", "doc rel test two");
-       });
-
-       asyncTest( "file reference with double nesting", function(){
-               testPageLoad("#protocol-rel-test-three", "doc rel test three");
-       });
-
-       asyncTest( "dir refrence with nesting", function(){
-               testPageLoad("#protocol-rel-test-four", "doc rel test four");
-       });
-
-       asyncTest( "file refrence with parent dir", function(){
-               testPageLoad("#protocol-rel-test-five", "doc rel test five");
-       });
-
-       asyncTest( "dir refrence with parent dir", function(){
-               testPageLoad("#protocol-rel-test-six", "doc rel test six");
-       });
-
-       // absolute tests
-       // NOTE does not test root path or non nested references
-       module("abolute paths");
-
-       asyncTest( "file reference no nesting", function(){
-               testPageLoad("#absolute-test-one", "doc rel test one");
-       });
-
-       asyncTest( "file reference with nesting", function(){
-               testPageLoad("#absolute-test-two", "doc rel test two");
-       });
-
-       asyncTest( "file reference with double nesting", function(){
-               testPageLoad("#absolute-test-three", "doc rel test three");
-       });
-
-       asyncTest( "dir refrence with nesting", function(){
-               testPageLoad("#absolute-test-four", "doc rel test four");
-       });
-
-       asyncTest( "file refrence with parent dir", function(){
-               testPageLoad("#absolute-test-five", "doc rel test five");
-       });
-
-       asyncTest( "dir refrence with parent dir", function(){
-               testPageLoad("#absolute-test-six", "doc rel test six");
-       });
-})(jQuery);
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_transitions.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_transitions.js
deleted file mode 100644 (file)
index 9b16f0a..0000000
+++ /dev/null
@@ -1,243 +0,0 @@
-/*
- * mobile navigation unit tests
- */
-(function($){
-       var perspective,
-                       transitioning = "ui-mobile-viewport-transitioning",
-                       animationCompleteFn = $.fn.animationComplete,
-                       defaultMaxTrans = $.mobile.maxTransitionWidth,
-
-                       //TODO centralize class names?
-                       transitionTypes = "in out fade slide flip reverse pop",
-
-                       isTransitioning = function(page){
-                               return $.grep(transitionTypes.split(" "), function(className, i){
-                                       return page.hasClass(className);
-                               }).length > 0;
-                       },
-
-                       isTransitioningIn = function(page){
-                               return page.hasClass("in") && isTransitioning(page);
-                       },
-
-                       disableMaxTransWidth = function(){
-                               $.mobile.maxTransitionWidth = false;
-                       },
-
-                       enableMaxTransWidth = function(){
-                               $.mobile.maxTransitionWidth = defaultMaxTrans;
-                       },
-
-                       //animationComplete callback queue
-                       fromQueue = [],
-                       toQueue = [],
-
-                       resetQueues = function(){
-                               fromQueue = [];
-                               toQueue = [];
-                       },
-
-                       onFromComplete = function( f ){
-                               fromQueue.push( f );
-                       },
-
-                       onToComplete = function( f ){
-                               toQueue.push( f );
-                       },
-
-
-                       //wipe all urls
-                       clearUrlHistory = function(){
-                               $.mobile.urlHistory.stack = [];
-                               $.mobile.urlHistory.activeIndex = 0;
-                       };
-
-
-       if( !$.support.cssTransform3d  ) {
-               perspective = "viewport-fade";
-  } else {
-    perspective = "viewport-flip";
-  }
-
-       module('jquery.mobile.navigation.js', {
-               setup: function(){
-
-
-                       // disable this option so we can test transitions regardless of window width
-                       disableMaxTransWidth();
-
-                       //stub to allow callback before function is returned to transition handler
-                       $.fn.animationComplete = function( callback ){
-                               animationCompleteFn.call( this, function(){
-                                       var queue = $(this).is(".out") ? fromQueue : toQueue;
-                                       for( var i = 0, il = queue.length; i < il; i++ ){
-                                               queue.pop()( this );
-                                       }
-                                       callback();
-                               });
-
-                               return this;
-                       };
-
-                       resetQueues();
-                       clearUrlHistory();
-
-      if ( location.hash !== "#harmless-default-page" ) {
-                               stop();
-
-                               $(document).one("pagechange", function() {
-                                       start();
-                               } );
-
-                               location.hash = "#harmless-default-page";
-                       }
-               },
-
-               teardown: function(){
-                       // unmock animation complete
-                       $.fn.animationComplete = animationCompleteFn;
-                       enableMaxTransWidth();
-               }
-       });
-
-       /*
-       NOTES:
-       Our default transition handler now has either one or two animationComplete calls - two if there are two pages in play (from and to)
-       To is required, so each async function must call start() onToComplete, not onFromComplete.
-       */
-       asyncTest( "changePage applies perspective class to mobile viewport for flip", function(){
-               expect(1);
-
-               $.testHelper.pageSequence([
-                       function() {
-                               $.mobile.changePage("#foo");
-                       },
-
-                       function() {
-                               onToComplete( function( el ) {
-                                       console.log( $("body").attr("class") );
-                                       ok($("body").hasClass(perspective), "has viewport-flip or viewport-fade based on 3d transform");
-                                       start();
-                               });
-
-                               $("#foo > a").first().click();
-                       }
-               ]);
-       });
-
-       asyncTest( "changePage applies transition class to mobile viewport for default transition", function(){
-               expect(1);
-               $.testHelper.pageSequence([
-                       function() {
-                               $.mobile.changePage("#baz");
-                       },
-
-                       function() {
-                               onToComplete( function( el ){
-                                       ok($("body").hasClass(transitioning), "has transitioning class");
-                                       start();
-                               });
-
-                               $("#baz > a").click();
-                       }
-               ]);
-       });
-
-       asyncTest( "explicit transition preferred for page navigation reversal (ie back)", function(){
-               expect( 1 );
-
-               onToComplete(function(){
-                       $("#flip-trans > a").click();
-                       onToComplete(function(){
-                               $("#fade-trans > a").click();
-                               onToComplete(function(){
-                                       ok($("#flip-trans").hasClass("fade"), "has fade class");
-                                       start();
-                               });
-                       });
-               });
-
-               $("#fade-trans > a").click();
-       });
-
-       asyncTest( "default transition is fade", function(){
-               onToComplete(function(){
-                       ok($("#no-trans").hasClass("fade"), "has fade class");
-                       start();
-               })
-
-               $("#default-trans > a").click();
-       });
-
-       asyncTest( "changePage queues requests", function(){
-               expect(4)
-               var firstPage = $("#foo"),
-                       secondPage = $("#bar");
-
-               $.mobile.changePage(firstPage);
-               $.mobile.changePage(secondPage);
-
-               onToComplete(function(){
-                       ok(isTransitioningIn(firstPage), "first page begins transition");
-                       ok(!isTransitioningIn(secondPage), "second page doesn't transition yet");
-                       onToComplete(function(){
-                               ok(!isTransitioningIn(firstPage), "first page transition should be complete");
-                               ok(isTransitioningIn(secondPage), "second page should begin transitioning");
-                               start();
-
-                       });
-               });
-       });
-
-       asyncTest( "default transition is pop for a dialog", function(){
-               var defaultTransition = "pop";
-
-               if( !$.support.cssTransform3d ){
-                       defaultTransition = "fade";
-               }
-
-               expect( 1 );
-               onToComplete(function(){
-                       ok( $("#no-trans-dialog").hasClass(defaultTransition), "has pop class" );
-                       start();
-               });
-
-               $("#default-trans-dialog > a").click();
-       });
-
-       test( "animationComplete return value", function(){
-               $.fn.animationComplete = animationCompleteFn;
-               equals($("#foo").animationComplete(function(){})[0], $("#foo")[0]);
-       });
-
-
-       // reusable function for a few tests below
-       function testTransitionMaxWidth( val, expected ){
-               expect( 1 );
-
-               $.mobile.maxTransitionWidth = val;
-
-               var transitionOccurred = false;
-
-               onToComplete(function(){
-                       transitionOccurred = true;
-               });
-
-
-               return setTimeout(function(){
-                       ok( transitionOccurred === expected, (expected ? "" : "no ") + "transition occurred" );
-                       start();
-               }, 5000);
-
-               $.mobile.changePage( $(".ui-page:not(.ui-page-active)").first() );
-
-       }
-
-       asyncTest( "maxTransitionWidth property disables transitions when value is less than browser width", function(){
-               testTransitionMaxWidth( $( window ).width() - 1, false );
-       });
-
-       asyncTest( "maxTransitionWidth property disables transitions when value is false", function(){
-               testTransitionMaxWidth( false, false );
-       });
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/file.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/file.html
deleted file mode 100644 (file)
index 98e20d5..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-</head>
-<body>
-       <div data-nstest-role="page">
-               <div class="test-value">doc rel test two</div>
-       </div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/parent-ref.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/parent-ref.html
deleted file mode 100644 (file)
index d4b6242..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-</head>
-<body>
-       <div data-nstest-role="page">
-               <div class="test-value">doc rel test five</div>
-       </div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/parent/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/parent/index.html
deleted file mode 100644 (file)
index 3fc4f33..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-</head>
-<body>
-       <div data-nstest-role="page">
-               <div class="test-value">doc rel test six</div>
-       </div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/sub-dir/file.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/sub-dir/file.html
deleted file mode 100644 (file)
index 93aad52..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-</head>
-<body>
-       <div data-nstest-role="page">
-               <div class="test-value">doc rel test three</div>
-       </div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/sub-dir/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/sub-dir/index.html
deleted file mode 100644 (file)
index 8ef666a..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-</head>
-<body>
-       <div data-nstest-role="page">
-               <div class="test-value">doc rel test four</div>
-       </div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/prefetched-dialog.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/prefetched-dialog.html
deleted file mode 100644 (file)
index bea1799..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <title>Title Tag</title>
-</head>
-<body>
-  <div data-nstest-role="page" id="prefetched-dialog"></div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/prefetched.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/prefetched.html
deleted file mode 100644 (file)
index de66a40..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <title>Title Tag</title>
-</head>
-<body>
-
-<div data-nstest-role="page" id="prefetched"></div>
-
-</body>
-</html>
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/push-state-dialog-tests.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/push-state-dialog-tests.html
deleted file mode 100644 (file)
index 8fcfabd..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile Navigation Test Suite</title>
-
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../../js/"></script>
-       <script src="../../../tests/jquery.testHelper.js"></script>
-
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-       <script src="../../../external/qunit.js"></script>
-
-       <script type="text/javascript" src="navigation_dialog_pushstate.js"></script>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Navigation Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div data-nstest-role="page">
-  <a href="#dialog">open the dialog</a>
-</div>
-
-<div id="dialog" data-nstest-role="dialog">
-        <div data-nstest-role="header" data-nstest-position="inline">
-                <h1>Dialog</h1>
-        </div>
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/push-state-disabled-base-tests.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/push-state-disabled-base-tests.html
deleted file mode 100644 (file)
index b2b499e..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-  <!-- forces the base-tests into a push state disabled run and allows for
-       the test suite runner to pick it up as a seperate test set. See test/unit/ls.php,
-       test/unit/runner.js, base-tests.html, and tests/jquery.testHelper.js for more. -->
-  <meta http-equiv="refresh" content="0; url='base-tests.html?push-state=false'"></meta>
-</head>
-<body>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/push-state-disabled-tests.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/push-state-disabled-tests.html
deleted file mode 100644 (file)
index 27b6eb5..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-  <!-- forces the base-tests into a push state disabled run and allows for
-       the test suite runner to pick it up as a seperate test set. See test/unit/ls.php,
-       test/unit/runner.js, base-tests.html, and tests/jquery.testHelper.js for more. -->
-  <meta http-equiv="refresh" content="0; url='./?push-state=false'"></meta>
-</head>
-<body>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/title1.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/title1.html
deleted file mode 100644 (file)
index eb83eae..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <title>Title Tag</title>
-</head>
-<body>
-
-<div data-nstest-role="page">
-  <a href="./" id="title-check-link">back to the parent page</a>
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/title2.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/title2.html
deleted file mode 100644 (file)
index 9545c53..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-
-</head>
-<body>
-
-<div data-nstest-role="page" data-nstest-title="Title Attr"></div>
-
-</body>
-</html>
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/title3.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/title3.html
deleted file mode 100644 (file)
index 714df82..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-</head>
-<body>
-
-<div data-nstest-role="page" >
-       <div data-nstest-role="header"><h1>Title Heading</h1></div>
-</div>
-
-</body>
-</html>
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/transition-tests.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/transition-tests.html
deleted file mode 100644 (file)
index 8444dad..0000000
+++ /dev/null
@@ -1,285 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile Navigation Test Suite</title>
-
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../../tests/jquery.testHelper.js"></script>
-       <script type="text/javascript">
-               $.testHelper.setPushState();
-       </script>
-
-       <script src="../../../js/"></script>
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-       <script src="../../../external/qunit.js"></script>
-
-       <script type="text/javascript" src="navigation_transitions.js"></script>
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Navigation Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div id="harmless-default-page"         data-nstest-role="page" class="first-page">
-</div>
-
-<div id="foo" data-nstest-role="page" class="foo-class">
-       <a href="#bar" data-nstest-transition="flip"></a>
-       <a id="bad-internal-page-link" href="#non-existent-page"></a>
-</div>
-
-<div id="prefetch" data-nstest-role="page">
-       <a href="prefetched.html" data-nstest-prefetch>Prefetch test</a>
-</div>
-
-<div id="foozball" data-nstest-role="page">
-</div>
-
-<div id="bar"   data-nstest-role="page">
-       <a href="#baz"></a>
-</div>
-
-<div id="baz"   data-nstest-role="page">
-       <a href="#foo"></a>
-</div>
-
-<div id="fade-trans" data-nstest-role="page">
-       <a href="#flip-trans" data-nstest-transition="fade"></a>
-</div>
-
-<div id="flip-trans" data-nstest-role="page">
-       <a href="#fade-trans" data-nstest-transition="flip"></a>
-</div>
-
-<div id="no-trans" data-nstest-role="page">
-       <a href="#pop-trans"></a>
-</div>
-
-<div id="pop-trans"     data-nstest-role="page">
-       <a href="#no-trans" data-nstest-transition="pop"></a>
-</div>
-
-<div id="default-trans"         data-nstest-role="page">
-       <a href="#no-trans"></a>
-</div>
-
-<div id="data-url" data-nstest-role="page">
-       <a href="data-url-tests/data-url.html"></a>
-</div>
-
-<div id="non-data-url" data-nstest-role="page">
-       <a href="data-url-tests/non-data-url.html"></a>
-</div>
-
-<div id="nested-data-url"       data-nstest-role="page">
-       <a href="data-url-tests/nested.html"></a>
-</div>
-
-<div id="single-quotes-data-url" data-nstest-role="page">
-       <a href="data-url-tests/single-quotes.html"></a>
-</div>
-
-<div id="reverse-attr-data-url"         data-nstest-role="page">
-       <a href="data-url-tests/reverse-attr.html"></a>
-</div>
-
-<div id="ajax-disabled-form" data-nstest-role="page">
-       <form method="POST" id="non-ajax-form" action="/ajax-disabled-form" data-nstest-ajax="false">
-       </form>
-
-       <form method="POST" id="ajax-form" action="/ajax-disabled-form">
-       </form>
-
-       <form method="POST" id="rand-ajax-form" action="/ajax-disabled-form" data-nstest-ajax="foo">
-       </form>
-</div>
-
-<div id="default-trans-dialog" data-nstest-role="page">
-       <a href="#no-trans-dialog" data-nstest-rel="dialog"></a>
-</div>
-
-<div id="no-trans-dialog" data-nstest-role="page">
-</div>
-
-<div id="dup-history-first" data-nstest-role="page">
-       <a href="#dup-history-second" data-nstest-transition="slideup" data-nstest-role="button" >
-               Page 2
-       </a>
-</div>
-
-<div id="dup-history-second" data-nstest-role="page">
-       <a href="#dup-history-first" data-nstest-transition="slideup" data-nstest-role="button">
-               Page 1
-       </a>
-       <a href="#dup-history-dialog" data-nstest-role="button" data-nstest-transition="pop" data-nstest-rel="dialog">Dialog</a>
-</div>
-
-<div id="dup-history-dialog" data-nstest-role="dialog">
-        <div data-nstest-role="header" data-nstest-position="inline">
-                <h1>Dialog</h1>
-        </div>
-</div>
-
-<div id="skip-dialog-first" data-nstest-role="page">
-       <div data-nstest-role="content">
-               <a href="#skip-dialog" data-nstest-role="button" data-nstest-transition="pop" data-nstest-rel="dialog">Dialog</a>
-       </div>
-</div>
-
-<div id="skip-dialog" data-nstest-role="dialog">
-       <div data-nstest-role="content">
-               <a href="#skip-dialog-second">Page 2</a>
-       </div>
-</div>
-
-<div id="skip-dialog-second" data-nstest-role="page">
-       <a href="#" data-nstest-rel="back">Go Back</a>
-</div>
-
-
-<div id="nested-dialog-page" data-nstest-role="page">
-       <div data-nstest-role="content">
-               <a href="#nested-dialog-first">Dialog</a>
-       </div>
-</div>
-
-<div id="nested-dialog-first" data-nstest-role="dialog">
-       <div data-nstest-role="content">
-               <a href="#nested-dialog-second">Dialog 2</a>
-       </div>
-</div>
-
-<div id="nested-dialog-second" data-nstest-role="dialog">
-</div>
-
-<div id="relative-after-embeded-page-first" data-nstest-role="page">
-       <div data-nstest-role="content">
-               <a href="#relative-after-embeded-page-second">second page</a>
-       </div>
-</div>
-
-<div id="relative-after-embeded-page-second" data-nstest-role="page">
-       <div data-nstest-role="content">
-               <a href="data-url-tests/data-url.html">file path page</a>
-       </div>
-</div>
-
-<div id="ajax-title-page" data-nstest-title="Title Attr 1" data-nstest-role="page">
-       <a href="title1.html" id="titletest1" data-nstest-transition="none">test</a>
-       <a href="title2.html" id="titletest2" data-nstest-transition="none">test</a>
-       <a href="title3.html" id="titletest3" data-nstest-transition="none">test</a>
-</div>
-
-<div data-nstest-role="page" id="titletest4" data-nstest-title="Title Attr 2">
-       <div data-nstest-role="header"><h1>Title Heading</h1></div>
-</div>
-
-<div data-nstest-role="page" id="titletest5" data-nstest-title="Title Attr">
-       <div data-nstest-role="header"><h1>Title Heading</h1></div>
-</div>
-
-<div data-nstest-role="page" id="self-link">
-       <a href="#self-link">self!</a>
-</div>
-
-<div data-nstest-role="page" id="dialog-param-link">
-       <a href="dialog-param-test/dialog-param.html">go</a>
-</div>
-
-<div data-nstest-role="page" id="pathing-tests">
-       <!-- doc rel links -->
-       <a href="file.html" id="doc-rel-test-one">go</a>
-       <a href="path-tests/file.html" id="doc-rel-test-two">go</a>
-       <a href="path-tests/sub-dir/file.html" id="doc-rel-test-three">go</a>
-       <a href="path-tests/sub-dir/" id="doc-rel-test-four">go</a>
-       <a href="../../unit/navigation/path-tests/parent-ref.html" id="doc-rel-test-five">go</a>
-       <a href="../../unit/navigation/path-tests/parent/" id="doc-rel-test-six">go</a>
-
-       <!-- site rel links -->
-       <!-- these will be altered before the test suite runs to use the current path -->
-       <a href="file.html" id="site-rel-test-one" class="site-rel">go</a>
-       <a href="path-tests/file.html" id="site-rel-test-two" class="site-rel">go</a>
-       <a href="path-tests/sub-dir/file.html" id="site-rel-test-three" class="site-rel">go</a>
-       <a href="path-tests/sub-dir/" id="site-rel-test-four" class="site-rel">go</a>
-       <a href="../../unit/navigation/path-tests/parent-ref.html" id="site-rel-test-five" class="site-rel">go</a>
-       <a href="../../unit/navigation/path-tests/parent/" id="site-rel-test-six" class="site-rel">go</a>
-
-       <!-- protocol rel links -->
-       <!-- these will be altered before the test suite runs to use the
-                        current domain and path -->
-       <a href="file.html" id="protocol-rel-test-one" class="protocol-rel">go</a>
-       <a href="path-tests/file.html" id="protocol-rel-test-two" class="protocol-rel">go</a>
-       <a href="path-tests/sub-dir/file.html" id="protocol-rel-test-three" class="protocol-rel">go</a>
-       <a href="path-tests/sub-dir/" id="protocol-rel-test-four" class="protocol-rel">go</a>
-       <a href="../../unit/navigation/path-tests/parent-ref.html" id="protocol-rel-test-five" class="protocol-rel">go</a>
-       <a href="../../unit/navigation/path-tests/parent/" id="protocol-rel-test-six" class="protocol-rel">go</a>
-
-       <!-- absolute links -->
-       <!-- these will be altered before the test suite runs to use the
-                        current protocol, domain and path -->
-       <a href="file.html" id="absolute-test-one" class="absolute">go</a>
-       <a href="path-tests/file.html" id="absolute-test-two" class="absolute">go</a>
-       <a href="path-tests/sub-dir/file.html" id="absolute-test-three" class="absolute">go</a>
-       <a href="path-tests/sub-dir/" id="absolute-test-four" class="absolute">go</a>
-       <a href="../../unit/navigation/path-tests/parent-ref.html" id="absolute-test-five" class="absolute">go</a>
-       <a href="../../unit/navigation/path-tests/parent/" id="absolute-test-six" class="absolute">go</a>
-
-</div>
-
-<div data-nstest-role="page" id="pathing-tests-reset">
-       <div class="reset-value">page didn't change!</div>
-</div>
-
-<div data-nstest-role="page" id="internal-no-action-form-page">
-       <div data-nstest-role="content">
-               <form>
-                       <input type="hidden" name="foo" value="1">
-                       <input type="hidden" name="bar" value="2">
-               </form>
-                               <a href="form-tests/form-no-action.html">External page containing form with no action.</a>
-               </div>
-</div>
-
-<div id="active-state-page1" data-nstest-role="page">
-       <div data-nstest-role="content">
-               <a href="#active-state-page2" data-nstest-role="button">page2</a>
-       </div>
-</div>
-
-<div id="active-state-page2" data-nstest-role="page">
-       <div data-nstest-role="content">
-               <a href="#active-state-page1" data-nstest-role="button">href button</a>
-               <a href="#active-state-page1" data-nstest-rel="back" data-nstest-role="button">back button</a>
-       </div>
-</div>
-
-
-
-<div id="odd-clicks-page" data-nstest-role="page">
-  <a href="#odd-clicks-page-dest" id="right-or-middle-click">foo</a>
-</div>
-
-<div id="odd-clicks-page-dest" data-nstest-role="page"></div>
-
-<div id="inject-links-page" data-nstest-role="page">
-  <a href="#injected-test-page" id="static-injected-test-page-link">static link</a>
-</div>
-
-<div id="prefetched-dialog-page" data-nstest-role="page">
-  <a href="prefetched-dialog.html"
-     id="prefetched-dialog-link"
-     data-nstest-role="prefetch"
-     data-nstest-rel="dialog">
-    static link
-  </a>
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/page-sections/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/page-sections/index.html
deleted file mode 100644 (file)
index c413111..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile Page Test Suite</title>
-
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../../tests/jquery.testHelper.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [
-                               "jquery.mobile.page",
-                               "jquery.mobile.page.sections"
-                       ],
-                       [ "page_core.js" ],
-                       [ "jquery.mobile.init" ]
-               ]);
-       </script>
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Page Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div id="qunit-fixture">
-       <div data-nstest-role="page">
-               <div data-nstest-role="header">
-                       <div>
-                               <a href="foo">foo</a>
-                       </div>
-                       <a href="foo">foo</a>
-               </div><!-- /header -->
-
-               <div  data-nstest-role="footer">
-                       <div>
-                               <a href="foo">foo</a>
-                       </div>
-
-                       <a href="foo">foo</a>
-               </div><!-- /header -->
-
-               <div class="ui-bar">
-                       <div>
-                               <a href="foo">foo</a>
-                       </div>
-
-                       <a href="foo">foo</a>
-               </div>
-       </div>
-</div>
-
-<div data-nstest-enhance="false">
-       <div data-nstest-role="header" id="ignored-header">
-               <div>
-                       <a href="foo">foo</a>
-               </div>
-               <a href="foo">foo</a>
-       </div><!-- /header -->
-</div>
-
-<div>
-       <div data-nstest-role="header" id="enhanced-header">
-               <div>
-                       <a href="foo">foo</a>
-               </div>
-               <a href="foo">foo</a>
-       </div><!-- /header -->
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/page-sections/page_core.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/page-sections/page_core.js
deleted file mode 100644 (file)
index 75f0765..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * mobile page unit tests
- */
-(function($){
-       var libName = 'jquery.mobile.page.sections';
-
-       module(libName);
-
-       test( "nested header anchors aren't altered", function(){
-               ok(!$('.ui-header > div > a').hasClass('ui-btn'));
-       });
-
-       test( "nested footer anchors aren't altered", function(){
-               ok(!$('.ui-footer > div > a').hasClass('ui-btn'));
-       });
-
-       test( "nested bar anchors aren't styled", function(){
-               ok(!$('.ui-bar > div > a').hasClass('ui-btn'));
-       });
-
-       test( "unnested footer anchors are styled", function(){
-               ok($('.ui-footer > a').hasClass('ui-btn'));
-       });
-
-       test( "unnested bar anchors are styled", function(){
-               ok($('.ui-bar > a').hasClass('ui-btn'));
-       });
-
-       test( "no auto-generated back button exists on first page", function(){
-               ok( !$(".ui-header > :jqmData(rel='back')").length );
-       });
-
-       test( "sections inside an ignored container do not enhance", function() {
-               var $ignored = $( "#ignored-header" ),  $enhanced = $( "#enhanced-header" );
-
-               $.mobile.ignoreContentEnabled = true;
-
-               $ignored
-                       .parent()
-                       .attr( "data-" + $.mobile.ns + "role", "page" )
-                       .page()
-                       .trigger( "pagecreate" );
-               same( $ignored.attr( "class" ), undefined, "ignored header has no class" );
-
-               $enhanced
-                       .parent()
-                       .attr( "data-" + $.mobile.ns + "role", "page" )
-                       .page()
-                       .trigger( "pagecreate" );
-               same( $enhanced.attr( "class" ).indexOf("ui-header"), 0, "enhanced header has classes" );
-
-               $.mobile.ignoreContentEnabled = false;
-       });
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/page/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/page/index.html
deleted file mode 100644 (file)
index b6cc81d..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile Page Test Suite</title>
-
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../../tests/jquery.testHelper.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [
-                               "jquery.mobile.page",
-                               "jquery.mobile.links",
-                       ],
-                       [ "page_core.js" ],
-                       [ "jquery.mobile.init" ]
-               ]);
-       </script>
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css" />
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Page Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div id="a" data-nstest-role="page"></div>
-<div id="b" data-nstest-role="page" data-nstest-theme="e"></div>
-<div id="c" data-nstest-role="page"></div>
-
-<div>
-  <a href="#" id="enhanced-link"></a>
-</div>
-
-<div data-nstest-enhance="false">
-  <a href="#" id="ignored-link"></a>
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/page/page_core.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/page/page_core.js
deleted file mode 100644 (file)
index 234df61..0000000
+++ /dev/null
@@ -1,157 +0,0 @@
-/*
- * mobile page unit tests
- */
-(function($){
-       var libName = 'jquery.mobile.page',
-               themedefault = $.mobile.page.prototype.options.theme,
-               keepNative = $.mobile.page.prototype.options.keepNative;
-
-       module(libName, {
-               setup: function() {
-                       $.mobile.page.prototype.options.keepNative = keepNative;
-               }
-       });
-
-       var eventStack = [],
-               etargets = [],
-               cEvents=[],
-               cTargets=[];
-
-       $( document ).bind( "pagebeforecreate pagecreate", function( e ){
-               eventStack.push( e.type );
-               etargets.push( e.target );
-       });
-
-       $( "#c" ).live( "pagebeforecreate", function( e ){
-               cEvents.push( e.type );
-               cTargets.push( e.target );
-               return false;
-       });
-
-       test( "pagecreate event fires when page is created", function(){
-               ok( eventStack[0] === "pagecreate" || eventStack[1] === "pagecreate" );
-       });
-
-       test( "pagebeforecreate event fires when page is created", function(){
-               ok( eventStack[0] === "pagebeforecreate" || eventStack[1] === "pagebeforecreate" );
-       });
-
-       test( "pagebeforecreate fires before pagecreate", function(){
-               ok( eventStack[0] === "pagebeforecreate" );
-       });
-
-       test( "target of pagebeforecreate event was div #a", function(){
-               ok( $( etargets[0] ).is("#a") );
-       });
-
-       test( "target of pagecreate event was div #a" , function(){
-               ok( $( etargets[0] ).is("#a") );
-       });
-
-       test( "page element has ui-page class" , function(){
-               ok( $( "#a" ).hasClass( "ui-page" ) );
-       });
-
-       test( "page element has default body theme when not overidden" , function(){
-               ok( $( "#a" ).hasClass( "ui-body-" + themedefault ) );
-       });
-
-       test( "B page has non-default theme matching its data-theme attr" , function(){
-               $( "#b" ).page();
-               var btheme = $( "#b" ).jqmData( "theme" );
-               ok( $( "#b" ).hasClass( "ui-body-" + btheme ) );
-       });
-
-       test( "Binding to pagebeforecreate and returning false prevents pagecreate event from firing" , function(){
-               $( "#c" ).page();
-
-               ok( cEvents[0] === "pagebeforecreate" );
-               ok( !cTargets[1] );
-       });
-
-       test( "Binding to pagebeforecreate and returning false prevents classes from being applied to page" , function(){
-               $( "#c" ).page();
-
-               ok( !$( "#c" ).hasClass( "ui-body-" + themedefault ) );
-               ok( !$( "#c" ).hasClass( "ui-page" ) );
-       });
-
-       test( "keepNativeSelector returns the default where keepNative is not different", function() {
-               var pageProto = $.mobile.page.prototype;
-               pageProto.options.keepNative = pageProto.options.keepNativeDefault;
-
-               same(pageProto.keepNativeSelector(), pageProto.options.keepNativeDefault);
-       });
-
-       test( "keepNativeSelector returns the default where keepNative is empty, undefined, whitespace", function() {
-               var pageProto = $.mobile.page.prototype;
-
-               pageProto.options.keepNative = "";
-               same(pageProto.keepNativeSelector(), pageProto.options.keepNativeDefault);
-
-               pageProto.options.keepNative = undefined;
-               same(pageProto.keepNativeSelector(), pageProto.options.keepNativeDefault);
-
-               pageProto.options.keepNative = "  ";
-               same(pageProto.keepNativeSelector(), pageProto.options.keepNativeDefault);
-       });
-
-       test( "keepNativeSelector returns a selector joined with the default", function() {
-               var pageProto = $.mobile.page.prototype;
-
-               pageProto.options.keepNative = "foo, bar";
-               same(pageProto.keepNativeSelector(), "foo, bar, " + pageProto.options.keepNativeDefault);
-       });
-
-       test( "links inside an ignored container do not enhance", function() {
-               var $ignored = $( "#ignored-link" ), $enhanced = $( "#enhanced-link" );
-
-               $.mobile.ignoreContentEnabled = true;
-
-               $ignored.parent().trigger( "create" );
-               same( $ignored.attr( "class" ), undefined, "ignored link doesn't have link class" );
-
-               $enhanced.parent().trigger( "create" );
-               same( $enhanced.attr( "class" ).indexOf("ui-link"), 0, "enhanced link has link class" );
-
-               $.mobile.ignoreContentEnabled = false;
-       });
-       
-       
-       asyncTest( "page container is updated to page theme at pagebeforeshow", function(){
-               
-               expect( 1 );
-               
-               var pageTheme = "ui-overlay-" + $.mobile.activePage.page( "option", "theme" );
-
-               $.mobile.pageContainer.removeClass( pageTheme );
-               
-               $.mobile.activePage
-                       .bind( "pagebeforeshow", function(){
-                               ok( $.mobile.pageContainer.hasClass( pageTheme ), "Page container has the same theme as the page on pagebeforeshow" );
-                               start();
-                       })
-                       .trigger( "pagebeforeshow" );
-
-       } );
-       
-       asyncTest( "page container is updated to page theme at pagebeforeshow", function(){
-               
-               expect( 1 );
-               
-               var pageTheme = "ui-overlay-" + $.mobile.activePage.page( "option", "theme" );
-
-               $.mobile.pageContainer.addClass( pageTheme );
-               
-               $.mobile.activePage
-                       .bind( "pagebeforehide", function(){
-                               ok( !$.mobile.pageContainer.hasClass( pageTheme ), "Page container does not have the same theme as the page on pagebeforeshow" );
-                               start();
-                       })
-                       .trigger( "pagebeforehide" );
-
-       } );
-       
-       
-       
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/runner.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/runner.js
deleted file mode 100644 (file)
index 4505996..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-$(function() {
-       var Runner = function( ) {
-               var self = this;
-
-               $.extend( self, {
-                       frame: window.frames[ "testFrame" ],
-
-                       testTimeout: 3 * 60 * 1000,
-
-                       $frameElem: $( "#testFrame" ),
-
-                       assertionResultPrefix: "assertion result for test:",
-
-                       onTimeout: QUnit.start,
-
-                       onFrameLoad: function() {
-                               // establish a timeout for a given suite in case of async tests hanging
-                               self.testTimer = setTimeout( self.onTimeout, self.testTimeout );
-
-                               // it might be a redirect with query params for push state
-                               // tests skip this call and expect another
-                               if( !self.frame.QUnit ) {
-                                       self.$frameElem.one( "load", self.onFrameLoad );
-                                       return;
-                               }
-
-                               // when the QUnit object reports done in the iframe
-                               // run the onFrameDone method
-                               self.frame.QUnit.done = self.onFrameDone;
-                               self.frame.QUnit.testDone = self.onTestDone;
-                       },
-
-                       onTestDone: function( result ) {
-                               QUnit.ok( !(result.failed > 0), result.name );
-                               self.recordAssertions( result.total - result.failed, result.name );
-                       },
-
-                       onFrameDone: function( results ) {
-                               // make sure we don't time out the tests
-                               clearTimeout( self.testTimer );
-
-                               // TODO decipher actual cause of multiple test results firing twice
-                               // clear the done call to prevent early completion of other test cases
-                               self.frame.QUnit.done = $.noop;
-                               self.frame.QUnit.testDone = $.noop;
-
-                               // hide the extra assertions made to propogate the count
-                               // to the suite level test
-                               self.hideAssertionResults();
-
-                               // continue on to the next suite
-                               QUnit.start();
-                       },
-
-                       recordAssertions: function( count, parentTest ) {
-                               for( var i = 0; i < count; i++ ) {
-                                       ok( true, self.assertionResultPrefix + parentTest );
-                               }
-                       },
-
-                       hideAssertionResults: function() {
-                               $( "li:not([id]):contains('" + self.assertionResultPrefix + "')" ).hide();
-                       },
-
-                       exec: function( data ) {
-                               var template = self.$frameElem.attr( "data-src" );
-
-                               $.each( data.testPages, function(i, dir) {
-                                       QUnit.asyncTest( dir, function() {
-                                               self.dir = dir;
-                                               self.$frameElem.one( "load", self.onFrameLoad );
-                                               self.$frameElem.attr( "src", template.replace("{{testdir}}", dir).replace( "{{jquery.version}}", $.fn.jquery ) );
-                                       });
-                               });
-
-                               // having defined all suite level tests let QUnit run
-                               QUnit.start();
-                       }
-               });
-       };
-
-       // prevent qunit from starting the test suite until all tests are defined
-       QUnit.begin = function(  ) {
-               this.config.autostart = false;
-       };
-
-       // get the test directories
-       $.get( "ls.php", (new Runner()).exec );
-});
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/cached-dom-cache-true.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/cached-dom-cache-true.html
deleted file mode 100644 (file)
index b5e719d..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE HTML>
-<html lang="en">
-  <head>
-    <meta charset="utf-8">
-  </head>
-  <body>
-    <div id="dialog-select-parent-domcache-test" data-nstest-role="page" data-nstest-dom-cache="true">
-           <div data-nstest-role="fieldcontain" id="domcache-page-select-container">
-                   <label for="domcache-page-select" class="select">Your state:</label>
-                   <select name="domcache-page-select" id="domcache-page-select" data-nstest-native-menu="false">
-                           <option value="AL">Alabama</option>
-                           <option value="AK">Alaska</option>
-                           <option value="AZ">Arizona</option>
-                           <option value="AR">Arkansas</option>
-                           <option value="CA">California</option>
-                           <option value="CO">Colorado</option>
-                           <option value="CT">Connecticut</option>
-                           <option value="DE">Delaware</option>
-                           <option value="FL">Florida</option>
-                           <option value="GA">Georgia</option>
-                           <option value="HI">Hawaii</option>
-                           <option value="ID">Idaho</option>
-                           <option value="IL">Illinois</option>
-                           <option value="IN">Indiana</option>
-                           <option value="IA">Iowa</option>
-                           <option value="KS">Kansas</option>
-                           <option value="KY">Kentucky</option>
-                           <option value="LA">Louisiana</option>
-                           <option value="ME">Maine</option>
-                           <option value="MD">Maryland</option>
-                           <option value="MA">Massachusetts</option>
-                           <option value="MI">Michigan</option>
-                           <option value="MN">Minnesota</option>
-                           <option value="MS">Mississippi</option>
-                           <option value="MO">Missouri</option>
-                           <option value="MT">Montana</option>
-                           <option value="NE">Nebraska</option>
-                           <option value="NV">Nevada</option>
-                           <option value="NH">New Hampshire</option>
-                           <option value="NJ">New Jersey</option>
-                           <option value="NM">New Mexico</option>
-                           <option value="NY">New York</option>
-                           <option value="NC">North Carolina</option>
-                           <option value="ND">North Dakota</option>
-                           <option value="OH">Ohio</option>
-                           <option value="OK">Oklahoma</option>
-                           <option value="OR">Oregon</option>
-                           <option value="PA">Pennsylvania</option>
-                           <option value="RI">Rhode Island</option>
-                           <option value="SC">South Carolina</option>
-                           <option value="SD">South Dakota</option>
-                           <option value="TN">Tennessee</option>
-                           <option value="TX">Texas</option>
-                           <option value="UT">Utah</option>
-                           <option value="VT">Vermont</option>
-                           <option value="VA">Virginia</option>
-                           <option value="WA">Washington</option>
-                           <option value="WV">West Virginia</option>
-                           <option value="WI">Wisconsin</option>
-                           <option value="WY">Wyoming</option>
-                   </select>
-           </div>
-    </div>
-  </body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/cached-tests.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/cached-tests.html
deleted file mode 100644 (file)
index 627bc3d..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile Select Events Test Suite</title>
-
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../../tests/jquery.testHelper.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [
-                               "jquery.mobile.forms.select",
-                               "jquery.mobile.forms.select.custom"
-                       ],
-                       [ "jquery.mobile.init" ],
-                       [       "select_cached.js" ]
-               ]);
-       </script>
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Select Event Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-<div id="default"  data-nstest-role="page"></div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/cached.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/cached.html
deleted file mode 100644 (file)
index 0ca8691..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE HTML>
-<html lang="en">
-  <head>
-    <meta charset="utf-8">
-  </head>
-  <body>
-    <div id="dialog-select-parent-cache-test" data-nstest-role="page">
-           <div data-nstest-role="fieldcontain" id="cached-page-select-container">
-                   <label for="cached-page-select" class="select">Your state:</label>
-                   <select name="cached-page-select" id="cached-page-select" data-nstest-native-menu="false">
-                           <option value="AL">Alabama</option>
-                           <option value="AK">Alaska</option>
-                           <option value="AZ">Arizona</option>
-                           <option value="AR">Arkansas</option>
-                           <option value="CA">California</option>
-                           <option value="CO">Colorado</option>
-                           <option value="CT">Connecticut</option>
-                           <option value="DE">Delaware</option>
-                           <option value="FL">Florida</option>
-                           <option value="GA">Georgia</option>
-                           <option value="HI">Hawaii</option>
-                           <option value="ID">Idaho</option>
-                           <option value="IL">Illinois</option>
-                           <option value="IN">Indiana</option>
-                           <option value="IA">Iowa</option>
-                           <option value="KS">Kansas</option>
-                           <option value="KY">Kentucky</option>
-                           <option value="LA">Louisiana</option>
-                           <option value="ME">Maine</option>
-                           <option value="MD">Maryland</option>
-                           <option value="MA">Massachusetts</option>
-                           <option value="MI">Michigan</option>
-                           <option value="MN">Minnesota</option>
-                           <option value="MS">Mississippi</option>
-                           <option value="MO">Missouri</option>
-                           <option value="MT">Montana</option>
-                           <option value="NE">Nebraska</option>
-                           <option value="NV">Nevada</option>
-                           <option value="NH">New Hampshire</option>
-                           <option value="NJ">New Jersey</option>
-                           <option value="NM">New Mexico</option>
-                           <option value="NY">New York</option>
-                           <option value="NC">North Carolina</option>
-                           <option value="ND">North Dakota</option>
-                           <option value="OH">Ohio</option>
-                           <option value="OK">Oklahoma</option>
-                           <option value="OR">Oregon</option>
-                           <option value="PA">Pennsylvania</option>
-                           <option value="RI">Rhode Island</option>
-                           <option value="SC">South Carolina</option>
-                           <option value="SD">South Dakota</option>
-                           <option value="TN">Tennessee</option>
-                           <option value="TX">Texas</option>
-                           <option value="UT">Utah</option>
-                           <option value="VT">Vermont</option>
-                           <option value="VA">Virginia</option>
-                           <option value="WA">Washington</option>
-                           <option value="WV">West Virginia</option>
-                           <option value="WI">Wisconsin</option>
-                           <option value="WY">Wyoming</option>
-                   </select>
-           </div>
-    </div>
-  </body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/defineKeepNative.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/defineKeepNative.js
deleted file mode 100644 (file)
index ed60f68..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-$(document).bind("mobileinit", function() {
-       $.mobile.page.prototype.options.keepNative = "select.should-be-native";
-});
-
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/index.html
deleted file mode 100644 (file)
index f7fb780..0000000
+++ /dev/null
@@ -1,405 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile Select Events Test Suite</title>
-
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script src="../../../tests/jquery.testHelper.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [
-                               "jquery.mobile.forms.select",
-                               "jquery.mobile.forms.select.custom",
-                               "defineKeepNative.js"
-                       ],
-                       [ "jquery.mobile.init" ],
-                       [
-                               "select_events.js",
-                               "select_native.js",
-                               "select_core.js"
-                       ]
-               ]);
-       </script>
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Select Event Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div id="default"  data-nstest-role="page" data-nstest-theme="c">
-       <div  data-nstest-role="fieldcontain" id="select-choice-few-container">
-               <select name="select-choice-few" id="select-choice-few" data-nstest-native-menu="false">
-                       <option value="standard">Standard: 7 day</option>
-                       <option value="rush">Rush: 3 days</option>
-                       <option value="express">Express: next day</option>
-                       <option value="overnight">Overnight</option>
-               </select>
-       </div>
-
-       <div  data-nstest-role="fieldcontain" id="native-select-choice-few-container">
-         <label for="native-select-choice-few" class="select">Choose shipping method:</label>
-               <select name="native-select-choice-few" id="native-select-choice-few" data-nstest-native-menu="true">
-                       <option value="standard">Standard: 7 day</option>
-                       <option value="rush">Rush: 3 days</option>
-                       <option value="express">Express: next day</option>
-                       <option value="overnight">Overnight</option>
-               </select>
-       </div>
-
-       <div  data-nstest-role="fieldcontain" id="select-choice-native-container">
-               <select name="select-choice-native" id="select-choice-native" data-nstest-native-menu="true">
-                       <option value="standard">Standard: 7 day</option>
-                       <option value="rush">Rush: 3 days</option>
-                       <option value="express">Express: next day</option>
-                       <option value="overnight">Overnight</option>
-               </select>
-       </div>
-
-       <div  data-nstest-role="fieldcontain" id="select-choice-global-native-container">
-               <select name="select-choice-global-native" id="select-choice-global-native"  data-nstest-native-menu="false">
-                       <option value="standard">Standard: 7 day</option>
-                       <option value="rush">Rush: 3 days</option>
-                       <option value="express">Express: next day</option>
-                       <option value="overnight">Overnight</option>
-               </select>
-       </div>
-
-       <div data-nstest-role="fieldcontain" id="select-choice-focus-test">
-               <select name="select-choice-focus-test" id="select-choice-focus-test"  data-nstest-native-menu="false">
-                       <option value="standard">Standard: 7 day</option>
-                       <option value="rush">Rush: 3 days</option>
-                       <option value="express">Express: next day</option>
-                       <option value="overnight">Overnight</option>
-               </select>
-       </div>
-
-       <div  data-nstest-role="fieldcontain" id="select-choice-many-container-1">
-               <label for="select-choice-many-1" class="select">Your state:</label>
-               <select name="select-choice-many-1" id="select-choice-many-1" data-nstest-native-menu="false">
-                       <option value="AL">Alabama</option>
-                       <option value="AK">Alaska</option>
-                       <option value="AZ">Arizona</option>
-                       <option value="AR">Arkansas</option>
-                       <option value="CA">California</option>
-                       <option value="CO">Colorado</option>
-                       <option value="CT">Connecticut</option>
-                       <option value="DE">Delaware</option>
-                       <option value="FL">Florida</option>
-                       <option value="GA">Georgia</option>
-                       <option value="HI">Hawaii</option>
-                       <option value="ID">Idaho</option>
-                       <option value="IL">Illinois</option>
-                       <option value="IN">Indiana</option>
-                       <option value="IA">Iowa</option>
-                       <option value="KS">Kansas</option>
-                       <option value="KY">Kentucky</option>
-                       <option value="LA">Louisiana</option>
-                       <option value="ME">Maine</option>
-                       <option value="MD">Maryland</option>
-                       <option value="MA">Massachusetts</option>
-                       <option value="MI">Michigan</option>
-                       <option value="MN">Minnesota</option>
-                       <option value="MS">Mississippi</option>
-                       <option value="MO">Missouri</option>
-                       <option value="MT">Montana</option>
-                       <option value="NE">Nebraska</option>
-                       <option value="NV">Nevada</option>
-                       <option value="NH">New Hampshire</option>
-                       <option value="NJ">New Jersey</option>
-                       <option value="NM">New Mexico</option>
-                       <option value="NY">New York</option>
-                       <option value="NC">North Carolina</option>
-                       <option value="ND">North Dakota</option>
-                       <option value="OH">Ohio</option>
-                       <option value="OK">Oklahoma</option>
-                       <option value="OR">Oregon</option>
-                       <option value="PA">Pennsylvania</option>
-                       <option value="RI">Rhode Island</option>
-                       <option value="SC">South Carolina</option>
-                       <option value="SD">South Dakota</option>
-                       <option value="TN">Tennessee</option>
-                       <option value="TX">Texas</option>
-                       <option value="UT">Utah</option>
-                       <option value="VT">Vermont</option>
-                       <option value="VA">Virginia</option>
-                       <option value="WA">Washington</option>
-                       <option value="WV">West Virginia</option>
-                       <option value="WI">Wisconsin</option>
-                       <option value="WY">Wyoming</option>
-               </select>
-       </div>
-
-       <div  data-nstest-role="fieldcontain" id="select-choice-many-container">
-               <label for="select-choice-many" class="select">Your state:</label>
-               <select name="select-choice-many" id="select-choice-many" data-nstest-native-menu="false">
-                       <option value="AL">Alabama</option>
-                       <option value="AK">Alaska</option>
-                       <option value="AZ">Arizona</option>
-                       <option value="AR">Arkansas</option>
-                       <option value="CA">California</option>
-                       <option value="CO">Colorado</option>
-                       <option value="CT">Connecticut</option>
-                       <option value="DE">Delaware</option>
-                       <option value="FL">Florida</option>
-                       <option value="GA">Georgia</option>
-                       <option value="HI">Hawaii</option>
-                       <option value="ID">Idaho</option>
-                       <option value="IL">Illinois</option>
-                       <option value="IN">Indiana</option>
-                       <option value="IA">Iowa</option>
-                       <option value="KS">Kansas</option>
-                       <option value="KY">Kentucky</option>
-                       <option value="LA">Louisiana</option>
-                       <option value="ME">Maine</option>
-                       <option value="MD">Maryland</option>
-                       <option value="MA">Massachusetts</option>
-                       <option value="MI">Michigan</option>
-                       <option value="MN">Minnesota</option>
-                       <option value="MS">Mississippi</option>
-                       <option value="MO">Missouri</option>
-                       <option value="MT">Montana</option>
-                       <option value="NE">Nebraska</option>
-                       <option value="NV">Nevada</option>
-                       <option value="NH">New Hampshire</option>
-                       <option value="NJ">New Jersey</option>
-                       <option value="NM">New Mexico</option>
-                       <option value="NY">New York</option>
-                       <option value="NC">North Carolina</option>
-                       <option value="ND">North Dakota</option>
-                       <option value="OH">Ohio</option>
-                       <option value="OK">Oklahoma</option>
-                       <option value="OR">Oregon</option>
-                       <option value="PA">Pennsylvania</option>
-                       <option value="RI">Rhode Island</option>
-                       <option value="SC">South Carolina</option>
-                       <option value="SD">South Dakota</option>
-                       <option value="TN">Tennessee</option>
-                       <option value="TX">Texas</option>
-                       <option value="UT">Utah</option>
-                       <option value="VT">Vermont</option>
-                       <option value="VA">Virginia</option>
-                       <option value="WA">Washington</option>
-                       <option value="WV">West Virginia</option>
-                       <option value="WI">Wisconsin</option>
-                       <option value="WY">Wyoming</option>
-               </select>
-       </div>
-
-       <div  data-nstest-role="fieldcontain" id="select-choice-many-container-hash-check">
-               <label for="select-choice-many-hash-check" class="select">Your state:</label>
-               <select name="select-choice-many-hash-check" id="select-choice-many-hash-check"  data-nstest-native-menu="false">
-                       <option value="AL">Alabama</option>
-                       <option value="AK">Alaska</option>
-                       <option value="AZ">Arizona</option>
-                       <option value="AR">Arkansas</option>
-                       <option value="CA">California</option>
-                       <option value="CO">Colorado</option>
-                       <option value="CT">Connecticut</option>
-                       <option value="DE">Delaware</option>
-                       <option value="FL">Florida</option>
-                       <option value="GA">Georgia</option>
-                       <option value="HI">Hawaii</option>
-                       <option value="ID">Idaho</option>
-                       <option value="IL">Illinois</option>
-                       <option value="IN">Indiana</option>
-                       <option value="IA">Iowa</option>
-                       <option value="KS">Kansas</option>
-                       <option value="KY">Kentucky</option>
-                       <option value="LA">Louisiana</option>
-                       <option value="ME">Maine</option>
-                       <option value="MD">Maryland</option>
-                       <option value="MA">Massachusetts</option>
-                       <option value="MI">Michigan</option>
-                       <option value="MN">Minnesota</option>
-                       <option value="MS">Mississippi</option>
-                       <option value="MO">Missouri</option>
-                       <option value="MT">Montana</option>
-                       <option value="NE">Nebraska</option>
-                       <option value="NV">Nevada</option>
-                       <option value="NH">New Hampshire</option>
-                       <option value="NJ">New Jersey</option>
-                       <option value="NM">New Mexico</option>
-                       <option value="NY">New York</option>
-                       <option value="NC">North Carolina</option>
-                       <option value="ND">North Dakota</option>
-                       <option value="OH">Ohio</option>
-                       <option value="OK">Oklahoma</option>
-                       <option value="OR">Oregon</option>
-                       <option value="PA">Pennsylvania</option>
-                       <option value="RI">Rhode Island</option>
-                       <option value="SC">South Carolina</option>
-                       <option value="SD">South Dakota</option>
-                       <option value="TN">Tennessee</option>
-                       <option value="TX">Texas</option>
-                       <option value="UT">Utah</option>
-                       <option value="VT">Vermont</option>
-                       <option value="VA">Virginia</option>
-                       <option value="WA">Washington</option>
-                       <option value="WV">West Virginia</option>
-                       <option value="WI">Wisconsin</option>
-                       <option value="WY">Wyoming</option>
-               </select>
-       </div>
-
-       <div data-nstest-role="fieldcontain" id="select-choice-many-container-many-clicks">
-               <label for="select-choice-many-many-clicks" class="select">Your state:</label>
-               <select name="select-choice-many-many-clicks" id="select-choice-many-many-clicks"  data-nstest-native-menu="false">
-                       <option value="AL">Alabama</option>
-                       <option value="AK">Alaska</option>
-                       <option value="AZ">Arizona</option>
-                       <option value="AR">Arkansas</option>
-                       <option value="CA">California</option>
-                       <option value="CO">Colorado</option>
-                       <option value="CT">Connecticut</option>
-                       <option value="DE">Delaware</option>
-                       <option value="FL">Florida</option>
-                       <option value="GA">Georgia</option>
-                       <option value="HI">Hawaii</option>
-                       <option value="ID">Idaho</option>
-                       <option value="IL">Illinois</option>
-                       <option value="IN">Indiana</option>
-                       <option value="IA">Iowa</option>
-                       <option value="KS">Kansas</option>
-                       <option value="KY">Kentucky</option>
-                       <option value="LA">Louisiana</option>
-                       <option value="ME">Maine</option>
-                       <option value="MD">Maryland</option>
-                       <option value="MA">Massachusetts</option>
-                       <option value="MI">Michigan</option>
-                       <option value="MN">Minnesota</option>
-                       <option value="MS">Mississippi</option>
-                       <option value="MO">Missouri</option>
-                       <option value="MT">Montana</option>
-                       <option value="NE">Nebraska</option>
-                       <option value="NV">Nevada</option>
-                       <option value="NH">New Hampshire</option>
-                       <option value="NJ">New Jersey</option>
-                       <option value="NM">New Mexico</option>
-                       <option value="NY">New York</option>
-                       <option value="NC">North Carolina</option>
-                       <option value="ND">North Dakota</option>
-                       <option value="OH">Ohio</option>
-                       <option value="OK">Oklahoma</option>
-                       <option value="OR">Oregon</option>
-                       <option value="PA">Pennsylvania</option>
-                       <option value="RI">Rhode Island</option>
-                       <option value="SC">South Carolina</option>
-                       <option value="SD">South Dakota</option>
-                       <option value="TN">Tennessee</option>
-                       <option value="TX">Texas</option>
-                       <option value="UT">Utah</option>
-                       <option value="VT">Vermont</option>
-                       <option value="VA">Virginia</option>
-                       <option value="WA">Washington</option>
-                       <option value="WV">West Virginia</option>
-                       <option value="WI">Wisconsin</option>
-                       <option value="WY">Wyoming</option>
-               </select>
-       </div>
-
-       <div data-nstest-role="fieldcontain" id="select-offscreen-container">
-               <style>
-                       /* keep the select small and close to the screen border to test rendering */
-                       #select-offscreen-container {
-                       width: 100px;
-                       position: absolute;
-                       left: 0px;
-                       top: 0px;
-                       }
-               </style>
-
-               <select name="select-choice-few" id="select-offscreen" data-nstest-native-menu="false">
-                       <option value="standard">Standard: 7 day</option>
-                       <option value="rush">Rush: 3 days</option>
-                       <option value="express">Express: next day</option>
-                       <option value="overnight">Overnight</option>
-               </select>
-       </div>
-
-       <div data-nstest-role="fieldcontain" id="select-long-option-label-container">
-               <select name="select-long-option-label" id="select-long-option-label" data-nstest-native-menu="false">
-                       <option value="short">Choice 1</option>
-                       <option value="long">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</option>
-           </select>
-       </div>
-
-  <select name="native-refresh" id="native-refresh">
-    <option value="-1">default</option>
-    <option value="-1">other</option>
-  </select>
-
-  <select name="custom-refresh" id="custom-refresh" data-nstest-native-menu="false">
-    <option value="-1">default</option>
-  </select>
-
-  <select name="custom-refresh-opts-list" id="custom-refresh-opts-list" data-nstest-native-menu="false">
-    <option value="-1">default</option>
-  </select>
-
-  <select name="non-parent-themed" id="non-parent-themed" data-nstest-native-menu="false" data-nstest-theme="a">
-    <option value="-1">default</option>
-  </select>
-
-  <select name="parent-themed" id="parent-themed" data-nstest-native-menu="false">
-    <option value="-1">default</option>
-  </select>
-
-  <select name="encoded-option" id="encoded-option" data-nstest-native-menu="false">
-    <option>&lt;script&gt;window.encodedValueIsDefined = true;&lt;/script&gt;</option>
-  </select>
-
-  <select name="keep-native" id="keep-native" class="should-be-native">
-    <option></option>
-  </select>
-
-       <div data-nstest-role="fieldcontain" id="optgroup-and-placeholder-container">
-               <select name="optgroup-and-placeholder" id="optgroup-and-placeholder" data-nstest-native-menu="false">
-                       <option>Choose shipping method</option>
-                       <optgroup label="USPS">
-                               <option value="standard" selected>Standard: 7 day</option>
-                               <option value="rush">Rush: 3 days</option>
-                               <option value="express">Express: next day</option>
-                               <option value="overnight">Overnight</option>
-                       </optgroup>
-                       <optgroup label="FedEx">
-                               <option value="firstOvernight">First Overnight</option>
-                               <option value="expressSaver">Express Saver</option>
-                               <option value="ground">Ground</option>
-                       </optgroup>
-               </select>
-       </div>
-
-       <select name="select-disabled-enhancetest" id="select-disabled-enhancetest" disabled="disabled" data-nstest-native-menu="false">
-               <option value="standard">Standard: 7 day</option>
-               <option value="rush">Rush: 3 days</option>
-               <option value="express">Express: next day</option>
-               <option value="overnight">Overnight</option>
-               <option value="overnight">disabled enhance test</option>
-       </select>
-</div>
-
-
-<div id="enhancetest">
-       <select name="select-enhancetest" id="select-enhancetest">
-               <option value="standard">Standard: 7 day</option>
-               <option value="rush">Rush: 3 days</option>
-               <option value="express">Express: next day</option>
-               <option value="overnight">Overnight</option>
-       </select>
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/select_cached.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/select_cached.js
deleted file mode 100644 (file)
index 1493dff..0000000
+++ /dev/null
@@ -1,137 +0,0 @@
-/*
- * mobile select unit tests
- */
-
-(function($){
-       var resetHash;
-
-       resetHash = function(timeout){
-               $.testHelper.openPage( location.hash.indexOf("#default") >= 0 ? "#" : "#default" );
-       };
-
-       // https://github.com/jquery/jquery-mobile/issues/2181
-       asyncTest( "dialog sized select should alter the value of its parent select", function(){
-               var selectButton, value;
-
-               $.testHelper.pageSequence([
-                       resetHash,
-
-                       function(){
-                               $.mobile.changePage( "cached.html" );
-                       },
-
-                       function(){
-                               ok( $.mobile.activePage.is("#dialog-select-parent-cache-test"), "cached page appears" );
-                               selectButton = $( "#cached-page-select" ).siblings( 'a' );
-                               selectButton.click();
-                       },
-
-                       function(){
-                               ok( $.mobile.activePage.hasClass('ui-dialog'), "the dialog came up" );
-                               var option = $.mobile.activePage.find( "li a" ).not(":contains('" + selectButton.text() + "')").last();
-                               value = $.trim(option.text());
-                               option.click();
-                       },
-
-                       function(){
-                               same( value, $.trim(selectButton.text()), "the selected value is propogated back to the button text" );
-                               start();
-                       }
-               ]);
-       });
-
-       // https://github.com/jquery/jquery-mobile/issues/2181
-       asyncTest( "dialog sized select should prevent the removal of its parent page from the dom", function(){
-               var selectButton, parentPageId;
-
-               expect( 2 );
-
-               $.testHelper.pageSequence([
-                       resetHash,
-
-                       function(){
-                               $.mobile.changePage( "cached.html" );
-                       },
-
-                       function(){
-                               selectButton = $.mobile.activePage.find( "#cached-page-select" ).siblings( 'a' );
-                               parentPageId = $.mobile.activePage.attr( 'id' );
-                               same( $("#" + parentPageId).length, 1, "establish the parent page exists" );
-                               selectButton.click();
-                       },
-
-                       function(){
-                               same( $( "#" + parentPageId).length, 1, "make sure parent page is still there after opening the dialog" );
-                               $.mobile.activePage.find( "li a" ).last().click();
-                       },
-
-                       start
-               ]);
-       });
-
-       asyncTest( "dialog sized select shouldn't rebind its parent page remove handler when closing, if the parent page domCache option is true", function(){
-               expect( 3 );
-
-               $.testHelper.pageSequence([
-                       resetHash,
-
-                       function(){
-                               $.mobile.changePage( "cached-dom-cache-true.html" );
-                       },
-
-                       function(){
-                               $.mobile.activePage.find( "#domcache-page-select" ).siblings( 'a' ).click();
-                       },
-
-                       function(){
-                               ok( $.mobile.activePage.hasClass('ui-dialog'), "the dialog came up" );
-                               $.mobile.activePage.find( "li a" ).last().click();
-                       },
-
-                       function(){
-                               ok( $.mobile.activePage.is( "#dialog-select-parent-domcache-test" ), "the dialog closed" );
-                               $.mobile.changePage( $( "#default" ) );
-                       },
-
-                       function(){
-                               same( $("#dialog-select-parent-domcache-test").length, 1, "make sure the select parent page is still cached in the dom after changing page" );
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "menupage is removed when the parent page is removed", function(){
-               var dialogCount = $(":jqmData(role='dialog')").length;
-               $.testHelper.pageSequence([
-                       resetHash,
-
-                       function(){
-                               $.mobile.changePage( "uncached-dom-cached-false.html" );
-                       },
-
-                       function(){
-                               // for performance reason we don't initially create the menu dialog now
-                               same( $(":jqmData(role='dialog')").length, dialogCount);
-
-                               // manually trigger dialog opening
-                               $( "#domcache-uncached-page-select" ).data( 'selectmenu' ).open();
-                       },
-
-                       function(){
-                               // check if dialog was successfully  created
-                               same( $(":jqmData(role='dialog')").length, dialogCount + 1 );
-                               $( "#domcache-uncached-page-select" ).data( 'selectmenu' ).close();
-                       },
-
-                       function(){
-                               // navigate to parent(initial) page
-                               window.history.back();
-                       },
-
-                       function() {
-                               same( $(":jqmData(role='dialog')").length, dialogCount );
-                               start();
-                       }
-               ]);
-       });
-})(jQuery);
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/select_core.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/select_core.js
deleted file mode 100644 (file)
index 8f1ed6d..0000000
+++ /dev/null
@@ -1,387 +0,0 @@
-/*
- * mobile select unit tests
- */
-
-(function($){
-       var libName = "jquery.mobile.forms.select",
-               originalDefaultDialogTrans = $.mobile.defaultDialogTransition,
-               originalDefTransitionHandler = $.mobile.defaultTransitionHandler,
-               originalGetEncodedText = $.fn.getEncodedText,
-               resetHash, closeDialog;
-
-       resetHash = function(timeout){
-               $.testHelper.openPage( location.hash.indexOf("#default") >= 0 ? "#" : "#default" );
-       };
-
-       closeDialog = function(timeout){
-               $.mobile.activePage.find("li a").first().click();
-       };
-
-       module(libName, {
-               teardown: function(){
-                       $.mobile.defaultDialogTransition = originalDefaultDialogTrans;
-                       $.mobile.defaultTransitionHandler = originalDefTransitionHandler;
-
-                       $.fn.getEncodedText = originalGetEncodedText;
-                       window.encodedValueIsDefined = undefined;
-               }
-       });
-
-       asyncTest( "placeholder correctly gets ui-selectmenu-placeholder class after rebuilding", function(){
-               $.testHelper.sequence([
-                       function(){
-                               // bring up the optgroup menu
-                               ok($("#optgroup-and-placeholder-container a").length > 0, "there is in fact a button in the page");
-                               $("#optgroup-and-placeholder-container a").trigger("click");
-                       },
-
-                       function(){
-                               //select the first menu item
-                               $("#optgroup-and-placeholder-menu a:first").click();
-                       },
-
-                       function(){
-                               ok($("#optgroup-and-placeholder-menu li:first").hasClass("ui-selectmenu-placeholder"), "the placeholder item has the ui-selectmenu-placeholder class");
-                               start();
-                       }
-               ], 1000);
-       });
-
-       asyncTest( "firing a click at least 400 ms later on the select screen overlay does close it", function(){
-               $.testHelper.sequence([
-                       function(){
-                               // bring up the smaller choice menu
-                               ok($("#select-choice-few-container a").length > 0, "there is in fact a button in the page");
-                               $("#select-choice-few-container a").trigger("click");
-                       },
-
-                       function(){
-                               //select the first menu item
-                               $("#select-choice-few-menu a:first").click();
-                       },
-
-                       function(){
-                               same($("#select-choice-few-menu").parent(".ui-selectmenu-hidden").length, 1);
-                               start();
-                       }
-               ], 1000);
-       });
-
-       asyncTest( "a large select menu should use the default dialog transition", function(){
-               var select;
-
-               $.testHelper.pageSequence([
-                       resetHash,
-
-                       function(timeout){
-                               select = $("#select-choice-many-container-1 a");
-
-                               //set to something else
-                               $.mobile.defaultTransitionHandler = $.testHelper.decorate({
-                                       fn: $.mobile.defaultTransitionHandler,
-
-                                       before: function(name){
-                                               same(name, $.mobile.defaultDialogTransition);
-                                       }
-                               });
-
-                               // bring up the dialog
-                               select.trigger("click");
-                       },
-
-                       closeDialog,
-
-                       start
-               ]);
-       });
-
-       asyncTest( "custom select menu always renders screen from the left", function(){
-               var select;
-
-               expect( 1 );
-
-               $.testHelper.sequence([
-                       resetHash,
-
-                       function(){
-                               select = $("ul#select-offscreen-menu");
-                               $("#select-offscreen-container a").trigger("click");
-                       },
-
-                       function(){
-                               ok(select.offset().left >= 30, "offset from the left is greater than or equal to 30px" );
-                               start();
-                       }
-               ], 1000);
-       });
-
-       asyncTest( "selecting an item from a dialog sized custom select menu leaves no dialog hash key", function(){
-               var dialogHashKey = "ui-state=dialog";
-
-               $.testHelper.pageSequence([
-                       resetHash,
-
-                       function(timeout){
-                               $("#select-choice-many-container-hash-check a").click();
-                       },
-
-                       function(){
-                               ok(location.hash.indexOf(dialogHashKey) > -1);
-                               closeDialog();
-                       },
-
-                       function(){
-                               same(location.hash.indexOf(dialogHashKey), -1);
-                               start();
-                       }
-               ]);
-       });
-
-       asyncTest( "dialog sized select menu opened many times remains a dialog", function(){
-               var dialogHashKey = "ui-state=dialog",
-
-                               openDialogSequence = [
-                                       resetHash,
-
-                                       function(){
-                                               $("#select-choice-many-container-many-clicks a").click();
-                                       },
-
-                                       function(){
-                                               ok(location.hash.indexOf(dialogHashKey) > -1, "hash should have the dialog hash key");
-                                               closeDialog();
-                                       }
-                               ],
-
-                               sequence = openDialogSequence.concat(openDialogSequence).concat([start]);
-
-               $.testHelper.sequence(sequence, 1000);
-       });
-
-       test( "make sure the label for the select gets the ui-select class", function(){
-               ok( $( "#native-select-choice-few-container label" ).hasClass( "ui-select" ), "created label has ui-select class" );
-       });
-
-       module("Non native menus", {
-               setup: function() {
-                       $.mobile.selectmenu.prototype.options.nativeMenu = false;
-               },
-               teardown: function() {
-                       $.mobile.selectmenu.prototype.options.nativeMenu = true;
-               }
-       });
-
-       asyncTest( "a large select option should not overflow", function(){
-               // https://github.com/jquery/jquery-mobile/issues/1338
-               var menu, select;
-
-               $.testHelper.sequence([
-                       resetHash,
-
-                       function(){
-                               select = $("#select-long-option-label");
-                               // bring up the dialog
-                               select.trigger("click");
-                       },
-
-                       function() {
-                               menu = $(".ui-selectmenu-list");
-
-                               equal(menu.width(), menu.find("li:nth-child(2) .ui-btn-text").width(), "ui-btn-text element should not overflow");
-                               start();
-                       }
-               ], 500);
-       });
-
-       asyncTest( "using custom refocuses the button after close", function() {
-               var select, button, triggered = false;
-
-               expect( 1 );
-
-               $.testHelper.sequence([
-                       resetHash,
-
-                       function() {
-                               select = $("#select-choice-focus-test");
-                               button = select.find( "a" );
-                               button.trigger( "click" );
-                       },
-
-                       function() {
-                               // NOTE this is called twice per triggered click
-                               button.focus(function() {
-                                       triggered = true;
-                               });
-
-                               $(".ui-selectmenu-screen:not(.ui-screen-hidden)").trigger("click");
-                       },
-
-                       function(){
-                               ok(triggered, "focus is triggered");
-                               start();
-                       }
-               ], 5000);
-       });
-
-       asyncTest( "selected items are highlighted", function(){
-               $.testHelper.sequence([
-                       resetHash,
-
-                       function(){
-                               // bring up the smaller choice menu
-                               ok($("#select-choice-few-container a").length > 0, "there is in fact a button in the page");
-                               $("#select-choice-few-container a").trigger("click");
-                       },
-
-                       function(){
-                               var firstMenuChoice = $("#select-choice-few-menu li:first");
-                               ok( firstMenuChoice.hasClass( $.mobile.activeBtnClass ),
-                                               "default menu choice has the active button class" );
-
-                               $("#select-choice-few-menu a:last").click();
-                       },
-
-                       function(){
-                               // bring up the menu again
-                               $("#select-choice-few-container a").trigger("click");
-                       },
-
-                       function(){
-                               var lastMenuChoice = $("#select-choice-few-menu li:last");
-                               ok( lastMenuChoice.hasClass( $.mobile.activeBtnClass ),
-                                               "previously slected item has the active button class" );
-
-                               // close the dialog
-                               lastMenuChoice.find( "a" ).click();
-                       },
-
-                       start
-               ], 1000);
-       });
-
-       test( "enabling and disabling", function(){
-               var select = $( "select" ).first(), button;
-
-               button = select.siblings( "a" ).first();
-
-               select.selectmenu( 'disable' );
-               same( select.attr('disabled'), "disabled", "select is disabled" );
-               ok( button.hasClass("ui-disabled"), "disabled class added" );
-               same( button.attr('aria-disabled'), "true", "select is disabled" );
-               same( select.selectmenu( 'option', 'disabled' ), true, "disbaled option set" );
-
-               select.selectmenu( 'enable' );
-               same( select.attr('disabled'), undefined, "select is disabled" );
-               ok( !button.hasClass("ui-disabled"), "disabled class added" );
-               same( button.attr('aria-disabled'), "false", "select is disabled" );
-               same( select.selectmenu( 'option', 'disabled' ), false, "disbaled option set" );
-       });
-
-       asyncTest( "adding options and refreshing a custom select changes the options list", function(){
-               var select = $( "#custom-refresh-opts-list" ),
-      button = select.siblings( "a" ).find( ".ui-btn-inner" ),
-      text = "foo";
-
-               $.testHelper.sequence([
-                       // bring up the dialog
-                       function() {
-                               button.click();
-                       },
-
-                       function() {
-                               same( $( ".ui-selectmenu.in ul" ).text(), "default" );
-                               $( ".ui-selectmenu-screen" ).click();
-                       },
-
-                       function() {
-                               select.find( "option" ).remove(); //remove the loading message
-                               select.append('<option value="1">' + text + '</option>');
-                               select.selectmenu( 'refresh' );
-                       },
-
-                       function() {
-                               button.click();
-                       },
-
-                       function() {
-                               same( $( ".ui-selectmenu.in ul" ).text(), text );
-                               $( ".ui-selectmenu-screen" ).click();
-                       },
-
-                       start
-               ], 500);
-       });
-
-       test( "theme defined on select is used", function(){
-               var select = $("select#non-parent-themed");
-
-               ok( select.siblings( "a" ).hasClass("ui-btn-up-" + select.jqmData('theme')));
-       });
-
-       test( "select without theme defined inherits theme from parent", function() {
-               var select = $("select#parent-themed");
-
-               ok( select
-                       .siblings( "a" )
-                       .hasClass("ui-btn-up-" + select.parents(":jqmData(role='page')").jqmData('theme')));
-       });
-
-       // issue #2547
-       test( "custom select list item links have encoded option text values", function() {
-               $( "#encoded-option" ).data( 'selectmenu' )._buildList();
-               same(window.encodedValueIsDefined, undefined);
-       });
-
-       // not testing the positive case here since's it's obviously tested elsewhere
-       test( "select elements in the keepNative set shouldn't be enhanced", function() {
-               ok( !$("#keep-native").parent().is("div.ui-btn") );
-       });
-
-       asyncTest( "dialog size select title should match the label", function() {
-               var $select = $( "#select-choice-many-1" ),
-                       $label = $select.parent().siblings( "label" ),
-                       $button = $select.siblings( "a" );
-
-               $.testHelper.pageSequence([
-                       function() {
-                               $button.click();
-                       },
-
-                       function() {
-                               same($.mobile.activePage.find( ".ui-title" ).text(), $label.text());
-                               window.history.back();
-                       },
-
-                       start
-               ]);
-       });
-
-       asyncTest( "dialog size select title should match the label when changed after the dialog markup is added to the DOM", function() {
-               var $select = $( "#select-choice-many-1" ),
-                       $label = $select.parent().siblings( "label" ),
-                       $button = $select.siblings( "a" );
-
-               $label.text( "foo" );
-
-               $.testHelper.pageSequence([
-                       function() {
-                               $label.text( "foo" );
-                               $button.click();
-                       },
-
-                       function() {
-                               same($.mobile.activePage.find( ".ui-title" ).text(), $label.text());
-                               window.history.back();
-                       },
-
-                       start
-               ]);
-       });
-
-       test( "a disabled custom select should still be enhanced as custom", function() {
-               $("#select-disabled-enhancetest").selectmenu("enable").siblings("a").click();
-
-               var menu = $(".ui-selectmenu").not( ".ui-selectmenu-hidden" );
-               ok( menu.text().indexOf("disabled enhance test") > -1, "the right select is showing" );
-       });
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/select_events.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/select_events.js
deleted file mode 100644 (file)
index 355a142..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * mobile select unit tests
- */
-
-(function($){
-       var libName = "jquery.mobile.forms.select";
-
-       $(document).bind('mobileinit', function(){
-               $.mobile.selectmenu.prototype.options.nativeMenu = false;
-       });
-
-       module(libName,{
-               setup: function(){
-                       $.testHelper.openPage( location.hash.indexOf("#default") >= 0 ? "#" : "#default" );
-               }
-       });
-
-       test( "selects marked with data-native-menu=true should use a div as their button", function(){
-               same($("#select-choice-native-container div.ui-btn").length, 1);
-       });
-
-       test( "selects marked with data-native-menu=true should not have a custom menu", function(){
-               same($("#select-choice-native-container ul").length, 0);
-       });
-
-       test( "selects marked with data-native-menu=true should sit inside the button", function(){
-               same($("#select-choice-native-container div.ui-btn select").length, 1);
-       });
-
-       test( "select controls will create when inside a container that receives a 'create' event", function(){
-               ok( !$("#enhancetest").appendTo(".ui-page-active").find(".ui-select").length, "did not have enhancements applied" );
-               ok( $("#enhancetest").trigger("create").find(".ui-select").length, "enhancements applied" );
-       });
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/select_native.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/select_native.js
deleted file mode 100644 (file)
index fdabe85..0000000
+++ /dev/null
@@ -1,122 +0,0 @@
-/*
- * mobile select unit tests
- */
-
-(function($){
-       module("jquery.mobile.forms.select native");
-
-       test( "native menu selections alter the button text", function(){
-               var select = $( "#native-select-choice-few" ), setAndCheck;
-
-               setAndCheck = function(key){
-                       var text;
-
-                       select.val( key ).selectmenu( 'refresh' );
-                       text = select.find( "option[value='" + key + "']" ).text();
-                       same( select.parent().find(".ui-btn-text").text(), text );
-               };
-
-               setAndCheck( 'rush' );
-               setAndCheck( 'standard' );
-       });
-
-       asyncTest( "selecting a value removes the related buttons down state", function(){
-               var select = $( "#native-select-choice-few" );
-
-               $.testHelper.sequence([
-                       function() {
-                               // click the native menu parent button
-                               select.parent().trigger( 'vmousedown' );
-                       },
-
-                       function() {
-                               ok( select.parent().hasClass("ui-btn-down-c"), "button down class added" );
-                       },
-
-                       function() {
-                               // trigger a change on the select
-                               select.trigger( "change" );
-                       },
-
-                       function() {
-                               ok( !select.parent().hasClass("ui-btn-down-c"), "button down class removed" );
-                               start();
-                       }
-               ], 300);
-       });
-
-       // issue https://github.com/jquery/jquery-mobile/issues/2410
-       test( "adding options and refreshing a custom select defaults the text", function() {
-               var select = $( "#custom-refresh" ),
-                       button = select.siblings( "a" ).find( ".ui-btn-inner" ),
-                       text = "foo";
-
-               same($.trim(button.text()), "default");
-               select.find( "option" ).remove(); //remove the loading message
-               select.append('<option value="1">' + text + '</option>');
-               select.selectmenu( 'refresh' );
-               same($.trim(button.text()), text);
-       });
-
-       // issue 2424
-       test( "native selects should provide open and close as a no-op", function() {
-               // exception will prevent test success if undef
-               $( "#native-refresh" ).selectmenu( 'open' );
-               $( "#native-refresh" ).selectmenu( 'close' );
-               ok( true );
-       });
-
-       asyncTest( "The preventFocusZoom option is working as expected", function() {
-
-               var zoomoptiondefault = $.mobile.selectmenu.prototype.options.preventFocusZoom;
-               $.mobile.selectmenu.prototype.options.preventFocusZoom = true;
-
-               $(document)
-                       .one("vmousedown.test", function(){
-                               ok( $.mobile.zoom.enabled === false, "zoom is disabled on vmousedown" );
-                       })
-                       .one("mouseup.test", function(){
-                               ok( $.mobile.zoom.enabled === true, "zoom is enabled on mouseup" );
-                               $.mobile.selectmenu.prototype.options.preventFocusZoom = zoomoptiondefault;
-                               $(document).unbind(".test");
-                               $( "#select-choice-native" ).selectmenu( "option", "preventFocusZoom", zoomoptiondefault )
-                               start();
-               });
-
-               $( "#select-choice-native" )
-                       .selectmenu( "option", "preventFocusZoom", true )
-                       .parent()
-                       .trigger( "vmousedown" )
-                       .trigger( "mouseup" );
-
-
-
-
-       });
-
-       asyncTest( "The preventFocusZoom option does not manipulate zoom when it is false", function() {
-
-               var zoomstate = $.mobile.zoom.enabled,
-                       zoomoptiondefault = $.mobile.selectmenu.prototype.options.preventFocusZoom;
-
-
-               $(document)
-                       .one("vmousedown.test", function(){
-                               ok( $.mobile.zoom.enabled === zoomstate, "zoom is unaffected on vmousedown" );
-                       })
-                       .one("mouseup.test", function(){
-                               ok( $.mobile.zoom.enabled === zoomstate, "zoom is unaffected on mouseup" );
-                               $(document).unbind(".test");
-                               $( "#select-choice-native" ).selectmenu( "option", "preventFocusZoom", zoomoptiondefault );
-                               start();
-
-               });
-
-               $( "#select-choice-native" )
-                       .selectmenu( "option", "preventFocusZoom", false )
-                       .parent()
-                       .trigger( "vmousedown" )
-                       .trigger( "mouseup" );
-
-       });
-})(jQuery);
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/suite.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/suite.html
deleted file mode 100644 (file)
index 9545af3..0000000
+++ /dev/null
@@ -1,297 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-</head>
-<body>
-<div id="first" data-nstest-role="page">
-       <div  data-nstest-role="fieldcontain" id="select-choice-few-container">
-               <select name="select-choice-few" id="select-choice-few" data-nstest-native-menu="false">
-                       <option value="standard">Standard: 7 day</option>
-                       <option value="rush">Rush: 3 days</option>
-                       <option value="express">Express: next day</option>
-                       <option value="overnight">Overnight</option>
-               </select>
-       </div>
-
-       <div  data-nstest-role="fieldcontain" id="select-choice-native-container">
-               <select name="select-choice-native" id="select-choice-native" data-nstest-native-menu="true">
-                       <option value="standard">Standard: 7 day</option>
-                       <option value="rush">Rush: 3 days</option>
-                       <option value="express">Express: next day</option>
-                       <option value="overnight">Overnight</option>
-               </select>
-       </div>
-
-       <div  data-nstest-role="fieldcontain" id="select-choice-global-native-container">
-               <select name="select-choice-global-native" id="select-choice-global-native"  data-nstest-native-menu="false">
-                       <option value="standard">Standard: 7 day</option>
-                       <option value="rush">Rush: 3 days</option>
-                       <option value="express">Express: next day</option>
-                       <option value="overnight">Overnight</option>
-               </select>
-       </div>
-
-       <div  data-nstest-role="fieldcontain" id="select-choice-many-container-1">
-               <label for="select-choice-many-1" class="select">Your state:</label>
-               <select name="select-choice-many-1" id="select-choice-many-1" data-nstest-native-menu="false">
-                       <option value="AL">Alabama</option>
-                       <option value="AK">Alaska</option>
-                       <option value="AZ">Arizona</option>
-                       <option value="AR">Arkansas</option>
-                       <option value="CA">California</option>
-                       <option value="CO">Colorado</option>
-                       <option value="CT">Connecticut</option>
-                       <option value="DE">Delaware</option>
-                       <option value="FL">Florida</option>
-                       <option value="GA">Georgia</option>
-                       <option value="HI">Hawaii</option>
-                       <option value="ID">Idaho</option>
-                       <option value="IL">Illinois</option>
-                       <option value="IN">Indiana</option>
-                       <option value="IA">Iowa</option>
-                       <option value="KS">Kansas</option>
-                       <option value="KY">Kentucky</option>
-                       <option value="LA">Louisiana</option>
-                       <option value="ME">Maine</option>
-                       <option value="MD">Maryland</option>
-                       <option value="MA">Massachusetts</option>
-                       <option value="MI">Michigan</option>
-                       <option value="MN">Minnesota</option>
-                       <option value="MS">Mississippi</option>
-                       <option value="MO">Missouri</option>
-                       <option value="MT">Montana</option>
-                       <option value="NE">Nebraska</option>
-                       <option value="NV">Nevada</option>
-                       <option value="NH">New Hampshire</option>
-                       <option value="NJ">New Jersey</option>
-                       <option value="NM">New Mexico</option>
-                       <option value="NY">New York</option>
-                       <option value="NC">North Carolina</option>
-                       <option value="ND">North Dakota</option>
-                       <option value="OH">Ohio</option>
-                       <option value="OK">Oklahoma</option>
-                       <option value="OR">Oregon</option>
-                       <option value="PA">Pennsylvania</option>
-                       <option value="RI">Rhode Island</option>
-                       <option value="SC">South Carolina</option>
-                       <option value="SD">South Dakota</option>
-                       <option value="TN">Tennessee</option>
-                       <option value="TX">Texas</option>
-                       <option value="UT">Utah</option>
-                       <option value="VT">Vermont</option>
-                       <option value="VA">Virginia</option>
-                       <option value="WA">Washington</option>
-                       <option value="WV">West Virginia</option>
-                       <option value="WI">Wisconsin</option>
-                       <option value="WY">Wyoming</option>
-               </select>
-       </div>
-
-       <div  data-nstest-role="fieldcontain" id="select-choice-many-container">
-               <label for="select-choice-many" class="select">Your state:</label>
-               <select name="select-choice-many" id="select-choice-many" data-nstest-native-menu="false">
-                       <option value="AL">Alabama</option>
-                       <option value="AK">Alaska</option>
-                       <option value="AZ">Arizona</option>
-                       <option value="AR">Arkansas</option>
-                       <option value="CA">California</option>
-                       <option value="CO">Colorado</option>
-                       <option value="CT">Connecticut</option>
-                       <option value="DE">Delaware</option>
-                       <option value="FL">Florida</option>
-                       <option value="GA">Georgia</option>
-                       <option value="HI">Hawaii</option>
-                       <option value="ID">Idaho</option>
-                       <option value="IL">Illinois</option>
-                       <option value="IN">Indiana</option>
-                       <option value="IA">Iowa</option>
-                       <option value="KS">Kansas</option>
-                       <option value="KY">Kentucky</option>
-                       <option value="LA">Louisiana</option>
-                       <option value="ME">Maine</option>
-                       <option value="MD">Maryland</option>
-                       <option value="MA">Massachusetts</option>
-                       <option value="MI">Michigan</option>
-                       <option value="MN">Minnesota</option>
-                       <option value="MS">Mississippi</option>
-                       <option value="MO">Missouri</option>
-                       <option value="MT">Montana</option>
-                       <option value="NE">Nebraska</option>
-                       <option value="NV">Nevada</option>
-                       <option value="NH">New Hampshire</option>
-                       <option value="NJ">New Jersey</option>
-                       <option value="NM">New Mexico</option>
-                       <option value="NY">New York</option>
-                       <option value="NC">North Carolina</option>
-                       <option value="ND">North Dakota</option>
-                       <option value="OH">Ohio</option>
-                       <option value="OK">Oklahoma</option>
-                       <option value="OR">Oregon</option>
-                       <option value="PA">Pennsylvania</option>
-                       <option value="RI">Rhode Island</option>
-                       <option value="SC">South Carolina</option>
-                       <option value="SD">South Dakota</option>
-                       <option value="TN">Tennessee</option>
-                       <option value="TX">Texas</option>
-                       <option value="UT">Utah</option>
-                       <option value="VT">Vermont</option>
-                       <option value="VA">Virginia</option>
-                       <option value="WA">Washington</option>
-                       <option value="WV">West Virginia</option>
-                       <option value="WI">Wisconsin</option>
-                       <option value="WY">Wyoming</option>
-               </select>
-       </div>
-
-       <div  data-nstest-role="fieldcontain" id="select-choice-many-container-hash-check">
-               <label for="select-choice-many-hash-check" class="select">Your state:</label>
-               <select name="select-choice-many-hash-check" id="select-choice-many-hash-check"  data-nstest-native-menu="false">
-                       <option value="AL">Alabama</option>
-                       <option value="AK">Alaska</option>
-                       <option value="AZ">Arizona</option>
-                       <option value="AR">Arkansas</option>
-                       <option value="CA">California</option>
-                       <option value="CO">Colorado</option>
-                       <option value="CT">Connecticut</option>
-                       <option value="DE">Delaware</option>
-                       <option value="FL">Florida</option>
-                       <option value="GA">Georgia</option>
-                       <option value="HI">Hawaii</option>
-                       <option value="ID">Idaho</option>
-                       <option value="IL">Illinois</option>
-                       <option value="IN">Indiana</option>
-                       <option value="IA">Iowa</option>
-                       <option value="KS">Kansas</option>
-                       <option value="KY">Kentucky</option>
-                       <option value="LA">Louisiana</option>
-                       <option value="ME">Maine</option>
-                       <option value="MD">Maryland</option>
-                       <option value="MA">Massachusetts</option>
-                       <option value="MI">Michigan</option>
-                       <option value="MN">Minnesota</option>
-                       <option value="MS">Mississippi</option>
-                       <option value="MO">Missouri</option>
-                       <option value="MT">Montana</option>
-                       <option value="NE">Nebraska</option>
-                       <option value="NV">Nevada</option>
-                       <option value="NH">New Hampshire</option>
-                       <option value="NJ">New Jersey</option>
-                       <option value="NM">New Mexico</option>
-                       <option value="NY">New York</option>
-                       <option value="NC">North Carolina</option>
-                       <option value="ND">North Dakota</option>
-                       <option value="OH">Ohio</option>
-                       <option value="OK">Oklahoma</option>
-                       <option value="OR">Oregon</option>
-                       <option value="PA">Pennsylvania</option>
-                       <option value="RI">Rhode Island</option>
-                       <option value="SC">South Carolina</option>
-                       <option value="SD">South Dakota</option>
-                       <option value="TN">Tennessee</option>
-                       <option value="TX">Texas</option>
-                       <option value="UT">Utah</option>
-                       <option value="VT">Vermont</option>
-                       <option value="VA">Virginia</option>
-                       <option value="WA">Washington</option>
-                       <option value="WV">West Virginia</option>
-                       <option value="WI">Wisconsin</option>
-                       <option value="WY">Wyoming</option>
-               </select>
-       </div>
-
-       <div data-nstest-role="fieldcontain" id="select-choice-many-container-many-clicks">
-               <label for="select-choice-many-many-clicks" class="select">Your state:</label>
-               <select name="select-choice-many-many-clicks" id="select-choice-many-many-clicks"  data-nstest-native-menu="false">
-                       <option value="AL">Alabama</option>
-                       <option value="AK">Alaska</option>
-                       <option value="AZ">Arizona</option>
-                       <option value="AR">Arkansas</option>
-                       <option value="CA">California</option>
-                       <option value="CO">Colorado</option>
-                       <option value="CT">Connecticut</option>
-                       <option value="DE">Delaware</option>
-                       <option value="FL">Florida</option>
-                       <option value="GA">Georgia</option>
-                       <option value="HI">Hawaii</option>
-                       <option value="ID">Idaho</option>
-                       <option value="IL">Illinois</option>
-                       <option value="IN">Indiana</option>
-                       <option value="IA">Iowa</option>
-                       <option value="KS">Kansas</option>
-                       <option value="KY">Kentucky</option>
-                       <option value="LA">Louisiana</option>
-                       <option value="ME">Maine</option>
-                       <option value="MD">Maryland</option>
-                       <option value="MA">Massachusetts</option>
-                       <option value="MI">Michigan</option>
-                       <option value="MN">Minnesota</option>
-                       <option value="MS">Mississippi</option>
-                       <option value="MO">Missouri</option>
-                       <option value="MT">Montana</option>
-                       <option value="NE">Nebraska</option>
-                       <option value="NV">Nevada</option>
-                       <option value="NH">New Hampshire</option>
-                       <option value="NJ">New Jersey</option>
-                       <option value="NM">New Mexico</option>
-                       <option value="NY">New York</option>
-                       <option value="NC">North Carolina</option>
-                       <option value="ND">North Dakota</option>
-                       <option value="OH">Ohio</option>
-                       <option value="OK">Oklahoma</option>
-                       <option value="OR">Oregon</option>
-                       <option value="PA">Pennsylvania</option>
-                       <option value="RI">Rhode Island</option>
-                       <option value="SC">South Carolina</option>
-                       <option value="SD">South Dakota</option>
-                       <option value="TN">Tennessee</option>
-                       <option value="TX">Texas</option>
-                       <option value="UT">Utah</option>
-                       <option value="VT">Vermont</option>
-                       <option value="VA">Virginia</option>
-                       <option value="WA">Washington</option>
-                       <option value="WV">West Virginia</option>
-                       <option value="WI">Wisconsin</option>
-                       <option value="WY">Wyoming</option>
-               </select>
-       </div>
-
-       <div data-nstest-role="fieldcontain" id="select-offscreen-container">
-               <style>
-                       /* keep the select small and close to the screen border to test rendering */
-                       #select-offscreen-container {
-                       width: 100px;
-                       position: absolute;
-                       left: 0px;
-                       top: 0px;
-                       }
-               </style>
-
-               <select name="select-choice-few" id="select-offscreen" data-nstest-native-menu="false">
-                       <option value="standard">Standard: 7 day</option>
-                       <option value="rush">Rush: 3 days</option>
-                       <option value="express">Express: next day</option>
-                       <option value="overnight">Overnight</option>
-               </select>
-       </div>
-
-       <div data-nstest-role="fieldcontain" id="select-long-option-label-container">
-               <select name="select-long-option-label" id="select-long-option-label" data-nstest-native-menu="false">
-                       <option value="short">Choice 1</option>
-                       <option value="long">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</option>
-           </select>
-       </div>
-</div>
-
-
-
-<div id="enhancetest">
-       <select name="select-enhancetest" id="select-enhancetest">
-               <option value="standard">Standard: 7 day</option>
-               <option value="rush">Rush: 3 days</option>
-               <option value="express">Express: next day</option>
-               <option value="overnight">Overnight</option>
-       </select>
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/uncached-dom-cached-false.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/uncached-dom-cached-false.html
deleted file mode 100644 (file)
index 2977c2a..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE HTML>
-<html lang="en">
-  <head>
-    <meta charset="utf-8">
-  </head>
-  <body>
-    <div id="dialog-select-parent-domcache-test" data-nstest-role="page">
-           <div data-nstest-role="fieldcontain" id="domcache-page-select-container">
-                   <label for="domcache-page-select" class="select">Your state:</label>
-                   <select name="domcache-uncached-page-select" id="domcache-uncached-page-select" data-nstest-native-menu="false">
-                           <option value="AL">Alabama</option>
-                           <option value="AK">Alaska</option>
-                           <option value="AZ">Arizona</option>
-                           <option value="AR">Arkansas</option>
-                           <option value="CA">California</option>
-                           <option value="CO">Colorado</option>
-                           <option value="CT">Connecticut</option>
-                           <option value="DE">Delaware</option>
-                           <option value="FL">Florida</option>
-                           <option value="GA">Georgia</option>
-                           <option value="HI">Hawaii</option>
-                           <option value="ID">Idaho</option>
-                           <option value="IL">Illinois</option>
-                           <option value="IN">Indiana</option>
-                           <option value="IA">Iowa</option>
-                           <option value="KS">Kansas</option>
-                           <option value="KY">Kentucky</option>
-                           <option value="LA">Louisiana</option>
-                           <option value="ME">Maine</option>
-                           <option value="MD">Maryland</option>
-                           <option value="MA">Massachusetts</option>
-                           <option value="MI">Michigan</option>
-                           <option value="MN">Minnesota</option>
-                           <option value="MS">Mississippi</option>
-                           <option value="MO">Missouri</option>
-                           <option value="MT">Montana</option>
-                           <option value="NE">Nebraska</option>
-                           <option value="NV">Nevada</option>
-                           <option value="NH">New Hampshire</option>
-                           <option value="NJ">New Jersey</option>
-                           <option value="NM">New Mexico</option>
-                           <option value="NY">New York</option>
-                           <option value="NC">North Carolina</option>
-                           <option value="ND">North Dakota</option>
-                           <option value="OH">Ohio</option>
-                           <option value="OK">Oklahoma</option>
-                           <option value="OR">Oregon</option>
-                           <option value="PA">Pennsylvania</option>
-                           <option value="RI">Rhode Island</option>
-                           <option value="SC">South Carolina</option>
-                           <option value="SD">South Dakota</option>
-                           <option value="TN">Tennessee</option>
-                           <option value="TX">Texas</option>
-                           <option value="UT">Utah</option>
-                           <option value="VT">Vermont</option>
-                           <option value="VA">Virginia</option>
-                           <option value="WA">Washington</option>
-                           <option value="WV">West Virginia</option>
-                           <option value="WI">Wisconsin</option>
-                           <option value="WY">Wyoming</option>
-                   </select>
-           </div>
-    </div>
-  </body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/slider/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/slider/index.html
deleted file mode 100644 (file)
index f251711..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
- <!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile Slider Test Suite</title>
-
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script src="../../../tests/jquery.testHelper.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [
-                               "jquery.mobile.forms.slider"
-                       ],
-                       [
-                               "slider_events.js",
-                               "slider_core.js"
-                       ],
-                       [ "jquery.mobile.init" ]
-               ]);
-       </script>
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Slider Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div id="foo"  data-nstest-role="page">
-       <div data-nstest-role="fieldcontain">
-               <input type="range" name="slider-1" id="range-slider-up" value="0" min="0" max="100"  data-nstest-theme="b" data-nstest-track-theme="a" />
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-               <input type="range" name="slider-1" id="range-slider-down" value="10" min="0" max="100"  data-nstest-theme="b" data-nstest-track-theme="a" />
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-               <input type="range" name="background-slider" id="background-slider" value="10" min="0" max="100"        data-nstest-theme="b" data-nstest-track-theme="a" data-nstest-highlight="true"/>
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-               <input type="range" name="no-background-slider" id="no-background-slider" value="10" min="0" max="100"  data-nstest-theme="b" data-nstest-track-theme="a"/>
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-               <input type="range" name="slider-1" id="range-slider-home" value="75" min="0" max="100"  data-nstest-theme="b" data-nstest-track-theme="a" />
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-               <label for="slider-1">Input slider:</label>
-               <input type="range" name="slider-1" id="range-slider-end" value="15" min="0" max="100"  data-nstest-theme="b" data-nstest-track-theme="a" />
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-               <input type="range" name="stepped" id="stepped" value="15" min="0" max="100" step="10"  data-nstest-theme="b" data-nstest-track-theme="a" />
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-               <select name="slider" id="slider-switch"  data-nstest-role="slider">
-                       <option value="off">Off</option>
-                       <option value="on">On</option>
-               </select>
-       </div>
-
-       <div data-nstest-role="fieldcontain">
-               <input type="range" name="onchange" id="onchange" value="25" min="0" max="100" step="10" onchange="onChangeCounter()" data-nstest-theme="b" data-nstest-track-theme="a" />
-       </div>
-
-       <div data-role="fieldcontain">
-               <label for="slider">Input slider:</label>
-               <input type="range" name="slider" id="slider" value="25" min="0" max="100" class="should-be-native"/>
-       </div>
-
-       <div data-role="fieldcontain">
-               <label for="step-slider">Input slider:</label>
-               <input type="range" name="step-slider" id="step-slider" value="25" min="0" max="100" step="20"/>
-       </div>
-
-       <div data-role="fieldcontain">
-               <label for="empty-string-val-slider">Input slider:</label>
-               <input type="range" name="empty-string-val-slider" id="empty-string-val-slider" value="25" min="10" max="100" step="20"/>
-       </div>
-</div>
-
-<div id="enhancetest">
-       <input type="range" name="slider-enhancetest" id="range-slider-enhancetest" value="75" min="0" max="100"  data-nstest-theme="b" data-nstest-track-theme="a" />
-</div>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/slider/slider_core.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/slider/slider_core.js
deleted file mode 100644 (file)
index d19e9a3..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * mobile slider unit tests
- */
-(function($){
-       $.mobile.page.prototype.options.keepNative = "input.should-be-native";
-
-       // not testing the positive case here since's it's obviously tested elsewhere
-       test( "slider elements in the keepNative set shouldn't be enhanced", function() {
-               same( $("input.should-be-native").siblings("div.ui-slider").length, 0 );
-       });
-
-       test( "refresh should force val to nearest step", function() {
-               var slider = $( "#step-slider" ),
-                       step = parseInt(slider.attr( "step" ), 10);
-
-               slider.val( step + 1 );
-
-               slider.slider( 'refresh' );
-
-               ok( step > 1, "the step is greater than one" );
-               ok( slider.val() > 0, "the value has been altered" );
-               same( slider.val() % step, 0, "value has 'snapped' to a step" );
-       });
-
-       test( "empty string value results defaults to slider min value", function() {
-               var slider = $( "#empty-string-val-slider" );
-               same( slider.attr('min'), "10", "slider min is greater than 0" );
-               same( slider.val( '' ).slider( 'refresh' ).val(), slider.attr('min'), "val is equal to min attr");
-       });
-
-       test( "flip toggle switch title should be current selected value attr", function() {
-               var slider = $( "#slider-switch" );
-
-               same(slider.siblings(".ui-slider").find("a").attr('title'),
-                                $(slider.find("option")[slider[0].selectedIndex]).text(),
-                                "verify that the link title is set to the selected option text");
-       });
-
-       test( "data-highlight works properly", function() {
-               var $highlighted = $("#background-slider"), $unhighlighted = $("#no-background-slider");
-
-               same( $highlighted.siblings( ".ui-slider" ).find( ".ui-slider-bg" ).length, 1,
-                                       "highlighted slider should have a div for the track bg" );
-               same( $unhighlighted.siblings( ".ui-slider" ).find( ".ui-slider-bg" ).length, 0,
-                                       "unhighlighted slider _not_ should have a div for the track bg" );
-       });
-})( jQuery );
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/slider/slider_events.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/slider/slider_events.js
deleted file mode 100644 (file)
index cc54566..0000000
+++ /dev/null
@@ -1,376 +0,0 @@
-/*
- * mobile slider unit tests
- */
-
-(function($){
-       var onChangeCnt = 0;
-       window.onChangeCounter = function() {
-               onChangeCnt++;
-       };
-
-       module('jquery.mobile.slider.js', {
-               setup: function() {
-                       // force the value to be an increment of 10 when we aren't testing the rounding
-                       $("#stepped").val( 20 );
-               }
-       });
-
-       var keypressTest = function(opts){
-               var slider = $(opts.selector),
-                   val = window.parseFloat(slider.val()),
-                               handle = slider.siblings('.ui-slider').find('.ui-slider-handle');
-
-               expect( opts.keyCodes.length );
-
-               $.each(opts.keyCodes, function(i, elem){
-
-                       // stub the keycode value and trigger the keypress
-                       $.Event.prototype.keyCode = $.mobile.keyCode[elem];
-                       handle.trigger('keydown');
-
-                       val += opts.increment;
-                       same(val, window.parseFloat(slider.val(), 10), "new value is " + opts.increment + " different");
-               });
-       };
-
-       test( "slider should move right with up, right, and page up keypress", function(){
-               keypressTest({
-                       selector: '#range-slider-up',
-                       keyCodes: ['UP', 'RIGHT', 'PAGE_UP'],
-                       increment: 1
-               });
-       });
-
-       test( "slider should move left with down, left, and page down keypress", function(){
-               keypressTest({
-                       selector: '#range-slider-down',
-                       keyCodes: ['DOWN', 'LEFT', 'PAGE_DOWN'],
-                       increment: -1
-               });
-       });
-
-       test( "slider should move to range minimum on end keypress", function(){
-               var selector = "#range-slider-end",
-                               initialVal = window.parseFloat($(selector).val(), 10),
-                   max = window.parseFloat($(selector).attr('max'), 10);
-
-               keypressTest({
-                       selector: selector,
-                       keyCodes: ['END'],
-                       increment: max - initialVal
-               });
-       });
-
-       test( "slider should move to range minimum on end keypress", function(){
-               var selector = "#range-slider-home",
-                               initialVal = window.parseFloat($(selector).val(), 10);
-
-               keypressTest({
-                       selector: selector,
-                       keyCodes: ['HOME'],
-                       increment: 0 - initialVal
-               });
-       });
-
-       test( "slider should move positive by steps on keypress", function(){
-               keypressTest({
-                       selector: "#stepped",
-                       keyCodes: ['RIGHT'],
-                       increment: 10
-               });
-       });
-
-       test( "slider should move negative by steps on keypress", function(){
-               keypressTest({
-                       selector: "#stepped",
-                       keyCodes: ['LEFT'],
-                       increment: -10
-               });
-       });
-
-       test( "slider should validate input value on blur", function(){
-               var slider = $("#range-slider-up");
-               slider.focus();
-               slider.val(200);
-               same(slider.val(), "200");
-               slider.blur();
-               same(slider.val(), slider.attr('max'));
-       });
-
-       test( "slider should not validate input on keyup", function(){
-               var slider = $("#range-slider-up");
-               slider.focus();
-               slider.val(200);
-               same(slider.val(), "200");
-               slider.keyup();
-               same(slider.val(), "200");
-       });
-
-       test( "input type should degrade to number when slider is created", function(){
-               same($("#range-slider-up").attr( "type" ), "number");
-       });
-
-       // generic switch test function
-       var sliderSwitchTest = function(opts){
-               var slider = $("#slider-switch"),
-                         handle = slider.siblings('.ui-slider').find('a'),
-                   switchValues = {
-                                       'off' : 0,
-                                       'on' : 1
-                               };
-
-               // One for the select and one for the aria-valuenow
-               expect( opts.keyCodes.length * 2 );
-
-               $.each(opts.keyCodes, function(i, elem){
-                       // reset the values
-                       slider[0].selectedIndex = switchValues[opts.start];
-                       handle.attr({'aria-valuenow' : opts.start });
-
-                       // stub the keycode and trigger the event
-                       $.Event.prototype.keyCode = $.mobile.keyCode[elem];
-                       handle.trigger('keydown');
-
-                       same(handle.attr('aria-valuenow'), opts.finish, "handle value is " + opts.finish);
-                       same(slider[0].selectedIndex, switchValues[opts.finish], "select input has correct index");
-               });
-       };
-
-       test( "switch should select on with up, right, page up and end", function(){
-               sliderSwitchTest({
-                       start: 'off',
-                       finish: 'on',
-                       keyCodes: ['UP', 'RIGHT', 'PAGE_UP', 'END']
-               });
-       });
-
-       test( "switch should select off with down, left, page down and home", function(){
-               sliderSwitchTest({
-                       start: 'on',
-                       finish: 'off',
-                 keyCodes: ['DOWN', 'LEFT', 'PAGE_DOWN', 'HOME']
-               });
-       });
-
-       test( "onchange should not be called on create", function(){
-               equals(onChangeCnt, 0, "onChange should not have been called");
-       });
-
-       test( "onchange should be called onchange", function(){
-               onChangeCnt = 0;
-               $( "#onchange" ).slider( "refresh", 50 );
-               equals(onChangeCnt, 1, "onChange should have been called once");
-       });
-
-       test( "slider controls will create when inside a container that receives a 'create' event", function(){
-               ok( !$("#enhancetest").appendTo(".ui-page-active").find(".ui-slider").length, "did not have enhancements applied" );
-               ok( $("#enhancetest").trigger("create").find(".ui-slider").length, "enhancements applied" );
-       });
-
-       var createEvent = function( name, target, x, y ) {
-               var event = $.Event( name );
-               event.target = target;
-               event.pageX = x;
-               event.pageY = y;
-               return event;
-       };
-
-       test( "toggle switch should fire one change event when clicked", function(){
-               var control = $( "#slider-switch" ),
-                       widget = control.data( "slider" ),
-                       slider = widget.slider,
-                       handle = widget.handle,
-                       changeCount = 0,
-                       changeFunc = function( e ) {
-                               ok( control[0].selectedIndex !== currentValue, "change event should only be triggered if the value changes");
-                               ++changeCount;
-                       },
-                       event = null,
-                       offset = handle.offset(),
-                       currentValue = control[0].selectedIndex;
-
-               control.bind( "change", changeFunc );
-
-               // The toggle switch actually updates on mousedown and mouseup events, so we go through
-               // the motions of generating all the events that happen during a click to make sure that
-               // during all of those events, the value only changes once.
-
-               slider.trigger( createEvent( "mousedown", handle[ 0 ], offset.left + 10, offset.top + 10 ) );
-               slider.trigger( createEvent( "mouseup", handle[ 0 ], offset.left + 10, offset.top + 10 ) );
-               slider.trigger( createEvent( "click", handle[ 0 ], offset.left + 10, offset.top + 10 ) );
-
-               control.unbind( "change", changeFunc );
-
-               ok( control[0].selectedIndex !== currentValue, "value did change");
-               same( changeCount, 1, "change event should be fired once during a click" );
-       });
-
-       var assertLeftCSS = function( obj, opts ) {
-               var integerLeft, compare, css, threshold;
-
-               css = obj.css('left');
-               threshold = opts.pxThreshold || 0;
-
-               if( css.indexOf( "px" ) > -1 ) {
-                       // parse the actual pixel value returned by the left css value
-                       // and the pixels passed in for comparison
-                       integerLeft = Math.round( parseFloat( css.replace("px", "") ) ),
-                       compare = parseInt( opts.pixels.replace( "px", "" ), 10 );
-
-                       // check that the pixel value provided is within a given threshold; default is 0px
-                       ok( compare >= integerLeft - threshold && compare <= integerLeft + threshold, opts.message );
-               } else {
-                       equal( css, opts.percent, opts.message );
-               }
-       };
-
-       asyncTest( "toggle switch handle should snap in the old position if dragged less than half of the slider width, in the new position if dragged more than half of the slider width", function() {
-               var control = $( "#slider-switch" ),
-                       widget = control.data( "slider" ),
-                       slider = widget.slider,
-                       handle = widget.handle,
-                       width = handle.width(),
-                       offset = null;
-
-               $.testHelper.sequence([
-                       function() {
-                               // initialize the switch
-                               control.val('on').slider('refresh');
-                       },
-
-                       function() {
-                               assertLeftCSS(handle, {
-                                       percent: '100%',
-                                       pixels: handle.parent().css('width'),
-                                       message: 'handle starts on the right side'
-                               });
-
-                               // simulate dragging less than a half
-                               offset = handle.offset();
-                               slider.trigger( createEvent( "mousedown", handle[ 0 ], offset.left + width - 10, offset.top + 10 ) );
-                               slider.trigger( createEvent( "mousemove", handle[ 0 ], offset.left + width - 20, offset.top + 10 ) );
-                               slider.trigger( createEvent( "mouseup", handle[ 0 ], offset.left + width - 20, offset.top + 10 ) );
-                       },
-
-                       function() {
-                               assertLeftCSS(handle, {
-                                       percent: '100%',
-                                       pixels: handle.parent().css('width'),
-                                       message: 'handle ends on the right side'
-                               });
-
-                               // initialize the switch
-                               control.val('on').slider('refresh');
-                       },
-
-                       function() {
-                               assertLeftCSS(handle, {
-                                       percent: '100%',
-                                       pixels: handle.parent().css('width'),
-                                       message: 'handle starts on the right side'
-                               });
-
-                               // simulate dragging more than a half
-                               offset = handle.offset();
-                               slider.trigger( createEvent( "mousedown", handle[ 0 ], offset.left + 10, offset.top + 10 ) );
-                               slider.trigger( createEvent( "mousemove", handle[ 0 ], offset.left - ( width / 2 + 10 ), offset.top + 10 ) );
-                               slider.trigger( createEvent( "mouseup", handle[ 0 ], offset.left - ( width / 2 + 10 ), offset.top + 10 ) );
-                       },
-
-                       function() {
-                               assertLeftCSS(handle, {
-                                       percent: '0%',
-                                       pixels: '0px',
-                                       message: 'handle ends on the left side'
-                               });
-
-                               start();
-                       }
-               ], 500);
-       });
-
-       asyncTest( "toggle switch handle should not move if user is dragging and value is changed", function() {
-               var control = $( "#slider-switch" ),
-                       widget = control.data( "slider" ),
-                       slider = widget.slider,
-                       handle = widget.handle,
-                       width = handle.width(),
-                       offset = null;
-
-               $.testHelper.sequence([
-                       function() {
-                               // initialize the switch
-                               control.val('on').slider('refresh');
-                       },
-
-                       function() {
-                               assertLeftCSS(handle, {
-                                       percent: '100%',
-                                       pixels: handle.parent().css('width'),
-                                       message: 'handle starts on the right side'
-                               });
-
-                               // simulate dragging more than a half
-                               offset = handle.offset();
-                               slider.trigger( createEvent( "mousedown", handle[ 0 ], offset.left + 10, offset.top + 10 ) );
-                               slider.trigger( createEvent( "mousemove", handle[ 0 ], offset.left - ( width / 2 ), offset.top + 10 ) );
-                       },
-
-                       function() {
-                               var min, max;
-                               if( handle.css('left').indexOf("%") > -1 ){
-                                       min = "0%";
-                                       max = "100%";
-                               } else {
-                                       min = "0px";
-                                       max = handle.parent().css( 'width' );
-                               }
-
-                               notEqual(handle.css('left'), min, 'handle is not on the left side');
-                               notEqual(handle.css('left'), max, 'handle is not on the right side');
-
-                               // reset slider state so it is ready for other tests
-                               slider.trigger( createEvent( "mouseup", handle[ 0 ], offset.left - ( width / 2 ), offset.top + 10 ) );
-
-                               start();
-                       }
-               ], 500);
-       });
-
-       asyncTest( "toggle switch should refresh when disabled", function() {
-               var control = $( "#slider-switch" ),
-                       handle = control.data( "slider" ).handle;
-
-               $.testHelper.sequence([
-                       function() {
-                               // set the initial value
-                               control.val('off').slider('refresh');
-                       },
-
-                       function() {
-                               assertLeftCSS(handle, {
-                                       percent: '0%',
-                                       pixels: '0px',
-                                       message: 'handle starts on the left side'
-                               });
-
-                               // disable and change value
-                               control.slider('disable');
-                               control.val('on').slider('refresh');
-                       },
-
-                       function() {
-                               assertLeftCSS(handle, {
-                                       percent: '100%',
-                                       pixels: handle.parent().css( 'width' ),
-                                       message: 'handle ends on the right side'
-                               });
-
-                               // reset slider state so it is ready for other tests
-                               control.slider('enable');
-
-                               start();
-                       }
-               ], 500);
-       });
-})(jQuery);
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/support/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/support/index.html
deleted file mode 100644 (file)
index dac7fb2..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile Support Test Suite</title>
-
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script src="../../../tests/jquery.testHelper.js"></script>
-
-       <script>
-               $.testHelper.asyncLoad([
-                       [
-                               "jquery.mobile.support"
-                       ],
-                       [
-                               "support_core.js"
-                       ]
-               ]);
-       </script>
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Support Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div id="qunit-fixture"></div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/support/support_core.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/support/support_core.js
deleted file mode 100644 (file)
index 27b3e7c..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-/*
- * mobile support unit tests
- */
-
-$.testHelper.excludeFileProtocol(function(){
-       var     prependToFn = $.fn.prependTo,
-               moduleName = "jquery.mobile.support";
-
-       module(moduleName, {
-               teardown: function(){
-                       //NOTE undo any mocking
-                       $.fn.prependTo = prependToFn;
-               }
-       });
-
-       // NOTE following two tests have debatable value as they only
-       //      prevent property name changes and improper attribute checks
-       asyncTest( "detects functionality from basic affirmative properties and attributes", function(){
-               // TODO expose properties for less brittle tests
-               $.extend(window, {
-                       WebKitTransitionEvent: true,
-               });
-
-               window.history.pushState = function(){};
-               window.history.replaceState = function(){};
-
-               $.mobile.media = function(){ return true; };
-
-               $.testHelper.reloadModule( moduleName ).done( function() {
-                       ok($.support.cssTransitions, "css transitions are supported" );
-                       ok($.support.pushState, "push state is supported" );
-                       ok($.support.mediaquery, "media queries are supported" );
-                       start();
-               });
-       });
-
-       asyncTest( "detects orientation change", function() {
-               $.extend(window, {
-                       orientation: true,
-                       onorientationchange: true
-               });
-
-               $.testHelper.reloadModule( "jquery.mobile.support.orientation" ).done( function() {
-                       ok($.support.orientation, "orientation is supported" );
-                       start();
-               });
-       });
-
-       asyncTest( "detects touch", function() {
-               document.ontouchend = true;
-
-               $.testHelper.reloadModule( "jquery.mobile.support.touch" ).done( function() {
-                       ok( $.mobile.support.touch, "touch is supported" );
-                       ok( $.support.touch, "touch is supported" );
-                       start();
-               });
-       });
-
-       asyncTest( "detects functionality from basic negative properties and attributes (where possible)", function(){
-               delete window["orientation"];
-
-               $.testHelper.reloadModule( "jquery.mobile.support.orientation" ).done( function() {
-                       ok(!$.support.orientation, "orientation is not supported" );
-                       start();
-               });
-       });
-
-       // NOTE mocks prependTo to simulate base href updates or lack thereof
-       var mockBaseCheck = function( url ){
-               var prependToFn = $.fn.prependTo;
-
-               $.fn.prependTo = function( selector ){
-                       var result = prependToFn.call(this, selector);
-                       if(this[0].href && this[0].href.indexOf("testurl") != -1)
-                               result = [{href: url}];
-                       return result;
-               };
-       };
-
-       asyncTest( "detects dynamic base tag when new base element added and base href updates", function(){
-               mockBaseCheck(location.protocol + '//' + location.host + location.pathname + "ui-dir/");
-               $.testHelper.reloadModule( moduleName ).done( function() {
-                       ok($.support.dynamicBaseTag);
-                       start();
-               });
-       });
-
-       asyncTest( "detects no dynamic base tag when new base element added and base href unchanged", function(){
-               mockBaseCheck('testurl');
-               $.testHelper.reloadModule( moduleName ).done( function() {
-                       ok(!$.support.dynamicBaseTag);
-                       start();
-               });
-       });
-
-       asyncTest( "jQM's IE browser check properly detects IE versions", function(){
-               $.testHelper.reloadModule( moduleName ).done( function() {
-               //here we're just comparing our version to what the conditional compilation finds
-                var ie                         = !!$.browser.msie, //get a boolean
-                        version                = parseInt( $.browser.version, 10),
-                        jqmdetectedver = $.mobile.browser.ie;
-
-                       if( ie ){
-                               deepEqual(version, jqmdetectedver, "It's IE and the version is correct");
-                       }
-                       else{
-                               deepEqual(ie, jqmdetectedver, "It's not IE");
-                       }
-                       start();
-               });
-       });
-
-
-       //TODO propExists testing, refactor propExists into mockable method
-       //TODO scrollTop testing, refactor scrollTop logic into mockable method
-});
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/swarminject.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/swarminject.js
deleted file mode 100644 (file)
index db69326..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-// load testswarm agent
-(function() {
-    var url = window.location.search;
-       url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) );
-       if ( !url || url.indexOf("http") !== 0 ) {
-               return;
-       }
-    document.write("<scr" + "ipt src='http://swarm.jquery.org/js/inject.js?" + (new Date).getTime() + "'></scr" + "ipt>");
-})();
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/textinput/external.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/textinput/external.html
deleted file mode 100644 (file)
index 2d10dd6..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-</head>
-<body>
-<div  data-nstest-role="page" id="foo">
-  <textarea id="page-load-autogrow">
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-  </textarea>
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/textinput/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/textinput/index.html
deleted file mode 100644 (file)
index 7b21eb1..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile Textinput Test Suite</title>
-
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script src="../../../tests/jquery.testHelper.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [ "jquery.mobile.forms.textinput" ],
-                       [ "settings.js" ],
-                       [ "jquery.mobile.init" ],
-                       [ "textinput_core.js" ]
-               ]);
-       </script>
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Textinput Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div  data-nstest-role="page">
-  <input name="" id="typeless-input" />
-  <textarea class="should-be-native"></textarea>
-
-  <textarea id="reference-autogrow">
-  </textarea>
-
-  <textarea id="init-autogrow">
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-    Place holder text
-  </textarea>
-
-  <textarea id="keyup-autogrow">
-  </textarea>
-  <a href="external.html" id="external">external</a>
-
-  <input type="search" id="search-input">
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/textinput/settings.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/textinput/settings.js
deleted file mode 100644 (file)
index 0e68422..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-$( document ).bind("mobileinit", function(){
-  $.mobile.textinput.prototype.options.clearSearchButtonText = "custom value";
-});
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/textinput/textinput_core.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/textinput/textinput_core.js
deleted file mode 100644 (file)
index 78c1e3e..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * mobile textinput unit tests
- */
-(function($){
-       module( "jquery.mobile.forms.textinput.js" );
-
-       test( "inputs without type specified are enhanced", function(){
-               ok( $( "#typeless-input" ).hasClass( "ui-input-text" ) );
-       });
-
-       $.mobile.page.prototype.options.keepNative = "textarea.should-be-native";
-
-       // not testing the positive case here since's it's obviously tested elsewhere
-       test( "textarea in the keepNative set shouldn't be enhanced", function() {
-               ok( !$("textarea.should-be-native").is("ui-input-text") );
-       });
-
-       asyncTest( "textarea should autogrow on document ready", function() {
-               var test = $( "#init-autogrow" );
-
-               setTimeout(function() {
-                       ok( $( "#reference-autogrow" )[0].clientHeight < test[0].clientHeight, "the height is greater than the reference text area with no content" );
-                       ok( test[0].clientHeight > 100, "autogrow text area's height is greater than any style padding");
-                       start();
-               }, 400);
-       });
-
-       asyncTest( "textarea should autogrow when text is added via the keyboard", function() {
-               var test = $( "#keyup-autogrow" ),
-                       originalHeight = test[0].clientHeight;
-
-               test.keyup(function() {
-                       setTimeout(function() {
-                               ok( test[0].clientHeight > originalHeight, "the height is greater than original with no content" );
-                               ok( test[0].clientHeight > 100, "autogrow text area's height is greater any style/padding");
-                               start();
-                       }, 400);
-               });
-
-               test.val("foo\n\n\n\n\n\n\n\n\n\n\n\n\n\n").trigger("keyup");
-       });
-
-       asyncTest( "text area should auto grow when the parent page is loaded via ajax", function() {
-               $.testHelper.pageSequence([
-                       function() {
-                               $("#external").click();
-                       },
-
-                       function() {
-                               setTimeout(function() {
-                                       ok($.mobile.activePage.find( "textarea" )[0].clientHeight > 100, "text area's height has grown");
-                                       window.history.back();
-                               }, 1000);
-                       },
-
-                       function() {
-                               start();
-                       }
-               ]);
-       });
-
-       // NOTE init binding to alter the setting is in settings.js
-       test( "'clear text' button for search inputs should use configured text", function(){
-               strictEqual( $( "#search-input" ).closest( ".ui-input-search" ).find( ".ui-input-clear" ).attr( "title" ), "custom value" );
-       });
-})(jQuery);
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/widget/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/widget/index.html
deleted file mode 100644 (file)
index f42080e..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>jQuery Mobile Widget Test Suite</title>
-
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.tag.inserter.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script src="../../../tests/jquery.testHelper.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [ "widget_init.js" ],
-                       [
-                               "jquery.mobile.forms.slider",
-                               "jquery.mobile.collapsible",
-                               "jquery.mobile.widget"
-                       ],
-                       [ "jquery.mobile.init" ],
-                       [
-                               "widget_core.js"
-                       ]
-               ]);
-       </script>
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Widget Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div id="qunit-fixture">
-
-<div id="widget-wrapper">
-       <div id="widget">
-               <div>...</div>
-       </div>
-</div>
-
-</div>
-
-<div id="foo" data-nstest-role="page">
-       <input type="range" id="foo-slider" name="foo-slider" value="" />
-       <div id="enhance-prevented">
-       </div>
-       <div id="enhance-allowed">
-       </div>
-</div>
-
-<div id="ignored" data-nstest-enhance="false" style="display: none">
-       <div id="ignored-collapsible" data-nstest-role="collapsible">
-       </div>
-</div>
-
-<div id="many-ignored" style="display: none">
-       <div>
-               <div id="many-enhanced-collapsible" data-nstest-role="collapsible">
-               </div>
-       </div>
-       <div data-nstest-enhance="false">
-               <div id="many-ignored-collapsible" data-nstest-role="collapsible">
-               </div>
-       </div>
-</div>
-
-<div id="not-ignored" style="display: none">
-       <div id="collapsible" data-nstest-role="collapsible">
-       </div>
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/widget/widget_core.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/widget/widget_core.js
deleted file mode 100644 (file)
index 520bccd..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * mobile widget unit tests
- */
-(function($){
-       module('jquery.mobile.widget.js');
-
-       test( "getting data from creation options", function(){
-               var expected = "bizzle";
-
-               $.mobile.widget.prototype.options = { "fooBar" : true };
-               $.mobile.widget.prototype.element = $("<div data-"+$.mobile.ns+"foo-bar=" + expected + ">");
-               same($.mobile.widget.prototype._getCreateOptions()["fooBar"],
-                                expected);
-       });
-
-       test( "getting no data when the options are empty", function(){
-                               var expected = {};
-
-               $.mobile.widget.prototype.options = {};
-               $.mobile.widget.prototype.element = $("<div data-"+$.mobile.ns+"foo-bar=" + expected + ">");
-               same($.mobile.widget.prototype._getCreateOptions(),
-                                expected);
-       });
-
-       test( "getting no data when the element has none", function(){
-               var expected = {};
-
-               $.mobile.widget.prototype.options = { "fooBar" : true };
-               $.mobile.widget.prototype.element = $("<div>");
-               same($.mobile.widget.prototype._getCreateOptions(),
-                                expected);
-       });
-
-       test( "elements embedded in sub page elements are excluded on create when they match the keep native selector", function() {
-               // uses default keep native of data-role=none
-               $("#enhance-prevented")
-                               .append('<label for="unenhanced">Text Input:</label><input type="text" name="name" id="unenhanced" value="" data-'+$.mobile.ns+'role="none" />')
-                               .trigger("create");
-
-               ok( !$("#unenhanced").hasClass( "ui-input-text" ), "doesn't have the ui input text class (unenhanced)");
-       });
-
-       test( "elements embedded in sub page elements are included on create when they don't match the keep native selector", function() {
-
-               // uses default keep native of data-role=none
-               $("#enhance-allowed")
-                               .append('<label for="enhanced">Text Input:</label><input type="text" name="name" id="enhanced" value=""/>')
-                               .trigger("create");
-
-               ok( $("#enhanced").hasClass( "ui-input-text" ), "has the ui input text class (unenhanced)");
-       });
-})(jQuery);
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/widget/widget_init.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/widget/widget_init.js
deleted file mode 100644 (file)
index 6f14626..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * mobile widget unit tests
- */
-(function($){
-       var widgetInitialized = false;
-
-       module( 'jquery.mobile.widget.js' );
-
-       $( "#foo" ).live( 'pageinit', function(){
-               // ordering sensitive here, the value has to be set after the call
-               // so that if the widget factory says that its not yet initialized,
-               // which is an exception, the value won't be set
-               $( "#foo-slider" ).slider( 'refresh' );
-               widgetInitialized = true;
-       });
-
-       test( "page is enhanced before init is fired", function() {
-               ok( widgetInitialized );
-       });
-
-       test( "elements within an ignore container are not enhanced when ignoreContentEnabled is true ", function() {
-               $.mobile.ignoreContentEnabled = true;
-
-               $.mobile.collapsible.prototype.enhanceWithin( $("#ignored") );
-
-               ok( !$( "#ignored-collapsible" ).hasClass( "ui-collapsible" ), "ignored element doesn't have ui-collapsible" );
-
-               $.mobile.collapsible.prototype.enhanceWithin( $("#not-ignored") );
-
-               ok( $( "#collapsible" ).hasClass( "ui-collapsible" ), "identical unignored elements are enahanced" );
-
-               $.mobile.ignoreContentEnabled = false;
-       });
-
-       test( "siblings without ignore parent are enhanced", function() {
-               $.mobile.ignoreContentEnabled = true;
-
-               $.mobile.collapsible.prototype.enhanceWithin( $("#many-ignored") );
-
-               ok( !$( "#many-ignored-collapsible" ).hasClass( "ui-collapsible" ), "sibling ignored element doesn't have ui-collapsible" );
-               ok( $( "#many-enhanced-collapsible" ).hasClass( "ui-collapsible" ), "sibling unignored elements are enahanced" );
-
-               $.mobile.ignoreContentEnabled = false;
-       });
-})( jQuery );
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/zoom/index.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/zoom/index.html
deleted file mode 100644 (file)
index 84eb44a..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="UTF-8" />
-       <title>jQuery Mobile Zoom Maniplation Integration Test</title>
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../../tests/jquery.testHelper.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [
-                               "jquery.mobile.zoom"
-                       ],
-                       [ "jquery.mobile.init" ],
-                       [
-                               "./zoom.js"
-                       ]
-               ]);
-       </script>
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile FieldContainer Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div data-nstest-role="page">
-
-
-</div>
-
-
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/zoom/initial-disable.html b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/zoom/initial-disable.html
deleted file mode 100644 (file)
index 0b9eaab..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="UTF-8" />
-       <title>jQuery Mobile Zoom Maniplation Integration Test</title>
-       <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
-
-       <script src="../../../external/requirejs/require.js"></script>
-       <script src="../../../js/jquery.js"></script>
-       <script src="../jquery.setNameSpace.js"></script>
-       <script src="../../../tests/jquery.testHelper.js"></script>
-       <script src="../../../external/qunit.js"></script>
-       <script>
-               $.testHelper.asyncLoad([
-                       [
-                               "jquery.mobile.zoom"
-                       ],
-                       [ "jquery.mobile.init" ],
-                       [
-                               "./zoom-initial-disable.js"
-                       ]
-               ]);
-       </script>
-
-       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
-       <link rel="stylesheet" href="../../../external/qunit.css"/>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile FieldContainer Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div data-nstest-role="page">
-
-
-</div>
-
-
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/zoom/zoom-initial-disable.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/zoom/zoom-initial-disable.js
deleted file mode 100644 (file)
index 5dcb239..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
- * mobile zoom
- */
-(function($){
-       test( "User zooming will not enable when calling enable() method if zooming was disabled in page source", function(){
-               $.mobile.zoom.enable();
-               ok( !$.mobile.zoom.enabled );           
-       });
-})(jQuery);
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/zoom/zoom.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/zoom/zoom.js
deleted file mode 100644 (file)
index 0f7a8f7..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * mobile Fixed Toolbar unit tests
- */
-(function($){
-       module('jquery.mobile.fixedToolbar.js');
-       
-       var defaultMeta = $( "meta[name=viewport]" ).attr("content");
-       
-       
-       test( "User zooming is enabled by default", function(){
-               ok( $.mobile.zoom.enabled === true, "property is true" );               
-       });
-       
-       test( "The zoom lock is disabled by default", function(){
-               ok( $.mobile.zoom.locked === false, "property is false" );              
-       });
-       
-       
-       test( "Meta viewport content is manipulated with maximum-scale", function(){
-               $.mobile.zoom.disable();
-               ok( $( "meta[name=viewport]" ).attr( "content" ).match( /,maximum-scale=1, user-scalable=no/ ), "The meta viewport tag's content contains maximum-scale=1, user-scalable=yes after enable is called" );
-               
-               $.mobile.zoom.enable();
-               ok( $( "meta[name=viewport]" ).attr( "content" ).match( /,maximum-scale=10, user-scalable=yes/ ), "The meta viewport tag's content contains maximum-scale=1, user-scalable=yes0, user-scalable=no after enable is called" );
-               
-       });
-       
-       test( "Meta viewport content restore method restores it back to original value", function(){
-               $.mobile.zoom.disable();
-               ok( $( "meta[name=viewport]" ).attr( "content" ).match( /,maximum-scale=1, user-scalable=no/ ), "The meta viewport tag's content contains maximum-scale=1, user-scalable=yes after enable is called" );
-               
-               $.mobile.zoom.restore();
-               ok( $( "meta[name=viewport]" ).attr( "content" ) === defaultMeta, "The meta viewport tag's content matches its default state" );
-               
-       });
-       
-       
-       
-       test( "When locked, the enable method does nothing", function(){
-               //enabled it first
-               $.mobile.zoom.locked = false;
-               $.mobile.zoom.disable();
-               $.mobile.zoom.locked = true;
-               $.mobile.zoom.enable();
-               
-               ok( $( "meta[name=viewport]" ).attr( "content" ).match( /,maximum-scale=1, user-scalable=no/ ), "The meta viewport tag's content contains maximum-scale=1, user-scalable=yes after enable is called" );
-               $.mobile.zoom.locked = false;
-               $.mobile.zoom.enable();
-               
-       });
-       
-       test( "When locked, the disable method does nothing", function(){
-               //enabled it first
-               $.mobile.zoom.locked = false;
-               $.mobile.zoom.enable();
-               $.mobile.zoom.locked = true;
-               $.mobile.zoom.disable();
-               
-               ok( $( "meta[name=viewport]" ).attr( "content" ).match( /,maximum-scale=10, user-scalable=yes/ ), "The meta viewport tag's content contains maximum-scale=1, user-scalable=yes0, user-scalable=no after disable is called" );
-               
-               $.mobile.zoom.locked = false;
-               $.mobile.zoom.enable();
-               
-       });
-       
-       test( "When locked, the enable method with a true 'unlock' argument works", function(){
-               //enabled it first
-               $.mobile.zoom.locked = false;
-               $.mobile.zoom.disable();
-               $.mobile.zoom.locked = true;
-               $.mobile.zoom.enable( true );
-               
-               ok( $( "meta[name=viewport]" ).attr( "content" ).match( /,maximum-scale=10, user-scalable=yes/ ), "The meta viewport tag's content contains maximum-scale=1, user-scalable=yes0, user-scalable=no after enable is called" );
-               ok( $.mobile.zoom.locked === false, "The locked property is false again" );
-               
-               $.mobile.zoom.locked = false;
-               $.mobile.zoom.enable();
-               
-       });
-       
-       
-       test( "When locked, the disable method with a true 'lock' argument works", function(){
-               //enabled it first
-               $.mobile.zoom.locked = false;
-               $.mobile.zoom.enable();
-
-               $.mobile.zoom.disable( true );
-               
-               ok( $( "meta[name=viewport]" ).attr( "content" ).match( /,maximum-scale=1, user-scalable=no/ ), "The meta viewport tag's content contains maximum-scale=1, user-scalable=yes after disable is called" );
-               ok( $.mobile.zoom.locked === true, "The locked property is true" );
-               
-               $.mobile.zoom.locked = false;
-               $.mobile.zoom.enable();
-               
-       });
-       
-       
-       
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/version.txt b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery-mobile-1.1.0/version.txt
deleted file mode 100644 (file)
index 9084fa2..0000000
+++ /dev/null
@@ -1 +0,0 @@
-1.1.0
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery.easing.1.3.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery.easing.1.3.js
deleted file mode 100644 (file)
index ef74321..0000000
+++ /dev/null
@@ -1,205 +0,0 @@
-/*
- * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
- *
- * Uses the built in easing capabilities added In jQuery 1.1
- * to offer multiple easing options
- *
- * TERMS OF USE - jQuery Easing
- * 
- * Open source under the BSD License. 
- * 
- * Copyright © 2008 George McGinley Smith
- * 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. 
- *
-*/
-
-// t: current time, b: begInnIng value, c: change In value, d: duration
-jQuery.easing['jswing'] = jQuery.easing['swing'];
-
-jQuery.extend( jQuery.easing,
-{
-       def: 'easeOutQuad',
-       swing: function (x, t, b, c, d) {
-               //alert(jQuery.easing.default);
-               return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
-       },
-       easeInQuad: function (x, t, b, c, d) {
-               return c*(t/=d)*t + b;
-       },
-       easeOutQuad: function (x, t, b, c, d) {
-               return -c *(t/=d)*(t-2) + b;
-       },
-       easeInOutQuad: function (x, t, b, c, d) {
-               if ((t/=d/2) < 1) return c/2*t*t + b;
-               return -c/2 * ((--t)*(t-2) - 1) + b;
-       },
-       easeInCubic: function (x, t, b, c, d) {
-               return c*(t/=d)*t*t + b;
-       },
-       easeOutCubic: function (x, t, b, c, d) {
-               return c*((t=t/d-1)*t*t + 1) + b;
-       },
-       easeInOutCubic: function (x, t, b, c, d) {
-               if ((t/=d/2) < 1) return c/2*t*t*t + b;
-               return c/2*((t-=2)*t*t + 2) + b;
-       },
-       easeInQuart: function (x, t, b, c, d) {
-               return c*(t/=d)*t*t*t + b;
-       },
-       easeOutQuart: function (x, t, b, c, d) {
-               return -c * ((t=t/d-1)*t*t*t - 1) + b;
-       },
-       easeInOutQuart: function (x, 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;
-       },
-       easeInQuint: function (x, t, b, c, d) {
-               return c*(t/=d)*t*t*t*t + b;
-       },
-       easeOutQuint: function (x, t, b, c, d) {
-               return c*((t=t/d-1)*t*t*t*t + 1) + b;
-       },
-       easeInOutQuint: function (x, t, b, c, d) {
-               if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
-               return c/2*((t-=2)*t*t*t*t + 2) + b;
-       },
-       easeInSine: function (x, t, b, c, d) {
-               return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
-       },
-       easeOutSine: function (x, t, b, c, d) {
-               return c * Math.sin(t/d * (Math.PI/2)) + b;
-       },
-       easeInOutSine: function (x, t, b, c, d) {
-               return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
-       },
-       easeInExpo: function (x, t, b, c, d) {
-               return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
-       },
-       easeOutExpo: function (x, t, b, c, d) {
-               return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
-       },
-       easeInOutExpo: function (x, t, b, c, d) {
-               if (t==0) return b;
-               if (t==d) return b+c;
-               if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
-               return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
-       },
-       easeInCirc: function (x, t, b, c, d) {
-               return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
-       },
-       easeOutCirc: function (x, t, b, c, d) {
-               return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
-       },
-       easeInOutCirc: function (x, t, b, c, d) {
-               if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
-               return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
-       },
-       easeInElastic: function (x, t, b, c, d) {
-               var s=1.70158;var p=0;var a=c;
-               if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
-               if (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;
-       },
-       easeOutElastic: function (x, t, b, c, d) {
-               var s=1.70158;var p=0;var a=c;
-               if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
-               if (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;
-       },
-       easeInOutElastic: function (x, t, b, c, d) {
-               var s=1.70158;var p=0;var a=c;
-               if (t==0) return b;  if ((t/=d/2)==2) return b+c;  if (!p) p=d*(.3*1.5);
-               if (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;
-       },
-       easeInBack: function (x, t, b, c, d, s) {
-               if (s == undefined) s = 1.70158;
-               return c*(t/=d)*t*((s+1)*t - s) + b;
-       },
-       easeOutBack: function (x, t, b, c, d, s) {
-               if (s == undefined) s = 1.70158;
-               return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
-       },
-       easeInOutBack: function (x, t, b, c, d, s) {
-               if (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;
-       },
-       easeInBounce: function (x, t, b, c, d) {
-               return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
-       },
-       easeOutBounce: function (x, 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;
-               } else {
-                       return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
-               }
-       },
-       easeInOutBounce: function (x, t, b, c, d) {
-               if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
-               return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
-       }
-});
-
-/*
- *
- * 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. 
- *
- */
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery.mobile.loadstructure.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery.mobile.loadstructure.js
deleted file mode 100644 (file)
index 55457b4..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-jQuery.extend( jQuery.mobile,
-{
-  loadStructure: function(widgetname) {
-    var ret = undefined,
-        theScriptTag = $("script[data-framework-version][data-framework-root][data-framework-theme]"),
-        frameworkRootPath = theScriptTag.attr("data-framework-root")    + "/" +
-                            theScriptTag.attr("data-framework-version") + "/",
-        protoPath = frameworkRootPath + "proto-html" + "/" +
-                    theScriptTag.attr("data-framework-theme");
-
-    $.ajax({
-      url: protoPath + "/" + widgetname + ".prototype.html",
-      async: false,
-      dataType: "html"
-    })
-      .success(function(data, textStatus, jqXHR) {
-        ret = $("<div>").html(data.replace(/\$\{FRAMEWORK_ROOT\}/g, frameworkRootPath));
-      });
-
-    return ret;
-  }
-});
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery.tmpl.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/jquery.tmpl.js
deleted file mode 100644 (file)
index 7e850f9..0000000
+++ /dev/null
@@ -1,484 +0,0 @@
-/*!
- * jQuery Templates Plugin 1.0.0pre
- * http://github.com/jquery/jquery-tmpl
- * Requires jQuery 1.4.2
- *
- * Copyright Software Freedom Conservancy, Inc.
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- */
-(function( jQuery, undefined ){
-       var oldManip = jQuery.fn.domManip, tmplItmAtt = "_tmplitem", htmlExpr = /^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,
-               newTmplItems = {}, wrappedItems = {}, appendToTmplItems, topTmplItem = { key: 0, data: {} }, itemKey = 0, cloneIndex = 0, stack = [];
-
-       function newTmplItem( options, parentItem, fn, data ) {
-               // Returns a template item data structure for a new rendered instance of a template (a 'template item').
-               // The content field is a hierarchical array of strings and nested items (to be
-               // removed and replaced by nodes field of dom elements, once inserted in DOM).
-               var newItem = {
-                       data: data || (data === 0 || data === false) ? data : (parentItem ? parentItem.data : {}),
-                       _wrap: parentItem ? parentItem._wrap : null,
-                       tmpl: null,
-                       parent: parentItem || null,
-                       nodes: [],
-                       calls: tiCalls,
-                       nest: tiNest,
-                       wrap: tiWrap,
-                       html: tiHtml,
-                       update: tiUpdate
-               };
-               if ( options ) {
-                       jQuery.extend( newItem, options, { nodes: [], parent: parentItem });
-               }
-               if ( fn ) {
-                       // Build the hierarchical content to be used during insertion into DOM
-                       newItem.tmpl = fn;
-                       newItem._ctnt = newItem._ctnt || newItem.tmpl( jQuery, newItem );
-                       newItem.key = ++itemKey;
-                       // Keep track of new template item, until it is stored as jQuery Data on DOM element
-                       (stack.length ? wrappedItems : newTmplItems)[itemKey] = newItem;
-               }
-               return newItem;
-       }
-
-       // Override appendTo etc., in order to provide support for targeting multiple elements. (This code would disappear if integrated in jquery core).
-       jQuery.each({
-               appendTo: "append",
-               prependTo: "prepend",
-               insertBefore: "before",
-               insertAfter: "after",
-               replaceAll: "replaceWith"
-       }, function( name, original ) {
-               jQuery.fn[ name ] = function( selector ) {
-                       var ret = [], insert = jQuery( selector ), elems, i, l, tmplItems,
-                               parent = this.length === 1 && this[0].parentNode;
-
-                       appendToTmplItems = newTmplItems || {};
-                       if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {
-                               insert[ original ]( this[0] );
-                               ret = this;
-                       } else {
-                               for ( i = 0, l = insert.length; i < l; i++ ) {
-                                       cloneIndex = i;
-                                       elems = (i > 0 ? this.clone(true) : this).get();
-                                       jQuery( insert[i] )[ original ]( elems );
-                                       ret = ret.concat( elems );
-                               }
-                               cloneIndex = 0;
-                               ret = this.pushStack( ret, name, insert.selector );
-                       }
-                       tmplItems = appendToTmplItems;
-                       appendToTmplItems = null;
-                       jQuery.tmpl.complete( tmplItems );
-                       return ret;
-               };
-       });
-
-       jQuery.fn.extend({
-               // Use first wrapped element as template markup.
-               // Return wrapped set of template items, obtained by rendering template against data.
-               tmpl: function( data, options, parentItem ) {
-                       return jQuery.tmpl( this[0], data, options, parentItem );
-               },
-
-               // Find which rendered template item the first wrapped DOM element belongs to
-               tmplItem: function() {
-                       return jQuery.tmplItem( this[0] );
-               },
-
-               // Consider the first wrapped element as a template declaration, and get the compiled template or store it as a named template.
-               template: function( name ) {
-                       return jQuery.template( name, this[0] );
-               },
-
-               domManip: function( args, table, callback, options ) {
-                       if ( args[0] && jQuery.isArray( args[0] )) {
-                               var dmArgs = jQuery.makeArray( arguments ), elems = args[0], elemsLength = elems.length, i = 0, tmplItem;
-                               while ( i < elemsLength && !(tmplItem = jQuery.data( elems[i++], "tmplItem" ))) {}
-                               if ( tmplItem && cloneIndex ) {
-                                       dmArgs[2] = function( fragClone ) {
-                                               // Handler called by oldManip when rendered template has been inserted into DOM.
-                                               jQuery.tmpl.afterManip( this, fragClone, callback );
-                                       };
-                               }
-                               oldManip.apply( this, dmArgs );
-                       } else {
-                               oldManip.apply( this, arguments );
-                       }
-                       cloneIndex = 0;
-                       if ( !appendToTmplItems ) {
-                               jQuery.tmpl.complete( newTmplItems );
-                       }
-                       return this;
-               }
-       });
-
-       jQuery.extend({
-               // Return wrapped set of template items, obtained by rendering template against data.
-               tmpl: function( tmpl, data, options, parentItem ) {
-                       var ret, topLevel = !parentItem;
-                       if ( topLevel ) {
-                               // This is a top-level tmpl call (not from a nested template using {{tmpl}})
-                               parentItem = topTmplItem;
-                               tmpl = jQuery.template[tmpl] || jQuery.template( null, tmpl );
-                               wrappedItems = {}; // Any wrapped items will be rebuilt, since this is top level
-                       } else if ( !tmpl ) {
-                               // The template item is already associated with DOM - this is a refresh.
-                               // Re-evaluate rendered template for the parentItem
-                               tmpl = parentItem.tmpl;
-                               newTmplItems[parentItem.key] = parentItem;
-                               parentItem.nodes = [];
-                               if ( parentItem.wrapped ) {
-                                       updateWrapped( parentItem, parentItem.wrapped );
-                               }
-                               // Rebuild, without creating a new template item
-                               return jQuery( build( parentItem, null, parentItem.tmpl( jQuery, parentItem ) ));
-                       }
-                       if ( !tmpl ) {
-                               return []; // Could throw...
-                       }
-                       if ( typeof data === "function" ) {
-                               data = data.call( parentItem || {} );
-                       }
-                       if ( options && options.wrapped ) {
-                               updateWrapped( options, options.wrapped );
-                       }
-                       ret = jQuery.isArray( data ) ?
-                               jQuery.map( data, function( dataItem ) {
-                                       return dataItem ? newTmplItem( options, parentItem, tmpl, dataItem ) : null;
-                               }) :
-                               [ newTmplItem( options, parentItem, tmpl, data ) ];
-                       return topLevel ? jQuery( build( parentItem, null, ret ) ) : ret;
-               },
-
-               // Return rendered template item for an element.
-               tmplItem: function( elem ) {
-                       var tmplItem;
-                       if ( elem instanceof jQuery ) {
-                               elem = elem[0];
-                       }
-                       while ( elem && elem.nodeType === 1 && !(tmplItem = jQuery.data( elem, "tmplItem" )) && (elem = elem.parentNode) ) {}
-                       return tmplItem || topTmplItem;
-               },
-
-               // Set:
-               // Use $.template( name, tmpl ) to cache a named template,
-               // where tmpl is a template string, a script element or a jQuery instance wrapping a script element, etc.
-               // Use $( "selector" ).template( name ) to provide access by name to a script block template declaration.
-
-               // Get:
-               // Use $.template( name ) to access a cached template.
-               // Also $( selectorToScriptBlock ).template(), or $.template( null, templateString )
-               // will return the compiled template, without adding a name reference.
-               // If templateString includes at least one HTML tag, $.template( templateString ) is equivalent
-               // to $.template( null, templateString )
-               template: function( name, tmpl ) {
-                       if (tmpl) {
-                               // Compile template and associate with name
-                               if ( typeof tmpl === "string" ) {
-                                       // This is an HTML string being passed directly in.
-                                       tmpl = buildTmplFn( tmpl );
-                               } else if ( tmpl instanceof jQuery ) {
-                                       tmpl = tmpl[0] || {};
-                               }
-                               if ( tmpl.nodeType ) {
-                                       // If this is a template block, use cached copy, or generate tmpl function and cache.
-                                       tmpl = jQuery.data( tmpl, "tmpl" ) || jQuery.data( tmpl, "tmpl", buildTmplFn( tmpl.innerHTML ));
-                                       // Issue: In IE, if the container element is not a script block, the innerHTML will remove quotes from attribute values whenever the value does not include white space.
-                                       // This means that foo="${x}" will not work if the value of x includes white space: foo="${x}" -> foo=value of x.
-                                       // To correct this, include space in tag: foo="${ x }" -> foo="value of x"
-                               }
-                               return typeof name === "string" ? (jQuery.template[name] = tmpl) : tmpl;
-                       }
-                       // Return named compiled template
-                       return name ? (typeof name !== "string" ? jQuery.template( null, name ):
-                               (jQuery.template[name] ||
-                                       // If not in map, and not containing at least on HTML tag, treat as a selector.
-                                       // (If integrated with core, use quickExpr.exec)
-                                       jQuery.template( null, htmlExpr.test( name ) ? name : jQuery( name )))) : null;
-               },
-
-               encode: function( text ) {
-                       // Do HTML encoding replacing < > & and ' and " by corresponding entities.
-                       return ("" + text).split("<").join("&lt;").split(">").join("&gt;").split('"').join("&#34;").split("'").join("&#39;");
-               }
-       });
-
-       jQuery.extend( jQuery.tmpl, {
-               tag: {
-                       "tmpl": {
-                               _default: { $2: "null" },
-                               open: "if($notnull_1){__=__.concat($item.nest($1,$2));}"
-                               // tmpl target parameter can be of type function, so use $1, not $1a (so not auto detection of functions)
-                               // This means that {{tmpl foo}} treats foo as a template (which IS a function).
-                               // Explicit parens can be used if foo is a function that returns a template: {{tmpl foo()}}.
-                       },
-                       "wrap": {
-                               _default: { $2: "null" },
-                               open: "$item.calls(__,$1,$2);__=[];",
-                               close: "call=$item.calls();__=call._.concat($item.wrap(call,__));"
-                       },
-                       "each": {
-                               _default: { $2: "$index, $value" },
-                               open: "if($notnull_1){$.each($1a,function($2){with(this){",
-                               close: "}});}"
-                       },
-                       "if": {
-                               open: "if(($notnull_1) && $1a){",
-                               close: "}"
-                       },
-                       "else": {
-                               _default: { $1: "true" },
-                               open: "}else if(($notnull_1) && $1a){"
-                       },
-                       "html": {
-                               // Unecoded expression evaluation.
-                               open: "if($notnull_1){__.push($1a);}"
-                       },
-                       "=": {
-                               // Encoded expression evaluation. Abbreviated form is ${}.
-                               _default: { $1: "$data" },
-                               open: "if($notnull_1){__.push($.encode($1a));}"
-                       },
-                       "!": {
-                               // Comment tag. Skipped by parser
-                               open: ""
-                       }
-               },
-
-               // This stub can be overridden, e.g. in jquery.tmplPlus for providing rendered events
-               complete: function( items ) {
-                       newTmplItems = {};
-               },
-
-               // Call this from code which overrides domManip, or equivalent
-               // Manage cloning/storing template items etc.
-               afterManip: function afterManip( elem, fragClone, callback ) {
-                       // Provides cloned fragment ready for fixup prior to and after insertion into DOM
-                       var content = fragClone.nodeType === 11 ?
-                               jQuery.makeArray(fragClone.childNodes) :
-                               fragClone.nodeType === 1 ? [fragClone] : [];
-
-                       // Return fragment to original caller (e.g. append) for DOM insertion
-                       callback.call( elem, fragClone );
-
-                       // Fragment has been inserted:- Add inserted nodes to tmplItem data structure. Replace inserted element annotations by jQuery.data.
-                       storeTmplItems( content );
-                       cloneIndex++;
-               }
-       });
-
-       //========================== Private helper functions, used by code above ==========================
-
-       function build( tmplItem, nested, content ) {
-               // Convert hierarchical content into flat string array
-               // and finally return array of fragments ready for DOM insertion
-               var frag, ret = content ? jQuery.map( content, function( item ) {
-                       return (typeof item === "string") ?
-                               // Insert template item annotations, to be converted to jQuery.data( "tmplItem" ) when elems are inserted into DOM.
-                               (tmplItem.key ? item.replace( /(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g, "$1 " + tmplItmAtt + "=\"" + tmplItem.key + "\" $2" ) : item) :
-                               // This is a child template item. Build nested template.
-                               build( item, tmplItem, item._ctnt );
-               }) :
-               // If content is not defined, insert tmplItem directly. Not a template item. May be a string, or a string array, e.g. from {{html $item.html()}}.
-               tmplItem;
-               if ( nested ) {
-                       return ret;
-               }
-
-               // top-level template
-               ret = ret.join("");
-
-               // Support templates which have initial or final text nodes, or consist only of text
-               // Also support HTML entities within the HTML markup.
-               ret.replace( /^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/, function( all, before, middle, after) {
-                       frag = jQuery( middle ).get();
-
-                       storeTmplItems( frag );
-                       if ( before ) {
-                               frag = unencode( before ).concat(frag);
-                       }
-                       if ( after ) {
-                               frag = frag.concat(unencode( after ));
-                       }
-               });
-               return frag ? frag : unencode( ret );
-       }
-
-       function unencode( text ) {
-               // Use createElement, since createTextNode will not render HTML entities correctly
-               var el = document.createElement( "div" );
-               el.innerHTML = text;
-               return jQuery.makeArray(el.childNodes);
-       }
-
-       // Generate a reusable function that will serve to render a template against data
-       function buildTmplFn( markup ) {
-               return new Function("jQuery","$item",
-                       // Use the variable __ to hold a string array while building the compiled template. (See https://github.com/jquery/jquery-tmpl/issues#issue/10).
-                       "var $=jQuery,call,__=[],$data=$item.data;" +
-
-                       // Introduce the data as local variables using with(){}
-                       "with($data){__.push('" +
-
-                       // Convert the template into pure JavaScript
-                       jQuery.trim(markup)
-                               .replace( /([\\'])/g, "\\$1" )
-                               .replace( /[\r\t\n]/g, " " )
-                               .replace( /\$\{([^\}]*)\}/g, "{{= $1}}" )
-                               .replace( /\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,
-                               function( all, slash, type, fnargs, target, parens, args ) {
-                                       var tag = jQuery.tmpl.tag[ type ], def, expr, exprAutoFnDetect;
-                                       if ( !tag ) {
-                                               throw "Unknown template tag: " + type;
-                                       }
-                                       def = tag._default || [];
-                                       if ( parens && !/\w$/.test(target)) {
-                                               target += parens;
-                                               parens = "";
-                                       }
-                                       if ( target ) {
-                                               target = unescape( target );
-                                               args = args ? ("," + unescape( args ) + ")") : (parens ? ")" : "");
-                                               // Support for target being things like a.toLowerCase();
-                                               // In that case don't call with template item as 'this' pointer. Just evaluate...
-                                               expr = parens ? (target.indexOf(".") > -1 ? target + unescape( parens ) : ("(" + target + ").call($item" + args)) : target;
-                                               exprAutoFnDetect = parens ? expr : "(typeof(" + target + ")==='function'?(" + target + ").call($item):(" + target + "))";
-                                       } else {
-                                               exprAutoFnDetect = expr = def.$1 || "null";
-                                       }
-                                       fnargs = unescape( fnargs );
-                                       return "');" +
-                                               tag[ slash ? "close" : "open" ]
-                                                       .split( "$notnull_1" ).join( target ? "typeof(" + target + ")!=='undefined' && (" + target + ")!=null" : "true" )
-                                                       .split( "$1a" ).join( exprAutoFnDetect )
-                                                       .split( "$1" ).join( expr )
-                                                       .split( "$2" ).join( fnargs || def.$2 || "" ) +
-                                               "__.push('";
-                               }) +
-                       "');}return __;"
-               );
-       }
-       function updateWrapped( options, wrapped ) {
-               // Build the wrapped content.
-               options._wrap = build( options, true,
-                       // Suport imperative scenario in which options.wrapped can be set to a selector or an HTML string.
-                       jQuery.isArray( wrapped ) ? wrapped : [htmlExpr.test( wrapped ) ? wrapped : jQuery( wrapped ).html()]
-               ).join("");
-       }
-
-       function unescape( args ) {
-               return args ? args.replace( /\\'/g, "'").replace(/\\\\/g, "\\" ) : null;
-       }
-       function outerHtml( elem ) {
-               var div = document.createElement("div");
-               div.appendChild( elem.cloneNode(true) );
-               return div.innerHTML;
-       }
-
-       // Store template items in jQuery.data(), ensuring a unique tmplItem data data structure for each rendered template instance.
-       function storeTmplItems( content ) {
-               var keySuffix = "_" + cloneIndex, elem, elems, newClonedItems = {}, i, l, m;
-               for ( i = 0, l = content.length; i < l; i++ ) {
-                       if ( (elem = content[i]).nodeType !== 1 ) {
-                               continue;
-                       }
-                       elems = elem.getElementsByTagName("*");
-                       for ( m = elems.length - 1; m >= 0; m-- ) {
-                               processItemKey( elems[m] );
-                       }
-                       processItemKey( elem );
-               }
-               function processItemKey( el ) {
-                       var pntKey, pntNode = el, pntItem, tmplItem, key;
-                       // Ensure that each rendered template inserted into the DOM has its own template item,
-                       if ( (key = el.getAttribute( tmplItmAtt ))) {
-                               while ( pntNode.parentNode && (pntNode = pntNode.parentNode).nodeType === 1 && !(pntKey = pntNode.getAttribute( tmplItmAtt ))) { }
-                               if ( pntKey !== key ) {
-                                       // The next ancestor with a _tmplitem expando is on a different key than this one.
-                                       // So this is a top-level element within this template item
-                                       // Set pntNode to the key of the parentNode, or to 0 if pntNode.parentNode is null, or pntNode is a fragment.
-                                       pntNode = pntNode.parentNode ? (pntNode.nodeType === 11 ? 0 : (pntNode.getAttribute( tmplItmAtt ) || 0)) : 0;
-                                       if ( !(tmplItem = newTmplItems[key]) ) {
-                                               // The item is for wrapped content, and was copied from the temporary parent wrappedItem.
-                                               tmplItem = wrappedItems[key];
-                                               tmplItem = newTmplItem( tmplItem, newTmplItems[pntNode]||wrappedItems[pntNode] );
-                                               tmplItem.key = ++itemKey;
-                                               newTmplItems[itemKey] = tmplItem;
-                                       }
-                                       if ( cloneIndex ) {
-                                               cloneTmplItem( key );
-                                       }
-                               }
-                               el.removeAttribute( tmplItmAtt );
-                       } else if ( cloneIndex && (tmplItem = jQuery.data( el, "tmplItem" )) ) {
-                               // This was a rendered element, cloned during append or appendTo etc.
-                               // TmplItem stored in jQuery data has already been cloned in cloneCopyEvent. We must replace it with a fresh cloned tmplItem.
-                               cloneTmplItem( tmplItem.key );
-                               newTmplItems[tmplItem.key] = tmplItem;
-                               pntNode = jQuery.data( el.parentNode, "tmplItem" );
-                               pntNode = pntNode ? pntNode.key : 0;
-                       }
-                       if ( tmplItem ) {
-                               pntItem = tmplItem;
-                               // Find the template item of the parent element.
-                               // (Using !=, not !==, since pntItem.key is number, and pntNode may be a string)
-                               while ( pntItem && pntItem.key != pntNode ) {
-                                       // Add this element as a top-level node for this rendered template item, as well as for any
-                                       // ancestor items between this item and the item of its parent element
-                                       pntItem.nodes.push( el );
-                                       pntItem = pntItem.parent;
-                               }
-                               // Delete content built during rendering - reduce API surface area and memory use, and avoid exposing of stale data after rendering...
-                               delete tmplItem._ctnt;
-                               delete tmplItem._wrap;
-                               // Store template item as jQuery data on the element
-                               jQuery.data( el, "tmplItem", tmplItem );
-                       }
-                       function cloneTmplItem( key ) {
-                               key = key + keySuffix;
-                               tmplItem = newClonedItems[key] =
-                                       (newClonedItems[key] || newTmplItem( tmplItem, newTmplItems[tmplItem.parent.key + keySuffix] || tmplItem.parent ));
-                       }
-               }
-       }
-
-       //---- Helper functions for template item ----
-
-       function tiCalls( content, tmpl, data, options ) {
-               if ( !content ) {
-                       return stack.pop();
-               }
-               stack.push({ _: content, tmpl: tmpl, item:this, data: data, options: options });
-       }
-
-       function tiNest( tmpl, data, options ) {
-               // nested template, using {{tmpl}} tag
-               return jQuery.tmpl( jQuery.template( tmpl ), data, options, this );
-       }
-
-       function tiWrap( call, wrapped ) {
-               // nested template, using {{wrap}} tag
-               var options = call.options || {};
-               options.wrapped = wrapped;
-               // Apply the template, which may incorporate wrapped content,
-               return jQuery.tmpl( jQuery.template( call.tmpl ), call.data, options, call.item );
-       }
-
-       function tiHtml( filter, textOnly ) {
-               var wrapped = this._wrap;
-               return jQuery.map(
-                       jQuery( jQuery.isArray( wrapped ) ? wrapped.join("") : wrapped ).filter( filter || "*" ),
-                       function(e) {
-                               return textOnly ?
-                                       e.innerText || e.textContent :
-                                       e.outerHTML || outerHtml(e);
-                       });
-       }
-
-       function tiUpdate() {
-               var coll = this.nodes;
-               jQuery.tmpl( null, null, null, this).insertBefore( coll[0] );
-               jQuery( coll ).remove();
-       }
-})( jQuery );
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/qunit/qunit.css b/tct-uifw-tests/web-ui-fw-tests/libs/js/qunit/qunit.css
deleted file mode 100644 (file)
index fcb435f..0000000
+++ /dev/null
@@ -1,236 +0,0 @@
-/**
- * QUnit v1.9.0 - A JavaScript Unit Testing Framework
- *
- * http://docs.jquery.com/QUnit
- *
- * Copyright (c) 2012 John Resig, Jörn Zaefferer
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * or GPL (GPL-LICENSE.txt) licenses.
- */
-
-/** Font Family and Sizes */
-
-#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult {
-       font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
-}
-
-#qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
-#qunit-tests { font-size: smaller; }
-
-
-/** Resets */
-
-#qunit-tests, #qunit-tests ol, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult {
-       margin: 0;
-       padding: 0;
-}
-
-
-/** Header */
-
-#qunit-header {
-       padding: 0.5em 0 0.5em 1em;
-
-       color: #8699a4;
-       background-color: #0d3349;
-
-       font-size: 1.5em;
-       line-height: 1em;
-       font-weight: normal;
-
-       border-radius: 5px 5px 0 0;
-       -moz-border-radius: 5px 5px 0 0;
-       -webkit-border-top-right-radius: 5px;
-       -webkit-border-top-left-radius: 5px;
-}
-
-#qunit-header a {
-       text-decoration: none;
-       color: #c2ccd1;
-}
-
-#qunit-header a:hover,
-#qunit-header a:focus {
-       color: #fff;
-}
-
-#qunit-testrunner-toolbar label {
-       display: inline-block;
-       padding: 0 .5em 0 .1em;
-}
-
-#qunit-banner {
-       height: 5px;
-}
-
-#qunit-testrunner-toolbar {
-       padding: 0.5em 0 0.5em 2em;
-       color: #5E740B;
-       background-color: #eee;
-}
-
-#qunit-userAgent {
-       padding: 0.5em 0 0.5em 2.5em;
-       background-color: #2b81af;
-       color: #fff;
-       text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
-}
-
-
-/** Tests: Pass/Fail */
-
-#qunit-tests {
-       list-style-position: inside;
-}
-
-#qunit-tests li {
-       padding: 0.4em 0.5em 0.4em 2.5em;
-       border-bottom: 1px solid #fff;
-       list-style-position: inside;
-}
-
-#qunit-tests.hidepass li.pass, #qunit-tests.hidepass li.running  {
-       display: none;
-}
-
-#qunit-tests li strong {
-       cursor: pointer;
-}
-
-#qunit-tests li a {
-       padding: 0.5em;
-       color: #c2ccd1;
-       text-decoration: none;
-}
-#qunit-tests li a:hover,
-#qunit-tests li a:focus {
-       color: #000;
-}
-
-#qunit-tests ol {
-       margin-top: 0.5em;
-       padding: 0.5em;
-
-       background-color: #fff;
-
-       border-radius: 5px;
-       -moz-border-radius: 5px;
-       -webkit-border-radius: 5px;
-}
-
-#qunit-tests table {
-       border-collapse: collapse;
-       margin-top: .2em;
-}
-
-#qunit-tests th {
-       text-align: right;
-       vertical-align: top;
-       padding: 0 .5em 0 0;
-}
-
-#qunit-tests td {
-       vertical-align: top;
-}
-
-#qunit-tests pre {
-       margin: 0;
-       white-space: pre-wrap;
-       word-wrap: break-word;
-}
-
-#qunit-tests del {
-       background-color: #e0f2be;
-       color: #374e0c;
-       text-decoration: none;
-}
-
-#qunit-tests ins {
-       background-color: #ffcaca;
-       color: #500;
-       text-decoration: none;
-}
-
-/*** Test Counts */
-
-#qunit-tests b.counts                       { color: black; }
-#qunit-tests b.passed                       { color: #5E740B; }
-#qunit-tests b.failed                       { color: #710909; }
-
-#qunit-tests li li {
-       padding: 5px;
-       background-color: #fff;
-       border-bottom: none;
-       list-style-position: inside;
-}
-
-/*** Passing Styles */
-
-#qunit-tests li li.pass {
-       color: #3c510c;
-       background-color: #fff;
-       border-left: 10px solid #C6E746;
-}
-
-#qunit-tests .pass                          { color: #528CE0; background-color: #D2E0E6; }
-#qunit-tests .pass .test-name               { color: #366097; }
-
-#qunit-tests .pass .test-actual,
-#qunit-tests .pass .test-expected           { color: #999999; }
-
-#qunit-banner.qunit-pass                    { background-color: #C6E746; }
-
-/*** Failing Styles */
-
-#qunit-tests li li.fail {
-       color: #710909;
-       background-color: #fff;
-       border-left: 10px solid #EE5757;
-       white-space: pre;
-}
-
-#qunit-tests > li:last-child {
-       border-radius: 0 0 5px 5px;
-       -moz-border-radius: 0 0 5px 5px;
-       -webkit-border-bottom-right-radius: 5px;
-       -webkit-border-bottom-left-radius: 5px;
-}
-
-#qunit-tests .fail                          { color: #000000; background-color: #EE5757; }
-#qunit-tests .fail .test-name,
-#qunit-tests .fail .module-name             { color: #000000; }
-
-#qunit-tests .fail .test-actual             { color: #EE5757; }
-#qunit-tests .fail .test-expected           { color: green;   }
-
-#qunit-banner.qunit-fail                    { background-color: #EE5757; }
-
-
-/** Result */
-
-#qunit-testresult {
-       padding: 0.5em 0.5em 0.5em 2.5em;
-
-       color: #2b81af;
-       background-color: #D2E0E6;
-
-       border-bottom: 1px solid white;
-}
-#qunit-testresult .module-name {
-       font-weight: bold;
-}
-
-/** Fixture */
-
-#qunit-fixture {
-       position: absolute;
-       top: -10000px;
-       left: -10000px;
-       width: 1000px;
-       height: 1000px;
-}
-
-[data-nstest-role='page'], [data-nstest-role='dialog'] {
-  position: absolute !important;
-  top: -10000px !important;
-}
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/libs/js/qunit/qunit.js b/tct-uifw-tests/web-ui-fw-tests/libs/js/qunit/qunit.js
deleted file mode 100644 (file)
index c63b0e4..0000000
+++ /dev/null
@@ -1,1935 +0,0 @@
-/**
- * QUnit v1.9.0 - A JavaScript Unit Testing Framework
- *
- * http://docs.jquery.com/QUnit
- *
- * Copyright (c) 2012 John Resig, Jörn Zaefferer
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * or GPL (GPL-LICENSE.txt) licenses.
- */
-
-(function( window ) {
-
-var QUnit,
-       config,
-       onErrorFnPrev,
-       testId = 0,
-       fileName = (sourceFromStacktrace( 0 ) || "" ).replace(/(:\d+)+\)?/, "").replace(/.+\//, ""),
-       toString = Object.prototype.toString,
-       hasOwn = Object.prototype.hasOwnProperty,
-       defined = {
-       setTimeout: typeof window.setTimeout !== "undefined",
-       sessionStorage: (function() {
-               var x = "qunit-test-string";
-               try {
-                       sessionStorage.setItem( x, x );
-                       sessionStorage.removeItem( x );
-                       return true;
-               } catch( e ) {
-                       return false;
-               }
-       }())
-};
-
-function Test( settings ) {
-       extend( this, settings );
-       this.assertions = [];
-       this.testNumber = ++Test.count;
-}
-
-Test.count = 0;
-
-Test.prototype = {
-       init: function() {
-               var a, b, li,
-        tests = id( "qunit-tests" );
-
-               if ( tests ) {
-                       b = document.createElement( "strong" );
-                       b.innerHTML = this.name;
-
-                       // `a` initialized at top of scope
-                       a = document.createElement( "a" );
-                       a.innerHTML = "Rerun";
-                       a.href = QUnit.url({ testNumber: this.testNumber });
-
-                       li = document.createElement( "li" );
-                       li.appendChild( b );
-                       li.appendChild( a );
-                       li.className = "running";
-                       li.id = this.id = "qunit-test-output" + testId++;
-
-                       tests.appendChild( li );
-               }
-       },
-       setup: function() {
-               if ( this.module !== config.previousModule ) {
-                       if ( config.previousModule ) {
-                               runLoggingCallbacks( "moduleDone", QUnit, {
-                                       name: config.previousModule,
-                                       failed: config.moduleStats.bad,
-                                       passed: config.moduleStats.all - config.moduleStats.bad,
-                                       total: config.moduleStats.all
-                               });
-                       }
-                       config.previousModule = this.module;
-                       config.moduleStats = { all: 0, bad: 0 };
-                       runLoggingCallbacks( "moduleStart", QUnit, {
-                               name: this.module
-                       });
-               } else if ( config.autorun ) {
-                       runLoggingCallbacks( "moduleStart", QUnit, {
-                               name: this.module
-                       });
-               }
-
-               config.current = this;
-
-               this.testEnvironment = extend({
-                       setup: function() {},
-                       teardown: function() {}
-               }, this.moduleTestEnvironment );
-
-               runLoggingCallbacks( "testStart", QUnit, {
-                       name: this.testName,
-                       module: this.module
-               });
-
-               // allow utility functions to access the current test environment
-               // TODO why??
-               QUnit.current_testEnvironment = this.testEnvironment;
-
-               if ( !config.pollution ) {
-                       saveGlobal();
-               }
-               if ( config.notrycatch ) {
-                       this.testEnvironment.setup.call( this.testEnvironment );
-                       return;
-               }
-               try {
-                       this.testEnvironment.setup.call( this.testEnvironment );
-               } catch( e ) {
-                       QUnit.pushFailure( "Setup failed on " + this.testName + ": " + e.message, extractStacktrace( e, 1 ) );
-               }
-       },
-       run: function() {
-               config.current = this;
-
-               var running = id( "qunit-testresult" );
-
-               if ( running ) {
-                       running.innerHTML = "Running: <br/>" + this.name;
-               }
-
-               if ( this.async ) {
-                       QUnit.stop();
-               }
-
-               if ( config.notrycatch ) {
-                       this.callback.call( this.testEnvironment, QUnit.assert );
-                       return;
-               }
-
-               try {
-                       this.callback.call( this.testEnvironment, QUnit.assert );
-               } catch( e ) {
-                       QUnit.pushFailure( "Died on test #" + (this.assertions.length + 1) + " " + this.stack + ": " + e.message, extractStacktrace( e, 0 ) );
-                       // else next test will carry the responsibility
-                       saveGlobal();
-
-                       // Restart the tests if they're blocking
-                       if ( config.blocking ) {
-                               QUnit.start();
-                       }
-               }
-       },
-       teardown: function() {
-               config.current = this;
-               if ( config.notrycatch ) {
-                       this.testEnvironment.teardown.call( this.testEnvironment );
-                       return;
-               } else {
-                       try {
-                               this.testEnvironment.teardown.call( this.testEnvironment );
-                       } catch( e ) {
-                               QUnit.pushFailure( "Teardown failed on " + this.testName + ": " + e.message, extractStacktrace( e, 1 ) );
-                       }
-               }
-               checkPollution();
-       },
-       finish: function() {
-               config.current = this;
-               if ( config.requireExpects && this.expected == null ) {
-                       QUnit.pushFailure( "Expected number of assertions to be defined, but expect() was not called.", this.stack );
-               } else if ( this.expected != null && this.expected != this.assertions.length ) {
-                       QUnit.pushFailure( "Expected " + this.expected + " assertions, but " + this.assertions.length + " were run", this.stack );
-               } else if ( this.expected == null && !this.assertions.length ) {
-                       QUnit.pushFailure( "Expected at least one assertion, but none were run - call expect(0) to accept zero assertions.", this.stack );
-               }
-
-               var assertion, a, b, i, li, ol,
-                       test = this,
-                       good = 0,
-                       bad = 0,
-                       tests = id( "qunit-tests" );
-
-               config.stats.all += this.assertions.length;
-               config.moduleStats.all += this.assertions.length;
-
-               if ( tests ) {
-                       ol = document.createElement( "ol" );
-
-                       for ( i = 0; i < this.assertions.length; i++ ) {
-                               assertion = this.assertions[i];
-
-                               li = document.createElement( "li" );
-                               li.className = assertion.result ? "pass" : "fail";
-                               li.innerHTML = assertion.message || ( assertion.result ? "okay" : "failed" );
-                               ol.appendChild( li );
-
-                               if ( assertion.result ) {
-                                       good++;
-                               } else {
-                                       bad++;
-                                       config.stats.bad++;
-                                       config.moduleStats.bad++;
-                               }
-                       }
-
-                       // store result when possible
-                       if ( QUnit.config.reorder && defined.sessionStorage ) {
-                               if ( bad ) {
-                                       sessionStorage.setItem( "qunit-test-" + this.module + "-" + this.testName, bad );
-                               } else {
-                                       sessionStorage.removeItem( "qunit-test-" + this.module + "-" + this.testName );
-                               }
-                       }
-
-                       if ( bad === 0 ) {
-                               ol.style.display = "none";
-                       }
-
-                       // `b` initialized at top of scope
-                       b = document.createElement( "strong" );
-                       b.innerHTML = this.name + " <b class='counts'>(<b class='failed'>" + bad + "</b>, <b class='passed'>" + good + "</b>, " + this.assertions.length + ")</b>";
-
-                       addEvent(b, "click", function() {
-                               var next = b.nextSibling.nextSibling,
-                                       display = next.style.display;
-                               next.style.display = display === "none" ? "block" : "none";
-                       });
-
-                       addEvent(b, "dblclick", function( e ) {
-                               var target = e && e.target ? e.target : window.event.srcElement;
-                               if ( target.nodeName.toLowerCase() == "span" || target.nodeName.toLowerCase() == "b" ) {
-                                       target = target.parentNode;
-                               }
-                               if ( window.location && target.nodeName.toLowerCase() === "strong" ) {
-                                       window.location = QUnit.url({ testNumber: test.testNumber });
-                               }
-                       });
-
-                       // `li` initialized at top of scope
-                       li = id( this.id );
-                       li.className = bad ? "fail" : "pass";
-                       li.removeChild( li.firstChild );
-                       a = li.firstChild;
-                       li.appendChild( b );
-                       li.appendChild ( a );
-                       li.appendChild( ol );
-
-               } else {
-                       for ( i = 0; i < this.assertions.length; i++ ) {
-                               if ( !this.assertions[i].result ) {
-                                       bad++;
-                                       config.stats.bad++;
-                                       config.moduleStats.bad++;
-                               }
-                       }
-               }
-
-               runLoggingCallbacks( "testDone", QUnit, {
-                       name: this.testName,
-                       module: this.module,
-                       failed: bad,
-                       passed: this.assertions.length - bad,
-                       total: this.assertions.length
-               });
-
-               QUnit.reset();
-
-               config.current = undefined;
-       },
-
-       queue: function() {
-               var bad,
-                       test = this;
-
-               synchronize(function() {
-                       test.init();
-               });
-               function run() {
-                       // each of these can by async
-                       synchronize(function() {
-                               test.setup();
-                       });
-                       synchronize(function() {
-                               test.run();
-                       });
-                       synchronize(function() {
-                               test.teardown();
-                       });
-                       synchronize(function() {
-                               test.finish();
-                       });
-               }
-
-               // `bad` initialized at top of scope
-               // defer when previous test run passed, if storage is available
-               bad = QUnit.config.reorder && defined.sessionStorage &&
-                                               +sessionStorage.getItem( "qunit-test-" + this.module + "-" + this.testName );
-
-               if ( bad ) {
-                       run();
-               } else {
-                       synchronize( run, true );
-               }
-       }
-};
-
-// Root QUnit object.
-// `QUnit` initialized at top of scope
-QUnit = {
-
-       // call on start of module test to prepend name to all tests
-       module: function( name, testEnvironment ) {
-               config.currentModule = name;
-               config.currentModuleTestEnviroment = testEnvironment;
-       },
-
-       asyncTest: function( testName, expected, callback ) {
-               if ( arguments.length === 2 ) {
-                       callback = expected;
-                       expected = null;
-               }
-
-               QUnit.test( testName, expected, callback, true );
-       },
-
-       test: function( testName, expected, callback, async ) {
-               var test,
-                       name = "<span class='test-name'>" + escapeInnerText( testName ) + "</span>";
-
-               if ( arguments.length === 2 ) {
-                       callback = expected;
-                       expected = null;
-               }
-
-               if ( config.currentModule ) {
-                       name = "<span class='module-name'>" + config.currentModule + "</span>: " + name;
-               }
-
-               test = new Test({
-                       name: name,
-                       testName: testName,
-                       expected: expected,
-                       async: async,
-                       callback: callback,
-                       module: config.currentModule,
-                       moduleTestEnvironment: config.currentModuleTestEnviroment,
-                       stack: sourceFromStacktrace( 2 )
-               });
-
-               if ( !validTest( test ) ) {
-                       return;
-               }
-
-               test.queue();
-       },
-
-       // Specify the number of expected assertions to gurantee that failed test (no assertions are run at all) don't slip through.
-       expect: function( asserts ) {
-               config.current.expected = asserts;
-       },
-
-       start: function( count ) {
-               config.semaphore -= count || 1;
-               // don't start until equal number of stop-calls
-               if ( config.semaphore > 0 ) {
-                       return;
-               }
-               // ignore if start is called more often then stop
-               if ( config.semaphore < 0 ) {
-                       config.semaphore = 0;
-               }
-               // A slight delay, to avoid any current callbacks
-               if ( defined.setTimeout ) {
-                       window.setTimeout(function() {
-                               if ( config.semaphore > 0 ) {
-                                       return;
-                               }
-                               if ( config.timeout ) {
-                                       clearTimeout( config.timeout );
-                               }
-
-                               config.blocking = false;
-                               process( true );
-                       }, 13);
-               } else {
-                       config.blocking = false;
-                       process( true );
-               }
-       },
-
-       stop: function( count ) {
-               config.semaphore += count || 1;
-               config.blocking = true;
-
-               if ( config.testTimeout && defined.setTimeout ) {
-                       clearTimeout( config.timeout );
-                       config.timeout = window.setTimeout(function() {
-                               QUnit.ok( false, "Test timed out" );
-                               config.semaphore = 1;
-                               QUnit.start();
-                       }, config.testTimeout );
-               }
-       }
-};
-
-// Asssert helpers
-// All of these must call either QUnit.push() or manually do:
-// - runLoggingCallbacks( "log", .. );
-// - config.current.assertions.push({ .. });
-QUnit.assert = {
-       /**
-        * Asserts rough true-ish result.
-        * @name ok
-        * @function
-        * @example ok( "asdfasdf".length > 5, "There must be at least 5 chars" );
-        */
-       ok: function( result, msg, priority ) {
-               if ( !config.current ) {
-                       throw new Error( "ok() assertion outside test context, was " + sourceFromStacktrace(2) );
-               }
-               result = !!result;
-
-               var source,
-                       details = {
-                               result: result,
-                               message: msg,
-                               checktype : "ok"
-                       };
-
-               msg = escapeInnerText( msg || (result ? "okay" : "failed" ) );
-               msg = "<span class='test-message'>" + msg + "</span>";
-
-               if ( !result ) {
-                       source = sourceFromStacktrace( 2 );
-                       if ( source ) {
-                               details.source = source;
-                               msg += "<table><tr class='test-source'><th>Source: </th><td><pre>" + escapeInnerText( source ) + "</pre></td></tr></table>";
-                       }
-               }
-               runLoggingCallbacks( "log", QUnit, details );
-               config.current.assertions.push({
-                       result: result,
-                       message: msg,
-                       priority: priority
-               });
-       },
-
-       /**
-        * Assert that the first two arguments are equal, with an optional message.
-        * Prints out both actual and expected values.
-        * @name equal
-        * @function
-        * @example equal( format( "Received {0} bytes.", 2), "Received 2 bytes.", "format() replaces {0} with next argument" );
-        */
-       equal: function( actual, expected, message, priority ) {
-               QUnit.push( expected == actual, actual, expected, message , "equal" , priority );
-       },
-
-       /**
-        * @name notEqual
-        * @function
-        */
-       notEqual: function( actual, expected, message, priority ) {
-               QUnit.push( expected != actual, actual, expected, message , "not equal" , priority );
-       },
-
-       /**
-        * @name deepEqual
-        * @function
-        */
-       deepEqual: function( actual, expected, message, priority ) {
-               QUnit.push( QUnit.equiv(actual, expected), actual, expected, message, "deepEqual" , priority );
-       },
-
-       /**
-        * @name notDeepEqual
-        * @function
-        */
-       notDeepEqual: function( actual, expected, message, priority ) {
-               QUnit.push( !QUnit.equiv(actual, expected), actual, expected, message , "notDeepEqual" , priority );
-       },
-
-       /**
-        * @name strictEqual
-        * @function
-        */
-       strictEqual: function( actual, expected, message, priority ) {
-               QUnit.push( expected === actual, actual, expected, message , "strictEqual" , priority );
-       },
-
-       /**
-        * @name notStrictEqual
-        * @function
-        */
-       notStrictEqual: function( actual, expected, message, priority ) {
-               QUnit.push( expected !== actual, actual, expected, message , "notStrictEqual" , priority );
-       },
-
-       throws: function( block, expected, message ) {
-               var actual,
-                       ok = false;
-
-               // 'expected' is optional
-               if ( typeof expected === "string" ) {
-                       message = expected;
-                       expected = null;
-               }
-
-               config.current.ignoreGlobalErrors = true;
-               try {
-                       block.call( config.current.testEnvironment );
-               } catch (e) {
-                       actual = e;
-               }
-               config.current.ignoreGlobalErrors = false;
-
-               if ( actual ) {
-                       // we don't want to validate thrown error
-                       if ( !expected ) {
-                               ok = true;
-                       // expected is a regexp
-                       } else if ( QUnit.objectType( expected ) === "regexp" ) {
-                               ok = expected.test( actual );
-                       // expected is a constructor
-                       } else if ( actual instanceof expected ) {
-                               ok = true;
-                       // expected is a validation function which returns true is validation passed
-                       } else if ( expected.call( {}, actual ) === true ) {
-                               ok = true;
-                       }
-
-                       QUnit.push( ok, actual, null, message );
-               } else {
-                       QUnit.pushFailure( message, null, 'No exception was thrown.' );
-               }
-       }
-};
-
-/**
- * @deprecate since 1.8.0
- * Kept assertion helpers in root for backwards compatibility
- */
-extend( QUnit, QUnit.assert );
-
-/**
- * @deprecated since 1.9.0
- * Kept global "raises()" for backwards compatibility
- */
-QUnit.raises = QUnit.assert.throws;
-
-/**
- * @deprecated since 1.0.0, replaced with error pushes since 1.3.0
- * Kept to avoid TypeErrors for undefined methods.
- */
-QUnit.equals = function() {
-       QUnit.push( false, false, false, "QUnit.equals has been deprecated since 2009 (e88049a0), use QUnit.equal instead" );
-};
-QUnit.same = function() {
-       QUnit.push( false, false, false, "QUnit.same has been deprecated since 2009 (e88049a0), use QUnit.deepEqual instead" );
-};
-
-// We want access to the constructor's prototype
-(function() {
-       function F() {}
-       F.prototype = QUnit;
-       QUnit = new F();
-       // Make F QUnit's constructor so that we can add to the prototype later
-       QUnit.constructor = F;
-}());
-
-/**
- * Config object: Maintain internal state
- * Later exposed as QUnit.config
- * `config` initialized at top of scope
- */
-config = {
-       // The queue of tests to run
-       queue: [],
-
-       // block until document ready
-       blocking: true,
-
-       // when enabled, show only failing tests
-       // gets persisted through sessionStorage and can be changed in UI via checkbox
-       hidepassed: false,
-
-       // by default, run previously failed tests first
-       // very useful in combination with "Hide passed tests" checked
-       reorder: true,
-
-       // by default, modify document.title when suite is done
-       altertitle: true,
-
-       // when enabled, all tests must call expect()
-       requireExpects: false,
-
-       // add checkboxes that are persisted in the query-string
-       // when enabled, the id is set to `true` as a `QUnit.config` property
-       urlConfig: [
-               {
-                       id: "noglobals",
-                       label: "Check for Globals",
-                       tooltip: "Enabling this will test if any test introduces new properties on the `window` object. Stored as query-strings."
-               },
-               {
-                       id: "notrycatch",
-                       label: "No try-catch",
-                       tooltip: "Enabling this will run tests outside of a try-catch block. Makes debugging exceptions in IE reasonable. Stored as query-strings."
-               }
-       ],
-
-       // logging callback queues
-       begin: [],
-       done: [],
-       log: [],
-       testStart: [],
-       testDone: [],
-       moduleStart: [],
-       moduleDone: []
-};
-
-// Initialize more QUnit.config and QUnit.urlParams
-(function() {
-       var i,
-               location = window.location || { search: "", protocol: "file:" },
-               params = location.search.slice( 1 ).split( "&" ),
-               length = params.length,
-               urlParams = {},
-               current;
-
-       if ( params[ 0 ] ) {
-               for ( i = 0; i < length; i++ ) {
-                       current = params[ i ].split( "=" );
-                       current[ 0 ] = decodeURIComponent( current[ 0 ] );
-                       // allow just a key to turn on a flag, e.g., test.html?noglobals
-                       current[ 1 ] = current[ 1 ] ? decodeURIComponent( current[ 1 ] ) : true;
-                       urlParams[ current[ 0 ] ] = current[ 1 ];
-               }
-       }
-
-       QUnit.urlParams = urlParams;
-
-       // String search anywhere in moduleName+testName
-       config.filter = urlParams.filter;
-
-       // Exact match of the module name
-       config.module = urlParams.module;
-
-       config.testNumber = parseInt( urlParams.testNumber, 10 ) || null;
-
-       // Figure out if we're running the tests from a server or not
-       QUnit.isLocal = location.protocol === "file:";
-}());
-
-// Export global variables, unless an 'exports' object exists,
-// in that case we assume we're in CommonJS (dealt with on the bottom of the script)
-if ( typeof exports === "undefined" ) {
-       extend( window, QUnit );
-
-       // Expose QUnit object
-       window.QUnit = QUnit;
-}
-
-// Extend QUnit object,
-// these after set here because they should not be exposed as global functions
-extend( QUnit, {
-       config: config,
-
-       // Initialize the configuration options
-       init: function() {
-               extend( config, {
-                       stats: { all: 0, bad: 0 },
-                       moduleStats: { all: 0, bad: 0 },
-                       started: +new Date(),
-                       updateRate: 1000,
-                       blocking: false,
-                       autostart: true,
-                       autorun: false,
-                       filter: "",
-                       queue: [],
-                       semaphore: 0
-               });
-
-               var tests, banner, result,
-                       qunit = id( "qunit" );
-
-               if ( qunit ) {
-                       qunit.innerHTML =
-                               "<h1 id='qunit-header'>" + escapeInnerText( document.title ) + "</h1>" +
-                               "<h2 id='qunit-banner'></h2>" +
-                               "<div id='qunit-testrunner-toolbar'></div>" +
-                               "<h2 id='qunit-userAgent'></h2>" +
-                               "<ol id='qunit-tests'></ol>";
-               }
-
-               tests = id( "qunit-tests" );
-               banner = id( "qunit-banner" );
-               result = id( "qunit-testresult" );
-
-               if ( tests ) {
-                       tests.innerHTML = "";
-               }
-
-               if ( banner ) {
-                       banner.className = "";
-               }
-
-               if ( result ) {
-                       result.parentNode.removeChild( result );
-               }
-
-               if ( tests ) {
-                       result = document.createElement( "p" );
-                       result.id = "qunit-testresult";
-                       result.className = "result";
-                       tests.parentNode.insertBefore( result, tests );
-                       result.innerHTML = "Running...<br/>&nbsp;";
-               }
-       },
-
-       // Resets the test setup. Useful for tests that modify the DOM.
-       // If jQuery is available, uses jQuery's html(), otherwise just innerHTML.
-       reset: function() {
-               var fixture;
-
-               if ( window.jQuery ) {
-                       jQuery( "#qunit-fixture" ).html( config.fixture );
-               } else {
-                       fixture = id( "qunit-fixture" );
-                       if ( fixture ) {
-                               fixture.innerHTML = config.fixture;
-                       }
-               }
-       },
-
-       // Trigger an event on an element.
-       // @example triggerEvent( document.body, "click" );
-       triggerEvent: function( elem, type, event ) {
-               if ( document.createEvent ) {
-                       event = document.createEvent( "MouseEvents" );
-                       event.initMouseEvent(type, true, true, elem.ownerDocument.defaultView,
-                               0, 0, 0, 0, 0, false, false, false, false, 0, null);
-
-                       elem.dispatchEvent( event );
-               } else if ( elem.fireEvent ) {
-                       elem.fireEvent( "on" + type );
-               }
-       },
-
-       // Safe object type checking
-       is: function( type, obj ) {
-               return QUnit.objectType( obj ) == type;
-       },
-
-       objectType: function( obj ) {
-               if ( typeof obj === "undefined" ) {
-                               return "undefined";
-               // consider: typeof null === object
-               }
-               if ( obj === null ) {
-                               return "null";
-               }
-
-               var type = toString.call( obj ).match(/^\[object\s(.*)\]$/)[1] || "";
-
-               switch ( type ) {
-                       case "Number":
-                               if ( isNaN(obj) ) {
-                                       return "nan";
-                               }
-                               return "number";
-                       case "String":
-                       case "Boolean":
-                       case "Array":
-                       case "Date":
-                       case "RegExp":
-                       case "Function":
-                               return type.toLowerCase();
-               }
-               if ( typeof obj === "object" ) {
-                       return "object";
-               }
-               return undefined;
-       },
-
-       push: function( result, actual, expected, message, checktype, priority ) {
-               if ( !config.current ) {
-                       throw new Error( "assertion outside test context, was " + sourceFromStacktrace() );
-               }
-
-               var output, source,
-                       details = {
-                               result: result,
-                               message: message,
-                               actual: actual,
-                               expected: expected,
-                               checktype: checktype,
-                               priority: priority
-                       };
-
-               message = escapeInnerText( message ) || ( result ? "okay" : "failed" );
-               message = "<span class='test-message'>" + message + "</span>";
-               output = message;
-
-               if ( !result ) {
-                       expected = escapeInnerText( QUnit.jsDump.parse(expected) );
-                       actual = escapeInnerText( QUnit.jsDump.parse(actual) );
-                       output += "<table><tr class='test-expected'><th>Expected: </th><td><pre>" + expected + "</pre></td></tr>";
-
-                       if ( actual != expected ) {
-                               output += "<tr class='test-actual'><th>Result: </th><td><pre>" + actual + "</pre></td></tr>";
-                               output += "<tr class='test-diff'><th>Diff: </th><td><pre>" + QUnit.diff( expected, actual ) + "</pre></td></tr>";
-                       }
-
-                       source = sourceFromStacktrace();
-
-                       if ( source ) {
-                               details.source = source;
-                               output += "<tr class='test-source'><th>Source: </th><td><pre>" + escapeInnerText( source ) + "</pre></td></tr>";
-                       }
-
-                       output += "</table>";
-               }
-
-               runLoggingCallbacks( "log", QUnit, details );
-
-               config.current.assertions.push({
-                       result: !!result,
-                       message: output
-               });
-       },
-
-       pushFailure: function( message, source, actual ) {
-               if ( !config.current ) {
-                       throw new Error( "pushFailure() assertion outside test context, was " + sourceFromStacktrace(2) );
-               }
-
-               var output,
-                       details = {
-                               result: false,
-                               message: message
-                       };
-
-               message = escapeInnerText( message ) || "error";
-               message = "<span class='test-message'>" + message + "</span>";
-               output = message;
-
-               output += "<table>";
-
-               if ( actual ) {
-                       output += "<tr class='test-actual'><th>Result: </th><td><pre>" + escapeInnerText( actual ) + "</pre></td></tr>";
-               }
-
-               if ( source ) {
-                       details.source = source;
-                       output += "<tr class='test-source'><th>Source: </th><td><pre>" + escapeInnerText( source ) + "</pre></td></tr>";
-               }
-
-               output += "</table>";
-
-               runLoggingCallbacks( "log", QUnit, details );
-
-               config.current.assertions.push({
-                       result: false,
-                       message: output
-               });
-       },
-
-       url: function( params ) {
-               params = extend( extend( {}, QUnit.urlParams ), params );
-               var key,
-                       querystring = "?";
-
-               for ( key in params ) {
-                       if ( !hasOwn.call( params, key ) ) {
-                               continue;
-                       }
-                       querystring += encodeURIComponent( key ) + "=" +
-                               encodeURIComponent( params[ key ] ) + "&";
-               }
-               return window.location.pathname + querystring.slice( 0, -1 );
-       },
-
-       extend: extend,
-       id: id,
-       addEvent: addEvent
-       // load, equiv, jsDump, diff: Attached later
-});
-
-/**
- * @deprecated: Created for backwards compatibility with test runner that set the hook function
- * into QUnit.{hook}, instead of invoking it and passing the hook function.
- * QUnit.constructor is set to the empty F() above so that we can add to it's prototype here.
- * Doing this allows us to tell if the following methods have been overwritten on the actual
- * QUnit object.
- */
-extend( QUnit.constructor.prototype, {
-
-       // Logging callbacks; all receive a single argument with the listed properties
-       // run test/logs.html for any related changes
-       begin: registerLoggingCallback( "begin" ),
-
-       // done: { failed, passed, total, runtime }
-       done: registerLoggingCallback( "done" ),
-
-       // log: { result, actual, expected, message }
-       log: registerLoggingCallback( "log" ),
-
-       // testStart: { name }
-       testStart: registerLoggingCallback( "testStart" ),
-
-       // testDone: { name, failed, passed, total }
-       testDone: registerLoggingCallback( "testDone" ),
-
-       // moduleStart: { name }
-       moduleStart: registerLoggingCallback( "moduleStart" ),
-
-       // moduleDone: { name, failed, passed, total }
-       moduleDone: registerLoggingCallback( "moduleDone" )
-});
-
-if ( typeof document === "undefined" || document.readyState === "complete" ) {
-       config.autorun = true;
-}
-
-QUnit.load = function() {
-       runLoggingCallbacks( "begin", QUnit, {} );
-
-       // Initialize the config, saving the execution queue
-       var banner, filter, i, label, len, main, ol, toolbar, userAgent, val, urlConfigCheckboxes,
-               urlConfigHtml = "",
-               oldconfig = extend( {}, config );
-
-       QUnit.init();
-       extend(config, oldconfig);
-
-       config.blocking = false;
-
-       len = config.urlConfig.length;
-
-       for ( i = 0; i < len; i++ ) {
-               val = config.urlConfig[i];
-               if ( typeof val === "string" ) {
-                       val = {
-                               id: val,
-                               label: val,
-                               tooltip: "[no tooltip available]"
-                       };
-               }
-               config[ val.id ] = QUnit.urlParams[ val.id ];
-               urlConfigHtml += "<input id='qunit-urlconfig-" + val.id + "' name='" + val.id + "' type='checkbox'" + ( config[ val.id ] ? " checked='checked'" : "" ) + " title='" + val.tooltip + "'><label for='qunit-urlconfig-" + val.id + "' title='" + val.tooltip + "'>" + val.label + "</label>";
-       }
-
-       // `userAgent` initialized at top of scope
-       userAgent = id( "qunit-userAgent" );
-       if ( userAgent ) {
-               userAgent.innerHTML = navigator.userAgent;
-       }
-
-       // `banner` initialized at top of scope
-       banner = id( "qunit-header" );
-       if ( banner ) {
-               banner.innerHTML = "<a href='" + QUnit.url({ filter: undefined, module: undefined, testNumber: undefined }) + "'>" + banner.innerHTML + "</a> ";
-       }
-
-       // `toolbar` initialized at top of scope
-       toolbar = id( "qunit-testrunner-toolbar" );
-       if ( toolbar ) {
-               // `filter` initialized at top of scope
-               filter = document.createElement( "input" );
-               filter.type = "checkbox";
-               filter.id = "qunit-filter-pass";
-
-               addEvent( filter, "click", function() {
-                       var tmp,
-                               ol = document.getElementById( "qunit-tests" );
-
-                       if ( filter.checked ) {
-                               ol.className = ol.className + " hidepass";
-                       } else {
-                               tmp = " " + ol.className.replace( /[\n\t\r]/g, " " ) + " ";
-                               ol.className = tmp.replace( / hidepass /, " " );
-                       }
-                       if ( defined.sessionStorage ) {
-                               if (filter.checked) {
-                                       sessionStorage.setItem( "qunit-filter-passed-tests", "true" );
-                               } else {
-                                       sessionStorage.removeItem( "qunit-filter-passed-tests" );
-                               }
-                       }
-               });
-
-               if ( config.hidepassed || defined.sessionStorage && sessionStorage.getItem( "qunit-filter-passed-tests" ) ) {
-                       filter.checked = true;
-                       // `ol` initialized at top of scope
-                       ol = document.getElementById( "qunit-tests" );
-                       ol.className = ol.className + " hidepass";
-               }
-               toolbar.appendChild( filter );
-
-               // `label` initialized at top of scope
-               label = document.createElement( "label" );
-               label.setAttribute( "for", "qunit-filter-pass" );
-               label.setAttribute( "title", "Only show tests and assertons that fail. Stored in sessionStorage." );
-               label.innerHTML = "Hide passed tests";
-               toolbar.appendChild( label );
-
-               urlConfigCheckboxes = document.createElement( 'span' );
-               urlConfigCheckboxes.innerHTML = urlConfigHtml;
-               addEvent( urlConfigCheckboxes, "change", function( event ) {
-                       var params = {};
-                       params[ event.target.name ] = event.target.checked ? true : undefined;
-                       window.location = QUnit.url( params );
-               });
-               toolbar.appendChild( urlConfigCheckboxes );
-       }
-
-       // `main` initialized at top of scope
-       main = id( "qunit-fixture" );
-       if ( main ) {
-               config.fixture = main.innerHTML;
-       }
-
-       if ( config.autostart ) {
-               QUnit.start();
-       }
-};
-
-addEvent( window, "load", QUnit.load );
-
-// `onErrorFnPrev` initialized at top of scope
-// Preserve other handlers
-onErrorFnPrev = window.onerror;
-
-// Cover uncaught exceptions
-// Returning true will surpress the default browser handler,
-// returning false will let it run.
-window.onerror = function ( error, filePath, linerNr ) {
-       var ret = false;
-       if ( onErrorFnPrev ) {
-               ret = onErrorFnPrev( error, filePath, linerNr );
-       }
-
-       // Treat return value as window.onerror itself does,
-       // Only do our handling if not surpressed.
-       if ( ret !== true ) {
-               if ( QUnit.config.current ) {
-                       if ( QUnit.config.current.ignoreGlobalErrors ) {
-                               return true;
-                       }
-                       QUnit.pushFailure( error, filePath + ":" + linerNr );
-               } else {
-                       QUnit.test( "global failure", function() {
-                               QUnit.pushFailure( error, filePath + ":" + linerNr );
-                       });
-               }
-               return false;
-       }
-
-       return ret;
-};
-
-function done() {
-       config.autorun = true;
-
-       // Log the last module results
-       if ( config.currentModule ) {
-               runLoggingCallbacks( "moduleDone", QUnit, {
-                       name: config.currentModule,
-                       failed: config.moduleStats.bad,
-                       passed: config.moduleStats.all - config.moduleStats.bad,
-                       total: config.moduleStats.all
-               });
-       }
-
-       var i, key,
-               banner = id( "qunit-banner" ),
-               tests = id( "qunit-tests" ),
-               runtime = +new Date() - config.started,
-               passed = config.stats.all - config.stats.bad,
-               html = [
-                       "Tests completed in ",
-                       runtime,
-                       " milliseconds.<br/>",
-                       "<span class='passed'>",
-                       passed,
-                       "</span> tests of <span class='total'>",
-                       config.stats.all,
-                       "</span> passed, <span class='failed'>",
-                       config.stats.bad,
-                       "</span> failed."
-               ].join( "" );
-
-       if ( banner ) {
-               banner.className = ( config.stats.bad ? "qunit-fail" : "qunit-pass" );
-       }
-
-       if ( tests ) {
-               id( "qunit-testresult" ).innerHTML = html;
-       }
-
-       if ( config.altertitle && typeof document !== "undefined" && document.title ) {
-               // show ✖ for good, ✔ for bad suite result in title
-               // use escape sequences in case file gets loaded with non-utf-8-charset
-               document.title = [
-                       ( config.stats.bad ? "\u2716" : "\u2714" ),
-                       document.title.replace( /^[\u2714\u2716] /i, "" )
-               ].join( " " );
-       }
-
-       // clear own sessionStorage items if all tests passed
-       if ( config.reorder && defined.sessionStorage && config.stats.bad === 0 ) {
-               // `key` & `i` initialized at top of scope
-               for ( i = 0; i < sessionStorage.length; i++ ) {
-                       key = sessionStorage.key( i++ );
-                       if ( key.indexOf( "qunit-test-" ) === 0 ) {
-                               sessionStorage.removeItem( key );
-                       }
-               }
-       }
-
-       runLoggingCallbacks( "done", QUnit, {
-               failed: config.stats.bad,
-               passed: passed,
-               total: config.stats.all,
-               runtime: runtime
-       });
-}
-
-/** @return Boolean: true if this test should be ran */
-function validTest( test ) {
-       var include,
-               filter = config.filter && config.filter.toLowerCase(),
-               module = config.module && config.module.toLowerCase(),
-               fullName = (test.module + ": " + test.testName).toLowerCase();
-
-       if ( config.testNumber ) {
-               return test.testNumber === config.testNumber;
-       }
-
-       if ( module && ( !test.module || test.module.toLowerCase() !== module ) ) {
-               return false;
-       }
-
-       if ( !filter ) {
-               return true;
-       }
-
-       include = filter.charAt( 0 ) !== "!";
-       if ( !include ) {
-               filter = filter.slice( 1 );
-       }
-
-       // If the filter matches, we need to honour include
-       if ( fullName.indexOf( filter ) !== -1 ) {
-               return include;
-       }
-
-       // Otherwise, do the opposite
-       return !include;
-}
-
-// so far supports only Firefox, Chrome and Opera (buggy), Safari (for real exceptions)
-// Later Safari and IE10 are supposed to support error.stack as well
-// See also https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/Stack
-function extractStacktrace( e, offset ) {
-       offset = offset === undefined ? 3 : offset;
-
-       var stack, include, i, regex;
-
-       if ( e.stacktrace ) {
-               // Opera
-               return e.stacktrace.split( "\n" )[ offset + 3 ];
-       } else if ( e.stack ) {
-               // Firefox, Chrome
-               stack = e.stack.split( "\n" );
-               if (/^error$/i.test( stack[0] ) ) {
-                       stack.shift();
-               }
-               if ( fileName ) {
-                       include = [];
-                       for ( i = offset; i < stack.length; i++ ) {
-                               if ( stack[ i ].indexOf( fileName ) != -1 ) {
-                                       break;
-                               }
-                               include.push( stack[ i ] );
-                       }
-                       if ( include.length ) {
-                               return include.join( "\n" );
-                       }
-               }
-               return stack[ offset ];
-       } else if ( e.sourceURL ) {
-               // Safari, PhantomJS
-               // hopefully one day Safari provides actual stacktraces
-               // exclude useless self-reference for generated Error objects
-               if ( /qunit.js$/.test( e.sourceURL ) ) {
-                       return;
-               }
-               // for actual exceptions, this is useful
-               return e.sourceURL + ":" + e.line;
-       }
-}
-function sourceFromStacktrace( offset ) {
-       try {
-               throw new Error();
-       } catch ( e ) {
-               return extractStacktrace( e, offset );
-       }
-}
-
-function escapeInnerText( s ) {
-       if ( !s ) {
-               return "";
-       }
-       s = s + "";
-       return s.replace( /[\&<>]/g, function( s ) {
-               switch( s ) {
-                       case "&": return "&amp;";
-                       case "<": return "&lt;";
-                       case ">": return "&gt;";
-                       default: return s;
-               }
-       });
-}
-
-function synchronize( callback, last ) {
-       config.queue.push( callback );
-
-       if ( config.autorun && !config.blocking ) {
-               process( last );
-       }
-}
-
-function process( last ) {
-       function next() {
-               process( last );
-       }
-       var start = new Date().getTime();
-       config.depth = config.depth ? config.depth + 1 : 1;
-
-       while ( config.queue.length && !config.blocking ) {
-               if ( !defined.setTimeout || config.updateRate <= 0 || ( ( new Date().getTime() - start ) < config.updateRate ) ) {
-                       config.queue.shift()();
-               } else {
-                       window.setTimeout( next, 13 );
-                       break;
-               }
-       }
-       config.depth--;
-       if ( last && !config.blocking && !config.queue.length && config.depth === 0 ) {
-               done();
-       }
-}
-
-function saveGlobal() {
-       config.pollution = [];
-
-       if ( config.noglobals ) {
-               for ( var key in window ) {
-                       // in Opera sometimes DOM element ids show up here, ignore them
-                       if ( !hasOwn.call( window, key ) || /^qunit-test-output/.test( key ) ) {
-                               continue;
-                       }
-                       config.pollution.push( key );
-               }
-       }
-}
-
-function checkPollution( name ) {
-       var newGlobals,
-               deletedGlobals,
-               old = config.pollution;
-
-       saveGlobal();
-
-       newGlobals = diff( config.pollution, old );
-       if ( newGlobals.length > 0 ) {
-               QUnit.pushFailure( "Introduced global variable(s): " + newGlobals.join(", ") );
-       }
-
-       deletedGlobals = diff( old, config.pollution );
-       if ( deletedGlobals.length > 0 ) {
-               QUnit.pushFailure( "Deleted global variable(s): " + deletedGlobals.join(", ") );
-       }
-}
-
-// returns a new Array with the elements that are in a but not in b
-function diff( a, b ) {
-       var i, j,
-               result = a.slice();
-
-       for ( i = 0; i < result.length; i++ ) {
-               for ( j = 0; j < b.length; j++ ) {
-                       if ( result[i] === b[j] ) {
-                               result.splice( i, 1 );
-                               i--;
-                               break;
-                       }
-               }
-       }
-       return result;
-}
-
-function extend( a, b ) {
-       for ( var prop in b ) {
-               if ( b[ prop ] === undefined ) {
-                       delete a[ prop ];
-
-               // Avoid "Member not found" error in IE8 caused by setting window.constructor
-               } else if ( prop !== "constructor" || a !== window ) {
-                       a[ prop ] = b[ prop ];
-               }
-       }
-
-       return a;
-}
-
-function addEvent( elem, type, fn ) {
-       if ( elem.addEventListener ) {
-               elem.addEventListener( type, fn, false );
-       } else if ( elem.attachEvent ) {
-               elem.attachEvent( "on" + type, fn );
-       } else {
-               fn();
-       }
-}
-
-function id( name ) {
-       return !!( typeof document !== "undefined" && document && document.getElementById ) &&
-               document.getElementById( name );
-}
-
-function registerLoggingCallback( key ) {
-       return function( callback ) {
-               config[key].push( callback );
-       };
-}
-
-// Supports deprecated method of completely overwriting logging callbacks
-function runLoggingCallbacks( key, scope, args ) {
-       var i, callbacks;
-       if ( QUnit.hasOwnProperty( key ) ) {
-               QUnit[ key ].call(scope, args );
-       } else {
-               callbacks = config[ key ];
-               for ( i = 0; i < callbacks.length; i++ ) {
-                       callbacks[ i ].call( scope, args );
-               }
-       }
-}
-
-// Test for equality any JavaScript type.
-// Author: Philippe Rathé <prathe@gmail.com>
-QUnit.equiv = (function() {
-
-       // Call the o related callback with the given arguments.
-       function bindCallbacks( o, callbacks, args ) {
-               var prop = QUnit.objectType( o );
-               if ( prop ) {
-                       if ( QUnit.objectType( callbacks[ prop ] ) === "function" ) {
-                               return callbacks[ prop ].apply( callbacks, args );
-                       } else {
-                               return callbacks[ prop ]; // or undefined
-                       }
-               }
-       }
-
-       // the real equiv function
-       var innerEquiv,
-               // stack to decide between skip/abort functions
-               callers = [],
-               // stack to avoiding loops from circular referencing
-               parents = [],
-
-               getProto = Object.getPrototypeOf || function ( obj ) {
-                       return obj.__proto__;
-               },
-               callbacks = (function () {
-
-                       // for string, boolean, number and null
-                       function useStrictEquality( b, a ) {
-                               if ( b instanceof a.constructor || a instanceof b.constructor ) {
-                                       // to catch short annotaion VS 'new' annotation of a
-                                       // declaration
-                                       // e.g. var i = 1;
-                                       // var j = new Number(1);
-                                       return a == b;
-                               } else {
-                                       return a === b;
-                               }
-                       }
-
-                       return {
-                               "string": useStrictEquality,
-                               "boolean": useStrictEquality,
-                               "number": useStrictEquality,
-                               "null": useStrictEquality,
-                               "undefined": useStrictEquality,
-
-                               "nan": function( b ) {
-                                       return isNaN( b );
-                               },
-
-                               "date": function( b, a ) {
-                                       return QUnit.objectType( b ) === "date" && a.valueOf() === b.valueOf();
-                               },
-
-                               "regexp": function( b, a ) {
-                                       return QUnit.objectType( b ) === "regexp" &&
-                                               // the regex itself
-                                               a.source === b.source &&
-                                               // and its modifers
-                                               a.global === b.global &&
-                                               // (gmi) ...
-                                               a.ignoreCase === b.ignoreCase &&
-                                               a.multiline === b.multiline;
-                               },
-
-                               // - skip when the property is a method of an instance (OOP)
-                               // - abort otherwise,
-                               // initial === would have catch identical references anyway
-                               "function": function() {
-                                       var caller = callers[callers.length - 1];
-                                       return caller !== Object && typeof caller !== "undefined";
-                               },
-
-                               "array": function( b, a ) {
-                                       var i, j, len, loop;
-
-                                       // b could be an object literal here
-                                       if ( QUnit.objectType( b ) !== "array" ) {
-                                               return false;
-                                       }
-
-                                       len = a.length;
-                                       if ( len !== b.length ) {
-                                               // safe and faster
-                                               return false;
-                                       }
-
-                                       // track reference to avoid circular references
-                                       parents.push( a );
-                                       for ( i = 0; i < len; i++ ) {
-                                               loop = false;
-                                               for ( j = 0; j < parents.length; j++ ) {
-                                                       if ( parents[j] === a[i] ) {
-                                                               loop = true;// dont rewalk array
-                                                       }
-                                               }
-                                               if ( !loop && !innerEquiv(a[i], b[i]) ) {
-                                                       parents.pop();
-                                                       return false;
-                                               }
-                                       }
-                                       parents.pop();
-                                       return true;
-                               },
-
-                               "object": function( b, a ) {
-                                       var i, j, loop,
-                                               // Default to true
-                                               eq = true,
-                                               aProperties = [],
-                                               bProperties = [];
-
-                                       // comparing constructors is more strict than using
-                                       // instanceof
-                                       if ( a.constructor !== b.constructor ) {
-                                               // Allow objects with no prototype to be equivalent to
-                                               // objects with Object as their constructor.
-                                               if ( !(( getProto(a) === null && getProto(b) === Object.prototype ) ||
-                                                       ( getProto(b) === null && getProto(a) === Object.prototype ) ) ) {
-                                                               return false;
-                                               }
-                                       }
-
-                                       // stack constructor before traversing properties
-                                       callers.push( a.constructor );
-                                       // track reference to avoid circular references
-                                       parents.push( a );
-
-                                       for ( i in a ) { // be strict: don't ensures hasOwnProperty
-                                                                       // and go deep
-                                               loop = false;
-                                               for ( j = 0; j < parents.length; j++ ) {
-                                                       if ( parents[j] === a[i] ) {
-                                                               // don't go down the same path twice
-                                                               loop = true;
-                                                       }
-                                               }
-                                               aProperties.push(i); // collect a's properties
-
-                                               if (!loop && !innerEquiv( a[i], b[i] ) ) {
-                                                       eq = false;
-                                                       break;
-                                               }
-                                       }
-
-                                       callers.pop(); // unstack, we are done
-                                       parents.pop();
-
-                                       for ( i in b ) {
-                                               bProperties.push( i ); // collect b's properties
-                                       }
-
-                                       // Ensures identical properties name
-                                       return eq && innerEquiv( aProperties.sort(), bProperties.sort() );
-                               }
-                       };
-               }());
-
-       innerEquiv = function() { // can take multiple arguments
-               var args = [].slice.apply( arguments );
-               if ( args.length < 2 ) {
-                       return true; // end transition
-               }
-
-               return (function( a, b ) {
-                       if ( a === b ) {
-                               return true; // catch the most you can
-                       } else if ( a === null || b === null || typeof a === "undefined" ||
-                                       typeof b === "undefined" ||
-                                       QUnit.objectType(a) !== QUnit.objectType(b) ) {
-                               return false; // don't lose time with error prone cases
-                       } else {
-                               return bindCallbacks(a, callbacks, [ b, a ]);
-                       }
-
-                       // apply transition with (1..n) arguments
-               }( args[0], args[1] ) && arguments.callee.apply( this, args.splice(1, args.length - 1 )) );
-       };
-
-       return innerEquiv;
-}());
-
-/**
- * jsDump Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com |
- * http://flesler.blogspot.com Licensed under BSD
- * (http://www.opensource.org/licenses/bsd-license.php) Date: 5/15/2008
- *
- * @projectDescription Advanced and extensible data dumping for Javascript.
- * @version 1.0.0
- * @author Ariel Flesler
- * @link {http://flesler.blogspot.com/2008/05/jsdump-pretty-dump-of-any-javascript.html}
- */
-QUnit.jsDump = (function() {
-       function quote( str ) {
-               return '"' + str.toString().replace( /"/g, '\\"' ) + '"';
-       }
-       function literal( o ) {
-               return o + "";
-       }
-       function join( pre, arr, post ) {
-               var s = jsDump.separator(),
-                       base = jsDump.indent(),
-                       inner = jsDump.indent(1);
-               if ( arr.join ) {
-                       arr = arr.join( "," + s + inner );
-               }
-               if ( !arr ) {
-                       return pre + post;
-               }
-               return [ pre, inner + arr, base + post ].join(s);
-       }
-       function array( arr, stack ) {
-               var i = arr.length, ret = new Array(i);
-               this.up();
-               while ( i-- ) {
-                       ret[i] = this.parse( arr[i] , undefined , stack);
-               }
-               this.down();
-               return join( "[", ret, "]" );
-       }
-
-       var reName = /^function (\w+)/,
-               jsDump = {
-                       parse: function( obj, type, stack ) { //type is used mostly internally, you can fix a (custom)type in advance
-                               stack = stack || [ ];
-                               var inStack, res,
-                                       parser = this.parsers[ type || this.typeOf(obj) ];
-
-                               type = typeof parser;
-                               inStack = inArray( obj, stack );
-
-                               if ( inStack != -1 ) {
-                                       return "recursion(" + (inStack - stack.length) + ")";
-                               }
-                               //else
-                               if ( type == "function" )  {
-                                       stack.push( obj );
-                                       res = parser.call( this, obj, stack );
-                                       stack.pop();
-                                       return res;
-                               }
-                               // else
-                               return ( type == "string" ) ? parser : this.parsers.error;
-                       },
-                       typeOf: function( obj ) {
-                               var type;
-                               if ( obj === null ) {
-                                       type = "null";
-                               } else if ( typeof obj === "undefined" ) {
-                                       type = "undefined";
-                               } else if ( QUnit.is( "regexp", obj) ) {
-                                       type = "regexp";
-                               } else if ( QUnit.is( "date", obj) ) {
-                                       type = "date";
-                               } else if ( QUnit.is( "function", obj) ) {
-                                       type = "function";
-                               } else if ( typeof obj.setInterval !== undefined && typeof obj.document !== "undefined" && typeof obj.nodeType === "undefined" ) {
-                                       type = "window";
-                               } else if ( obj.nodeType === 9 ) {
-                                       type = "document";
-                               } else if ( obj.nodeType ) {
-                                       type = "node";
-                               } else if (
-                                       // native arrays
-                                       toString.call( obj ) === "[object Array]" ||
-                                       // NodeList objects
-                                       ( typeof obj.length === "number" && typeof obj.item !== "undefined" && ( obj.length ? obj.item(0) === obj[0] : ( obj.item( 0 ) === null && typeof obj[0] === "undefined" ) ) )
-                               ) {
-                                       type = "array";
-                               } else {
-                                       type = typeof obj;
-                               }
-                               return type;
-                       },
-                       separator: function() {
-                               return this.multiline ? this.HTML ? "<br />" : "\n" : this.HTML ? "&nbsp;" : " ";
-                       },
-                       indent: function( extra ) {// extra can be a number, shortcut for increasing-calling-decreasing
-                               if ( !this.multiline ) {
-                                       return "";
-                               }
-                               var chr = this.indentChar;
-                               if ( this.HTML ) {
-                                       chr = chr.replace( /\t/g, "   " ).replace( / /g, "&nbsp;" );
-                               }
-                               return new Array( this._depth_ + (extra||0) ).join(chr);
-                       },
-                       up: function( a ) {
-                               this._depth_ += a || 1;
-                       },
-                       down: function( a ) {
-                               this._depth_ -= a || 1;
-                       },
-                       setParser: function( name, parser ) {
-                               this.parsers[name] = parser;
-                       },
-                       // The next 3 are exposed so you can use them
-                       quote: quote,
-                       literal: literal,
-                       join: join,
-                       //
-                       _depth_: 1,
-                       // This is the list of parsers, to modify them, use jsDump.setParser
-                       parsers: {
-                               window: "[Window]",
-                               document: "[Document]",
-                               error: "[ERROR]", //when no parser is found, shouldn"t happen
-                               unknown: "[Unknown]",
-                               "null": "null",
-                               "undefined": "undefined",
-                               "function": function( fn ) {
-                                       var ret = "function",
-                                               name = "name" in fn ? fn.name : (reName.exec(fn) || [])[1];//functions never have name in IE
-
-                                       if ( name ) {
-                                               ret += " " + name;
-                                       }
-                                       ret += "( ";
-
-                                       ret = [ ret, QUnit.jsDump.parse( fn, "functionArgs" ), "){" ].join( "" );
-                                       return join( ret, QUnit.jsDump.parse(fn,"functionCode" ), "}" );
-                               },
-                               array: array,
-                               nodelist: array,
-                               "arguments": array,
-                               object: function( map, stack ) {
-                                       var ret = [ ], keys, key, val, i;
-                                       QUnit.jsDump.up();
-                                       if ( Object.keys ) {
-                                               keys = Object.keys( map );
-                                       } else {
-                                               keys = [];
-                                               for ( key in map ) {
-                                                       keys.push( key );
-                                               }
-                                       }
-                                       keys.sort();
-                                       for ( i = 0; i < keys.length; i++ ) {
-                                               key = keys[ i ];
-                                               val = map[ key ];
-                                               ret.push( QUnit.jsDump.parse( key, "key" ) + ": " + QUnit.jsDump.parse( val, undefined, stack ) );
-                                       }
-                                       QUnit.jsDump.down();
-                                       return join( "{", ret, "}" );
-                               },
-                               node: function( node ) {
-                                       var a, val,
-                                               open = QUnit.jsDump.HTML ? "&lt;" : "<",
-                                               close = QUnit.jsDump.HTML ? "&gt;" : ">",
-                                               tag = node.nodeName.toLowerCase(),
-                                               ret = open + tag;
-
-                                       for ( a in QUnit.jsDump.DOMAttrs ) {
-                                               val = node[ QUnit.jsDump.DOMAttrs[a] ];
-                                               if ( val ) {
-                                                       ret += " " + a + "=" + QUnit.jsDump.parse( val, "attribute" );
-                                               }
-                                       }
-                                       return ret + close + open + "/" + tag + close;
-                               },
-                               functionArgs: function( fn ) {//function calls it internally, it's the arguments part of the function
-                                       var args,
-                                               l = fn.length;
-
-                                       if ( !l ) {
-                                               return "";
-                                       }
-
-                                       args = new Array(l);
-                                       while ( l-- ) {
-                                               args[l] = String.fromCharCode(97+l);//97 is 'a'
-                                       }
-                                       return " " + args.join( ", " ) + " ";
-                               },
-                               key: quote, //object calls it internally, the key part of an item in a map
-                               functionCode: "[code]", //function calls it internally, it's the content of the function
-                               attribute: quote, //node calls it internally, it's an html attribute value
-                               string: quote,
-                               date: quote,
-                               regexp: literal, //regex
-                               number: literal,
-                               "boolean": literal
-                       },
-                       DOMAttrs: {
-                               //attributes to dump from nodes, name=>realName
-                               id: "id",
-                               name: "name",
-                               "class": "className"
-                       },
-                       HTML: false,//if true, entities are escaped ( <, >, \t, space and \n )
-                       indentChar: "  ",//indentation unit
-                       multiline: true //if true, items in a collection, are separated by a \n, else just a space.
-               };
-
-       return jsDump;
-}());
-
-// from Sizzle.js
-function getText( elems ) {
-       var i, elem,
-               ret = "";
-
-       for ( i = 0; elems[i]; i++ ) {
-               elem = elems[i];
-
-               // Get the text from text nodes and CDATA nodes
-               if ( elem.nodeType === 3 || elem.nodeType === 4 ) {
-                       ret += elem.nodeValue;
-
-               // Traverse everything else, except comment nodes
-               } else if ( elem.nodeType !== 8 ) {
-                       ret += getText( elem.childNodes );
-               }
-       }
-
-       return ret;
-}
-
-// from jquery.js
-function inArray( elem, array ) {
-       if ( array.indexOf ) {
-               return array.indexOf( elem );
-       }
-
-       for ( var i = 0, length = array.length; i < length; i++ ) {
-               if ( array[ i ] === elem ) {
-                       return i;
-               }
-       }
-
-       return -1;
-}
-
-/*
- * Javascript Diff Algorithm
- *  By John Resig (http://ejohn.org/)
- *  Modified by Chu Alan "sprite"
- *
- * Released under the MIT license.
- *
- * More Info:
- *  http://ejohn.org/projects/javascript-diff-algorithm/
- *
- * Usage: QUnit.diff(expected, actual)
- *
- * QUnit.diff( "the quick brown fox jumped over", "the quick fox jumps over" ) == "the  quick <del>brown </del> fox <del>jumped </del><ins>jumps </ins> over"
- */
-QUnit.diff = (function() {
-       function diff( o, n ) {
-               var i,
-                       ns = {},
-                       os = {};
-
-               for ( i = 0; i < n.length; i++ ) {
-                       if ( ns[ n[i] ] == null ) {
-                               ns[ n[i] ] = {
-                                       rows: [],
-                                       o: null
-                               };
-                       }
-                       ns[ n[i] ].rows.push( i );
-               }
-
-               for ( i = 0; i < o.length; i++ ) {
-                       if ( os[ o[i] ] == null ) {
-                               os[ o[i] ] = {
-                                       rows: [],
-                                       n: null
-                               };
-                       }
-                       os[ o[i] ].rows.push( i );
-               }
-
-               for ( i in ns ) {
-                       if ( !hasOwn.call( ns, i ) ) {
-                               continue;
-                       }
-                       if ( ns[i].rows.length == 1 && typeof os[i] != "undefined" && os[i].rows.length == 1 ) {
-                               n[ ns[i].rows[0] ] = {
-                                       text: n[ ns[i].rows[0] ],
-                                       row: os[i].rows[0]
-                               };
-                               o[ os[i].rows[0] ] = {
-                                       text: o[ os[i].rows[0] ],
-                                       row: ns[i].rows[0]
-                               };
-                       }
-               }
-
-               for ( i = 0; i < n.length - 1; i++ ) {
-                       if ( n[i].text != null && n[ i + 1 ].text == null && n[i].row + 1 < o.length && o[ n[i].row + 1 ].text == null &&
-                                               n[ i + 1 ] == o[ n[i].row + 1 ] ) {
-
-                               n[ i + 1 ] = {
-                                       text: n[ i + 1 ],
-                                       row: n[i].row + 1
-                               };
-                               o[ n[i].row + 1 ] = {
-                                       text: o[ n[i].row + 1 ],
-                                       row: i + 1
-                               };
-                       }
-               }
-
-               for ( i = n.length - 1; i > 0; i-- ) {
-                       if ( n[i].text != null && n[ i - 1 ].text == null && n[i].row > 0 && o[ n[i].row - 1 ].text == null &&
-                                               n[ i - 1 ] == o[ n[i].row - 1 ]) {
-
-                               n[ i - 1 ] = {
-                                       text: n[ i - 1 ],
-                                       row: n[i].row - 1
-                               };
-                               o[ n[i].row - 1 ] = {
-                                       text: o[ n[i].row - 1 ],
-                                       row: i - 1
-                               };
-                       }
-               }
-
-               return {
-                       o: o,
-                       n: n
-               };
-       }
-
-       return function( o, n ) {
-               o = o.replace( /\s+$/, "" );
-               n = n.replace( /\s+$/, "" );
-
-               var i, pre,
-                       str = "",
-                       out = diff( o === "" ? [] : o.split(/\s+/), n === "" ? [] : n.split(/\s+/) ),
-                       oSpace = o.match(/\s+/g),
-                       nSpace = n.match(/\s+/g);
-
-               if ( oSpace == null ) {
-                       oSpace = [ " " ];
-               }
-               else {
-                       oSpace.push( " " );
-               }
-
-               if ( nSpace == null ) {
-                       nSpace = [ " " ];
-               }
-               else {
-                       nSpace.push( " " );
-               }
-
-               if ( out.n.length === 0 ) {
-                       for ( i = 0; i < out.o.length; i++ ) {
-                               str += "<del>" + out.o[i] + oSpace[i] + "</del>";
-                       }
-               }
-               else {
-                       if ( out.n[0].text == null ) {
-                               for ( n = 0; n < out.o.length && out.o[n].text == null; n++ ) {
-                                       str += "<del>" + out.o[n] + oSpace[n] + "</del>";
-                               }
-                       }
-
-                       for ( i = 0; i < out.n.length; i++ ) {
-                               if (out.n[i].text == null) {
-                                       str += "<ins>" + out.n[i] + nSpace[i] + "</ins>";
-                               }
-                               else {
-                                       // `pre` initialized at top of scope
-                                       pre = "";
-
-                                       for ( n = out.n[i].row + 1; n < out.o.length && out.o[n].text == null; n++ ) {
-                                               pre += "<del>" + out.o[n] + oSpace[n] + "</del>";
-                                       }
-                                       str += " " + out.n[i].text + nSpace[i] + pre;
-                               }
-                       }
-               }
-
-               return str;
-       };
-}());
-
-// for CommonJS enviroments, export everything
-if ( typeof exports !== "undefined" ) {
-       extend(exports, QUnit);
-}
-
-// get at whatever the global object is, like window in browsers
-}( (function() {return this;}.call()) ));
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/autodivider/autodivider-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/autodivider/autodivider-tests.js
deleted file mode 100755 (executable)
index 11b8d50..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * Unit Test : autodivider
- *
- *
- */
-/*jslint browser: true*/
-/*global $,  jQuery,  test,  equal,  ok*/
-
-$ ( document ).ready ( function ( ) {
-       module ("Autodivider") ;
-
-       var unit_listdividers_test = function ( widget ) {
-               var li ;
-               /*markup*/
-               equal ( widget.hasClass ("ui-listview") ,  true, "Markup check") ;
-               equal ( widget.find ( ' li.ui-li ' ).length,  24, "Markup check") ;
-               equal ( widget.find (":jqmData(role=list-divider)").length,  8, "Markup check : list dividers count") ;
-               equal ( widget.find ( ' li.ui-li-divider ' ).length,  8, "Markup check : list dividers count") ;
-
-               /*adding element which fits in last divisiov*/
-               li = "<li>Harry</li>";
-               $ ( li ).appendTo ( widget ) ;
-               $ ( widget ).listview ("refresh") ;
-               equal ( widget.find ( ' li.ui-li ' ).length,  25, "API : refresh check") ;
-
-               /*adding element which need new divisiov*/
-               li = "<li>Jack</li>";
-               $ ( li ).appendTo ( widget ) ;
-               $ ( widget ).listview ("refresh") ;
-               equal ( widget.find ( ' li.ui-li ' ).length,  27, "API : refresh check") ;
-       } ;
-
-       test ("Autodivider",  function ( ) {
-               // trigger pagecreate
-               $ ("#autodivider-unit-test").page ( ) ;
-               /* Initialize */
-               $ ( ' #autodividersample ' ).listview ( ) ;
-               unit_listdividers_test ( $ ( ' #autodividersample ' ) ,  {button : ' call ' ,  cancel : true} ) ;
-
-       } ) ;
-
-       test ("autodivider- dynamic",  function ( ) {
-
-               var createEvent = false ,
-                       listHTMML = ' <ul data-role="listview"id="autodividersample1"data-autodividers="alpha"> ' +
-                                                                                        ' <li><a href="#">Adam Kinkaid</a></li> ' +
-                                                                                        ' <li><a href="#">Alex Wickerham</a></li> ' +
-                                                                                        ' <li><a href="#">Avery Johnson</a></li> ' +
-                                                                                        ' <li><a href="#">Bob Cabot</a></li> ' +
-                                                                                        ' <li><a href="#">Caleb Booth</a></li> ' +
-                                                                                        ' <li><a href="#">Christopher Adams</a></li> ' +
-                                                                                        ' <li><a href="#">Culver James</a></li> ' +
-                                                                                        ' <li><a href="#">David Walsh</a></li> ' +
-                                                                                        ' <li><a href="#">Drake Alfred</a></li> ' +
-                                                                                        ' <li><a href="#">Elizabeth Bacon</a></li> ' +
-                                                                                        ' <li><a href="#">Emery Parker</a></li> ' +
-                                                                                        ' <li><a href="#">Enid Voldon</a></li> ' +
-                                                                                        ' <li><a href="#">Francis Wall</a></li> ' +
-                                                                                        ' <li><a href="#">Graham Smith</a></li> ' +
-                                                                                        ' <li><a href="#">Greta Peete</a></li> ' +
-                                                                                        ' <li><a href="#">Harvey Walls</a></li> ' +
-                                                                ' </ul> ' ;
-
-               // trigger pagecreate
-               $ ("#autodivider-unit-test-dynamic").page ( ) ;
-
-               /* Initialize */
-               $ ("#autodivider-unit-test-dynamic").find (":jqmData(role=contents)").append ( listHTMML ) ;
-               equal ( $ ("#autodivider-unit-test-dynamic").find ( ' li ' ).length,  16, "Markup check before autodividers created") ;
-               $ ( ' #autodividersample1 ' ).listview ( {create : function ( ) {
-                       createEvent = true ;
-               }} ) ;
-
-               $ ("#autodivider-unit-test-dynamic").find (":jqmData(role=contents)").trigger ( ' create ' ) ;
-               $ ( ' #autodividersample1 ' ).listview ( ) ;
-
-               equal ( createEvent,  true, "Create Event") ;
-               equal ( $ ("#autodivider-unit-test-dynamic").find ( ' li.ui-li ' ).length,  24, "Markup check after autodividers created") ;
-               unit_listdividers_test ( $ ( ' #autodividersample1 ' ) ) ;
-
-       } ) ;
-
-} ) ;
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/autodivider/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/autodivider/index.html
deleted file mode 100755 (executable)
index 9130da0..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-<!DOCTYPE html>
-<html>
-       <head>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-                       data-framework-theme="tizen-white"
-                       data-framework-viewport-scale=false>
-               </script>
-
-               <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-               <script src="../../../libs/js/qunit/qunit.js"></script>
-               <script src="autodivider-tests.js"></script>
-               <title>Autodividers</title>
-       </head>
-
-       <body>
-               <h1 id="qunit-header">Autodividers</h1>
-               <h2 id="qunit-banner"></h2>
-               <div id="qunit-testrunner-toolbar"></div>
-               <h2 id="qunit-userAgent"></h2>
-               <ol id="qunit-tests"></ol>
-
-               <div id="qunit-fixture">
-                       <div data-role="page" id="dummy-page">
-                               <div data-role="header" data-position="fixed">
-                                       <h1>Dummy</h1>
-                               </div>
-                               <div data-role="contents">
-                               </div>
-                       </div>
-
-                       <div data-role="page" id="autodivider-unit-test" data-add-back-btn="true">
-                               <div data-role="header" data-position="fixed">
-                                       <h1>Autodividers</h1>
-                                       <input type="search" data-cancel-btn='true' name="search" data-icon="call" id="searchInput" value=""/>
-                               </div>
-                               <div data-role="content" id="autodivider-content">
-                                                               <ul data-role="listview" id='autodividersample' data-autodividers="alpha">
-                                                       
-                                                               <li><a href="#">Adam Kinkaid</a></li>
-                                                               <li><a href="#">Alex Wickerham</a></li>
-                                                               <li><a href="#">Avery Johnson</a></li>
-                                                               
-                                                               <li><a href="#">Bob Cabot</a></li>
-                                                               
-                                                               <li><a href="#">Caleb Booth</a></li>
-                                                               <li><a href="#">Christopher Adams</a></li>
-                                                               <li><a href="#">Culver James</a></li>
-                                                               
-                                                               <li><a href="#">David Walsh</a></li>
-                                                               <li><a href="#">Drake Alfred</a></li>
-                                                               
-                                                               <li><a href="#">Elizabeth Bacon</a></li>
-                                                               <li><a href="#">Emery Parker</a></li>
-                                                               <li><a href="#">Enid Voldon</a></li>
-                                                       
-                                                               <li><a href="#">Francis Wall</a></li>
-                                                               
-                                                               <li><a href="#">Graham Smith</a></li>
-                                                               <li><a href="#">Greta Peete</a></li>
-                                                               
-                                                               <li><a href="#">Harvey Walls</a></li>
-                                                       </ul>
-                               </div>
-                       </div>
-               </div>
-               <div data-role="page" id="autodivider-unit-test-dynamic">
-                               <div data-role="header" data-position="fixed">
-                                       <h1>Dummy</h1>
-                               </div>
-                               <div data-role="contents">
-                               </div>
-                       </div>
-       </body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/button/button-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/button/button-tests.js
deleted file mode 100644 (file)
index 9f4c02e..0000000
+++ /dev/null
@@ -1,228 +0,0 @@
-/*
- * Unit Test: Button
- *
- * Hyunjung Kim <hjnim.kim@samsung.com>
- *
- */
-/*jslint browser: true*/
-/*global $, jQuery, test, equal, ok*/
-$("#checkboxpage").live ("pageinit", function ( event ) {
-
-       module ("button") ;
-
-       var unit_button = function ( widget, type, text ) {
-               var buttonClassPrefix = "ui-btn",
-                       buttonText = type,
-                       icon,
-                       position,
-                       buttonStyle,
-                       hasClass;
-
-               ok ( widget.hasClass ( buttonClassPrefix ) , "Create - Button") ;
-
-               if ( widget.jqmData ("inline") ) {
-                       ok ( widget.hasClass ( buttonClassPrefix + "-inline") , "Style - Inline") ;
-               } else {
-                       ok ( !widget.hasClass ( buttonClassPrefix + "-inline") , "Style - Non Inline") ;
-               }
-
-               if ( !widget.children ( ).first ( ).hasClass ( buttonClassPrefix + "-hastxt") ) {
-                       buttonText = "";
-               }
-
-               // Text Trim, CausejQueryMobile ( JQM ) 1.1 forced to add -"\u00a0"in buttonIcon ( ButtonMarkup )
-               // JQM 1.1 buttonMarkup code :
-               // - if ( buttonIcon ) buttonIcon.appendChild ( document.createTextNode ("\u00a0") ) ;
-               if ( buttonText == "") {
-                       equal ( widget.text ( ).trim ( ) , text , "Button Text icon only") ;
-               } else {
-                       equal ( widget.text ( ).trim ( ) , buttonText , "Button Text");
-               }
-               icon = widget.jqmData ("icon") ;
-               if ( icon !== undefined ) {
-                       ok ( widget.children ( ).children ( ).hasClass ("ui-icon-" + icon ) , "Style - Button Icon") ;
-               }
-               if ( icon !== undefined && buttonText != "") {
-                       position = widget.jqmData ("iconpos") ;
-                       if ( position === undefined ) {
-                               position = "left";
-                       }
-                       ok ( widget.children ( ).children ( ).first ( ).hasClass ( buttonClassPrefix + "-text-padding-" + position ) , "Style - Button Icon, Text Position") ;
-               }
-
-               buttonStyle = widget.jqmData ("style") ;
-               if ( buttonStyle !== undefined ) {
-                       switch ( buttonStyle ) {
-                       case "circle":
-                               hasClass = ".ui-btn-corner-circle, .ui-btn-icon_only";
-                               break;
-                       case "edit":
-                               hasClass = ".ui-btn-edit";
-                               break;
-                       case "nobg":
-                               hasClass = ".ui-btn-icon-nobg, .ui-btn-icon_only";
-                               break;
-                       }
-                       ok ( widget.children ( ).is ( hasClass ) ) ;
-               }
-
-               // Check APIs
-               widget.button ( ).button ("disable") ;
-               equal ( widget.attr ("disabled") , "disabled", "button disable test") ;
-
-               widget.button ( ).button ("enable") ;
-               equal ( widget.attr ("disable") , undefined, "button enable test") ;
-       },
-
-               unit_button_events = function ( ) {
-
-                       var createEvent = false,
-                               clickEvent = false,
-                               buttonClassPrefix = "ui-btn",
-                               widget,
-                               markup ;
-
-                       //remove all controls form content
-                       $('#checkboxpage').find(":jqmData(role=contents)").empty( ) ;
-                       markup = '<div data-role="button"id="button-0">Text Button Dynamic</div>';
-                       $('#checkboxpage').find(":jqmData(role=contents)").append( markup ) ;
-                       widget = $("#button-0") ;
-
-                       /*Bind Event*/
-                       widget.button( {create: function ( ) {
-                               createEvent = true ;
-                       }} ) ;
-
-                       widget.bind("click", function ( ) {
-                               clickEvent = true ;
-                       } ) ;
-
-                       $('#checkboxpage').find(":jqmData(role=contents)").trigger('create') ;
-                       widget.button ( ) ;
-
-                       /*Check Event*/
-                       $('#checkboxpage').find(":jqmData(role=contents)").trigger('create') ;
-                       ok( widget.hasClass ( buttonClassPrefix ) , "Create - Button") ;
-                       ok( createEvent , "Button Create Event") ;
-                       widget.trigger ('click') ;
-                       ok( clickEvent , "Button Click Event") ;
-               };
-
-       test ("Button", function ( ) {
-               unit_button ( $("#button-0") , "Text Button") ;
-       } ) ;
-
-       test ("Button - Inline", function ( ) {
-               unit_button ( $("#button-1") , "Text Button Inline") ;
-       } ) ;
-
-       test ("Button - Inline, Icon", function ( ) {
-               unit_button ( $("#button-2") , "Call Icon") ;
-       } ) ;
-
-       test ("Button - Inline, Call Icon, Icon Position ( Right )", function ( ) {
-               unit_button ( $("#button-3") , "Icon Text") ;
-       } ) ;
-
-       test ("Button - Inline, Only Icon ( Reveal )", function ( ) {
-               unit_button ( $("#button-4") , "Non Text Button", "reveal") ;
-       } ) ;
-
-       test ("Button - Inline, Only Icon ( Send ) , circle", function ( ) {
-               unit_button ( $("#button-5") , "Non Text Button", "send") ;
-       } ) ;
-
-       test ("Button - Inline, Only Icon ( Favorite ) , nobackground", function ( ) {
-               unit_button ( $("#button-6") , "Non Text Button", "favorite") ;
-       } ) ;
-
-       test ("Button", function ( ) {
-               var markup;
-               //remove all controls form content
-               $('#checkboxpage').find (":jqmData(role=contents)").empty ( ) ;
-
-               markup = '<div data-role = "button" id = "button-0">Text Button Dynamic</div>';
-               $('#checkboxpage').find (":jqmData(role=contents)").append ( markup ) ;
-               $('#checkboxpage').find (":jqmData(role=contents)").trigger ( 'create' ) ;
-               unit_button ( $("#button-0") , "Text Button Dynamic") ;
-       } ) ;
-
-       test ("Button - Inline", function ( ) {
-               var markup ;
-               //remove all controls form content
-               $('#checkboxpage').find (":jqmData(role=contents)").empty ( ) ;
-
-               markup = '<div data-role = "button" id = "button-1">Text Button Inline Dynamic</div>';
-               $('#checkboxpage').find (":jqmData(role=contents)").append ( markup ) ;
-               $('#checkboxpage').find (":jqmData(role=contents)").trigger ('create') ;
-               unit_button ( $("#button-1") , "Text Button Inline Dynamic") ;
-
-       } ) ;
-
-       test ("Button - Inline, Icon", function ( ) {
-               var markup;
-               //remove all controls form content
-               $('#checkboxpage').find (":jqmData(role=contents)").empty ( ) ;
-
-               markup = '<div data-role = "button" id = "button-2">Call Icon Dynamic</div>';
-               $('#checkboxpage').find (":jqmData(role=contents)").append ( markup ) ;
-               $('#checkboxpage').find (":jqmData(role=contents)").trigger ('create') ;
-               unit_button ( $("#button-2") , "Call Icon Dynamic") ;
-
-       } ) ;
-
-       test ("Button - Inline, Call Icon, Icon Position ( Right )", function ( ) {
-               var markup;
-               //remove all controls form content
-               $('#checkboxpage').find (":jqmData(role=contents)").empty ( ) ;
-
-               markup = '<div data-role = "button" id = "button-3">Icon Text Dynamic</div>';
-               $('#checkboxpage').find (":jqmData(role=contents)").append ( markup ) ;
-               $('#checkboxpage').find (":jqmData(role=contents)").trigger ('create') ;
-               unit_button ( $("#button-3") , "Icon Text Dynamic") ;
-
-       } ) ;
-
-       test ("Button - Inline, Only Icon ( Reveal )", function ( ) {
-               var markup;
-               //remove all controls form content
-               $('#checkboxpage').find (":jqmData(role=contents)").empty ( ) ;
-
-               markup = '<div data-role = "button" id = "button-4">Non Text Button Dynamic</div>';
-               $('#checkboxpage').find (":jqmData(role=contents)").append ( markup ) ;
-               $('#checkboxpage').find (":jqmData(role=contents)").trigger ('create') ;
-               unit_button ( $("#button-4") , "Non Text Button Dynamic", "reveal") ;
-
-       } ) ;
-
-       test ("Button - Inline, Only Icon ( Send ) , circle", function ( ) {
-               var markup;
-               //remove all controls form content
-               $('#checkboxpage').find (":jqmData(role=contents)").empty ( ) ;
-
-               markup = '<div data-role = "button" id = "button-5">Non Text Button Dynamic</div>';
-               $('#checkboxpage').find (":jqmData(role=contents)").append ( markup ) ;
-               $('#checkboxpage').find (":jqmData(role=contents)").trigger ('create') ;
-               unit_button ( $("#button-5") , "Non Text Button Dynamic", "send") ;
-
-       } ) ;
-
-       test ("Button - Inline, Only Icon ( Favorite ) , nobackground", function ( ) {
-               var markup;
-               //remove all controls form content
-               $('#checkboxpage').find (":jqmData(role=contents)").empty ( ) ;
-
-               markup = '<div data-role = "button" id = "button-6">Non Text Button Dynamic</div>';
-               $('#checkboxpage').find (":jqmData(role=contents)").append ( markup ) ;
-               $('#checkboxpage').find (":jqmData(role=contents)").trigger ('create') ;
-               unit_button ( $("#button-6") , "Non Text Button Dynamic", "favorite") ;
-
-       } ) ;
-
-       test ("Button", function ( ) {
-               //remove all controls form content
-               $('#checkboxpage').find (":jqmData(role=contents)").empty ( ) ;
-               unit_button_events ( ) ;
-       } ) ;
-
-} ) ;
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/button/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/button/index.html
deleted file mode 100644 (file)
index cc26ad5..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-       <script src="button-tests.js"></script>
-       <title>Button</title>
-</head>
-
-<body>
-
-<h1 id="qunit-header">Button</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-
-<div id="qunit-fixture">
-       <div data-role="page" id="checkboxpage">
-               <div data-role="contents">
-                       <div data-role="button" id="button-0">Text Button</div>
-                       <div data-role="button" data-inline="true" id="button-1">Text Button Inline</div>
-                       <div data-role="button" data-inline="true" data-icon="reveal" id="button-2">Call Icon</div>
-                       <div data-role="button" data-inline="true" data-icon="call" data-iconpos="right" id="button-3">Icon Text</div>
-                       <div data-role="button" data-inline="true" data-icon="reveal" id="button-4"></div>
-                       <div data-role="button" data-inline="true" data-icon="send" data-style="circle" id="button-5"></div>
-                       <div data-role="button" data-inline="true" data-icon="favorite" data-style="nobg" id="button-6"></div>
-               </div>
-       </div>
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/check/check-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/check/check-tests.js
deleted file mode 100644 (file)
index de49661..0000000
+++ /dev/null
@@ -1,185 +0,0 @@
-/*
- * Unit Test: Checkbox
- *
- * Hyunjung Kim <hjnim.kim@samsung.com>
- */
-/*jslint browser: true*/
-/*global $, jQuery, test, equal, ok*/
-$("#checkpage").live("pageinit", function ( event ) {
-
-       module("checkbox");
-
-       var unit_check = function ( widget, type ) {
-               var checkbox,
-                       label,
-                       checkClass,
-                       classPrefix = "ui-checkbox";
-
-               widget.checkboxradio( );
-               checkbox = widget.parent( );
-               ok( checkbox.hasClass( classPrefix ) , "Create - Checkbox");
-
-               checkClass = classPrefix + "-on";
-               if ( !widget.is(":checked") ) {
-                       checkClass = classPrefix + "-off";
-               }
-               if ( widget.hasClass("favorite") ) {
-                       ok( checkbox.hasClass("favorite"), "Style - Favorite");
-               }
-
-               // Text Trim, Cause jQueryMobile( JQM ) 1.1 forced to add -"\u00a0"in buttonIcon( ButtonMarkup )
-               // JQM 1.1 buttonMarkup code :
-               // - if ( buttonIcon ) buttonIcon.appendChild( document.createTextNode("\u00a0") );
-               label = checkbox.children( ).last( );
-               equal ( label.text( ).trim( ), type, "label, type string must be same");
-
-               label.trigger("vclick");
-               if ( !widget.is(":disabled") ) {
-                       checkClass = classPrefix + "-on";
-                       ok( label.hasClass( checkClass ) , "Click - Normal Checkbox On");
-
-                       checkClass = classPrefix + "-off";
-                       label.trigger("vclick");
-                       ok( label.hasClass( checkClass ) , "Click - Normal Checkbox Off");
-               } else {
-                       ok( label.hasClass( checkClass ) , "Click - Disable Checkbox");
-                       label.trigger("vclick");
-                       ok( label.hasClass( checkClass ) , "Click - click event doesn't have effect");
-               }
-
-               /*markup check */
-               ok( label.find('.ui-btn-hastxt'), "Markup check for text");
-               ok( label.find('.ui-btn-text') , "Markup check for text");
-               equal( label.find('.ui-btn-hastxt span.ui-btn-text').last( ).html( ), type , "Markup check for text value");
-
-
-               /*API check*/
-               widget.checkboxradio('disable') ;
-               equal( widget.is(":disabled") , true, "API check disable") ;
-               ok( checkbox.hasClass("ui-disabled") , "API disable - Disable Checkbox");
-
-               widget.checkboxradio('enable') ;
-               equal( widget.is(":disabled") , false, "API check enable") ;
-               equal( checkbox.hasClass("ui-disabled") , false, "API enable - Disable Checkbox");
-
-
-       },
-
-               unit_check_events = function ( widget, type ) {
-                       var createEvent = false,
-                               changeEvent = false,
-                               checkbox,
-                               label;
-
-                       widget.checkboxradio({create: function ( ) {
-                               createEvent = true ;
-                       }}  ) ;
-                       checkbox = widget.parent( );
-                       label = checkbox.children( ).last( );
-
-                       widget.bind("change", function ( ) {
-                               changeEvent = true ;
-                       } ) ;
-
-                       $('#checkpage').find(":jqmData(role=controlgroup)").trigger('create') ;
-                       ok( createEvent , "Checkbox Create Event");
-
-                       widget.trigger("click");
-                       ok( changeEvent , "Checkbox Change Event");
-               };
-
-       test("checkbox - Normal", function ( ) {
-               unit_check( $("#checkbox-1"), "Normal");
-       } );
-
-       test("checkbox - Checked, Disabled", function ( ) {
-               unit_check( $("#checkbox-2"), "Checked, Disabled");
-       } );
-
-       test("checkbox - Disabled", function ( ) {
-               unit_check( $("#checkbox-3"), "Disabled");
-       } );
-
-       test("Favorite - Favorite", function ( ) {
-               unit_check( $("#checkbox-4"), "Favorite");
-       } );
-
-       test("Favorite - Favorite Checked, Disabled", function ( ) {
-               unit_check( $("#checkbox-5"), "Favorite Checked, Disabled");
-       } );
-
-       test("Favorite - Favorite, Disabled", function ( ) {
-               unit_check( $("#checkbox-6"), "Favorite, Disabled");
-       } );
-
-       test("checkbox - Normal Dynamic", function ( ) {
-
-               var markup;
-               //remove all controls form content
-               $('#checkpage').find(":jqmData(role=controlgroup)").empty( );
-
-               markup = '<input type= "checkbox"name= "checkbox-1"id= "checkbox-1"/><label for= "checkbox-1">Normal Dynamic</label>';
-               $('#checkpage').find(":jqmData(role=controlgroup)").append( markup ) ;
-               $('#checkpage').find(":jqmData(role=controlgroup)").trigger('create') ;
-
-               unit_check( $("#checkbox-1"), "Normal Dynamic");
-       } );
-
-
-       test("checkbox - Checked, Disabled Dynamic", function ( ) {
-
-               var markup;
-               //remove all controls form content
-               $('#checkpage').find(":jqmData(role=controlgroup)").empty( );
-
-               markup = '<input type= "checkbox"name= "checkbox-2"id= "checkbox-2"checked= "checked"disabled= "true"/><label for= "checkbox-2">Checked, Disabled Dymanic</label>';
-               $('#checkpage').find(":jqmData(role=controlgroup)").append( markup ) ;
-               $('#checkpage').find(":jqmData(role=controlgroup)").trigger('create') ;
-               unit_check( $("#checkbox-2"), "Checked, Disabled Dymanic");
-       } );
-
-       test("checkbox - Disabled Dynamic", function ( ) {
-               var markup;
-               //remove all controls form content
-               $('#checkpage').find(":jqmData(role=controlgroup)").empty( );
-
-               markup = '<input type= "checkbox"name= "checkbox-3"id= "checkbox-3"disabled= "true"/><label for= "checkbox-3">Disabled Dynamic</label>';
-               $('#checkpage').find(":jqmData(role=controlgroup)").append( markup ) ;
-               $('#checkpage').find(":jqmData(role=controlgroup)").trigger('create') ;
-               unit_check( $("#checkbox-3"), "Disabled Dynamic");
-       } );
-
-       test("Favorite - Favorite Dynamic", function ( ) {
-               var markup;
-               //remove all controls form content
-               $('#checkpage').find(":jqmData(role=controlgroup)").empty( );
-
-               markup = '<input type= "checkbox"name= "checkbox-4"id= "checkbox-4"class= "favorite"/><label for= "checkbox-4">Favorite Dynamic</label>';
-               $('#checkpage').find(":jqmData(role=controlgroup)").append( markup ) ;
-               $('#checkpage').find(":jqmData(role=controlgroup)").trigger('create') ;
-               unit_check( $("#checkbox-4"), "Favorite Dynamic");
-       } );
-
-       test("Favorite - Favorite Checked, Disabled Dynamic", function ( ) {
-               var markup;
-               //remove all controls form content
-               $('#checkpage').find(":jqmData(role=controlgroup)").empty( );
-
-               markup = '<input type= "checkbox"name= "checkbox-5"id= "checkbox-5"checked= "checked"disabled= "true"class= "favorite"/><label for= "checkbox-5">Favorite Checked, Disabled Dynamic</label>';
-               $('#checkpage').find(":jqmData(role=controlgroup)").append( markup ) ;
-               $('#checkpage').find(":jqmData(role=controlgroup)").trigger('create') ;
-               unit_check( $("#checkbox-5"), "Favorite Checked, Disabled Dynamic");
-       } );
-
-       test("Favorite - Favorite, Disabled Dynamic", function ( ) {
-               var markup;
-               //remove all controls form content
-               $('#checkpage').find(":jqmData(role=controlgroup)").empty( );
-
-               markup = '<input type= "checkbox"name= "checkbox-6"id= "checkbox-6"disabled= "disabled"class= "favorite"/><label for= "checkbox-6">Favorite, Disabled Dynamic</label>';
-               $('#checkpage').find(":jqmData(role=controlgroup)").append( markup ) ;
-               $('#checkpage').find(":jqmData(role=controlgroup)").trigger('create') ;
-               unit_check( $("#checkbox-6"), "Favorite, Disabled Dynamic");
-       } );
-
-} );
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/check/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/check/index.html
deleted file mode 100644 (file)
index 68f3e5d..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-       <script src="check-tests.js"></script>
-
-       <title>Check</title>
-</head>
-
-<body>
-
-<h1 id="qunit-header">Check</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-
-<div id="qunit-fixture">
-       <div data-role="page" id="checkpage">
-               <div data-role="header" data-position="fixed">
-                       <h1>Checkbox</h1>
-               </div>
-               <div data-role="contents">
-                       <fieldset data-role="controlgroup">
-                       <input type="checkbox" name="checkbox-1" id="checkbox-1"/>
-                       <label for="checkbox-1">Normal</label>
-                       <input type="checkbox" name="checkbox-2" id="checkbox-2" checked="checked" disabled="true"/>
-                       <label for="checkbox-2">Checked, Disabled</label>
-                       <input type="checkbox" name="checkbox-3" id="checkbox-3" disabled="true"/>
-                       <label for="checkbox-3">Disabled</label>
-
-                       <input type="checkbox" name="checkbox-4" id="checkbox-4" class="favorite"/>
-                       <label for="checkbox-4">Favorite</label>
-                       <input type="checkbox" name="checkbox-5" id="checkbox-5" checked="checked" disabled="true" class="favorite"/>
-                       <label for="checkbox-5">Favorite Checked, Disabled</label>
-                       <input type="checkbox" name="checkbox-6" id="checkbox-6" disabled="disabled" class="favorite"/>
-                       <label for="checkbox-6">Favorite, Disabled</label>
-                       </fieldset>
-               </div>
-       </div>
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/collapsible/collapsible-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/collapsible/collapsible-tests.js
deleted file mode 100644 (file)
index f2e9ca0..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * collapse unit tests
- */
-
-(function ($) {
-       module( "collapse test" );
-
-       var unit_collapse = function ( widget ) {
-               var created_collapse = widget.collapsible(),
-                       obj_collapse = created_collapse.data( "collapsible" );
-
-               ok( created_collapse, "Create" );
-
-               /* Check Option */
-               equal( obj_collapse.options.expandCueText, " Expandable list, tap to open list", "Collapsed test -> expandCueText" );
-               equal( obj_collapse.options.collapseCueText, " Expandable list, tap to close list", "Collapsed test -> collapseCueText" );
-               equal( obj_collapse.options.collapsed, true, "Collapsed test -> collapsed" );
-               equal( obj_collapse.options.heading, "h1,h2,h3,h4,h5,h6,legend,li", "Collapsed test -> heading" );
-               equal( obj_collapse.options.theme, 's', "Collapsed test -> theme" );
-               equal( obj_collapse.options.contentTheme, null, "Collapsed test -> contentTheme" );
-
-               /* Check event */
-               created_collapse.trigger("collpase");
-               equal( created_collapse.hasClass("ui-collapsible-collapsed") , true, "API test -> collapse" );
-
-               created_collapse.trigger("expand");
-               equal( created_collapse.hasClass("ui-collapsible-collapsed") , false, "API test -> expand" );
-       };
-
-       test( "collapse test", function () {
-               unit_collapse( $("#collapsedContent") );
-       });
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/collapsible/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/collapsible/index.html
deleted file mode 100644 (file)
index 4699627..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-
-  <script src="collapsible-tests.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Collapsible Tests</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div data-nstest-role="page" data-add-back-btn="true">
-       <div data-nstest-role="header" data-nstest-position="fixed">
-               <h1>Collapsible test</h1>
-       </div>
-       <div data-nstest-role="content">
-               <div data-role="collapsible" id="collapsedContent">
-                        <h3>I'm a header</h3>
-                       <a>test</a>
-                       <p>Some content would be here</p>
-               </div>
-       </div>
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/core/core-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/core/core-tests.js
deleted file mode 100644 (file)
index 4d10169..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Unit Test: Core
- *
- * Przemyslaw Ciezkowski <p.ciezkowski@samsung.com>
- */
-
-$( "#corepage" ).live( "pageinit", function ( event ) {
-       module("Core");
-
-       test( "Disable text selection", function () {
-               var all = $( event.target ).find("*"),
-                       haveDisabled = all.not( "input, [type='text'], textarea" ),
-                       haveEnabled = all.filter( "input, [type='text'], textarea" );
-               $.mobile.tizen.disableSelection( $( event.target ) );
-
-               haveDisabled.each( function () {
-                       strictEqual( $(this).css( "user-select" ), "none" , "text disable selection test - none" );
-               } );
-
-               haveEnabled.each( function () {
-                       strictEqual( $(this).css( "user-select" ), "text"  , "text disable selection test - text");
-               } );
-       } );
-
-} );
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/core/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/core/index.html
deleted file mode 100644 (file)
index 66340c8..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-       <script src="core-tests.js"></script>
-       <title>Core</title>
-</head>
-
-<body>
-
-<h1 id="qunit-header">Core</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-
-<div id="qunit-fixture">
-       <div data-role="page" id="corepage">
-               <div data-role="header" data-position="fixed">
-                       <h1>Single-Page Application </h1>
-               </div><!-- /header -->
-
-               <div data-role="content">
-                       <p>This is a single page boilerplate template that you can copy to build your first Tizen Web UI Framework page.</p>
-                       <input type="text" />
-                       <input type="button" value="Test" />
-                       <button>Test</button>
-                       <textarea></textarea>
-               </div><!-- /content -->
-
-               <div data-role="footer" data-position="fixed">
-                       <h4>Footer content</h4>
-               </div><!-- /footer -->
-       </div><!-- /page -->
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/datetimepicker/datetimepicker-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/datetimepicker/datetimepicker-tests.js
deleted file mode 100644 (file)
index 45326a4..0000000
+++ /dev/null
@@ -1,497 +0,0 @@
-/*jslint browser: true*/
-/*global $, jQuery, test, equal, ok, asyncTest, Globalize, start, stop, deepEqual, range*/
-$(document).ready( function () {
-
-       module( "Date Time Picker" );
-
-       var datetime,
-               date,
-               time,
-               custom,
-               make2digit,
-               isLeapYear,
-               getDay,
-               getCurDate,
-               objDatetime,
-               objDate,
-               objTime,
-               objCustom,
-               markup,
-               datetime2 ,
-               date2,
-               time2 ,
-               custom2 ,
-               objDatetime2,
-               objDate2 ,
-               objTime2,
-               objCustom2;
-
-       // trigger pagecreate
-       $( "#page-1" ).page();
-
-       datetime = $( "#datetime" )[0];
-       date = $( "#date" )[0];
-       time = $( "#time" )[0];
-       custom = $( "#custom" )[0];
-
-       make2digit = function (arr) {
-               var i, ret;
-               for ( i = 0;  i < arr.length;  i++ ) {
-                       arr[i] = arr[i].toString();
-                       ret = arr[i].toString(10);
-                       if ( arr[i] < 10 ) {
-                               arr[i] = "0" + arr[i];
-                       }
-               }
-               return arr;
-       } ;
-
-       isLeapYear = function ( year ) {
-               return year % 4 ? 0 : ( year % 100 ? 1 : ( year % 400 ? 0 : 1 ) );
-       } ;
-
-       getDay = function () {
-               var date = new Date( "May 2 18:30:00 2012" ),
-                       daysInMonth = [ 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ],
-                       day = daysInMonth[ date.getMonth() ];
-               if ( day == 28 ) {
-                       day += isLeapYear( date.getFullYear() );
-               }
-               return day;
-       } ;
-
-       getCurDate = function () {
-               var date = new Date( "May 2 18:30:00 2012" );
-               return date.getDate();
-       } ;
-
-       //Dymanically creating datetimepicker
-       objDatetime = $(datetime).data( "datetimepicker" );
-       objDate = $(date).data( "datetimepicker" );
-       objTime = $(time).data( "datetimepicker" );
-       objCustom = $(custom).data( "datetimepicker" );
-       markup = '<ul data-role="listview" id="datetimeList2">' +
-                                               '<li class="ui-li-2line-sub-main">' +
-                                                       '<span class="ui-li-text-main">' +
-                                                               '<input type="datetime" id="datetime2" />' +
-                                                       '</span>' +
-                                                       '<span class="ui-li-text-sub">DateTimePicker</span>' +
-                                               '</li>' +
-                                               '<li class="ui-li-2line-sub-main">' +
-                                                       '<span class="ui-li-text-main">' +
-                                                               '<input type="date" id="date2"/>' +
-                                                       '</span>' +
-                                                       '<span class="ui-li-text-sub">DatePicker</span>' +
-                                               '</li>' +
-                                               '<li class="ui-li-2line-sub-main">' +
-                                                       '<span class="ui-li-text-main">' +
-                                                               '<input type="time" id="time2"/>' +
-                                                       '</span>' +
-                                                       '<span class="ui-li-text-sub">TimePicker</span>' +
-                                               '</li>' +
-                                               '<li class="ui-li-2line-sub-main">' +
-                                                       '<span class="ui-li-text-main">' +
-                                                               '<input type="datetime" id="custom2" data-format="MMM dd yyyy hh:mm tt" value="2012-06-30T00:00:00+00:00" />' +
-                                                       '</span>' +
-                                                       '<span class="ui-li-text-sub">DateTimePicker</span>' +
-                                               '</li>' +
-                                       '</ul>';
-
-       // trigger pagecreate
-       $( "#page-1" ).page();
-       $('#page-1').find( ":jqmData(role=content)" ).append(markup);
-       $('#page-1').find( ":jqmData(role=content)" ).trigger('create');
-
-       datetime2 = $( "#datetime2" )[0];
-       date2 = $( "#date2" )[0];
-       time2 = $( "#time2" )[0];
-       custom2 = $( "#custom2" )[0];
-
-       objDatetime2 = $(datetime2).data( "datetimepicker" );
-       objDate2 = $(date2).data( "datetimepicker" );
-       objTime2 = $(time2).data( "datetimepicker" );
-       objCustom2 = $(custom2).data( "datetimepicker" );
-       /* End of dynamic creation*/
-
-       asyncTest( "Auto-initialization", function () {
-               ok( objDatetime, "should Date/Time instace created" );
-               ok( objDate, "should Date instance created" );
-               ok( objTime, "should Time instance created" );
-               ok( objCustom, "should Custom format instance created" );
-               start();
-       });
-
-       asyncTest( "Options", function () {
-               equal( objDatetime.options.type, "datetime", "should 'datetime' type created." );
-               equal( objDate.options.type, "date", "should 'date' type created." );
-               equal( objTime.options.type, "time", "should 'time' type created." );
-               equal( objCustom.options.type, "datetime", "should custom format created as 'datetime' type." );
-               equal( objCustom.options.format, "MMM dd yyyy hh:mm tt", "should accept custom format string." );
-               equal( objCustom.options.date.toString(), new Date( "Jun 30 00:00:00 UTC+0000 2012" ).toString(), "should accept preset date." );
-               start();
-       });
-
-       asyncTest( "Private Methods", function () {
-               var months, updateFieldTest ;
-               ok( ( function () {
-                       var year = 0,
-                               expect = false,
-                               actual = false;
-
-                       try {
-                               for ( year = 1;  year < 2100;  year++ ) {
-                                       expect = new Date( year, 1, 29 ).getDate() == 29;
-                                       actual = objDatetime._isLeapYear( year );
-                                       if ( expect != actual ) {
-                                               throw year + " is wrong";
-                                       }
-                               }
-                       } catch ( exception ) {
-                               console.log( exception );
-                               return false;
-                       }
-                       return true;
-               }()), "should be able to check leap year" );
-
-               updateFieldTest = function ( format, value, obj, expect ) {
-                       var target = $('<div data-pat=' + format + '></div>');
-                       obj._updateField( target, value );
-
-                       return target.text();
-               } ;
-
-               deepEqual(
-                       [
-                               updateFieldTest( "h", 0, objTime2 ),
-                               updateFieldTest( "hh", 1, objTime2 ),
-                               updateFieldTest( "H", 13 , objTime2),
-                               updateFieldTest( "HH", 9, objTime2 ),
-                               updateFieldTest( "m", 9, objTime2 ),
-                               updateFieldTest( "mm", 9 , objTime2),
-                               updateFieldTest( "s", 1, objTime2 ),
-                               updateFieldTest( "ss", 10 , objTime2),
-                               updateFieldTest( "MMM", 3 , objTime2),
-                               updateFieldTest( "MMMM", 3, objTime2 ),
-                               updateFieldTest( "yy", 95, objTime2 ),
-                               updateFieldTest( "yyyy", 95, objTime2 )
-                       ],
-                       [
-                               "12", "01", "13", "09", "9", "09", "1" , "10", Globalize.culture().calendar.months.namesAbbr[2], Globalize.culture().calendar.months.names[2], "95", "0095"
-                       ],
-                       "should update field to given value with format"
-               );
-
-               deepEqual(
-                       [
-                               updateFieldTest( "h", 0, objDate2),
-                               updateFieldTest( "hh", 1, objDate2 ),
-                               updateFieldTest( "H", 13 , objDate2),
-                               updateFieldTest( "HH", 9, objDate2 ),
-                               updateFieldTest( "m", 9, objDate2 ),
-                               updateFieldTest( "mm", 9, objDate2 ),
-                               updateFieldTest( "s", 1, objDate2 ),
-                               updateFieldTest( "ss", 10 , objDate2),
-                               updateFieldTest( "MMM", 3 , objDate2),
-                               updateFieldTest( "MMMM", 3 , objDate2),
-                               updateFieldTest( "yy", 9, objDate2 ),
-                               updateFieldTest( "yyyy", 9, objDate2 )
-                       ],
-                       [
-                               "12", "01", "13", "09", "9", "09", "1" , "10", Globalize.culture().calendar.months.namesAbbr[2], Globalize.culture().calendar.months.names[2], "09", "0009"
-                       ],
-                       "should update field to given value with format"
-               );
-
-               ok( ( function () {
-                       var beforeNoon = objTime.options.date.getHours() < 12;
-                       objTime._switchAmPm();
-                       return beforeNoon != objTime.options.date.getHours() < 12;
-               }()), "should change AM/PM by AMPM button" );
-
-               deepEqual( [ "MMMM", " ", "dd", " ", "yyyy", " ", "hh", ":", "mm", " ", "dummy space" ],
-                       objTime._parsePattern( "MMMM dd yyyy hh:mm 'dummy space'" ), "should parse DTF string as array" );
-
-               objDatetime.options.date = new Date( "May 2 18:30:00 2012" );
-
-               months = Globalize.culture().calendar.months.namesAbbr.slice();
-               if ( months.length > 12 ) {
-                       months.length = 12;
-               }
-
-
-               deepEqual(
-                       [
-                               {
-                                       values : make2digit( range( 1, getDay() )),
-                                       data : range( 1, getDay() ),
-                                       current : getCurDate() - 1,
-                                       numItems : getDay()
-                               },
-                               {
-                                       values : make2digit (range( 0, 59 )),
-                                       data : range(0, 59),
-                                       numItems : 60,
-                                       current : 0
-                               },
-                               {
-                                       values : range( 1900, 2100 ),
-                                       data : range( 1900, 2100 ),
-                                       numItems : 201,
-                                       current : 112
-                               },
-                               { // hour h 6
-                                       values : [ "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12" ],
-                                       data : [ 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 12 ],
-                                       numItems : 12,
-                                       current : 5
-                               },
-                               { // hour H 6
-                                       values : range( 0, 23 ),
-                                       data : range( 0, 23 ),
-                                       numItems : 24,
-                                       current : 18
-                               },
-                               {
-                                       values : months,
-                                       data : range( 1, 12 ),
-                                       numItems : 12,
-                                       current : 4
-                               },
-
-                       ],
-                       [
-                               objDatetime._populateDataSelector( "day", "dd", objDatetime ),
-                               objDatetime._populateDataSelector( "sec", "ss", objDatetime ),
-                               objDatetime._populateDataSelector( "year", "YYYY", objDatetime ),
-                               objDatetime._populateDataSelector( "hour", "hh", objDatetime ),
-                               objDatetime._populateDataSelector( "hour", "H", objDatetime ),
-                               objDatetime._populateDataSelector( "month", "MMM", objDatetime ),
-
-                       ],
-                       "should populate data selector by given field and pattern"
-               );
-
-               /*date Value Api*/
-               objDate.value( "Jan 1 09:00:00 2012" );
-               equal(objDate.value( ) , "2012-01-01" , "Set and get value for date" );
-
-               /*date Value Api*/
-               objTime.value( "Jan 1 09:00:00 2012" );
-               equal(objTime.value( ) , "09:00:00" , "Set and get value for time" );
-               start();
-       });
-
-       asyncTest( "Public Methods", function () {
-               objDatetime.value.call( objDatetime, "Jan 1 09:00:00 2012" );
-               equal( "2012-01-01T09:00:00", objDatetime.value(), "should set and get value by API" );
-               var format = "yyyy MM dd hh mm";
-               objDatetime._setFormat( format );
-               equal( objDatetime.option( "format" ), format, "should set type and format" );
-               start();
-       });
-
-       asyncTest( "Events", function () {
-               var str = "May 2 18:00:00 2012";
-
-               $(datetime).bind( "date-changed", function (e, date) {
-                       equal( objDatetime.value(), "2012-05-02T18:00:00", "Should invoke event when date changed" );
-                       start();
-               });
-
-               objDatetime.value( str );
-       });
-
-
-       asyncTest( "Auto-initialization Dynamic", function () {
-               ok( objDatetime2, "should Date/Time instace created" );
-               ok( objDate2, "should Date instance created" );
-               ok( objTime2, "should Time instance created" );
-               ok( objCustom2, "should Custom format instance created" );
-               start();
-       });
-
-       asyncTest( "Options Dynamic", function () {
-               equal( objDatetime2.options.type, "datetime", "should 'datetime' type created." );
-               equal( objDate2.options.type, "date", "should 'date' type created." );
-               equal( objTime2.options.type, "time", "should 'time' type created." );
-               equal( objCustom2.options.type, "datetime", "should custom format created as 'datetime' type." );
-               equal( objCustom2.options.format, "MMM dd yyyy hh:mm tt", "should accept custom format string." );
-               equal( objCustom2.options.date.toString(), new Date( "Jun 30 00:00:00 UTC+0000 2012" ).toString(), "should accept preset date." );
-
-               start();
-       });
-
-       asyncTest( "Private Methods Dynamic", function () {
-               var months, updateFieldTest ;
-               ok( ( function () {
-                       var year = 0,
-                               expect = false,
-                               actual = false;
-
-                       try {
-                               for ( year = 1;  year < 2100;  year++ ) {
-                                       expect = new Date( year, 1, 29 ).getDate() == 29;
-                                       actual = objDatetime2._isLeapYear( year );
-                                       if ( expect != actual ) {
-                                               throw year + " is wrong";
-                                       }
-                               }
-                       } catch ( exception ) {
-                               console.log( exception );
-                               return false;
-                       }
-                       return true;
-               }()), "should be able to check leap year" );
-
-               updateFieldTest = function ( format, value, obj, expect ) {
-                       var target = $('<div data-pat=' + format + '></div>');
-                       obj._updateField( target, value );
-
-                       return target.text();
-               } ;
-
-               deepEqual(
-                       [
-                               updateFieldTest( "h", 0, objTime2 ),
-                               updateFieldTest( "hh", 1, objTime2 ),
-                               updateFieldTest( "H", 13 , objTime2),
-                               updateFieldTest( "HH", 9, objTime2 ),
-                               updateFieldTest( "m", 9, objTime2 ),
-                               updateFieldTest( "mm", 9 , objTime2),
-                               updateFieldTest( "s", 1, objTime2 ),
-                               updateFieldTest( "ss", 10 , objTime2),
-                               updateFieldTest( "MMM", 3 , objTime2),
-                               updateFieldTest( "MMMM", 3, objTime2 ),
-                               updateFieldTest( "yy", 95, objTime2 ),
-                               updateFieldTest( "yyyy", 95, objTime2 )
-                       ],
-                       [
-                               "12", "01", "13", "09", "9", "09", "1" , "10", Globalize.culture().calendar.months.namesAbbr[2], Globalize.culture().calendar.months.names[2], "95", "0095"
-                       ],
-                       "should update field to given value with format"
-               );
-
-               deepEqual(
-                       [
-                               updateFieldTest( "h", 0, objDate2),
-                               updateFieldTest( "hh", 1, objDate2 ),
-                               updateFieldTest( "H", 13 , objDate2),
-                               updateFieldTest( "HH", 9, objDate2 ),
-                               updateFieldTest( "m", 9, objDate2 ),
-                               updateFieldTest( "mm", 9, objDate2 ),
-                               updateFieldTest( "s", 1, objDate2 ),
-                               updateFieldTest( "ss", 10 , objDate2),
-                               updateFieldTest( "MMM", 3 , objDate2),
-                               updateFieldTest( "MMMM", 3 , objDate2),
-                               updateFieldTest( "yy", 9, objDate2 ),
-                               updateFieldTest( "yyyy", 9, objDate2 )
-                       ],
-                       [
-                               "12", "01", "13", "09", "9", "09", "1" , "10", Globalize.culture().calendar.months.namesAbbr[2], Globalize.culture().calendar.months.names[2], "09", "0009"
-                       ],
-                       "should update field to given value with format"
-               );
-
-               ok( ( function () {
-                       var beforeNoon = objTime2.options.date.getHours() < 12;
-                       objTime2._switchAmPm();
-                       return beforeNoon != objTime2.options.date.getHours() < 12;
-               }()), "should change AM/PM by AMPM button" );
-
-               deepEqual(
-                       [ "MMMM", " ", "dd", " ", "yyyy", " ", "hh", ":", "mm", " ", "dummy space" ],
-                       objTime2._parsePattern( "MMMM dd yyyy hh:mm 'dummy space'" ),
-                       "should parse DTF string as array"
-               );
-
-               objDatetime2.options.date = new Date( "May 2 18:30:00 2012" );
-
-               months = Globalize.culture().calendar.months.namesAbbr.slice();
-               if ( months.length > 12 ) {
-                       months.length = 12;
-               }
-
-               deepEqual(
-                       [
-                               {
-                                       values : make2digit( range( 1, getDay() )),
-                                       data : range( 1, getDay() ),
-                                       current : getCurDate() - 1,
-                                       numItems : getDay()
-                               },
-                               {
-                                       values : make2digit (range( 0, 59 )),
-                                       data : range(0, 59),
-                                       numItems : 60,
-                                       current : 0
-                               },
-                               {
-                                       values : range( 1900, 2100 ),
-                                       data : range( 1900, 2100 ),
-                                       numItems : 201,
-                                       current : 112
-                               },
-                               { // hour h 6
-                                       values : [ "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12" ],
-                                       data : [ 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 12 ],
-                                       numItems : 12,
-                                       current : 5
-                               },
-                               { // hour H 6
-                                       values : range( 0, 23 ),
-                                       data : range( 0, 23 ),
-                                       numItems : 24,
-                                       current : 18
-                               },
-                               {
-                                       values : months,
-                                       data : range( 1, 12 ),
-                                       numItems : 12,
-                                       current : 4
-                               },
-
-                       ],
-                       [
-                               objDatetime2._populateDataSelector( "day", "dd", objDatetime2 ),
-                               objDatetime2._populateDataSelector( "sec", "ss", objDatetime2 ),
-                               objDatetime2._populateDataSelector( "year", "YYYY", objDatetime2 ),
-                               objDatetime2._populateDataSelector( "hour", "hh", objDatetime2 ),
-                               objDatetime2._populateDataSelector( "hour", "H", objDatetime2 ),
-                               objDatetime2._populateDataSelector( "month", "MMM", objDatetime2 ),
-
-                       ],
-                       "should populate data selector by given field and pattern"
-               );
-
-               /*date Value Api*/
-               objDate2.value( "Jan 1 09:00:00 2012" );
-               equal(objDate2.value( ) , "2012-01-01" , "Set and get value for date" );
-
-               /*date Value Api*/
-               objTime2.value( "Jan 1 09:00:00 2012" );
-               equal(objTime2.value( ) , "09:00:00" , "Set and get value for time" );
-
-               start();
-       });
-
-       asyncTest( "Public Methods Dynamic", function () {
-               objDatetime2.value.call( objDatetime2, "Jan 1 09:00:00 2012" );
-               equal( "2012-01-01T09:00:00", objDatetime2.value(), "should set and get value by API" );
-               var format = "yyyy MM dd hh mm";
-               objDatetime2._setFormat( format );
-               equal( objDatetime2.option( "format" ), format, "should set type and format" );
-               start();
-       });
-
-       asyncTest( "Events Dynamic", function () {
-               var str = "May 2 18:00:00 2012";
-               $(datetime2).bind( "date-changed", function (e, date) {
-                       equal( objDatetime2.value(), "2012-05-02T18:00:00", "Should invoke event when date changed" );
-                       start();
-               });
-
-               objDatetime2.value( str );
-       });
-
-
-});
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/datetimepicker/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/datetimepicker/index.html
deleted file mode 100644 (file)
index 18b2108..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-       <script src="datetimepicker-tests.js"></script>
-
-       <title>Date Time Picker</title>
-</head>
-
-<body>
-
-<h1 id="qunit-header">Date Time Picker</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-
-<div id="qunit-fixture">
-       <div data-role="page" id="dummy-page">
-               <div data-role="header" data-position="fixed">
-                       <h1>Dummy</h1>
-               </div>
-               <div data-role="contents">
-               </div>
-       </div>
-       <div data-role="page" id="page-1">
-               <div data-role="header" data-position="fixed">
-                       <h1>Date Time Picker</h1>
-               </div>
-               <div data-role="content">
-                       <ul data-role="listview">
-                               <li class="ui-li-2line-sub-main">
-                                       <span class="ui-li-text-main">
-                                               <input type="datetime" id="datetime" />
-                                       </span>
-                                       <span class="ui-li-text-sub">DateTimePicker</span>
-                               </li>
-                               <li class="ui-li-2line-sub-main">
-                                       <span class="ui-li-text-main">
-                                               <input type="date" id="date"/>
-                                       </span>
-                                       <span class="ui-li-text-sub">DatePicker</span>
-                               </li>
-                               <li class="ui-li-2line-sub-main">
-                                       <span class="ui-li-text-main">
-                                               <input type="time" id="time"/>
-                                       </span>
-                                       <span class="ui-li-text-sub">TimePicker</span>
-                               </li>
-                               <li class="ui-li-2line-sub-main">
-                                       <span class="ui-li-text-main">
-                                               <input type="datetime" id="custom" data-format="MMM dd yyyy hh:mm tt" value="2012-06-30T00:00:00+00:00" />
-                                       </span>
-                                       <span class="ui-li-text-sub">DateTimePicker</span>
-                               </li>
-                       </ul>
-               </div>
-       </div>
-
-</div>
-
-</body>
-</html>
-
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/dayselector/dayselector-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/dayselector/dayselector-tests.js
deleted file mode 100644 (file)
index 853bf13..0000000
+++ /dev/null
@@ -1,158 +0,0 @@
-/*
- * Unit Test: Dayselector
- * modified by : Koeun Choi <koeun.choi@samsung.com>
- */
-
-(function ($) {
-
-       module( "Day selector" );
-
-       var unit_dayselector = function (elt, expectedType, expectedTheme) {
-               var days = 7,
-                       checkbox,
-                       label,
-                       expectedId,
-                       i;
-
-               elt.dayselector();
-
-               ok( elt.hasClass('ui-dayselector'), "day-selector has 'ui-dayselector' class.");
-               // main element should be a controlgroup
-               ok( elt.hasClass('ui-controlgroup'), "day-selector has 'ui-controlgroup' class." );
-
-               equal( elt.attr('data-' + $.mobile.ns + 'type'), expectedType, "should have '" + expectedType + "' type" );
-
-               for ( i = 0; i < days ; i++ ) {
-                       expectedId = elt.attr( 'id' ) + '_' + i;
-                       checkbox = elt.find( '.ui-checkbox :checkbox[value=' + i + '][id=' + expectedId + ']' );
-                       equal( checkbox.length, 1, "should be one checkbox per day" );
-                       equal( checkbox.prop('value'), String(i), "should have correct day value" );
-
-                       label = checkbox.siblings().first();
-                       equal( label.length, 1, "should be one label per day" );
-                       equal( label.attr('for'), expectedId, "should associate correctly with checkbox" );
-                       ok( label.hasClass('ui-dayselector-label-' + i), "should have the right label class" );
-                       equal( label.jqmData('theme'), expectedTheme, "should have '" + expectedTheme + "' theme" );
-               }
-       };
-
-       /* Test 1. Default Configuration Check */
-       asyncTest( "Default Configuration Check", function () {
-
-               $.testHelper.pageSequence( [
-                       function () {
-                               $.testHelper.openPage( '#dayselector-test-configuration' );
-                       },
-
-                       function () {
-                               var expectedType = 'horizontal',
-                                       testPage = $( '#dayselector-test-configuration' ),
-                                       expectedTheme = 's',
-                                       daySelector;
-
-                               // test default values are applied correctly
-                               daySelector = testPage.find( '#dayselector-test-configuration-default' );
-                               unit_dayselector( daySelector, expectedType, expectedTheme );
-
-                               start();
-                       }
-               ]);
-       });
-
-       /* Test 2. Theme Configuration Check */
-       asyncTest( "Theme Configuration Check", function () {
-
-               $.testHelper.pageSequence( [
-                       function () {
-                               $.testHelper.openPage( '#dayselector-test-configuration' );
-                       },
-
-                       function () {
-                               var expectedType = 'horizontal',
-                                       testPage = $( '#dayselector-test-configuration' ),
-                                       expectedTheme,
-                                       daySelector;
-
-                               // test user theme is applied to dayselector winset correctly
-                               daySelector = testPage.find( '#dayselector-test-configuration-theme' );
-                               daySelector.dayselector();
-                               expectedTheme = daySelector.jqmData( 'theme' );
-                               equal( expectedTheme, 'a', "dayselector fieldset theme is 'a'" );
-                               unit_dayselector( daySelector, expectedType, expectedTheme );
-
-                               start();
-                       }
-
-               ]);
-       });
-
-       /* Test 3. Custom Configuration Check */
-       asyncTest( "Custom Configuration Check", function () {
-
-               $.testHelper.pageSequence( [
-                       function () {
-                               $.testHelper.openPage( '#dayselector-test-configuration' );
-                       },
-
-                       function () {
-                               var expectedType = 'vertical',
-                                       testPage = $( '#dayselector-test-configuration' ),
-                                       expectedTheme = 'a',
-                                       daySelector;
-
-                               // test custom config is applied correctly
-                               daySelector = testPage.find( '#dayselector-test-configuration-custom' );
-
-                               daySelector.dayselector({ type: expectedType, theme: expectedTheme });
-                               unit_dayselector(daySelector, expectedType, expectedTheme );
-
-                               start();
-                       }
-
-               ]);
-       });
-
-       /* Test 4. Check Event and APIs */
-       asyncTest( "Check Event and APIs", function () {
-
-               $.testHelper.pageSequence([
-                       function () {
-                               $.testHelper.openPage( '#dayselector-test-select' );
-                       },
-
-                       function () {
-                               var testPage,
-                                       daySelectorElem,
-                                       wednesday,
-                                       friday;
-                               testPage = $( '#dayselector-test-select' );
-                               ok( testPage.hasClass('ui-page-active') );
-
-                               // test defaults are applied correctly
-                               daySelectorElem = testPage.find( '#dayselector-test-select-1' );
-
-                               // nothing should be selected yet
-                               deepEqual( daySelectorElem.dayselector('value'), [] );
-
-                               // click on Wednesday and Friday to switch them on
-                               wednesday = daySelectorElem.find( '.ui-checkbox' )[3];
-                               $( wednesday ).find( 'label' ).trigger( 'click' );
-
-                               friday = daySelectorElem.find( '.ui-checkbox' )[5];
-                               $( friday ).find( 'label' ).trigger( 'click' );
-                               deepEqual( daySelectorElem.dayselector('value'), ['3', '5'] );
-
-                               // turn off Wednesday and Friday
-                               $( wednesday ).find( 'label' ).trigger( 'click' );
-                               $( friday ).find( 'label' ).trigger( 'click' );
-                               deepEqual( daySelectorElem.dayselector('value'), [] );
-
-                               // test the selectAll() method
-                               daySelectorElem.dayselector( 'selectAll' );
-                               deepEqual( daySelectorElem.dayselector('value'), ['0', '1', '2', '3', '4', '5', '6'] );
-
-                               start();
-                       }
-               ]);
-       });
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/dayselector/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/dayselector/index.html
deleted file mode 100644 (file)
index c84e516..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <title>jQuery Mobile Day Selector Tests</title>
-
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="../../../libs/js/jquery-mobile-1.1.0/tests/unit/jquery.setNameSpace.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-       <script src="dayselector-tests.js"></script>
-       </head>
-       <body>
-
-       <h1 id="qunit-header">jQuery Mobile Day Selector Tests</h1>
-       <h2 id="qunit-banner"></h2>
-       <h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div data-nstest-role="page" id="dayselector-test-configuration">
-       <div data-nstest-role="header" data-nstest-position="inline">
-               <h1>Day Selector Tests - configuration</h1>
-       </div>
-       <div data-nstest-role="content">
-         <fieldset id="dayselector-test-configuration-default" data-nstest-role="dayselector"> </fieldset>
-         <fieldset id="dayselector-test-configuration-theme" data-nstest-theme="a" data-nstest-role="dayselector"></fieldset>
-         <fieldset id="dayselector-test-configuration-custom"></fieldset>
-       </div>
-</div>
-
-<div data-nstest-role="page" id="dayselector-test-select">
-       <div data-nstest-role="header" data-nstest-position="inline">
-               <h1>Day Selector Tests - selection</h1>
-       </div>
-       <div data-nstest-role="content">
-         <fieldset id="dayselector-test-select-1" data-nstest-role="dayselector"></fieldset>
-       </div>
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/ensurens/ensurens-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/ensurens/ensurens-tests.js
deleted file mode 100644 (file)
index d539e7c..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Unit Test: EnsureNS
- *
- * Krzysztof Antoszek <k.antoszek@samsung.com>
- */
-
-
-$(document).ready(function () {
-       module("ensureNS");
-       test("ensureNS test", function () {
-               var obj = {
-                               "prop1": true,
-                               "prop2": 1
-                       };
-
-               // # TEST 1
-               equal(!!(window.ensure && window.ensure.tests && window.ensure.tests.leaf1), false , " window ensure property test" );
-
-               ensureNS('window.ensure.tests.leaf1');
-
-               // # TEST 2
-               equal(!!(window.ensure && window.ensure.tests && window.ensure.tests.leaf1), true , " window ensure property test" );
-
-               window.ensure.tests.leaf1 = obj;
-
-               ensureNS('window.ensure.tests.leaf1.leaf2');
-
-               // # TEST 3
-               equal(typeof window.ensure.tests.leaf1.leaf2, "object" , "window ensure equal test" );
-
-               // # TEST 4
-               deepEqual(window.ensure.tests.leaf1, obj, "window ensure deep equal test" );
-       });
-});
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/ensurens/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/ensurens/index.html
deleted file mode 100644 (file)
index d87a67d..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<!DOCTYPE html>
-<html>
-       <head>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-                       data-framework-theme="tizen-white">
-               </script>
-               <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-               <script src="../../../libs/js/qunit/qunit.js"></script>
-               <script src="../../../demos/tizen-winsets/widgets/list/virtuallist-db-demo.js"></script>
-               <script src="ensurens-tests.js"></script>
-               <title>ensureNS</title>
-       </head>
-
-       <body>
-               <h1 id="qunit-header">Extendablelist</h1>
-               <h2 id="qunit-banner"></h2>
-               <div id="qunit-testrunner-toolbar"></div>
-               <h2 id="qunit-userAgent"></h2>
-               <ol id="qunit-tests"></ol>
-
-               <div id="qunit-fixture"></div>
-       </body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/extendablelist/extendablelist-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/extendablelist/extendablelist-tests.js
deleted file mode 100755 (executable)
index 208399d..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-/*
- * Unit Test: Extendable list
- *
- * Wongi Lee <wongi11.lee@samsung.com>
- */
-
-$( document ).ready( function () {
-
-       module( "Extendable List");
-
-       function startExtendableListTest(){
-               var $elContainer = $( "ul#extendable_list_main" ),
-                       $elElements = $( "ul#extendable_list_main li" ),
-                       elOptions = $( "ul#extendable_list_main" ).extendablelist( "option" );
-               console.dir( elOptions );
-
-               test( "Extendable list test", function () {
-                       /* Initialize and create method */
-                       ok( $elContainer );
-                       equal( $elElements.length, 51 );        /* 50 <li> items + one button. */
-
-                       /* Options */
-                       equal( elOptions.id, "#extendable_list_main" );
-                       equal( elOptions.childSelector, " li" );
-                       equal( elOptions.template, "tmp-1line" );
-                       equal( elOptions.extenditems, 50 );
-                       equal( elOptions.scrollview, true );
-
-                       /* Click Load more button */
-                       /*
-                       ok ( ( function () {
-                               $( "#load_more_message" ).click();
-
-                               $elElements = $( "ul#extendable_list_main li" );
-                               console.log( $elElements.length );
-
-                               try {
-                                       equal ( $elElements.length, 101 );
-                               } catch ( exception ) {
-                                       console.log( "click load more button  : " + exception );
-                                       return false;
-                               }
-                               return true;
-                       }() ), "Click Load More button()" );
-                       */
-                       ok ( ( function () {
-                               var i = 0,
-                                       newJSON = new Array(),
-                                       newItem,
-                                       firstLI,
-                                       result = true;
-
-                               /* make short JSON array */
-                               for ( i = 0; i < 200; i++ ) {
-                                       newJSON.push( window.JSON_DATA[ ( i + 100 ) ] );
-                               }
-
-                               /* Call recreate */
-                               $( "ul#extendable_list_main" ).extendablelist( "recreate", newJSON );
-
-                               $elContainer = $( "ul#extendable_list_main" );
-                               $elElements = $( "ul#extendable_list_main li" );
-
-                               /* Check new List */
-                               ok( $elContainer );
-                               equal( $elElements.length, 51 );        /* 50 <li> items + one button. */
-
-                               newItem = window.JSON_DATA[ 100 ];
-
-                               firstLI = $( "ul#extendable_list_main li:first" );
-
-                               try {
-                                       equal( newItem.NAME, $( firstLI ).find( "span.ui-li-text-main" ).text() );
-                               } catch ( exception ) {
-                                       console.log( exception );
-                                       return false;
-                               }
-
-                               return true;
-                       }() ), "recreate()" );
-
-                       /* Destroy method */
-                       ok ( ( function () {
-                               /* Call destroy */
-                               $( "ul#extendable_list_main" ).extendablelist( "destroy" );
-
-                               var destoyedelElements = $( "ul#extendable_list_main li" );
-                               console.log( destoyedelElements.length );
-
-                               try {
-                                       equal ( destoyedelElements.length, 0 );
-                               } catch ( exception ) {
-                                       console.log( "destroy : " + exception );
-                                       return false;
-                               }
-                               return true;
-                       }() ), "destroy()" );
-               } );
-       }
-
-       /* Load Dummy Data and Init Extendable List widget*/
-       if ( window.JSON_DATA ) {
-               $( "ul" ).filter( function () {
-                       return $( this ).data( "role" ) == "extendablelist";
-               } ).addClass( "elLoadSuccess" );
-
-               // trigger pagecreate
-               $( "#extendablelist-unit-test" ).page();
-
-               $( "ul#extendable_list_main" ).extendablelist( "create" );
-
-               startExtendableListTest();
-       } else {
-               console.log ( "Extendable List Init Fail." );
-       }
-} );
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/extendablelist/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/extendablelist/index.html
deleted file mode 100755 (executable)
index f04c6ed..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-<!DOCTYPE html>
-<html>
-       <head>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-                       data-framework-theme="tizen-white">
-               </script>
-               <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-               <script src="../../../libs/js/qunit/qunit.js"></script>
-               <script src="../../../demos/tizen-winsets/widgets/list/virtuallist-db-demo.js"></script>
-               <script src="extendablelist-tests.js"></script>
-               <title>Extendable</title>
-       </head>
-
-       <body>
-               <h1 id="qunit-header">Extendablelist</h1>
-               <h2 id="qunit-banner"></h2>
-               <div id="qunit-testrunner-toolbar"></div>
-               <h2 id="qunit-userAgent"></h2>
-               <ol id="qunit-tests"></ol>
-
-               <div id="qunit-fixture">
-                       <div data-role="page" id="dummy-page">
-                               <div data-role="header" data-position="fixed">
-                                       <h1>Dummy</h1>
-                               </div>
-                               <div data-role="contents">
-                               </div>
-                       </div>
-                       <div data-role="page" id="extendablelist-unit-test" data-add-back-btn="true">
-                               <script id="tmp-1line" type="text/x-jquery-tmpl">
-                                       <li class="ui-li-1line"><span class="ui-li-text-main">${NAME}</span></li>
-                               </script>
-                               <script id="tmp_load_more" type="text/x-jquery-tmpl">
-                                       <li class="ui-li-1line" style="text-align:center; margin:0 auto">
-                                               <div data-role="button">Load ${NUM_MORE_ITEMS} more items</div>
-                                       </li>
-                               </script>
-                               <div data-role="header" data-position="fixed">
-                                       <h1>extendable list</h1>
-                               </div>
-                               <div data-role="content">
-                                       <ul id = "extendable_list_main" data-role="extendablelist" data-extenditems="50" data-template="tmp-1line" data-dbtable="JSON_DATA">
-                                       </ul>
-                               </div>
-                       </div>
-               </div>
-       </body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/fastscroll/fastscroll-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/fastscroll/fastscroll-tests.js
deleted file mode 100644 (file)
index 987fc66..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Unit Test: FastScroll
- *
- * Minkyu Kang <mk7.kang@samsung.com>
- */
-
-(function ($) {
-       module("FastScroll");
-
-       var unit_fastscroll = function ( list ) {
-               var widget,
-                       shortcut,
-                       divider,
-                       indexString = "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z:ㄱ,ㄴ,ㄷ,ㄹ,ㅁ,ㅂ,ㅅ,ㅇ,ㅈ,ㅊ,ㅋ,ㅌ,ㅍ,ㅎ" ;
-
-               widget = list.parentsUntil(".ui-content").parent().find(".ui-fastscroll");
-
-               /* Create */
-               ok( widget.hasClass("ui-fastscroll"), "Create" );
-
-               shortcut = widget.find("li");
-               divider = list.find(".ui-li-divider");
-
-               /* Shortcuts */
-               for ( i = 0; i < divider.length; i++ ) {
-                       equal( $( divider[i] ).text(), $( shortcut[i] ).text(), "Opertaition test Shortcut");
-               }
-
-               /* indexString */
-               list.fastscroll( "indexString", indexString );
-               equal( list.fastscroll( "indexString" ), indexString, "API : indexString" );
-       };
-
-       test( "shortcut", function () {
-               unit_fastscroll( $("#shortcut") );
-       });
-
-}( jQuery ));
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/fastscroll/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/fastscroll/index.html
deleted file mode 100755 (executable)
index 0d36a3a..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-       <script src="fastscroll-tests.js"></script>
-
-       <title>Shortcut Scroll</title>
-</head>
-
-<body>
-
-<h1 id="qunit-header">Shortcut Scroll</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-
-<div id="qunit-fixture">
-
-       <div data-role="page" id="fastscroll">
-               <div data-role="header" data-position="fixed">
-                       <h1>Shortcut Scroll</h1>
-               </div>
-               <div data-role="content">
-                       <ul id="shortcut" data-role="listview" data-fastscroll="true">
-                               <li data-role="list-divider">A</li>
-                               <li>Anton</li>
-                               <li>Arabella</li>
-                               <li>Art</li>
-                               <li data-role="list-divider">B</li>
-                               <li>Barry</li>
-                               <li>Bibi</li>
-                               <li>Billy</li>
-                               <li>Bob</li>
-                               <li data-role="list-divider">D</li>
-                               <li>Daisy</li>
-                               <li>Derek</li>
-                               <li>Desmond</li>
-                               <li data-role="list-divider">E</li>
-                               <li>Eric</li>
-                               <li>Ernie</li>
-                               <li>Esme</li>
-                               <li data-role="list-divider">F</li>
-                               <li>Fay</li>
-                               <li>Felicity</li>
-                               <li>Francis</li>
-                               <li>Frank</li>
-                               <li data-role="list-divider">H</li>
-                               <li>Harry</li>
-                               <li>Herman</li>
-                               <li>Horace</li>
-                               <li data-role="list-divider">J</li>
-                               <li>Jack</li>
-                               <li>Jane</li>
-                               <li>Jill</li>
-                               <li data-role="list-divider">K</li>
-                               <li>Katherine</li>
-                               <li>Katy</li>
-                               <li>Keith</li>
-                               <li data-role="list-divider">L</li>
-                               <li>Larry</li>
-                               <li>Lee</li>
-                               <li>Lola</li>
-                               <li data-role="list-divider">M</li>
-                               <li>Mark</li>
-                               <li>Milly</li>
-                               <li>Mort</li>
-                               <li data-role="list-divider">N</li>
-                               <li>Nigel</li>
-                               <li>Norman</li>
-                               <li data-role="list-divider">O</li>
-                               <li>Organza</li>
-                               <li>Orlando</li>
-                       </ul>
-               </div>
-       </div>
-
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/fliptoggleswitch/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/fliptoggleswitch/index.html
deleted file mode 100755 (executable)
index 942b0e0..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-       <script src="toggleswitch-tests.js"></script>
-
-       <title>Toggleswitch</title>
-</head>
-
-<body>
-
-<h1 id="qunit-header">Toggleswitch</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-
-<div id="qunit-fixture">
-
-       <div data-role="page" id="toggleswitch1">
-               <div data-role="header" data-position="fixed">
-                       <h1>Toggleswitch</h1>
-               </div>
-               <div data-role="content">
-                       <select data-role='slider' name='slider' id='newslider' >
-                               <option value='on'>On</option>
-                               <option value='off'>Off</option>
-                       </select>
-               </div>
-       </div>
-       
-       <div data-role="page" id="toggleswitch2">
-               <div data-role="header" data-position="fixed">
-                       <h1>Toggleswitch</h1>
-               </div>
-               <div data-role="content">               
-                       
-               </div>
-       </div>  
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/fliptoggleswitch/toggleswitch-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/fliptoggleswitch/toggleswitch-tests.js
deleted file mode 100755 (executable)
index 199b01f..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * Unit Test : Toggle Switch
- *
- *
- */
-/*jslint browser: true*/
-/*global $, jQuery, test, equal, ok*/
-$( document ).ready( function ( ) {
-       module("fliptoggleswitch" );
-
-       var unit_toggleswitch = function ( widget ) {
-               var toggleswitch ;
-
-               /* Create */
-               widget.slider( );
-               toggleswitch = widget.parent( ).find('.ui-slider-switch') ;
-               ok( toggleswitch, "Create" );
-
-               /* Class Check*/
-               equal( toggleswitch.hasClass('ui-slider'), true , "Class check" );
-
-               /*Markup check*/
-               equal( toggleswitch.find('span.ui-slider-label').length, 2 , "makrup check : 2 options present" );
-               equal( toggleswitch.find('span.ui-slider-label')[1].innerHTML, "On" , "makrup check : correct text in option" );
-               equal( toggleswitch.find('span.ui-slider-label')[0].innerHTML , "Off" , "makrup check : correct text in option" );
-               ok( toggleswitch.find('a.ui-slider-handle') , "makrup check : toggle handle present" );
-               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'On', "makrup check : handle present" );
-               equal( toggleswitch.find('span.ui-slider-label')[1].style.width, '100%', "makrup check : 2 options present" );
-
-               /*check control after firing events*/
-               toggleswitch.trigger('vmousedown') ;
-               toggleswitch.trigger('vmouseup') ;
-               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'Off', "Markup check after firing click event first time" );
-               equal( toggleswitch.find('span.ui-slider-label')[0].style.width, '100%', "Markup check after firing click event first time" );
-               equal( toggleswitch.find('span.ui-slider-label')[1].style.width, '0%', "Markup check after firing click event first time" );
-               toggleswitch.trigger('vmousedown') ;
-               toggleswitch.trigger('vmouseup') ;
-               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'On', "Markup check after firing click event second time" );
-               equal( toggleswitch.find('span.ui-slider-label')[0].style.width, '0%', "Markup check after firing click event second time" );
-               equal( toggleswitch.find('span.ui-slider-label')[1].style.width, '100%', "Markup check after firing click event second time" );
-
-               /* Check Enable , Disbale */
-               widget.slider("disable" );
-               toggleswitch.trigger('vmousedown') ;
-               toggleswitch.trigger('vmouseup') ;
-               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'On', "Markup check after firing click event after switch was disabled" );
-               equal( toggleswitch.find('span.ui-slider-label')[1].style.width, '100%', "Markup check after firing click event after switch was disabled" );
-               equal( toggleswitch.find('span.ui-slider-label')[0].style.width, '0%', "Markup check after firing click event after switch was disabled" );
-
-               widget.slider("enable" );
-               toggleswitch.trigger('vmousedown') ;
-               toggleswitch.trigger('vmouseup') ;
-               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'Off', "Markup check after firing click event after switch was re enabled" );
-               equal( toggleswitch.find('span.ui-slider-label')[0].style.width, '100%', "Markup check after firing click event after switch was re enabled" );
-               equal( toggleswitch.find('span.ui-slider-label')[1].style.width, '0%', "Markup check after firing click event after switch was re enabled" );
-
-               /*refresh */
-               widget.find('option')[1].innerHTML = "False" ;
-               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'Off', "API Refresh : Stoggleswitch is not modified before refresh is called" );
-               widget.slider('refresh') ;
-               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'False', "API Refresh : Stoggleswitch is modified after refresh is called" );
-
-       };
-
-       test( "normal toggleswitch", function ( ) {
-               $('#toggleswitch1').page( ) ;
-               unit_toggleswitch( $("#newslider" ) );
-       } );
-
-       test( "normal toggleswitch -dynamic", function ( ) {
-               var createEvent = false ,
-                       toggleHTML = "<select data-role='slider'name='slider'id='dynamicslider'data-texton='true'>" +
-                                                                               "<option value='on'>On</option>" +
-                                                                               "<option value='off'>Off</option>" +
-                                                                       "</select>;";
-
-               $('#toggleswitch2').page( ) ;
-               $('#toggleswitch2').find(":jqmData(role=content)" ).append( toggleHTML );
-               $('#dynamicslider').slider( {create : function ( ) {
-                       createEvent = true ;
-               }} ) ;
-               $('#toggleswitch2').find(":jqmData(role=content)" ).trigger("create" );
-               equal( createEvent, true, "Create Event" );
-               unit_toggleswitch( $("#dynamicslider" ) );
-       } );
-} );
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/gallery/gallery-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/gallery/gallery-tests.js
deleted file mode 100644 (file)
index 2865460..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Unit Test: gallery 
- *
- * Minkyu Kang <mk7.kang@samsung.com>
- */
-
-(function ($) {
-       module("gallery");
-
-       var unit_gallery = function ( widget, count ) {
-               var imagesldier,
-                       refresh = function ( widget ) {
-                               widget.gallery("refresh", "1");
-                               return widget.find(".ui-gallery-bg");
-                       };
-
-               /* Create */
-               widget.gallery();
-
-               gallery = widget.find(".ui-gallery-bg");
-               ok( gallery, "Create" );
-
-               /* Initialize */
-               equal( gallery.length, count, "Initialize" );
-
-               /* API: length */
-               equal( widget.gallery("length"), count, "API: length" );
-
-               /* API: del */
-               widget.gallery("remove");
-               gallery = refresh( widget );
-               equal( gallery.length, count - 1, "API: del" );
-
-               /* API: add */
-               widget.gallery("add", "05.jpg");
-               widget.gallery("add", "06.jpg");
-               gallery = refresh( widget );
-               equal( gallery.length, count + 1, "API: add" );
-
-               /* API: length */
-               equal( widget.gallery("value"), 1, "API: value" );
-
-               /* API: empty */
-               widget.gallery("empty");
-               gallery = refresh( widget );
-               equal( gallery.length, 0, "API: empty" );
-       };
-
-       test( "gallery", function () {
-               unit_gallery( $("#gallery"), 4 );
-       });
-}( jQuery ));
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/gallery/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/gallery/index.html
deleted file mode 100755 (executable)
index 05fb86e..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-       <script src="gallery-tests.js"></script>
-
-       <title>Gallery</title>
-</head>
-
-<body>
-
-<h1 id="qunit-header">Gallery</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-
-<div id="qunit-fixture">
-
-       <div data-role="page">
-               <div data-role="header" data-position="fixed">
-                       <h1>Gallery</h1>
-               </div>
-               <div data-role="content" data-scroll="none">
-                       <div data-role="gallery" id="gallery" data-index="2" data-vertical-align="middle">
-                               <img src="01.jpg">
-                               <img src="02.jpg">
-                               <img src="03.jpg">
-                               <img src="04.jpg">
-                       </div>
-               </div>
-       </div>
-
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/gallery3d/gallery3d-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/gallery3d/gallery3d-tests.js
deleted file mode 100644 (file)
index 190cd45..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Unit Test: Gallery3d
- *
- * Wonseop Kim <wonseop.kim@samsung.com>
- */
-
-( function ( $ ) {
-       $.mobile.defaultTransition = "none";
-
-       module( "Galley3d" );
-
-       asyncTest( "galley3d", function () {
-               var widget = $( "#galley3dTest" ),
-                       imageList = [
-                               { src: "../../../demos/tizen-winsets/widgets/test/01.jpg" },
-                               { src: "../../../demos/tizen-winsets/widgets/test/02.jpg" }
-                       ],
-                       elem = "ui-gallery3d",
-                       currentItem,
-                       image = { "src" : "../../../demos/tizen-winsets/widgets/test/05.jpg" };
-
-               /* Create */
-               widget.gallery3d();
-               ok( widget.hasClass( elem ), "Create" );
-
-               /* API */
-               widget.gallery3d( "add", image );
-               currentItem = widget.gallery3d( "select" );
-               equal( currentItem.src, image.src, "API : add (by object)" );
-
-               widget.gallery3d( "add", "../../../demos/tizen-winsets/widgets/test/04.jpg" );
-               currentItem = widget.gallery3d( "select" );
-               equal( currentItem.src, "../../../demos/tizen-winsets/widgets/test/04.jpg", "API : add (by image's path')" );
-
-               equal( widget.gallery3d( "length" ), 2, "API : length" );
-
-               widget.gallery3d( "remove" );
-               notEqual( widget.gallery3d( "select" ), currentItem, "API : remove" );
-
-               widget.gallery3d( "empty" );
-               equal( widget.gallery3d( "length" ), 0, "API : empty" );
-
-               widget.gallery3d( "add", imageList[1] )
-                       .gallery3d( "add", imageList[0] );
-
-               widget.gallery3d( "select", 1 );
-               setTimeout( function () {
-                       equal( widget.gallery3d( "select" ), imageList[0], "API : select" );
-                       widget.gallery3d( "next" );
-               }, 600 );
-
-               setTimeout( function () {
-                       //equal( widget.gallery3d( "select" ), imageList[1], "API : next" );
-                       widget.gallery3d( "prev" );
-               }, 1200 );
-
-               setTimeout( function () {
-                       //equal( widget.gallery3d( "select" ), imageList[0], "API : prev" );
-                       start();
-               }, 1800 );
-       });
-}( jQuery ));
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/gallery3d/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/gallery3d/index.html
deleted file mode 100644 (file)
index dc8a4f9..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-       <script src="../../../libs/js/jquery-mobile-1.1.0/tests/jquery.testHelper.js"></script>
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-       <script src="gallery3d-tests.js"></script>
-       <title>Galley3d</title>
-</head>
-
-<body>
-
-<h1 id="qunit-header">Galley3d</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-
-<div id="qunit-fixture">
-
-       <div data-role="page">
-               <div data-role="header" data-position="fixed">
-                       <h1>Galley3d</h1>
-               </div>
-               <div data-role="content">
-                       <div id="galley3dTest" data-role="galley3d" style="width: 100%;"></div>
-               </div>
-       </div>
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/handler/handler-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/handler/handler-tests.js
deleted file mode 100755 (executable)
index b4d45c8..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Unit Test: Handler
- *
- * Wonseop Kim <wonseop.kim@samsung.com>
- */
-
-(function ($) {
-       module("Handler");
-
-       var unit_handler = function ( widget ) {
-               var elem = ".ui-handler",
-                       handler;
-
-               /* Create */
-               widget.scrollview();
-               handler = widget.find( elem );
-               ok( ( handler.length > 0 ), "Create" );
-
-               /* API */
-               widget.scrollview( "enableHandler", false );
-               ok( handler.is( ":hidden" ), "API: enableHandler(false)" );
-               widget.scrollview( "enableHandler", true );
-               ok( handler.is( ":visible" ), "API: enableHandler(true)" );
-       };
-
-       test( "handler", function () {
-               unit_handler( $("#handlerY") );
-       });
-}( jQuery ));
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/handler/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/handler/index.html
deleted file mode 100755 (executable)
index cb5116c..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-       <script src="handler-tests.js"></script>
-
-       <title>Handler</title>
-</head>
-
-<body>
-
-<h1 id="qunit-header">Handler</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-
-<div id="qunit-fixture">
-
-       <div data-role="page" id="handler0">
-               <div data-role="header" data-position="fixed">
-                       <h1>Handler</h1>
-               </div>
-               <div id="handlerY" data-role="content" data-scroll="y" data-handler="true">
-                       <ul data-role="listview">
-                               <li data-role="list-divider">A</li>
-                               <li><a href="#">Adam Kinkaid</a></li>
-                               <li><a href="#">Alex Wickerham</a></li>
-                               <li><a href="#">Avery Johnson</a></li>
-                               <li data-role="list-divider">B</li>
-                               <li><a href="#">Bob Cabot</a></li>
-                               <li data-role="list-divider">C</li>
-                               <li><a href="#">Caleb Booth</a></li>
-                               <li><a href="#">Christopher Adams</a></li>
-                               <li><a href="#">Culver James</a></li>
-                               <li data-role="list-divider">D</li>
-                               <li><a href="#">David Walsh</a></li>
-                               <li><a href="#">Drake Alfred</a></li>
-                               <li data-role="list-divider">E</li>
-                               <li><a href="#">Elizabeth Bacon</a></li>
-                               <li><a href="#">Emery Parker</a></li>
-                               <li><a href="#">Enid Voldon</a></li>
-                               <li data-role="list-divider">F</li>
-                               <li><a href="#">Francis Wall</a></li>
-                               <li data-role="list-divider">G</li>
-                               <li><a href="#">Graham Smith</a></li>
-                               <li><a href="#">Greta Peete</a></li>
-                               <li data-role="list-divider">H</li>
-                               <li><a href="#">Harvey Walls</a></li>
-                       </ul>
-               </div>
-       </div>
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/imageloader/imageloader-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/imageloader/imageloader-tests.js
deleted file mode 100644 (file)
index 3fb5a92..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-$( document ).ready( function () {
-       var url = "test.png?" + Date.now();
-       module("Imageloader");
-
-
-       asyncTest( "Thumbnail is not in storage", 1, function () {
-               $.imageloader.getThumbnail(url, function ( result ) {
-                       strictEqual(result, "NOT_FOUND_ERR", "Thumbnail is not found, correct error.");
-                       start();
-               });
-       });
-
-       asyncTest( "Set thumbnail", 2, function () {
-               $.imageloader.setThumbnail( url, function ( result ) {
-                       strictEqual( typeof result, "string", "Result is returned" );
-                       strictEqual( result.substr(0, 22), "data:image/png;base64,", "Returned result is png data string" );
-                       start();
-               });
-       });
-
-       asyncTest( "Remove thumbnail", 1, function () {
-               $.imageloader.removeThumbnail( url );
-               $.imageloader.getThumbnail(url, function ( result ) {
-                       strictEqual(result, "NOT_FOUND_ERR", "Thumbnail is not found, correct error.");
-                       start();
-               });
-       });
-});
\ No newline at end of file
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/imageloader/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/imageloader/index.html
deleted file mode 100644 (file)
index 9964d59..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-
-<!DOCTYPE html>
-<html>
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-       <script src="imageloader-tests.js"></script>
-       <title>ImageLoader</title>
-</head>
-
-<body>
-
-<h1 id="qunit-header">Core</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-
-<div id="qunit-fixture"></div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/imageloader/test.png b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/imageloader/test.png
deleted file mode 100644 (file)
index b63d902..0000000
Binary files a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/imageloader/test.png and /dev/null differ
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/index.html
deleted file mode 100644 (file)
index 861c720..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-  <meta charset="utf-8">
-
-  <link rel="stylesheet" href="../../libs/js/qunit/qunit.css"/>
-  <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-  <script src="../../libs/js/qunit/qunit.js"></script>
-  <script src="tests.js"></script>
-  <script src="runner.js"></script>
-  <style type="text/css">
-    html, body {
-      width:100%;
-      height:100%;
-      margin:0px;
-      padding:0px;
-    }
-
-    #testFrame {
-      float: left;
-      border: 0px;
-      height: 100%;
-      width: 60%;
-    }
-
-    #results {
-      float: left;
-      width: 30%;
-    }
-  </style>
-</head>
-<body>
-  <div id="results">
-    <h1 id="qunit-header"><a href="#">jQuery Mobile Test Suite</a></h1>
-    <h2 id="qunit-banner"></h2>
-    <ol id="qunit-tests">
-    </ol>
-  </div>
-       <iframe data-src="{{testfile}}" name="testFrame" id="testFrame" scrolling="no">
-       </iframe>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/list/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/list/index.html
deleted file mode 100755 (executable)
index a4c08ac..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE html>
-<html>
-       <head>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-                       data-framework-theme="tizen-white"
-                       data-framework-viewport-scale=false>
-               </script>
-
-               <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-               <script src="../../../libs/js/qunit/qunit.js"></script>
-               <script src="list-tests.js"></script>
-               <title>List</title>
-       </head>
-
-       <body>
-               <h1 id="qunit-header">List</h1>
-               <h2 id="qunit-banner"></h2>
-               <div id="qunit-testrunner-toolbar"></div>
-               <h2 id="qunit-userAgent"></h2>
-               <ol id="qunit-tests"></ol>
-
-               <div id="qunit-fixture">
-                       <div data-role="page" id="dummy-page">
-                               <div data-role="header" data-position="fixed">
-                                       <h1>Dummy</h1>
-                               </div>
-                               <div data-role="contents">
-                               </div>
-                       </div>
-
-                       <div data-role="page" id="list-unit-test" data-add-back-btn="true">
-                               <div data-role="header" data-position="fixed">
-                                       <h1>List</h1>
-                                       <input type="search" data-cancel-btn='true' name="search" data-icon="call" id="searchInput" value=""/>
-                               </div>
-                               <div data-role="content" id="list-content">
-                                       <ul id="listsample" data-role="listview" data-fastscroll="true">
-                                               <li>Anton</li>
-                                               <li class='ui-li-multiline'>    Arabella        <span class='ui-li-text-sub'>Subtext</span></li>
-                                               <li>Art<a href='#dummy-page'>1line-sub with anchor<span class='ui-li-text-sub'>Subtext</span></a>       </li>
-                                               <li>Barry<img src='thumbnail.jpg' class='ui-li-bigicon'/>1line-bigicon1</li></li>
-                                               <li>Bibi</li>
-                                               <li>Billy</li>
-                                               <li>Bob</li>
-                                       </ul>
-                               </div>
-                       </div>
-               </div>
-               <div data-role="page" id="list-unit-test-dynamic">
-                               <div data-role="header" data-position="fixed">
-                                       <h1>Dummy</h1>
-                               </div>
-                               <div data-role="contents">
-                               </div>
-                       </div>
-       </body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/list/list-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/list/list-tests.js
deleted file mode 100755 (executable)
index f71cdd1..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Unit Test: list
- *
- *
- */
-/*jslint browser: true*/
-/*global $, jQuery, test, equal, ok*/
-$( document ).ready( function ( ) {
-
-       module("List");
-
-       var unit_list_test = function ( widget ) {
-               var li ;
-
-               /*markup*/
-               equal( widget.hasClass("ui-listview"), true, "Markup check") ;
-               equal( widget.find('li.ui-li').length, 7, "Markup check") ;
-               equal( widget.find('li.ui-li-multiline').length, 1, "Markup check: multiline text") ;
-               equal( widget.find('li.ui-li-multiline span.ui-li-text-sub').length, 1, "Markup check: multiline text") ;
-               equal( widget.find('li.ui-li a.ui-link-inherit').length, 1, "Markup check:item with anchor") ;
-               equal( widget.find('li.ui-li-has-thumb img.ui-li-bigicon').length, 1, "Markup check: item with icon") ;
-
-               li = "<li>1line</li>";
-               $( li ).appendTo( widget );
-               $( widget ).listview("refresh");
-               equal( widget.find('li.ui-li').length, 8, "Markup check") ;
-       } ;
-
-       test("List", function ( ) {
-               // trigger pagecreate
-               $("#list-unit-test").page( );
-               /* Initialize */
-               $('#listsample').listview( );
-               unit_list_test( $('#listsample'), {button : 'call', cancel : true} ) ;
-
-       } );
-
-       test("List- dynamic", function ( ) {
-
-               var createEvent = false,
-                       listHTMML = '<ul id= "listsample1"data-role= "listview"data-fastscroll= "true">' +
-                                                                       '<li>Anton</li>' +
-                                                                       '<li class= "ui-li-multiline"> Arabella <span class= "ui-li-text-sub">Subtext</span></li>' +
-                                                                       '<li>Art<a href= "#dummy-page">1line-sub with anchor<span class= "ui-li-text-sub">Subtext</span></a> </li>' +
-                                                                       '<li>Barry<img src= "thumbnail.jpg"class= "ui-li-bigicon"/>1line-bigicon1</li></li>' +
-                                                                       '<li>Bibi</li>' +
-                                                                       '<li>Billy</li>' +
-                                                                       '<li>Bob</li>' +
-                                                               '</ul>';
-
-               // trigger pagecreate
-               $("#list-unit-test-dynamic").page( );
-               /* Initialize */
-               $("#list-unit-test-dynamic").find(":jqmData(role=contents)").append( listHTMML ) ;
-               $('#listsample1').listview( {create : function ( ) {
-                       createEvent = true ;
-               }} );
-
-               $("#list-unit-test-dynamic").find(":jqmData(role=contents)").trigger('create') ;
-               $('#listsample1').listview( ) ;
-
-               equal( createEvent, true, "Create Event") ;
-               unit_list_test( $('#listsample1') ) ;
-
-       } );
-
-} );
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/listdivider/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/listdivider/index.html
deleted file mode 100755 (executable)
index b443ad7..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-       <script src="listdivider-tests.js"></script>
-
-       <title>Listdivider</title>
-</head>
-
-<body>
-
-<h1 id="qunit-header">List divider</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-
-<div id="qunit-fixture">
-
-       <div data-role="page">
-               <div data-role="header" data-position="fixed">
-                       <h1>List divider</h1>
-               </div>
-               <div class="content" data-role="content" data-scroll="y">
-                       <ul id="listview1" data-role="listview">
-                               <li data-role="list-divider">Item styles</li>
-                               <li><a href="#">Normal lists</a></li>
-                               <li><a href="#">Normal lists</a></li>
-                               <li><a href="#">Normal lists</a></li>
-                               <li data-role="list-divider">Item styles</li>
-                               <li><a href="#">Normal lists</a></li>
-                               <li><a href="#">Normal lists</a></li>
-                               <li><a href="#">Normal lists</a></li>
-                               <li data-role="list-divider">Item styles</li>
-                               <li><a href="#">Normal lists</a></li>
-                               <li><a href="#">Normal lists</a></li>
-                               <li><a href="#">Normal lists</a></li>
-                       </ul>
-               </div>
-       </div>
-
-       <div id="listdivdier_group" data-role="page">
-               <div data-role="header" data-position="fixed">
-                       <h1>Groupped Divider </h1>
-               </div>
-               <div class="content" data-role="content" data-scroll="y">
-                       <ul id="listview2" data-role="listview">
-                               <li data-role="list-divider" data-style="check"><form><input type="checkbox"  name="c2line-check1" /></form>Item styles</li>
-                               <li><a href="#" >Normal lists</a></li>
-                               <li><a href="#" >Normal lists</a></li>
-                               <li><a href="#" >Normal lists</a></li>
-                               <li data-role="list-divider" data-style="check"><form><input type="checkbox"  name="c2line-check1" /></form>Item styles</li>
-                               <li><a href="#" >Normal lists</a></li>
-                               <li><a href="#" >Normal lists</a></li>
-                               <li><a href="#" >Normal lists</a></li>
-                               <li data-role="list-divider" data-style="check"><form><input type="checkbox"  name="c2line-check1" /></form>Item styles</li>
-                               <li><a href="#" >Normal lists</a></li>
-                               <li><a href="#" >Normal lists</a></li>
-                               <li><a href="#" >Normal lists</a></li>
-                       </ul>
-               </div>
-               <div data-role="footer">
-               </div>
-       </div>
-
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/listdivider/listdivider-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/listdivider/listdivider-tests.js
deleted file mode 100644 (file)
index 82a34f3..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Unit Test: listdivider
- *
- * Hyunjung Kim <hjnim.kim@samsung.com>
- */
-
-(function ($) {
-       module("Listdivider");
-
-       var unit_listdivider = function ( widget ) {
-               var listdivdierDynamic = '<li data-role= "list-divider">Item styles</li>';
-               equal( widget.find(":jqmData(role=list-divider)").length, 3, "List dividers count");
-               widget.find(":jqmData(role=list-divider)").each( function( ) {
-                       equal( $(this).text().trim(), "Item styles", "List divider text check" )
-               } );
-               equal( widget.find('li.ui-li-divider').length, 3, "CSS check : list dividers count");
-
-               $( listdivdierDynamic ).appendTo( widget );
-               $( widget ).listview("refresh");
-
-               equal( widget.find(":jqmData(role=list-divider)").length, 4, "List dividers count");
-               widget.find(":jqmData(role=list-divider)").each( function( ) {
-                       equal( $(this).text().trim(), "Item styles", "List divider text check" )
-               } );
-       };
-
-       var unit_listcheckdivider = function ( widget ) {
-               unit_listdivider( widget );
-               equal(  widget.find('li.ui-li-has-checkbox').length, widget.find('li.ui-li-divider').length - 1, "List checkbox divider count check");
-       };
-
-       test( "Listdivider", function () {
-               $("#listview1").listview();
-               unit_listdivider( $("#listview1") );
-       });
-
-       test( "listdivdier_group", function() {
-               $("#listdivdier_group").page( );
-               $("#listview2").listview();
-               unit_listcheckdivider( $("#listview2") );
-       });
-}( jQuery ));
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/listdividers/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/listdividers/index.html
deleted file mode 100755 (executable)
index 12803da..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-<!DOCTYPE html>
-<html>
-       <head>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-                       data-framework-theme="tizen-white"
-                       data-framework-viewport-scale=false>
-               </script>
-
-               <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-               <script src="../../../libs/js/qunit/qunit.js"></script>
-               <script src="listdividers-tests.js"></script>
-               <title>List Dividers</title>
-       </head>
-
-       <body>
-               <h1 id="qunit-header">List Divider</h1>
-               <h2 id="qunit-banner"></h2>
-               <div id="qunit-testrunner-toolbar"></div>
-               <h2 id="qunit-userAgent"></h2>
-               <ol id="qunit-tests"></ol>
-
-               <div id="qunit-fixture">
-                       <div data-role="page" id="dummy-page">
-                               <div data-role="header" data-position="fixed">
-                                       <h1>Dummy</h1>
-                               </div>
-                               <div data-role="contents">
-                               </div>
-                       </div>
-
-                       <div data-role="page" id="listdividers-unit-test" data-add-back-btn="true">
-                               <div data-role="header" data-position="fixed">
-                                       <h1>List Divider</h1>
-                                       <input type="search" data-cancel-btn='true' name="search" data-icon="call" id="searchInput" value=""/>
-                               </div>
-                               <div data-role="content" id="listdividers-content">
-                                                               <ul data-role="listview" id='listdividerssample'>
-                                                               <li data-role="list-divider">A</li>
-                                                               <li><a href="#">Adam Kinkaid</a></li>
-                                                               <li><a href="#">Alex Wickerham</a></li>
-                                                               <li><a href="#">Avery Johnson</a></li>
-                                                               <li data-role="list-divider" data-style='dialogue'>B</li>
-                                                               <li><a href="#">Bob Cabot</a></li>
-                                                               <li data-role="list-divider" data-style='check'>C</li>
-                                                               <li><a href="#">Caleb Booth</a></li>
-                                                               <li><a href="#">Christopher Adams</a></li>
-                                                               <li><a href="#">Culver James</a></li>
-                                                               <li data-role="list-divider" data-style='expandable'>D</li>
-                                                               <li><a href="#">David Walsh</a></li>
-                                                               <li><a href="#">Drake Alfred</a></li>
-                                                               <li data-role="list-divider" data-style='checkexpandable'>E</li>
-                                                               <li><a href="#">Elizabeth Bacon</a></li>
-                                                               <li><a href="#">Emery Parker</a></li>
-                                                               <li><a href="#">Enid Voldon</a></li>
-                                                               <li data-role="list-divider">F</li>
-                                                               <li><a href="#">Francis Wall</a></li>
-                                                               <li data-role="list-divider">G</li>
-                                                               <li><a href="#">Graham Smith</a></li>
-                                                               <li><a href="#">Greta Peete</a></li>
-                                                               <li data-role="list-divider">H</li>
-                                                               <li><a href="#">Harvey Walls</a></li>
-                                                       </ul>
-                               </div>
-                       </div>
-               </div>
-               <div data-role="page" id="listdividers-unit-test-dynamic">
-                               <div data-role="header" data-position="fixed">
-                                       <h1>Dummy</h1>
-                               </div>
-                               <div data-role="contents">
-                               </div>
-                       </div>
-       </body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/listdividers/listdividers-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/listdividers/listdividers-tests.js
deleted file mode 100755 (executable)
index a9393b4..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * Unit Test: listdividers
- *
- *
- */
-/*jslint browser: true*/
-/*global $, jQuery, test, equal, ok*/
-$( document ).ready( function ( ) {
-
-       module("List dividers");
-
-       var unit_listdividers_test = function ( widget ) {
-               var li ;
-
-               /*markup*/
-               equal( widget.hasClass("ui-listview"), true, "Markup check") ;
-               equal( widget.find('li.ui-li').length, 24, "Markup check") ;
-               equal( widget.find(":jqmData(role=list-divider)").length, 8, "List dividers count");
-               equal( widget.find('li.ui-li-divider').length, 8, "Markup check : list dividers count") ;
-
-               li = "<li>1line</li>";
-               $( li ).appendTo( widget );
-               $( widget ).listview("refresh");
-               equal( widget.find('li.ui-li').length, 25, "Markup check") ;
-       } ;
-
-       test("Listdividers", function ( ) {
-               // trigger pagecreate
-               $("#listdividers-unit-test").page( );
-               /* Initialize */
-               $('#listdividerssample').listview( );
-               unit_listdividers_test( $('#listdividerssample'), {button : 'call', cancel : true} ) ;
-
-       } );
-
-       test("Listdividers- dynamic", function ( ) {
-               var createEvent = false,
-                       listHTMML = '<ul data-role= "listview"id= "listdividerssample1">' +
-                                                                                       '<li data-role= "list-divider">A</li>' +
-                                                                                       '<li><a href= "#">Adam Kinkaid</a></li>' +
-                                                                                       '<li><a href= "#">Alex Wickerham</a></li>' +
-                                                                                       '<li><a href= "#">Avery Johnson</a></li>' +
-                                                                                       '<li data-role= "list-divider"data-style= "dialogue">B</li>' +
-                                                                                       '<li><a href= "#">Bob Cabot</a></li>' +
-                                                                                       '<li data-role= "list-divider"data-style= "check">C</li>' +
-                                                                                       '<li><a href= "#">Caleb Booth</a></li>' +
-                                                                                       '<li><a href= "#">Christopher Adams</a></li>' +
-                                                                                       '<li><a href= "#">Culver James</a></li>' +
-                                                                                       '<li data-role= "list-divider"data-style= "expandable">D</li>' +
-                                                                                       '<li><a href= "#">David Walsh</a></li>' +
-                                                                                       '<li><a href= "#">Drake Alfred</a></li>' +
-                                                                                       '<li data-role= "list-divider"data-style= "checkexpandable">E</li>' +
-                                                                                       '<li><a href= "#">Elizabeth Bacon</a></li>' +
-                                                                                       '<li><a href= "#">Emery Parker</a></li>' +
-                                                                                       '<li><a href= "#">Enid Voldon</a></li>' +
-                                                                                       '<li data-role= "list-divider">F</li>' +
-                                                                                       '<li><a href= "#">Francis Wall</a></li>' +
-                                                                                       '<li data-role= "list-divider">G</li>' +
-                                                                                       '<li><a href= "#">Graham Smith</a></li>' +
-                                                                                       '<li><a href= "#">Greta Peete</a></li>' +
-                                                                                       '<li data-role= "list-divider">H</li>' +
-                                                                                       '<li><a href= "#">Harvey Walls</a></li>' +
-                                                                               '</ul>';
-
-               // trigger pagecreate
-               $("#listdividers-unit-test-dynamic").page( );
-               /* Initialize */
-               $("#listdividers-unit-test-dynamic").find(":jqmData(role=contents)").append( listHTMML ) ;
-
-               $('#listdividerssample1').listview( {create : function ( ) {
-                       createEvent = true ;
-               }} );
-
-               $("#listdividers-unit-test-dynamic").find(":jqmData(role=contents)").trigger('create') ;
-               $('#listdividerssample1').listview( ) ;
-
-               equal( createEvent, true, "Create Event") ;
-               unit_listdividers_test( $('#listdividerssample1') ) ;
-
-       } );
-
-} );
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/loader/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/loader/index.html
deleted file mode 100644 (file)
index c26c5b4..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <title>loader test</title>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-
-       <link rel="stylesheet" href="../../../libs/js/jquery-mobile-1.1.0/external/qunit.css"/>
-
-       <script src="loader-tests.js"></script>
-</head>
-<body>
-       <!-- QUnit template -->
-       <h1 id="qunit-header">Test : loader</h1>
-       <h2 id="qunit-banner"></h2>
-       <h2 id="qunit-userAgent"></h2>
-       <ol id="qunit-tests"></ol>
-
-       <div id="qunit-fixture">
-
-       </div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/loader/loader-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/loader/loader-tests.js
deleted file mode 100644 (file)
index a2ebd80..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * Loader test
- *
- * Youmin Ha <youmin.ha@samsung.com>
- *
- */
-( function ( $ ) {
-       $.mobile.defaultTransition = "none";
-
-       module( "Loader" );
-
-       var tizen = $.tizen.__tizen__;
-
-       test( "util.getScaleFactor()", function ( ) {
-               var util = tizen.util,
-                       expected = 1,
-                       defaultWidth = 720;
-
-               if( window.scale ) {
-                       expected = window.scale;
-               } else {
-                       expected = screen.width / defaultWidth;
-                       if( expected > 1 ) {    // Don't allow expansion
-                               expected = 1;
-                       }
-               }
-
-               // Test value
-               equal( util.getScaleFactor( ), expected, "Scale factor value should calculated properly." );
-       } );
-
-       test( "util.isMobileBrowser()", function ( ) {
-               var appVersion = window.navigator.appVersion,
-                       mobile = appVersion.match( "Mobile" ),
-                       isMobile = mobile ? true : false;
-
-               equal( tizen.util.isMobileBrowser(), isMobile, "Mobile browser must be detected." );
-
-               /* NOTE:
-                * Is this test OK? How are both cases(mobile/non-mobile) tested?
-                */
-       } );
-
-       test( "css.addElementToHead()", function ( ) {
-               var css = tizen.css,
-                       scarecrow = $( '<meta name="scarecrow" />' ),
-                       selected;
-
-               css.addElementToHead( scarecrow );
-               selected = $('head').children('meta[name=scarecrow]');
-               ok( selected.length > 0, 'Object must be added to header.' );
-       } );
-} ) ( jQuery );
-
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/multimediaview/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/multimediaview/index.html
deleted file mode 100755 (executable)
index 79e545c..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-       <script src="multimediaview-tests.js"></script>
-
-       <title>MultiMediaView</title>
-</head>
-
-<body>
-
-<h1 id="qunit-header">MultiMediaView</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-
-<div id="qunit-fixture">
-
-       <div data-role="page" id="multimediaview0">
-               <div data-role="header" data-position="fixed">
-                       <h1>MultiMediaView (video)</h1>
-               </div>
-               <div data-role="content">
-                       <video data-controls="true" style="width:100%;" id="video">
-                               <source src="http://www.w3schools.com/html5/mov_bbb.mp4" type="video/mp4" />
-                               <source src="http://www.w3schools.com/html5/mov_bbb.ogg" type="video/ogg" />
-                               <source src="http://www.w3schools.com/html5/mov_bbb.webm" type="video/webm" />
-                               <p>Your browser does not support the video tag.</p>
-                       </video>
-               </div>
-       </div>
-
-       <div data-role="page" id="multimediaview1">
-               <div data-role="header" data-position="fixed">
-                       <h1>MultiMediaView (audio)</h1>
-               </div>
-               <div data-role="content">
-                       <audio data-controls="true" style="width:100%;" id="audio">
-                               <source src="http://www.w3schools.com/html5/mov_bbb.mp4" type="audio/mp4" />
-                               <source src="http://www.w3schools.com/html5/mov_bbb.ogg" type="audio/ogg" />
-                               <p>Your browser does not support the audio tag.</p>
-                       </audio>
-               </div>
-       </div>
-
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/multimediaview/multimediaview-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/multimediaview/multimediaview-tests.js
deleted file mode 100755 (executable)
index f3394d4..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Unit Test: MultiMediaView
- *
- * Wonseop Kim <wonseop.kim@samsung.com>
- */
-
-(function ($) {
-       module("MultiMediaView");
-
-       var unit_multimediaview = function ( widget, type ) {
-               var control,
-                       fullscreenButton,
-                       width,
-                       height,
-                       played,
-                       timeupdated,
-                       ended,
-                       param;
-
-               /* Create */
-               widget.multimediaview();
-               ok( widget.hasClass( "ui-multimediaview" ) , "Create" );
-
-               if ( type === "video" ) {
-                       /* width */
-                       width = 100;
-                       widget.multimediaview( "width", width );
-                       equal( width, widget.width(), "API: width" );
-
-                       /* height */
-                       height = 200;
-                       widget.multimediaview( "height", height );
-                       equal( height, widget.height(), "API: height" );
-
-                       /* fullscreen */
-                       fullscreenButton = widget.parent().find( ".ui-fullscreenbutton" );
-
-                       widget.multimediaview( "fullScreen", true );
-                       ok( fullscreenButton.hasClass( "ui-fullscreen-off" ), "API: fullScreen (on)" );
-
-                       widget.multimediaview( "fullScreen", false );
-                       ok( fullscreenButton.hasClass( "ui-fullscreen-on" ), "API: fullScreen (off)" );
-               }
-       };
-
-       test( "video", function () {
-               unit_multimediaview( $( "#video" ), "video" );
-       });
-
-       test( "audio", function () {
-               unit_multimediaview( $( "#audio" ), "audio" );
-       });
-
-}( jQuery ));
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/navigationbar/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/navigationbar/index.html
deleted file mode 100755 (executable)
index e814ed8..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-
-       <script src="navigationbar-tests.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Navigationbar Tests</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-
-<div data-nstest-role="page">
-       <div data-nstest-role="header" id="normalnavigation1">
-               <h1>Navigationbar Test - markup</h1>
-       </div>
-       <div data-nstest-role="content">
-       </div>
-       <div data-nstest-role="footer">
-       </div>
-</div>
-
-<div data-nstest-role="page">
-       <div data-nstest-role="header" id="normalnavigation2">
-               <h1>Navigationbar Test - markup</h1>
-               <a>Button</a>
-       </div>
-       <div data-nstest-role="content">
-       </div>
-       <div data-nstest-role="footer">
-       </div>
-</div>
-
-<div data-nstest-role="page">
-       <div data-nstest-role="header" id="normalnavigation3">
-               <a>Button</a>
-               <h1>Navigationbar Test - markup</h1>
-               <a>Button</a>
-       </div>
-<div data-nstest-role="content">
-       </div>
-       <div data-nstest-role="footer">
-       </div>
-</div>
-
-<div data-nstest-role="page">
-       <div data-nstest-role="header" id="normalnavigation4">
-               <a>Button</a>
-               <h1>Navigationbar Test - markup</h1>
-               <a>Button2</a>
-               <a>Button3</a>
-       </div>
-       <div data-nstest-role="content">
-       </div>
-       <div data-nstest-role="footer">
-       </div>
-</div>
-
-<div data-nstest-role="page">
-       <div data-nstest-role="header" data-position="fixed" id="extendedstyle2btn">
-               <h1>Extended Title 2 Button </h1>
-               <div data-role="fieldcontain">
-                       <fieldset data-role="controlgroup" data-type="horizontal">
-                               <input type="radio" name="radio-view-8" data-icon="segment-titlestyle-segonly" id="segment1" value="on" checked="checked" />
-                               <label for="segment1">All</label>
-                               <input type="radio" name="radio-view-8" data-icon="segment-titlestyle-segonly" id="segment2" value="off" />
-                               <label for="segment2">Call</label>
-                       </fieldset>
-               </div>
-       </div>
-       <div data-nstest-role="content">
-       </div>
-</div>
-
-<div data-nstest-role="page">
-       <div data-nstest-role="header" data-position="fixed" id="extendedstyle3btn">
-               <h1>Extended Title 3 Button </h1>
-               <div data-role="fieldcontain">
-                       <fieldset data-role="controlgroup" data-type="horizontal">
-                               <input type="radio" name="radio-view-8" data-icon="segment-titlestyle-segonly" id="segment1" value="on" checked="checked" />
-                               <label for="segment1">All</label>
-                               <input type="radio" name="radio-view-8" data-icon="segment-titlestyle-segonly" id="segment2" value="off" />
-                               <label for="segment2">Call</label>
-                               <input type="radio" name="radio-view-8" data-icon="segment-titlestyle-segonly" id="segment3" value="off" />
-                               <label for="segment3">Save</label>
-                       </fieldset>
-               </div>
-       </div>
-       <div data-nstest-role="content">
-       </div>
-</div>
-
-<div data-nstest-role="page">
-       <div data-nstest-role="header" data-position="fixed" id="extendedstyle4btn">
-               <h1>Extended Title 4 Button </h1>
-               <div data-role="fieldcontain">
-                       <fieldset data-role="controlgroup" data-type="horizontal">
-                               <input type="radio" name="radio-view-8" data-icon="segment-titlestyle-segonly" id="segment1" value="on" checked="checked" />
-                               <label for="segment1">All</label>
-                               <input type="radio" name="radio-view-8" data-icon="segment-titlestyle-segonly" id="segment2" value="off" />
-                               <label for="segment2">Call</label>
-                               <input type="radio" name="radio-view-8" data-icon="segment-titlestyle-segonly" id="segment3" value="off" />
-                               <label for="segment3">Save</label>
-                               <input type="radio" name="radio-view-8" data-icon="segment-titlestyle-segonly" id="segment4" value="off" />
-                               <label for="segment4">Back</label>
-                       </fieldset>
-               </div>
-       </div>
-       <div data-nstest-role="content">
-       </div>
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/navigationbar/navigationbar-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/navigationbar/navigationbar-tests.js
deleted file mode 100755 (executable)
index 2ad2b09..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * navigationbar unit tests
-*/
-
-(function ($) {
-       module( "Navigationbar" );
-
-       var unit_navigationbar = function ( widget, anchorCount, extendedValue ) {
-               /* Create */
-               var created_navigationbar = $( widget );
-
-               ok( created_navigationbar, "Create" );
-
-               /* Check Parameters */
-               equal( created_navigationbar.jqmData( "nstest-role" ), "header", "Basic test" );
-
-
-               if ( extendedValue ) {
-                       equal( created_navigationbar.find( "input" ).length, anchorCount, "Groupcontrol button test" );
-               } else {
-                       equal( created_navigationbar.children( "a" ).length, anchorCount, "button test" );
-               }
-
-               /* Check APIs */
-       };
-
-       test( "navigationbar no button test", function () {
-               unit_navigationbar( $("#normalnavigation1"), 0 );
-       });
-
-       test( "navigationbar one button test", function () {
-               unit_navigationbar( $("#normalnavigation2"), 1 );
-       });
-
-       test( "navigationbar two button test", function () {
-               unit_navigationbar( $("#normalnavigation3"), 2 );
-       });
-
-       test( "navigationbar three button test", function () {
-               unit_navigationbar( $("#normalnavigation4"), 3 );
-       });
-
-       test( "navigationbar extended two button test", function () {
-               unit_navigationbar( $("#extendedstyle2btn"), 2, true );
-       });
-
-       test( "navigationbar extended three button test", function () {
-               unit_navigationbar( $("#extendedstyle3btn"), 3, true );
-       });
-
-       test( "navigationbar extended four button test", function () {
-               unit_navigationbar( $("#extendedstyle4btn"), 4, true );
-       });
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/notification/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/notification/index.html
deleted file mode 100755 (executable)
index bdef33e..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-       <script src="notification-tests.js"></script>
-
-       <title>Notification</title>
-</head>
-
-<body>
-
-<h1 id="qunit-header">Notification</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-
-<div id="qunit-fixture">
-
-       <div data-role="page" id="notifiaction0">
-               <div data-role="notification" id="smallpopup" data-type="popup" data-interval='1000'>
-                       <p>text1</p>
-               </div>
-               <div data-role="notification" id="smallpopup2" data-type="popup" data-interval='1000'>
-                       <p>text1</p>
-                       <p>text2</p>
-               </div>
-               <div data-role="notification" id="smallpopup3" data-type="popup" data-interval='1000'>                  
-               </div>
-               <div data-role="header" data-position="fixed">
-                       <h1>Notification</h1>
-               </div>
-               <div data-role="content">
-               </div>
-       </div>
-
-       <div data-role="page" id="notification1">
-               <div data-role="notification" id="tickernoti" data-type="ticker"  data-icon="02_icon.png" data-interval='5'>
-                       <p>text1</p>
-                       <p>text2</p>
-               </div>
-               <div data-role="notification" id="tickernoti2" data-type="ticker"  data-icon="02_icon.png" data-interval='5'>
-                       <p>text1</p>
-                       <p>text2</p>
-                       <p>text3</p>
-                       <p>text4</p>
-               </div>
-               <div data-role="notification" id="tickernoti3" data-type="ticker"  data-icon="02_icon.png" data-interval='5'>                   
-               </div>
-               <div data-role="header" data-position="fixed">
-                       <h1>Notification</h1>
-               </div>
-               <div data-role="content">
-               </div>
-       </div>
-       
-
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/notification/notification-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/notification/notification-tests.js
deleted file mode 100644 (file)
index 434ee6a..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-/*
- * Unit Test : Notification
- *
- * Minkyu Kang <mk7.kang@samsung.com>
- */
-/*jslint browser: true*/
-/*global $, jQuery, test, equal, ok*/
-(function ($) {
-       module("Notification");
-
-       var unit_notification = function ( widget, type ) {
-               var notification,
-                       elem = ".ui-" + type,
-                       text,
-                       closebutton;
-
-               /* Create */
-               widget.notification();
-
-               notification = widget.children( elem );
-               ok( notification, "Create");
-
-               /*markup check*/
-               if (type == ' ticker') {
-                       ok(notification.find('.ui-ticker-btn'), "makrup Check : Close button") ;
-                       ok(notification.find('.ui-ticker-btn').find(":jqmData(role=button)"), "makrup Check : Close button present") ;
-                       equal(notification.find('.ui-ticker-btn').find(":jqmData(role=button)").text(), 'Close', "makrup Check : Close button text") ;
-                       ok(notification.find('.ui-ticker').find(".ui.ticker-text1-bg"), "makrup Check : ticker text present") ;
-                       ok(notification.find('.ui-ticker').find(".ui.ticker-text2-bg"), "makrup Check : ticker text present") ;
-                       ok(notification.find('.ui-ticker').find("img.ui-ticker-icon").length > 0, "makrup Check : ticker icon present") ;
-               } else {
-                       ok(notification.find('.ui-smallpopup'), "makrup Check : smapll popup") ;
-                       ok(notification.find('.ui-smallpopup').find(".ui.smallpopup-text-bg"), "makrup Check : popup text present") ;
-               }
-
-               /* Open */
-               widget.notification("open");
-               notification = widget.children( elem );
-               ok( notification.hasClass("show"), "API : open");
-
-               /* Close */
-               widget.notification("close");
-               notification = widget.children( elem );
-               ok( notification.hasClass("hide"), "API : close");
-
-               /* hide when click */
-               widget.notification("open");
-               notification = widget.children( elem );
-
-               /*for coverage open notification when it is already open*/
-               widget.notification("open");
-               notification.trigger("vmouseup");
-               notification = widget.children( elem );
-               ok( notification.hasClass("hide"), "Hide when click the notification");
-
-               if ( type == ' ticker') {
-                       widget.notification("open");
-                       closebutton = widget.find(':jqmData(role=button)');
-                       closebutton.trigger("vmouseup");
-                       notification = widget.children( elem );
-                       ok( notification.hasClass("hide"), "Hide when click on the close button");
-               }
-
-               text = notification.children("p");
-               if ( type === "smallpopup") {
-                       ok( $( text[0] ).hasClass("ui-smallpopup-text-bg"), "Text");
-                       widget.notification('text', 'Text21');
-                       ok( $( text[0] ).hasClass("ui-smallpopup-text-bg"), "Text21");
-                       equal( widget.notification('text')[0], "Text21", "API : text - smallpopup");
-                       equal( text[0].innerHTML, "Text21", "API : text - smallpopup");
-               } else {
-                       ok( $( text[0] ).hasClass("ui-ticker-text1-bg"), "Top Text");
-                       ok( $( text[1] ).hasClass("ui-ticker-text2-bg"), "Bottom Text");
-
-                       widget.notification('text', 'Text31', 'Text32');
-                       ok( $( text[0] ).hasClass("ui-ticker-text1-bg"), "Text31", "API : text- ticker");
-                       ok( $( text[1] ).hasClass("ui-ticker-text2-bg"), "Text32", "API : text- ticker");
-                       equal( text[0].innerHTML, "Text31", "API : text - ticker");
-                       equal( text[1].innerHTML, "Text32", "API : text - ticker");
-                       equal( widget.notification('text')[0], "Text31", "API : text - ticker");
-                       equal( widget.notification('text')[1], "Text32", "API : text - ticker");
-
-                       /*icon*/
-                       equal(widget.jqmData('icon'), '02_icon.png', "API : icon , initial check") ;
-                       widget.notification('icon', '03_icon.png');
-                       equal(widget.find('img').attr("src"), '03_icon.png', "API : icon , new icon is set") ;
-               }
-               /*destroy*/
-               widget.notification("destroy");
-               notification = widget.children( elem );
-               ok( !notification.hasClass("show") || !notification.hasClass("hide"), "destroy check");
-       };
-
-       test("smallpopup", function () {
-               $('#notifiaction0').page();
-               unit_notification( $("#smallpopup"), "smallpopup");
-               unit_notification( $("#smallpopup2"), "smallpopup");
-               unit_notification( $("#smallpopup3"), "smallpopup");
-       });
-
-       test("tickernoti", function () {
-               $('#notifiaction1').page();
-               unit_notification( $("#tickernoti"), "ticker");
-               unit_notification( $("#tickernoti2"), "ticker");
-               unit_notification( $("#tickernoti3"), "ticker");
-       });
-}( jQuery ));
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/page/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/page/index.html
deleted file mode 100755 (executable)
index 75005ed..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-
-  <script src="page-tests.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Page Tests</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div id="main_page" data-nstest-role="page">
-       <div data-role="header" data-nstest-position="inline">
-               <h1>Page Test - markup</h1>
-       </div>
-       <div data-role="content">
-       </div>
-       <div data-role="footer">
-       </div>
-</div>
-
-<div id="main_page_back" data-nstest-role="page" data-add-back-btn="true">
-       <div data-role="header" data-nstest-position="inline">
-               <h1>Page Test - markup</h1>
-       </div>
-       <div data-role="content">
-       </div>
-       <div data-role="footer">
-       </div>
-</div>
-
-<div id="main_page_back_header" data-nstest-role="page" data-add-back-btn="header">
-       <div data-role="header" data-nstest-position="inline">
-               <h1>Page Test - markup</h1>
-       </div>
-       <div data-role="content">
-       </div>
-       <div data-role="footer">
-       </div>
-</div>
-
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/page/page-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/page/page-tests.js
deleted file mode 100755 (executable)
index b98f199..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * page unit tests
- */
-
-(function ($) {
-       $.mobile.defaultTransition = "none";
-
-       module( "Page" );
-
-       var unit_page = function ( widget, backoption ) {
-               var created_page = widget.page();
-
-               /* Create */
-               ok( created_page, "Create" );
-
-               equal( created_page.children(".ui-footer" ).length, 1, "check if fixed bar exist" );
-
-               if ( backoption  ) {
-                       equal( created_page.children(".ui-" + backoption ).find( "a" ).hasClass( "ui-btn-back" ), true );
-               }
-       };
-
-       test( "Basic page create test", function () {
-               unit_page( $("#main_page") );
-       });
-
-       test( "Back button page create test", function () {
-               unit_page( $("#main_page_back"), "footer" );
-       });
-
-       test( "Back button page create test - header", function () {
-               unit_page( $("#main_page_back_header"), "header" );
-       });
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/popupwindow/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/popupwindow/index.html
deleted file mode 100755 (executable)
index 79237da..0000000
+++ /dev/null
@@ -1,253 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-       <script src="popup-tests.js"></script>
-
-       <title>Popup Window</title>
-</head>
-
-<body>
-
-<h1 id="qunit-header">Popup Window</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-
-<div id="qunit-fixture">
-
-       <div data-role="page" id="popupwindow">
-               <div data-role="header" data-position="fixed">
-                       <h1>Popup Window</h1>
-               </div>
-               <div data-role="content">
-               
-                   <div data-role="button" id="popupbutton">Text Button</div>
-                       
-                       <div id="center_info" data-role="popup"  data-position-to='window' class="center_info" data-style='center_info' >
-                               <p class="ui-popup-title">title</p>
-                               <p  class="ui-popup-text">text</p>
-                       </div>
-
-                       <div id="center_title" data-role="popup"  data-position-to='window' class="center_title">
-                               <p class="ui-popup-title">title</p>
-                               <p class="ui-popup-text">text</p>
-                       </div>
-
-                       <div id="center_basic_1btn" data-role="popup"  data-position-to='window' class ="center_basic_1btn">
-                       <p class="ui-popup-title">title</p>
-                               <p  class="ui-popup-text">text</p>
-                               <div class="ui-popup-button-bg">
-                                       <input data-role="button" value="button" />
-                               </div>
-                       </div>
-
-                       <div id="center_title_1btn" data-role="popup"  data-position-to='window' class="center_title_1btn">
-                               <p class="ui-popup-title">title</p>
-                               <p  class="ui-popup-text">text</p>
-                               <div class="ui-popup-button-bg">
-                                       <input data-role="button" value="button" />
-                               </div>
-                       </div>
-                       
-                       
-                       <!-- Social Magazine font popup -->
-               <div id="center_social_style1" data-role="popup"  data-position-to='window' class="center_liststyle_2btn">
-                       <p class="ui-popup-title">title</p>
-                               <p  class="ui-popup-text">text</p>
-                                       <div class="ui-popup-scroller-bg" data-scroll="y"  style="height:auto">
-                                               <ul data-role="listview">
-                                                       <li class="ui-li-has-radio" id="text_fontSmall">
-                                                               <a href="#">
-                                                               <input type="radio" name="radio-choice-1" id="fontSmall" value="choice-1"/>
-                                                               text_Small</a>
-                                                       </li>
-                                                       <li class="ui-li-has-radio" id="text_fontMedium">
-                                                               <a href="#">
-                                                               <input type="radio" name="radio-choice-1" id="fontMedium" value="choice-2"/>
-                                                               text_Medium</a>
-                                                       </li>
-                                                       <li class="ui-li-has-radio" id="text_fontLarge">
-                                                               <a href="#">
-                                                               <input type="radio" name="radio-choice-1" id="fontLarge" value="choice-3"/>
-                                                               text_Large</a>
-                                                       </li>
-                                               </ul>
-                                       </div>
-                                       <div class="ui-popup-button-bg">
-                                               <div data-role="button"  data-inline="true">OK</div>
-                                               <div data-role="button"  data-inline="true">Cancel</div>
-                                       </div>
-               </div>
-
-               <!-- Social Magazine ime popup -->
-               <div id="center_social_style2" data-role="popup"  data-position-to='window' class="center_title_2btn">
-                       <p class="ui-popup-title">title</p>
-                               <p  class="ui-popup-text">text</p>
-                       <div class="ui-popup-text">
-                                               <input type="text" id="newCategoryPopupInput" name="newCategoryName" size="30" />
-                       </div>
-                                       <div class="ui-popup-button-bg">
-                                               <div data-role="button"  data-inline="true">OK</div>
-                                               <div data-role="button"  data-inline="true">Cancel</div>
-                                       </div>
-               </div>
-
-               
-
-
-
-               <!-- Center basic 2 button popup -->
-               <div id="center_basic_2btn" data-role="popup"  data-position-to='window' class="center_basic_2btn">
-                       <p class="ui-popup-title">title</p>
-                               <p  class="ui-popup-text">text</p>
-                       <div class="ui-popup-button-bg">
-                               <div data-role="button"  data-inline="true">Button1</div>
-                               <div data-role="button"  data-inline="true">Button2</div>
-                       </div>
-               </div>
-
-               <!-- Center basic 3 button popup -->
-               <div id="center_basic_3btn" data-role="popup"  data-position-to='window' class="center_basic_3btn">
-                       <p class="ui-popup-title">title</p>
-                               <p  class="ui-popup-text">text</p>
-                       <div class="ui-popup-button-bg">
-                                       <div data-role="button"  data-inline="true">Button1</div>
-                                       <div data-role="button"  data-inline="true">Button2</div>
-                                       <div data-role="button"  data-inline="true">Button3</div>
-                       </div>
-               </div>
-
-
-               <!-- Center title 2 button popup -->
-               <div id="center_title_2btn" data-role="popup"  data-position-to='window' class="center_title_2btn">
-                       <div class="ui-popup-title">title</div>
-                       <div class="ui-popup-text">text</div>
-                       <div class="ui-popup-button-bg">
-                               <div data-role="button"  data-inline="true">Button1</div>
-                               <div data-role="button"  data-inline="true">Button2</div>
-                       </div>
-               </div>
-
-               <!-- Center title 3 button popup -->
-               <div id="center_title_3btn" data-role="popup"  data-position-to='window' class="center_title_3btn">
-                       <div class="ui-popup-title">title</div>
-                       <div class="ui-popup-text">text</div>
-                       <div class="ui-popup-button-bg">
-                               <div data-role="button"  data-inline="true">Button1</div>
-                               <div data-role="button"  data-inline="true">Button2</div>
-                               <div data-role="button"  data-inline="true">Button3</div>
-                       </div>
-               </div>
-
-               <!-- Center button vertical -->
-               <div id="center_button_vertical" data-role="popup"  data-position-to='window' class="center_button_vertical">
-                       <p class="ui-popup-title">title</p>
-                               <p  class="ui-popup-text">text</p>
-                       <div class="ui-popup-button-bg">
-                               <div data-role="button"  data-inline="true">Rename</div>
-                               <div data-role="button"  data-inline="true">Replace</div>
-                               <div data-role="button"  data-inline="true">Cancel</div>
-                       </div>
-               </div>
-
-               <!-- popup checkbox  -->
-               <div id="center_checkbox" data-role="popup"  data-position-to='window' class="center_checkbox">
-                       <p class="ui-popup-title">title</p>
-                               <p  class="ui-popup-text">text</p>
-                       <div class="ui-popup-check-bg">
-                               <input type="checkbox" name="checkbox-1" id="checkbox-1" class="custom" />
-                               <label for="checkbox-1">Don't ask again</label>
-                       </div>
-                       <div class="ui-popup-button-bg">
-                               <div data-role="button"  data-inline="true">Rename</div>
-                               <div data-role="button"  data-inline="true">Replace</div>
-                       </div>
-               </div>
-
-               <!-- popup liststyle 1 button -->
-               <div id="center_liststyle_1btn" data-role="popup"  data-position-to='window' class="center_liststyle_1btn">
-                       <p class="ui-popup-title">title</p>
-                               <p  class="ui-popup-text">text</p>
-                       <div class="ui-popup-scroller-bg" data-scroll="y">
-                               <ul data-role="listview" data-icon="1line-textonly">
-                                       <li><a href="#">List item 1</a></li>
-                                       <li><a href="#">List item 2</a></li>
-                                       <li><a href="#">List item 3</a></li>
-                                       <li><a href="#">List item 4</a></li>
-                                       <li><a href="#">List item 5</a></li>
-                                       <li><a href="#">List item 6</a></li>
-                                       <li><a href="#">List item 7</a></li>
-                                       <li><a href="#">List item 8</a></li>
-                                       <li><a href="#">List item 9</a></li>
-                               </ul>
-                       </div>
-                       <div class="ui-popup-button-bg">
-                               <div data-role="button"  data-inline="true">Cancel</div>
-                       </div>
-               </div>
-
-               <!-- popup liststyle 2 button -->
-               <div id="center_liststyle_2btn" data-role="popup"  data-position-to='window' class="center_liststyle_2btn">
-                       <p class="ui-popup-title">title</p>
-                               <p  class="ui-popup-text">text</p>
-                       <div class="ui-popup-scroller-bg" data-scroll="y">
-                               <ul data-role="listview" data-icon="1line-textonly">
-                                       <li><a href="#">List item 1</a></li>
-                                       <li><a href="#">List item 2</a></li>
-                                       <li><a href="#">List item 3</a></li>
-                                       <li><a href="#">List item 4</a></li>
-                                       <li><a href="#">List item 5</a></li>
-                                       <li><a href="#">List item 6</a></li>
-                                       <li><a href="#">List item 7</a></li>
-                                       <li><a href="#">List item 8</a></li>
-                                       <li><a href="#">List item 9</a></li>
-                               </ul>
-                       </div>
-                       <div class="ui-popup-button-bg">
-                               <div data-role="button"  data-inline="true">Ok</div>
-                               <div data-role="button"  data-inline="true">Cancel</div>
-                       </div>
-               </div>
-
-               <!-- popup liststyle 3 button -->
-               <div id="center_liststyle_3btn" data-role="popup"  data-position-to='window' class="center_liststyle_3btn">
-               <p class="ui-popup-title">title</p>
-                               <p  class="ui-popup-text">text</p>
-                       <div class="ui-popup-scroller-bg" data-scroll="y">
-                               <ul data-role="listview" data-icon="1line-textonly">
-                                       <li><a href="#">List item 1</a></li>
-                                       <li><a href="#">List item 2</a></li>
-                                       <li><a href="#">List item 3</a></li>
-                                       <li><a href="#">List item 4</a></li>
-                                       <li><a href="#">List item 5</a></li>
-                                       <li><a href="#">List item 6</a></li>
-                                       <li><a href="#">List item 7</a></li>
-                                       <li><a href="#">List item 8</a></li>
-                                       <li><a href="#">List item 9</a></li>
-                               </ul>
-                       </div>
-                       <div class="ui-popup-button-bg">
-                               <div data-role="button"  data-inline="true">Rename</div>
-                               <div data-role="button"  data-inline="true">Replace</div>
-                               <div data-role="button"  data-inline="true">Cancel</div>
-                       </div>
-               </div>
-
-               </div>
-       </div>
-
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/popupwindow/popup-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/popupwindow/popup-tests.js
deleted file mode 100644 (file)
index 3a3f2db..0000000
+++ /dev/null
@@ -1,112 +0,0 @@
-/*
- * Unit Test : Popup window
- *
- * Minkyu Kang <mk7.kang@samsung.com>
- */
-/*jslint browser: true*/
-/*global $, jQuery, test, equal, ok*/
-$( document ).bind( "pageshow", function ( ) {
-
-       module("Popup Window" );
-       var unit_popup = function ( widget, type, buttoncount ) {
-
-               var popupbeforepositionEvent = 0,
-                       popupafteropenEvent = 0,
-                       popupaftercloseEvent = 0,
-                       buttonList,
-                       popupwindow = function ( widget ) {
-                               return widget.parent('.ui-popup-container') ;
-                       },
-                       check_text = function ( widget, selector, type ) {
-                               if ( !widget.find( selector ).length ) {
-                                       return;
-                               }
-                               equal( widget.find( selector ).text( ), type, type );
-                       };
-
-               $('#popupbutton').unbind('vclick') ;
-               $('#popupbutton').bind('vclick', function ( ) {
-                       widget.popup("open", {positionTo : 'window', transition : 'none', x : '0', y : '0', link : widget } );
-               } ) ;
-
-               /* Create */
-               widget.popup( );
-               ok( popupwindow( widget ), "Create" );
-
-               /* Open */
-               $('#popupbutton').trigger('vclick') ;
-               ok( parseInt( popupwindow( widget ).css("top" ), 10 ) > 0, "API : open" );
-
-               /* Close */
-               widget.popup("close" );
-               ok( popupwindow( widget ).hasClass("ui-selectmenu-hidden" ) ||
-                               popupwindow( widget ).hasClass("reverse out" ),
-                               "API : close" );
-
-               /* Close the popup by click the screen */
-               $('#popupbutton').trigger('vlick') ;
-               $(".ui-selectmenu-screen" ).trigger("vclick" );
-               ok( popupwindow( widget ).hasClass("ui-selectmenu-hidden" ) || popupwindow( widget ).hasClass("reverse out" ), "Close the popup by click the screen" );
-
-               /* Check Texts */
-               if ( widget.find(".ui-popup-text" ) != undefined ) {
-                       equal( widget.find(".ui-popup-text" ).html( ), "text" );
-               }
-               if ( widget.find(".ui-popup-title" ) != undefined ) {
-                       equal( widget.find(".ui-popup-title" ).html( ), "title" );
-               }
-
-               buttonList = widget.find(":jqmData(role=button )" ) ;
-               equal( buttonList.length, buttoncount, "Button count correct" );
-
-       };
-
-       $("#popupwindow" ).page( );
-
-       test( "Center Title", function ( ) {
-               unit_popup( $("#center_title" ), "center_title" , 0 );
-       } );
-       test( "Center Info", function ( ) {
-               unit_popup( $("#center_info" ), "center_info", 0 );
-       } );
-       test( "Center Basic 1 Button", function ( ) {
-               unit_popup( $("#center_basic_1btn" ), "center_basic_1btn" , 1 );
-       } );
-       test( "Center Title 1 Button", function ( ) {
-               unit_popup( $("#center_title_1btn" ), "center_title_1btn" , 1 );
-       } );
-       test( "Center social style", function ( ) {
-               unit_popup( $("#center_social_style1" ), "center_liststyle_2btn" , 2 );
-       } );
-       test( "center_social_style2", function ( ) {
-               unit_popup( $("#center_social_style2" ), "center_title_2btn" , 2 );
-       } );
-       test( "center_basic_2btn", function ( ) {
-               unit_popup( $("#center_basic_2btn" ), "center_basic_2btn" , 2 );
-       } );
-       test( "center_basic_3btn", function ( ) {
-               unit_popup( $("#center_basic_3btn" ), "center_basic_3btn" , 3 );
-       } );
-       test( "center_title_2btn", function ( ) {
-               unit_popup( $("#center_title_2btn" ), "center_title_2btn" , 2 );
-       } );
-       test( "Center_title_3btn", function ( ) {
-               unit_popup( $("#center_title_3btn" ), "center_title_3btn" , 3 );
-       } );
-       test( "center_button_vertical", function ( ) {
-               unit_popup( $("#center_button_vertical" ), "center_button_vertical" , 3 );
-       } );
-       test( "Center_checkbox", function ( ) {
-               unit_popup( $("#center_checkbox" ), "center_checkbox" , 2 );
-       } );
-       test( "center_liststyle_1btn", function ( ) {
-               unit_popup( $("#center_liststyle_1btn" ), "center_liststyle_1btn" , 1 );
-       } );
-       test( "center_liststyle_2btn", function ( ) {
-               unit_popup( $("#center_liststyle_2btn" ), "center_liststyle_2btn" , 2 );
-       } );
-       test( "center_liststyle_3btn", function ( ) {
-               unit_popup( $("#center_liststyle_3btn" ), "center_liststyle_3btn" , 3 );
-       } );
-
-} );
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/popupwindow_ctxpopup/ctxpopup-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/popupwindow_ctxpopup/ctxpopup-tests.js
deleted file mode 100644 (file)
index 8fce173..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-$(document).ready( function () {
-
-       module( "CtxPopup" );
-       asyncTest( "Auto-initialization", function () {
-               $.testHelper.pageSequence( [
-                       function () {
-                               var plain = $("#pop_plain"),
-                                       plainBtn = $("#btn_plain"),
-                                       horizontal = $("#pop_horizontal"),
-                                       horizontalBtn = $("#btn_horizontal"),
-                                       buttons = $("#pop_buttons"),
-                                       buttonsBtn = $("#btn_buttons"),
-                                       notCtxpopup  = $("#pop_not"),
-                                       notCtxpopupBtn = $("#btn_not");
-
-                               ok( plain.data( "ctxpopup" ), "should Normal type ctxpopup created" );
-                               ok( horizontal.data( "ctxpopup" ), "should Horizontal type ctxpopup created" );
-                               ok( buttons.data( "ctxpopup" ), "should Button type ctxpopup created" );
-                               ok( !notCtxpopup.data( "ctxpopup" ), "should wihthout arrow ctxpopup not created" );
-                       },
-
-                       function () {
-                               expect( 4 );
-                               start();
-                       }
-               ]);
-       });
-
-       // ctxpopup shares code with popupwindow so only tests ctxpopup specific codes
-       asyncTest( "Open and Placements", function () {
-               $.testHelper.pageSequence( [
-                       function () {
-                               var plain = $("#pop_plain").ctxpopup(),
-                                       horizontal = $("#pop_horizontal").ctxpopup(),
-                                       buttons = $("#pop_buttons").ctxpopup();
-
-                               function placementsTest( popup ) {
-                                       var width = $(window).width(),
-                                               height = $(window).height(),
-                                               x = 0,
-                                               y = 0,
-                                               parents = popup.parents(".ui-popupwindow"),
-                                               popDim,
-                                               popPosX = 0,
-                                               popPosY = 0,
-                                               segment = 5,
-                                               closed = 0,
-                                               open = 0;
-
-                                       popup.bind( "popupafterclose", function () {
-                                               // tests event trigger
-                                               closed++;
-                                               if ( closed == open ) {
-                                                       equal( closed, open, "should 'popupafterclose' triggered." );
-                                                       start();
-                                               }
-                                       });
-
-                                       while ( y <= height ) {
-                                               while ( x <= width ) {
-                                                       popup.popupwindow( "open", x, y );
-                                                       open++;
-                                                       popPosX = parseInt( parents.css("left") );
-                                                       popPosY = parseInt( parents.css("top") );
-                                                       popDim = {
-                                                               width: parents.width(),
-                                                               height: parents.height()
-                                                       };
-
-                                                       if ( popPosX < 0 || popPosY < 0 || popPosX > (width - popDim.width) || popPosY > (height - popDim.height) ) {
-                                                               throw "Pop up occured at wrong position: (" + popPosX + "," + popPosY + "," + popDim.width + "," + popDim.height + ")";
-                                                       }
-
-                                                       popup.popupwindow( "close" );
-                                                       x += width / segment;
-                                               }
-                                               y += height / segment;
-                                               x = 0;
-                                       }
-                                       setTimeout( function() {
-                                               if ( closed != open )
-                                                       throw "  Error, popupafterclose event was not triggering ";
-                                       }, 1000 * 10 );
-                                       stop();
-                                       return true;
-                               }
-
-                               var testee = [
-                                       { name: "Plain", popup: plain },
-                                       { name: "Horizontal", popup: horizontal },
-                                       { name: "Buttons", popup: buttons }
-                               ];
-
-                               for ( var i = 0; i < testee.length; i++ ) {
-                                       ok( placementsTest( testee[i].popup ), "should " + testee[i].name + " pop up within window area" );
-                               }
-                       },
-
-                       function () {
-                               expect( 6 );
-                               start();
-                       }
-               ]);
-       });
-});
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/popupwindow_ctxpopup/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/popupwindow_ctxpopup/index.html
deleted file mode 100644 (file)
index aac0f71..0000000
+++ /dev/null
@@ -1,98 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-       <script src="../../../libs/js/jquery-mobile-1.1.0/tests/jquery.testHelper.js"></script>
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-       <script src="ctxpopup-tests.js"></script>
-
-       <title>Contextual Popup</title>
-</head>
-
-<body>
-
-<h1 id="qunit-header">Contextual Popup</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-
-<div id="qunit-fixture">
-       <div data-role="page" id="page-1">
-               <div data-role="header" data-position="fixed">
-                       <h1>Contextual Popup</h1>
-               </div>
-               <div data-role="content">
-                       <a href="#pop_plain" id="btn_plain" data-role="button" data-inline="true" data-rel="popupwindow">Pop_1</a>
-                       <div id="pop_plain" data-role="popupwindow" data-show-arrow="true">
-                               <ul data-role="listview">
-                                       <li class="ui-li-1line-bigicon">
-                                               <span class="ui-li-text-main">Dummy 1</span>
-                                       </li>
-                                       <li class="ui-li-1line-bigicon">
-                                               <span class="ui-li-text-main">Dummy 2</span>
-                                       </li>
-                               </ul>
-                       </div>
-                       <a href="#pop_horizontal" id="btn_horizontal" data-role="button" data-inline="true" data-rel="popupwindow">Pop 2</a>
-                       <div id="pop_horizontal" class="horizontal" data-role="popupwindow" data-show-arrow="true">
-                               <ul>
-                                       <li class="icon">
-                                               <a href="#" data-role="button" data-icon="call"></a>
-                                       </li>
-                                       <li class="icon">
-                                               <a href="#" data-role="button" data-icon="favorite"></a>
-                                       </li>
-                                       <li class="text">
-                                               <a href="#">Function</a>
-                                       </li>
-                               </ul>
-                       </div>
-                       <a href="#pop_buttons" id="btn_buttons" data-role="button" data-inline="true" data-rel="popupwindow">Pop 3</a>
-                       <div id="pop_buttons" class="button" data-role="popupwindow" data-show-arrow="true">
-                               <table>
-                                       <tr>
-                                               <td>
-                                                       <a href="#" data-role="button">A</a>
-                                               </td>
-                                               <td>
-                                                       <a href="#" data-role="button">B</a>
-                                               </td>
-                                               <td>
-                                                       <a href="#" data-role="button">C</a>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td>
-                                                       <a href="#" data-role="button">D</a>
-                                               </td>
-                                               <td>
-                                                       <a href="#" data-role="button">E</a>
-                                               </td>
-                                               <td>
-                                                       <a href="#" data-role="button">F</a>
-                                               </td>
-                                       </tr>
-                               </table>
-                       </div>
-                       <a href="#pop_not" id="btn_not" data-role="button" data-inline="true" data-rel="popupwindow">Pop 4</a>
-                       <div id="pop_not" data-role="popupwindow">
-                               <div>
-                                       <span>Dummy</span>
-                               </div>
-                       </div>
-               </div>
-       </div>
-
-</div>
-
-</body>
-</html>
-
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/progress/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/progress/index.html
deleted file mode 100755 (executable)
index ac6cf2a..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-       <script src="progress-tests.js"></script>
-
-       <title>Progress</title>
-</head>
-
-<body>
-
-<h1 id="qunit-header">Progressbar</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-
-<div id="qunit-fixture">
-
-       <div data-role="page" id="progress_demo">
-               <div data-role="header" data-position="fixed">
-                       <h1>Progressbar</h1>
-               </div>
-               <div data-role="content">
-                       <ul data-role="listview">
-                               <li><div data-role="progressing" data-style="pending" id="pending"></div></li>
-                               <li><div data-role="progressing" data-style="circle" id="progressing"></div></li>
-                       </ul>
-               </div>
-       </div>
-
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/progress/progress-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/progress/progress-tests.js
deleted file mode 100644 (file)
index 8ffe234..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Unit Test: Progress
- *
- * Minkyu Kang <mk7.kang@samsung.com>
- */
-
-(function ($) {
-       module("Progress");
-
-       var unit_progress = function ( widget, type ) {
-               var progress,
-                       elem = ".ui-progress-" + type,
-                       _class = "ui-progress-" + type + "-running";
-
-               widget.progress();
-
-               /* Create */
-               progress = widget.find( elem );
-               ok( progress, "Create" );
-
-               /* Option */
-               equal( widget.progress( "option", "style" ), type, "Option: style" );
-
-               /* Running */
-               widget.progress( "running", true );
-               progress = widget.find( elem );
-               equal( progress.hasClass( _class ), true, "API: running" );
-
-               /* Stop */
-               widget.progress( "running", false );
-               progress = widget.find( elem );
-               equal( progress.hasClass( _class ), false, "API: stop" );
-       };
-
-       test( "pending bar", function () {
-               unit_progress( $("#pending"), "pending" );
-       });
-
-       test( "processing circle", function () {
-               unit_progress( $("#progressing"), "circle" );
-       });
-}( jQuery ));
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/progressbar/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/progressbar/index.html
deleted file mode 100755 (executable)
index 6340982..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-       <script src="progressbar-tests.js"></script>
-
-       <title>Progressbar</title>
-</head>
-
-<body>
-
-<h1 id="qunit-header">Progressbar</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-
-<div id="qunit-fixture">
-
-       <div data-role="page" id="progressbar_demo">
-               <div data-role="header" data-position="fixed">
-                       <h1>Progressbar</h1>
-               </div>
-               <div data-role="content">
-                       <ul data-role="listview">
-                               <li><div data-role="progressbar" id="progressbar"></div></li>
-                       </ul>
-               </div>
-       </div>
-
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/progressbar/progressbar-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/progressbar/progressbar-tests.js
deleted file mode 100644 (file)
index 1b75bc2..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Unit Test: Progressbar
- *
- * Minkyu Kang <mk7.kang@samsung.com>
- */
-
-(function ($) {
-       module("Progressbar");
-
-       var unit_progressbar = function ( widget ) {
-               var progress,
-                       i,
-                       value,
-                       get_width = function ( widget ) {
-                               return widget.progressbar( "option", "value" );
-                       };
-
-               widget.progressbar();
-
-               /* Create */
-               equal( widget.hasClass("ui-progressbar"), true, "Create" );
-
-               /* Value */
-               for (i = 0; i < 5; i++) {
-                       value = Math.floor( Math.random() * 100 );
-                       widget.progressbar( "value", value );
-                       equal( get_width( widget ), value, "API: value" );
-               }
-       };
-
-       test( "progressbar", function () {
-               unit_progressbar( $("#progressbar") );
-       });
-}( jQuery ));
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/radio/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/radio/index.html
deleted file mode 100644 (file)
index 9488116..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-
-       <script src="radio-tests.js"></script>
-       <title>Radio</title>
-</head>
-
-<body>
-
-<h1 id="qunit-header">Radio</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-
-<div id="qunit-fixture">
-       <div data-role="page" id="radiopage">
-               <div>
-                       <input type="radio" name="radio-single" id="radio-single-1" value="Normal" />
-                       <label for="radio-single-1">Normal</label>
-                       <input type="radio" name="radio-2" id="radio-single-2" checked="checked" disabled="disabled" value="Checked, Disabled" />
-                       <label for="radio-single-2">Checked, Disabled</label>
-                       <input type="radio" name="radio-3" id="radio-single-3" disabled="disabled" value="Disabled" />
-                       <label for="radio-single-3">Disabled</label>
-
-                       <fieldset id="controlgroup" data-role="controlgroup">
-                               <input type="radio" name="radio-choice" id="radio-choice-1" value="Cat"  />
-                               <label for="radio-choice-1">Cat</label>
-
-                               <input type="radio" name="radio-choice" id="radio-choice-2" value="Dog" />
-                               <label for="radio-choice-2">Dog</label>
-
-                               <input type="radio" name="radio-choice" id="radio-choice-3" value="Hamster" />
-                               <label for="radio-choice-3">Hamster</label>
-
-                               <input type="radio" name="radio-choice" id="radio-choice-4" value="Lizard" />
-                               <label for="radio-choice-4">Lizard</label>
-                       </fieldset>
-
-                       <fieldset id="controlgroup2" data-type="horizontal" data-role="controlgroup">
-                               <input type="radio" name="radio-choice2" id="radio-choiceh-1" value="Cat"  />
-                               <label for="radio-choiceh-1">Cat</label>
-
-                               <input type="radio" name="radio-choice2" id="radio-choiceh-2" value="Dog" />
-                               <label for="radio-choiceh-2">Dog</label>
-
-                               <input type="radio" name="radio-choice2" id="radio-choiceh-3" value="Hamster" />
-                               <label for="radio-choiceh-3">Hamster</label>
-
-                               <input type="radio" name="radio-choice2" id="radio-choiceh-4" value="Lizard" />
-                               <label for="radio-choiceh-4">Lizard</label>
-                       </fieldset>
-               </div>
-       </div>
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/radio/radio-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/radio/radio-tests.js
deleted file mode 100644 (file)
index 17cc054..0000000
+++ /dev/null
@@ -1,109 +0,0 @@
-/*
- * Unit Test: Radio
- *
- * Hyunjung Kim <hjnim.kim@samsung.com>
- *
- */
-$( "#radiopage" ).live( "pageinit", function(event) {
-
-       module("Radio");
-
-       /* Single Radio */
-       var unit_radio = function ( input , type ) {
-               var radio,
-                       label,
-                       checkClass,
-                       labelSpan,
-                       radioClassPrefix = "ui-radio";
-
-               radio = input.parent();
-               ok( radio.hasClass( radioClassPrefix ) , "Create - Single Radio Button" );
-
-               label = radio.find( "label" );
-               label.trigger( "vclick" );
-               checkClass = radioClassPrefix + "-on";
-               if( !input.is( ":checked" ) ) {
-                       checkClass = radioClassPrefix + "-off";
-               }
-               ok( label.hasClass( checkClass ), "Click - Radio button" );
-
-               labelSpan = label.children().children();
-               ok( labelSpan.first().is( ".ui-btn-text, .ui-btn-text-padding-left" ), "Okay - Label Padding" );
-
-               if ( !input.is( ":disabled" ) ) {
-                       label.trigger( "vclick" );
-               }
-
-               // Text Trim, Cause jQueryMobile(JQM) 1.1 forced to add - "\u00a0" in buttonIcon(ButtonMarkup)
-               // JQM 1.1 buttonMarkup code :
-               // - if( buttonIcon ) buttonIcon.appendChild( document.createTextNode( "\u00a0" ) );
-               equal( labelSpan.text().trim(), input.val(), "Label Text" );
-       };
-
-       /* Group Radio */
-       var unit_radio_group = function ( fieldset , type ) {
-               var type,
-                       radios,
-                       label,
-                       labels;
-
-               type = fieldset.jqmData( "type" );
-               if( type === undefined ) {
-                       type = "vertical";
-               }
-               ok( fieldset.is( ".ui-corner-all, .ui-controlgroup, .ui-controlgroup-" + type ) , "Create - ControlGroup" );
-
-               if( type == "horizontal" ) {
-                       labels = fieldset.find( "span.ui-btn-text" ).each( function () {
-                               ok( ( $( this ).siblings().length == 0 && $( this ).hasClass( "ui-btn-text" ) ) ? true : false, "Alignment - ControlGroup(Horizontal, Single Radio)" );
-                       });
-               }
-
-               radios = fieldset.find( "input[type='radio']" );
-               radios.each( function() {
-                       unit_radio( $( this ) , "Normal" );
-               });
-
-               ok( function() {
-                               try{
-                                       for ( i = 0 ; i < raidos.lenght ; i++ ) {
-                                               label = radios[i].find( "label" );
-                                               label.trigger( "vclick" );
-                                               if( !label.hasClass( "ui-radio-on" ) ){
-                                                       throw "error - other button activate";
-                                               }
-                                               for ( j = 0 ; j < radios.lenght ; j++) {
-                                                       if( i == j) continue;
-                                                       label = radios[j].find( "label" );
-                                                       if( label.hasClass( "ui-radio-on" ) ) {
-                                                               throw "error - other button activate";
-                                                       }
-                                               }
-                                       }
-                               } catch ( Exception ) {
-                                       return false;
-                               }
-                               return true;
-               }, "Click - Radio Button( Group )" );
-       };
-
-       test( "radiobutton - Single" , function () {
-               unit_radio( $("#radio-single-1") , "Normal" );
-       });
-
-       test( "radiobutton - Single, Checked, Disabled" , function () {
-               unit_radio( $("#radio-single-2") , "Checked, Disabled" );
-       });
-
-       test( "radiobutton - Single, Disabled" , function () {
-               unit_radio( $("#radio-single-3") , "Disabled" );
-       });
-
-       test( "radiobutton - Group" , function() {
-               unit_radio_group( $("#controlgroup") , "Group" );
-       });
-
-       test( "radiobutton - Group, Horizontal" , function() {
-               unit_radio_group( $("#controlgroup2") , "Group - horizontal" );
-       });
-});
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/runner.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/runner.js
deleted file mode 100644 (file)
index 3efa3c5..0000000
+++ /dev/null
@@ -1,499 +0,0 @@
-$(document).ready(function() {
-       var Runner = function( ) {
-               var self = this,
-                                       currentModule,
-                                       currentTest,
-                                       assertCount,
-                                       currentRun = {
-                                               modules: [],
-                                               total: 0,
-                                               passed: 0,
-                                               failed: 0,
-                                               start: new Date(),
-                                               time: 0
-                                       };
-               $.extend( self, {
-                       frame: window.frames[ "testFrame" ],
-
-                       testTimeout: 3 * 60 * 1000,
-
-                       $frameElem: $( "#testFrame" ),
-
-                       assertionResultPrefix: "assertion result for test:",
-
-                       onTimeout: QUnit.start,
-
-                       onFrameLoad: function() {
-                               // establish a timeout for a given suite in case of async tests hanging
-                               self.testTimer = setTimeout( self.onTimeout, self.testTimeout );
-
-                               // it might be a redirect with query params for push state
-                               // tests skip this call and expect another
-                               if( !self.frame.QUnit ) {
-                                       self.$frameElem.one( "load", self.onFrameLoad );
-                                       return;
-                               }
-
-                               // when the QUnit object reports done in the iframe
-                               // run the onFrameDone method
-                               self.frame.QUnit.done = self.onFrameDone;
-                               self.frame.QUnit.testDone = self.onTestDone;
-                               self.frame.QUnit.log = self.onLog;
-                               self.frame.QUnit.begin = self.onBegin;
-                               self.frame.QUnit.moduleStart = self.onModuleStart;
-                               self.frame.QUnit.moduleDone = self.onModuleDone;
-                               self.frame.QUnit.testStart = self.onTestStart;
-                       },
-                       onBegin: function() {
-                               currentRun = {
-                                       modules: [],
-                                       total: 0,
-                                       passed: 0,
-                                       failed: 0,
-                                       start: new Date(),
-                                       time: 0
-                               };
-                       },
-                       onModuleStart: function( data ) {
-                               currentModule = {
-                                       name: data.name,
-                                       tests: [],
-                                       total: 0,
-                                       passed: 0,
-                                       failed: 0,
-                                       start: new Date(),
-                                       time: 0,
-                                       stdout: [],
-                                       stderr: []
-                               };
-                               currentRun.modules.push(currentModule);
-                       },
-                       onTestStart : function( data ) {
-                               if (!currentModule) {
-                                       currentModule = {
-                                               name: data.module || 'default',
-                                               tests: [],
-                                               total: 0,
-                                               passed: 0,
-                                               failed: 0,
-                                               start: new Date(),
-
-                                               time: 0,
-                                               stdout: [],
-                                               stderr: []
-                                       };
-                                       currentRun.modules.push(currentModule);
-                               }
-
-                               assertCount = 0;
-
-                               currentTest = {
-                                       name: data.name,
-                                       failedAssertions: [],
-                                       total: 0,
-                                       passed: 0,
-                                       failed: 0,
-                                       start: new Date(),
-                                       time: 0
-                               };
-
-                               currentModule.tests.push(currentTest);
-                       },
-                       onLog: function( data ){
-                               assertCount++;
-                               //if (!data.result) {
-                                       currentTest.failedAssertions.push(data);
-                                       currentModule.stdout.push('[' + currentModule.name + ', ' + currentTest.name + ', ' + assertCount + '] ' + data.message);
-                               //}
-                       },
-                       onTestDone: function( result ) {
-
-                               currentTest.time = (new Date()).getTime() - currentTest.start.getTime();  // ms
-                               currentTest.total = result.total;
-                               currentTest.passed = result.passed;
-                               currentTest.failed = result.failed;
-
-                               currentTest = null;
-
-                               QUnit.ok( !(result.failed > 0), result.name );
-                               self.recordAssertions( result.total - result.failed, result.name );
-                       },
-
-                       onModuleDone: function( result ) {
-                               currentModule.time = (new Date()).getTime() - currentModule.start.getTime();  // ms
-                               currentModule.total = result.total;
-                               currentModule.passed = result.passed;
-                               currentModule.failed = result.failed;
-
-                               currentModule = null;
-                       },
-
-                       onFrameDone: function( failed, passed, total, runtime ){
-                               // make sure we don't time out the tests
-                               clearTimeout( self.testTimer );
-
-                               // TODO decipher actual cause of multiple test results firing twice
-                               // clear the done call to prevent early completion of other test cases
-                               self.frame.QUnit.done = $.noop;
-                               self.frame.QUnit.testDone = $.noop;
-
-                               // hide the extra assertions made to propogate the count
-                               // to the suite level test
-                               self.hideAssertionResults();
-                               // continue on to the next suite
-                               QUnit.start();
-                       },
-
-                       getTestResult: function() {
-                               return currentRun;
-                       },
-
-                       recordAssertions: function( count, parentTest ) {
-                               for( var i = 0; i < count; i++ ) {
-                                       ok( true, self.assertionResultPrefix + parentTest );
-                               }
-                       },
-
-                       hideAssertionResults: function() {
-                               $( "li:not([id]):contains('" + self.assertionResultPrefix + "')" ).hide();
-                       },
-
-                       exec: function( data ) {
-                               var template = self.$frameElem.attr( "data-src" );
-
-                               $.each( data.testPages, function(i, dir) {
-                                       QUnit.asyncTest( dir, function() {
-                                               console.log('Test start: ' + dir);
-                                               self.dir = dir;
-                                               self.$frameElem.one( "load", self.onFrameLoad );
-                                               self.$frameElem.attr( "src", template.replace("{{testfile}}", dir + '/index.html') );
-                                       });
-                               });
-
-                               // having defined all suite level tests let QUnit run
-                               QUnit.start();
-                       }
-               });
-       };
-       var generateXML = function() {
-               var xmlData = [];
-               var xmlEncode = function(text) {
-                       var baseEntities = {
-                               '"' : '&quot;',
-                               '\'': '&apos;',
-                               '<' : '&lt;',
-                               '>' : '&gt;',
-                               '&' : '&amp;'
-                       };
-                       return ('' + text).replace(/[<>&\"\']/g, function(chr) {
-                               return baseEntities[chr] || chr;
-                       });
-               };
-               var Writer = function(en, run) {
-                       this.setHead = function() {
-                               xmlData.push('<?' + 'xml version="1.0" encoding="UTF-8"' + '?>\n');
-                               xmlData.push('<?xml-stylesheet type="text/xsl"  href="testresult.xsl"?>');
-                       };
-                       this.start = function() {
-                               xmlData.push('<test_definition name="http://tempuri.org" type="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="test_definition.xsd">');
-                       };
-                       this.end = function() {
-                               xmlData.push('</test_definition>');
-                       };
-                       this.elementStart = function( name , attribute ) {
-                               var elementString = '<' + name ;
-                               if( !attribute ) {
-                                       elementString += '>';
-                               } else {
-                                       for (var aname in attribute ) {
-                                               elementString + ' ' + xmlEncode(aname) + '="' + xmlEncode(attribute[aname]) + '"' ;
-                                       }
-                               }
-                               xmlData.push( elementString );
-                       };
-                       this.elementEnd = function( name ) {
-                               xmlData.push( '</' + name + '>' );
-                       };
-                       this.setenvironment = function( en ) {
-                               this.elementStart( 'environment', {
-                                       device_id: "",
-                                       device_model: "SDK, Target",
-                                       device_name: "Tizen",
-                                       host: navigator.userAgent,
-                                       os_version:"2.1", 
-                                       resolution: "", 
-                                       screen_size: $(window).height() + " x " + $(window).width()
-                               } );
-                               this.elementEnd( 'environment' );
-                       };
-                       this.setHead();
-                       this.start();
-                       this.end();
-               };
-       };
-       //Generate XML
-       var generateReport = function(results, run) {
-               var pad = function(n) {
-                       return n < 10 ? '0' + n : n;
-               };
-
-               var toISODateString = function(d) {
-                       return d.getUTCFullYear() + '-' +
-                               pad(d.getUTCMonth() + 1)+'-' +
-                               pad(d.getUTCDate()) + 'T' +
-                               pad(d.getUTCHours()) + ':' +
-                               pad(d.getUTCMinutes()) + ':' +
-                               pad(d.getUTCSeconds()) + 'Z';
-               };
-
-               var convertMillisToSeconds = function(ms) {
-                       return Math.round(ms * 1000) / 1000000;
-               };
-
-               var xmlEncode = function(text) {
-                       var baseEntities = {
-                               '"' : '&quot;',
-                               '\'': '&apos;',
-                               '<' : '&lt;',
-                               '>' : '&gt;',
-                               '&' : '&amp;'
-                       };
-                       return ('' + text).replace(/[<>&\"\']/g, function(chr) {
-                               return baseEntities[chr] || chr;
-                       });
-               };
-
-               var XmlWriter = function(settings) {
-                       settings = settings || {};
-
-                       var data = [], stack = [], lineBreakAt;
-
-                       var addLineBreak = function(name) {
-                               if (lineBreakAt[name] && data[data.length - 1] !== '\n') {
-                                       data.push('\n');
-                               }
-                       };
-
-                       lineBreakAt = (function(items) {
-                               var i, map = {};
-                               items = items || [];
-
-                               i = items.length;
-                               while (i--) {
-                                       map[items[i]] = {};
-                               }
-                               return map;
-                       })(settings.linebreak_at);
-
-                       this.start = function(name, attrs, empty) {
-                               if (!empty) {
-                                       stack.push(name);
-                               }
-
-                               data.push('<' + name);
-
-                               for (var aname in attrs) {
-                                       data.push(' ' + xmlEncode(aname) + '="' + xmlEncode(attrs[aname]) + '"');
-                               }
-
-                               data.push(empty ? ' />' : '>');
-                               addLineBreak(name);
-                       };
-
-                       this.end = function() {
-                               var name = stack.pop();
-                               addLineBreak(name);
-                               data.push('</' + name + '>');
-                               addLineBreak(name);
-                       };
-
-                       this.text = function(text) {
-                               data.push(xmlEncode(text));
-                       };
-
-                       this.cdata = function(text) {
-                               data.push('<![CDATA[' + text + ']]>');
-                       };
-
-                       this.comment = function(text) {
-                               data.push('<!--' + text + '-->');
-                       };
-                       this.pi = function(name, text) {
-                               data.push('<?' + name + (text ? ' ' + text : '') + '?>\n');
-                       };
-
-                       this.doctype = function(text) {
-                               data.push('<!DOCTYPE' + text + '>\n');
-                       };
-
-                       this.getString = function() {
-                               while (stack.length) {
-                                       this.end();  // internally calls `stack.pop();`
-                               }
-                               return data.join('').replace(/\n$/, '');
-                       };
-
-                       this.reset = function() {
-                               data.length = 0;
-                               stack.length = 0;
-                       };
-
-                       // Start by writing the XML declaration
-                       this.pi(settings.xmldecl || 'xml version="1.0" encoding="UTF-8"');
-               };
-
-               // Generate JUnit XML report!
-               var m, mLen, module, t, tLen, test, a, aLen, assertion, isEmptyElement,
-                       xmlWriter = new XmlWriter({
-                               linebreak_at: ['testsuites', 'testsuite', 'testcase', 'failure', 'system-out', 'system-err']
-                       });
-               xmlWriter.pi ( 'xml-stylesheet type="text/xsl"  href="testresult.xsl"' );
-               xmlWriter.start('test_definition', {
-                       name: "http://tempuri.org",
-                       type: "",
-                       'xmlns:xsi': "http://www.w3.org/2001/XMLSchema-instance",
-                       'xsi:noNamespaceSchemaLocation' : "test_definition.xsd"
-               });
-               xmlWriter.start('environment', {
-                                       device_id: "",
-                                       device_model: "SDK & Target",
-                                       device_name: "Tizen",
-                                       host: navigator.userAgent,
-                                       os_version:"2.1", 
-                                       resolution: "", 
-                                       screen_size: $(window).height() + " x " + $(window).width()
-                               } );
-                       xmlWriter.start('other');
-                       xmlWriter.cdata('Tizen Web UI FW UnitTest');
-                       xmlWriter.end();
-               xmlWriter.end(); //environment
-       
-               xmlWriter.start('summary' ,{
-                               test_plan_name : 'Tizen Web UI FW Unit TC' 
-                       } );
-                       xmlWriter.start( 'start_at' );
-                       xmlWriter.cdata( run.start );
-                       xmlWriter.end(); //start_at
-                       xmlWriter.start( 'end_at' );
-                       xmlWriter.cdata( new Date() );
-                       xmlWriter.end(); //start_at
-               xmlWriter.end(); // summary
-
-               for (m = 0, mLen = run.modules.length; m < mLen; m++) {
-                       module = run.modules[m];
-
-                       xmlWriter.start('suite', {
-                               id: m,
-                               name: module.name,
-                               hostname: 'localhost',
-                               tests: module.total,
-                               failures: module.failed,
-                               errors: 0,
-                               time: convertMillisToSeconds(module.time),  // ms → sec
-                               timestamp: toISODateString(module.start)
-                       });
-                       xmlWriter.start( 'set', {
-                               name: module.name
-                       });
-                       for (t = 0, tLen = module.tests.length; t < tLen; t++) {
-                               test = module.tests[t];
-                               for (a = 0, aLen = test.failedAssertions.length; a < aLen; a++) {
-                                       assertion = test.failedAssertions[a];
-                                       message = assertion.message;
-                                       if ( assertion.message === undefined || !assertion.message) {
-                                       }
-                                       xmlWriter.start('testcase', {
-                                               component: module.name,
-                                               execution_type: "auto",
-                                               id: module.name,
-                                               priority: (assertion.priority) ? assertion.priority : 'P1',
-                                               purpose:  assertion.checktype + ' ' + (assertion.message) ? '-' + assertion.message : '',
-                                               status: (assertion.result) ? 'PASS' : 'FAIL',
-                                               result: (assertion.result) ? 'PASS' : 'FAIL',
-                                               type: 'compliance'
-                                       });
-                                               xmlWriter.start( 'description' );
-                                                       xmlWriter.start( 'pre_condition' ); xmlWriter.end();
-                                                       xmlWriter.start( 'post_condition' ); xmlWriter.end();
-                                                       xmlWriter.start( 'steps' );
-                                                               xmlWriter.start( 'step', {
-                                                                       order: '1'
-                                                               });
-                                                                       xmlWriter.start( 'step_desc' );
-                                                                       xmlWriter.cdata( assertion.checktype + ' ' + (assertion.message) ? ' ' + assertion.message : '' );
-                                                                       xmlWriter.end();
-                                                                       xmlWriter.start( 'expected' );
-                                                                       xmlWriter.cdata( assertion.expected );
-                                                                       xmlWriter.end();
-                                                               xmlWriter.end();// step
-                                                       xmlWriter.end(); //steps
-
-                                                       xmlWriter.start( 'test_script_entry', {
-                                                               test_script_expected_result : ''
-                                                       });
-                                                       xmlWriter.end();
-                                               xmlWriter.end(); // description
-                                               xmlWriter.start( 'result_info' );
-                                                       xmlWriter.start( 'actual_result' );
-                                                       xmlWriter.cdata( assertion.actual );
-                                                       xmlWriter.end();
-                                               xmlWriter.end();
-                                       xmlWriter.end();
-                               }
-                       }
-
-                       xmlWriter.end();
-                       xmlWriter.end();  //'testsuite'
-               }
-               
-               xmlWriter.end(); //test_definition
-               // Invoke the user-defined callback
-               QUnit.jUnitReport({
-                       results: results,
-                       xml: xmlWriter.getString()
-               });
-       };
-
-       QUnit.jUnitReport = function(data) {
-               var console = window.console;
-               if (console) {
-                       console.log(data.xml);
-               }
-               if( tizen ) {
-                       tizen.filesystem.resolve('documents',
-                                       function(dir){ 
-                                               var tempFile;
-                                               try{
-                                                       tempFile = dir.createFile("tcresult.xml");
-                                               }catch(err){
-                                                       tempFile = dir.resolve("tcresult.xml");
-                                               }
-                                               if( tempFile != null){
-                                                       tempFile.openStream("w", 
-                                                               function(fs){
-                                                                       fs.write(data.xml);
-                                                                       fs.close();
-                                                       }, function(e){console.log("Error");}, "UTF-8");
-                                       }
-                               
-                               },
-                               function(e){
-                                       console.log(e);
-                       });
-               }
-               //document.write( data.xml );
-       };
-       // prevent qunit from starting the test suite until all tests are defined
-       QUnit.begin = function( ){
-               this.config.autostart = false;
-       };
-
-       QUnit.done = function( details ) {
-               // All Test is done
-               console.log( "QUnit.done" );
-               generateReport( details, UnitTCRunner.getTestResult());
-       }
-       // get the test directories
-       var UnitTCRunner = new Runner();
-       UnitTCRunner.exec(TESTS);
-});
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/searchbar/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/searchbar/index.html
deleted file mode 100755 (executable)
index 03c4273..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html>
-<html>
-       <head>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-                       data-framework-theme="tizen-white"
-                       data-framework-viewport-scale=false>
-               </script>
-
-               <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-               <script src="../../../libs/js/qunit/qunit.js"></script>
-               <script src="searchbar-tests.js"></script>
-               <title>Searchbar</title>
-       </head>
-
-       <body>
-               <h1 id="qunit-header">Searchbar</h1>
-               <h2 id="qunit-banner"></h2>
-               <div id="qunit-testrunner-toolbar"></div>
-               <h2 id="qunit-userAgent"></h2>
-               <ol id="qunit-tests"></ol>
-
-               <div id="qunit-fixture">
-                       <div data-role="page" id="dummy-page">
-                               <div data-role="header" data-position="fixed">
-                                       <h1>Dummy</h1>
-                               </div>
-                               <div data-role="contents">
-                               </div>
-                       </div>
-
-                       <div data-role="page" id="searchbar-unit-test" data-add-back-btn="true">
-                               <div data-role="header" data-position="fixed">
-                                       <h1>Searchbar</h1>
-                                       <input type="search" data-cancel-btn=true name="search" data-icon="call" id="searchInput" value=""/>
-                               </div>
-                               <div data-role="content" id="searchbar-content">
-                                       <p>Hairston</p>
-                                       <p>Hansbrough</p>
-                                       <p>Allred</p>
-                                       <p>Hanrahan</p>
-                                       <p>Egan</p>
-                                       <p>Dare</p>
-                                       <p>Edmonson</p>
-                                       <p>Calip</p>
-                                       <p>Baker</p>
-                                       <p>Fazekas</p>
-                                       <p>Garrity</p>
-                                       <p>Hansen</p>
-                                       <p>Feigenbaum</p>
-                                       <p>Fillmore</p>
-                                       <p>Darden</p>
-                                       <p>Davis</p>
-                                       <p>Fitzgerald</p>
-                                       <p>Carr</p>
-                                       <p>Danilovic</p>
-                                       <p>Dark</p>
-                                       <p>Alexander</p>
-                                       <p>Allen</p>
-                                       <p>Edwards</p>
-                                       <p>Garrett</p>
-                                       <p>Gardner</p>
-                                       <p>Carroll</p>
-                                       <p>Garner</p>
-                                       <p>Finn</p>
-                                       <p>Edelin</p>
-                                       <p>Gay</p>
-                               </div>
-                       </div>
-               </div>
-               <script>
-                       $( "#searchInput" ).live( "input change", function(){
-                               var regEx = "";
-
-                               regEx = ".*" + $( "#searchInput" ).val();
-
-                               $( "#searchbar-content p" ).each( function(){
-                                       if ( $( this ).text().search( new RegExp( regEx ) ) != -1) {
-                                               $( this ).show();
-                                       }
-                                       else {
-                                               $( this ).hide();
-                                       }
-                               });
-                       } );
-               </script>
-       </body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/searchbar/searchbar-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/searchbar/searchbar-tests.js
deleted file mode 100755 (executable)
index b4aa830..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
- * Unit Test: Searchbar list
- *
- * Wongi Lee <wongi11.lee@samsung.com>
- */
-
-$( document ).ready( function () {
-
-       module( "Searchbar" );
-
-       // trigger pagecreate
-       $( "#searchbar-unit-test" ).page();
-
-       asyncTest( "Searchbar", function () {
-               /* Initialize */
-               var $divSearchbar = $( "#searchbar-unit-test div.input-search-bar" ),
-                       $input = $( "input" );
-
-               equal( $divSearchbar.length, 1, "initialized" );
-               equal( $divSearchbar.find( "div.ui-input-search" ).length, 1 , "Searchbar css" );
-               equal( $divSearchbar.find( "div.ui-input-search input.ui-input-text" ).length, 1 ,  "Searchbar text"  );
-               equal( $divSearchbar.find( "div.ui-input-search a.ui-input-clear" ).hasClass( "ui-input-clear-hidden" ), true , "Searchbar hidden style" );
-               equal( $divSearchbar.find( "div.ui-input-search div.ui-image-search" ).length, 1 ,  "Searchbar search text");
-
-               equal( $("#searchbar-content p").filter( function ( index ) {
-                       return $( this ).css( "display" ) != "none";
-               } ).length, 30 );
-
-               /* Public Method */
-               /* disable */
-               $( "#searchInput" ).searchbar( "disable" );
-               equal( $( "#searchbar-unit-test div.ui-input-search" ).hasClass( "ui-disabled" ), true, "disable" , "Method : disable");
-               equal( $( "#searchInput" ).attr( "disabled" ), "disabled" );
-
-               /* enable */
-               $( "#searchInput" ).searchbar( "enable" );
-               equal( $( "#searchbar-unit-test div.ui-input-search" ).hasClass( "ui-disabled" ), false, "enable" , "Method : enable" );
-               equal( $( "#searchInput" ).attr( "disabled" ), undefined );
-
-               /* Event */
-               /* Search : Input and trigger change */
-               $input.focus();
-               equal( $( "div.ui-image-search" ).css( "display" ), "block", "Input and trigger change" , "Event : change" );
-
-               $input.val( "a" ).trigger( "change" );
-
-               $input.val( "are" ).trigger( "change" );
-               equal( $("#searchbar-content p").filter( function ( index ) {
-                       return $( this ).css( "display" ) != "none";
-               } ).length, 1 );
-
-               /* Clear button pressed. */
-               $( "a.ui-input-clear" ).trigger( "click" );
-               equal( $("#searchbar-content p").filter( function ( index ) {
-                       return $( this ).css( "display" ) != "none";
-               } ).length, 30 );
-
-               equal( $divSearchbar.find( "div.ui-input-search a.ui-input-clear" ).hasClass( "ui-input-clear-hidden" ), true, "Clear button pressed" );
-
-               /* Button test */
-               equal( $( ".ui-btn" ).hasClass( "ui-btn" ), true );
-               equal( $divSearchbar.find( "> .ui-btn" ).jqmData("icon"), "call" , "Search button test");
-
-               /* Cancel test*/
-               equal( $( ".ui-input-cancel" ).hasClass( "ui-btn" ), true );
-               equal( $( ".ui-input-cancel" ).hasClass( "ui-btn-icon-cancel" ), true , "Search button test(cancel)");
-
-               equal( $( ".ui-input-cancel" ).hasClass( "ui-btn" ), true );
-               equal( $( ".ui-input-cancel" ).hasClass( "ui-btn-icon-cancel" ), true , "Search button test(cancel)");
-
-               /* Cancel button pressed. */
-               $( "a.ui-btn-icon-cancel" ).trigger( "click" );
-               notEqual( $( "div.ui-image-search" ).css( "display" ), "none" , "Search button test(pressed)");
-
-               start();
-       } );
-} );
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/searchfilterbar/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/searchfilterbar/index.html
deleted file mode 100755 (executable)
index 03c4273..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html>
-<html>
-       <head>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-                       data-framework-theme="tizen-white"
-                       data-framework-viewport-scale=false>
-               </script>
-
-               <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-               <script src="../../../libs/js/qunit/qunit.js"></script>
-               <script src="searchbar-tests.js"></script>
-               <title>Searchbar</title>
-       </head>
-
-       <body>
-               <h1 id="qunit-header">Searchbar</h1>
-               <h2 id="qunit-banner"></h2>
-               <div id="qunit-testrunner-toolbar"></div>
-               <h2 id="qunit-userAgent"></h2>
-               <ol id="qunit-tests"></ol>
-
-               <div id="qunit-fixture">
-                       <div data-role="page" id="dummy-page">
-                               <div data-role="header" data-position="fixed">
-                                       <h1>Dummy</h1>
-                               </div>
-                               <div data-role="contents">
-                               </div>
-                       </div>
-
-                       <div data-role="page" id="searchbar-unit-test" data-add-back-btn="true">
-                               <div data-role="header" data-position="fixed">
-                                       <h1>Searchbar</h1>
-                                       <input type="search" data-cancel-btn=true name="search" data-icon="call" id="searchInput" value=""/>
-                               </div>
-                               <div data-role="content" id="searchbar-content">
-                                       <p>Hairston</p>
-                                       <p>Hansbrough</p>
-                                       <p>Allred</p>
-                                       <p>Hanrahan</p>
-                                       <p>Egan</p>
-                                       <p>Dare</p>
-                                       <p>Edmonson</p>
-                                       <p>Calip</p>
-                                       <p>Baker</p>
-                                       <p>Fazekas</p>
-                                       <p>Garrity</p>
-                                       <p>Hansen</p>
-                                       <p>Feigenbaum</p>
-                                       <p>Fillmore</p>
-                                       <p>Darden</p>
-                                       <p>Davis</p>
-                                       <p>Fitzgerald</p>
-                                       <p>Carr</p>
-                                       <p>Danilovic</p>
-                                       <p>Dark</p>
-                                       <p>Alexander</p>
-                                       <p>Allen</p>
-                                       <p>Edwards</p>
-                                       <p>Garrett</p>
-                                       <p>Gardner</p>
-                                       <p>Carroll</p>
-                                       <p>Garner</p>
-                                       <p>Finn</p>
-                                       <p>Edelin</p>
-                                       <p>Gay</p>
-                               </div>
-                       </div>
-               </div>
-               <script>
-                       $( "#searchInput" ).live( "input change", function(){
-                               var regEx = "";
-
-                               regEx = ".*" + $( "#searchInput" ).val();
-
-                               $( "#searchbar-content p" ).each( function(){
-                                       if ( $( this ).text().search( new RegExp( regEx ) ) != -1) {
-                                               $( this ).show();
-                                       }
-                                       else {
-                                               $( this ).hide();
-                                       }
-                               });
-                       } );
-               </script>
-       </body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/searchfilterbar/searchbar-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/searchfilterbar/searchbar-tests.js
deleted file mode 100755 (executable)
index b4aa830..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
- * Unit Test: Searchbar list
- *
- * Wongi Lee <wongi11.lee@samsung.com>
- */
-
-$( document ).ready( function () {
-
-       module( "Searchbar" );
-
-       // trigger pagecreate
-       $( "#searchbar-unit-test" ).page();
-
-       asyncTest( "Searchbar", function () {
-               /* Initialize */
-               var $divSearchbar = $( "#searchbar-unit-test div.input-search-bar" ),
-                       $input = $( "input" );
-
-               equal( $divSearchbar.length, 1, "initialized" );
-               equal( $divSearchbar.find( "div.ui-input-search" ).length, 1 , "Searchbar css" );
-               equal( $divSearchbar.find( "div.ui-input-search input.ui-input-text" ).length, 1 ,  "Searchbar text"  );
-               equal( $divSearchbar.find( "div.ui-input-search a.ui-input-clear" ).hasClass( "ui-input-clear-hidden" ), true , "Searchbar hidden style" );
-               equal( $divSearchbar.find( "div.ui-input-search div.ui-image-search" ).length, 1 ,  "Searchbar search text");
-
-               equal( $("#searchbar-content p").filter( function ( index ) {
-                       return $( this ).css( "display" ) != "none";
-               } ).length, 30 );
-
-               /* Public Method */
-               /* disable */
-               $( "#searchInput" ).searchbar( "disable" );
-               equal( $( "#searchbar-unit-test div.ui-input-search" ).hasClass( "ui-disabled" ), true, "disable" , "Method : disable");
-               equal( $( "#searchInput" ).attr( "disabled" ), "disabled" );
-
-               /* enable */
-               $( "#searchInput" ).searchbar( "enable" );
-               equal( $( "#searchbar-unit-test div.ui-input-search" ).hasClass( "ui-disabled" ), false, "enable" , "Method : enable" );
-               equal( $( "#searchInput" ).attr( "disabled" ), undefined );
-
-               /* Event */
-               /* Search : Input and trigger change */
-               $input.focus();
-               equal( $( "div.ui-image-search" ).css( "display" ), "block", "Input and trigger change" , "Event : change" );
-
-               $input.val( "a" ).trigger( "change" );
-
-               $input.val( "are" ).trigger( "change" );
-               equal( $("#searchbar-content p").filter( function ( index ) {
-                       return $( this ).css( "display" ) != "none";
-               } ).length, 1 );
-
-               /* Clear button pressed. */
-               $( "a.ui-input-clear" ).trigger( "click" );
-               equal( $("#searchbar-content p").filter( function ( index ) {
-                       return $( this ).css( "display" ) != "none";
-               } ).length, 30 );
-
-               equal( $divSearchbar.find( "div.ui-input-search a.ui-input-clear" ).hasClass( "ui-input-clear-hidden" ), true, "Clear button pressed" );
-
-               /* Button test */
-               equal( $( ".ui-btn" ).hasClass( "ui-btn" ), true );
-               equal( $divSearchbar.find( "> .ui-btn" ).jqmData("icon"), "call" , "Search button test");
-
-               /* Cancel test*/
-               equal( $( ".ui-input-cancel" ).hasClass( "ui-btn" ), true );
-               equal( $( ".ui-input-cancel" ).hasClass( "ui-btn-icon-cancel" ), true , "Search button test(cancel)");
-
-               equal( $( ".ui-input-cancel" ).hasClass( "ui-btn" ), true );
-               equal( $( ".ui-input-cancel" ).hasClass( "ui-btn-icon-cancel" ), true , "Search button test(cancel)");
-
-               /* Cancel button pressed. */
-               $( "a.ui-btn-icon-cancel" ).trigger( "click" );
-               notEqual( $( "div.ui-image-search" ).css( "display" ), "none" , "Search button test(pressed)");
-
-               start();
-       } );
-} );
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/segmentcontrol/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/segmentcontrol/index.html
deleted file mode 100755 (executable)
index 2ffed24..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-
-  <script src="segmentcontrol-tests.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Controlbar Tests</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-
-<div data-nstest-role="page">
-  <div data-nstest-role="header" data-position="inline">
-    <h1>SegmentControl Test - markup</h1>
-  </div>
-  <div data-nstest-role="content">
-               <div data-role="fieldcontain" id="segmentcontrol-2btn">
-                       <fieldset data-role="controlgroup" data-type="horizontal">
-                               <input type="radio" name="radio-view-1" data-icon="segment-titlestyle-segonly" id="segment1" value="on" checked="checked" />
-                               <label for="segment1">List</label>
-                               <input type="radio" name="radio-view-1" data-icon="segment-titlestyle-segonly" id="segment2" value="off" />
-                               <label for="segment2">Grid</label>
-                       </fieldset>
-               </div>
-
-               <div data-role="fieldcontain" id="segmentcontrol-3btn">
-                       <fieldset data-role="controlgroup" data-type="horizontal">
-                               <input type="radio" name="radio-view-2" data-icon="segment-titlestyle-segonly" id="segment3" value="on" checked="checked" />
-                               <label for="segment3">List</label>
-                               <input type="radio" name="radio-view-2" data-icon="segment-titlestyle-segonly" id="segment4" value="off" />
-                               <label for="segment4">Grid</label>
-                               <input type="radio" name="radio-view-2" data-icon="segment-titlestyle-segonly" id="segment5" value="off" />
-                               <label for="segment5">Grid</label>
-                       </fieldset>
-               </div>
-
-               <div data-role="fieldcontain" id="segmentcontrol-4btn">
-                       <fieldset data-role="controlgroup" data-type="horizontal">
-                               <input type="radio" name="radio-view-9" data-icon="segment-titlestyle-segonly" id="segment6" value="on" checked="checked" />
-                               <label for="segment6">List</label>
-                               <input type="radio" name="radio-view-9" data-icon="segment-titlestyle-segonly" id="segment7" value="off" />
-                               <label for="segment7">Grid</label>
-                               <input type="radio" name="radio-view-9" data-icon="segment-titlestyle-segonly" id="segment8" value="off" />
-                               <label for="segment8">Grid</label>
-                               <input type="radio" name="radio-view-9" data-icon="segment-titlestyle-segonly" id="segment9" value="off" />
-                               <label for="segment9">Grid</label>
-                       </fieldset>
-               </div>
-       </div>
-       <div data-nstest-role="footer">
-       </div>
-</div>
-
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/segmentcontrol/segmentcontrol-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/segmentcontrol/segmentcontrol-tests.js
deleted file mode 100755 (executable)
index 7a8ef4d..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * segmentcontrol unit tests
- */
-
-(function ($) {
-       module( "SegmentControl" );
-
-       var unit_segmentcontrol = function ( widget, inputCount ) {
-               var segmentGroup = widget;
-
-               /* Create */
-               ok( segmentGroup, "Create" );
-
-               equal( "fieldcontain", segmentGroup.jqmData("role"), "segment control generate" );
-
-               equal( segmentGroup.find( "input" ).length, inputCount, "segment control listitem count test" );
-
-               equal( segmentGroup.find( "input" ).is( ":jqmData(icon='segment-titlestyle-segonly')" ), true, "segment control style test" );
-       };
-
-       test( "segmentcontrol 2btn test", function () {
-               unit_segmentcontrol( $("#segmentcontrol-2btn"), 2 );
-       });
-
-       test( "segmentcontrol 3btn test", function () {
-               unit_segmentcontrol( $("#segmentcontrol-3btn"), 3 );
-       });
-
-       test( "segmentcontrol 4btn test", function () {
-               unit_segmentcontrol( $("#segmentcontrol-4btn"), 4 );
-       });
-
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/slider/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/slider/index.html
deleted file mode 100755 (executable)
index a074ba4..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-       <script src="slider-tests.js"></script>
-
-       <title>Slider</title>
-</head>
-
-<body>
-
-<h1 id="qunit-header">Slider</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-
-<div id="qunit-fixture">
-
-       <div data-role="page" id="slider">
-               <div data-role="header" data-position="fixed">
-                       <h1>Slider</h1>
-               </div>
-               <div data-role="content">
-                       <input id="slider0" data-popupenabled="false" type="range" name="slider" value="50" min="0" max="100">
-                       <input id="slider1" data-popupenabled="false" type="range" name="slider" value="5" min="0" max="10" data-icon="volume">
-               </div>
-       </div>
-
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/slider/slider-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/slider/slider-tests.js
deleted file mode 100644 (file)
index 392bd8c..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Unit Test: Slider 
- *
- * Minkyu Kang <mk7.kang@samsung.com>
- */
-
-(function ($) {
-       module("Slider");
-
-       var unit_slider = function ( widget ) {
-               var slider,
-                       handle,
-                       handle_left = function ( widget, slider ) {
-                               var left = widget.val() * slider.width() /
-                                       ( widget.attr("max") - widget.attr("min") );
-                               return Math.floor( left );
-                       },
-                       random_move = function ( min, max) {
-                               return Math.floor( (Math.random() * (max - min + 1)) + min );
-                       };
-
-               /* Create */
-               widget.tizenslider();
-               slider = widget.next().children(".ui-slider");
-               ok( slider, "Create" );
-
-               /* Check Background */
-               equal( slider.parent().attr("class"), "ui-slider-container", "Background" );
-
-               /* Check Parameters */
-               handle = slider.find(".ui-slider-handle");
-
-               equal( handle.attr("aria-valuenow"), widget.val(), "Paramter: value" );
-               equal( handle.attr("aria-valuemin"), widget.attr("min"), "Paramter: min" );
-               equal( handle.attr("aria-valuemax"), widget.attr("max"), "Paramter: max" );
-
-               ok( Math.abs(parseInt( handle.css("left") ) - handle_left( widget, slider ) ) <= 1, "Handle Location: Default" );
-
-               /* Check APIs */
-               widget.val( random_move(widget.attr("min"), widget.attr("max")) );
-               widget.trigger("change");
-               ok( Math.abs(parseInt( handle.css("left") ) - handle_left( widget, slider ) ) <= 1, "Handle Location: Moved" );
-       };
-
-       test( "normal slider", function () {
-               unit_slider( $("#slider0") );
-       });
-
-       test( "icon slider", function () {
-               unit_slider( $("#slider1") );
-       });
-}( jQuery ));
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/splitview/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/splitview/index.html
deleted file mode 100644 (file)
index 8275899..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-       <script src="splitview-tests.js"></script>
-
-       <title>Splitview</title>
-</head>
-
-<body>
-
-<h1 id="qunit-header">Splitview</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-
-<div id="qunit-fixture">
-
-       <div data-role="page" id="notifiaction0">
-               <div data-role="notification" id="smallpopup" data-type="popup" data-text1="text1" data-param="param"></div>
-               <div data-role="header" data-position="fixed">
-                       <h1>Splitview</h1>
-               </div>
-               <div data-role="content">
-               </div>
-       </div>
-
-       <div data-role="page" id="notification1">
-               <div data-role="splitview" id="splitview-test">
-                       <div id="pane0" class="ui-pane">
-                       </div>
-                       <div id="pane1" class="ui-pane">
-                       </div>
-                       <div class="ui-pane">
-                       </div>
-               </div>
-               <div data-role="header" data-position="fixed">
-                       <h1>Splitview</h1>
-               </div>
-               <div data-role="content">
-               </div>
-       </div>
-
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/splitview/splitview-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/splitview/splitview-tests.js
deleted file mode 100644 (file)
index 046b775..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Unit Test: splitview
- *
- * Sanghee Lee <sang-hee.lee@samsung.com>
- */
-
-(function ( $ ) {
-       module( "Splitview" );
-
-       var unit_splitview = function ( widget, type ) {
-               var splitview,
-                       $pane0,
-                       $pane1,
-                       $contents,
-                       $button,
-                       ratio = [];
-
-               /* Create */
-               splitview = widget.splitview();
-               ok( splitview.length > 0, "Create" );
-
-               equal( widget.children( ".ui-pane" ).length, 2, "Create: Removing panes after 2nd pane" );
-
-               /* Options : fixed */
-               splitview.splitview( "option", "fixed", true );
-               equal( splitview.splitview( "option", "fixed" ), true, "Option : fixed" );
-
-               /* Options : dividerVertical */
-               splitview.splitview( "option", "dividerVertical", false );
-               equal( splitview.splitview( "option", "dividerVertical" ), false, "Option : dividerVertical" );
-
-               /* Options : ratio */
-               splitview.splitview( "option", "ratio", [ 0.3, 0.7 ] );
-               ratio = splitview.splitview( "option", "ratio" );
-               ok( Math.abs( ratio[ 0 ] - 0.3 ) < 0.1 && Math.abs( ratio[ 1 ] - 0.7 ) < 0.1, "Option : ratio" );
-
-               /* Methods : pane */
-               splitview.splitview( "pane", "#pane0", $( "<a data-role='button' id='test'>button</a>" ) );
-               $button = splitview.splitview( "pane", "#pane0" );
-               equal( $button.attr( "id" ), "test", "Method : pane" );
-
-               /* Methods : maximize */
-               splitview.splitview( "maximize", "#pane0" );
-               ratio = splitview.splitview( "option", "ratio" );
-               ok( ratio[ 0 ] === 1 && ratio[ 1 ] === 0, "Method : maximize" );
-
-               /* Methods : restore */
-               splitview.splitview( "restore" );
-               ratio = splitview.splitview( "option", "ratio" );
-               ok( Math.abs( ratio[ 0 ] - 0.3 ) < 0.1 && Math.abs( ratio[ 1 ] - 0.7 ) < 0.1, "Method : restore" );
-       };
-
-       test( "Splitview", function () {
-               unit_splitview( $( "#splitview-test" ), "splitview" );
-       });
-
-}( jQuery ));
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/swipe/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/swipe/index.html
deleted file mode 100644 (file)
index 8742d0a..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-       <script src="swipe-tests.js"></script>
-
-       <title>Swipe</title>
-</head>
-<body>
-
-<h1 id="qunit-header">Swipe Tests</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<div id="qunit-fixture" style="top:0px;left:0px;">
-       <div data-role="page" id="swipelistpage">
-                       <ul data-role="listview">
-                               <li id="swipewidget" data-role="swipe">
-                                       <div data-role="swipe-item">
-                                               <div data-role="button" data-inline="true">Twitter</div>
-                                               <div data-role="button" data-inline="true">Twitter</div>
-                                               <div data-role="button" data-inline="true">Facebook</div>
-                                               <div data-role="button" data-inline="true">Facebook</div>
-                                       </div>
-                                       <div data-role="swipe-item-cover">
-                                               Swipe2
-                                       </div>
-                               </li>
-                               <li data-role="swipe">
-                                       <div data-role="swipe-item">
-                                               <div data-role="button" data-inline="true">Twitter</div>
-                                               <div data-role="button" data-inline="true">Twitter</div>
-                                               <div data-role="button" data-inline="true">Facebook</div>
-                                               <div data-role="button" data-inline="true">Facebook</div>
-                                       </div>
-                                       <div data-role="swipe-item-cover">
-                                               Swipe1
-                                       </div>
-                               </li>
-                       </ul>
-       </div>
-       <div data-role="page" id="swipedestorypage">
-                       <ul data-role="listview" >
-                               <li id="swipedestroy" data-role="swipe">
-                                       <div data-role="swipe-item">
-                                               <div data-role="button" data-inline="true">Twitter</div>
-                                               <div data-role="button" data-inline="true">Twitter</div>
-                                               <div data-role="button" data-inline="true">Facebook</div>
-                                               <div data-role="button" data-inline="true">Facebook</div>
-                                       </div>
-                                       <div data-role="swipe-item-cover">
-                                               <div style="display: inline-block;" class="ui-li-text-sub-left">subtext</div>
-                                               <div style="display: inline-block;" class="ui-li-text-main-right">2line-leftsub2</div>
-                                       </div>
-                               </li>
-                               <li data-role="swipe">
-                                       <div data-role="swipe-item">
-                                               <div data-role="button" data-inline="true">Twitter</div>
-                                               <div data-role="button" data-inline="true">Twitter</div>
-                                               <div data-role="button" data-inline="true">Facebook</div>
-                                               <div data-role="button" data-inline="true">Facebook</div>
-                                       </div>
-                                       <div data-role="swipe-item-cover">
-                                               <div style="display: inline-block;" class="ui-li-text-sub-left">subtext</div>
-                                               <div style="display: inline-block;" class="ui-li-text-main-right">1line-leftsub1</div>
-                                       </div>
-                               </li>
-                       </ul>
-       </div>
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/swipe/swipe-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/swipe/swipe-tests.js
deleted file mode 100644 (file)
index 861164a..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * swipe unit tests
- *
- * Hyunjung Kim <hjnim.kim@samsung.com>
- *
- */
-
-( function ( $ ) {
-
-       module("swipe");
-
-       var unit_swipe = function( swipe, type ) {
-               var     covers,
-                       cover,
-                       coverStart,
-                       item,
-                       slideLeftDone = function () {
-                               ok(true, "Animation end - sliding left");
-                               cover.unbind("animationend");
-                               equal(cover.position().left, coverStart, "Position - Cover");
-                               start();
-                       },
-                       slideRightDone = function () {
-                               ok(true, "Animation end - sliding right");
-                               setTimeout(function () {
-                                       cover.unbind("animationend");
-                                       cover.bind("animationend", slideLeftDone);
-                                       item.trigger("swipeleft");
-                               }, 0);
-                       };
-
-               $("#swipepage").page();
-               swipe.swipe();
-               ok(swipe.hasClass("ui-swipe"), "Create - Swipe");
-
-               covers = swipe.find("div.ui-swipe-item-cover");
-               cover = covers.first();
-
-               coverStart = cover.position().left;
-               item = swipe.find("div.ui-swipe-item").first();
-
-               cover.bind("animationend", slideRightDone);
-               cover.trigger("swiperight");
-               stop();
-
-               equal( swipe.find("div.ui-swipe-item").length , 1, "Count - Swipeable li");
-               equal( covers.length , 1, "Count - cover");
-
-               equal( covers.get(0).innerText,
-                               "Swipe2",
-                               "Check - Cover string value");
-       };
-
-       var unit_swipe_destroy = function(swipe, type) {
-               var covers,
-                       new_page = $("#swipedestorypage");
-
-               new_page.page();
-               swipe.swipe();
-               ok(swipe.hasClass("ui-swipe"),"Create - Swipe");
-               covers = swipe.find("div.ui-swipe-item-cover");
-               equal( swipe.find("div.ui-swipe-item").length , 1, "Count - Swipeable ui-swipe-item");
-
-               equal( covers.length , 1, "Count - cover");
-
-               swipe.swipe("destroy");
-
-               equal(swipe.has('.ui-swipe').length, 0, "Destroy - swipe");
-               equal(swipe.has('.ui-swipe-item').length, 0 , "Destroy - item" );
-               equal(swipe.has('.ui-swipe-item-cover').length, 0, "Destroy - cover");
-
-       };
-
-       asyncTest( " swipe ", function() {
-               expect(7);
-               unit_swipe( $("#swipewidget"), "swipe" );
-               start();
-       });
-
-       asyncTest( " swipe - destory", function() {
-               expect(6),
-               unit_swipe_destroy( $("#swipedestroy"), "swipedestroy"),
-               start()
-       });
-
-} ) ( jQuery );
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/tabbar/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/tabbar/index.html
deleted file mode 100755 (executable)
index dcf0dd1..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-
-  <script src="tabbar-tests.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery Mobile Controlbar Tests</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-</div>
-
-<div data-nstest-role="page">
-       <div data-nstest-role="header" data-nstest-position="inline">
-               <h1>Controlbar Test - markup</h1>
-       </div>
-       <div data-nstest-role="content">
-       </div>
-       <div data-nstest-role="footer">
-               <div id="tabbar-test-text-only" data-role="tabbar">
-                       <ul>
-                               <li><a href="#" >Menu</a></li>
-                               <li><a href="#" class="ui-btn-active">Save</a></li>
-                               <li><a href="#" >Share</a></li>
-                               <li><a href="#" >Timeline</a></li>
-                               <li><a href="#" >WorldClock</a></li>
-                       </ul>
-               </div>
-       </div>
-</div>
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/tabbar/tabbar-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/tabbar/tabbar-tests.js
deleted file mode 100755 (executable)
index 790b9c7..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * tabbar unit tests
- */
-
-(function ($) {
-       $.mobile.defaultTransition = "none";
-
-       module( "Tabbar" );
-
-       var unit_tabbar = function ( widget, drayStyle ) {
-               var tabbar,
-                       tabbar_style,
-                       item_count,
-                       activeIndex,
-                       deactiveReturn,
-                       activeReturn,
-                       created_tabbar = widget.tabbar();
-
-               /* Create */
-               ok( created_tabbar, "Create" );
-
-               if ( drayStyle ) {
-                       if ( drayStyle == "icon" ) {
-                               equal( created_tabbar.find( "a" ).is(".ui-btn-icon_only" ), true, "Icon only style test");
-                       } else if ( drayStyle == "text" ) {
-                               equal( created_tabbar.is(".ui-tabbar-noicons" ), true, "Text only style test");
-                       }
-               }
-
-               /* Check APIs */
-               activeIndex = created_tabbar.find(".ui-btn-active").index();
-               created_tabbar.tabbar( "disable", activeIndex );
-               deactiveReturn = created_tabbar.find("li:eq(" + activeIndex + ")").is(".ui-disabled");
-
-               equal( deactiveReturn, true, "List Deactive test" );
-
-               created_tabbar.tabbar("enable", activeIndex);
-               activeReturn = created_tabbar.find("li:eq(" + activeIndex + ")").is(".ui-disabled");
-               equal( activeReturn, false, "List Active test" );
-       };
-
-       test( "tabbar text style test", function () {
-               unit_tabbar( $("#tabbar-test-text-only"), "text" );
-       });
-})(jQuery);
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/tests.js
deleted file mode 100644 (file)
index ac89e12..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-var TESTS = {
-       "testPages":[
-               // Put your test here
-               "ensurens",
-               "button",
-               "core",
-               "check",
-               "tabbar",
-               "datetimepicker",
-               "extendablelist",
-               "handler",
-               "gallery",
-               "gallery3d",
-               "imageloader",
-               "multimediaview",
-               "navigationbar",
-               "notification",
-               "popupwindow",
-               "popupwindow_ctxpopup",
-               "progressbar",
-               "progress",
-               "radio",
-               "searchfilterbar",
-               "segmentcontrol",
-               "fastscroll",
-               "slider",
-               "swipe",
-               "tokentextarea",
-               "virtuallist",
-               "virtualgrid",
-               "collapsible",
-               "page",
-               "splitview",
-               "fliptoggleswitch",
-               "autodivider",
-               "list",
-               "listdivider"
-       ]
-};
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/toggleswitch/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/toggleswitch/index.html
deleted file mode 100755 (executable)
index 942b0e0..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-       <script src="toggleswitch-tests.js"></script>
-
-       <title>Toggleswitch</title>
-</head>
-
-<body>
-
-<h1 id="qunit-header">Toggleswitch</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-
-<div id="qunit-fixture">
-
-       <div data-role="page" id="toggleswitch1">
-               <div data-role="header" data-position="fixed">
-                       <h1>Toggleswitch</h1>
-               </div>
-               <div data-role="content">
-                       <select data-role='slider' name='slider' id='newslider' >
-                               <option value='on'>On</option>
-                               <option value='off'>Off</option>
-                       </select>
-               </div>
-       </div>
-       
-       <div data-role="page" id="toggleswitch2">
-               <div data-role="header" data-position="fixed">
-                       <h1>Toggleswitch</h1>
-               </div>
-               <div data-role="content">               
-                       
-               </div>
-       </div>  
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/toggleswitch/toggleswitch-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/toggleswitch/toggleswitch-tests.js
deleted file mode 100755 (executable)
index a01f414..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * Unit Test : Toggle Switch
- *
- *
- */
-/*jslint browser: true*/
-/*global $, jQuery, test, equal, ok*/
-$( document ).ready( function ( ) {
-       module("toggleswitch" );
-
-       var unit_toggleswitch = function ( widget ) {
-               var toggleswitch ;
-
-               /* Create */
-               widget.slider( );
-               toggleswitch = widget.parent( ).find('.ui-slider-switch') ;
-               ok( toggleswitch, "Create" );
-
-               /* Class Check*/
-               equal( toggleswitch.hasClass('ui-slider'), true , "Class check" );
-
-               /*Markup check*/
-               equal( toggleswitch.find('span.ui-slider-label').length, 2 , "makrup check : 2 options present" );
-               equal( toggleswitch.find('span.ui-slider-label')[1].innerHTML, "On" , "makrup check : correct text in option" );
-               equal( toggleswitch.find('span.ui-slider-label')[0].innerHTML , "Off" , "makrup check : correct text in option" );
-               ok( toggleswitch.find('a.ui-slider-handle') , "makrup check : toggle handle present" );
-               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'On', "makrup check : handle present" );
-               equal( toggleswitch.find('span.ui-slider-label')[1].style.width, '100%', "makrup check : 2 options present" );
-
-               /*check control after firing events*/
-               toggleswitch.trigger('vmousedown') ;
-               toggleswitch.trigger('vmouseup') ;
-               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'Off', "Markup check after firing click event first time" );
-               equal( toggleswitch.find('span.ui-slider-label')[0].style.width, '100%', "Markup check after firing click event first time" );
-               equal( toggleswitch.find('span.ui-slider-label')[1].style.width, '0%', "Markup check after firing click event first time" );
-               toggleswitch.trigger('vmousedown') ;
-               toggleswitch.trigger('vmouseup') ;
-               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'On', "Markup check after firing click event second time" );
-               equal( toggleswitch.find('span.ui-slider-label')[0].style.width, '0%', "Markup check after firing click event second time" );
-               equal( toggleswitch.find('span.ui-slider-label')[1].style.width, '100%', "Markup check after firing click event second time" );
-
-               /* Check Enable , Disbale */
-               widget.slider("disable" );
-               toggleswitch.trigger('vmousedown') ;
-               toggleswitch.trigger('vmouseup') ;
-               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'On', "Markup check after firing click event after switch was disabled" );
-               equal( toggleswitch.find('span.ui-slider-label')[1].style.width, '100%', "Markup check after firing click event after switch was disabled" );
-               equal( toggleswitch.find('span.ui-slider-label')[0].style.width, '0%', "Markup check after firing click event after switch was disabled" );
-
-               widget.slider("enable" );
-               toggleswitch.trigger('vmousedown') ;
-               toggleswitch.trigger('vmouseup') ;
-               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'Off', "Markup check after firing click event after switch was re enabled" );
-               equal( toggleswitch.find('span.ui-slider-label')[0].style.width, '100%', "Markup check after firing click event after switch was re enabled" );
-               equal( toggleswitch.find('span.ui-slider-label')[1].style.width, '0%', "Markup check after firing click event after switch was re enabled" );
-
-               /*refresh */
-               widget.find('option')[1].innerHTML = "False" ;
-               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'Off', "API Refresh : Stoggleswitch is not modified before refresh is called" );
-               widget.slider('refresh') ;
-               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'False', "API Refresh : Stoggleswitch is modified after refresh is called" );
-
-       };
-
-       test( "normal toggleswitch", function ( ) {
-               $('#toggleswitch1').page( ) ;
-               unit_toggleswitch( $("#newslider" ) );
-       } );
-
-       test( "normal toggleswitch -dynamic", function ( ) {
-               var createEvent = false ,
-                       toggleHTML = "<select data-role='slider'name='slider'id='dynamicslider'data-texton='true'>" +
-                                                                               "<option value='on'>On</option>" +
-                                                                               "<option value='off'>Off</option>" +
-                                                                       "</select>;";
-
-               $('#toggleswitch2').page( ) ;
-               $('#toggleswitch2').find(":jqmData(role=content)" ).append( toggleHTML );
-               $('#dynamicslider').slider( {create : function ( ) {
-                       createEvent = true ;
-               }} ) ;
-               $('#toggleswitch2').find(":jqmData(role=content)" ).trigger("create" );
-               equal( createEvent, true, "Create Event" );
-               unit_toggleswitch( $("#dynamicslider" ) );
-       } );
-} );
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/tokentextarea/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/tokentextarea/index.html
deleted file mode 100755 (executable)
index 411f43a..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-               data-framework-theme="tizen-white"
-               data-framework-viewport-scale=false>
-       </script>
-
-       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-       <script src="../../../libs/js/qunit/qunit.js"></script>
-       <script src="tokentextarea-tests.js"></script>
-
-       <title>Tokentextarea</title>
-</head>
-
-<body>
-
-<h1 id="qunit-header">Tokentextarea</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-
-<div id="qunit-fixture">
-
-       <div data-role="page" id="notifiaction0">
-               <div data-role="notification" id="smallpopup" data-type="popup" data-text1="text1" data-param="param"></div>
-               <div data-role="header" data-position="fixed">
-                       <h1>Tokentextarea</h1>
-               </div>
-               <div data-role="content">
-               </div>
-       </div>
-
-       <div data-role="page" id="notification1">
-               <div data-role="tokentextarea" id="tokentextarea-test" ></div>
-               <div data-role="header" data-position="fixed">
-                       <h1>Tokentextarea</h1>
-               </div>
-               <div data-role="content">
-               </div>
-       </div>
-
-</div>
-
-</body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/tokentextarea/tokentextarea-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/tokentextarea/tokentextarea-tests.js
deleted file mode 100755 (executable)
index 3417c23..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * Unit Test: tokentextarea
- *
- * Kangsik Kim <kangsik81.kim@samsung.com>
- * Minkyeong Kim <minkyeong.kim@samsung.com>
- */
-
-(function ( $ ) {
-       module( "Tokentextarea" );
-
-       var unit_tokentextarea = function ( widget, type ) {
-               var tokentextarea,
-                       inputText,
-                       outputText,
-                       status;
-
-               /* Create */
-               tokentextarea = widget.tokentextarea();
-               ok( tokentextarea.length > 0, "Create" );
-
-               /* length */
-               equal( tokentextarea.tokentextarea( "length" ), 0, "API : length" );
-
-               /* Add */
-               tokentextarea.tokentextarea( "add", "string1" );
-               equal( tokentextarea.tokentextarea( "length" ), 1, "API : add( 'string1' )" );
-               tokentextarea.tokentextarea( "add", "string2" );
-               equal( tokentextarea.tokentextarea( "length" ), 2, "API : add( 'string2' )" );
-               tokentextarea.tokentextarea( "add", "string3" );
-               equal( tokentextarea.tokentextarea( "length" ), 3, "API : add( 'string3' )" );
-
-               /* Select */
-               tokentextarea.tokentextarea( "select", 1 );
-               outputText = tokentextarea.tokentextarea( "select" );
-               equal( outputText, "string2", "API : select( 1 )" );
-
-               /* Focus Out */
-               tokentextarea.tokentextarea( "focusOut" );
-               status = tokentextarea.hasClass( "ui-tokentextarea-focusout" );
-               equal( status, true, "API : focusOut" );
-
-               /* Focus In */
-               tokentextarea.tokentextarea( "focusIn" );
-               status = tokentextarea.hasClass( "ui-tokentextarea-focusin" );
-               equal( status, true, "API : focusIn" );
-
-               /* input */
-               inputText = "tokentextarea";
-               tokentextarea.tokentextarea( "inputText", inputText );
-               outputText = tokentextarea.tokentextarea( "inputText" );
-               equal( outputText, inputText, "API : input( '" + outputText + "' )" );
-
-               asyncTest("asyncTest", function () {
-                       var $widget = $( "<div data-role='tokentextarea'></div>" ).tokentextarea();
-                       $( ".ui-page" ).append( $widget );
-
-                       $widget.tokentextarea( "add", "string1" );
-                       $widget.tokentextarea( "add", "string2" );
-                       $widget.tokentextarea( "add", "string3" );
-                       $widget.tokentextarea( "remove", 0 );
-
-                       setTimeout( function () {
-                               /* Remove */
-                               equal( $widget.tokentextarea( "length" ), 2,  "API : remove( 0 )" );
-                               $widget.tokentextarea( "remove" );
-                       }, 1000 );
-
-                       setTimeout( function () {
-                               /* Reamove all */
-                               equal( $widget.tokentextarea( "length" ), 0,  "API : remove()" );
-                               start();
-                               $widget.remove();
-                       }, 2000 );
-               });
-       };
-
-       test( "Tokentextarea", function () {
-               unit_tokentextarea( $( "#tokentextarea-test" ), "tokentextarea" );
-       });
-
-}( jQuery ));
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/virtualgrid/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/virtualgrid/index.html
deleted file mode 100644 (file)
index 84cf595..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<html>
-       <head>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-                       data-framework-theme="tizen-white"
-                       data-framework-viewport-scale=false>
-               </script>
-
-               <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-               <script src="../../../libs/js/jquery-mobile-1.1.0/tests/jquery.testHelper.js"></script>
-               <script src="../../../libs/js/qunit/qunit.js"></script>
-               <script src = "../../../demos/tizen-winsets/widgets/grid/virtualgrid-db-demo.js"></script>
-               <script src="virtualgrid-tests.js"></script>
-               <title>Virtualgrid</title>
-       </head>
-
-       <body>
-               <h1 id="qunit-header">Virtualgrid</h1>
-               <h2 id="qunit-banner"></h2>
-               <div id="qunit-testrunner-toolbar"></div>
-               <h2 id="qunit-userAgent"></h2>
-               <ol id="qunit-tests"></ol>
-
-               <div id="qunit-fixture">
-                       <div data-role="page" id="virtualgrid_demo_page" class="virtualgrid_demo_page">
-                               <div data-role="header" data-position="fixed">
-                                       <h1>Virtualgrid</h1>
-                               </div>
-                               <div data-role="content">
-                                       <script id="tizen-demo-namecard" type="text/x-jquery-tmpl">
-                                               <div class="ui-demo-namecard ${ID}" style="width:50px">
-                                                       <div class="ui-demo-namecard-pic">
-                                                       </div>
-                                                       <div class="ui-demo-namecard-contents">
-                                                               <span class="name ui-li-text-main">${NAME}</span>
-                                                       </div>
-                                               </div>
-                                       </script>
-                                       <div id="virtualgrid-test" data-direction="y" data-role="virtualgrid" data-rotation="true" data-template="tizen-demo-namecard" data-dbtable="JSON_DATA" style="width:600px; height:500px;"></div>
-                               </div>
-                       </div>
-               </div>
-       </body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/virtualgrid/virtualgrid-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/virtualgrid/virtualgrid-tests.js
deleted file mode 100755 (executable)
index 1227d80..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
- * Unit Test: virtual grid
- *
- * Kangsik Kim <kangsik81.kim@samsung.com>
- * Woosung Sohn <woosungim.sohn@samsung.com>
- */
-
-$( document ).ready( function () {
-       var virtualGrid, startVirtualGridTest;
-
-       module( "Virtualgrid" );
-
-       startVirtualGridTest = function ( virtualGrid ) {
-               var $vgView,
-                       $vgScrollView,
-                       $vgWrapBlocks,
-                       $vgTmplElement,
-                       vgOptions = $( "#virtualgrid-test" ).virtualgrid( "option" ),
-                       vgHeight,
-                       idx,
-                       index = -1,
-                       $item,
-                       prevColCnt = 0;
-
-               $vgView = $( ".ui-virtualgrid-view" );
-               $vgScrollView = $vgView.find( ".ui-scrollview-view" );
-               $vgWrapBlocks = $vgView.find( ".ui-virtualgrid-wrapblock-y" );
-               $vgTmplElement = $vgWrapBlocks.find( ".ui-demo-namecard-pic" );
-               vgHeight = $vgView.css( "height" ),
-
-               test( "Virtualgrid", function () {
-                       $vgView.on( "select", function ( event ) {
-                               ok( true, "Event : select" );
-                       });
-
-                       ok( $vgView, "Markup : View element" );
-                       ok( parseInt( vgHeight, 10 ) > 100, "Markup : The height of a view element");
-                       ok( $vgScrollView.length, "Markup : A Scrollview inside VirtualGrid" );
-                       ok( $vgWrapBlocks.length > 10, "Markup : Wrap block" );
-                       ok( $vgWrapBlocks.first().children().length > 1, "Markup : Children nodes of a wrap block");
-                       ok( $vgTmplElement.length, "Markup : A div element created via template");
-
-                       equal( vgOptions.template, "tizen-demo-namecard", "Option : template" );
-                       equal( vgOptions.direction, "y", "Option : direction" );
-                       equal( vgOptions.rotation, true, "Option : rotation" );
-
-                       $( "#virtualgrid-test" ).virtualgrid( "centerTo", "card_0009" );
-                       for ( idx = 0 ; idx < $vgWrapBlocks.length ; ++idx ) {
-                               if ( $( $vgWrapBlocks[idx] ).hasClass( "card_0000" ) ) {
-                                       index = idx;
-                                       break;
-                               }
-                       }
-
-                       ok( virtualGrid, "Method : create" );
-                       notEqual( index, 0, "Method : centerTo" );
-
-                       $item = $vgWrapBlocks.first();
-                       prevColCnt = $item.children().length;
-                       $( "#virtualgrid-test" ).width( 250 );
-                       $( "#virtualgrid-test" ).virtualgrid( "resize" );
-                       console.log( "resize : " + $item.children().length + ", " + prevColCnt );
-                       notEqual( $item.children().length, prevColCnt, "Method : resize" );
-
-                       $item = $( $vgWrapBlocks.first().children()[0] );
-                       try {
-                               $item.trigger( "click" );
-                       } catch ( exception ) {
-                               console.log( "click event exception : " + exception );
-                       }
-               });
-       };
-
-       /* Load Dummy Data and Init Virtual Grid widget*/
-       if ( window.JSON_DATA ) {
-               // trigger pagecreate
-               $( "#virtualgrid_demo_page" ).page();
-
-               virtualGrid = $( "#virtualgrid-test" ).virtualgrid( "create", {
-                       itemData: function ( idx ) {
-                               return JSON_DATA[ idx ];
-                       },
-                       numItemData: JSON_DATA.length,
-                       cacheItemData: function ( minIdx, maxIdx ) { }
-               });
-               startVirtualGridTest( virtualGrid );
-       } else {
-               console.log ( "Virtual Grid Init Fail." );
-       }
-} );
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/virtuallist/index.html b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/virtuallist/index.html
deleted file mode 100755 (executable)
index af520a3..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<html>
-       <head>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
-               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
-                       data-framework-theme="tizen-white"
-                       data-framework-viewport-scale=false>
-               </script>
-
-               <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
-
-               <script src="../../../libs/js/qunit/qunit.js"></script>
-               <script src = "../../../demos/tizen-winsets/widgets/list/virtuallist-db-demo.js"></script>
-               <script src="virtuallist-tests.js"></script>
-               <title>Virtuallist</title>
-       </head>
-
-       <body>
-               <h1 id="qunit-header">Virtuallist</h1>
-               <h2 id="qunit-banner"></h2>
-               <div id="qunit-testrunner-toolbar"></div>
-               <h2 id="qunit-userAgent"></h2>
-               <ol id="qunit-tests"></ol>
-
-               <div id="qunit-fixture">
-                       <div data-role="page" id="dummy-page">
-                               <div data-role="header" data-position="fixed">
-                                       <h1>Dummy</h1>
-                               </div>
-                               <div data-role="contents">
-                               </div>
-                       </div>
-                       <div data-role="page" id="virtuallist-unit-test" data-add-back-btn="true">
-                               <div data-role="header" data-position="fixed">
-                                       <h1>Virtual List - Normal Style 1line</h1>
-                               </div>
-                               <div data-role="content">
-                                       <script id="tmp-1line" type="text/x-jquery-tmpl">
-                                               <li class="ui-li-1line"><span class="ui-li-text-main">${NAME}</span></li>
-                                       </script>
-                                       <ul id="virtuallist-normal_1line_ul" data-role="virtuallistview" data-template="tmp-1line" data-dbtable="JSON_DATA" data-row="100">
-                                       </ul>
-                               </div>
-                       </div>
-               </div>
-       </body>
-</html>
diff --git a/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/virtuallist/virtuallist-tests.js b/tct-uifw-tests/web-ui-fw-tests/tests/unit-tests/virtuallist/virtuallist-tests.js
deleted file mode 100755 (executable)
index e844dcd..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Unit Test: Virtual list
- *
- * Wongi Lee <wongi11.lee@samsung.com>
- */
-
-$( document ).ready( function () {
-
-       module( "Virtual List");
-
-       function startVirtualListTest(){
-               var $vlContainer = $( "ul.ui-virtual-list-container" ),
-                       $vlElements = $( "ul.ui-virtual-list-container li" ),
-                       vlHeight = $vlContainer.css( "height" ),
-                       vlOptions = $( "#virtuallist-normal_1line_ul" ).virtuallistview( "option" );
-
-               test( "Virtual list test", function () {
-                       /* Initialize and create method */
-                       ok( $vlContainer , "Create" );
-                       equal( $vlElements.length, 100 ,"Data load test" );
-                       ok( parseInt( vlHeight, 10 ) > 3000 , "Check Scroll");
-
-                       /* Options */
-                       equal( vlOptions.id, "#virtuallist-normal_1line_ul" , "Option test");
-                       equal( vlOptions.childSelector, " li" , "Child control");
-                       equal( vlOptions.dbtable, "JSON_DATA" , "dbtable test");
-                       equal( vlOptions.template, "tmp-1line", "Template check");
-                       equal( vlOptions.row, 100 , "Row check");
-                       equal( vlOptions.dbkey, false ,"DB Key");
-                       equal( vlOptions.scrollview, true , "Scrollview" );
-
-
-                       /* Destroy method */
-                       ok ( ( function () {
-                               /* Call destroy */
-                               $( "#virtuallist-normal_1line_ul" ).virtuallistview( "destroy" );
-
-                               destoyedVlElements = $( "ul.ui-virtual-list-container li" );
-                               console.log( destoyedVlElements.length );
-
-                               try {
-                                       equal ( destoyedVlElements.length, 0 , "DIV Element test");
-                               } catch ( exception ) {
-                                       console.log( "destroy : " + exception );
-                                       return false;
-                               }
-                               return true;
-                       }() ), "destroy()" );
-               } );
-       }
-
-       /* Load Dummy Data and Init Virtual List widget*/
-       if ( window.JSON_DATA ) {
-               $( "ul" ).filter( function () {
-                       return $( this ).data( "role" ) == "virtuallistview";
-               } ).addClass( "vlLoadSuccess" );
-
-               // trigger pagecreate
-               $( "#virtuallist-unit-test" ).page();
-
-               $( "ul.ui-virtual-list-container" ).virtuallistview( "create" );
-
-               startVirtualListTest();
-       } else {
-               console.log ( "Virtual List Init Fail." );
-       }
-} );
diff --git a/tct-webuifw-tests/COPYING b/tct-webuifw-tests/COPYING
new file mode 100644 (file)
index 0000000..23acf1f
--- /dev/null
@@ -0,0 +1,55 @@
+This software is licensed under the MIT license (as defined
+by the OSI at http://www.opensource.org/licenses/mit-license.php)
+
+****************************************************************************
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd.
+Copyright (C) 2011 by Intel Corporation Ltd.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+****************************************************************************
+
+This software incorporates software from other sources, including:
+
+widgets/jquery.mobile.groupindex/
+       initial version taken from
+       git clone https://github.com/jquery/jquery-mobile.git
+       commit a197e17500ed9f4994f532ab384b0b45b414a1ea
+       including theme files (removed php files which required some changes), demo html, js, and also the
+       jquery.mobile.scrollview.{js/css} in the common directories (already copied as part of datetimepicker).
+
+widgets/jquery.mobile.maps/
+       initial version taken from :
+       svn checkout http://jquery-ui-map.googlecode.com/svn/trunk/ jquery-ui-map-read-only
+       Checked out revision 254.
+
+jQuery UI (http://jqueryui.com/) [MIT license]
+JQM-DateBox (https://github.com/jtsage/jquery-mobile-datebox) [CC 3.0 Attribution]
+developed by JTSage (http://dev.jtsage.com/blog/)
+
+jQuery Mobile (http://jquerymobile.com/) [MIT license]
+
+jQuery (http://jquery.com/) [MIT license]
+
+(parts of) Underscore (http://documentcloud.github.com/underscore/) [MIT license]
+
+jLayout (http://www.bramstein.com/projects/jlayout/) [BSD license]
+
+jSizes (http://www.bramstein.com/projects/jsizes/) [BSD license]
+
+Globalize (http://github.com/jquery/globalize/) [MIT license]
diff --git a/tct-webuifw-tests/Changelog b/tct-webuifw-tests/Changelog
new file mode 100644 (file)
index 0000000..09f88f0
--- /dev/null
@@ -0,0 +1,35 @@
+----------------------------------------------
+Changelog
+----------------------------------------------
+Copyright (c) 2012 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without
+modification, 
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list 
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original 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 Intel Corporation nor the names of its contributors 
+  may be used to endorse or promote products derived from this work without 
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "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 INTEL CORPORATION 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.  
+
+Authors:
+        Liu Kai <kaix.b.liu@intel.com>
+
+----------------------------------------------
+Changelog
+----------------------------------------------
diff --git a/tct-webuifw-tests/Makefile.am b/tct-webuifw-tests/Makefile.am
new file mode 100644 (file)
index 0000000..53b1ebe
--- /dev/null
@@ -0,0 +1,31 @@
+##
+# Copyright (c) 2012 Intel Corporation.
+#
+# Redistribution and use in source and binary forms, with or without modification,
+# are permitted provided that the following conditions are met:
+#
+# *Redistributions of works must retain the original copyright notice, this list
+# of conditions and the following disclaimer.
+# *Redistributions in binary form must reproduce the original 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 Intel Corporation nor the names of its contributors
+# may be used to endorse or promote products derived from this work without
+# specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "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 INTEL CORPORATION 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.
+#
+# Authors:
+#               Kaix, Liu <kaix.b.liu@intel.com>
+#
+docdir = /opt/tct-webuifw-tests
+dist_doc_DATA = Changelog
diff --git a/tct-webuifw-tests/autogen b/tct-webuifw-tests/autogen
new file mode 100755 (executable)
index 0000000..d9fca87
--- /dev/null
@@ -0,0 +1,32 @@
+#!/bin/sh
+##
+# Copyright (c) 2012 Intel Corporation.
+#
+# Redistribution and use in source and binary forms, with or without modification,
+# are permitted provided that the following conditions are met:
+#
+# *Redistributions of works must retain the original copyright notice, this list
+# of conditions and the following disclaimer.
+# *Redistributions in binary form must reproduce the original 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 Intel Corporation nor the names of its contributors
+# may be used to endorse or promote products derived from this work without
+# specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "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 INTEL CORPORATION 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.
+#
+# Authors:
+#               Liu Kai <kaix.b.liu@intel.com>
+#
+
+autoreconf --install
diff --git a/tct-webuifw-tests/config.xml b/tct-webuifw-tests/config.xml
new file mode 100644 (file)
index 0000000..a75316b
--- /dev/null
@@ -0,0 +1,15 @@
+<widget id="http://tizen.org/tct-webuifw-tests" xmlns='http://www.w3.org/ns/widgets' xmlns:tizen='http://tizen.org/ns/widgets'> 
+  <access origin="*"/>
+  <icon src="custom.png" height="123" width="123"/>
+  <name>tct-webuifw-tests</name>
+  <content src="index.html"/>
+  <tizen:application id="webuifwtcs.tctwebuifwtests" package="webuifwtcs" required_version="2.1"/>
+  <tizen:setting screen-orientation="portrait" contextmenu="disable"/>
+  <tizen:privilege name="http://tizen.org/privilege/content.read"/>
+  <tizen:privilege name="http://tizen.org/privilege/content.write"/>
+  <tizen:privilege name="http://tizen.org/privilege/systeminfo"/>
+  <tizen:privilege name="http://tizen.org/privilege/application.launch"/>
+  <tizen:privilege name="http://tizen.org/privilege/application.read"/>
+  <tizen:privilege name="http://tizen.org/privilege/filesystem.read"/>
+  <tizen:privilege name="http://tizen.org/privilege/filesystem.write"/>
+</widget>
diff --git a/tct-webuifw-tests/configure.ac b/tct-webuifw-tests/configure.ac
new file mode 100644 (file)
index 0000000..d4d18f3
--- /dev/null
@@ -0,0 +1,40 @@
+##
+# Copyright (c) 2012 Intel Corporation.
+#
+# Redistribution and use in source and binary forms, with or without modification,
+# are permitted provided that the following conditions are met:
+#
+# *Redistributions of works must retain the original copyright notice, this list
+# of conditions and the following disclaimer.
+# *Redistributions in binary form must reproduce the original 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 Intel Corporation nor the names of its contributors
+# may be used to endorse or promote products derived from this work without
+# specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "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 INTEL CORPORATION 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.
+#
+# Authors:
+#               Fan, Yugang <yugang.fan@intel.com>
+#
+
+AC_INIT([tct-webuifw-tests], [1.2.2], [yugang.fan@intel.com])
+AM_INIT_AUTOMAKE([-Wall -Werror foreign])
+
+# Checks for programs.
+#AC_PROG_CC
+
+AC_CONFIG_FILES([\
+Makefile \
+])
+AC_OUTPUT
diff --git a/tct-webuifw-tests/custom.png b/tct-webuifw-tests/custom.png
new file mode 100644 (file)
index 0000000..6bdebd1
Binary files /dev/null and b/tct-webuifw-tests/custom.png differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/grid/virtualgrid-db-demo.js b/tct-webuifw-tests/demos/tizen-winsets/widgets/grid/virtualgrid-db-demo.js
new file mode 100644 (file)
index 0000000..5aace82
--- /dev/null
@@ -0,0 +1,6291 @@
+/*
+ * jQuery Mobile Framework : Dummy data for Virtuallist demo
+ * Copyright (c) Lee, Wongi (wongi11.lee@samsung.com)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ */
+
+/* Sample Data in JSON */
+var JSON_DATA = [{
+       ID :    "card_0000",
+       NAME : "Abdelnaby, Alaa",
+       ACTIVE : "1990 - 1994",
+       FROM : "College - Duke",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0001",
+       NAME : "Abdul-Aziz, Zaid",
+       ACTIVE : "1968 - 1977",
+       FROM : "College - Iowa State",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0002",
+       NAME : "Abdul-Jabbar, Kareem",
+       ACTIVE : "1969 - 1988",
+       FROM : "College - UCLA",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0003",
+       NAME : "Abdul-Rauf, Mahmoud",
+       ACTIVE : "1990 - 2000",
+       FROM : "College - Louisiana State",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0004",
+       NAME : "Abdul-Wahad, Tariq",
+       ACTIVE : "1997 - 2002",
+       FROM : "College - San Jose State",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_0005",
+       NAME : "Abdur-Rahim, Shareef",
+       ACTIVE : "2007 - 2007",
+       FROM : "College - California",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0006",
+       NAME : "Abernethy, Tom",
+       ACTIVE : "1976 - 1980",
+       FROM : "College - Indiana",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0007",
+       NAME : "Able, Forest Edward (Frosty)",
+       ACTIVE : "1956 - 1956",
+       FROM : "College - Western Kentucky; Louisville",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0008",
+       NAME : "Abramovic, John Jr. (Brooms)",
+       ACTIVE : "1946 - 1947",
+       FROM : "College - Salem (NC)",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0009",
+       NAME : "Acker, Alex",
+       ACTIVE : "2005 - 2008",
+       FROM : "College - Pepperdine",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0010",
+       NAME : "Ackerman, Donald D. (Buddy)",
+       ACTIVE : "1953 - 1953",
+       FROM : "College - Long Island University",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0011",
+       NAME : "Acres, Mark",
+       ACTIVE : "1987 - 1992",
+       FROM : "College - Oral Roberts",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0012",
+       NAME : "Acton, Charles R. (Bud)",
+       ACTIVE : "1967 - 1967",
+       FROM : "College - Alma; Hillsdale",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0013",
+       NAME : "Adams, Alvan",
+       ACTIVE : "1975 - 1987",
+       FROM : "College - Oklahoma",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_0014",
+       NAME : "Adams, Donald L. (Don)",
+       ACTIVE : "1970 - 1976",
+       FROM : "College - Northwestern",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0015",
+       NAME : "Adams, Hassan",
+       ACTIVE : "2006 - 2008",
+       FROM : "College - Arizona",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0016",
+       NAME : "Adams, Michael",
+       ACTIVE : "1985 - 1995",
+       FROM : "College - Boston College",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0017",
+       NAME : "Addison, Rafael",
+       ACTIVE : "1986 - 1996",
+       FROM : "College - Syracuse",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0018",
+       NAME : "Adelman, Rick",
+       ACTIVE : "1968 - 1974",
+       FROM : "College - Loyola Marymount",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0019",
+       NAME : "Adrien, Jeff",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Connecticut",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0020",
+       NAME : "Afflalo, Arron",
+       ACTIVE : "ACTIVE",
+       FROM : "College - UCLA",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0021",
+       NAME : "Ager, Maurice",
+       ACTIVE : "2007 - 2010",
+       FROM : "College - Michigan State",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0022",
+       NAME : "Aguirre, Mark",
+       ACTIVE : "1981 - 1993",
+       FROM : "College - DePaul",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0023",
+       NAME : "Ahearn, Blake",
+       ACTIVE : "2007 - 2008",
+       FROM : "College - Missouri State",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0024",
+       NAME : "Ainge, Danny",
+       ACTIVE : "1981 - 1994",
+       FROM : "College - Brigham Young",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0025",
+       NAME : "Ajinca, Alexis",
+       ACTIVE : "ACTIVE",
+       FROM : "From - Saint Etienne, France",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0026",
+       NAME : "Akin, Henry T.",
+       ACTIVE : "1966 - 1967",
+       FROM : "College - William Carey; Morehead State",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0027",
+       NAME : "Alabi, Solomon",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Florida State",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0028",
+       NAME : "Alarie, Mark",
+       ACTIVE : "1986 - 1990",
+       FROM : "College - Duke",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0029",
+       NAME : "Alcorn, Gary R.",
+       ACTIVE : "1959 - 1960",
+       FROM : "College - Fresno City Coll. CA (J.C.); Fresno State",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_0030",
+       NAME : "Aldrich, Cole",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Kansas",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0031",
+       NAME : "Aldridge, LaMarcus",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Texas",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0032",
+       NAME : "Aleksinas, Chuck",
+       ACTIVE : "1984 - 1984",
+       FROM : "College - Kentucky; Connecticut",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0033",
+       NAME : "Alexander, Cory",
+       ACTIVE : "1995 - 2004",
+       FROM : "College - Virginia",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0034",
+       NAME : "Alexander, Courtney",
+       ACTIVE : "2000 - 2002",
+       FROM : "College - Fresno State",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0035",
+       NAME : "Alexander, Gary",
+       ACTIVE : "1993 - 1993",
+       FROM : "College - South Florida",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0036",
+       NAME : "Alexander, Joe",
+       ACTIVE : "2008 - 2009",
+       FROM : "College - West Virginia",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0037",
+       NAME : "Alexander, Victor",
+       ACTIVE : "1991 - 2001",
+       FROM : "College - Iowa State",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_0038",
+       NAME : "Alford, Steve",
+       ACTIVE : "1987 - 1990",
+       FROM : "College - Indiana",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0039",
+       NAME : "Allen, Jerome",
+       ACTIVE : "1995 - 1996",
+       FROM : "College - Pennsylvania",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0040",
+       NAME : "Allen, Lucius",
+       ACTIVE : "1969 - 1978",
+       FROM : "College - UCLA",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0041",
+       NAME : "Allen, Malik",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Villanova",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0042",
+       NAME : "Allen, Randy",
+       ACTIVE : "1988 - 1989",
+       FROM : "College - Florida State",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0043",
+       NAME : "Allen, Ray",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Connecticut",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0044",
+       NAME : "Allen, Robert J. (Bob)",
+       ACTIVE : "1968 - 1968",
+       FROM : "College - Marshall",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0045",
+       NAME : "Allen, Tony",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Oklahoma State",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0046",
+       NAME : "Allison, Odis Jr.",
+       ACTIVE : "1971 - 1971",
+       FROM : "College - Laney Coll. CA (J.C.); Nevada-Las Vegas",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0047",
+       NAME : "Allred, Lance",
+       ACTIVE : "2007 - 2007",
+       FROM : "College - Weber State",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0048",
+       NAME : "Allums, Darrell",
+       ACTIVE : "1980 - 1980",
+       FROM : "College - UCLA",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0049",
+       NAME : "Almond, Morris",
+       ACTIVE : "2007 - 2008",
+       FROM : "College - Rice",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0050",
+       NAME : "Babbitt, Luke",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Nevada-Reno",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_0051",
+       NAME : "Babic, Milos",
+       ACTIVE : "1990 - 1991",
+       FROM : "College - Tennessee Tech",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0052",
+       NAME : "Bach, John William (Johnny)",
+       ACTIVE : "1948 - 1948",
+       FROM : "College - Fordham; Rochester; Brown",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_0053",
+       NAME : "Baechtold, James E. (Jim)",
+       ACTIVE : "1952 - 1956",
+       FROM : "College - Eastern Kentucky",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0054",
+       NAME : "Bagaric, Dalibor",
+       ACTIVE : "2000 - 2002",
+       FROM : "From - Croatia",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0055",
+       NAME : "Bagley, John",
+       ACTIVE : "1982 - 1993",
+       FROM : "College - Boston College",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0056",
+       NAME : "Bailey, Augustus (Gus)",
+       ACTIVE : "1974 - 1979",
+       FROM : "College - Texas-El Paso",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0057",
+       NAME : "Bailey, Carl",
+       ACTIVE : "1981 - 1981",
+       FROM : "College - Tuskegee",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0058",
+       NAME : "Bailey, James",
+       ACTIVE : "1979 - 1987",
+       FROM : "College - Rutgers",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0059",
+       NAME : "Bailey, Thurl",
+       ACTIVE : "1983 - 1998",
+       FROM : "College - North Carolina State",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0060",
+       NAME : "Bailey, Toby",
+       ACTIVE : "1998 - 1999",
+       FROM : "College - UCLA ''98",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0061",
+       NAME : "Baker, Mark",
+       ACTIVE : "1998 - 1998",
+       FROM : "College - Ohio State",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0062",
+       NAME : "Baker, Maurice",
+       ACTIVE : "2004 - 2004",
+       FROM : "College - Oklahoma State '02",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0063",
+       NAME : "Baker, Norman Henry (Norm)",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - No College",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0064",
+       NAME : "Baker, Vin",
+       ACTIVE : "1993 - 2005",
+       FROM : "College - Hartford",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0065",
+       NAME : "Balkman, Renaldo",
+       ACTIVE : "ACTIVE",
+       FROM : "College - South Carolina",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0066",
+       NAME : "Ball, Cedric",
+       ACTIVE : "1990 - 1990",
+       FROM : "College - North Carolina-Charlotte",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0067",
+       NAME : "Ballard, Greg",
+       ACTIVE : "1977 - 1988",
+       FROM : "College - Shasta Coll. CA (J.C.); Oregon",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0068",
+       NAME : "Baltimore, Herschel David (Herk)",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - Penn State",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0069",
+       NAME : "Banks, Gene",
+       ACTIVE : "1981 - 1986",
+       FROM : "College - Duke",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0070",
+       NAME : "Banks, Marcus",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Nevada-Las Vegas",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0071",
+       NAME : "Bannister, Ken",
+       ACTIVE : "1984 - 1990",
+       FROM : "College - Trinidad State JC CO; Indiana State; Saint Augustine College",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0072",
+       NAME : "Bantom, Mike",
+       ACTIVE : "1973 - 1981",
+       FROM : "College - St. Joseph's (PA)",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0073",
+       NAME : "Barber, John",
+       ACTIVE : "1956 - 1956",
+       FROM : "College - Los Angeles State",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0074",
+       NAME : "Barbosa, Leandro",
+       ACTIVE : "ACTIVE",
+       FROM : "From - Sau Paulo, Brazil",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0075",
+       NAME : "Bardo, Stephen",
+       ACTIVE : "1991 - 1995",
+       FROM : "College - Illinois",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0076",
+       NAME : "Barea, Jose",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Northeastern",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0077",
+       NAME : "Bargnani, Andrea",
+       ACTIVE : "ACTIVE",
+       FROM : "From - Rome, Italy",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0078",
+       NAME : "Barker, Clifford E. (Cliff)",
+       ACTIVE : "1949 - 1951",
+       FROM : "College - Kentucky",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0079",
+       NAME : "Barker, Thomas Kevin (Tom)",
+       ACTIVE : "1976 - 1978",
+       FROM : "College - Minnesota; Coll. of Southern Idaho (J.C.); Hawaii",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0080",
+       NAME : "Barkley, Charles",
+       ACTIVE : "1984 - 1999",
+       FROM : "College - Auburn",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0081",
+       NAME : "Barkley, Erick",
+       ACTIVE : "2000 - 2001",
+       FROM : "College - St. John''s '02",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0082",
+       NAME : "Barksdale, Don Angelo",
+       ACTIVE : "1951 - 1954",
+       FROM : "College - Coll. of Marin CA (J.C.); UCLA",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0083",
+       NAME : "Barnes, Harry J.",
+       ACTIVE : "1968 - 1968",
+       FROM : "College - Northeastern",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0084",
+       NAME : "Barnes, Marvin Jerome",
+       ACTIVE : "1976 - 1979",
+       FROM : "College - Providence",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0085",
+       NAME : "Barnes, Matt",
+       ACTIVE : "ACTIVE",
+       FROM : "College - UCLA",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0086",
+       NAME : "Barnes, V. James (Jim, Bad News)",
+       ACTIVE : "1964 - 1970",
+       FROM : "College - Cameron; Texas-El Paso",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0087",
+       NAME : "Barnett, Dick",
+       ACTIVE : "1959 - 1973",
+       FROM : "College - Tennessee State",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0088",
+       NAME : "Barnett, James Franklin (Jim)",
+       ACTIVE : "1966 - 1976",
+       FROM : "College - Oregon",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0089",
+       NAME : "Barnhill, John Anthony (Rabbit)",
+       ACTIVE : "1962 - 1968",
+       FROM : "College - Tennessee State",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0090",
+       NAME : "Barnhill, Norton",
+       ACTIVE : "1976 - 1976",
+       FROM : "College - Washington State",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0091",
+       NAME : "Barnhorst, Leo A. (Barney)",
+       ACTIVE : "1949 - 1953",
+       FROM : "College - Notre Dame",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0092",
+       NAME : "Barr, John E.",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - Penn State",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0093",
+       NAME : "Barr, Michael J. (Mike)",
+       ACTIVE : "1976 - 1976",
+       FROM : "College - Duquesne",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0094",
+       NAME : "Barr, Thomas L. (Moe)",
+       ACTIVE : "1970 - 1970",
+       FROM : "College - Duquesne",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0095",
+       NAME : "Barrett, Andre",
+       ACTIVE : "2007 - 2007",
+       FROM : "College - Seton Hall",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0096",
+       NAME : "Barrett, Ernie Drew",
+       ACTIVE : "1953 - 1955",
+       FROM : "College - Kansas State",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0097",
+       NAME : "Barron, Earl",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Memphis",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0098",
+       NAME : "Barros, Dana",
+       ACTIVE : "1989 - 2003",
+       FROM : "College - Boston College ''89",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0099",
+       NAME : "Barry, Brent",
+       ACTIVE : "2007 - 2008",
+       FROM : "College - Oregon State",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0100",
+       NAME : "Cabarkapa, Zarko",
+       ACTIVE : "2003 - 2005",
+       FROM : "From - Serbia & Montenegro",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0101",
+       NAME : "Cable, Byrum William (Barney)",
+       ACTIVE : "1958 - 1963",
+       FROM : "College - Bradley",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0102",
+       NAME : "Caffey, Jason",
+       ACTIVE : "1995 - 2002",
+       FROM : "College - Alabama ''95",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0103",
+       NAME : "Cage, Michael",
+       ACTIVE : "1984 - 1999",
+       FROM : "College - San Diego State",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0104",
+       NAME : "Calabrese, Gerald A. (Gerry)",
+       ACTIVE : "1950 - 1951",
+       FROM : "College - St. John's (N.Y.)",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0105",
+       NAME : "Calderon, Jose",
+       ACTIVE : "ACTIVE",
+       FROM : "From - Villanueva de la Serena, Spain",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0106",
+       NAME : "Caldwell, Adrian",
+       ACTIVE : "1989 - 1997",
+       FROM : "College - Navarro Coll. TX (J.C.); Southern Methodist; Lamar",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0107",
+       NAME : "Caldwell, James W. Jr. (Jim)",
+       ACTIVE : "1967 - 1967",
+       FROM : "College - Georgia Tech",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0108",
+       NAME : "Caldwell, Joe (Pogo)",
+       ACTIVE : "1964 - 1969",
+       FROM : "College - Arizona State",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0109",
+       NAME : "Calhoun, David L. (Corky)",
+       ACTIVE : "1972 - 1979",
+       FROM : "College - Pennsylvania",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0110",
+       NAME : "Calhoun, William C. (Bill)",
+       ACTIVE : "1948 - 1954",
+       FROM : "College - San Francisco City Coll. CA (J.C.)",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0111",
+       NAME : "Calip, Demetrius",
+       ACTIVE : "1991 - 1991",
+       FROM : "College - Michigan",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0112",
+       NAME : "Callahan, Thomas Francis (Tom)",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - Notre Dame; Rockhurst",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0113",
+       NAME : "Calloway, Rick",
+       ACTIVE : "1990 - 1990",
+       FROM : "College - Indiana; Kansas",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0114",
+       NAME : "Calverley, Ernest A. (Ernie)",
+       ACTIVE : "1946 - 1948",
+       FROM : "College - Rhode Island",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0115",
+       NAME : "Calvin, Mack",
+       ACTIVE : "1976 - 1980",
+       FROM : "College - Long Beach City Coll. CA (J.C.); USC",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0116",
+       NAME : "Cambridge, Dexter",
+       ACTIVE : "1992 - 1992",
+       FROM : "College - Lon Morris Coll. TX (J.C.); Texas",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0117",
+       NAME : "Camby, Marcus",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Massachusetts",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0118",
+       NAME : "Campbell, Elden",
+       ACTIVE : "1990 - 2004",
+       FROM : "College - Clemson",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0119",
+       NAME : "Campbell, Tony",
+       ACTIVE : "1984 - 1994",
+       FROM : "College - Ohio State",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0120",
+       NAME : "Cannon, Lawrence T. (Larry)",
+       ACTIVE : "1973 - 1973",
+       FROM : "College - La Salle",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0121",
+       NAME : "Caracter, Derrick",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Texas-El Paso",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0122",
+       NAME : "Cardinal, Brian",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Purdue",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0123",
+       NAME : "Carl, Howard Hershey (Howie)",
+       ACTIVE : "1961 - 1961",
+       FROM : "College - Illinois; DePaul",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0124",
+       NAME : "Carlisle, Chester G. (Chet)",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - California",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0125",
+       NAME : "Carlisle, Geno",
+       ACTIVE : "2004 - 2004",
+       FROM : "College - California '99",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0126",
+       NAME : "Carlisle, Rick",
+       ACTIVE : "1984 - 1989",
+       FROM : "College - Maine; Virginia",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0127",
+       NAME : "Carlson, Alvin Harold",
+       ACTIVE : "1975 - 1975",
+       FROM : "College - USC; Oregon",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0128",
+       NAME : "Carlson, Don Vernon (Swede)",
+       ACTIVE : "1946 - 1950",
+       FROM : "College - Minnesota",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0129",
+       NAME : "Carney, Robert Lee (Bob)",
+       ACTIVE : "1954 - 1954",
+       FROM : "College - Bradley",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0130",
+       NAME : "Carney, Rodney",
+       ACTIVE : "2007 - 2010",
+       FROM : "College - Memphis",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0131",
+       NAME : "Carpenter, Robert H. (Bob)",
+       ACTIVE : "1949 - 1950",
+       FROM : "College - Texas A&M-Commerce",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0132",
+       NAME : "Carr, Antoine",
+       ACTIVE : "1984 - 1999",
+       FROM : "College - Wichita State",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0133",
+       NAME : "Carr, Austin George",
+       ACTIVE : "1971 - 1980",
+       FROM : "College - Notre Dame",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0134",
+       NAME : "Carr, Chris",
+       ACTIVE : "1995 - 2000",
+       FROM : "College - Southern Illinois",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0135",
+       NAME : "Carr, Cory",
+       ACTIVE : "1998 - 1998",
+       FROM : "College - Texas Tech",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0136",
+       NAME : "Carr, Kenny",
+       ACTIVE : "1977 - 1986",
+       FROM : "College - North Carolina State",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0137",
+       NAME : "Carr, M.L.",
+       ACTIVE : "1976 - 1984",
+       FROM : "College - Guilford",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0138",
+       NAME : "Carrington, Robert Frederick (Bob)",
+       ACTIVE : "1977 - 1979",
+       FROM : "College - Boston College",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_0139",
+       NAME : "Carroll, DeMarre",
+       ACTIVE : "2009 - 2010",
+       FROM : "College - Missouri",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_0140",
+       NAME : "Carroll, Joe Barry",
+       ACTIVE : "1980 - 1990",
+       FROM : "College - Purdue",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0141",
+       NAME : "Carroll, Matt",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Notre Dame",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0142",
+       NAME : "Carruth, Jimmy",
+       ACTIVE : "1996 - 1996",
+       FROM : "College - Virginia Tech",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0143",
+       NAME : "Carter, Anthony",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Hawaii",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0144",
+       NAME : "Carter, Butch",
+       ACTIVE : "1980 - 1985",
+       FROM : "College - Indiana",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0145",
+       NAME : "Carter, Frederick James (Fred, Mad Dog)",
+       ACTIVE : "1969 - 1976",
+       FROM : "College - Mount St. Mary's",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0146",
+       NAME : "Carter, George",
+       ACTIVE : "1967 - 1967",
+       FROM : "College - St. Bonaventure",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0147",
+       NAME : "Carter, Howard",
+       ACTIVE : "1983 - 1984",
+       FROM : "College - Louisiana State",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0148",
+       NAME : "Carter, John D. (Jake)",
+       ACTIVE : "1949 - 1949",
+       FROM : "College - Texas A&M-Commerce",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0149",
+       NAME : "Carter, Maurice",
+       ACTIVE : "2003 - 2003",
+       FROM : "College - Louisiana State ''99",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_0150",
+       NAME : "D'Antoni, Michael Andrew (Mike)",
+       ACTIVE : "1973 - 1976",
+       FROM : "College - Marshall",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0151",
+       NAME : "Dahler, Edward Jr. (Ed)",
+       ACTIVE : "1951 - 1951",
+       FROM : "College - Duquesne",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0152",
+       NAME : "Dailey, Quintin",
+       ACTIVE : "1982 - 1991",
+       FROM : "College - San Francisco",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_0153",
+       NAME : "Dalembert, Samuel",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Seton Hall",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0154",
+       NAME : "Dallmar, Howard (Howie)",
+       ACTIVE : "1946 - 1948",
+       FROM : "College - Stanford; Pennsylvania",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0155",
+       NAME : "Dampier, Erick",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Mississippi State",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0156",
+       NAME : "Dampier, Louie (Lou)",
+       ACTIVE : "1976 - 1978",
+       FROM : "College - Kentucky",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0157",
+       NAME : "Dandridge, Robert L. Jr. (Bob)",
+       ACTIVE : "1969 - 1981",
+       FROM : "College - Norfolk State",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0158",
+       NAME : "Daniels, Antonio",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Bowling Green",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0159",
+       NAME : "Daniels, Erik",
+       ACTIVE : "2004 - 2004",
+       FROM : "College - Kentucky",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0160",
+       NAME : "Daniels, Lloyd",
+       ACTIVE : "1992 - 1997",
+       FROM : "College - Mount San Antonio Coll. CA (J.C.)",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0161",
+       NAME : "Daniels, Marquis",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Auburn",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_0162",
+       NAME : "Daniels, Mel",
+       ACTIVE : "1976 - 1976",
+       FROM : "College - Burlington Co. Coll. NJ (J.C.); New Mexico",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0163",
+       NAME : "Danilovic, Sasha",
+       ACTIVE : "1995 - 1996",
+       FROM : "College - Serbia",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0164",
+       NAME : "Dantley, Adrian",
+       ACTIVE : "1976 - 1990",
+       FROM : "College - Notre Dame",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0165",
+       NAME : "Darcey, Henry J. (Pete)",
+       ACTIVE : "1952 - 1952",
+       FROM : "College - Oklahoma State",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0166",
+       NAME : "Darden, James W. (Jimmy)",
+       ACTIVE : "1949 - 1949",
+       FROM : "College - Wyoming; Denver",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0167",
+       NAME : "Dare, Yinka",
+       ACTIVE : "1994 - 1997",
+       FROM : "College - George Washington",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0168",
+       NAME : "Dark, Jesse L.",
+       ACTIVE : "1974 - 1974",
+       FROM : "College - Virginia Commonwealth",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0169",
+       NAME : "Darrow, James K. (Jimmy)",
+       ACTIVE : "1961 - 1961",
+       FROM : "College - Bowling Green State",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0170",
+       NAME : "Daugherty, Brad",
+       ACTIVE : "1986 - 1993",
+       FROM : "College - North Carolina",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0171",
+       NAME : "David, Kornel",
+       ACTIVE : "1998 - 2000",
+       FROM : "College - Budapest AEH",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0172",
+       NAME : "Davidson, Jermareo",
+       ACTIVE : "2007 - 2008",
+       FROM : "College - Alabama",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0173",
+       NAME : "Davies, Robert Edris (Bob, Harrisburg Houdini)",
+       ACTIVE : "1948 - 1954",
+       FROM : "College - Franklin & Marshall; Seton Hall",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0174",
+       NAME : "Davis, Antonio",
+       ACTIVE : "1993 - 2005",
+       FROM : "College - Texas-El Paso",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0175",
+       NAME : "Davis, Aubrey D.",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - Oklahoma Baptist",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0176",
+       NAME : "Davis, Baron",
+       ACTIVE : "ACTIVE",
+       FROM : "College - UCLA",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0177",
+       NAME : "Davis, Ben",
+       ACTIVE : "1996 - 1999",
+       FROM : "College - Arizona ''96",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0178",
+       NAME : "Davis, Brad",
+       ACTIVE : "1977 - 1991",
+       FROM : "College - Maryland",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0179",
+       NAME : "Davis, Brian",
+       ACTIVE : "1993 - 1993",
+       FROM : "College - Duke",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0180",
+       NAME : "Davis, Charles Lawrence (Charlie)",
+       ACTIVE : "1971 - 1973",
+       FROM : "College - Wake Forest",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_0181",
+       NAME : "Davis, Charlie E.",
+       ACTIVE : "1981 - 1989",
+       FROM : "College - Vanderbilt",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0182",
+       NAME : "Davis, Dale",
+       ACTIVE : "1991 - 2006",
+       FROM : "College - Clemson",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0183",
+       NAME : "Davis, Damon William (Monti)",
+       ACTIVE : "1980 - 1980",
+       FROM : "College - Tennessee State",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0184",
+       NAME : "Davis, Dwight E. (Double D)",
+       ACTIVE : "1972 - 1976",
+       FROM : "College - Houston",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0185",
+       NAME : "Davis, Ed",
+       ACTIVE : "ACTIVE",
+       FROM : "College - North Carolina",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0186",
+       NAME : "Davis, Edward J. (Mickey)",
+       ACTIVE : "1972 - 1976",
+       FROM : "College - Duquesne",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0187",
+       NAME : "Davis, Emanual",
+       ACTIVE : "1996 - 2002",
+       FROM : "College - Delaware State ''91",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0188",
+       NAME : "Davis, Glen",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Louisiana State",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0189",
+       NAME : "Davis, Harry A.",
+       ACTIVE : "1978 - 1979",
+       FROM : "College - Florida State",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0190",
+       NAME : "Davis, Hubert",
+       ACTIVE : "1992 - 2003",
+       FROM : "College - North Carolina ''92",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0191",
+       NAME : "Davis, James R. (Red)",
+       ACTIVE : "1955 - 1955",
+       FROM : "College - St. John's (N.Y.)",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0192",
+       NAME : "Davis, James W. (Jim)",
+       ACTIVE : "1967 - 1974",
+       FROM : "College - Colorado",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0193",
+       NAME : "Davis, Johnny",
+       ACTIVE : "1976 - 1985",
+       FROM : "College - Dayton",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0194",
+       NAME : "Davis, Josh",
+       ACTIVE : "2003 - 2005",
+       FROM : "College - Wyoming",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0195",
+       NAME : "Davis, Mark",
+       ACTIVE : "1988 - 1988",
+       FROM : "College - Old Dominion",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0196",
+       NAME : "Davis, Mark",
+       ACTIVE : "1995 - 1999",
+       FROM : "College - Texas Tech",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0197",
+       NAME : "Davis, Melvyn Jerome (Mel, Killer)",
+       ACTIVE : "1973 - 1976",
+       FROM : "College - St. John's (N.Y.)",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0198",
+       NAME : "Davis, Michael",
+       ACTIVE : "1982 - 1982",
+       FROM : "College - Mercer Co. CC NJ; Maryland",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0199",
+       NAME : "Davis, Michael A. (Mike, Crusher)",
+       ACTIVE : "1969 - 1972",
+       FROM : "College - Virginia Union",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0200",
+       NAME : "Eackles, Ledell",
+       ACTIVE : "1988 - 1997",
+       FROM : "College - San Jacinto Coll. TX (J.C.); New Orleans",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0201",
+       NAME : "Eakins, James Scott (Jim, Jimbo)",
+       ACTIVE : "1976 - 1977",
+       FROM : "College - Brigham Young",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0202",
+       NAME : "Earl, Acie",
+       ACTIVE : "1993 - 1996",
+       FROM : "College - Iowa",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0203",
+       NAME : "Earle, Edwin (Ed)",
+       ACTIVE : "1953 - 1953",
+       FROM : "College - Loyola (Chicago)",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0204",
+       NAME : "Eaton, Mark",
+       ACTIVE : "1982 - 1992",
+       FROM : "College - Cypress Coll. CA (J.C.); UCLA",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0205",
+       NAME : "Eaves, Jerry",
+       ACTIVE : "1982 - 1986",
+       FROM : "College - Louisville",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0206",
+       NAME : "Ebanks, Devin",
+       ACTIVE : "ACTIVE",
+       FROM : "College - West Virginia",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0207",
+       NAME : "Ebben, William Edward (Bill)",
+       ACTIVE : "1957 - 1957",
+       FROM : "College - Detroit",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0208",
+       NAME : "Eberhard, Allen Dean (Al)",
+       ACTIVE : "1974 - 1977",
+       FROM : "College - Missouri",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0209",
+       NAME : "Ebi, Ndudi",
+       ACTIVE : "2003 - 2004",
+       FROM : "High School - Westbury Christian HS (TX)",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0210",
+       NAME : "Eddie, Patrick",
+       ACTIVE : "1991 - 1991",
+       FROM : "College - Arkansas State; Mississippi",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0211",
+       NAME : "Eddleman, Thomas Dwight (Dike)",
+       ACTIVE : "1949 - 1952",
+       FROM : "College - Illinois",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0212",
+       NAME : "Edelin, Kenton Scott (Kent)",
+       ACTIVE : "1984 - 1984",
+       FROM : "College - Virginia",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_0213",
+       NAME : "Edmonson, Keith",
+       ACTIVE : "1982 - 1983",
+       FROM : "College - Purdue",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0214",
+       NAME : "Edney, Tyus",
+       ACTIVE : "1995 - 2000",
+       FROM : "College - UCLA",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0215",
+       NAME : "Edwards, Bill",
+       ACTIVE : "1993 - 1993",
+       FROM : "College - Wright State",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0216",
+       NAME : "Edwards, Blue",
+       ACTIVE : "1989 - 1998",
+       FROM : "College - Louisburg; East Carolina",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0217",
+       NAME : "Edwards, Corsley",
+       ACTIVE : "2004 - 2004",
+       FROM : "College - Central Connecticut State '02",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0218",
+       NAME : "Edwards, Doug",
+       ACTIVE : "1993 - 1995",
+       FROM : "College - Florida State",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0219",
+       NAME : "Edwards, Franklin",
+       ACTIVE : "1981 - 1987",
+       FROM : "College - Cleveland State",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0220",
+       NAME : "Edwards, James",
+       ACTIVE : "1977 - 1995",
+       FROM : "College - Washington",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0221",
+       NAME : "Edwards, Jay",
+       ACTIVE : "1989 - 1989",
+       FROM : "College - Indiana",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0222",
+       NAME : "Edwards, John",
+       ACTIVE : "2004 - 2005",
+       FROM : "College - Kent State",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0223",
+       NAME : "Edwards, Kevin",
+       ACTIVE : "1988 - 2000",
+       FROM : "College - Lakeland CC OH; DePaul",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0224",
+       NAME : "Egan, John Francis (Johnny)",
+       ACTIVE : "1961 - 1971",
+       FROM : "College - Providence",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0225",
+       NAME : "Eggleston, Lonnie J.",
+       ACTIVE : "1948 - 1948",
+       FROM : "College - Oklahoma State",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0226",
+       NAME : "Ehlers, Edwin S. (Eddie, Bulbs)",
+       ACTIVE : "1947 - 1948",
+       FROM : "College - Purdue",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0227",
+       NAME : "Ehlo, Craig",
+       ACTIVE : "1983 - 1996",
+       FROM : "College - Odessa Coll. TX (J.C.); Washington State",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0228",
+       NAME : "Eichhorst, Richard A. (Dick)",
+       ACTIVE : "1961 - 1961",
+       FROM : "College - Southeast Missouri State",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0229",
+       NAME : "Eisley, Howard",
+       ACTIVE : "1994 - 2005",
+       FROM : "College - Boston College",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0230",
+       NAME : "Ekezie, Obinna",
+       ACTIVE : "1999 - 2004",
+       FROM : "College - Maryland",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0231",
+       NAME : "El-Amin, Khalid",
+       ACTIVE : "2000 - 2000",
+       FROM : "College - Connecticut ''01",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0232",
+       NAME : "Eliason, Donald Carlton (Don)",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - Hamline",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0233",
+       NAME : "Elie, Mario",
+       ACTIVE : "1990 - 2000",
+       FROM : "College - American International",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0234",
+       NAME : "Ellefson, E. Ray (Ray)",
+       ACTIVE : "1948 - 1950",
+       FROM : "College - Oklahoma State; Colorado; West Texas A&M",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0235",
+       NAME : "Ellington, Wayne",
+       ACTIVE : "ACTIVE",
+       FROM : "College - North Carolina",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0236",
+       NAME : "Elliott, Robert Alan (Bob)",
+       ACTIVE : "1978 - 1980",
+       FROM : "College - Arizona",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0237",
+       NAME : "Elliott, Sean",
+       ACTIVE : "1989 - 2000",
+       FROM : "College - Arizona",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0238",
+       NAME : "Ellis, Alexander (Boo)",
+       ACTIVE : "1958 - 1959",
+       FROM : "College - Niagara",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0239",
+       NAME : "Ellis, Dale",
+       ACTIVE : "1983 - 1999",
+       FROM : "College - Tennessee",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0240",
+       NAME : "Ellis, Harold",
+       ACTIVE : "1993 - 1997",
+       FROM : "College - Morehouse",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0241",
+       NAME : "Ellis, Joe",
+       ACTIVE : "1966 - 1973",
+       FROM : "College - San Francisco",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0242",
+       NAME : "Ellis, LaPhonso",
+       ACTIVE : "1992 - 2002",
+       FROM : "College - Notre Dame ''92",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0243",
+       NAME : "Ellis, LeRon",
+       ACTIVE : "1991 - 1995",
+       FROM : "College - Kentucky; Syracuse",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0244",
+       NAME : "Ellis, Leroy",
+       ACTIVE : "1962 - 1975",
+       FROM : "College - St. John's (N.Y.)",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0245",
+       NAME : "Ellis, Maurice H. (Bo)",
+       ACTIVE : "1977 - 1979",
+       FROM : "College - Marquette",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0246",
+       NAME : "Ellis, Monta",
+       ACTIVE : "ACTIVE",
+       FROM : "High School - Lanier HS (Jackson, MS)",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0247",
+       NAME : "Ellison, Pervis",
+       ACTIVE : "1989 - 2000",
+       FROM : "College - Louisville",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0248",
+       NAME : "Elmore, Len",
+       ACTIVE : "1976 - 1983",
+       FROM : "College - Maryland",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0249",
+       NAME : "Elson, Francisco",
+       ACTIVE : "ACTIVE",
+       FROM : "College - California",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0250",
+       NAME : "Fabel, Joseph (Joe)",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - Pittsburgh",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0251",
+       NAME : "Fairchild, John Russell",
+       ACTIVE : "1965 - 1965",
+       FROM : "College - Palomar Coll. CA (J.C.); Brigham Young",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0252",
+       NAME : "Farbman, Philip M. (Phil)",
+       ACTIVE : "1948 - 1948",
+       FROM : "College - CCNY; Brooklyn College",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0253",
+       NAME : "Farley, Richard L. (Dick)",
+       ACTIVE : "1954 - 1958",
+       FROM : "College - Indiana",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0254",
+       NAME : "Farmar, Jordan",
+       ACTIVE : "ACTIVE",
+       FROM : "College - UCLA",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0255",
+       NAME : "Farmer, Desmon",
+       ACTIVE : "2006 - 2008",
+       FROM : "College - USC",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0256",
+       NAME : "Farmer, Don Michael (Mike)",
+       ACTIVE : "1958 - 1965",
+       FROM : "College - San Francisco",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0257",
+       NAME : "Farmer, Jim",
+       ACTIVE : "1987 - 1993",
+       FROM : "College - Alabama",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0258",
+       NAME : "Farmer, Tony",
+       ACTIVE : "1997 - 1999",
+       FROM : "College - Nebraska",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0259",
+       NAME : "Faught, Robert Edward (Bob)",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - Notre Dame",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0260",
+       NAME : "Favors, Derrick",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Georgia Tech",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0261",
+       NAME : "Fazekas, Nick",
+       ACTIVE : "2007 - 2007",
+       FROM : "College - Nevada-Reno",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0262",
+       NAME : "Fedor, Samuel David (Dave)",
+       ACTIVE : "1962 - 1962",
+       FROM : "College - Florida State",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0263",
+       NAME : "Feerick, Robert Joseph (Bob)",
+       ACTIVE : "1946 - 1949",
+       FROM : "College - Santa Clara",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0264",
+       NAME : "Feher, Raymond G. (Butch)",
+       ACTIVE : "1976 - 1976",
+       FROM : "College - Vanderbilt",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0265",
+       NAME : "Feick, Jamie",
+       ACTIVE : "1996 - 2000",
+       FROM : "College - Michigan State ''96",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0266",
+       NAME : "Feiereisel, Ronald E. (Ron)",
+       ACTIVE : "1955 - 1955",
+       FROM : "College - DePaul",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0267",
+       NAME : "Feigenbaum, George",
+       ACTIVE : "1949 - 1952",
+       FROM : "College - Long Island University; Kentucky",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_0268",
+       NAME : "Feitl, Dave",
+       ACTIVE : "1986 - 1991",
+       FROM : "College - Texas-El Paso",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0269",
+       NAME : "Felix, Noel",
+       ACTIVE : "2005 - 2005",
+       FROM : "College - Fresno State",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0270",
+       NAME : "Felix, Ray",
+       ACTIVE : "1953 - 1961",
+       FROM : "College - Long Island University",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0271",
+       NAME : "Felton, Raymond",
+       ACTIVE : "ACTIVE",
+       FROM : "College - North Carolina",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0272",
+       NAME : "Fendley, John Phillip (Jake)",
+       ACTIVE : "1951 - 1952",
+       FROM : "College - Northwestern",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0273",
+       NAME : "Fenley, William Warren (Bill)",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - Manhattan",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0274",
+       NAME : "Ferguson, Desmond",
+       ACTIVE : "2003 - 2003",
+       FROM : "College - Detroit",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0275",
+       NAME : "Fernandez, Rudy",
+       ACTIVE : "ACTIVE",
+       FROM : "From - Palma de Mallorca, Spain",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0276",
+       NAME : "Fernsten, Eric",
+       ACTIVE : "1975 - 1983",
+       FROM : "College - San Francisco",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0277",
+       NAME : "Ferrari, Albert R. (Al)",
+       ACTIVE : "1955 - 1962",
+       FROM : "College - Michigan State",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0278",
+       NAME : "Ferreira, Rolando",
+       ACTIVE : "1988 - 1988",
+       FROM : "College - Houston",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0279",
+       NAME : "Ferrell, Duane",
+       ACTIVE : "1988 - 1998",
+       FROM : "College - Georgia Tech",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0280",
+       NAME : "Ferrin, C. Arnold Jr. (Arnie)",
+       ACTIVE : "1948 - 1950",
+       FROM : "College - Utah",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0281",
+       NAME : "Ferry, Danny",
+       ACTIVE : "1990 - 2002",
+       FROM : "College - Duke ''89",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0282",
+       NAME : "Ferry, Robert Dean (Bob)",
+       ACTIVE : "1959 - 1968",
+       FROM : "College - St. Louis",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0283",
+       NAME : "Fesenko, Kyrylo",
+       ACTIVE : "ACTIVE",
+       FROM : "From - Dnepropetrovsk, Ukraine",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0284",
+       NAME : "Fields, Kenny",
+       ACTIVE : "1984 - 1987",
+       FROM : "College - UCLA",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0285",
+       NAME : "Fields, Landry",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Stanford",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0286",
+       NAME : "Filipek, Ronald Stanley (Ron)",
+       ACTIVE : "1967 - 1967",
+       FROM : "College - Tennessee Tech",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0287",
+       NAME : "Fillmore, Gregory Paul (Greg)",
+       ACTIVE : "1970 - 1971",
+       FROM : "College - Iowa Central CC; Cheyney",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0288",
+       NAME : "Finkel, Henry J. (Hank)",
+       ACTIVE : "1966 - 1974",
+       FROM : "College - St. Peter's; Dayton",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0289",
+       NAME : "Finley, Michael",
+       ACTIVE : "2007 - 2009",
+       FROM : "College - Wisconsin",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0290",
+       NAME : "Finn, Daniel Lawrence Jr. (Danny)",
+       ACTIVE : "1952 - 1954",
+       FROM : "College - St. John's (N.Y.)",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0291",
+       NAME : "Fish, Matt",
+       ACTIVE : "1994 - 1996",
+       FROM : "College - Wilmington",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0292",
+       NAME : "Fisher, Derek",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Arkansas-Little Rock",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0293",
+       NAME : "Fitch, Gerald",
+       ACTIVE : "2005 - 2005",
+       FROM : "College - Kentucky",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0294",
+       NAME : "Fitzgerald, Richard (Dick)",
+       ACTIVE : "1946 - 1947",
+       FROM : "College - Seton Hall",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0295",
+       NAME : "Fitzgerald, Robert (Bob)",
+       ACTIVE : "1946 - 1948",
+       FROM : "College - Fordham",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0296",
+       NAME : "Fizer, Marcus",
+       ACTIVE : "2000 - 2005",
+       FROM : "College - Iowa State",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0297",
+       NAME : "Fleishman, Jerome (Jerry)",
+       ACTIVE : "1946 - 1952",
+       FROM : "College - N.Y.U.; Long Island University",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0298",
+       NAME : "Fleming, Albert Jr. (Al)",
+       ACTIVE : "1977 - 1977",
+       FROM : "College - Arizona",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0299",
+       NAME : "Fleming, Edward R. (Ed)",
+       ACTIVE : "1955 - 1959",
+       FROM : "College - Niagara",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0300",
+       NAME : "Gabor, William A. (Billy, The Human Projectile)",
+       ACTIVE : "1949 - 1954",
+       FROM : "College - Syracuse",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0301",
+       NAME : "Gadzuric, Dan",
+       ACTIVE : "ACTIVE",
+       FROM : "College - UCLA",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0302",
+       NAME : "Gai, Deng",
+       ACTIVE : "2005 - 2005",
+       FROM : "College - Fairfield",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0303",
+       NAME : "Gainer, Elmer R.",
+       ACTIVE : "1947 - 1949",
+       FROM : "College - DePaul",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0304",
+       NAME : "Gaines, Corey",
+       ACTIVE : "1988 - 1994",
+       FROM : "College - UCLA; Loyola Marymount",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0305",
+       NAME : "Gaines, Reece",
+       ACTIVE : "2003 - 2005",
+       FROM : "College - Louisville",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0306",
+       NAME : "Gaines, Sundiata",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Georgia",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0307",
+       NAME : "Gale, Mike",
+       ACTIVE : "1976 - 1981",
+       FROM : "College - Elizabeth City State",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_0308",
+       NAME : "Gallagher, Chad",
+       ACTIVE : "1993 - 1993",
+       FROM : "College - Creighton",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0309",
+       NAME : "Gallatin, Harry",
+       ACTIVE : "1948 - 1957",
+       FROM : "College - Northeast Missouri State",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0310",
+       NAME : "Gallinari, Danilo",
+       ACTIVE : "ACTIVE",
+       FROM : "From - Milan, Italy",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0311",
+       NAME : "Gambee, Dave",
+       ACTIVE : "1958 - 1969",
+       FROM : "College - Oregon State",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0312",
+       NAME : "Gamble, Kevin",
+       ACTIVE : "1987 - 1996",
+       FROM : "College - Lincoln Trail IL (J.C.); Iowa",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0313",
+       NAME : "Gantt, Robert M. Jr. (Bob)",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - Duke",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0314",
+       NAME : "Garbajosa, Jorge",
+       ACTIVE : "2007 - 2007",
+       FROM : "From - Spain",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0315",
+       NAME : "Garces, Ruben",
+       ACTIVE : "2000 - 2000",
+       FROM : "College - Providence",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0316",
+       NAME : "Garcia, Alex",
+       ACTIVE : "2003 - 2004",
+       FROM : "From - Brazil",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0317",
+       NAME : "Garcia, Francisco",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Louisville",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0318",
+       NAME : "Gardner, Earl Baker (Red)",
+       ACTIVE : "1948 - 1948",
+       FROM : "College - Wabash; DePauw",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0319",
+       NAME : "Gardner, Thomas",
+       ACTIVE : "2007 - 2008",
+       FROM : "College - Missouri",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0320",
+       NAME : "Gardner, Vern B.",
+       ACTIVE : "1949 - 1951",
+       FROM : "College - Wyoming; Utah",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0321",
+       NAME : "Garfinkel, Jack (Dutch)",
+       ACTIVE : "1946 - 1948",
+       FROM : "College - St. John's (N.Y.)",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0322",
+       NAME : "Garland, Gary J.",
+       ACTIVE : "1979 - 1979",
+       FROM : "College - DePaul",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0323",
+       NAME : "Garland, Winston",
+       ACTIVE : "1987 - 1994",
+       FROM : "College - Southeastern CC IA; Southwest Missouri State",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0324",
+       NAME : "Garmaker, Richard Eugene (Dick)",
+       ACTIVE : "1955 - 1960",
+       FROM : "College - Hibbing CC MN; Minnesota",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0325",
+       NAME : "Garner, Chris",
+       ACTIVE : "1997 - 2000",
+       FROM : "College - Memphis",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0326",
+       NAME : "Garnett, Bill",
+       ACTIVE : "1982 - 1985",
+       FROM : "College - Wyoming",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0327",
+       NAME : "Garnett, Kevin",
+       ACTIVE : "ACTIVE",
+       FROM : "High School - Farragut Academy HS (IL)",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0328",
+       NAME : "Garnett, Marlon",
+       ACTIVE : "1998 - 1998",
+       FROM : "College - Santa Clara",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0329",
+       NAME : "Garrett, Calvin",
+       ACTIVE : "1980 - 1983",
+       FROM : "College - Austin Peay State; Oral Roberts",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0330",
+       NAME : "Garrett, Dean",
+       ACTIVE : "1996 - 2001",
+       FROM : "College - Indiana",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0331",
+       NAME : "Garrett, Eldo (Dick)",
+       ACTIVE : "1969 - 1973",
+       FROM : "College - Southern Illinois",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0332",
+       NAME : "Garrett, Rowland G.",
+       ACTIVE : "1972 - 1976",
+       FROM : "College - Florida State",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0333",
+       NAME : "Garrick, Tom",
+       ACTIVE : "1988 - 1991",
+       FROM : "College - Rhode Island",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0334",
+       NAME : "Garris, John",
+       ACTIVE : "1983 - 1983",
+       FROM : "College - Michigan; Boston College",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0335",
+       NAME : "Garris, Kiwane",
+       ACTIVE : "1997 - 1999",
+       FROM : "College - Illinois",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0336",
+       NAME : "Garrity, Pat",
+       ACTIVE : "2007 - 2007",
+       FROM : "College - Notre Dame",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0337",
+       NAME : "Garvin, James D. (Jim)",
+       ACTIVE : "1973 - 1973",
+       FROM : "College - Boston U.",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0338",
+       NAME : "Gasol, Marc",
+       ACTIVE : "ACTIVE",
+       FROM : "From - Barcelona, Spain",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0339",
+       NAME : "Gasol, Pau",
+       ACTIVE : "ACTIVE",
+       FROM : "From - Barcelona, Spain",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0340",
+       NAME : "Gates, Ben Frank (Frank, Needle)",
+       ACTIVE : "1949 - 1949",
+       FROM : "College - Sam Houston State",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0341",
+       NAME : "Gatling, Chris",
+       ACTIVE : "1991 - 2001",
+       FROM : "College - Pittsburgh; Old Dominion",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0342",
+       NAME : "Gattison, Kenny",
+       ACTIVE : "1986 - 1995",
+       FROM : "College - Old Dominion",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0343",
+       NAME : "Gay, Rudy",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Connecticut",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0344",
+       NAME : "Gayda, Edward C. (Ed)",
+       ACTIVE : "1950 - 1950",
+       FROM : "College - Washington State",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0345",
+       NAME : "Gaze, Andrew",
+       ACTIVE : "1993 - 1998",
+       FROM : "College - Seton Hall",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0346",
+       NAME : "Geary, Reggie",
+       ACTIVE : "1996 - 1997",
+       FROM : "College - Arizona",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0347",
+       NAME : "Gee, Alonzo",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Alabama",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0348",
+       NAME : "Geiger, Matt",
+       ACTIVE : "1992 - 2001",
+       FROM : "College - Auburn; Georgia Tech",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0349",
+       NAME : "Gelabale, Mickael",
+       ACTIVE : "2007 - 2007",
+       FROM : "From - France",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0350",
+       NAME : "Hackett, Rudolph (Rudy)",
+       ACTIVE : "1976 - 1976",
+       FROM : "College - Syracuse",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0351",
+       NAME : "Haddadi, Hamed",
+       ACTIVE : "ACTIVE",
+       FROM : "From - Ahvaz, Iran",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0352",
+       NAME : "Haffner, Scott",
+       ACTIVE : "1989 - 1990",
+       FROM : "College - Illinois; Evansville",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0353",
+       NAME : "Hagan, Cliff",
+       ACTIVE : "1956 - 1965",
+       FROM : "College - Kentucky",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0354",
+       NAME : "Hagan, Glenn Kassabin",
+       ACTIVE : "1981 - 1981",
+       FROM : "College - St. Bonaventure",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0355",
+       NAME : "Hahn, Robert B. (Bob)",
+       ACTIVE : "1949 - 1949",
+       FROM : "College - North Carolina State",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0356",
+       NAME : "Hairston, Alan Leroy (Al)",
+       ACTIVE : "1968 - 1969",
+       FROM : "College - St. Clair Co. CC MI; Bowling Green State",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0357",
+       NAME : "Hairston, Happy",
+       ACTIVE : "1964 - 1974",
+       FROM : "College - N.Y.U.",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_0358",
+       NAME : "Hairston, Lindsay (Spider)",
+       ACTIVE : "1975 - 1975",
+       FROM : "College - Michigan State",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0359",
+       NAME : "Hairston, Malik",
+       ACTIVE : "2008 - 2009",
+       FROM : "College - Oregon",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0360",
+       NAME : "Haislip, Marcus",
+       ACTIVE : "2002 - 2009",
+       FROM : "College - Tennessee",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0361",
+       NAME : "Halbert, Charles P. (Chuck)",
+       ACTIVE : "1946 - 1950",
+       FROM : "College - West Texas A&M",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0362",
+       NAME : "Halbrook, Harvey Wade (Swede)",
+       ACTIVE : "1960 - 1961",
+       FROM : "College - Oregon State",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0363",
+       NAME : "Hale, William Bruce (Bruce)",
+       ACTIVE : "1948 - 1950",
+       FROM : "College - Santa Clara",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0364",
+       NAME : "Haley, Jack",
+       ACTIVE : "1988 - 1997",
+       FROM : "College - Golden West Coll. CA (J.C.); UCLA",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0365",
+       NAME : "Halimon, Shaler Jr.",
+       ACTIVE : "1968 - 1971",
+       FROM : "College - Imperial Valley Coll. CA (J.C.); Utah State",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0366",
+       NAME : "Hall, Mike",
+       ACTIVE : "2006 - 2006",
+       FROM : "College - George Washington",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0367",
+       NAME : "Halliburton, Jeffrey (Jeff)",
+       ACTIVE : "1971 - 1972",
+       FROM : "College - San Jacinto Coll. TX (J.C.); Drake",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0368",
+       NAME : "Ham, Darvin",
+       ACTIVE : "1996 - 2004",
+       FROM : "College - Texas Tech",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0369",
+       NAME : "Hamer, Steve",
+       ACTIVE : "1996 - 1996",
+       FROM : "College - Tennessee",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0370",
+       NAME : "Hamilton, Dale B.",
+       ACTIVE : "1949 - 1949",
+       FROM : "College - Franklin (Ind.)",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0371",
+       NAME : "Hamilton, Dennis Eugene",
+       ACTIVE : "1967 - 1968",
+       FROM : "College - Arizona State",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0372",
+       NAME : "Hamilton, Ralph Albert (Ham)",
+       ACTIVE : "1948 - 1948",
+       FROM : "College - Indiana",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0373",
+       NAME : "Hamilton, Richard",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Connecticut",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0374",
+       NAME : "Hamilton, Roy Lee",
+       ACTIVE : "1979 - 1980",
+       FROM : "College - UCLA",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0375",
+       NAME : "Hamilton, Steve Absher",
+       ACTIVE : "1958 - 1959",
+       FROM : "College - Purdue; Morehead State",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_0376",
+       NAME : "Hamilton, Tang",
+       ACTIVE : "2001 - 2001",
+       FROM : "College - Mississippi State ''01",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0377",
+       NAME : "Hamilton, Thomas",
+       ACTIVE : "1995 - 1999",
+       FROM : "College - No College",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0378",
+       NAME : "Hamilton, Zendon",
+       ACTIVE : "2000 - 2005",
+       FROM : "College - St. John's",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0379",
+       NAME : "Hammink, Geert",
+       ACTIVE : "1993 - 1995",
+       FROM : "College - Louisiana State",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0380",
+       NAME : "Hammonds, Tom",
+       ACTIVE : "1989 - 2000",
+       FROM : "College - Georgia Tech",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0381",
+       NAME : "Hancock, Darrin",
+       ACTIVE : "1994 - 1996",
+       FROM : "College - Garden City CC KS; Kansas",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0382",
+       NAME : "Handlogten, Ben",
+       ACTIVE : "2003 - 2004",
+       FROM : "College - Western Michigan",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0383",
+       NAME : "Hankins, Cecil O.",
+       ACTIVE : "1946 - 1947",
+       FROM : "College - Oklahoma State",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0384",
+       NAME : "Hankinson, Phil",
+       ACTIVE : "1973 - 1974",
+       FROM : "College - Pennsylvania",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0385",
+       NAME : "Hannum, Alexander Murray (Alex)",
+       ACTIVE : "1949 - 1956",
+       FROM : "College - USC",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0386",
+       NAME : "Hanrahan, Donald (Don)",
+       ACTIVE : "1952 - 1952",
+       FROM : "College - Loyola (Chicago)",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0387",
+       NAME : "Hans, Rollen F. (Rolly)",
+       ACTIVE : "1953 - 1954",
+       FROM : "College - Los Angeles City Coll. CA (J.C.); Long Island University",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0388",
+       NAME : "Hansbrough, Tyler",
+       ACTIVE : "ACTIVE",
+       FROM : "College - North Carolina",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0389",
+       NAME : "Hansen, Bob",
+       ACTIVE : "1983 - 1991",
+       FROM : "College - Iowa",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0390",
+       NAME : "Hansen, Glenn R.",
+       ACTIVE : "1975 - 1977",
+       FROM : "College - Utah State; Louisiana State",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0391",
+       NAME : "Hansen, Lars",
+       ACTIVE : "1978 - 1978",
+       FROM : "College - Washington",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0392",
+       NAME : "Hansen, Travis",
+       ACTIVE : "2003 - 2003",
+       FROM : "College - Brigham Young",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0393",
+       NAME : "Hanson, Reggie",
+       ACTIVE : "1997 - 1997",
+       FROM : "College - Kentucky",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0394",
+       NAME : "Hanzlik, Bill",
+       ACTIVE : "1980 - 1989",
+       FROM : "College - Notre Dame",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0395",
+       NAME : "Harangody, Luke",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Notre Dame",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0396",
+       NAME : "Hardaway, Anfernee",
+       ACTIVE : "2007 - 2007",
+       FROM : "College - Memphis",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_0397",
+       NAME : "Hardaway, Tim",
+       ACTIVE : "1989 - 2002",
+       FROM : "College - Texas-El Paso ''89",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0398",
+       NAME : "Harden, James",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Arizona State",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0399",
+       NAME : "Harding, Reginald (Reggie)",
+       ACTIVE : "1963 - 1967",
+       FROM : "College - No College",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0400",
+       NAME : "Iavaroni, Marc",
+       ACTIVE : "1982 - 1988",
+       FROM : "College - Virginia",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0401",
+       NAME : "Ibaka, Serge",
+       ACTIVE : "ACTIVE",
+       FROM : "From - Brazzaville, Republic of Congo",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0402",
+       NAME : "Iguodala, Andre",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Arizona",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0403",
+       NAME : "Ilgauskas, Zydrunas",
+       ACTIVE : "ACTIVE",
+       FROM : "From - Kaunas, Lithuania",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0404",
+       NAME : "Ilic, Mile",
+       ACTIVE : "2006 - 2006",
+       FROM : "From - Serbia & Montenegro",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0405",
+       NAME : "Ilunga-Mbenga, Didier",
+       ACTIVE : "ACTIVE",
+       FROM : "From - Kinshasa, DRC",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0406",
+       NAME : "Ilyasova, Ersan",
+       ACTIVE : "ACTIVE",
+       FROM : "From - Eskisehir, Turkey",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0407",
+       NAME : "Imhoff, Darrall Tucker (Big D)",
+       ACTIVE : "1960 - 1971",
+       FROM : "College - California",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0408",
+       NAME : "Ingelsby, Tom",
+       ACTIVE : "1973 - 1973",
+       FROM : "College - Villanova",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0409",
+       NAME : "Ingram, Joel McCoy (McCoy)",
+       ACTIVE : "1957 - 1957",
+       FROM : "College - Jackson State",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0410",
+       NAME : "Irvin, Byron",
+       ACTIVE : "1989 - 1992",
+       FROM : "College - Arkansas; Missouri",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0411",
+       NAME : "Issel, Dan",
+       ACTIVE : "1976 - 1984",
+       FROM : "College - Kentucky",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0412",
+       NAME : "Iuzzolino, Mike",
+       ACTIVE : "1991 - 1992",
+       FROM : "College - Penn State; St. Francis (PA)",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0413",
+       NAME : "Iverson, Allen",
+       ACTIVE : "2007 - 2009",
+       FROM : "College - Georgetown",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0414",
+       NAME : "Ivey, Royal",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Texas",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0415",
+       NAME : "Jack, Jarrett",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Georgia Tech",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0416",
+       NAME : "Jackson, Alvin (Al)",
+       ACTIVE : "1967 - 1967",
+       FROM : "College - Wilberforce",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0417",
+       NAME : "Jackson, Anthony Eugene (Tony)",
+       ACTIVE : "1980 - 1980",
+       FROM : "College - Florida State",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0418",
+       NAME : "Jackson, Bobby",
+       ACTIVE : "2007 - 2008",
+       FROM : "College - Minnesota",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0419",
+       NAME : "Jackson, Cedric",
+       ACTIVE : "2009 - 2009",
+       FROM : "College - Cleveland State",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0420",
+       NAME : "Jackson, Darnell",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Kansas",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0421",
+       NAME : "Jackson, Gregory (Greg)",
+       ACTIVE : "1974 - 1974",
+       FROM : "College - Guilford",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0422",
+       NAME : "Jackson, Jaren",
+       ACTIVE : "1989 - 2001",
+       FROM : "College - Georgetown",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0423",
+       NAME : "Jackson, Jermaine",
+       ACTIVE : "1999 - 2005",
+       FROM : "College - Detroit",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0424",
+       NAME : "Jackson, Jim",
+       ACTIVE : "1992 - 2005",
+       FROM : "College - Ohio State",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0425",
+       NAME : "Jackson, Lucious B. (Luke)",
+       ACTIVE : "1964 - 1971",
+       FROM : "College - Quincy; Texas Southern; Texas-Pan American",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0426",
+       NAME : "Jackson, Luke",
+       ACTIVE : "2007 - 2007",
+       FROM : "College - Oregon",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0427",
+       NAME : "Jackson, Marc",
+       ACTIVE : "2000 - 2006",
+       FROM : "College - Temple",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0428",
+       NAME : "Jackson, Mark",
+       ACTIVE : "1987 - 2003",
+       FROM : "College - St. John''s (N.Y.) '87",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0429",
+       NAME : "Jackson, Michael",
+       ACTIVE : "1987 - 1989",
+       FROM : "College - Georgetown",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0430",
+       NAME : "Jackson, Myron",
+       ACTIVE : "1986 - 1986",
+       FROM : "College - Arkansas-Little Rock",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0431",
+       NAME : "Jackson, Philip D. (Phil, Action)",
+       ACTIVE : "1967 - 1979",
+       FROM : "College - North Dakota",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0432",
+       NAME : "Jackson, Ralph A. III",
+       ACTIVE : "1984 - 1984",
+       FROM : "College - UCLA",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0433",
+       NAME : "Jackson, Randell",
+       ACTIVE : "1998 - 1999",
+       FROM : "College - Florida State",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0434",
+       NAME : "Jackson, Stanley",
+       ACTIVE : "1993 - 1993",
+       FROM : "College - Alabama-Birmingham",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0435",
+       NAME : "Jackson, Stephen",
+       ACTIVE : "ACTIVE",
+       FROM : "High School - Oak Hill Academy (Mouth of Wilson, VA)",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0436",
+       NAME : "Jackson, Tracy",
+       ACTIVE : "1981 - 1983",
+       FROM : "College - Notre Dame",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0437",
+       NAME : "Jackson, Wardell",
+       ACTIVE : "1974 - 1974",
+       FROM : "College - Ohio State",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0438",
+       NAME : "Jacobs, Winfred O. (Fred)",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - Denver",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0439",
+       NAME : "Jacobsen, Casey",
+       ACTIVE : "2007 - 2007",
+       FROM : "College - Stanford",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0440",
+       NAME : "Jacobson, Sam",
+       ACTIVE : "1998 - 2000",
+       FROM : "College - Minnesota",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0441",
+       NAME : "Jamerson, Dave",
+       ACTIVE : "1990 - 1993",
+       FROM : "College - Ohio U.",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0442",
+       NAME : "James, Aaron (A.J.)",
+       ACTIVE : "1974 - 1978",
+       FROM : "College - Grambling State",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0443",
+       NAME : "James, Damion",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Texas",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0444",
+       NAME : "James, Harold Gene (Gene, Goose)",
+       ACTIVE : "1948 - 1950",
+       FROM : "College - Marshall",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0445",
+       NAME : "James, Henry",
+       ACTIVE : "1990 - 1997",
+       FROM : "College - South Plains Coll. TX (J.C.); St. Mary's (Tex.)",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0446",
+       NAME : "James, Jerome",
+       ACTIVE : "2007 - 2008",
+       FROM : "College - Florida A&M",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0447",
+       NAME : "James, LeBron",
+       ACTIVE : "ACTIVE",
+       FROM : "High School - St. Vincent-St. Mary HS (OH)",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0448",
+       NAME : "James, Mike",
+       ACTIVE : "2007 - 2009",
+       FROM : "College - Duquesne",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_0449",
+       NAME : "James, Tim",
+       ACTIVE : "1999 - 2001",
+       FROM : "College - Miami (Fla.) ''99",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0450",
+       NAME : "Jamison, Antawn",
+       ACTIVE : "ACTIVE",
+       FROM : "College - North Carolina",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0451",
+       NAME : "Jamison, Harold",
+       ACTIVE : "1999 - 2001",
+       FROM : "College - Clemson ''99",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0452",
+       NAME : "Janisch, John Albert",
+       ACTIVE : "1946 - 1947",
+       FROM : "College - Valparaiso",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0453",
+       NAME : "Janotta, Howard (Howie)",
+       ACTIVE : "1949 - 1949",
+       FROM : "College - Seton Hall",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0454",
+       NAME : "Jaric, Marko",
+       ACTIVE : "2007 - 2008",
+       FROM : "From - Belgrade, Serbia",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0455",
+       NAME : "Jaros, Anthony Joseph (Tony)",
+       ACTIVE : "1946 - 1950",
+       FROM : "College - Minnesota",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0456",
+       NAME : "Jasikevicius, Sarunas",
+       ACTIVE : "2005 - 2006",
+       FROM : "College - Maryland",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0457",
+       NAME : "Jawai, Nathan",
+       ACTIVE : "2008 - 2009",
+       FROM : "From - Australia",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0458",
+       NAME : "Jeannette, Harry Edward (Buddy)",
+       ACTIVE : "1947 - 1949",
+       FROM : "College - Washington & Jefferson",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0459",
+       NAME : "Jeelani, Abdul Qadir (formerly Gary Cole)",
+       ACTIVE : "1979 - 1980",
+       FROM : "College - Wis.-Parkside",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0460",
+       NAME : "Jefferies, Chris",
+       ACTIVE : "2002 - 2003",
+       FROM : "College - Fresno State ''03",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0461",
+       NAME : "Jeffers, Othyus",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Robert Morris (Ill.)",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0462",
+       NAME : "Jefferson, Al",
+       ACTIVE : "ACTIVE",
+       FROM : "High School - Prentiss HS (MS)",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0463",
+       NAME : "Jefferson, Dontell",
+       ACTIVE : "2008 - 2008",
+       FROM : "College - Arkansas",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0464",
+       NAME : "Jefferson, Richard",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Arizona",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0465",
+       NAME : "Kachan, Edwin John (Whitey)",
+       ACTIVE : "1948 - 1948",
+       FROM : "College - DePaul",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0466",
+       NAME : "Kaftan, George A. (The Golden Greek)",
+       ACTIVE : "1948 - 1952",
+       FROM : "College - Holy Cross",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0467",
+       NAME : "Kalafat, Edward L. (Ed)",
+       ACTIVE : "1954 - 1956",
+       FROM : "College - Minnesota",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0468",
+       NAME : "Kaman, Chris",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Central Michigan",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_0469",
+       NAME : "Kaplowitz, Ralph (Kappy)",
+       ACTIVE : "1946 - 1947",
+       FROM : "College - N.Y.U.",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0470",
+       NAME : "Kapono, Jason",
+       ACTIVE : "ACTIVE",
+       FROM : "College - UCLA",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0471",
+       NAME : "Kappen, Anthony George (Tony)",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - No College",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0472",
+       NAME : "Karl, Coby",
+       ACTIVE : "2007 - 2009",
+       FROM : "College - Boise State",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0473",
+       NAME : "Karl, George Matthew",
+       ACTIVE : "1976 - 1977",
+       FROM : "College - North Carolina",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0474",
+       NAME : "Kasid, Edward (Ed)",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - No College",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0475",
+       NAME : "Kasun, Mario",
+       ACTIVE : "2004 - 2005",
+       FROM : "From - Croatia",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0476",
+       NAME : "Katkaveck, Leo Frank",
+       ACTIVE : "1948 - 1949",
+       FROM : "College - North Carolina State",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0477",
+       NAME : "Kauffman, Robert (Bob, Horse)",
+       ACTIVE : "1968 - 1974",
+       FROM : "College - Guilford",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0478",
+       NAME : "Kautz, Wilbert (Wibs)",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - Loyola (Chicago)",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0479",
+       NAME : "Kea, Clarence Leroy",
+       ACTIVE : "1980 - 1981",
+       FROM : "College - Lamar",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0480",
+       NAME : "Kearns, Michael Joseph",
+       ACTIVE : "1954 - 1954",
+       FROM : "College - Princeton",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_0481",
+       NAME : "Kearns, Thomas Francis Jr. (Tommy)",
+       ACTIVE : "1958 - 1958",
+       FROM : "College - North Carolina",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0482",
+       NAME : "Keefe, Adam",
+       ACTIVE : "1992 - 2000",
+       FROM : "College - Stanford",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0483",
+       NAME : "Keeling, Harold A.",
+       ACTIVE : "1985 - 1985",
+       FROM : "College - Santa Clara",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0484",
+       NAME : "Keller, Kenneth W. (Ken)",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - Vermont; St. John's (N.Y.)",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0485",
+       NAME : "Kelley, Rich",
+       ACTIVE : "1975 - 1985",
+       FROM : "College - Stanford",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0486",
+       NAME : "Kellogg, Clark",
+       ACTIVE : "1982 - 1986",
+       FROM : "College - Ohio State",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0487",
+       NAME : "Kelly, Gerard Allan (Jerry)",
+       ACTIVE : "1946 - 1947",
+       FROM : "College - Marshall",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0488",
+       NAME : "Kelly, Thomas Edward (Tom)",
+       ACTIVE : "1948 - 1948",
+       FROM : "College - N.Y.U.",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0489",
+       NAME : "Kelser, Greg",
+       ACTIVE : "1979 - 1984",
+       FROM : "College - Michigan State",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0490",
+       NAME : "Kelso, Ben",
+       ACTIVE : "1973 - 1973",
+       FROM : "College - Central Michigan",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0491",
+       NAME : "Kemp, Shawn",
+       ACTIVE : "1989 - 2002",
+       FROM : "High School - Concord HS (IN) ''87",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0492",
+       NAME : "Kempton, Tim",
+       ACTIVE : "1986 - 1997",
+       FROM : "College - Notre Dame",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0493",
+       NAME : "Kendrick, Frank Edward",
+       ACTIVE : "1974 - 1974",
+       FROM : "College - Purdue",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0494",
+       NAME : "Kennedy, Eugene (Goo)",
+       ACTIVE : "1976 - 1976",
+       FROM : "College - Texas Christian",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0495",
+       NAME : "Kennedy, Joseph A. (Joe)",
+       ACTIVE : "1968 - 1969",
+       FROM : "College - Duke",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0496",
+       NAME : "Kennedy, William F. (Pickles)",
+       ACTIVE : "1960 - 1960",
+       FROM : "College - Temple",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0497",
+       NAME : "Kenon, Larry",
+       ACTIVE : "1976 - 1982",
+       FROM : "College - Amarillo Coll. TX (J.C.); Memphis",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0498",
+       NAME : "Kenville, William McGill (Billy, The Kid)",
+       ACTIVE : "1953 - 1959",
+       FROM : "College - St. Bonaventure",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0499",
+       NAME : "Kerner, Jonathan",
+       ACTIVE : "1998 - 1998",
+       FROM : "College - East Carolina ''97",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0500",
+       NAME : "Kerr, Johnny",
+       ACTIVE : "1954 - 1965",
+       FROM : "College - Illinois",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0501",
+       NAME : "Kerr, Steve",
+       ACTIVE : "1988 - 2002",
+       FROM : "College - Arizona ''88",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0502",
+       NAME : "Kerris, John E. (Jack)",
+       ACTIVE : "1949 - 1952",
+       FROM : "College - Loyola (Chicago)",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0503",
+       NAME : "Kersey, Jerome",
+       ACTIVE : "1984 - 2000",
+       FROM : "College - Longwood",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0504",
+       NAME : "Kessler, Alec",
+       ACTIVE : "1990 - 1993",
+       FROM : "College - Georgia",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0505",
+       NAME : "Ketner, Lari",
+       ACTIVE : "1999 - 2000",
+       FROM : "College - Massachusetts",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0506",
+       NAME : "Keys, Randolph",
+       ACTIVE : "1988 - 1995",
+       FROM : "College - Southern Mississippi",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0507",
+       NAME : "Khryapa, Viktor",
+       ACTIVE : "2007 - 2007",
+       FROM : "From - Russia",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0508",
+       NAME : "Kidd, Jason",
+       ACTIVE : "ACTIVE",
+       FROM : "College - California",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0509",
+       NAME : "Kidd, Warren",
+       ACTIVE : "1993 - 1993",
+       FROM : "College - Middle Tennessee State",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0510",
+       NAME : "Kiffin, Irvin A. Jr.",
+       ACTIVE : "1979 - 1979",
+       FROM : "College - Virginia Union; Oklahoma Baptist",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0511",
+       NAME : "Kiley, John F. (Jack)",
+       ACTIVE : "1951 - 1952",
+       FROM : "College - Syracuse",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0512",
+       NAME : "Killum, Earnest (Ernie)",
+       ACTIVE : "1970 - 1970",
+       FROM : "College - Stetson",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0513",
+       NAME : "Kilpatrick, Carl",
+       ACTIVE : "1979 - 1979",
+       FROM : "College - Kilgore Coll. TX (J.C.); Louisiana-Monroe",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0514",
+       NAME : "Kimball, Toby",
+       ACTIVE : "1966 - 1974",
+       FROM : "College - Connecticut",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0515",
+       NAME : "Lacey, Sam",
+       ACTIVE : "1970 - 1982",
+       FROM : "College - New Mexico State",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0516",
+       NAME : "LaCour, Fred",
+       ACTIVE : "1960 - 1962",
+       FROM : "College - San Francisco",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0517",
+       NAME : "Laettner, Christian",
+       ACTIVE : "1992 - 2004",
+       FROM : "College - Duke",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0518",
+       NAME : "Lafayette, Oliver",
+       ACTIVE : "2009 - 2009",
+       FROM : "College - Houston",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0519",
+       NAME : "LaFrentz, Raef",
+       ACTIVE : "2007 - 2007",
+       FROM : "College - Kansas",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0520",
+       NAME : "LaGarde, Thomas Joseph (Tom)",
+       ACTIVE : "1977 - 1984",
+       FROM : "College - North Carolina",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0521",
+       NAME : "Laimbeer, Bill",
+       ACTIVE : "1980 - 1993",
+       FROM : "College - Owens CC OH; Notre Dame",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0522",
+       NAME : "Lalich, Peter T. (Pete)",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - Ohio U.",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0523",
+       NAME : "Lamar, Dwight (Bo)",
+       ACTIVE : "1976 - 1976",
+       FROM : "College - Louisiana-Lafayette",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0524",
+       NAME : "Lambert, John Edward",
+       ACTIVE : "1975 - 1981",
+       FROM : "College - USC",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0525",
+       NAME : "Lamp, Jeff",
+       ACTIVE : "1981 - 1988",
+       FROM : "College - Virginia",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0526",
+       NAME : "Lampe, Maciej",
+       ACTIVE : "2003 - 2005",
+       FROM : "From - Poland",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0527",
+       NAME : "Lampley, Jimmy",
+       ACTIVE : "1986 - 1986",
+       FROM : "College - Vanderbilt; Arkansas-Little Rock",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0528",
+       NAME : "Lampley, Sean",
+       ACTIVE : "2002 - 2003",
+       FROM : "College - California",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_0529",
+       NAME : "Landry, Carl",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Purdue",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0530",
+       NAME : "Landry, Marcus",
+       ACTIVE : "2009 - 2009",
+       FROM : "College - Wisconsin",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0531",
+       NAME : "Landsberger, Mark",
+       ACTIVE : "1977 - 1983",
+       FROM : "College - Allan Hancock Coll. CA (J.C.); Minnesota; Arizona State",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0532",
+       NAME : "Lane, Jerome",
+       ACTIVE : "1988 - 1992",
+       FROM : "College - Pittsburgh",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0533",
+       NAME : "Lang, Andrew",
+       ACTIVE : "1988 - 1999",
+       FROM : "College - Arkansas",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0534",
+       NAME : "Lang, Antonio",
+       ACTIVE : "1994 - 1999",
+       FROM : "College - Duke",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0535",
+       NAME : "Lang, James",
+       ACTIVE : "2006 - 2006",
+       FROM : "High School - Central Park Christian HS (AL)",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0536",
+       NAME : "Langdon, Trajan",
+       ACTIVE : "1999 - 2001",
+       FROM : "College - Duke",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0537",
+       NAME : "Langford, Keith",
+       ACTIVE : "2007 - 2007",
+       FROM : "College - Kansas",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0538",
+       NAME : "Langhi, Dan",
+       ACTIVE : "2000 - 2003",
+       FROM : "College - Vanderbilt ''00",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0539",
+       NAME : "Lanier, Bob",
+       ACTIVE : "1970 - 1983",
+       FROM : "College - St. Bonaventure",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0540",
+       NAME : "Lantz, Stuart Burrell (Stu)",
+       ACTIVE : "1968 - 1975",
+       FROM : "College - Nebraska",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0541",
+       NAME : "Larese, York Bruno",
+       ACTIVE : "1961 - 1961",
+       FROM : "College - North Carolina",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0542",
+       NAME : "LaRue, Rusty",
+       ACTIVE : "1997 - 2003",
+       FROM : "College - Wake Forest",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_0543",
+       NAME : "LaRusso, Rudolph A. (Rudy)",
+       ACTIVE : "1959 - 1968",
+       FROM : "College - Dartmouth",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0544",
+       NAME : "Laskowski, John",
+       ACTIVE : "1975 - 1976",
+       FROM : "College - Indiana",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0545",
+       NAME : "Lasme, Stephane",
+       ACTIVE : "2007 - 2007",
+       FROM : "College - Massachusetts",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0546",
+       NAME : "Lattin, David (Dave, Big Daddy)",
+       ACTIVE : "1967 - 1968",
+       FROM : "College - Texas-El Paso",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0547",
+       NAME : "Lauderdale, Priest",
+       ACTIVE : "1996 - 1997",
+       FROM : "College - Central State (Ohio)",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0548",
+       NAME : "Laurel, Richard",
+       ACTIVE : "1977 - 1977",
+       FROM : "College - Hofstra",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0549",
+       NAME : "Lautenbach, Walter Henry (Walt)",
+       ACTIVE : "1949 - 1949",
+       FROM : "College - Wisconsin",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0550",
+       NAME : "Lavelli, Anthony (Tony)",
+       ACTIVE : "1949 - 1950",
+       FROM : "College - Yale",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0551",
+       NAME : "Lavoy, Robert William (Bob)",
+       ACTIVE : "1950 - 1953",
+       FROM : "College - Illinois; Western Kentucky",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0552",
+       NAME : "Law, Acie",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Texas A&M",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0553",
+       NAME : "Lawal, Gani",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Georgia Tech",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0554",
+       NAME : "Lawrence, Edmund (Ed)",
+       ACTIVE : "1980 - 1980",
+       FROM : "College - McNeese State",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0555",
+       NAME : "Lawson, Jason",
+       ACTIVE : "1997 - 1997",
+       FROM : "College - Villanova ''97",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0556",
+       NAME : "Lawson, Ty",
+       ACTIVE : "ACTIVE",
+       FROM : "College - North Carolina",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0557",
+       NAME : "Layton, Dennis (Mo)",
+       ACTIVE : "1971 - 1977",
+       FROM : "College - Phoenix Coll. AZ (J.C.); USC",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0558",
+       NAME : "Leaks, Emanuel (Manny)",
+       ACTIVE : "1972 - 1973",
+       FROM : "College - Niagara",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0559",
+       NAME : "Lear, Harold C. Jr. (Hal, King)",
+       ACTIVE : "1956 - 1956",
+       FROM : "College - Temple",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0560",
+       NAME : "Leavell, Allen",
+       ACTIVE : "1979 - 1988",
+       FROM : "College - Oklahoma City",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0561",
+       NAME : "Lebo, Jeff",
+       ACTIVE : "1989 - 1989",
+       FROM : "College - North Carolina",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0562",
+       NAME : "Leckner, Eric",
+       ACTIVE : "1988 - 1996",
+       FROM : "College - Wyoming",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0563",
+       NAME : "Lee, Alfred (Butch)",
+       ACTIVE : "1978 - 1979",
+       FROM : "College - Marquette",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0564",
+       NAME : "Lee, Clyde",
+       ACTIVE : "1966 - 1975",
+       FROM : "College - Vanderbilt",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0565",
+       NAME : "Macaluso, Michael Emelius (Mike)",
+       ACTIVE : "1973 - 1973",
+       FROM : "College - Canisius",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0566",
+       NAME : "Macauley, Ed",
+       ACTIVE : "1949 - 1958",
+       FROM : "College - St. Louis",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_0567",
+       NAME : "MacCulloch, Todd",
+       ACTIVE : "1999 - 2002",
+       FROM : "College - Washington ''99",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0568",
+       NAME : "MacGilvray, Ronald (Ronnie)",
+       ACTIVE : "1954 - 1954",
+       FROM : "College - St. John's (N.Y.)",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0569",
+       NAME : "Macijauskas, Arvydas",
+       ACTIVE : "2005 - 2005",
+       FROM : "From - Lithuania",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0570",
+       NAME : "Mack, Oliver (Ollie)",
+       ACTIVE : "1979 - 1981",
+       FROM : "College - San Jacinto Coll. TX (J.C.); East Carolina",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0571",
+       NAME : "Mack, Sam",
+       ACTIVE : "1992 - 2001",
+       FROM : "College - Iowa State; Arizona State; Tyler JC TX; Houston",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_0572",
+       NAME : "Mackey, Malcolm",
+       ACTIVE : "1993 - 1993",
+       FROM : "College - Georgia Tech",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_0573",
+       NAME : "Macklin, Rudy",
+       ACTIVE : "1981 - 1983",
+       FROM : "College - Louisiana State",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0574",
+       NAME : "Macknowski, John Andrew (Johnny, Whitey)",
+       ACTIVE : "1949 - 1950",
+       FROM : "College - Seton Hall",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0575",
+       NAME : "MacLean, Don",
+       ACTIVE : "1992 - 2000",
+       FROM : "College - UCLA",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0576",
+       NAME : "Macon, Mark",
+       ACTIVE : "1991 - 1998",
+       FROM : "College - Temple",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0577",
+       NAME : "Macy, Kyle",
+       ACTIVE : "1980 - 1986",
+       FROM : "College - Purdue; Kentucky",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0578",
+       NAME : "Maddox, Jack C.",
+       ACTIVE : "1948 - 1948",
+       FROM : "College - West Texas A&M",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0579",
+       NAME : "Maddox, Tito",
+       ACTIVE : "2002 - 2002",
+       FROM : "College - Fresno State ''04",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0580",
+       NAME : "Madkins, Gerald",
+       ACTIVE : "1993 - 1997",
+       FROM : "College - UCLA",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0581",
+       NAME : "Madsen, Mark",
+       ACTIVE : "2007 - 2008",
+       FROM : "College - Stanford",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0582",
+       NAME : "Mager, Norman Clifford (Norm)",
+       ACTIVE : "1950 - 1950",
+       FROM : "College - St. John's (N.Y.); CCNY",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0583",
+       NAME : "Maggette, Corey",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Duke",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0584",
+       NAME : "Magley, Dave",
+       ACTIVE : "1982 - 1982",
+       FROM : "College - Kansas",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0585",
+       NAME : "Magloire, Jamaal",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Kentucky",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0586",
+       NAME : "Mahinmi, Ian",
+       ACTIVE : "ACTIVE",
+       FROM : "From - Rouen, France",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0587",
+       NAME : "Mahnken, John E. (Long John; Stretch)",
+       ACTIVE : "1946 - 1952",
+       FROM : "College - Georgetown",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0588",
+       NAME : "Mahoney, Francis H. (Mo)",
+       ACTIVE : "1952 - 1953",
+       FROM : "College - Brown",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0589",
+       NAME : "Mahorn, Rick",
+       ACTIVE : "1980 - 1998",
+       FROM : "College - Hampton",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0590",
+       NAME : "Majerle, Dan",
+       ACTIVE : "1988 - 2001",
+       FROM : "College - Central Michigan",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0591",
+       NAME : "Major, Renaldo",
+       ACTIVE : "2006 - 2006",
+       FROM : "College - Fresno State",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0592",
+       NAME : "Malamed, Lionel",
+       ACTIVE : "1948 - 1948",
+       FROM : "College - CCNY",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0593",
+       NAME : "Malone, Jeff",
+       ACTIVE : "1983 - 1995",
+       FROM : "College - Mississippi State",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0594",
+       NAME : "Malone, Karl",
+       ACTIVE : "1985 - 2003",
+       FROM : "College - Louisiana Tech ''86",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0595",
+       NAME : "Malone, Moses",
+       ACTIVE : "1976 - 1994",
+       FROM : "College - No College",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0596",
+       NAME : "Maloney, Matt",
+       ACTIVE : "1996 - 2002",
+       FROM : "College - Pennsylvania",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0597",
+       NAME : "Malovic, Stephen L.",
+       ACTIVE : "1979 - 1979",
+       FROM : "College - USC; San Diego State",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0598",
+       NAME : "Manakas, Theodore (Ted)",
+       ACTIVE : "1973 - 1973",
+       FROM : "College - Princeton",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0599",
+       NAME : "Mandic, John J.",
+       ACTIVE : "1948 - 1949",
+       FROM : "College - Oregon State",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0600",
+       NAME : "Mangiapane, Francis E. (Frank)",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - N.Y.U.",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0601",
+       NAME : "Manning, Danny",
+       ACTIVE : "1988 - 2002",
+       FROM : "College - Kansas ''88",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0602",
+       NAME : "Manning, Edward R. (Ed)",
+       ACTIVE : "1967 - 1970",
+       FROM : "College - Jackson State",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0603",
+       NAME : "Manning, Rich",
+       ACTIVE : "1995 - 1996",
+       FROM : "College - Syracuse; Washington",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0604",
+       NAME : "Mannion, Pace",
+       ACTIVE : "1983 - 1988",
+       FROM : "College - Utah",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0605",
+       NAME : "Mantis, Nicholas (Nick)",
+       ACTIVE : "1959 - 1962",
+       FROM : "College - Northwestern",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0606",
+       NAME : "Maravich, Pete",
+       ACTIVE : "1970 - 1979",
+       FROM : "College - Louisiana State",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0607",
+       NAME : "Maravich, Peter (Press)",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - Davis & Elkins",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0608",
+       NAME : "Marble, Roy",
+       ACTIVE : "1989 - 1993",
+       FROM : "College - Iowa",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0609",
+       NAME : "Marbury, Stephon",
+       ACTIVE : "2007 - 2008",
+       FROM : "College - Georgia Tech",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0610",
+       NAME : "Marciulionis, Sarunas",
+       ACTIVE : "1989 - 1996",
+       FROM : "College - Vilnius (Lithuania)",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_0611",
+       NAME : "Mariaschin, Saul George",
+       ACTIVE : "1947 - 1947",
+       FROM : "College - Bloomsburg; Syracuse; Harvard",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0612",
+       NAME : "Marin, John Warren (Jack)",
+       ACTIVE : "1966 - 1976",
+       FROM : "College - Duke",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0613",
+       NAME : "Marion, Shawn",
+       ACTIVE : "ACTIVE",
+       FROM : "College - UNLV",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0614",
+       NAME : "Markota, Damir",
+       ACTIVE : "2006 - 2006",
+       FROM : "From - Croatia",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0615",
+       NAME : "N'diaye, Mamadou",
+       ACTIVE : "2000 - 2004",
+       FROM : "College - Auburn",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0616",
+       NAME : "Naber, Robert E. (Bob)",
+       ACTIVE : "1952 - 1952",
+       FROM : "College - Louisville",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0617",
+       NAME : "Nachamkin, Boris Alexander",
+       ACTIVE : "1954 - 1954",
+       FROM : "College - N.Y.U.",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0618",
+       NAME : "Nachbar, Bostjan",
+       ACTIVE : "2007 - 2007",
+       FROM : "From - Slovenia",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0619",
+       NAME : "Nagel, Gerald R. (Jerry)",
+       ACTIVE : "1949 - 1949",
+       FROM : "College - Loyola (Chicago)",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0620",
+       NAME : "Nagy, Frederick Karl (Fritz)",
+       ACTIVE : "1948 - 1948",
+       FROM : "College - North Carolina; Akron",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0621",
+       NAME : "Nailon, Lee",
+       ACTIVE : "2000 - 2005",
+       FROM : "College - Texas Christian",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0622",
+       NAME : "Najera, Eduardo",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Oklahoma",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0623",
+       NAME : "Nance, Larry",
+       ACTIVE : "1981 - 1993",
+       FROM : "College - Clemson",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0624",
+       NAME : "Napolitano, Paul Wally",
+       ACTIVE : "1948 - 1948",
+       FROM : "College - San Francisco",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0625",
+       NAME : "Nash, Charles Francis (Cotton)",
+       ACTIVE : "1964 - 1964",
+       FROM : "College - Kentucky",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0626",
+       NAME : "Nash, Robert Lee Jr. (Bob)",
+       ACTIVE : "1972 - 1978",
+       FROM : "College - San Jacinto Coll. TX (J.C.); Hawaii",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0627",
+       NAME : "Nash, Steve",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Santa Clara",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0628",
+       NAME : "Nater, Swen",
+       ACTIVE : "1976 - 1983",
+       FROM : "College - Cypress Coll. CA (J.C.); UCLA",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0629",
+       NAME : "Nathan, Howard",
+       ACTIVE : "1995 - 1995",
+       FROM : "College - Louisiana-Monroe",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0630",
+       NAME : "Natt, Calvin",
+       ACTIVE : "1979 - 1989",
+       FROM : "College - Louisiana-Monroe",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0631",
+       NAME : "Natt, Kenny",
+       ACTIVE : "1980 - 1984",
+       FROM : "College - Louisiana-Monroe",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0632",
+       NAME : "Naulls, Willie",
+       ACTIVE : "1956 - 1965",
+       FROM : "College - UCLA",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0633",
+       NAME : "Navarro, Juan Carlos",
+       ACTIVE : "2007 - 2007",
+       FROM : "From - Spain",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_0634",
+       NAME : "Ndiaye, Hamady",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Rutgers",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0635",
+       NAME : "Ndiaye, Makhtar",
+       ACTIVE : "1998 - 1998",
+       FROM : "College - North Carolina",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0636",
+       NAME : "Ndong, Boniface",
+       ACTIVE : "2005 - 2005",
+       FROM : "-",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0637",
+       NAME : "Neal, Craig",
+       ACTIVE : "1988 - 1990",
+       FROM : "College - Georgia Tech",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0638",
+       NAME : "Neal, Gary",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Towson",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0639",
+       NAME : "Neal, James Ellerbe (Jim)",
+       ACTIVE : "1953 - 1954",
+       FROM : "College - Wofford",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0640",
+       NAME : "Neal, Lloyd",
+       ACTIVE : "1972 - 1978",
+       FROM : "College - Tennessee State",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0641",
+       NAME : "Nealy, Ed",
+       ACTIVE : "1982 - 1992",
+       FROM : "College - Kansas State",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_0642",
+       NAME : "Negratti, Albert Edward (Al)",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - Seton Hall",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0643",
+       NAME : "Nelson, Barry G.",
+       ACTIVE : "1971 - 1971",
+       FROM : "College - Duquesne",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0644",
+       NAME : "Nelson, DeMarcus",
+       ACTIVE : "2008 - 2008",
+       FROM : "College - Duke",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0645",
+       NAME : "Nelson, Donald Arvid (Don, Nellie)",
+       ACTIVE : "1962 - 1975",
+       FROM : "College - Iowa",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0646",
+       NAME : "Nelson, Jameer",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Saint Joseph's",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0647",
+       NAME : "Nelson, Louis (Louie, Sweets)",
+       ACTIVE : "1973 - 1977",
+       FROM : "College - Washington",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0648",
+       NAME : "Nembhard, Ruben",
+       ACTIVE : "1996 - 1996",
+       FROM : "College - Weber State",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0649",
+       NAME : "Nene",
+       ACTIVE : "ACTIVE",
+       FROM : "From - Sao Carlos, Brazil",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0650",
+       NAME : "Nesby, Tyrone",
+       ACTIVE : "1998 - 2001",
+       FROM : "College - Vincennes IN (J.C.); Nevada-Las Vegas",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0651",
+       NAME : "Nessley, Martin",
+       ACTIVE : "1987 - 1987",
+       FROM : "College - Duke",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0652",
+       NAME : "Nesterovic, Rasho",
+       ACTIVE : "2007 - 2009",
+       FROM : "From - Ljubljana, Slovenia",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0653",
+       NAME : "Neumann, Johnny",
+       ACTIVE : "1976 - 1977",
+       FROM : "College - Mississippi",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0654",
+       NAME : "Neumann, Paul R.",
+       ACTIVE : "1961 - 1966",
+       FROM : "College - Stanford",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0655",
+       NAME : "Nevitt, Chuck",
+       ACTIVE : "1982 - 1993",
+       FROM : "College - North Carolina State",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0656",
+       NAME : "Newbern, Melvin",
+       ACTIVE : "1992 - 1992",
+       FROM : "College - Minnesota",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0657",
+       NAME : "Newbill, Ivano",
+       ACTIVE : "1994 - 1997",
+       FROM : "College - Georgia Tech",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0658",
+       NAME : "Newble, Ira",
+       ACTIVE : "2007 - 2007",
+       FROM : "College - Miami (Ohio)",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0659",
+       NAME : "Newlin, Mike",
+       ACTIVE : "1971 - 1981",
+       FROM : "College - Utah",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0660",
+       NAME : "Newman, Johnny",
+       ACTIVE : "1986 - 2001",
+       FROM : "College - Richmond",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0661",
+       NAME : "Newmark, David L. (Dave)",
+       ACTIVE : "1968 - 1969",
+       FROM : "College - Columbia",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0662",
+       NAME : "Nichols, Demetris",
+       ACTIVE : "2007 - 2008",
+       FROM : "College - Syracuse",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0663",
+       NAME : "Nichols, Jack Edward",
+       ACTIVE : "1948 - 1957",
+       FROM : "College - Washington; USC",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0664",
+       NAME : "Nickerson, Gaylon",
+       ACTIVE : "1996 - 1996",
+       FROM : "College - Wichita State; Butler Co. CC PA; Kansas State; Northwestern O",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0665",
+       NAME : "O'Bannon, Charles",
+       ACTIVE : "1997 - 1998",
+       FROM : "College - UCLA",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0666",
+       NAME : "O'Bannon, Ed",
+       ACTIVE : "1995 - 1996",
+       FROM : "College - UCLA",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0667",
+       NAME : "O'Koren, Mike",
+       ACTIVE : "1980 - 1987",
+       FROM : "College - North Carolina",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0668",
+       NAME : "O'Sullivan, Dan",
+       ACTIVE : "1990 - 1995",
+       FROM : "College - Fordham",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0669",
+       NAME : "O'Boyle, John W.",
+       ACTIVE : "1952 - 1952",
+       FROM : "College - Modesto JC CA; Colorado State",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0670",
+       NAME : "O'Brien, Ralph E. (Buckshot)",
+       ACTIVE : "1951 - 1952",
+       FROM : "College - Butler",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0671",
+       NAME : "O'Brien, Robert (Bob)",
+       ACTIVE : "1947 - 1948",
+       FROM : "College - Kansas; Pepperdine",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0672",
+       NAME : "O'Bryant, Patrick",
+       ACTIVE : "2007 - 2009",
+       FROM : "College - Bradley",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0673",
+       NAME : "O'Connell, Dermott F. (Dermie)",
+       ACTIVE : "1948 - 1949",
+       FROM : "College - Holy Cross",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0674",
+       NAME : "O'Donnell, Andrew J. (Andy)",
+       ACTIVE : "1949 - 1949",
+       FROM : "College - Loyola (Balt.)",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0675",
+       NAME : "O'Grady, Francis David (Buddy)",
+       ACTIVE : "1946 - 1948",
+       FROM : "College - Georgetown",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0676",
+       NAME : "O'Keefe, Richard T. (Dick)",
+       ACTIVE : "1947 - 1950",
+       FROM : "College - Santa Clara",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0677",
+       NAME : "O'Keefe, Thomas V. (Tommy)",
+       ACTIVE : "1950 - 1950",
+       FROM : "College - Notre Dame; Georgetown",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0678",
+       NAME : "O'Malley, V. Grady (Grady)",
+       ACTIVE : "1969 - 1969",
+       FROM : "College - Manhattan",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_0679",
+       NAME : "O'Neal, Jermaine",
+       ACTIVE : "ACTIVE",
+       FROM : "High School - Eau Claire HS (SC)",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0680",
+       NAME : "O'Neal, Shaquille",
+       ACTIVE : "2007 - 2010",
+       FROM : "College - Louisiana State",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0681",
+       NAME : "O'Neill, Mike",
+       ACTIVE : "1952 - 1952",
+       FROM : "College - California",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0682",
+       NAME : "O'Shea, Kevin Christopher",
+       ACTIVE : "1950 - 1952",
+       FROM : "College - Notre Dame",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0683",
+       NAME : "O'Shields, Garland L. (Mule)",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - Spartanburg Tech SC (J.C.); Tennessee",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0684",
+       NAME : "Oakley, Charles",
+       ACTIVE : "1985 - 2003",
+       FROM : "College - Virginia Union ''85",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0685",
+       NAME : "Oberto, Fabricio",
+       ACTIVE : "2007 - 2010",
+       FROM : "From - Las Varillas, Argentina",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0686",
+       NAME : "Oden, Greg",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Ohio State",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0687",
+       NAME : "Odom, Lamar",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Rhode Island",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0688",
+       NAME : "Ogden, Carlos (Bud)",
+       ACTIVE : "1969 - 1970",
+       FROM : "College - Santa Clara",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0689",
+       NAME : "Ogden, Ralph",
+       ACTIVE : "1970 - 1970",
+       FROM : "College - Santa Clara",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0690",
+       NAME : "Ogg, Alan",
+       ACTIVE : "1990 - 1992",
+       FROM : "College - Alabama-Birmingham",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0691",
+       NAME : "Ohl, Donald Jay (Don)",
+       ACTIVE : "1960 - 1969",
+       FROM : "College - Illinois",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0692",
+       NAME : "Okafor, Emeka",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Connecticut",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0693",
+       NAME : "Okur, Mehmet",
+       ACTIVE : "ACTIVE",
+       FROM : "From - Yalova, Turkey",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0694",
+       NAME : "Olajuwon, Hakeem",
+       ACTIVE : "1984 - 2001",
+       FROM : "College - Houston ''84",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0695",
+       NAME : "Olberding, Mark",
+       ACTIVE : "1976 - 1986",
+       FROM : "College - Minnesota",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0696",
+       NAME : "Oldham, Jawann",
+       ACTIVE : "1980 - 1990",
+       FROM : "College - Seattle",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0697",
+       NAME : "Oldham, John O. (Johnny)",
+       ACTIVE : "1949 - 1950",
+       FROM : "College - Western Kentucky",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0698",
+       NAME : "Oleynick, Frank (Magic)",
+       ACTIVE : "1975 - 1976",
+       FROM : "College - Seattle",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0699",
+       NAME : "Olive, John",
+       ACTIVE : "1978 - 1979",
+       FROM : "College - Villanova",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0700",
+       NAME : "Oliver, Brian",
+       ACTIVE : "1990 - 1997",
+       FROM : "College - Georgia Tech",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0701",
+       NAME : "Oliver, Dean",
+       ACTIVE : "2001 - 2002",
+       FROM : "College - Iowa ''01",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0702",
+       NAME : "Oliver, Jimmy",
+       ACTIVE : "1991 - 1998",
+       FROM : "College - Purdue",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0703",
+       NAME : "Ollie, Kevin",
+       ACTIVE : "2007 - 2009",
+       FROM : "College - Connecticut",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0704",
+       NAME : "Ollrich, Gene W. (Moe)",
+       ACTIVE : "1949 - 1949",
+       FROM : "College - Drake",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0705",
+       NAME : "Olowokandi, Michael",
+       ACTIVE : "1998 - 2006",
+       FROM : "College - U. of Pacific",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0706",
+       NAME : "Olsen, Enoch Eli III (Bud)",
+       ACTIVE : "1962 - 1968",
+       FROM : "College - Louisville",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0707",
+       NAME : "Orms, Barry D.",
+       ACTIVE : "1968 - 1968",
+       FROM : "College - St. Louis",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0708",
+       NAME : "Orr, John M. (Johnny)",
+       ACTIVE : "1949 - 1949",
+       FROM : "College - Beloit; Illinois",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0709",
+       NAME : "Orr, Louis",
+       ACTIVE : "1980 - 1987",
+       FROM : "College - Syracuse",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0710",
+       NAME : "Ortiz, Jose",
+       ACTIVE : "1988 - 1989",
+       FROM : "College - Oregon State",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0711",
+       NAME : "Osborne, Charles H. (Chuck)",
+       ACTIVE : "1961 - 1961",
+       FROM : "College - Western Kentucky",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0712",
+       NAME : "Osterkorn, Walter Raymond (Wally)",
+       ACTIVE : "1951 - 1954",
+       FROM : "College - Illinois",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_0713",
+       NAME : "Ostertag, Greg",
+       ACTIVE : "1995 - 2005",
+       FROM : "College - Kansas",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0714",
+       NAME : "Othick, Matt",
+       ACTIVE : "1992 - 1992",
+       FROM : "College - Arizona",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0715",
+       NAME : "Pace, Joseph (Joe)",
+       ACTIVE : "1976 - 1977",
+       FROM : "College - Maryland East. Shore; Coppin State",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0716",
+       NAME : "Pachulia, Zaza",
+       ACTIVE : "ACTIVE",
+       FROM : "From - Tbilisi, Georgia",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0717",
+       NAME : "Pack, Robert",
+       ACTIVE : "1991 - 2003",
+       FROM : "College - USC",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0718",
+       NAME : "Paddio, Gerald",
+       ACTIVE : "1990 - 1993",
+       FROM : "College - Seminole JC OK; Kilgore Coll. TX (J.C.); Nevada-Las Vegas",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0719",
+       NAME : "Padgett, Scott",
+       ACTIVE : "1999 - 2006",
+       FROM : "College - Kentucky",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0720",
+       NAME : "Paine, Frederick Vincent Jr. (Fred)",
+       ACTIVE : "1948 - 1948",
+       FROM : "College - Westminster (PA)",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0721",
+       NAME : "Palacio, Milt",
+       ACTIVE : "1999 - 2005",
+       FROM : "College - Colorado State",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0722",
+       NAME : "Palazzi, Togo Anthony",
+       ACTIVE : "1954 - 1959",
+       FROM : "College - Holy Cross",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0723",
+       NAME : "Palmer, James G. (Jim)",
+       ACTIVE : "1958 - 1960",
+       FROM : "College - Dayton",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0724",
+       NAME : "Palmer, John S. (Bud)",
+       ACTIVE : "1946 - 1948",
+       FROM : "College - Princeton",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0725",
+       NAME : "Palmer, Walter",
+       ACTIVE : "1990 - 1992",
+       FROM : "College - Dartmouth",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0726",
+       NAME : "Panko, Andy",
+       ACTIVE : "2000 - 2000",
+       FROM : "College - Lebanon Valley",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0727",
+       NAME : "Pargo, Jannero",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Arkansas",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0728",
+       NAME : "Parham, Estes Foster (Easy)",
+       ACTIVE : "1948 - 1950",
+       FROM : "College - Texas Wesleyan",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0729",
+       NAME : "Parish, Robert",
+       ACTIVE : "1976 - 1996",
+       FROM : "College - Centenary",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_0730",
+       NAME : "Park, Medford R. (Med)",
+       ACTIVE : "1955 - 1959",
+       FROM : "College - Missouri",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0731",
+       NAME : "Parker, Anthony",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Bradley",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_0732",
+       NAME : "Parker, Robert S. Jr. (Sonny)",
+       ACTIVE : "1976 - 1981",
+       FROM : "College - Mineral Area Coll. MO (J.C.); Texas A&M",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0733",
+       NAME : "Parker, Smush",
+       ACTIVE : "2007 - 2007",
+       FROM : "College - Fordham",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0734",
+       NAME : "Parker, Tony",
+       ACTIVE : "ACTIVE",
+       FROM : "From - Paris, France",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_0735",
+       NAME : "Parkinson, Jack Gordon",
+       ACTIVE : "1949 - 1949",
+       FROM : "College - Kentucky",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0736",
+       NAME : "Parks, Cherokee",
+       ACTIVE : "1995 - 2003",
+       FROM : "College - Duke ''95",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0737",
+       NAME : "Parr, Jack",
+       ACTIVE : "1958 - 1958",
+       FROM : "College - Kansas State",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0738",
+       NAME : "Parrack, Doyle Kenneth",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - Oklahoma State",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0739",
+       NAME : "Parsley, Charles H. (Charlie)",
+       ACTIVE : "1949 - 1949",
+       FROM : "College - Western Kentucky",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0740",
+       NAME : "Paspalj, Zarko",
+       ACTIVE : "1989 - 1989",
+       FROM : "College - No College",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0741",
+       NAME : "Passaglia, Martin Harold (Marty)",
+       ACTIVE : "1946 - 1948",
+       FROM : "College - Santa Clara",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0742",
+       NAME : "Pastushok, George A.",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - Manhattan; St. John's (N.Y.)",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0743",
+       NAME : "Patrick, Myles",
+       ACTIVE : "1980 - 1980",
+       FROM : "College - Auburn",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0744",
+       NAME : "Patrick, Stanley A. (Stan)",
+       ACTIVE : "1949 - 1949",
+       FROM : "College - Santa Clara; Illinois",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0745",
+       NAME : "Patterson, Andrae",
+       ACTIVE : "1998 - 1999",
+       FROM : "College - Indiana",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0746",
+       NAME : "Patterson, George",
+       ACTIVE : "1967 - 1967",
+       FROM : "College - Toledo",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0747",
+       NAME : "Patterson, Patrick",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Kentucky",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0748",
+       NAME : "Patterson, Ruben",
+       ACTIVE : "2007 - 2007",
+       FROM : "College - Cincinnati",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0749",
+       NAME : "Patterson, Steven J. (Steve)",
+       ACTIVE : "1971 - 1975",
+       FROM : "College - UCLA",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0750",
+       NAME : "Patterson, Tommie J. (Tommy)",
+       ACTIVE : "1972 - 1973",
+       FROM : "College - Ouachita Baptist",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0751",
+       NAME : "Patterson, Worthington R. (Worthy)",
+       ACTIVE : "1957 - 1957",
+       FROM : "College - Connecticut",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0752",
+       NAME : "Paul, Chris",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Wake Forest",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0753",
+       NAME : "Paulk, Charles (Charlie)",
+       ACTIVE : "1968 - 1971",
+       FROM : "College - Tulsa; Northeastern State (Okla.)",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0754",
+       NAME : "Paulson, Gerald Arthur (Jerry)",
+       ACTIVE : "1957 - 1957",
+       FROM : "College - Manhattan",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0755",
+       NAME : "Paultz, Billy",
+       ACTIVE : "1976 - 1984",
+       FROM : "College - Cameron; St. John's (N.Y.)",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0756",
+       NAME : "Pavlovic, Aleksandar",
+       ACTIVE : "ACTIVE",
+       FROM : "From - Bar, Montenegro",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0757",
+       NAME : "Paxson, James Edward Sr. (Jim)",
+       ACTIVE : "1956 - 1957",
+       FROM : "College - Dayton",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0758",
+       NAME : "Paxson, Jim",
+       ACTIVE : "1979 - 1989",
+       FROM : "College - Dayton",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0759",
+       NAME : "Paxson, John",
+       ACTIVE : "1983 - 1993",
+       FROM : "College - Notre Dame",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0760",
+       NAME : "Payak, John Jr. (Johnny)",
+       ACTIVE : "1949 - 1952",
+       FROM : "College - Bowling Green State",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0761",
+       NAME : "Payne, Kenny",
+       ACTIVE : "1989 - 1992",
+       FROM : "College - Louisville",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0762",
+       NAME : "Payne, Tom",
+       ACTIVE : "1971 - 1971",
+       FROM : "College - Kentucky",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0763",
+       NAME : "Payton, Gary",
+       ACTIVE : "1990 - 2006",
+       FROM : "College - Oregon State",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0764",
+       NAME : "Payton, Melvin E. (Mel)",
+       ACTIVE : "1951 - 1952",
+       FROM : "College - Tulane",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0765",
+       NAME : "Quick, Robert L. (Bob)",
+       ACTIVE : "1968 - 1971",
+       FROM : "College - Xavier (Ohio)",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0766",
+       NAME : "Quinn, Chris",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Notre Dame",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0767",
+       NAME : "Quinnett, Brian",
+       ACTIVE : "1989 - 1991",
+       FROM : "College - Washington State",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0768",
+       NAME : "Rackley, Luther Jr. (Luke)",
+       ACTIVE : "1969 - 1973",
+       FROM : "College - Xavier (Ohio)",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_0769",
+       NAME : "Rader, Howard (Howie)",
+       ACTIVE : "1948 - 1948",
+       FROM : "College - Long Island University",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0770",
+       NAME : "Radford, Mark",
+       ACTIVE : "1981 - 1982",
+       FROM : "College - Oregon State",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0771",
+       NAME : "Radford, Wayne",
+       ACTIVE : "1978 - 1978",
+       FROM : "College - Indiana",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0772",
+       NAME : "Radja, Dino",
+       ACTIVE : "1993 - 1996",
+       FROM : "College - Croatia",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0773",
+       NAME : "Radmanovic, Vladimir",
+       ACTIVE : "ACTIVE",
+       FROM : "From - Belgrade, Serbia",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0774",
+       NAME : "Radojevic, Aleksandar",
+       ACTIVE : "1999 - 2004",
+       FROM : "From - Serbia-Montenegro",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0775",
+       NAME : "Radovich, Frank Raymond",
+       ACTIVE : "1961 - 1961",
+       FROM : "College - Indiana",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0776",
+       NAME : "Radovich, George Lewis (Moe)",
+       ACTIVE : "1952 - 1952",
+       FROM : "College - Wyoming",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0777",
+       NAME : "Radziszewski, Raymond A. (Ray)",
+       ACTIVE : "1957 - 1957",
+       FROM : "College - St. Joseph's (PA)",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0778",
+       NAME : "Ragelis, Raymond Ernest (Ray)",
+       ACTIVE : "1951 - 1951",
+       FROM : "College - Northwestern",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0779",
+       NAME : "Raiken, Sherwin H.",
+       ACTIVE : "1952 - 1952",
+       FROM : "College - Villanova",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0780",
+       NAME : "Rains, Ed",
+       ACTIVE : "1981 - 1982",
+       FROM : "College - South Alabama",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0781",
+       NAME : "Rakocevic, Igor",
+       ACTIVE : "2002 - 2002",
+       FROM : "College - No College",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0782",
+       NAME : "Rambis, Kurt",
+       ACTIVE : "1981 - 1994",
+       FROM : "College - Santa Clara",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0783",
+       NAME : "Ramos, Peter",
+       ACTIVE : "2004 - 2004",
+       FROM : "From - Puerto Rico",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0784",
+       NAME : "Ramsey, Calvin (Cal)",
+       ACTIVE : "1959 - 1960",
+       FROM : "College - N.Y.U.",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0785",
+       NAME : "Ramsey, Frank",
+       ACTIVE : "1954 - 1963",
+       FROM : "College - Kentucky",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0786",
+       NAME : "Ramsey, Raymond Leroy (Ray)",
+       ACTIVE : "1948 - 1948",
+       FROM : "College - Bradley",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_0787",
+       NAME : "Randall, Mark",
+       ACTIVE : "1991 - 1994",
+       FROM : "College - Kansas",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0788",
+       NAME : "Randolph, Anthony",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Louisiana State",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0789",
+       NAME : "Randolph, Shavlik",
+       ACTIVE : "2007 - 2009",
+       FROM : "College - Duke",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0790",
+       NAME : "Randolph, Zach",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Michigan State",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0791",
+       NAME : "Rank, Wallace Aliifua (Wally)",
+       ACTIVE : "1980 - 1980",
+       FROM : "College - San Jose State",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0792",
+       NAME : "Ransey, Kelvin",
+       ACTIVE : "1980 - 1985",
+       FROM : "College - Ohio State",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0793",
+       NAME : "Ranzino, Samuel Salvadore (Sam)",
+       ACTIVE : "1951 - 1951",
+       FROM : "College - North Carolina State",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0794",
+       NAME : "Rasmussen, Blair",
+       ACTIVE : "1985 - 1992",
+       FROM : "College - Oregon",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0795",
+       NAME : "Ratkovicz, George",
+       ACTIVE : "1949 - 1954",
+       FROM : "College - No College",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0796",
+       NAME : "Ratleff, Ed",
+       ACTIVE : "1973 - 1977",
+       FROM : "College - Long Beach State",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0797",
+       NAME : "Ratliff, Michael D. (Mike)",
+       ACTIVE : "1972 - 1973",
+       FROM : "College - Wis.-Eau Claire",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0798",
+       NAME : "Ratliff, Theo",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Wyoming",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0799",
+       NAME : "Rautins, Andy",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Syracuse",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_0800",
+       NAME : "Rautins, Leo",
+       ACTIVE : "1983 - 1984",
+       FROM : "College - Minnesota; Syracuse",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_0801",
+       NAME : "Ray, Allan",
+       ACTIVE : "2006 - 2006",
+       FROM : "College - Villanova",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0802",
+       NAME : "Ray, Clifford",
+       ACTIVE : "1971 - 1980",
+       FROM : "College - Oklahoma",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0803",
+       NAME : "Ray, Donald L. (Don, Duck)",
+       ACTIVE : "1949 - 1949",
+       FROM : "College - Western Kentucky",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0804",
+       NAME : "Ray, James E. (Jim)",
+       ACTIVE : "1956 - 1959",
+       FROM : "College - Toledo",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0805",
+       NAME : "Ray, James Earl",
+       ACTIVE : "1980 - 1982",
+       FROM : "College - Jacksonville",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0806",
+       NAME : "Raymond, Craig Milford",
+       ACTIVE : "1968 - 1968",
+       FROM : "College - Brigham Young",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0807",
+       NAME : "Rea, Connie Mack",
+       ACTIVE : "1953 - 1953",
+       FROM : "College - Centenary; Vanderbilt",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_0808",
+       NAME : "Reaves, Joe L.",
+       ACTIVE : "1973 - 1973",
+       FROM : "College - Bethel College (Tenn.)",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0809",
+       NAME : "Rebraca, Zeljko",
+       ACTIVE : "2001 - 2005",
+       FROM : "From - Serbia & Montenegro",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0810",
+       NAME : "Recasner, Eldridge",
+       ACTIVE : "1994 - 2001",
+       FROM : "College - Washington",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0811",
+       NAME : "Redd, Michael",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Ohio State",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0812",
+       NAME : "Reddout, Franklin P. (Frank)",
+       ACTIVE : "1953 - 1953",
+       FROM : "College - Syracuse",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_0813",
+       NAME : "Redick, J.J.",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Duke",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0814",
+       NAME : "Redmond, Marlon Bernard",
+       ACTIVE : "1978 - 1979",
+       FROM : "College - San Francisco",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0815",
+       NAME : "Reed, Hubert F. (Hub)",
+       ACTIVE : "1958 - 1964",
+       FROM : "College - Oklahoma City",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0816",
+       NAME : "Reed, Justin",
+       ACTIVE : "2004 - 2006",
+       FROM : "College - Mississippi",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0817",
+       NAME : "Reed, Ronald Lee (Ron)",
+       ACTIVE : "1965 - 1966",
+       FROM : "College - Notre Dame",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0818",
+       NAME : "Sabonis, Arvydas",
+       ACTIVE : "1995 - 2002",
+       FROM : "From - Lithuania",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0819",
+       NAME : "Sadowski, Edward Frank (Ed, Big Ed)",
+       ACTIVE : "1946 - 1949",
+       FROM : "College - Seton Hall",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0820",
+       NAME : "Sailors, Kenneth L. (Kenny)",
+       ACTIVE : "1946 - 1950",
+       FROM : "College - Wyoming",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0821",
+       NAME : "Salley, John",
+       ACTIVE : "1986 - 1999",
+       FROM : "College - Georgia Tech",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0822",
+       NAME : "Salmons, John",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Miami (Fla.)",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0823",
+       NAME : "Salvadori, Kevin",
+       ACTIVE : "1996 - 1997",
+       FROM : "College - North Carolina",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0824",
+       NAME : "Samake, Soumaila",
+       ACTIVE : "2000 - 2002",
+       FROM : "From - Republic of Mali",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0825",
+       NAME : "Samb, Cheikh",
+       ACTIVE : "2007 - 2008",
+       FROM : "From - Senegal",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0826",
+       NAME : "Sampson, Jamal",
+       ACTIVE : "2002 - 2006",
+       FROM : "College - California",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0827",
+       NAME : "Sampson, Ralph",
+       ACTIVE : "1983 - 1991",
+       FROM : "College - Virginia",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0828",
+       NAME : "Samuels, Samardo",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Louisville",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0829",
+       NAME : "Sanchez, Pepe",
+       ACTIVE : "2000 - 2002",
+       FROM : "College - Temple ''00",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0830",
+       NAME : "Sanders, Frankie J. (Frankie J.)",
+       ACTIVE : "1978 - 1980",
+       FROM : "College - Southern University",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0831",
+       NAME : "Sanders, Jeff",
+       ACTIVE : "1989 - 1992",
+       FROM : "College - Georgia Southern",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0832",
+       NAME : "Sanders, Larry",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Virginia Commonwealth",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0833",
+       NAME : "Sanders, Melvin",
+       ACTIVE : "2005 - 2005",
+       FROM : "College - Oklahoma State",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0834",
+       NAME : "Sanders, Mike",
+       ACTIVE : "1982 - 1992",
+       FROM : "College - UCLA",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0835",
+       NAME : "Sanders, Thomas Ernest (Satch)",
+       ACTIVE : "1960 - 1972",
+       FROM : "College - N.Y.U.",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0836",
+       NAME : "Santiago, Daniel",
+       ACTIVE : "2000 - 2004",
+       FROM : "College - St. Vincent",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0837",
+       NAME : "Santini, Robert (Bob)",
+       ACTIVE : "1955 - 1955",
+       FROM : "College - Iona",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0838",
+       NAME : "Sappleton, Wayne B.",
+       ACTIVE : "1984 - 1984",
+       FROM : "College - Loyola (Chicago)",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0839",
+       NAME : "Sasser, Jason",
+       ACTIVE : "1996 - 1998",
+       FROM : "College - Texas Tech ''96",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0840",
+       NAME : "Sasser, Jeryl",
+       ACTIVE : "2001 - 2002",
+       FROM : "College - Southern Methodist ''01",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0841",
+       NAME : "Satterfield, Kenny",
+       ACTIVE : "2001 - 2002",
+       FROM : "College - Cincinnati ''03",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0842",
+       NAME : "Saul, Frank Benjamin Jr. (Pep)",
+       ACTIVE : "1949 - 1954",
+       FROM : "College - Seton Hall",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0843",
+       NAME : "Sauldsberry, Woodrow Jr. (Woody)",
+       ACTIVE : "1957 - 1965",
+       FROM : "College - Texas Southern",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0844",
+       NAME : "Saunders, James Frederick (Fred)",
+       ACTIVE : "1974 - 1977",
+       FROM : "College - Syracuse",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0845",
+       NAME : "Savage, Donald Joseph (Don)",
+       ACTIVE : "1951 - 1956",
+       FROM : "College - Le Moyne",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0846",
+       NAME : "Savovic, Predrag",
+       ACTIVE : "2002 - 2002",
+       FROM : "College - Hawaii ''02",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0847",
+       NAME : "Sawyer, Alan Leigh",
+       ACTIVE : "1950 - 1950",
+       FROM : "College - UCLA",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0848",
+       NAME : "Scalabrine, Brian",
+       ACTIVE : "ACTIVE",
+       FROM : "College - USC",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0849",
+       NAME : "Scales, Alex",
+       ACTIVE : "2005 - 2005",
+       FROM : "College - Oregon",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0850",
+       NAME : "Scales, DeWayne",
+       ACTIVE : "1980 - 1983",
+       FROM : "College - Louisiana State",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0851",
+       NAME : "Schade, Frank",
+       ACTIVE : "1972 - 1972",
+       FROM : "College - Wis.-Eau Claire; Texas-El Paso",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0852",
+       NAME : "Schadler, Bernard R. (Ben)",
+       ACTIVE : "1947 - 1947",
+       FROM : "College - Northwestern",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0853",
+       NAME : "Schaefer, Herman H. (Herm)",
+       ACTIVE : "1948 - 1949",
+       FROM : "College - Indiana",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0854",
+       NAME : "Schafer, Robert Thomas (Bob)",
+       ACTIVE : "1955 - 1955",
+       FROM : "College - Villanova",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0855",
+       NAME : "Scharnus, Benedict Michael (Ben, Whitey)",
+       ACTIVE : "1946 - 1948",
+       FROM : "College - Seton Hall",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0856",
+       NAME : "Schatzman, Marvin J. (Marv)",
+       ACTIVE : "1949 - 1949",
+       FROM : "College - St. Louis",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0857",
+       NAME : "Schaus, Frederick Appleton (Fred)",
+       ACTIVE : "1949 - 1953",
+       FROM : "College - West Virginia",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0858",
+       NAME : "Schayes, Danny",
+       ACTIVE : "1981 - 1998",
+       FROM : "College - Syracuse",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0859",
+       NAME : "Schayes, Dolph",
+       ACTIVE : "1949 - 1963",
+       FROM : "College - N.Y.U.",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0860",
+       NAME : "Schectman, Oscar B. (Ossie)",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - Long Island University",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0861",
+       NAME : "Scheffler, Steve",
+       ACTIVE : "1990 - 1996",
+       FROM : "College - Purdue",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0862",
+       NAME : "Scheffler, Thomas Mark (Tom)",
+       ACTIVE : "1984 - 1984",
+       FROM : "College - Purdue",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0863",
+       NAME : "Schellhase, David Gene Jr. (Dave)",
+       ACTIVE : "1966 - 1967",
+       FROM : "College - Purdue",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_0864",
+       NAME : "Schenscher, Luke",
+       ACTIVE : "2005 - 2006",
+       FROM : "College - Georgia Tech",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0865",
+       NAME : "Scherer, Herbert Frederick (Herb)",
+       ACTIVE : "1950 - 1951",
+       FROM : "College - Long Island University",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0866",
+       NAME : "Schintzius, Dwayne",
+       ACTIVE : "1990 - 1998",
+       FROM : "College - Florida",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0867",
+       NAME : "Schlueter, Dale Wayne",
+       ACTIVE : "1968 - 1977",
+       FROM : "College - Colorado State",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0868",
+       NAME : "Tabak, Zan",
+       ACTIVE : "1994 - 2000",
+       FROM : "College - No College",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0869",
+       NAME : "Tabuse, Yuta",
+       ACTIVE : "2004 - 2004",
+       FROM : "College - BYU-Hawaii",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0870",
+       NAME : "Taft, Chris",
+       ACTIVE : "2005 - 2005",
+       FROM : "College - Pittsburgh",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0871",
+       NAME : "Tannenbaum, Sidney (Sid)",
+       ACTIVE : "1947 - 1948",
+       FROM : "College - N.Y.U.",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0872",
+       NAME : "Tarlac, Dragan",
+       ACTIVE : "2000 - 2000",
+       FROM : "College - Olympiakos (Greece)",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0873",
+       NAME : "Tarpley, Roy",
+       ACTIVE : "1986 - 1994",
+       FROM : "College - Michigan",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0874",
+       NAME : "Tatum, William Earl (Earl)",
+       ACTIVE : "1976 - 1979",
+       FROM : "College - Marquette",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0875",
+       NAME : "Taylor, Anthony",
+       ACTIVE : "1988 - 1988",
+       FROM : "College - Oregon",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0876",
+       NAME : "Taylor, Brian Dw.",
+       ACTIVE : "1976 - 1981",
+       FROM : "College - Princeton",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0877",
+       NAME : "Taylor, Donell",
+       ACTIVE : "2005 - 2006",
+       FROM : "College - Alabama-Birmingham",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0878",
+       NAME : "Taylor, Fredrick Ollie (Fred)",
+       ACTIVE : "1970 - 1971",
+       FROM : "College - Texas-Pan American",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0879",
+       NAME : "Taylor, Jay",
+       ACTIVE : "1989 - 1989",
+       FROM : "College - Eastern Illinois",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0880",
+       NAME : "Taylor, Jeff",
+       ACTIVE : "1982 - 1986",
+       FROM : "College - Texas Tech",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_0881",
+       NAME : "Taylor, Jermaine",
+       ACTIVE : "2009 - 2010",
+       FROM : "College - Central Florida",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0882",
+       NAME : "Taylor, Johnny",
+       ACTIVE : "1997 - 1999",
+       FROM : "College - Knoxville; Indian Hills CC IA; Tennessee-Chattanooga",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0883",
+       NAME : "Taylor, Leonard",
+       ACTIVE : "1989 - 1989",
+       FROM : "College - California",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0884",
+       NAME : "Taylor, Maurice",
+       ACTIVE : "1997 - 2006",
+       FROM : "College - Michigan",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0885",
+       NAME : "Taylor, Mike",
+       ACTIVE : "2008 - 2008",
+       FROM : "College - Iowa State",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0886",
+       NAME : "Taylor, Roland Morris (Fatty)",
+       ACTIVE : "1976 - 1976",
+       FROM : "College - Edison CC FL; La Salle",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0887",
+       NAME : "Taylor, Vince",
+       ACTIVE : "1982 - 1982",
+       FROM : "College - Duke",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0888",
+       NAME : "Teagle, Terry",
+       ACTIVE : "1982 - 1992",
+       FROM : "College - Baylor",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0889",
+       NAME : "Teague, Jeff",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Wake Forest",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0890",
+       NAME : "Telfair, Sebastian",
+       ACTIVE : "ACTIVE",
+       FROM : "High School - Abraham Lincoln HS (Brooklyn, NY)",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0891",
+       NAME : "Temple, Garrett",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Louisiana State",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0892",
+       NAME : "Terrell, Ira Edmondson",
+       ACTIVE : "1976 - 1978",
+       FROM : "College - Southern Methodist",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0893",
+       NAME : "Terry, Allen Charles (Chuck)",
+       ACTIVE : "1972 - 1976",
+       FROM : "College - Long Beach State",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0894",
+       NAME : "Terry, Carlos",
+       ACTIVE : "1980 - 1982",
+       FROM : "College - Winston-Salem State",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0895",
+       NAME : "Terry, Claude Lewis",
+       ACTIVE : "1976 - 1977",
+       FROM : "College - Stanford",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0896",
+       NAME : "Terry, Jason",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Arizona",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0897",
+       NAME : "Thabeet, Hasheem",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Connecticut",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0898",
+       NAME : "Thacker, Thomas Porter (Tom, Tack)",
+       ACTIVE : "1963 - 1967",
+       FROM : "College - Cincinnati",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0899",
+       NAME : "Theus, Reggie",
+       ACTIVE : "1978 - 1990",
+       FROM : "College - Nevada-Las Vegas",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0900",
+       NAME : "Thibeaux, Peter C.",
+       ACTIVE : "1984 - 1985",
+       FROM : "College - St. Mary's (CA)",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0901",
+       NAME : "Thieben, William Bernard (Bill)",
+       ACTIVE : "1956 - 1957",
+       FROM : "College - Hofstra",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0902",
+       NAME : "Thigpen, Justus",
+       ACTIVE : "1972 - 1973",
+       FROM : "College - Charles Stewart Mott CC MI; Weber State",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0903",
+       NAME : "Thirdkill, David",
+       ACTIVE : "1982 - 1986",
+       FROM : "College - Coll. of Southern Idaho (J.C.); Bradley",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_0904",
+       NAME : "Thomas, Billy",
+       ACTIVE : "2007 - 2007",
+       FROM : "College - Kansas",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0905",
+       NAME : "Thomas, Carl",
+       ACTIVE : "1991 - 1997",
+       FROM : "College - Eastern Michigan",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0906",
+       NAME : "Thomas, Charles",
+       ACTIVE : "1991 - 1991",
+       FROM : "College - Eastern Michigan",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0907",
+       NAME : "Thomas, Etan",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Syracuse",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0908",
+       NAME : "Thomas, Irving",
+       ACTIVE : "1990 - 1990",
+       FROM : "College - Kentucky; Florida State",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0909",
+       NAME : "Thomas, Isiah",
+       ACTIVE : "1981 - 1993",
+       FROM : "College - Indiana",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_0910",
+       NAME : "Thomas, Jamel",
+       ACTIVE : "1999 - 2000",
+       FROM : "College - Providence",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0911",
+       NAME : "Thomas, Jamel",
+       ACTIVE : "1999 - 2000",
+       FROM : "College - Providence",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_0912",
+       NAME : "Thomas, James",
+       ACTIVE : "2004 - 2005",
+       FROM : "College - Texas",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0913",
+       NAME : "Thomas, Jim",
+       ACTIVE : "1983 - 1990",
+       FROM : "College - Indiana",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0914",
+       NAME : "Thomas, John",
+       ACTIVE : "1997 - 2005",
+       FROM : "College - Minnesota",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0915",
+       NAME : "Thomas, Joseph Randle (Joe)",
+       ACTIVE : "1970 - 1970",
+       FROM : "College - Marquette",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0916",
+       NAME : "Thomas, Kenny",
+       ACTIVE : "2007 - 2009",
+       FROM : "College - New Mexico",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0917",
+       NAME : "Thomas, Kurt",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Texas Christian",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0918",
+       NAME : "Udoh, Ekpe",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Baylor",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0919",
+       NAME : "Udoka, Ime",
+       ACTIVE : "2007 - 2010",
+       FROM : "College - Portland State",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0920",
+       NAME : "Udrih, Beno",
+       ACTIVE : "ACTIVE",
+       FROM : "From - Sempeter, Slovenia",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0921",
+       NAME : "Ukic, Roko",
+       ACTIVE : "2008 - 2009",
+       FROM : "From - Split, Croatia",
+       TEAM_LOGO : "../test/10_raw.jpg"
+}, {
+       ID :    "card_0922",
+       NAME : "Unseld, Wes",
+       ACTIVE : "1968 - 1980",
+       FROM : "College - Louisville",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0923",
+       NAME : "Uplinger, Harold F. (Hal)",
+       ACTIVE : "1953 - 1953",
+       FROM : "College - Long Island University",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0924",
+       NAME : "Upshaw, Kelvin",
+       ACTIVE : "1988 - 1990",
+       FROM : "College - Northeastern State (Okla.); Utah",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0925",
+       NAME : "Uzoh, Ben",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Tulsa",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0926",
+       NAME : "Valentine, Darnell",
+       ACTIVE : "1981 - 1990",
+       FROM : "College - Kansas",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0927",
+       NAME : "Valentine, Ronnie L. (Ron)",
+       ACTIVE : "1980 - 1980",
+       FROM : "College - Old Dominion",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0928",
+       NAME : "Vallely, John Stephen",
+       ACTIVE : "1970 - 1971",
+       FROM : "College - Orange Coast Coll. CA (J.C.); UCLA",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0929",
+       NAME : "Van Arsdale, Dick",
+       ACTIVE : "1965 - 1976",
+       FROM : "College - Indiana",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0930",
+       NAME : "Van Arsdale, Thomas Arthur (Tom)",
+       ACTIVE : "1965 - 1976",
+       FROM : "College - Indiana",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0931",
+       NAME : "Van Breda Kolff, Jan",
+       ACTIVE : "1976 - 1982",
+       FROM : "College - Vanderbilt",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0932",
+       NAME : "Van Breda Kolff, Willem H. (Butch)",
+       ACTIVE : "1946 - 1949",
+       FROM : "College - Princeton; N.Y.U.",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0933",
+       NAME : "Van Exel, Nick",
+       ACTIVE : "1993 - 2005",
+       FROM : "College - Cincinnati",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0934",
+       NAME : "Van Horn, Keith",
+       ACTIVE : "1997 - 2005",
+       FROM : "College - Utah",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0935",
+       NAME : "Van Lier, Norm",
+       ACTIVE : "1969 - 1978",
+       FROM : "College - St. Francis (PA)",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0936",
+       NAME : "Vance, Ellis Eugene (Gene)",
+       ACTIVE : "1947 - 1951",
+       FROM : "College - Illinois",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0937",
+       NAME : "Vander Velden, Logan",
+       ACTIVE : "1995 - 1995",
+       FROM : "College - Wis.-Green Bay",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_0938",
+       NAME : "Vandeweghe, Ernest Maurice Jr. (Ernie, Doc)",
+       ACTIVE : "1949 - 1955",
+       FROM : "College - Colgate",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0939",
+       NAME : "Vandeweghe, Kiki",
+       ACTIVE : "1980 - 1992",
+       FROM : "College - UCLA",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_0940",
+       NAME : "Vanos, Nick",
+       ACTIVE : "1985 - 1986",
+       FROM : "College - Santa Clara",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_0941",
+       NAME : "Vanterpool, David",
+       ACTIVE : "2000 - 2000",
+       FROM : "College - St. Bonaventure",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0942",
+       NAME : "Varda, Ratko",
+       ACTIVE : "2001 - 2001",
+       FROM : "From - Serbia & Montenegro",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0943",
+       NAME : "Varejao, Anderson",
+       ACTIVE : "ACTIVE",
+       FROM : "From - Santa Teresa, Brazil",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0944",
+       NAME : "Vasquez, Greivis",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Maryland",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0945",
+       NAME : "Vaughn, Charles (Chico)",
+       ACTIVE : "1962 - 1966",
+       FROM : "College - Southern Illinois",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0946",
+       NAME : "Vaughn, David",
+       ACTIVE : "1995 - 1998",
+       FROM : "College - Memphis",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0947",
+       NAME : "Vaughn, Jacque",
+       ACTIVE : "2007 - 2008",
+       FROM : "College - Kansas",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_0948",
+       NAME : "Vaughn, Virgil V.",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - Kentucky Wesleyan",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0949",
+       NAME : "Vaught, Loy",
+       ACTIVE : "1990 - 2000",
+       FROM : "College - Michigan",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0950",
+       NAME : "Verga, Robert Bruce (Bob)",
+       ACTIVE : "1973 - 1973",
+       FROM : "College - Duke",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_0951",
+       NAME : "Verhoeven, Peter",
+       ACTIVE : "1981 - 1986",
+       FROM : "College - Fresno State",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_0952",
+       NAME : "Vetra, Gundars",
+       ACTIVE : "1992 - 1992",
+       FROM : "College - No College",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_0953",
+       NAME : "Vianna, Joao",
+       ACTIVE : "1991 - 1991",
+       FROM : "College - Travajara (Brazil)",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0954",
+       NAME : "Villanueva, Charlie",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Connecticut",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0955",
+       NAME : "Vincent, Jay",
+       ACTIVE : "1981 - 1989",
+       FROM : "College - Michigan State",
+       TEAM_LOGO : "../test/20_raw.jpg"
+}, {
+       ID :    "card_0956",
+       NAME : "Vincent, Sam",
+       ACTIVE : "1985 - 1991",
+       FROM : "College - Michigan State",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_0957",
+       NAME : "Vinicius, Marcus",
+       ACTIVE : "2007 - 2007",
+       FROM : "From - Brazil",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0958",
+       NAME : "Vinson, Fred",
+       ACTIVE : "1994 - 1999",
+       FROM : "College - Georgia Tech",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0959",
+       NAME : "Voce, Gary",
+       ACTIVE : "1989 - 1989",
+       FROM : "College - Notre Dame",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0960",
+       NAME : "Volker, Floyd W.",
+       ACTIVE : "1949 - 1949",
+       FROM : "College - Wyoming",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0961",
+       NAME : "Volkov, Alexander",
+       ACTIVE : "1989 - 1991",
+       FROM : "College - Kiev Institute (Ukraine)",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0962",
+       NAME : "Von Nieda, Stanley L. Jr. (Whitey)",
+       ACTIVE : "1949 - 1949",
+       FROM : "College - Penn State",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0963",
+       NAME : "Voskuhl, Jake",
+       ACTIVE : "2007 - 2008",
+       FROM : "College - Connecticut",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_0964",
+       NAME : "Vranes, Danny",
+       ACTIVE : "1981 - 1987",
+       FROM : "College - Utah",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_0965",
+       NAME : "Vranes, Slavko",
+       ACTIVE : "2003 - 2003",
+       FROM : "From - Serbia & Montenegro",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0966",
+       NAME : "Vrankovic, Stojko",
+       ACTIVE : "1990 - 1998",
+       FROM : "College - Croatia",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0967",
+       NAME : "Vroman, Brett Grant",
+       ACTIVE : "1980 - 1980",
+       FROM : "College - UCLA; Nevada-Las Vegas",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0968",
+       NAME : "Vroman, Jackson",
+       ACTIVE : "2004 - 2005",
+       FROM : "College - Iowa State",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0969",
+       NAME : "Vujacic, Sasha",
+       ACTIVE : "ACTIVE",
+       FROM : "From - Maribor, Slovenia",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0970",
+       NAME : "Wade, Dwyane",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Marquette",
+       TEAM_LOGO : "../test/5_raw.jpg"
+}, {
+       ID :    "card_0971",
+       NAME : "Wade, Mark",
+       ACTIVE : "1987 - 1989",
+       FROM : "College - El Camino Coll. CA (J.C.); Oklahoma; Nevada-Las Vegas",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_0972",
+       NAME : "Wafer, Von",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Florida State",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0973",
+       NAME : "Wager, Clinton B. (Clint)",
+       ACTIVE : "1949 - 1949",
+       FROM : "College - St. Mary's (Minn.)",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_0974",
+       NAME : "Wagner, Dajuan",
+       ACTIVE : "2002 - 2006",
+       FROM : "College - Memphis",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_0975",
+       NAME : "Wagner, Daniel Earnest (Danny)",
+       ACTIVE : "1949 - 1949",
+       FROM : "College - Schreiner Coll.; Texas",
+       TEAM_LOGO : "../test/19_raw.jpg"
+}, {
+       ID :    "card_0976",
+       NAME : "Wagner, Milt",
+       ACTIVE : "1987 - 1990",
+       FROM : "College - Louisville",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_0977",
+       NAME : "Waiters, Granville",
+       ACTIVE : "1983 - 1987",
+       FROM : "College - Ohio State",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_0978",
+       NAME : "Wakefield, Andre",
+       ACTIVE : "1978 - 1979",
+       FROM : "College - Coll. of Southern Idaho (J.C.); Loyola (Chicago)",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}, {
+       ID :    "card_0979",
+       NAME : "Walk, Neal",
+       ACTIVE : "1969 - 1976",
+       FROM : "College - Florida",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0980",
+       NAME : "Walker, Andrew Martin (Andy)",
+       ACTIVE : "1976 - 1976",
+       FROM : "College - Niagara",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0981",
+       NAME : "Walker, Antoine",
+       ACTIVE : "2007 - 2007",
+       FROM : "College - Kentucky",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_0982",
+       NAME : "Walker, Bill",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Kansas State",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0983",
+       NAME : "Walker, Brady W.",
+       ACTIVE : "1948 - 1951",
+       FROM : "College - Brigham Young",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0984",
+       NAME : "Walker, Chet",
+       ACTIVE : "1962 - 1974",
+       FROM : "College - Bradley",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0985",
+       NAME : "Walker, Darrell",
+       ACTIVE : "1983 - 1992",
+       FROM : "College - Westark CC; Arkansas",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_0986",
+       NAME : "Walker, Foots",
+       ACTIVE : "1974 - 1983",
+       FROM : "College - Vincennes IN (J.C.); West Georgia",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0987",
+       NAME : "Walker, Horace",
+       ACTIVE : "1961 - 1961",
+       FROM : "College - Michigan State",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0988",
+       NAME : "Walker, James (Jimmy)",
+       ACTIVE : "1967 - 1975",
+       FROM : "College - Providence",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0989",
+       NAME : "Walker, Kenny",
+       ACTIVE : "1986 - 1994",
+       FROM : "College - Kentucky",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_0990",
+       NAME : "Walker, Phillip B. (Phil)",
+       ACTIVE : "1977 - 1977",
+       FROM : "College - Millersville",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_0991",
+       NAME : "Walker, Samaki",
+       ACTIVE : "1996 - 2005",
+       FROM : "College - Louisville",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_0992",
+       NAME : "Walker, Wally",
+       ACTIVE : "1976 - 1983",
+       FROM : "College - Virginia",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_0993",
+       NAME : "Wall, John",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Kentucky",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_0994",
+       NAME : "Wallace, Ben",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Virginia Union",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_0995",
+       NAME : "Wallace, Gerald",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Alabama",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0996",
+       NAME : "Wallace, John",
+       ACTIVE : "1996 - 2003",
+       FROM : "College - Syracuse ''96",
+       TEAM_LOGO : "../test/25_raw.jpg"
+}, {
+       ID :    "card_0997",
+       NAME : "Wallace, Michael John (Red)",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - Scranton",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_0998",
+       NAME : "Wallace, Rasheed",
+       ACTIVE : "2007 - 2009",
+       FROM : "College - North Carolina",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_0999",
+       NAME : "Waller, Dwight",
+       ACTIVE : "1968 - 1968",
+       FROM : "College - Tennessee State",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_1000",
+       NAME : "Waller, Jamie",
+       ACTIVE : "1987 - 1987",
+       FROM : "College - Virginia Union",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_1001",
+       NAME : "Walsh, James Patrick (Jim)",
+       ACTIVE : "1957 - 1957",
+       FROM : "College - Stanford",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_1002",
+       NAME : "Walsh, Matt",
+       ACTIVE : "2005 - 2005",
+       FROM : "College - Florida",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_1003",
+       NAME : "Walters, Rex",
+       ACTIVE : "1993 - 1999",
+       FROM : "College - De Anza Coll. CA (J.C.); Northwestern; Kansas",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_1004",
+       NAME : "Walther, Paul P. (Lefty)",
+       ACTIVE : "1949 - 1954",
+       FROM : "College - Tennessee",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_1005",
+       NAME : "Walthour, Isaac (Rabbit)",
+       ACTIVE : "1953 - 1953",
+       FROM : "College - No College",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_1006",
+       NAME : "Walton, Bill",
+       ACTIVE : "1974 - 1986",
+       FROM : "College - UCLA",
+       TEAM_LOGO : "../test/28_raw.jpg"
+}, {
+       ID :    "card_1007",
+       NAME : "Walton, Lloyd",
+       ACTIVE : "1976 - 1980",
+       FROM : "College - Moberly Area CC; Marquette",
+       TEAM_LOGO : "../test/12_raw.jpg"
+}, {
+       ID :    "card_1008",
+       NAME : "Walton, Luke",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Arizona",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_1009",
+       NAME : "Wang Zhizhi",
+       ACTIVE : "2000 - 2004",
+       FROM : "From - China",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_1010",
+       NAME : "Wanzer, Robert Francis (Bobby)",
+       ACTIVE : "1948 - 1956",
+       FROM : "College - Colgate; Seton Hall",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_1011",
+       NAME : "Warbington, Perry",
+       ACTIVE : "1974 - 1974",
+       FROM : "College - Lake City CC FL; Georgia Southern",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_1012",
+       NAME : "Ward, Charlie",
+       ACTIVE : "1994 - 2004",
+       FROM : "College - Florida State",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_1013",
+       NAME : "Ward, Gerald W. (Gerry)",
+       ACTIVE : "1963 - 1966",
+       FROM : "College - Boston College",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_1014",
+       NAME : "Ward, Henry Lorette",
+       ACTIVE : "1976 - 1976",
+       FROM : "College - Jackson State",
+       TEAM_LOGO : "../test/13_raw.jpg"
+}, {
+       ID :    "card_1015",
+       NAME : "Ware, James Edward (Jim)",
+       ACTIVE : "1966 - 1967",
+       FROM : "College - Oklahoma City",
+       TEAM_LOGO : "../test/11_raw.jpg"
+}, {
+       ID :    "card_1016",
+       NAME : "Warley, Benjamin Vallintina (Ben)",
+       ACTIVE : "1962 - 1966",
+       FROM : "College - Tennessee State",
+       TEAM_LOGO : "../test/27_raw.jpg"
+}, {
+       ID :    "card_1017",
+       NAME : "Warlick, Robert Lee (Bob)",
+       ACTIVE : "1965 - 1968",
+       FROM : "College - Pueblo CC CO; Pepperdine; Denver",
+       TEAM_LOGO : "../test/29_raw.jpg"
+}, {
+       ID :    "card_1018",
+       NAME : "Warner, Cornell",
+       ACTIVE : "1970 - 1976",
+       FROM : "College - Jackson State",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_1019",
+       NAME : "Warren, John II (Johnny)",
+       ACTIVE : "1969 - 1973",
+       FROM : "College - St. John's (N.Y.)",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_1020",
+       NAME : "Yarbrough, Vincent",
+       ACTIVE : "2002 - 2002",
+       FROM : "College - Tennessee ''02",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_1021",
+       NAME : "Yardley, George",
+       ACTIVE : "1953 - 1959",
+       FROM : "College - Stanford",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_1022",
+       NAME : "Yates, Barry",
+       ACTIVE : "1971 - 1971",
+       FROM : "College - Nebraska; Maryland",
+       TEAM_LOGO : "../test/18_raw.jpg"
+}, {
+       ID :    "card_1023",
+       NAME : "Yates, Wayne E.",
+       ACTIVE : "1961 - 1961",
+       FROM : "College - Memphis",
+       TEAM_LOGO : "../test/4_raw.jpg"
+}, {
+       ID :    "card_1024",
+       NAME : "Yelverton, Charles W. (Charlie)",
+       ACTIVE : "1971 - 1971",
+       FROM : "College - Fordham",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_1025",
+       NAME : "Yonakor, Richard Robert (Rich)",
+       ACTIVE : "1981 - 1981",
+       FROM : "College - North Carolina",
+       TEAM_LOGO : "../test/16_raw.jpg"
+}, {
+       ID :    "card_1026",
+       NAME : "Young, Danny",
+       ACTIVE : "1984 - 1994",
+       FROM : "College - Wake Forest",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_1027",
+       NAME : "Young, Korleone",
+       ACTIVE : "1998 - 1998",
+       FROM : "College - No College",
+       TEAM_LOGO : "../test/6_raw.jpg"
+}, {
+       ID :    "card_1028",
+       NAME : "Young, Michael",
+       ACTIVE : "1984 - 1989",
+       FROM : "College - Houston",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_1029",
+       NAME : "Young, Nick",
+       ACTIVE : "ACTIVE",
+       FROM : "College - USC",
+       TEAM_LOGO : "../test/24_raw.jpg"
+}, {
+       ID :    "card_1030",
+       NAME : "Young, Perry",
+       ACTIVE : "1986 - 1986",
+       FROM : "College - Virginia Tech",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_1031",
+       NAME : "Young, Sam",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Pittsburgh",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_1032",
+       NAME : "Young, Thaddeus",
+       ACTIVE : "ACTIVE",
+       FROM : "College - Georgia Tech",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_1033",
+       NAME : "Young, Tim",
+       ACTIVE : "1999 - 1999",
+       FROM : "College - Stanford",
+       TEAM_LOGO : "../test/9_raw.jpg"
+}, {
+       ID :    "card_1034",
+       NAME : "Yue, Sun",
+       ACTIVE : "2008 - 2008",
+       FROM : "From - China",
+       TEAM_LOGO : "../test/26_raw.jpg"
+}, {
+       ID :    "card_1035",
+       NAME : "Zaslofsky, Max (Slats)",
+       ACTIVE : "1946 - 1955",
+       FROM : "College - Chicago; St. John's (N.Y.)",
+       TEAM_LOGO : "../test/23_raw.jpg"
+}, {
+       ID :    "card_1036",
+       NAME : "Zawoluk, Robert Michael (Zeke)",
+       ACTIVE : "1952 - 1954",
+       FROM : "College - St. John's (N.Y.)",
+       TEAM_LOGO : "../test/17_raw.jpg"
+}, {
+       ID :    "card_1037",
+       NAME : "Zeller, David A. (Dave)",
+       ACTIVE : "1961 - 1961",
+       FROM : "College - Miami (Ohio)",
+       TEAM_LOGO : "../test/8_raw.jpg"
+}, {
+       ID :    "card_1038",
+       NAME : "Zeller, Gary Lynn",
+       ACTIVE : "1970 - 1971",
+       FROM : "College - Drake",
+       TEAM_LOGO : "../test/15_raw.jpg"
+}, {
+       ID :    "card_1039",
+       NAME : "Zeller, Harry Raymond (Hank)",
+       ACTIVE : "1946 - 1946",
+       FROM : "College - Pittsburgh; Washington & Jefferson",
+       TEAM_LOGO : "../test/21_raw.jpg"
+}, {
+       ID :    "card_1040",
+       NAME : "Zeno, Anthony Michael (Tony)",
+       ACTIVE : "1979 - 1979",
+       FROM : "College - Arizona State",
+       TEAM_LOGO : "../test/22_raw.jpg"
+}, {
+       ID :    "card_1041",
+       NAME : "Zevenbergen, Phil",
+       ACTIVE : "1987 - 1987",
+       FROM : "College - Seattle Pacific; Edmonds CC WA; Washington",
+       TEAM_LOGO : "../test/14_raw.jpg"
+}, {
+       ID :    "card_1042",
+       NAME : "Zidek, George",
+       ACTIVE : "1995 - 1997",
+       FROM : "College - UCLA",
+       TEAM_LOGO : "../test/30_raw.jpg"
+}, {
+       ID :    "card_1043",
+       NAME : "Zimmerman, Derrick",
+       ACTIVE : "2005 - 2005",
+       FROM : "College - Mississippi State",
+       TEAM_LOGO : "../test/7_raw.jpg"
+}, {
+       ID :    "card_1044",
+       NAME : "Zoet, Jim",
+       ACTIVE : "1982 - 1982",
+       FROM : "College - Kent State",
+       TEAM_LOGO : "../test/2_raw.jpg"
+}, {
+       ID :    "card_1045",
+       NAME : "Zopf, William Charles Jr. (Bill, Zip)",
+       ACTIVE : "1970 - 1970",
+       FROM : "College - Duquesne",
+       TEAM_LOGO : "../test/1_raw.jpg"
+}, {
+       ID :    "card_1046",
+       NAME : "Zunic, Matthew (Matt, Mad Matt)",
+       ACTIVE : "1948 - 1948",
+       FROM : "College - George Washington",
+       TEAM_LOGO : "../test/3_raw.jpg"
+}];
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/00_winset_icon_favorite_on.png b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/00_winset_icon_favorite_on.png
new file mode 100644 (file)
index 0000000..1c024a5
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/00_winset_icon_favorite_on.png differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_76ers.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_76ers.jpg
new file mode 100644 (file)
index 0000000..35db118
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_76ers.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_bobcats.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_bobcats.jpg
new file mode 100644 (file)
index 0000000..6572396
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_bobcats.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_bucks.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_bucks.jpg
new file mode 100644 (file)
index 0000000..8b420ae
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_bucks.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_bulls.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_bulls.jpg
new file mode 100644 (file)
index 0000000..8c131e1
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_bulls.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_cavaliers.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_cavaliers.jpg
new file mode 100644 (file)
index 0000000..2a66daa
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_cavaliers.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_celtics.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_celtics.jpg
new file mode 100644 (file)
index 0000000..363f65b
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_celtics.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_clippers.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_clippers.jpg
new file mode 100644 (file)
index 0000000..9b042b9
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_clippers.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_griz.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_griz.jpg
new file mode 100644 (file)
index 0000000..c521cc9
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_griz.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_hawks.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_hawks.jpg
new file mode 100644 (file)
index 0000000..208be2d
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_hawks.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_heats.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_heats.jpg
new file mode 100644 (file)
index 0000000..1c009d2
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_heats.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_honets.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_honets.jpg
new file mode 100644 (file)
index 0000000..b2aa7ee
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_honets.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_jazz.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_jazz.jpg
new file mode 100644 (file)
index 0000000..1f1d221
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_jazz.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_kings.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_kings.jpg
new file mode 100644 (file)
index 0000000..fc0e9f9
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_kings.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_knics.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_knics.jpg
new file mode 100644 (file)
index 0000000..70c8796
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_knics.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_lakers.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_lakers.jpg
new file mode 100644 (file)
index 0000000..cb291b1
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_lakers.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_magics.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_magics.jpg
new file mode 100644 (file)
index 0000000..290b930
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_magics.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_mavericks.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_mavericks.jpg
new file mode 100644 (file)
index 0000000..f8816a8
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_mavericks.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_nets.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_nets.jpg
new file mode 100644 (file)
index 0000000..3d2600c
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_nets.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_nuggets.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_nuggets.jpg
new file mode 100644 (file)
index 0000000..a01e78e
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_nuggets.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_pacers.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_pacers.jpg
new file mode 100644 (file)
index 0000000..be98506
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_pacers.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_pistons.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_pistons.jpg
new file mode 100644 (file)
index 0000000..f13c851
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_pistons.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_raptors.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_raptors.jpg
new file mode 100644 (file)
index 0000000..eb8d431
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_raptors.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_rockets.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_rockets.jpg
new file mode 100644 (file)
index 0000000..8cf2f17
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_rockets.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_sonics.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_sonics.jpg
new file mode 100644 (file)
index 0000000..2104e42
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_sonics.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_spurs.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_spurs.jpg
new file mode 100644 (file)
index 0000000..060002d
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_spurs.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_suns.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_suns.jpg
new file mode 100644 (file)
index 0000000..754769c
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_suns.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_timberwolves.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_timberwolves.jpg
new file mode 100644 (file)
index 0000000..79476a8
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_timberwolves.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_trail.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_trail.jpg
new file mode 100644 (file)
index 0000000..57168c9
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_trail.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_warriors.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_warriors.jpg
new file mode 100644 (file)
index 0000000..45440c4
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_warriors.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_wizards.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_wizards.jpg
new file mode 100644 (file)
index 0000000..e98a491
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/images/nba_wizards.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-bubble-sample1.png b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-bubble-sample1.png
new file mode 100644 (file)
index 0000000..3c1d65e
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-bubble-sample1.png differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-bubble.html b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-bubble.html
new file mode 100644 (file)
index 0000000..9fe3725
--- /dev/null
@@ -0,0 +1,18 @@
+<div data-role="page" id="genlist-bubble" data-add-back-btn="true">
+       <div data-role="header" data-position="fixed">
+               <h1>bubble list (message bubble)</h1>
+       </div>
+       <div data-role="content">
+               <ul data-role="listview" data-style="bubble">
+                       <li class="ui-li-bubble-left">short left<span class="ui-li-bubble-time">9:20 PM</span></li>
+                       <li class="ui-li-bubble-right">But I have no choice. I have a big exam tomorrow. (bubble right)<span class="ui-li-bubble-time">9:26 PM</span></li>
+
+                       <li class="ui-li-bubble-left">Don't worry... I'm free. You're gonna get sick. (bubble left)<span class="ui-li-bubble-time">9:30 PM</span></li>
+                       <li class="ui-li-bubble-date">2010. 05. 20 (bubble date)</li>
+                       <li class="ui-li-bubble-right">Sorry I'm late. (bubble right)<span class="ui-li-bubble-time">9:26 PM</span></li>
+                       <li class="ui-li-bubble-left ui-li-bubble-sos">Don't worry... I'm free. You're gonna get sick. (bubble sos)<span class="ui-li-bubble-time">9:30 PM</span></li>
+                       <li class="ui-li-bubble-left"><p>Picture test</p><img src="list-bubble-sample1.png" /><span class="ui-li-bubble-time">9:40 PM</span></li>
+               </ul>
+       </div>
+</div>
+
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-dialogue.html b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-dialogue.html
new file mode 100644 (file)
index 0000000..2f9061a
--- /dev/null
@@ -0,0 +1,344 @@
+<div data-role="page" id="genlist-dialog" data-add-back-btn="true" data-fit-page-to-window="true">
+       <div data-role="header" data-position="fixed">
+               <h1>Dialog lists</h1>
+       </div>
+       <div class="content" data-role="content" data-scroll="y">
+               <ul data-role="listview">
+
+                       <li class="ui-li-dialogue">
+                               1line
+                       </li>
+                       <li class="ui-li-dialogue">
+                               <a>1line (with link)</a>
+                       </li>
+                       <li class="ui-li-dialogue">
+                               1line-sub
+                               <span class="ui-li-text-sub">subtext</sub>
+                       </li>
+                       <li class="ui-li-dialogue">
+                               <a>
+                               1line-sub (with link)
+                               <span class="ui-li-text-sub">subtext</span>
+                               </a>
+                       </li>
+                       <li class="ui-li-dialogue">
+                               1line-setting
+                               <span class="ui-li-text-sub">Sub text</span>
+                       </li>
+                       <li class="ui-li-dialogue">
+                               1line-btn1
+                               <div data-role="button" data-inline="true">Text Button</div>
+                       </li>
+                       <li class="ui-li-dialogue">
+                               1line-btn2
+                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+                       <li class="ui-li-dialogue">
+                               1line-toggle
+                               <div data-role="toggleswitch"/></div>
+                       </li>
+                       <li class="ui-li-dialogue">
+                               1line-bigicon1
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+                       <li class="ui-li-dialogue">
+                               1line-bigicon2
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <span class="ui-li-text-sub">Sub text</span>
+                       </li>
+                       <li class="ui-li-dialogue">
+                               1line-bigicon4
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <div data-role="button" data-inline="true">Text Button</div>
+                       </li>
+                       <li class="ui-li-dialogue">
+                               1line-bigicon5
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+                       <li class="ui-li-dialogue">
+                               1line-bigicon6
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <div data-role="toggleswitch"/></div>
+                       </li>
+                       <li class="ui-li-has-checkbox ui-li-dialogue">
+                               <form><input type="checkbox" data-style="check" name="c1line-check1" /></form>
+                               1line-check1
+                       </li>
+                       <li class="ui-li-has-checkbox ui-li-dialogue">
+                               <form><input type="checkbox" data-style="check" name="c1line-check2" /></form>
+                               1line-check2
+                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+                       <li class="ui-li-has-checkbox ui-li-dialogue">
+                               <form><input type="checkbox" data-style="check" name="c1line-check3" /></form>
+                               1line-check3
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+                       <li class="ui-li-has-checkbox ui-li-dialogue">
+                               <form><input type="checkbox" data-style="check" name="c1line-check4" /></form>
+                               1line-check4
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+                       <li class="ui-li-has-radio ui-li-dialogue">
+                               <form><input type="radio" /></form>
+                               1line-radio1
+                       </li>
+                       <li class="ui-li-has-radio ui-li-dialogue">
+                               <form><input type="radio" /></form>
+                               1line-radio3
+                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+                       <li class="ui-li-has-radio ui-li-dialogue">
+                               <form><input type="radio" /></form>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               1line-radio4
+                       </li>
+                       <li class="ui-li-has-radio ui-li-dialogue">
+                               <form><input type="radio" /></form>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               1line-radio5
+                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-multiline ui-li-dialogue">
+                               2line
+                               <span class="ui-li-text-sub">Subtext</span>
+                       </li>
+
+                       <li class="ui-li-multiline ui-li-dialogue">
+                               2line-sub-main
+                               <span class="ui-li-text-sub">Subtext</span>
+                       </li>
+
+                       <li class="ui-li-multiline ui-li-dialogue">
+                               2line-2sub
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <span class="ui-li-text-sub2">Subtext2</span>
+                       </li>
+
+                       <li class="ui-li-multiline ui-li-dialogue">
+                               2line-btn1
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true">button</div>
+                       </li>
+
+                       <li class="ui-li-2line-btn1 ui-li-dialogue">
+                       <span class="ui-li-text-main">2line-btn1</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <div data-role="button" data-inline="true" data-icon="call"></div>
+                       </li>
+
+                       <li class="ui-li-2line-btn2 ui-li-dialogue">
+                       <span class="ui-li-text-main">2line-btn2</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-2line-star1 ui-li-dialogue">
+                       <span class="ui-li-text-main">2line-star1</span>
+                       <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <span class="ui-li-text-sub2">Subtext2</span>
+                       </li>
+
+                       <li class="ui-li-2line-star2 ui-li-dialogue">
+                       <span class="ui-li-text-main">2line-star2</span>
+                       <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
+                       <span class="ui-li-text-sub"><img src="00_winset_icon_favorite_on.png">Subtext</span>
+                       <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
+                       </li>
+
+                       <li class="ui-li-2line-setting ui-li-dialogue">
+                       <span class="ui-li-text-main">2line-setting</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       </li>
+
+                       <li class="ui-li-2line-toggle-setting ui-li-dialogue">
+                       <span class="ui-li-text-main">2line-toggle-setting</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <div data-role="toggleswitch"/></div>
+                       </li>
+
+                       <li class="ui-li-2line-btn-setting ui-li-dialogue">
+                       <span class="ui-li-text-main">2line-btn-setting</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-2line-bigicon0 ui-li-dialogue">
+                       <span class="ui-li-text-main">2line-bigicon0</span>
+                       <span class="ui-li-text-sub">Subtext<img src="00_winset_icon_favorite_on.png"></span>
+                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-2line-bigicon1 ui-li-dialogue">
+                       <span class="ui-li-text-main">2line-bigicon1</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+                       <li class="ui-li-2line-bigicon2 ui-li-dialogue">
+                       <span class="ui-li-text-main">2line-bigicon2</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       <span class="ui-li-text-sub2">Subtext2</span>
+                       </li>
+
+                       <li class="ui-li-2line-bigicon3 ui-li-dialogue">
+                       <span class="ui-li-text-main">2line-bigicon3</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+                       <li class="ui-li-2line-bigicon4 ui-li-dialogue">
+                       <span class="ui-li-text-main">2line-bigicon4</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+                       <li class="ui-li-2line-check1 ui-li-dialogue">
+                       <span class="ui-li-text-main">2line-check1</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <form><input type="checkbox" data-style="check" name="c2line-check1" /></form>
+                       </li>
+
+                       <li class="ui-li-2line-check2 ui-li-dialogue">
+                       <span class="ui-li-text-main">2line-check2</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <form><input type="checkbox" data-style="check" name="c2line-check2" /></form>
+                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-2line-check3 ui-li-dialogue">
+                       <span class="ui-li-text-main">2line-check3</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <form><input type="checkbox" data-style="check" name="c2line-check3" /></form>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+
+                       <li class="ui-li-2line-radio1 ui-li-dialogue">
+                       <span class="ui-li-text-main">2line-radio1</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <form><input type="radio" /></form>
+                       </li>
+
+                       <li class="ui-li-2line-radio2 ui-li-dialogue">
+                       <span class="ui-li-text-main">2line-radio2</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <form><input type="radio" /></form>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+
+                       <li class="ui-li-2line-colorbar1 ui-li-dialogue">
+                       <span class="ui-li-color-bar"></span>
+                       <span class="ui-li-text-main">2line-colorbar1</span>
+                       <span class="ui-li-text-sub">Subtext
+                               <img src="00_winset_icon_favorite_on.png">
+                               <img src="00_winset_icon_favorite_on.png">
+                               <img src="00_winset_icon_favorite_on.png">
+                       </span>
+                       <span class="ui-li-text-sub2">Subtext2</span>
+                       <div data-role="button" data-inline="true">button</div>
+                       </li>
+
+                       <li class="ui-li-2line-colorbar3 ui-li-dialogue">
+                       <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
+                       <span class="ui-li-text-main">2line-colorbar3<img src="00_winset_icon_favorite_on.png"></span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <div data-role="button" data-inline="true">button</div>
+                       </li>
+
+                       <li class="ui-li-2line-colorbar3 ui-li-dialogue">
+                       <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
+                       <span class="ui-li-text-main">2line-colorbar3<img src="00_winset_icon_favorite_on.png"></span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <div data-role="button" data-inline="true" data-icon="call"></div>
+                       </li>
+
+                       <li class="ui-li-2line-colorbar3 ui-li-dialogue">
+                       <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
+                       <span class="ui-li-text-main">2line-colorbar3</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+                       <li class="ui-li-2line-bigicon8 ui-li-dialogue">
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       <span class="ui-li-text-main">2line-bigicon8</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
+                       </li>
+
+                       <li class="ui-li-2line-thumb1 ui-li-dialogue">
+                       <span class="ui-li-text-main">2line-thumb1</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+                       <li class="ui-li-2line-thumb2 ui-li-dialogue">
+                       <span class="ui-li-text-main">2line-thumb2<img src="00_winset_icon_favorite_on.png"></span>
+                       <span class="ui-li-text-sub"><img src="00_winset_icon_favorite_on.png">Subtext</span>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+                       <li class="ui-li-2line-sub-main-bigicon1 ui-li-dialogue">
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <span class="ui-li-text-main">2line-sub-main-bigicon1</span>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+                       <li class="ui-li-2line-bigicon-pgbar1 ui-li-dialogue">
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       <span class="ui-li-text-main">2line-bigicon-pgbar1</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <span class="ui-li-text-sub2">Subtext2</span>
+                       <div data-role="button" data-inline="true">Cancel</div>
+                       <div data-role="progressbar"></div>
+                       </li>
+
+                       <li class="ui-li-2line-bigicon-pgbar2 ui-li-dialogue">
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       <span class="ui-li-text-main">2line-bigicon-pgbar2</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <div data-role="button" data-inline="true">button</div>
+                       </li>
+
+                       <li class="ui-li-2line-bigicon-pgbar2 ui-li-dialogue">
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       <span class="ui-li-text-main">2line-bigicon-pgbar2</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <div data-role="button" data-inline="true" data-icon="call"></div>
+                       </li>
+
+                       <li class="ui-li-2line-bigicon-pgbar3 ui-li-dialogue">
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       <span class="ui-li-text-main">2line-bigicon-pgbar3</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <span class="ui-li-text-sub2">Subtext2</span>
+                       <div data-role="progressbar"></div>
+                       </li>
+
+                       <li class="ui-li-2line-icon-bigicon-btn ui-li-dialogue">
+                       <form><input type="checkbox" data-style="check" name="c2line-icon-bigicon-btn" /></form>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       <span class="ui-li-text-main">2line-icon-bigicon-btn</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-2line-thumb3 ui-li-dialogue">
+                       <span class="ui-li-text-main">2line-thumb3<img src="00_winset_icon_favorite_on.png"></span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+               </ul>
+       </div>
+</div>
+
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-divider_check.html b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-divider_check.html
new file mode 100644 (file)
index 0000000..0210231
--- /dev/null
@@ -0,0 +1,22 @@
+<div data-role="page" data-add-back-btn="true">
+       <div data-role="header" data-position="fixed">
+               <h1>Normal Divider </h1>
+       </div>
+       <div class="content" data-role="content" data-scroll="y">
+               <ul data-role="listview">
+                       <li data-role="list-divider" data-style="check"><form><input type="checkbox"  name="c2line-check1" /></form></li>
+                       <li class="ui-li-has-checkbox"><a href="#" ><form><input type="checkbox"  name="c2line-check1" /></form>Normal lists</a></li>
+                       <li class="ui-li-has-checkbox"><a href="#" ><form><input type="checkbox"  name="c2line-check1" /></form>Normal lists</a></li>
+                       <li class="ui-li-has-checkbox"><a href="#" ><form><input type="checkbox"  name="c2line-check1" /></form>Normal lists</a></li>
+                       <li data-role="list-divider" data-style="check"><form><input type="checkbox"  name="c2line-check1" /></form></li>
+                       <li class="ui-li-has-checkbox"><a href="#" ><form><input type="checkbox"  name="c2line-check1" /></form>Normal lists</a></li>
+                       <li class="ui-li-has-checkbox"><a href="#" ><form><input type="checkbox"  name="c2line-check1" /></form>Normal lists</a></li>
+                       <li class="ui-li-has-checkbox"><a href="#" ><form><input type="checkbox"  name="c2line-check1" /></form>Normal lists</a></li>
+                       <li data-role="list-divider" data-style="check"><form><input type="checkbox"  name="c2line-check1" /></form></li>
+                       <li class="ui-li-has-checkbox">Normal lists</li>
+                       <li class="ui-li-has-checkbox">Normal lists</li>
+                       <li class="ui-li-has-checkbox">Normal lists</li>
+               </ul>
+       </div>
+</div>
+
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-divider_checkexpandable.html b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-divider_checkexpandable.html
new file mode 100644 (file)
index 0000000..c624900
--- /dev/null
@@ -0,0 +1,22 @@
+<div data-role="page" data-add-back-btn="true">
+       <div data-role="header" data-position="fixed">
+               <h1>Normal Divider </h1>
+       </div>
+       <div class="content" data-role="content" data-scroll="y">
+               <ul data-role="listview">
+                       <li data-role="list-divider" data-style="checkexpandable"><form><input type="checkbox"  name="c2line-check1" /></form>Test</li>
+                       <li class="ui-li-has-checkbox"><a href="#" ><form><input type="checkbox"  name="c2line-check1" /></form>Normal lists</a></li>
+                       <li class="ui-li-has-checkbox"><a href="#" ><form><input type="checkbox"  name="c2line-check1" /></form>Normal lists</a></li>
+                       <li class="ui-li-has-checkbox"><a href="#" ><form><input type="checkbox"  name="c2line-check1" /></form>Normal lists</a></li>
+                       <li data-role="list-divider" data-style="checkexpandable"><form><input type="checkbox"  name="c2line-check1" /></form></li>
+                       <li class="ui-li-has-checkbox"><a href="#" ><form><input type="checkbox"  name="c2line-check1" /></form>Normal lists</a></li>
+                       <li class="ui-li-has-checkbox"><a href="#" ><form><input type="checkbox"  name="c2line-check1" /></form>Normal lists</a></li>
+                       <li class="ui-li-has-checkbox"><a href="#" ><form><input type="checkbox"  name="c2line-check1" /></form>Normal lists</a></li>
+                       <li data-role="list-divider" data-style="checkexpandable"><form><input type="checkbox"  name="c2line-check1" /></form></li>
+                       <li class="ui-li-has-checkbox">Normal lists</li>
+                       <li class="ui-li-has-checkbox">Normal lists</li>
+                       <li class="ui-li-has-checkbox">Normal lists</li>
+               </ul>
+       </div>
+</div>
+
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-divider_expandable.html b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-divider_expandable.html
new file mode 100644 (file)
index 0000000..debb032
--- /dev/null
@@ -0,0 +1,22 @@
+<div data-role="page" data-add-back-btn="true">
+       <div data-role="header" data-position="fixed">
+               <h1>Normal Divider </h1>
+       </div>
+       <div class="content" data-role="content" data-scroll="y">
+               <ul data-role="listview">
+                       <li data-role="list-divider" data-style="expandable">Item styles</li>
+                       <li><a href="#" >Normal lists</a></li>
+                       <li><a href="#" >Normal lists</a></li>
+                       <li><a href="#" >Normal lists</a></li>
+                       <li data-role="list-divider" data-style="expandable">Item styles</li>
+                       <li><a href="#" >Normal lists</a></li>
+                       <li><a href="#" >Normal lists</a></li>
+                       <li><a href="#" >Normal lists</a></li>
+                       <li data-role="list-divider" data-style="expandable">Item styles</li>
+                       <li><a href="#" >Normal lists</a></li>
+                       <li><a href="#" >Normal lists</a></li>
+                       <li><a href="#" >Normal lists</a></li>
+               </ul>
+       </div>
+</div>
+
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-divider_groupped.html b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-divider_groupped.html
new file mode 100644 (file)
index 0000000..65ed720
--- /dev/null
@@ -0,0 +1,22 @@
+<div data-role="page" data-add-back-btn="true">
+       <div data-role="header" data-position="fixed">
+               <h1>Normal Divider </h1>
+       </div>
+       <div class="content" data-role="content" data-scroll="y">
+               <ul data-role="listview">
+                       <li data-role="list-divider" data-style="dialogue">Item styles</li>
+                       <li class="ui-li-dialogue"><a href="#" >Normal lists</a></li>
+                       <li class="ui-li-dialogue"><a href="#" >Normal lists</a></li>
+                       <li class="ui-li-dialogue"><a href="#" >Normal lists</a></li>
+                       <li data-role="list-divider" data-style="dialogue">Item styles</li>
+                       <li class="ui-li-dialogue"><a href="#" >Normal lists</a></li>
+                       <li class="ui-li-dialogue"><a href="#" >Normal lists</a></li>
+                       <li class="ui-li-dialogue"><a href="#" >Normal lists</a></li>
+                       <li data-role="list-divider" data-style="dialogue">Item styles</li>
+                       <li class="ui-li-dialogue">Normal lists</li>
+                       <li class="ui-li-dialogue">Normal lists</li>
+                       <li class="ui-li-dialogue">Normal lists</li>
+               </ul>
+       </div>
+</div>
+
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-divider_normal.html b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-divider_normal.html
new file mode 100644 (file)
index 0000000..d13b96e
--- /dev/null
@@ -0,0 +1,22 @@
+<div data-role="page" data-add-back-btn="true">
+       <div data-role="header" data-position="fixed">
+               <h1>Normal Divider </h1>
+       </div>
+       <div class="content" data-role="content" data-scroll="y">
+               <ul data-role="listview">
+                       <li data-role="list-divider">Item styles</li>
+                       <li><a href="#">Normal lists</a></li>
+                       <li><a href="#">Normal lists</a></li>
+                       <li><a href="#">Normal lists</a></li>
+                       <li data-role="list-divider">Item styles</li>
+                       <li><a href="#">Normal lists</a></li>
+                       <li><a href="#">Normal lists</a></li>
+                       <li><a href="#">Normal lists</a></li>
+                       <li data-role="list-divider">Item styles</li>
+                       <li><a href="#">Normal lists</a></li>
+                       <li><a href="#">Normal lists</a></li>
+                       <li><a href="#">Normal lists</a></li>
+               </ul>
+       </div>
+</div>
+
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-email.html b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-email.html
new file mode 100644 (file)
index 0000000..f7fbaef
--- /dev/null
@@ -0,0 +1,179 @@
+<div data-role="page" id="genlist-email" data-add-back-btn="true" data-fit-page-to-window="true">
+       <div data-role="header" data-position="fixed">
+               <h1>Email lists</h1>
+       </div>
+       <div class="content" data-role="content" data-scroll="y">
+               <ul data-role="listview">
+                       <li class="ui-li-email-name1-btn">
+                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
+                               <form><input type="checkbox" name="c2line-icon-bigicon-btn" /></form>
+                               <span class="ui-li-text-main">email-name1-btn</span>
+                               <div data-role="button" data-inline="true">3 ></div>
+                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
+                               <span class="ui-li-text-sub1">Subtext 01</span>
+                               <span class="ui-li-text-sub2">Subtext 02</span>
+                               <span class="ui-li-text-sub3">Subtext 03</span>
+                       </li>
+                       <li class="ui-li-email-name2-btn">
+                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
+                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
+                               <span class="ui-li-text-main">email-name2-btn</span>
+                               <div data-role="button" data-inline="true">3 ></div>
+                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
+                               <span class="ui-li-text-sub1">Subtext 01</span>
+                               <span class="ui-li-text-sub2">Subtext 02</span>
+                               <span class="ui-li-text-sub3">Subtext 03</span>
+                       </li>
+                       <li class="ui-li-email-name1">
+                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
+                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
+                               <span class="ui-li-text-main">email-name1</span>
+                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
+                               <span class="ui-li-text-sub1">Subtext 01</span>
+                               <span class="ui-li-text-sub2">Subtext 02</span>
+                               <span class="ui-li-text-sub3">Subtext 03</span>
+                       </li>
+                       <li class="ui-li-email-name2">
+                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
+                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
+                               <span class="ui-li-text-main">email-name2</span>
+                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
+                               <span class="ui-li-text-sub1">Subtext 01</span>
+                               <span class="ui-li-text-sub2">Subtext 02</span>
+                               <span class="ui-li-text-sub3">Subtext 03</span>
+                       </li>
+                       <li class="ui-li-email-name1-btn-warning">
+                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
+                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
+                               <span class="ui-li-text-main">email-name1-btn-warning</span>
+                               <div data-role="button" data-inline="true">3 ></div>
+                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-warning">
+                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
+                               <span class="ui-li-text-sub1">Subtext 01</span>
+                               <span class="ui-li-text-sub2">Subtext 02</span>
+                               <span class="ui-li-text-sub3">Subtext 03</span>
+                       </li>
+                       <li class="ui-li-email-name2-btn-warning">
+                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
+                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
+                               <span class="ui-li-text-main">email-name2-btn-warning</span>
+                               <div data-role="button" data-inline="true">3 ></div>
+                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-warning">
+                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
+                               <span class="ui-li-text-sub1">Subtext 01</span>
+                               <span class="ui-li-text-sub2">Subtext 02</span>
+                               <span class="ui-li-text-sub3">Subtext 03</span>
+                       </li>
+                       <li class="ui-li-email-name1-warning">
+                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
+                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
+                               <span class="ui-li-text-main">email-name1-warning</span>
+                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-warning">
+                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
+                               <span class="ui-li-text-sub1">Subtext 01</span>
+                               <span class="ui-li-text-sub2">Subtext 02</span>
+                               <span class="ui-li-text-sub3">Subtext 03</span>
+                       </li>
+                       <li class="ui-li-email-name2-warning">
+                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
+                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
+                               <span class="ui-li-text-main">email-name2-warning</span>
+                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-warning">
+                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
+                               <span class="ui-li-text-sub1">Subtext 01</span>
+                               <span class="ui-li-text-sub2">Subtext 02</span>
+                               <span class="ui-li-text-sub3">Subtext 03</span>
+                       </li>
+                       <li class="ui-li-email-name1-btn-attach">
+                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
+                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
+                               <span class="ui-li-text-main">email-name1-btn-attach</span>
+                               <div data-role="button" data-inline="true">3 ></div>
+                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-attach">
+                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
+                               <span class="ui-li-text-sub1">Subtext 01</span>
+                               <span class="ui-li-text-sub2">Subtext 02</span>
+                               <span class="ui-li-text-sub3">Subtext 03</span>
+                       </li>
+                       <li class="ui-li-email-name2-btn-attach">
+                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
+                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
+                               <span class="ui-li-text-main">email-name2-btn-attach</span>
+                               <div data-role="button" data-inline="true">3 ></div>
+                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-attach">
+                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
+                               <span class="ui-li-text-sub1">Subtext 01</span>
+                               <span class="ui-li-text-sub2">Subtext 02</span>
+                               <span class="ui-li-text-sub3">Subtext 03</span>
+                       </li>
+                       <li class="ui-li-email-name1-attach">
+                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
+                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
+                               <span class="ui-li-text-main">email-name1-attach</span>
+                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-attach">
+                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
+                               <span class="ui-li-text-sub1">Subtext 01</span>
+                               <span class="ui-li-text-sub2">Subtext 02</span>
+                               <span class="ui-li-text-sub3">Subtext 03</span>
+                       </li>
+                       <li class="ui-li-email-name2-attach">
+                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
+                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
+                               <span class="ui-li-text-main">email-name2-attach</span>
+                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-attach">
+                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
+                               <span class="ui-li-text-sub1">Subtext 01</span>
+                               <span class="ui-li-text-sub2">Subtext 02</span>
+                               <span class="ui-li-text-sub3">Subtext 03</span>
+                       </li>
+                       <li class="ui-li-email-name1-btn-warning-attach">
+                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
+                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
+                               <span class="ui-li-text-main">email-name1-btn-warning-attach</span>
+                               <div data-role="button" data-inline="true">3 ></div>
+                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-attach">
+                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-warning">
+                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
+                               <span class="ui-li-text-sub1">Subtext 01</span>
+                               <span class="ui-li-text-sub2">Subtext 02</span>
+                               <span class="ui-li-text-sub3">Subtext 03</span>
+                       </li>
+                       <li class="ui-li-email-name2-btn-warning-attach">
+                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
+                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
+                               <span class="ui-li-text-main">email-name2-btn-warning-attach</span>
+                               <div data-role="button" data-inline="true">3 ></div>
+                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-attach">
+                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-warning">
+                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
+                               <span class="ui-li-text-sub1">Subtext 01</span>
+                               <span class="ui-li-text-sub2">Subtext 02</span>
+                               <span class="ui-li-text-sub3">Subtext 03</span>
+                       </li>
+                       <li class="ui-li-email-name1-warning-attach">
+                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
+                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
+                               <span class="ui-li-text-main">email-name1-warning-attach</span>
+                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-attach">
+                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-warning">
+                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
+                               <span class="ui-li-text-sub1">Subtext 01</span>
+                               <span class="ui-li-text-sub2">Subtext 02</span>
+                               <span class="ui-li-text-sub3">Subtext 03</span>
+                       </li>
+                       <li class="ui-li-email-name2-warning-attach">
+                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
+                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
+                               <span class="ui-li-text-main">email-name2-warning-attach</span>
+                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-attach">
+                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-warning">
+                               <form><input type="checkbox" name="checkbox-1" id="checkbox-1" class="favorite" /></form>
+                               <span class="ui-li-text-sub1">Subtext 01</span>
+                               <span class="ui-li-text-sub2">Subtext 02</span>
+                               <span class="ui-li-text-sub3">Subtext 03</span>
+                       </li>
+
+               </ul>
+       </div>
+</div>
+
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-expandable.html b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-expandable.html
new file mode 100644 (file)
index 0000000..2d4ef69
--- /dev/null
@@ -0,0 +1,43 @@
+<div data-role="page" id="genlist-expandable" data-add-back-btn="true">
+       <div data-role="header" data-position="fixed">
+               <h1>expandable list</h1>
+       </div>
+       <div data-role="content">
+               <ul data-role="listview">
+                       <li class="ui-li-dialogue" data-expandable="true" id="exp1" data-initial-expansion="true">1line</li>
+                       <li class="ui-li-dialogue" data-expanded-by="exp1">exp1-sub 1</li>
+                       <li class="ui-li-dialogue" data-expanded-by="exp1">exp1-sub 2</li>
+                       <li class="ui-li-dialogue" data-expanded-by="exp1">exp1-sub 3</li>
+                       <li class="ui-li-dialogue" data-expanded-by="exp1">exp1-sub 4</li>
+                       <li class="ui-li-dialogue" data-expanded-by="exp1">exp1-sub 5</li>
+                       <li class="ui-li-dialogue" data-expanded-by="exp1">exp1-sub 6</li>
+                       <li class="ui-li-dialogue" data-expanded-by="exp1">exp1-sub 7</li>
+                       <li class="ui-li-dialogue" data-expanded-by="exp1" data-expandable="true" id="exp2">exp1-sub 2 (exp2)</li>
+                       <li class="ui-li-dialogue" data-expanded-by="exp2">exp2-sub 1</li>
+                       <li class="ui-li-dialogue" data-expanded-by="exp2">exp2-sub 2</li>
+                       <li class="ui-li-dialogue" data-expanded-by="exp2">exp2-sub 3</li>
+                       <li class="ui-li-dialogue" data-expandable="true" id="exp3">
+                               <span class="ui-li-text-main">2line</span>
+                               <span class="ui-li-text-sub">Subtext</span>
+                       </li>
+                       <li class="ui-li-dialogue" data-expandable="true" id="exp4">
+                               <span class="ui-li-text-main">2line-sub-main</span>
+                               <span class="ui-li-text-sub">Subtext</span>
+                       </li>
+                       <li class="ui-li-has-radio ui-li-dialogue" data-expandable="true" id="exp5">
+                               <span class="ui-li-text-main">2line-radio1</span>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <form><input type="radio" /></form>
+                       </li>
+                       <li class="ui-li-dialogue" data-expandable="true" id="exp6">
+                               <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
+                               <span class="ui-li-text-main">2line-colorbar3</span>
+                               <span class="ui-li-text-sub">Subtext</span>
+<!--                           <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div> -->
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+               </ul>
+       </div>
+       <div data-role="footer">
+       </div>
+</div>
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-extendable.html b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-extendable.html
new file mode 100644 (file)
index 0000000..6aa0e73
--- /dev/null
@@ -0,0 +1,20 @@
+<div data-role="page" id="genlist_extendable_page" data-add-back-btn="true">
+       <script id="tmp-1line" type="text/x-jquery-tmpl">
+               <li class="ui-li-1line"><span class="ui-li-text-main">${NAME}</span></li>
+       </script>
+       <script id="tmp_load_more" type="text/x-jquery-tmpl">
+               <li class="ui-li-1line" style="text-align:center; margin:0 auto">
+                       <div data-role="button">Load ${NUM_MORE_ITEMS} more items</div>
+               </li>
+       </script>
+       
+       <div data-role="header" data-position="fixed">
+               <h1>extendable list</h1>
+       </div>
+       <div data-role="content">
+               <ul id = "extendable_list_main" data-role="extendablelist" data-extenditems="50" data-template="tmp-1line" data-dbtable="JSON_DATA">
+               </ul>
+       </div>
+       <div data-role="footer">
+       </div>
+</div>
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-multiline.html b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-multiline.html
new file mode 100644 (file)
index 0000000..bbddd2b
--- /dev/null
@@ -0,0 +1,20 @@
+<div data-role="page" id="genlist-multiline" data-add-back-btn="true">
+
+<div data-role="header">
+       <h1>Multiline lists</h1>
+</div>
+
+<div data-role="content">
+       <ul data-role="listview">
+               <li class="ui-li-3-4-1">
+                       <h1>3-4-1 Main item</h1>
+                       Hundres of charities, hobby clubs and professional associations in the suburbs and thousands in the state could be forced to pay taxes for the first time next year.
+               </li>
+               <li class="ui-li-3-4-5">
+                       <h1>3-4-5</h1>
+                       Hundres of charities, hobby clubs and professional associations in the suburbs and thousands in the state could be forced to pay taxes for the first time next year.
+               </li>
+       </ul>
+</div>
+
+</div>
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-normal.html b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-normal.html
new file mode 100644 (file)
index 0000000..545bfdc
--- /dev/null
@@ -0,0 +1,341 @@
+<div data-role="page" id="genlist-normal" data-add-back-btn="true" data-fit-page-to-window="true">
+       <div data-role="header" data-position="fixed">
+               <h1>Normal lists</h1>
+       </div>
+       <div class="content" data-role="content" data-scroll="y">
+               <ul data-role="listview">
+
+                       <li class="ui-li-1line">
+                       <span class="ui-li-text-main">1line</span>
+                       </li>
+
+                       <li class="ui-li-1line-sub">
+                       <span class="ui-li-text-main">1line-sub</span>
+                       <span class="ui-li-text-sub">subtext</sub>
+                       </li>
+                       <li class="ui-li-1line-setting">
+                       <span class="ui-li-text-main">1line-setting</span>
+                       <span class="ui-li-text-sub">Sub text</span>
+                       </li>
+                       <li class="ui-li-1line-btn1">
+                       <span class="ui-li-text-main">1line-btn1</span>
+                       <div data-role="button" data-inline="true">Text Button</div>
+                       </li>
+                       <li class="ui-li-1line-btn2">
+                       <span class="ui-li-text-main">1line-btn2</span>
+                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+                       <li class="ui-li-1line-toggle">
+                       <span class="ui-li-text-main">1line-toggle</span>
+                       <div data-role="toggleswitch"/></div>
+                       </li>
+
+                       <li class="ui-li-1line-bigicon1">
+                       <span class="ui-li-text-main">1line-bigicon1</span>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+                       <li class="ui-li-1line-bigicon2">
+                       <span class="ui-li-text-main">1line-bigicon2</span>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       <span class="ui-li-text-sub">Sub text</span>
+                       </li>
+                       <li class="ui-li-1line-bigicon4">
+                       <span class="ui-li-text-main">1line-bigicon4</span>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       <div data-role="button" data-inline="true">Text Button</div>
+                       </li>
+                       <li class="ui-li-1line-bigicon5">
+                       <span class="ui-li-text-main">1line-bigicon5</span>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+                       <li class="ui-li-1line-bigicon6">
+                       <span class="ui-li-text-main">1line-bigicon6</span>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       <div data-role="toggleswitch"/></div>
+                       </li>
+                       <li class="ui-li-1line-check1">
+                       <span class="ui-li-text-main">1line-check1</span>
+                       <form><input type="checkbox" name="c1line-check1" /></form>
+                       </li>
+                       <li class="ui-li-1line-check2">
+                       <span class="ui-li-text-main">1line-check2</span>
+                       <form><input type="checkbox" name="c1line-check2" /></form>
+                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+                       <li class="ui-li-1line-check3">
+                       <span class="ui-li-text-main">1line-check3</span>
+                       <form><input type="checkbox"  name="c1line-check3" /></form>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+                       <li class="ui-li-1line-check4">
+                       <span class="ui-li-text-main">1line-check4</span>
+                       <form><input type="checkbox"  name="c1line-check4" /></form>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+                       <li class="ui-li-1line-radio1">
+                       <span class="ui-li-text-main">1line-radio1</span>
+                       <form><input type="radio" /></form>
+                       </li>
+                       <li class="ui-li-1line-radio3">
+                       <span class="ui-li-text-main">1line-radio3</span>
+                       <form><input type="radio" /></form>
+                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+                       <li class="ui-li-1line-radio4">
+                       <span class="ui-li-text-main">1line-radio4</span>
+                       <form><input type="radio" /></form>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+                       <li class="ui-li-1line-radio5">
+                       <span class="ui-li-text-main">1line-radio5</span>
+                       <form><input type="radio" /></form>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+                       <li class="ui-li-1line-radio6">
+                       <span class="ui-li-text-main">1line-radio6</span>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+                       <li class="ui-li-2line">
+                       <span class="ui-li-text-main">2line</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       </li>
+
+                       <li class="ui-li-2line-sub-main">
+                       <span class="ui-li-text-main">2line-sub-main</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       </li>
+
+                       <li class="ui-li-2line-2sub">
+                       <span class="ui-li-text-main">2line-2sub</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <span class="ui-li-text-sub2">Subtext2</span>
+                       </li>
+
+                       <li class="ui-li-2line-btn1">
+                       <span class="ui-li-text-main">2line-btn1</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <div data-role="button" data-inline="true">button</div>
+                       </li>
+
+                       <li class="ui-li-2line-btn1">
+                       <span class="ui-li-text-main">2line-btn1</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <div data-role="button" data-inline="true" data-icon="call"></div>
+                       </li>
+
+                       <li class="ui-li-2line-btn2">
+                       <span class="ui-li-text-main">2line-btn2</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-2line-star1">
+                       <span class="ui-li-text-main">2line-star1</span>
+                       <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <span class="ui-li-text-sub2">Subtext2</span>
+                       </li>
+
+                       <li class="ui-li-2line-star2">
+                       <span class="ui-li-text-main">2line-star2</span>
+                       <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
+                       <span class="ui-li-text-sub"><img src="00_winset_icon_favorite_on.png">Subtext</span>
+                       <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
+                       </li>
+
+                       <li class="ui-li-2line-setting">
+                       <span class="ui-li-text-main">2line-setting</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       </li>
+
+                       <li class="ui-li-2line-toggle-setting">
+                       <span class="ui-li-text-main">2line-toggle-setting</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <div data-role="toggleswitch"/></div>
+                       </li>
+
+                       <li class="ui-li-2line-btn-setting">
+                       <span class="ui-li-text-main">2line-btn-setting</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-2line-bigicon0">
+                       <span class="ui-li-text-main">2line-bigicon0</span>
+                       <span class="ui-li-text-sub">Subtext<img src="00_winset_icon_favorite_on.png"></span>
+                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-2line-bigicon1">
+                       <span class="ui-li-text-main">2line-bigicon1</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+                       <li class="ui-li-2line-bigicon2">
+                       <span class="ui-li-text-main">2line-bigicon2</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       <span class="ui-li-text-sub2">Subtext2</span>
+                       </li>
+
+                       <li class="ui-li-2line-bigicon3">
+                       <span class="ui-li-text-main">2line-bigicon3</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+                       <li class="ui-li-2line-bigicon4">
+                       <span class="ui-li-text-main">2line-bigicon4</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+                       <li class="ui-li-2line-check1">
+                       <span class="ui-li-text-main">2line-check1</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <form><input type="checkbox"  name="c2line-check1" /></form>
+                       </li>
+
+                       <li class="ui-li-2line-check2">
+                       <span class="ui-li-text-main">2line-check2</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <form><input type="checkbox"  name="c2line-check2" /></form>
+                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-2line-check3">
+                       <span class="ui-li-text-main">2line-check3</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <form><input type="checkbox"  name="c2line-check3" /></form>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+
+                       <li class="ui-li-2line-radio1">
+                       <span class="ui-li-text-main">2line-radio1</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <form><input type="radio" /></form>
+                       </li>
+
+                       <li class="ui-li-2line-radio2">
+                       <span class="ui-li-text-main">2line-radio2</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <form><input type="radio" /></form>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+
+                       <li class="ui-li-2line-colorbar1">
+                       <span class="ui-li-color-bar"></span>
+                       <span class="ui-li-text-main">2line-colorbar1</span>
+                       <span class="ui-li-text-sub">Subtext
+                               <img src="00_winset_icon_favorite_on.png">
+                               <img src="00_winset_icon_favorite_on.png">
+                               <img src="00_winset_icon_favorite_on.png">
+                       </span>
+                       <span class="ui-li-text-sub2">Subtext2</span>
+                       <div data-role="button" data-inline="true">button</div>
+                       </li>
+
+                       <li class="ui-li-2line-colorbar2">
+                       <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
+                       <span class="ui-li-text-main">2line-colorbar2<img src="00_winset_icon_favorite_on.png"></span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <div data-role="button" data-inline="true">button</div>
+                       </li>
+
+                       <li class="ui-li-2line-colorbar2">
+                       <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
+                       <span class="ui-li-text-main">2line-colorbar2<img src="00_winset_icon_favorite_on.png"></span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <div data-role="button" data-inline="true" data-icon="call"></div>
+                       </li>
+
+                       <li class="ui-li-2line-colorbar3">
+                       <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
+                       <span class="ui-li-text-main">2line-colorbar3</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+                       <li class="ui-li-2line-bigicon8">
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       <span class="ui-li-text-main">2line-bigicon8</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
+                       </li>
+
+                       <li class="ui-li-2line-thumb1">
+                       <span class="ui-li-text-main">2line-thumb1</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+                       <li class="ui-li-2line-thumb2">
+                       <span class="ui-li-text-main">2line-thumb2<img src="00_winset_icon_favorite_on.png"></span>
+                       <span class="ui-li-text-sub"><img src="00_winset_icon_favorite_on.png">Subtext</span>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+                       <li class="ui-li-2line-sub-main-bigicon1">
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <span class="ui-li-text-main">2line-sub-main-bigicon1</span>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+                       <li class="ui-li-2line-bigicon-pgbar1">
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       <span class="ui-li-text-main">2line-bigicon-pgbar1</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <span class="ui-li-text-sub2">Subtext2</span>
+                       <div data-role="button" data-inline="true">Cancel</div>
+                       <div data-role="progressbar" id="progressbar"></div>
+                       </li>
+
+                       <li class="ui-li-2line-bigicon-pgbar2">
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       <span class="ui-li-text-main">2line-bigicon-pgbar2</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <div data-role="button" data-inline="true">button</div>
+                       </li>
+
+                       <li class="ui-li-2line-bigicon-pgbar2">
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       <span class="ui-li-text-main">2line-bigicon-pgbar2</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <div data-role="button" data-inline="true" data-icon="call"></div>
+                       </li>
+
+                       <li class="ui-li-2line-bigicon-pgbar3">
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       <span class="ui-li-text-main">2line-bigicon-pgbar3</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <span class="ui-li-text-sub2">Subtext2</span>
+                       <div data-role="progressing" data-style="pending" id="pending"></div>
+                       </li>
+
+                       <li class="ui-li-2line-icon-bigicon-btn">
+                       <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       <span class="ui-li-text-main">2line-icon-bigicon-btn</span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-2line-thumb3">
+                       <span class="ui-li-text-main">2line-thumb3<img src="00_winset_icon_favorite_on.png"></span>
+                       <span class="ui-li-text-sub">Subtext</span>
+                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+               </ul>
+       </div>
+</div>
+
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-normal_anchor.html b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-normal_anchor.html
new file mode 100644 (file)
index 0000000..0c98bdb
--- /dev/null
@@ -0,0 +1,459 @@
+<div data-role="page" id="genlist-normal" data-add-back-btn="true">
+       <div data-role="header" data-position="fixed">
+               <h1>Normal anchor lists</h1>
+       </div>
+       <div class="content" data-role="content" data-scroll="y">
+               <ul data-role="listview">
+
+                       <li>
+                               <a href="#">
+                                       1line
+                               </a>
+                       </li>
+
+                       <li>
+                               <a href="#">
+                                       1line-sub
+                                       <span class="ui-li-text-sub">Sub text</span>
+                               </a>
+                       </li>
+
+                       <li>
+                               <a href="#">
+                                       1line-btn1
+                                       <div data-role="button" data-inline="true">Text Button</div>
+                               </a>
+                       </li>
+
+                       <li>
+                               <a href="#">
+                                       1line-btn2
+                                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li>
+                               <a href="#">
+                                       1line-toggle
+                                       <div data-role="toggleswitch"/></div>
+                               </a>
+                       </li>
+
+                       <li>
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       1line-bigicon1
+                               </a>
+                       </li>
+
+                       <li>
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       1line-bigicon2
+                                       <span class="ui-li-text-sub">Sub text</span>
+                               </a>
+                       </li>
+
+                       <li>
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       1line-bigicon4
+                                       <div data-role="button" data-inline="true">Text Button</div>
+                               </a>
+                       </li>
+
+                       <li>
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       1line-bigicon5
+                                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li>
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       1line-bigicon6
+                                       <div data-role="toggleswitch"/></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-checkbox">
+                               <a href="#">
+                                       <form><input type="checkbox" name="c1line-check1" /></form>
+                                       1line-check1
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-checkbox">
+                               <a href="#">
+                                       <form><input type="checkbox" name="c1line-check2" /></form>
+                                       1line-check2
+                                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-checkbox">
+                               <a href="#">
+                                       <form><input type="checkbox"  name="c1line-check3" /></form>
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon" >
+                                       1line-check3
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-checkbox">
+                               <a href="#">
+                                       <form><input type="checkbox"  name="c1line-check4" /></form>
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       1line-check4
+                                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-radio">
+                               <a href="#">
+                                       <form><input type="radio" /></form>
+                                       1line-radio1
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-radio">
+                               <a href="#">
+                                       <form><input type="radio" /></form>
+                                       1line-radio3
+                                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-radio">
+                               <a href="#">
+                                       <form><input type="radio" /></form>
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       1line-radio4
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-radio">
+                               <a href="#">
+                                       <form><input type="radio" /></form>
+                                       1line-radio5
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-radio">
+                               <a href="#">
+                                       <form><input type="radio" /></form>
+                                       1line-radio6
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       2line
+                                       <span class="ui-li-text-sub">Subtext</span>
+                               </a>
+                       </li>
+
+<!--                   <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       2line-sub-main
+                               </a>
+                       </li>-->
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       2line-2sub
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <span class="ui-li-text-sub2">Subtext2</span>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       2line-btn1
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="button" data-inline="true">button</div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       2line-btn1
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="button" data-inline="true" data-icon="call"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       2line-btn2
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       2line-star1
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <span style="position:absolute; right:16px; top:80px"><img class= "ui-li-icon-sub-right" src="00_winset_icon_favorite_on.png"></span>
+                                       <span class="ui-li-text-sub2">Subtext2</span>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       2line-star2
+                                       <span class="ui-li-text-sub"><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png">Subtext</span>
+                                       <span><img class="ui-li-icon-sub-right" src="00_winset_icon_favorite_on.png"></span>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       2line-setting
+                                       <span class="ui-li-text-sub">Subtext</span>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       2line-toggle-setting
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="toggleswitch"/></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       2line-btn-setting
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       2line-bigicon0
+                                       <span class="ui-li-text-sub">Subtext<img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
+                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       2line-bigicon1
+                                       <span class="ui-li-text-sub">Subtext</span>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       2line-bigicon2
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <span class="ui-li-text-sub2">Subtext2</span>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       2line-bigicon3
+                                       <span class="ui-li-text-sub">Subtext</span>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       2line-bigicon4
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-checkbox ui-li-has-multiline">
+                               <a href="#">
+                                       <form><input type="checkbox"  name="c2line-check1" /></form>
+                                       2line-check
+                                       <span class="ui-li-text-sub">Subtext</span>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-checkbox ui-li-has-multiline">
+                               <a href="#">
+                                       <form><input type="checkbox"  name="c2line-check2" /></form>
+                                       2line-check2
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-checkbox ui-li-has-multiline">
+                               <a href="#">
+                                       <form><input type="checkbox"  name="c2line-check3" /></form>
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       2line-check3
+                                       <span class="ui-li-text-sub">Subtext</span>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-checkbox ui-li-has-multiline">
+                               <a href="#">
+                                       <form><input type="radio" /></form>
+                                       2line-radio1
+                                       <span class="ui-li-text-sub">Subtext</span>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-checkbox ui-li-has-multiline">
+                               <a href="#">
+                                       <form><input type="radio" /></form>
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       2line-radio2
+                                       <span class="ui-li-text-sub">Subtext</span>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <span class="ui-li-color-bar"></span>
+                                       2line-colorbar1
+                                       <span class="ui-li-text-sub">Subtext
+                                               <img src="00_winset_icon_favorite_on.png">
+                                               <img src="00_winset_icon_favorite_on.png">
+                                               <img src="00_winset_icon_favorite_on.png">
+                                       </span>
+                                       <div data-role="button" data-inline="true">button</div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
+                                       2line-colorbar2
+                                       <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="button" data-inline="true">button</div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
+                                       2line-colorbar2
+                                       <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="button" data-inline="true" data-icon="call"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       2line-colorbar3
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       2line-bigicon8
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline ui-li-thumbnail-right">
+                               <a href="#">
+                                       2line-thumb1
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       2line-thumb2
+                                       <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
+                                       <span class="ui-li-text-sub"><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png">Subtext</span>
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline ui-li-thumbnail-right">
+                               <a href="#">
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       2line-sub-main-bigicon1
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       2line-bigicon-pgbar1
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="progressbar" id="progressbar"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       2line-bigicon-pgbar2
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="button" data-inline="true">button</div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       2line-bigicon-pgbar2
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="button" data-inline="true" data-icon="call"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       2line-bigicon-pgbar3
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <span class="ui-li-text-sub2">Subtext2</span>
+                                       <div data-role="progressing" data-style="pending" id="pending"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-checkbox ui-li-has-multiline">
+                               <a href="#">
+                                       <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       2line-icon-bigicon-btn
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       2line-thumb3
+                                       <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               </a>
+                       </li>
+               </ul>
+       </div>
+</div>
+
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-normal_anchor_h3.html b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-normal_anchor_h3.html
new file mode 100644 (file)
index 0000000..8a94f64
--- /dev/null
@@ -0,0 +1,460 @@
+<div data-role="page" id="genlist-normal" data-add-back-btn="true">
+       <div data-role="header" data-position="fixed">
+               <h1>Normal anchor lists</h1>
+       </div>
+       <div class="content" data-role="content" data-scroll="y">
+               <ul data-role="listview">
+
+                       <li>
+                               <a href="#">
+                                       <h3>1line</h3>
+                               </a>
+                       </li>
+
+                       <li>
+                               <a href="#">
+                                       <h3>1line-setting</h3>
+                                       <span class="ui-li-text-sub">Sub text</span>
+                               </a>
+                       </li>
+
+                       <li>
+                               <a href="#">
+                                       <h3>1line-btn1</h3>
+                                       <div data-role="button" data-inline="true">Text Button</div>
+                               </a>
+                       </li>
+
+                       <li>
+                               <a href="#">
+                                       <h3>1line-btn2</h3>
+                                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li>
+                               <a href="#">
+                                       <h3>1line-toggle</h3>
+                                       <div data-role="toggleswitch"/></div>
+                               </a>
+                       </li>
+
+                       <li>
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       <h3>1line-bigicon1</h3>
+                               </a>
+                       </li>
+
+                       <li>
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       <h3>1line-bigicon2</h3>
+                                       <span class="ui-li-text-sub">Sub text</span>
+                               </a>
+                       </li>
+
+                       <li>
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       <h3>1line-bigicon4</h3>
+                                       <div data-role="button" data-inline="true">Text Button</div>
+                               </a>
+                       </li>
+
+                       <li>
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       <h3>1line-bigicon5</h3>
+                                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li>
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       <h3>1line-bigicon6</h3>
+                                       <div data-role="toggleswitch"/></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-checkbox">
+                               <a href="#">
+                                       <form><input type="checkbox" name="c1line-check1" /></form>
+                                       <h3>1line-check1</h3>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-checkbox">
+                               <a href="#">
+                                       <form><input type="checkbox" name="c1line-check2" /></form>
+                                       <h3>1line-check2</h3>
+                                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-checkbox">
+                               <a href="#">
+                                       <form><input type="checkbox"  name="c1line-check3" /></form>
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       <h3>1line-check3</h3>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-checkbox">
+                               <a href="#">
+                                       <form><input type="checkbox"  name="c1line-check4" /></form>
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       <h3>1line-check4</h3>
+                                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-radio">
+                               <a href="#">
+                                       <form><input type="radio" /></form>
+                                       <h3>1line-radio1</h3>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-radio">
+                               <a href="#">
+                                       <form><input type="radio" /></form>
+                                       <h3>1line-radio3</h3>
+                                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-radio">
+                               <a href="#">
+                                       <form><input type="radio" /></form>
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       <h3>1line-radio4</h3>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-radio">
+                               <a href="#">
+                                       <form><input type="radio" /></form>
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       <h3>1line-radio5</h3>
+                                       <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-radio">
+                               <a href="#">
+                                       <form><input type="radio" /></form>
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       <h3>1line-radio6</h3>
+                                       
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <h3>2line</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                               </a>
+                       </li>
+
+<!--                   <li class="ui-li-2line-sub-main">
+                               <a href="#">
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <h3>2line-sub-main</h3>
+                               </a>
+                       </li>-->
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <h3>2line-2sub</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <span class="ui-li-text-sub2">Subtext2</span>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <h3>2line-btn1</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="button" data-inline="true">button</div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <h3>2line-btn1</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="button" data-inline="true" data-icon="call"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <h3>2line-btn2</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <h3>line-star1</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <span style="position:absolute; right:16px; top:80px"><img class= "ui-li-icon-sub-right" src="00_winset_icon_favorite_on.png"></span>
+                                       <span class="ui-li-text-sub2">Subtext2</span>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <h3>2line-star</h3>
+                                       <span class="ui-li-text-sub"><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png">Subtext</span>
+                                       <span><img class="ui-li-icon-sub-right" src="00_winset_icon_favorite_on.png"></span>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <h3>2line-setting</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <h3>2line-toggle-setting</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="toggleswitch"/></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <h3>2line-btn-setting</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <h3>2line-bigicon0</h3>
+                                       <span class="ui-li-text-sub">Subtext<img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
+                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       <h3>2line-bigicon1</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       <h3>2line-bigicon2</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <span class="ui-li-text-sub2">Subtext2</span>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       <h3>2line-bigicon3</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       <h3>2line-bigicon4</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-checkbox ui-li-has-multiline">
+                               <a href="#">
+                                       <form><input type="checkbox"  name="c2line-check1" /></form>
+                                       <h3>2line-check</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-checkbox ui-li-has-multiline">
+                               <a href="#">
+                                       <form><input type="checkbox"  name="c2line-check2" /></form>
+                                       <h3>2line-check2</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-checkbox ui-li-has-multiline">
+                               <a href="#">
+                                       <form><input type="checkbox"  name="c2line-check3" /></form>
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       <h3>2line-check3</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-checkbox ui-li-has-multiline">
+                               <a href="#">
+                                       <form><input type="radio" /></form>
+                                       <h3>2line-radio1</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-checkbox ui-li-has-multiline">
+                               <a href="#">
+                                       <form><input type="radio" /></form>
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       <h3>2line-radio2</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <span class="ui-li-color-bar"></span>
+                                       <h3>2line-colorbar1</h3>
+                                       <span class="ui-li-text-sub">Subtext
+                                               <img src="00_winset_icon_favorite_on.png">
+                                               <img src="00_winset_icon_favorite_on.png">
+                                               <img src="00_winset_icon_favorite_on.png">
+                                       </span>
+                                       <div data-role="button" data-inline="true">button</div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
+                                       <h3>2line-colorbar2</h3>
+                                       <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="button" data-inline="true">button</div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
+                                       <h3>2line-colorbar2</h3>
+                                       <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="button" data-inline="true" data-icon="call"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       <h3>2line-colorbar3</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       <h3>2line-bigicon8</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline ui-li-thumbnail-right">
+                               <a href="#">
+                                       <h3>2line-thumb1</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <h3>2line-thumb2</h3>
+                                       <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
+                                       <span class="ui-li-text-sub"><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png">Subtext</span>
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline ui-li-thumbnail-right">
+                               <a href="#">
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <h3>2line-sub-main-bigicon1</h3>
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       <h3>2line-bigicon-pgbar1</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="progressbar" id="progressbar"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       <h3>2line-bigicon-pgbar2</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="button" data-inline="true">button</div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       <h3>2line-bigicon-pgbar2</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="button" data-inline="true" data-icon="call"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       <h3>2line-bigicon-pgbar3</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <span class="ui-li-text-sub2">Subtext2</span>
+                                       <div data-role="progressing" data-style="pending" id="pending"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-checkbox ui-li-has-multiline">
+                               <a href="#">
+                                       <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                                       <h3>2line-icon-bigicon-btn</h3>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                               </a>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <a href="#">
+                                       <h3>2line-thumb3</h3>
+                                       <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
+                                       <span class="ui-li-text-sub">Subtext</span>
+                                       <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               </a>
+                       </li>
+               </ul>
+       </div>
+</div>
+
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-normal_no_anchor.html b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-normal_no_anchor.html
new file mode 100644 (file)
index 0000000..ca02d8c
--- /dev/null
@@ -0,0 +1,346 @@
+<div data-role="page" id="genlist-normal" data-add-back-btn="true" data-fit-page-to-window="true">
+       <div data-role="header" data-position="fixed">
+               <h1>Normal lists</h1>
+       </div>
+       <div class="content" data-role="content" data-scroll="y">
+               <ul data-role="listview">
+
+                       <li>
+                               1line
+                       </li>
+
+                       <li>
+                               1line-sub
+                               <span class="ui-li-text-sub">subtext</span>
+                       </li>
+
+                       <li>
+                               1line-btn1
+                               <div data-role="button" data-inline="true">Text Button</div>
+                       </li>
+
+                       <li>
+                               1line-btn2
+                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+
+                       <li>
+                               1line-toggle
+                               <div data-role="toggleswitch"/></div>
+                       </li>
+
+                       <li>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               1line-bigicon1
+                       </li>
+
+                       <li>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               1line-bigicon2
+                               <span class="ui-li-text-sub">Sub text</span>
+                       </li>
+
+                       <li>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               1line-bigicon4
+                               <div data-role="button" data-inline="true">Text Button</div>
+                       </li>
+
+                       <li>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               1line-bigicon5
+                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+
+                       <li>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               1line-bigicon6
+                               <div data-role="toggleswitch"/></div>
+                       </li>
+
+                       <li class="ui-li-has-checkbox">
+                               <input type="checkbox" name="c1line-check1" />
+                               1line-check1
+                       </li>
+
+                       <li class="ui-li-has-checkbox">
+                               <form><input type="checkbox" name="c1line-check2" /></form>
+                               1line-check2
+                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-has-checkbox">
+                               <form><input type="checkbox"  name="c1line-check3" /></form>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               1line-check3
+                       </li>
+
+                       <li class="ui-li-has-checkbox">
+                               <form><input type="checkbox"  name="c1line-check4" /></form>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               1line-check4
+                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-has-radio">
+                               <form><input type="radio" /></form>
+                               1line-radio1
+                       </li>
+
+                       <li class="ui-li-has-radio">
+                               <form><input type="radio" /></form>
+                               1line-radio3
+                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-has-radio">
+                               <form><input type="radio" /></form>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               1line-radio4
+                       </li>
+
+                       <li class="ui-li-has-radio">
+                               <form><input type="radio" /></form>
+                               1line-radio5
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-has-radio">
+                               <form><input type="radio" /></form>
+                               1line-radio
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               2line
+                               <span class="ui-li-text-sub">Subtext</span>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               2line-2sub
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <span class="ui-li-text-sub2">Subtext2</span>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               2line-btn1
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true">button</div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               2line-btn1
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true" data-icon="call"></div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               2line-btn2
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               2line-star1
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <span style="position:absolute; right:16px; top:80px"><img class= "ui-li-icon-sub-right" src="00_winset_icon_favorite_on.png"></span>
+                               <span class="ui-li-text-sub2">Subtext2</span>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               2line-star2
+                               <span class="ui-li-text-sub"><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png">Subtext</span>
+                               <span><img class="ui-li-icon-sub-right" src="00_winset_icon_favorite_on.png"></span>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               2line-setting
+                               <span class="ui-li-text-sub">Subtext</span>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               2line-toggle-setting
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="toggleswitch"/></div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               2line-btn-setting
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               2line-bigicon0
+                               <span class="ui-li-text-sub">Subtext<img src="00_winset_icon_favorite_on.png"></span>
+                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               2line-bigicon1
+                               <span class="ui-li-text-sub">Subtext</span>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               2line-bigicon2
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <span class="ui-li-text-sub2">Subtext2</span>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               2line-bigicon3
+                               <span class="ui-li-text-sub">Subtext</span>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               2line-bigicon4
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-has-checkbox ui-li-has-multiline">
+                               <form><input type="checkbox"  name="c2line-check1" /></form>
+                               2line-check
+                               <span class="ui-li-text-sub">Subtext</span>
+                       </li>
+
+                       <li class="ui-li-has-checkbox ui-li-has-multiline">
+                               <form><input type="checkbox"  name="c2line-check2" /></form>
+                               2line-check2
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-has-checkbox ui-li-has-multiline">
+                               <form><input type="checkbox"  name="c2line-check3" /></form>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               2line-check3
+                               <span class="ui-li-text-sub">Subtext</span>
+                       </li>
+
+                       <li class="ui-li-has-radio ui-li-has-multiline">
+                               <form><input type="radio" /></form>
+                               2line-radio1
+                               <span class="ui-li-text-sub">Subtext</span>
+                       </li>
+
+                       <li class="ui-li-has-radio ui-li-has-multiline">
+                               <form><input type="radio" /></form>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               2line-radio2
+                               <span class="ui-li-text-sub">Subtext</span>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <span class="ui-li-color-bar"></span>
+                               2line-colorbar1
+                               <span class="ui-li-text-sub">Subtext
+                                       <img src="00_winset_icon_favorite_on.png">
+                                       <img src="00_winset_icon_favorite_on.png">
+                                       <img src="00_winset_icon_favorite_on.png">
+                               </span>
+                               <div data-role="button" data-inline="true">button</div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
+                               2line-colorbar2
+                               <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true">button</div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
+                               2line-colorbar2
+                               <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true" data-icon="call"></div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               2line-colorbar3
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               2line-bigicon8
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
+                       </li>
+
+                       <li class="ui-li-has-multiline ui-li-thumbnail-right">
+                               2line-thumb1
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+                       <li class="ui-li-has-multiline ui-li-thumbnail-right">
+                               2line-thumb2
+                               <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
+                               <span class="ui-li-text-sub"><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png">Subtext</span>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+                       <li class="ui-li-has-multiline ui-li-thumbnail-right">
+                               <span class="ui-li-text-sub">Subtext</span>
+                               2line-sub-main-bigicon1
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               2line-bigicon-pgbar1
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <span class="ui-li-text-sub2">Subtext2</span>
+                               <div data-role="progressbar" id="progressbar"></div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               2line-bigicon-pgbar2
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true">button</div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               2line-bigicon-pgbar2
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true" data-icon="call"></div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               2line-bigicon-pgbar3
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <span class="ui-li-text-sub2">Subtext2</span>
+                               <div data-role="progressing" data-style="pending" id="pending"></div>
+                       </li>
+
+                       <li class="ui-li-has-checkbox ui-li-has-multiline">
+                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               2line-icon-bigicon-btn
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               2line-thumb3
+                               <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+               </ul>
+       </div>
+</div>
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-normal_no_anchor_h3.html b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-normal_no_anchor_h3.html
new file mode 100644 (file)
index 0000000..808020e
--- /dev/null
@@ -0,0 +1,346 @@
+<div data-role="page" id="genlist-normal" data-add-back-btn="true" data-fit-page-to-window="true">
+       <div data-role="header" data-position="fixed">
+               <h1>Normal lists</h1>
+       </div>
+       <div class="content" data-role="content" data-scroll="y">
+               <ul data-role="listview">
+
+                       <li>
+                               <h3>1line</h3>
+                       </li>
+
+                       <li>
+                               <h3>1line-sub</h3>
+                               <span class="ui-li-text-sub">subtext</span>
+                       </li>
+
+                       <li>
+                               <h3>1line-btn1</h3>
+                               <div data-role="button" data-inline="true">Text Button</div>
+                       </li>
+
+                       <li>
+                               <h3>1line-btn2</h3>
+                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+
+                       <li>
+                               <h3>1line-toggle</h3>
+                               <div data-role="toggleswitch"/></div>
+                       </li>
+
+                       <li>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <h3>1line-bigicon1</h3>
+                       </li>
+
+                       <li>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <h3>1line-bigicon2</h3>
+                               <span class="ui-li-text-sub">Sub text</span>
+                       </li>
+
+                       <li>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <h3>1line-bigicon4</h3>
+                               <div data-role="button" data-inline="true">Text Button</div>
+                       </li>
+
+                       <li>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <h3>1line-bigicon5</h3>
+                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+
+                       <li>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <h3>1line-bigicon6</h3>
+                               <div data-role="toggleswitch"/></div>
+                       </li>
+
+                       <li class="ui-li-has-checkbox">
+                               <input type="checkbox" name="c1line-check1" />
+                               <h3>1line-check1</h3>
+                       </li>
+
+                       <li class="ui-li-has-checkbox">
+                               <form><input type="checkbox" name="c1line-check2" /></form>
+                               <h3>1line-check2</h3>
+                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-has-checkbox">
+                               <form><input type="checkbox"  name="c1line-check3" /></form>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <h3>1line-check3</h3>
+                       </li>
+
+                       <li class="ui-li-has-checkbox">
+                               <form><input type="checkbox"  name="c1line-check4" /></form>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <h3>1line-check4</h3>
+                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-has-radio">
+                               <form><input type="radio" /></form>
+                               <h3>1line-radio1</h3>
+                       </li>
+
+                       <li class="ui-li-has-radio">
+                               <form><input type="radio" /></form>
+                               <h3>1line-radio3</h3>
+                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-has-radio">
+                               <form><input type="radio" /></form>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <h3>1line-radio4</h3>
+                       </li>
+
+                       <li class="ui-li-has-radio">
+                               <form><input type="radio" /></form>
+                               <h3>1line-radio5</h3>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-has-radio">
+                               <form><input type="radio" /></form>
+                               <h3>1line-radio</h3>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <h3>2line</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <h3>2line-2sub</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <span class="ui-li-text-sub2">Subtext2</span>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <h3>2line-btn1</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true">button</div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <h3>2line-btn1</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true" data-icon="call"></div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <h3>2line-btn2</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <h3>2line-star1</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <span style="position:absolute; right:16px; top:80px"><img class= "ui-li-icon-sub-right" src="00_winset_icon_favorite_on.png"></span>
+                               <span class="ui-li-text-sub2">Subtext2</span>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <h3>2line-star</h3>
+                               <span class="ui-li-text-sub"><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png">Subtext</span>
+                               <span><img class="ui-li-icon-sub-right" src="00_winset_icon_favorite_on.png"></span>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <h3>2line-setting</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <h3>2line-toggle-setting</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="toggleswitch"/></div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <h3>2line-btn-setting</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <h3>2line-bigicon0</h3>
+                               <span class="ui-li-text-sub">Subtext<img src="00_winset_icon_favorite_on.png"></span>
+                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <h3>2line-bigicon1</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <h3>2line-bigicon2</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <span class="ui-li-text-sub2">Subtext2</span>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <h3>2line-bigicon3</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <h3>2line-bigicon4</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-has-checkbox ui-li-has-multiline">
+                               <form><input type="checkbox"  name="c2line-check1" /></form>
+                               <h3>2line-check</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                       </li>
+
+                       <li class="ui-li-has-checkbox ui-li-has-multiline">
+                               <form><input type="checkbox"  name="c2line-check2" /></form>
+                               <h3>2line-check2</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-has-checkbox ui-li-has-multiline">
+                               <form><input type="checkbox"  name="c2line-check3" /></form>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <h3>2line-check3</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                       </li>
+
+                       <li class="ui-li-has-radio ui-li-has-multiline">
+                               <form><input type="radio" /></form>
+                               <h3>2line-radio1</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                       </li>
+
+                       <li class="ui-li-has-radio ui-li-has-multiline">
+                               <form><input type="radio" /></form>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <h3>2line-radio2</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <span class="ui-li-color-bar"></span>
+                               <h3>2line-colorbar1</h3>
+                               <span class="ui-li-text-sub">Subtext
+                                       <img src="00_winset_icon_favorite_on.png">
+                                       <img src="00_winset_icon_favorite_on.png">
+                                       <img src="00_winset_icon_favorite_on.png">
+                               </span>
+                               <div data-role="button" data-inline="true">button</div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
+                               <h3>2line-colorbar2</h3>
+                               <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true">button</div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <span class="ui-li-color-bar" style="background-color:rgba(204, 52, 52, 1);"></span>
+                               <h3>2line-colorbar2</h3>
+                               <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true" data-icon="call"></div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <span class="ui-li-color-bar" style="background-color:rgba(72, 136, 42, 1);"></span>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <h3>2line-colorbar3</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <h3>2line-bigicon8</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
+                       </li>
+
+                       <li class="ui-li-has-multiline ui-li-thumbnail-right">
+                               <h3>2line-thumb1</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <h3>2line-thumb2</h3>
+                               <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
+                               <span class="ui-li-text-sub"><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png">Subtext</span>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+                       <li class="ui-li-has-multiline ui-li-thumbnail-right">
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <h3>2line-sub-main-bigicon1</h3>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <h3>2line-bigicon-pgbar1</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <span class="ui-li-text-sub2">Subtext2</span>
+                               <div data-role="progressbar" id="progressbar"></div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <h3>2line-bigicon-pgbar2</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true">button</div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <h3>2line-bigicon-pgbar2</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true" data-icon="call"></div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <h3>2line-bigicon-pgbar3</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <span class="ui-li-text-sub2">Subtext2</span>
+                               <div data-role="progressing" data-style="pending" id="pending"></div>
+                       </li>
+
+                       <li class="ui-li-has-checkbox ui-li-has-multiline">
+                               <form><input type="checkbox"  name="c2line-icon-bigicon-btn" /></form>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               <h3>2line-icon-bigicon-btn</h3>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <div data-role="button" data-inline="true" data-icon="call" data-style="circle"></div>
+                       </li>
+
+                       <li class="ui-li-has-multiline">
+                               <h3>2line-thumb3</h3>
+                               <span><img class="ui-li-icon-sub" src="00_winset_icon_favorite_on.png"></span>
+                               <span class="ui-li-text-sub">Subtext</span>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+               </ul>
+       </div>
+</div>
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-radio.html b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-radio.html
new file mode 100644 (file)
index 0000000..d209d47
--- /dev/null
@@ -0,0 +1,59 @@
+<div data-role="page" id="genlist-radio" data-add-back-btn="footer">
+       <div data-role="header" data-position="fixed">
+               <h1>Radio Button lists</h1>
+       </div>
+       <div class="content" data-role="content" data-scroll="y">
+               <form>
+               <ul data-role="listview">
+                       <li class="ui-li-has-radio ui-list-link">
+                               <a href="#">
+                                       <input type="radio" name="radio-choice-1" id="radio-choice-1" value="choice-1" checked="checked"/>
+                               Radio</a>
+                       </li>
+                       <li class="ui-li-has-radio ui-list-link">
+                               <a href="#">
+                                       <input type="radio" name="radio-choice-1" id="radio-choice-2" value="choice-2"/>
+                               Radio 2</a>
+                       </li>
+                       <li class="ui-li-has-radio ui-list-link">
+                               <a href="#">
+                                       <input type="radio" name="radio-choice-1" id="radio-choice-3" value="choice-3"/>
+                               Radio3</a>
+                       </li>
+                       <li class="ui-li-has-radio">
+                               <input type="radio" name="radio-choice-1" id="radio-choice-4" value="choice-4"/>
+                               Radio Item 4
+                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+                       <li class="ui-li-has-radio">
+                               <input type="radio" name="radio-choice-1" id="radio-choice-5" value="choice-5"/>
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                               Radio Item 5
+                       </li>
+                       <li class="ui-li-has-radio">
+                               <input type="radio" name="radio-choice-1" id="radio-choice-6" value="choice-6"/>
+                               Radio Item 6
+                       </li>
+                       <li class="ui-li-has-radio">
+                               <input type="radio" name="radio-choice-1" id="radio-choice-7" value="choice-7"/>
+                               Radio Item 7
+                       </li>
+                       <li class="ui-li-has-radio">
+                               <input type="radio" name="radio-choice-1" id="radio-choice-8" value="choice-8"/>
+                               Radio Item 8
+                       </li>
+                       <li class="ui-li-has-radio">
+                               <input type="radio" name="radio-choice-1" id="radio-choice-9" value="choice-9"/>
+                               Radio Item 9
+                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+                       <li class="ui-li-has-radio">
+                               <input type="radio" name="radio-choice-1" id="radio-choice-10" value="choice-10"/>
+                               Radio Item 10
+                               <img src="thumbnail.jpg" class="ui-li-bigicon">
+                       </li>
+               </ul>
+       </form>
+       </div>
+</div>
+
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-swipe.html b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list-swipe.html
new file mode 100644 (file)
index 0000000..22b8a06
--- /dev/null
@@ -0,0 +1,107 @@
+<div data-role="page" id="genlist-swipe" data-add-back-btn="true" data-fit-page-to-window="true">
+       <div data-role="header" data-position="fixed">
+               <h1>Swipe lists</h1>
+       </div>
+       <div class="content" data-role="content">
+               <ul data-role="listview">
+                       <ul data-role="swipelist">
+                               <li class="ui-li-multiline ui-li-dialogue">
+                                       <div data-role="button" data-inline="true">Twitter</div>
+                                       <div data-role="button" data-inline="true">Twitter</div>
+                                       <div data-role="button" data-inline="true">Facebook</div>
+                                       <div data-role="button" data-inline="true">Facebook</div>
+                                       <div data-role="swipelist-item-cover">
+                                               1line-leftsub1
+                                               <div class="ui-li-text-sub">subtext</div>
+                                       </div>
+                               </li>
+                               <li class="ui-li-dialogue">
+                                       <div data-role="button" data-inline="true">Twitter</div>
+                                       <div data-role="button" data-inline="true">Twitter</div>
+                                       <div data-role="button" data-inline="true">Facebook</div>
+                                       <div data-role="button" data-inline="true">Facebook</div>
+                                       <div data-role="swipelist-item-cover">
+                                               1line
+                                       </div>
+                               </li>
+                                       <li class="ui-li-multiline ui-li-dialogue">
+                                       <div data-role="button" data-inline="true">Twitter</div>
+                                       <div data-role="button" data-inline="true">Twitter</div>
+                                       <div data-role="button" data-inline="true">Facebook</div>
+                                       <div data-role="button" data-inline="true">Facebook</div>
+                                       <div data-role="swipelist-item-cover">
+                                               1line-leftsub1
+                                               <div class="ui-li-text-sub">subtext</div>
+                                       </div>
+                               </li>
+                               <li class="ui-li-dialogue">
+                                       <div data-role="button" data-inline="true">Twitter</div>
+                                       <div data-role="button" data-inline="true">Twitter</div>
+                                       <div data-role="button" data-inline="true">Facebook</div>
+                                       <div data-role="button" data-inline="true">Facebook</div>
+                                       <div data-role="swipelist-item-cover">
+                                               1line
+                                       </div>
+                               </li>
+                                       <li class="ui-li-multiline ui-li-dialogue">
+                                       <div data-role="button" data-inline="true">Twitter</div>
+                                       <div data-role="button" data-inline="true">Twitter</div>
+                                       <div data-role="button" data-inline="true">Facebook</div>
+                                       <div data-role="button" data-inline="true">Facebook</div>
+                                       <div data-role="swipelist-item-cover">
+                                               1line-leftsub1
+                                               <div class="ui-li-text-sub">subtext</div>
+                                       </div>
+                               </li>
+                               <li class="ui-li-dialogue">
+                                       <div data-role="button" data-inline="true">Twitter</div>
+                                       <div data-role="button" data-inline="true">Twitter</div>
+                                       <div data-role="button" data-inline="true">Facebook</div>
+                                       <div data-role="button" data-inline="true">Facebook</div>
+                                       <div data-role="swipelist-item-cover">
+                                               1line
+                                       </div>
+                               </li>
+                                       <li class="ui-li-multiline ui-li-dialogue">
+                                       <div data-role="button" data-inline="true">Twitter</div>
+                                       <div data-role="button" data-inline="true">Twitter</div>
+                                       <div data-role="button" data-inline="true">Facebook</div>
+                                       <div data-role="button" data-inline="true">Facebook</div>
+                                       <div data-role="swipelist-item-cover">
+                                               1line-leftsub1
+                                               <div class="ui-li-text-sub">subtext</div>
+                                       </div>
+                               </li>
+                               <li class="ui-li-dialogue">
+                                       <div data-role="button" data-inline="true">Twitter</div>
+                                       <div data-role="button" data-inline="true">Twitter</div>
+                                       <div data-role="button" data-inline="true">Facebook</div>
+                                       <div data-role="button" data-inline="true">Facebook</div>
+                                       <div data-role="swipelist-item-cover">
+                                               1line
+                                       </div>
+                               </li>
+                                       <li class="ui-li-multiline ui-li-dialogue">
+                                       <div data-role="button" data-inline="true">Twitter</div>
+                                       <div data-role="button" data-inline="true">Twitter</div>
+                                       <div data-role="button" data-inline="true">Facebook</div>
+                                       <div data-role="button" data-inline="true">Facebook</div>
+                                       <div data-role="swipelist-item-cover">
+                                               1line-leftsub1
+                                               <div class="ui-li-text-sub">subtext</div>
+                                       </div>
+                               </li>
+                               <li class="ui-li-dialogue">
+                                       <div data-role="button" data-inline="true">Twitter</div>
+                                       <div data-role="button" data-inline="true">Twitter</div>
+                                       <div data-role="button" data-inline="true">Facebook</div>
+                                       <div data-role="button" data-inline="true">Facebook</div>
+                                       <div data-role="swipelist-item-cover">
+                                               1line
+                                       </div>
+                               </li>
+                       </ul>
+               </ul>
+       </div>
+</div>
+
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list.html b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/list.html
new file mode 100644 (file)
index 0000000..1907922
--- /dev/null
@@ -0,0 +1,60 @@
+<!DOCTYPE html> 
+<html> 
+    <head>
+    </head>
+       <body> 
+
+
+<div data-role="page" id="list" data-add-back-btn="true">
+       <div data-role="header" data-position="fixed">
+               <h1>List</h1>
+       </div>
+       <div data-role="content">
+               <ul data-role="listview">
+                       <li data-role="list-divider">Item styles</li>
+<!--                   <li><a href="list-normal.html">Normal lists</a></li>-->
+                       <li><a href="list-normal_anchor.html">Normal lists add anchor</a></li>
+                       <li><a href="list-normal_no_anchor.html">Normal lists no anchor</a></li>
+                       <li><a href="list-normal_anchor_h3.html">Normal lists add anchor h3</a></li>
+                       <li><a href="list-normal_no_anchor_h3.html">Normal lists no anchor h3</a></li>
+                       <li data-role="list-divider">Divider style</li>
+                       <li><a href="list-divider_normal.html">Normal divider</a></li>
+                       <li><a href="list-divider_groupped.html">Groupped divider</a></li>
+                       <li><a href="list-divider_check.html">Check divider</a></li>
+                       <li><a href="list-divider_expandable.html">Expandable divider</a></li>
+                       <li><a href="list-divider_checkexpandable.html">CheckExpandable divider</a></li>
+                       
+                       <li data-role="list-divider">Etc...</li>
+                       <li><a href="list-bubble.html">bubble</a></li>
+                       <li><a href="list-expandable.html">expandable list</a></li>
+                       <li><a href="list-radio.html">Radio Button list</a></li>
+                       <li><a href="list-dialogue.html">Dialogue list</a></li>
+                       <li><a href="list-email.html">Email list</a></li>
+                       <li><a href="list-swipe.html">Swipe list</a></li>
+                       <li><a href="list-extendable.html">Extendable list</a></li>
+                       <li><a href="virtuallist-normal.html">Virtual List Normal Style 1line</a></li>
+                       <li><a href="virtuallist-normal_3_1_4.html">Virtual List Normal Style 1line-btn1</a></li>
+                       <li><a href="virtuallist-normal_3_1_6.html">Virtual List Normal Style 1line-toggle</a></li>
+                       <li><a href="virtuallist-normal_3_1_14.html">Virtual List Normal Style 1line-bigicon5</a></li>
+                       <li><a href="virtuallist-normal_3_2_7.html">Virtual List Normal Style 2line-star1</a></li>
+                       <li data-role="list-divider">(empty)</li>
+                       <li data-role="list-divider">Samples</li>
+               </ul>
+       </div>
+</div>
+
+
+
+<div data-role="page" id="3" data-add-back-btn="true">
+       <div data-role="header" data-position="fixed">
+               <h1></h1>
+       </div>
+       <div data-role="content">
+               <ul-data-role="listview">
+               </ul>
+       </div>
+</div>
+
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/thumbnail.jpg b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/thumbnail.jpg
new file mode 100644 (file)
index 0000000..7627ddc
Binary files /dev/null and b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/thumbnail.jpg differ
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/virtuallist-db-demo.js b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/virtuallist-db-demo.js
new file mode 100644 (file)
index 0000000..69207c7
--- /dev/null
@@ -0,0 +1,1057 @@
+/*
+ * jQuery Mobile Framework : Dummy data for Virtuallist demo
+ * Copyright (c) Lee, Wongi (wongi11.lee@samsung.com)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ */
+
+/* Sample Data in JSON : NBA Player list more than 1,000. */
+var JSON_DATA = [
+{NAME:"Abdelnaby, Alaa", ACTIVE:"1990 - 1994", FROM:"College - Duke", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Abdul-Aziz, Zaid", ACTIVE:"1968 - 1977", FROM:"College - Iowa State", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Abdul-Jabbar, Kareem", ACTIVE:"1969 - 1988", FROM:"College - UCLA", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Abdul-Rauf, Mahmoud", ACTIVE:"1990 - 2000", FROM:"College - Louisiana State", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Abdul-Wahad, Tariq", ACTIVE:"1997 - 2002", FROM:"College - San Jose State", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"Abdur-Rahim, Shareef", ACTIVE:"2007 - 2007", FROM:"College - California", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Abernethy, Tom", ACTIVE:"1976 - 1980", FROM:"College - Indiana", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Able, Forest Edward (Frosty)", ACTIVE:"1956 - 1956", FROM:"College - Western Kentucky; Louisville", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Abramovic, John Jr. (Brooms)", ACTIVE:"1946 - 1947", FROM:"College - Salem (NC)", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Acker, Alex", ACTIVE:"2005 - 2008", FROM:"College - Pepperdine", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Ackerman, Donald D. (Buddy)", ACTIVE:"1953 - 1953", FROM:"College - Long Island University", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Acres, Mark", ACTIVE:"1987 - 1992", FROM:"College - Oral Roberts", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Acton, Charles R. (Bud)", ACTIVE:"1967 - 1967", FROM:"College - Alma; Hillsdale", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Adams, Alvan", ACTIVE:"1975 - 1987", FROM:"College - Oklahoma", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"Adams, Donald L. (Don)", ACTIVE:"1970 - 1976", FROM:"College - Northwestern", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Adams, Hassan", ACTIVE:"2006 - 2008", FROM:"College - Arizona", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Adams, Michael", ACTIVE:"1985 - 1995", FROM:"College - Boston College", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Addison, Rafael", ACTIVE:"1986 - 1996", FROM:"College - Syracuse", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Adelman, Rick", ACTIVE:"1968 - 1974", FROM:"College - Loyola Marymount", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Adrien, Jeff", ACTIVE:"ACTIVE", FROM:"College - Connecticut", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Afflalo, Arron", ACTIVE:"ACTIVE", FROM:"College - UCLA", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Ager, Maurice", ACTIVE:"2007 - 2010", FROM:"College - Michigan State", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Aguirre, Mark", ACTIVE:"1981 - 1993", FROM:"College - DePaul", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Ahearn, Blake", ACTIVE:"2007 - 2008", FROM:"College - Missouri State", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Ainge, Danny", ACTIVE:"1981 - 1994", FROM:"College - Brigham Young", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Ajinca, Alexis", ACTIVE:"ACTIVE", FROM:"From - Saint Etienne, France", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Akin, Henry T.", ACTIVE:"1966 - 1967", FROM:"College - William Carey; Morehead State", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Alabi, Solomon", ACTIVE:"ACTIVE", FROM:"College - Florida State", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Alarie, Mark", ACTIVE:"1986 - 1990", FROM:"College - Duke", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Alcorn, Gary R.", ACTIVE:"1959 - 1960", FROM:"College - Fresno City Coll. CA (J.C.); Fresno State", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"Aldrich, Cole", ACTIVE:"ACTIVE", FROM:"College - Kansas", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Aldridge, LaMarcus", ACTIVE:"ACTIVE", FROM:"College - Texas", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Aleksinas, Chuck", ACTIVE:"1984 - 1984", FROM:"College - Kentucky; Connecticut", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Alexander, Cory", ACTIVE:"1995 - 2004", FROM:"College - Virginia", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Alexander, Courtney", ACTIVE:"2000 - 2002", FROM:"College - Fresno State", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Alexander, Gary", ACTIVE:"1993 - 1993", FROM:"College - South Florida", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Alexander, Joe", ACTIVE:"2008 - 2009", FROM:"College - West Virginia", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Alexander, Victor", ACTIVE:"1991 - 2001", FROM:"College - Iowa State", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"Alford, Steve", ACTIVE:"1987 - 1990", FROM:"College - Indiana", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Allen, Jerome", ACTIVE:"1995 - 1996", FROM:"College - Pennsylvania", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Allen, Lucius", ACTIVE:"1969 - 1978", FROM:"College - UCLA", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Allen, Malik", ACTIVE:"ACTIVE", FROM:"College - Villanova", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Allen, Randy", ACTIVE:"1988 - 1989", FROM:"College - Florida State", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Allen, Ray", ACTIVE:"ACTIVE", FROM:"College - Connecticut", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Allen, Robert J. (Bob)", ACTIVE:"1968 - 1968", FROM:"College - Marshall", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Allen, Tony", ACTIVE:"ACTIVE", FROM:"College - Oklahoma State", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Allison, Odis Jr.", ACTIVE:"1971 - 1971", FROM:"College - Laney Coll. CA (J.C.); Nevada-Las Vegas", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Allred, Lance", ACTIVE:"2007 - 2007", FROM:"College - Weber State", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Allums, Darrell", ACTIVE:"1980 - 1980", FROM:"College - UCLA", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Almond, Morris", ACTIVE:"2007 - 2008", FROM:"College - Rice", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Babbitt, Luke", ACTIVE:"ACTIVE", FROM:"College - Nevada-Reno", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"Babic, Milos", ACTIVE:"1990 - 1991", FROM:"College - Tennessee Tech", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Bach, John William (Johnny)", ACTIVE:"1948 - 1948", FROM:"College - Fordham; Rochester; Brown", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"Baechtold, James E. (Jim)", ACTIVE:"1952 - 1956", FROM:"College - Eastern Kentucky", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Bagaric, Dalibor", ACTIVE:"2000 - 2002", FROM:"From - Croatia", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Bagley, John", ACTIVE:"1982 - 1993", FROM:"College - Boston College", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Bailey, Augustus (Gus)", ACTIVE:"1974 - 1979", FROM:"College - Texas-El Paso", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Bailey, Carl", ACTIVE:"1981 - 1981", FROM:"College - Tuskegee", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Bailey, James", ACTIVE:"1979 - 1987", FROM:"College - Rutgers", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Bailey, Thurl", ACTIVE:"1983 - 1998", FROM:"College - North Carolina State", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Bailey, Toby", ACTIVE:"1998 - 1999", FROM:"College - UCLA ''98", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Baker, Mark", ACTIVE:"1998 - 1998", FROM:"College - Ohio State", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Baker, Maurice", ACTIVE:"2004 - 2004", FROM:"College - Oklahoma State '02", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Baker, Norman Henry (Norm)", ACTIVE:"1946 - 1946", FROM:"College - No College", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Baker, Vin", ACTIVE:"1993 - 2005", FROM:"College - Hartford", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Balkman, Renaldo", ACTIVE:"ACTIVE", FROM:"College - South Carolina", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Ball, Cedric", ACTIVE:"1990 - 1990", FROM:"College - North Carolina-Charlotte", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Ballard, Greg", ACTIVE:"1977 - 1988", FROM:"College - Shasta Coll. CA (J.C.); Oregon", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Baltimore, Herschel David (Herk)", ACTIVE:"1946 - 1946", FROM:"College - Penn State", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Banks, Gene", ACTIVE:"1981 - 1986", FROM:"College - Duke", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Banks, Marcus", ACTIVE:"ACTIVE", FROM:"College - Nevada-Las Vegas", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Bannister, Ken", ACTIVE:"1984 - 1990", FROM:"College - Trinidad State JC CO; Indiana State; Saint Augustine College", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Bantom, Mike", ACTIVE:"1973 - 1981", FROM:"College - St. Joseph's (PA)", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Barber, John", ACTIVE:"1956 - 1956", FROM:"College - Los Angeles State", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Barbosa, Leandro", ACTIVE:"ACTIVE", FROM:"From - Sau Paulo, Brazil", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Bardo, Stephen", ACTIVE:"1991 - 1995", FROM:"College - Illinois", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Barea, Jose", ACTIVE:"ACTIVE", FROM:"College - Northeastern", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Bargnani, Andrea", ACTIVE:"ACTIVE", FROM:"From - Rome, Italy", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Barker, Clifford E. (Cliff)", ACTIVE:"1949 - 1951", FROM:"College - Kentucky", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Barker, Thomas Kevin (Tom)", ACTIVE:"1976 - 1978", FROM:"College - Minnesota; Coll. of Southern Idaho (J.C.); Hawaii", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Barkley, Charles", ACTIVE:"1984 - 1999", FROM:"College - Auburn", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Barkley, Erick", ACTIVE:"2000 - 2001", FROM:"College - St. John''s '02", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Barksdale, Don Angelo", ACTIVE:"1951 - 1954", FROM:"College - Coll. of Marin CA (J.C.); UCLA", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Barnes, Harry J.", ACTIVE:"1968 - 1968", FROM:"College - Northeastern", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Barnes, Marvin Jerome", ACTIVE:"1976 - 1979", FROM:"College - Providence", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Barnes, Matt", ACTIVE:"ACTIVE", FROM:"College - UCLA", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Barnes, V. James (Jim, Bad News)", ACTIVE:"1964 - 1970", FROM:"College - Cameron; Texas-El Paso", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Barnett, Dick", ACTIVE:"1959 - 1973", FROM:"College - Tennessee State", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Barnett, James Franklin (Jim)", ACTIVE:"1966 - 1976", FROM:"College - Oregon", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Barnhill, John Anthony (Rabbit)", ACTIVE:"1962 - 1968", FROM:"College - Tennessee State", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Barnhill, Norton", ACTIVE:"1976 - 1976", FROM:"College - Washington State", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Barnhorst, Leo A. (Barney)", ACTIVE:"1949 - 1953", FROM:"College - Notre Dame", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Barr, John E.", ACTIVE:"1946 - 1946", FROM:"College - Penn State", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Barr, Michael J. (Mike)", ACTIVE:"1976 - 1976", FROM:"College - Duquesne", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Barr, Thomas L. (Moe)", ACTIVE:"1970 - 1970", FROM:"College - Duquesne", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Barrett, Andre", ACTIVE:"2007 - 2007", FROM:"College - Seton Hall", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Barrett, Ernie Drew", ACTIVE:"1953 - 1955", FROM:"College - Kansas State", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Barron, Earl", ACTIVE:"ACTIVE", FROM:"College - Memphis", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Barros, Dana", ACTIVE:"1989 - 2003", FROM:"College - Boston College ''89", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Barry, Brent", ACTIVE:"2007 - 2008", FROM:"College - Oregon State", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Cabarkapa, Zarko", ACTIVE:"2003 - 2005", FROM:"From - Serbia & Montenegro", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Cable, Byrum William (Barney)", ACTIVE:"1958 - 1963", FROM:"College - Bradley", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Caffey, Jason", ACTIVE:"1995 - 2002", FROM:"College - Alabama ''95", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Cage, Michael", ACTIVE:"1984 - 1999", FROM:"College - San Diego State", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Calabrese, Gerald A. (Gerry)", ACTIVE:"1950 - 1951", FROM:"College - St. John's (N.Y.)", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Calderon, Jose", ACTIVE:"ACTIVE", FROM:"From - Villanueva de la Serena, Spain", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Caldwell, Adrian", ACTIVE:"1989 - 1997", FROM:"College - Navarro Coll. TX (J.C.); Southern Methodist; Lamar", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Caldwell, James W. Jr. (Jim)", ACTIVE:"1967 - 1967", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Caldwell, Joe (Pogo)", ACTIVE:"1964 - 1969", FROM:"College - Arizona State", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Calhoun, David L. (Corky)", ACTIVE:"1972 - 1979", FROM:"College - Pennsylvania", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Calhoun, William C. (Bill)", ACTIVE:"1948 - 1954", FROM:"College - San Francisco City Coll. CA (J.C.)", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Calip, Demetrius", ACTIVE:"1991 - 1991", FROM:"College - Michigan", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Callahan, Thomas Francis (Tom)", ACTIVE:"1946 - 1946", FROM:"College - Notre Dame; Rockhurst", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Calloway, Rick", ACTIVE:"1990 - 1990", FROM:"College - Indiana; Kansas", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Calverley, Ernest A. (Ernie)", ACTIVE:"1946 - 1948", FROM:"College - Rhode Island", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Calvin, Mack", ACTIVE:"1976 - 1980", FROM:"College - Long Beach City Coll. CA (J.C.); USC", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Cambridge, Dexter", ACTIVE:"1992 - 1992", FROM:"College - Lon Morris Coll. TX (J.C.); Texas", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Camby, Marcus", ACTIVE:"ACTIVE", FROM:"College - Massachusetts", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Campbell, Elden", ACTIVE:"1990 - 2004", FROM:"College - Clemson", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Campbell, Tony", ACTIVE:"1984 - 1994", FROM:"College - Ohio State", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Cannon, Lawrence T. (Larry)", ACTIVE:"1973 - 1973", FROM:"College - La Salle", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Caracter, Derrick", ACTIVE:"ACTIVE", FROM:"College - Texas-El Paso", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Cardinal, Brian", ACTIVE:"ACTIVE", FROM:"College - Purdue", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Carl, Howard Hershey (Howie)", ACTIVE:"1961 - 1961", FROM:"College - Illinois; DePaul", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Carlisle, Chester G. (Chet)", ACTIVE:"1946 - 1946", FROM:"College - California", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Carlisle, Geno", ACTIVE:"2004 - 2004", FROM:"College - California '99", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Carlisle, Rick", ACTIVE:"1984 - 1989", FROM:"College - Maine; Virginia", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Carlson, Alvin Harold", ACTIVE:"1975 - 1975", FROM:"College - USC; Oregon", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Carlson, Don Vernon (Swede)", ACTIVE:"1946 - 1950", FROM:"College - Minnesota", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Carney, Robert Lee (Bob)", ACTIVE:"1954 - 1954", FROM:"College - Bradley", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Carney, Rodney", ACTIVE:"2007 - 2010", FROM:"College - Memphis", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Carpenter, Robert H. (Bob)", ACTIVE:"1949 - 1950", FROM:"College - Texas A&M-Commerce", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Carr, Antoine", ACTIVE:"1984 - 1999", FROM:"College - Wichita State", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Carr, Austin George", ACTIVE:"1971 - 1980", FROM:"College - Notre Dame", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Carr, Chris", ACTIVE:"1995 - 2000", FROM:"College - Southern Illinois", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Carr, Cory", ACTIVE:"1998 - 1998", FROM:"College - Texas Tech", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Carr, Kenny", ACTIVE:"1977 - 1986", FROM:"College - North Carolina State", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Carr, M.L.", ACTIVE:"1976 - 1984", FROM:"College - Guilford", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Carrington, Robert Frederick (Bob)", ACTIVE:"1977 - 1979", FROM:"College - Boston College", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"Carroll, DeMarre", ACTIVE:"2009 - 2010", FROM:"College - Missouri", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"Carroll, Joe Barry", ACTIVE:"1980 - 1990", FROM:"College - Purdue", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Carroll, Matt", ACTIVE:"ACTIVE", FROM:"College - Notre Dame", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Carruth, Jimmy", ACTIVE:"1996 - 1996", FROM:"College - Virginia Tech", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Carter, Anthony", ACTIVE:"ACTIVE", FROM:"College - Hawaii", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Carter, Butch", ACTIVE:"1980 - 1985", FROM:"College - Indiana", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Carter, Frederick James (Fred, Mad Dog)", ACTIVE:"1969 - 1976", FROM:"College - Mount St. Mary's", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Carter, George", ACTIVE:"1967 - 1967", FROM:"College - St. Bonaventure", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Carter, Howard", ACTIVE:"1983 - 1984", FROM:"College - Louisiana State", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Carter, John D. (Jake)", ACTIVE:"1949 - 1949", FROM:"College - Texas A&M-Commerce", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Carter, Maurice", ACTIVE:"2003 - 2003", FROM:"College - Louisiana State ''99", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"D'Antoni, Michael Andrew (Mike)", ACTIVE:"1973 - 1976", FROM:"College - Marshall", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Dahler, Edward Jr. (Ed)", ACTIVE:"1951 - 1951", FROM:"College - Duquesne", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Dailey, Quintin", ACTIVE:"1982 - 1991", FROM:"College - San Francisco", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"Dalembert, Samuel", ACTIVE:"ACTIVE", FROM:"College - Seton Hall", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Dallmar, Howard (Howie)", ACTIVE:"1946 - 1948", FROM:"College - Stanford; Pennsylvania", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Dampier, Erick", ACTIVE:"ACTIVE", FROM:"College - Mississippi State", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Dampier, Louie (Lou)", ACTIVE:"1976 - 1978", FROM:"College - Kentucky", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Dandridge, Robert L. Jr. (Bob)", ACTIVE:"1969 - 1981", FROM:"College - Norfolk State", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Daniels, Antonio", ACTIVE:"ACTIVE", FROM:"College - Bowling Green", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Daniels, Erik", ACTIVE:"2004 - 2004", FROM:"College - Kentucky", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Daniels, Lloyd", ACTIVE:"1992 - 1997", FROM:"College - Mount San Antonio Coll. CA (J.C.)", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Daniels, Marquis", ACTIVE:"ACTIVE", FROM:"College - Auburn", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"Daniels, Mel", ACTIVE:"1976 - 1976", FROM:"College - Burlington Co. Coll. NJ (J.C.); New Mexico", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Danilovic, Sasha", ACTIVE:"1995 - 1996", FROM:"College - Serbia", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Dantley, Adrian", ACTIVE:"1976 - 1990", FROM:"College - Notre Dame", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Darcey, Henry J. (Pete)", ACTIVE:"1952 - 1952", FROM:"College - Oklahoma State", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Darden, James W. (Jimmy)", ACTIVE:"1949 - 1949", FROM:"College - Wyoming; Denver", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Dare, Yinka", ACTIVE:"1994 - 1997", FROM:"College - George Washington", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Dark, Jesse L.", ACTIVE:"1974 - 1974", FROM:"College - Virginia Commonwealth", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Darrow, James K. (Jimmy)", ACTIVE:"1961 - 1961", FROM:"College - Bowling Green State", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Daugherty, Brad", ACTIVE:"1986 - 1993", FROM:"College - North Carolina", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"David, Kornel", ACTIVE:"1998 - 2000", FROM:"College - Budapest AEH", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Davidson, Jermareo", ACTIVE:"2007 - 2008", FROM:"College - Alabama", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Davies, Robert Edris (Bob, Harrisburg Houdini)", ACTIVE:"1948 - 1954", FROM:"College - Franklin & Marshall; Seton Hall", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Davis, Antonio", ACTIVE:"1993 - 2005", FROM:"College - Texas-El Paso", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Davis, Aubrey D.", ACTIVE:"1946 - 1946", FROM:"College - Oklahoma Baptist", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Davis, Baron", ACTIVE:"ACTIVE", FROM:"College - UCLA", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Davis, Ben", ACTIVE:"1996 - 1999", FROM:"College - Arizona ''96", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Davis, Brad", ACTIVE:"1977 - 1991", FROM:"College - Maryland", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Davis, Brian", ACTIVE:"1993 - 1993", FROM:"College - Duke", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Davis, Charles Lawrence (Charlie)", ACTIVE:"1971 - 1973", FROM:"College - Wake Forest", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"Davis, Charlie E.", ACTIVE:"1981 - 1989", FROM:"College - Vanderbilt", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Davis, Dale", ACTIVE:"1991 - 2006", FROM:"College - Clemson", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Davis, Damon William (Monti)", ACTIVE:"1980 - 1980", FROM:"College - Tennessee State", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Davis, Dwight E. (Double D)", ACTIVE:"1972 - 1976", FROM:"College - Houston", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Davis, Ed", ACTIVE:"ACTIVE", FROM:"College - North Carolina", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Davis, Edward J. (Mickey)", ACTIVE:"1972 - 1976", FROM:"College - Duquesne", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Davis, Emanual", ACTIVE:"1996 - 2002", FROM:"College - Delaware State ''91", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Davis, Glen", ACTIVE:"ACTIVE", FROM:"College - Louisiana State", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Davis, Harry A.", ACTIVE:"1978 - 1979", FROM:"College - Florida State", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Davis, Hubert", ACTIVE:"1992 - 2003", FROM:"College - North Carolina ''92", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Davis, James R. (Red)", ACTIVE:"1955 - 1955", FROM:"College - St. John's (N.Y.)", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Davis, James W. (Jim)", ACTIVE:"1967 - 1974", FROM:"College - Colorado", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Davis, Johnny", ACTIVE:"1976 - 1985", FROM:"College - Dayton", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Davis, Josh", ACTIVE:"2003 - 2005", FROM:"College - Wyoming", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Davis, Mark", ACTIVE:"1988 - 1988", FROM:"College - Old Dominion", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Davis, Mark", ACTIVE:"1995 - 1999", FROM:"College - Texas Tech", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Davis, Melvyn Jerome (Mel, Killer)", ACTIVE:"1973 - 1976", FROM:"College - St. John's (N.Y.)", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Davis, Michael", ACTIVE:"1982 - 1982", FROM:"College - Mercer Co. CC NJ; Maryland", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Davis, Michael A. (Mike, Crusher)", ACTIVE:"1969 - 1972", FROM:"College - Virginia Union", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Eackles, Ledell", ACTIVE:"1988 - 1997", FROM:"College - San Jacinto Coll. TX (J.C.); New Orleans", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Eakins, James Scott (Jim, Jimbo)", ACTIVE:"1976 - 1977", FROM:"College - Brigham Young", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Earl, Acie", ACTIVE:"1993 - 1996", FROM:"College - Iowa", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Earle, Edwin (Ed)", ACTIVE:"1953 - 1953", FROM:"College - Loyola (Chicago)", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Eaton, Mark", ACTIVE:"1982 - 1992", FROM:"College - Cypress Coll. CA (J.C.); UCLA", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Eaves, Jerry", ACTIVE:"1982 - 1986", FROM:"College - Louisville", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Ebanks, Devin", ACTIVE:"ACTIVE", FROM:"College - West Virginia", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Ebben, William Edward (Bill)", ACTIVE:"1957 - 1957", FROM:"College - Detroit", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Eberhard, Allen Dean (Al)", ACTIVE:"1974 - 1977", FROM:"College - Missouri", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Ebi, Ndudi", ACTIVE:"2003 - 2004", FROM:"High School - Westbury Christian HS (TX)", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Eddie, Patrick", ACTIVE:"1991 - 1991", FROM:"College - Arkansas State; Mississippi", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Eddleman, Thomas Dwight (Dike)", ACTIVE:"1949 - 1952", FROM:"College - Illinois", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Edelin, Kenton Scott (Kent)", ACTIVE:"1984 - 1984", FROM:"College - Virginia", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"Edmonson, Keith", ACTIVE:"1982 - 1983", FROM:"College - Purdue", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Edney, Tyus", ACTIVE:"1995 - 2000", FROM:"College - UCLA", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Edwards, Bill", ACTIVE:"1993 - 1993", FROM:"College - Wright State", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Edwards, Blue", ACTIVE:"1989 - 1998", FROM:"College - Louisburg; East Carolina", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Edwards, Corsley", ACTIVE:"2004 - 2004", FROM:"College - Central Connecticut State '02", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Edwards, Doug", ACTIVE:"1993 - 1995", FROM:"College - Florida State", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Edwards, Franklin", ACTIVE:"1981 - 1987", FROM:"College - Cleveland State", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Edwards, James", ACTIVE:"1977 - 1995", FROM:"College - Washington", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Edwards, Jay", ACTIVE:"1989 - 1989", FROM:"College - Indiana", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Edwards, John", ACTIVE:"2004 - 2005", FROM:"College - Kent State", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Edwards, Kevin", ACTIVE:"1988 - 2000", FROM:"College - Lakeland CC OH; DePaul", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Egan, John Francis (Johnny)", ACTIVE:"1961 - 1971", FROM:"College - Providence", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Eggleston, Lonnie J.", ACTIVE:"1948 - 1948", FROM:"College - Oklahoma State", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Ehlers, Edwin S. (Eddie, Bulbs)", ACTIVE:"1947 - 1948", FROM:"College - Purdue", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Ehlo, Craig", ACTIVE:"1983 - 1996", FROM:"College - Odessa Coll. TX (J.C.); Washington State", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Eichhorst, Richard A. (Dick)", ACTIVE:"1961 - 1961", FROM:"College - Southeast Missouri State", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Eisley, Howard", ACTIVE:"1994 - 2005", FROM:"College - Boston College", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Ekezie, Obinna", ACTIVE:"1999 - 2004", FROM:"College - Maryland", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"El-Amin, Khalid", ACTIVE:"2000 - 2000", FROM:"College - Connecticut ''01", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Eliason, Donald Carlton (Don)", ACTIVE:"1946 - 1946", FROM:"College - Hamline", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Elie, Mario", ACTIVE:"1990 - 2000", FROM:"College - American International", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Ellefson, E. Ray (Ray)", ACTIVE:"1948 - 1950", FROM:"College - Oklahoma State; Colorado; West Texas A&M", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Ellington, Wayne", ACTIVE:"ACTIVE", FROM:"College - North Carolina", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Elliott, Robert Alan (Bob)", ACTIVE:"1978 - 1980", FROM:"College - Arizona", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Elliott, Sean", ACTIVE:"1989 - 2000", FROM:"College - Arizona", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Ellis, Alexander (Boo)", ACTIVE:"1958 - 1959", FROM:"College - Niagara", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Ellis, Dale", ACTIVE:"1983 - 1999", FROM:"College - Tennessee", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Ellis, Harold", ACTIVE:"1993 - 1997", FROM:"College - Morehouse", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Ellis, Joe", ACTIVE:"1966 - 1973", FROM:"College - San Francisco", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Ellis, LaPhonso", ACTIVE:"1992 - 2002", FROM:"College - Notre Dame ''92", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Ellis, LeRon", ACTIVE:"1991 - 1995", FROM:"College - Kentucky; Syracuse", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Ellis, Leroy", ACTIVE:"1962 - 1975", FROM:"College - St. John's (N.Y.)", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Ellis, Maurice H. (Bo)", ACTIVE:"1977 - 1979", FROM:"College - Marquette", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Ellis, Monta", ACTIVE:"ACTIVE", FROM:"High School - Lanier HS (Jackson, MS)", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Ellison, Pervis", ACTIVE:"1989 - 2000", FROM:"College - Louisville", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Elmore, Len", ACTIVE:"1976 - 1983", FROM:"College - Maryland", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Elson, Francisco", ACTIVE:"ACTIVE", FROM:"College - California", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Fabel, Joseph (Joe)", ACTIVE:"1946 - 1946", FROM:"College - Pittsburgh", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Fairchild, John Russell", ACTIVE:"1965 - 1965", FROM:"College - Palomar Coll. CA (J.C.); Brigham Young", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Farbman, Philip M. (Phil)", ACTIVE:"1948 - 1948", FROM:"College - CCNY; Brooklyn College", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Farley, Richard L. (Dick)", ACTIVE:"1954 - 1958", FROM:"College - Indiana", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Farmar, Jordan", ACTIVE:"ACTIVE", FROM:"College - UCLA", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Farmer, Desmon", ACTIVE:"2006 - 2008", FROM:"College - USC", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Farmer, Don Michael (Mike)", ACTIVE:"1958 - 1965", FROM:"College - San Francisco", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Farmer, Jim", ACTIVE:"1987 - 1993", FROM:"College - Alabama", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Farmer, Tony", ACTIVE:"1997 - 1999", FROM:"College - Nebraska", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Faught, Robert Edward (Bob)", ACTIVE:"1946 - 1946", FROM:"College - Notre Dame", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Favors, Derrick", ACTIVE:"ACTIVE", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Fazekas, Nick", ACTIVE:"2007 - 2007", FROM:"College - Nevada-Reno", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Fedor, Samuel David (Dave)", ACTIVE:"1962 - 1962", FROM:"College - Florida State", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Feerick, Robert Joseph (Bob)", ACTIVE:"1946 - 1949", FROM:"College - Santa Clara", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Feher, Raymond G. (Butch)", ACTIVE:"1976 - 1976", FROM:"College - Vanderbilt", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Feick, Jamie", ACTIVE:"1996 - 2000", FROM:"College - Michigan State ''96", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Feiereisel, Ronald E. (Ron)", ACTIVE:"1955 - 1955", FROM:"College - DePaul", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Feigenbaum, George", ACTIVE:"1949 - 1952", FROM:"College - Long Island University; Kentucky", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"Feitl, Dave", ACTIVE:"1986 - 1991", FROM:"College - Texas-El Paso", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Felix, Noel", ACTIVE:"2005 - 2005", FROM:"College - Fresno State", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Felix, Ray", ACTIVE:"1953 - 1961", FROM:"College - Long Island University", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Felton, Raymond", ACTIVE:"ACTIVE", FROM:"College - North Carolina", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Fendley, John Phillip (Jake)", ACTIVE:"1951 - 1952", FROM:"College - Northwestern", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Fenley, William Warren (Bill)", ACTIVE:"1946 - 1946", FROM:"College - Manhattan", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Ferguson, Desmond", ACTIVE:"2003 - 2003", FROM:"College - Detroit", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Fernandez, Rudy", ACTIVE:"ACTIVE", FROM:"From - Palma de Mallorca, Spain", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Fernsten, Eric", ACTIVE:"1975 - 1983", FROM:"College - San Francisco", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Ferrari, Albert R. (Al)", ACTIVE:"1955 - 1962", FROM:"College - Michigan State", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Ferreira, Rolando", ACTIVE:"1988 - 1988", FROM:"College - Houston", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Ferrell, Duane", ACTIVE:"1988 - 1998", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Ferrin, C. Arnold Jr. (Arnie)", ACTIVE:"1948 - 1950", FROM:"College - Utah", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Ferry, Danny", ACTIVE:"1990 - 2002", FROM:"College - Duke ''89", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Ferry, Robert Dean (Bob)", ACTIVE:"1959 - 1968", FROM:"College - St. Louis", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Fesenko, Kyrylo", ACTIVE:"ACTIVE", FROM:"From - Dnepropetrovsk, Ukraine", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Fields, Kenny", ACTIVE:"1984 - 1987", FROM:"College - UCLA", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Fields, Landry", ACTIVE:"ACTIVE", FROM:"College - Stanford", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Filipek, Ronald Stanley (Ron)", ACTIVE:"1967 - 1967", FROM:"College - Tennessee Tech", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Fillmore, Gregory Paul (Greg)", ACTIVE:"1970 - 1971", FROM:"College - Iowa Central CC; Cheyney", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Finkel, Henry J. (Hank)", ACTIVE:"1966 - 1974", FROM:"College - St. Peter's; Dayton", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Finley, Michael", ACTIVE:"2007 - 2009", FROM:"College - Wisconsin", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Finn, Daniel Lawrence Jr. (Danny)", ACTIVE:"1952 - 1954", FROM:"College - St. John's (N.Y.)", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Fish, Matt", ACTIVE:"1994 - 1996", FROM:"College - Wilmington", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Fisher, Derek", ACTIVE:"ACTIVE", FROM:"College - Arkansas-Little Rock", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Fitch, Gerald", ACTIVE:"2005 - 2005", FROM:"College - Kentucky", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Fitzgerald, Richard (Dick)", ACTIVE:"1946 - 1947", FROM:"College - Seton Hall", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Fitzgerald, Robert (Bob)", ACTIVE:"1946 - 1948", FROM:"College - Fordham", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Fizer, Marcus", ACTIVE:"2000 - 2005", FROM:"College - Iowa State", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Fleishman, Jerome (Jerry)", ACTIVE:"1946 - 1952", FROM:"College - N.Y.U.; Long Island University", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Fleming, Albert Jr. (Al)", ACTIVE:"1977 - 1977", FROM:"College - Arizona", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Fleming, Edward R. (Ed)", ACTIVE:"1955 - 1959", FROM:"College - Niagara", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Gabor, William A. (Billy, The Human Projectile)", ACTIVE:"1949 - 1954", FROM:"College - Syracuse", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Gadzuric, Dan", ACTIVE:"ACTIVE", FROM:"College - UCLA", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Gai, Deng", ACTIVE:"2005 - 2005", FROM:"College - Fairfield", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Gainer, Elmer R.", ACTIVE:"1947 - 1949", FROM:"College - DePaul", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Gaines, Corey", ACTIVE:"1988 - 1994", FROM:"College - UCLA; Loyola Marymount", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Gaines, Reece", ACTIVE:"2003 - 2005", FROM:"College - Louisville", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Gaines, Sundiata", ACTIVE:"ACTIVE", FROM:"College - Georgia", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Gale, Mike", ACTIVE:"1976 - 1981", FROM:"College - Elizabeth City State", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"Gallagher, Chad", ACTIVE:"1993 - 1993", FROM:"College - Creighton", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Gallatin, Harry", ACTIVE:"1948 - 1957", FROM:"College - Northeast Missouri State", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Gallinari, Danilo", ACTIVE:"ACTIVE", FROM:"From - Milan, Italy", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Gambee, Dave", ACTIVE:"1958 - 1969", FROM:"College - Oregon State", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Gamble, Kevin", ACTIVE:"1987 - 1996", FROM:"College - Lincoln Trail IL (J.C.); Iowa", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Gantt, Robert M. Jr. (Bob)", ACTIVE:"1946 - 1946", FROM:"College - Duke", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Garbajosa, Jorge", ACTIVE:"2007 - 2007", FROM:"From - Spain", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Garces, Ruben", ACTIVE:"2000 - 2000", FROM:"College - Providence", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Garcia, Alex", ACTIVE:"2003 - 2004", FROM:"From - Brazil", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Garcia, Francisco", ACTIVE:"ACTIVE", FROM:"College - Louisville", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Gardner, Earl Baker (Red)", ACTIVE:"1948 - 1948", FROM:"College - Wabash; DePauw", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Gardner, Thomas", ACTIVE:"2007 - 2008", FROM:"College - Missouri", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Gardner, Vern B.", ACTIVE:"1949 - 1951", FROM:"College - Wyoming; Utah", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Garfinkel, Jack (Dutch)", ACTIVE:"1946 - 1948", FROM:"College - St. John's (N.Y.)", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Garland, Gary J.", ACTIVE:"1979 - 1979", FROM:"College - DePaul", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Garland, Winston", ACTIVE:"1987 - 1994", FROM:"College - Southeastern CC IA; Southwest Missouri State", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Garmaker, Richard Eugene (Dick)", ACTIVE:"1955 - 1960", FROM:"College - Hibbing CC MN; Minnesota", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Garner, Chris", ACTIVE:"1997 - 2000", FROM:"College - Memphis", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Garnett, Bill", ACTIVE:"1982 - 1985", FROM:"College - Wyoming", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Garnett, Kevin", ACTIVE:"ACTIVE", FROM:"High School - Farragut Academy HS (IL)", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Garnett, Marlon", ACTIVE:"1998 - 1998", FROM:"College - Santa Clara", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Garrett, Calvin", ACTIVE:"1980 - 1983", FROM:"College - Austin Peay State; Oral Roberts", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Garrett, Dean", ACTIVE:"1996 - 2001", FROM:"College - Indiana", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Garrett, Eldo (Dick)", ACTIVE:"1969 - 1973", FROM:"College - Southern Illinois", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Garrett, Rowland G.", ACTIVE:"1972 - 1976", FROM:"College - Florida State", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Garrick, Tom", ACTIVE:"1988 - 1991", FROM:"College - Rhode Island", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Garris, John", ACTIVE:"1983 - 1983", FROM:"College - Michigan; Boston College", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Garris, Kiwane", ACTIVE:"1997 - 1999", FROM:"College - Illinois", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Garrity, Pat", ACTIVE:"2007 - 2007", FROM:"College - Notre Dame", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Garvin, James D. (Jim)", ACTIVE:"1973 - 1973", FROM:"College - Boston U.", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Gasol, Marc", ACTIVE:"ACTIVE", FROM:"From - Barcelona, Spain", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Gasol, Pau", ACTIVE:"ACTIVE", FROM:"From - Barcelona, Spain", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Gates, Ben Frank (Frank, Needle)", ACTIVE:"1949 - 1949", FROM:"College - Sam Houston State", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Gatling, Chris", ACTIVE:"1991 - 2001", FROM:"College - Pittsburgh; Old Dominion", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Gattison, Kenny", ACTIVE:"1986 - 1995", FROM:"College - Old Dominion", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Gay, Rudy", ACTIVE:"ACTIVE", FROM:"College - Connecticut", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Gayda, Edward C. (Ed)", ACTIVE:"1950 - 1950", FROM:"College - Washington State", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Gaze, Andrew", ACTIVE:"1993 - 1998", FROM:"College - Seton Hall", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Geary, Reggie", ACTIVE:"1996 - 1997", FROM:"College - Arizona", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Gee, Alonzo", ACTIVE:"ACTIVE", FROM:"College - Alabama", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Geiger, Matt", ACTIVE:"1992 - 2001", FROM:"College - Auburn; Georgia Tech", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Gelabale, Mickael", ACTIVE:"2007 - 2007", FROM:"From - France", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Hackett, Rudolph (Rudy)", ACTIVE:"1976 - 1976", FROM:"College - Syracuse", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Haddadi, Hamed", ACTIVE:"ACTIVE", FROM:"From - Ahvaz, Iran", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Haffner, Scott", ACTIVE:"1989 - 1990", FROM:"College - Illinois; Evansville", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Hagan, Cliff", ACTIVE:"1956 - 1965", FROM:"College - Kentucky", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Hagan, Glenn Kassabin", ACTIVE:"1981 - 1981", FROM:"College - St. Bonaventure", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Hahn, Robert B. (Bob)", ACTIVE:"1949 - 1949", FROM:"College - North Carolina State", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Hairston, Alan Leroy (Al)", ACTIVE:"1968 - 1969", FROM:"College - St. Clair Co. CC MI; Bowling Green State", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Hairston, Happy", ACTIVE:"1964 - 1974", FROM:"College - N.Y.U.", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"Hairston, Lindsay (Spider)", ACTIVE:"1975 - 1975", FROM:"College - Michigan State", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Hairston, Malik", ACTIVE:"2008 - 2009", FROM:"College - Oregon", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Haislip, Marcus", ACTIVE:"2002 - 2009", FROM:"College - Tennessee", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Halbert, Charles P. (Chuck)", ACTIVE:"1946 - 1950", FROM:"College - West Texas A&M", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Halbrook, Harvey Wade (Swede)", ACTIVE:"1960 - 1961", FROM:"College - Oregon State", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Hale, William Bruce (Bruce)", ACTIVE:"1948 - 1950", FROM:"College - Santa Clara", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Haley, Jack", ACTIVE:"1988 - 1997", FROM:"College - Golden West Coll. CA (J.C.); UCLA", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Halimon, Shaler Jr.", ACTIVE:"1968 - 1971", FROM:"College - Imperial Valley Coll. CA (J.C.); Utah State", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Hall, Mike", ACTIVE:"2006 - 2006", FROM:"College - George Washington", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Halliburton, Jeffrey (Jeff)", ACTIVE:"1971 - 1972", FROM:"College - San Jacinto Coll. TX (J.C.); Drake", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Ham, Darvin", ACTIVE:"1996 - 2004", FROM:"College - Texas Tech", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Hamer, Steve", ACTIVE:"1996 - 1996", FROM:"College - Tennessee", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Hamilton, Dale B.", ACTIVE:"1949 - 1949", FROM:"College - Franklin (Ind.)", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Hamilton, Dennis Eugene", ACTIVE:"1967 - 1968", FROM:"College - Arizona State", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Hamilton, Ralph Albert (Ham)", ACTIVE:"1948 - 1948", FROM:"College - Indiana", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Hamilton, Richard", ACTIVE:"ACTIVE", FROM:"College - Connecticut", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Hamilton, Roy Lee", ACTIVE:"1979 - 1980", FROM:"College - UCLA", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Hamilton, Steve Absher", ACTIVE:"1958 - 1959", FROM:"College - Purdue; Morehead State", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"Hamilton, Tang", ACTIVE:"2001 - 2001", FROM:"College - Mississippi State ''01", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Hamilton, Thomas", ACTIVE:"1995 - 1999", FROM:"College - No College", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Hamilton, Zendon", ACTIVE:"2000 - 2005", FROM:"College - St. John's", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Hammink, Geert", ACTIVE:"1993 - 1995", FROM:"College - Louisiana State", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Hammonds, Tom", ACTIVE:"1989 - 2000", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Hancock, Darrin", ACTIVE:"1994 - 1996", FROM:"College - Garden City CC KS; Kansas", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Handlogten, Ben", ACTIVE:"2003 - 2004", FROM:"College - Western Michigan", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Hankins, Cecil O.", ACTIVE:"1946 - 1947", FROM:"College - Oklahoma State", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Hankinson, Phil", ACTIVE:"1973 - 1974", FROM:"College - Pennsylvania", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Hannum, Alexander Murray (Alex)", ACTIVE:"1949 - 1956", FROM:"College - USC", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Hanrahan, Donald (Don)", ACTIVE:"1952 - 1952", FROM:"College - Loyola (Chicago)", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Hans, Rollen F. (Rolly)", ACTIVE:"1953 - 1954", FROM:"College - Los Angeles City Coll. CA (J.C.); Long Island University", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Hansbrough, Tyler", ACTIVE:"ACTIVE", FROM:"College - North Carolina", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Hansen, Bob", ACTIVE:"1983 - 1991", FROM:"College - Iowa", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Hansen, Glenn R.", ACTIVE:"1975 - 1977", FROM:"College - Utah State; Louisiana State", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Hansen, Lars", ACTIVE:"1978 - 1978", FROM:"College - Washington", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Hansen, Travis", ACTIVE:"2003 - 2003", FROM:"College - Brigham Young", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Hanson, Reggie", ACTIVE:"1997 - 1997", FROM:"College - Kentucky", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Hanzlik, Bill", ACTIVE:"1980 - 1989", FROM:"College - Notre Dame", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Harangody, Luke", ACTIVE:"ACTIVE", FROM:"College - Notre Dame", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Hardaway, Anfernee", ACTIVE:"2007 - 2007", FROM:"College - Memphis", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"Hardaway, Tim", ACTIVE:"1989 - 2002", FROM:"College - Texas-El Paso ''89", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Harden, James", ACTIVE:"ACTIVE", FROM:"College - Arizona State", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Harding, Reginald (Reggie)", ACTIVE:"1963 - 1967", FROM:"College - No College", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Iavaroni, Marc", ACTIVE:"1982 - 1988", FROM:"College - Virginia", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Ibaka, Serge", ACTIVE:"ACTIVE", FROM:"From - Brazzaville, Republic of Congo", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Iguodala, Andre", ACTIVE:"ACTIVE", FROM:"College - Arizona", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Ilgauskas, Zydrunas", ACTIVE:"ACTIVE", FROM:"From - Kaunas, Lithuania", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Ilic, Mile", ACTIVE:"2006 - 2006", FROM:"From - Serbia & Montenegro", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Ilunga-Mbenga, Didier", ACTIVE:"ACTIVE", FROM:"From - Kinshasa, DRC", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Ilyasova, Ersan", ACTIVE:"ACTIVE", FROM:"From - Eskisehir, Turkey", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Imhoff, Darrall Tucker (Big D)", ACTIVE:"1960 - 1971", FROM:"College - California", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Ingelsby, Tom", ACTIVE:"1973 - 1973", FROM:"College - Villanova", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Ingram, Joel McCoy (McCoy)", ACTIVE:"1957 - 1957", FROM:"College - Jackson State", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Irvin, Byron", ACTIVE:"1989 - 1992", FROM:"College - Arkansas; Missouri", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Issel, Dan", ACTIVE:"1976 - 1984", FROM:"College - Kentucky", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Iuzzolino, Mike", ACTIVE:"1991 - 1992", FROM:"College - Penn State; St. Francis (PA)", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Iverson, Allen", ACTIVE:"2007 - 2009", FROM:"College - Georgetown", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Ivey, Royal", ACTIVE:"ACTIVE", FROM:"College - Texas", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Jack, Jarrett", ACTIVE:"ACTIVE", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Jackson, Alvin (Al)", ACTIVE:"1967 - 1967", FROM:"College - Wilberforce", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Jackson, Anthony Eugene (Tony)", ACTIVE:"1980 - 1980", FROM:"College - Florida State", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Jackson, Bobby", ACTIVE:"2007 - 2008", FROM:"College - Minnesota", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Jackson, Cedric", ACTIVE:"2009 - 2009", FROM:"College - Cleveland State", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Jackson, Darnell", ACTIVE:"ACTIVE", FROM:"College - Kansas", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Jackson, Gregory (Greg)", ACTIVE:"1974 - 1974", FROM:"College - Guilford", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Jackson, Jaren", ACTIVE:"1989 - 2001", FROM:"College - Georgetown", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Jackson, Jermaine", ACTIVE:"1999 - 2005", FROM:"College - Detroit", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Jackson, Jim", ACTIVE:"1992 - 2005", FROM:"College - Ohio State", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Jackson, Lucious B. (Luke)", ACTIVE:"1964 - 1971", FROM:"College - Quincy; Texas Southern; Texas-Pan American", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Jackson, Luke", ACTIVE:"2007 - 2007", FROM:"College - Oregon", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Jackson, Marc", ACTIVE:"2000 - 2006", FROM:"College - Temple", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Jackson, Mark", ACTIVE:"1987 - 2003", FROM:"College - St. John''s (N.Y.) '87", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Jackson, Michael", ACTIVE:"1987 - 1989", FROM:"College - Georgetown", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Jackson, Myron", ACTIVE:"1986 - 1986", FROM:"College - Arkansas-Little Rock", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Jackson, Philip D. (Phil, Action)", ACTIVE:"1967 - 1979", FROM:"College - North Dakota", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Jackson, Ralph A. III", ACTIVE:"1984 - 1984", FROM:"College - UCLA", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Jackson, Randell", ACTIVE:"1998 - 1999", FROM:"College - Florida State", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Jackson, Stanley", ACTIVE:"1993 - 1993", FROM:"College - Alabama-Birmingham", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Jackson, Stephen", ACTIVE:"ACTIVE", FROM:"High School - Oak Hill Academy (Mouth of Wilson, VA)", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Jackson, Tracy", ACTIVE:"1981 - 1983", FROM:"College - Notre Dame", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Jackson, Wardell", ACTIVE:"1974 - 1974", FROM:"College - Ohio State", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Jacobs, Winfred O. (Fred)", ACTIVE:"1946 - 1946", FROM:"College - Denver", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Jacobsen, Casey", ACTIVE:"2007 - 2007", FROM:"College - Stanford", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Jacobson, Sam", ACTIVE:"1998 - 2000", FROM:"College - Minnesota", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Jamerson, Dave", ACTIVE:"1990 - 1993", FROM:"College - Ohio U.", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"James, Aaron (A.J.)", ACTIVE:"1974 - 1978", FROM:"College - Grambling State", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"James, Damion", ACTIVE:"ACTIVE", FROM:"College - Texas", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"James, Harold Gene (Gene, Goose)", ACTIVE:"1948 - 1950", FROM:"College - Marshall", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"James, Henry", ACTIVE:"1990 - 1997", FROM:"College - South Plains Coll. TX (J.C.); St. Mary's (Tex.)", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"James, Jerome", ACTIVE:"2007 - 2008", FROM:"College - Florida A&M", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"James, LeBron", ACTIVE:"ACTIVE", FROM:"High School - St. Vincent-St. Mary HS (OH)", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"James, Mike", ACTIVE:"2007 - 2009", FROM:"College - Duquesne", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"James, Tim", ACTIVE:"1999 - 2001", FROM:"College - Miami (Fla.) ''99", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Jamison, Antawn", ACTIVE:"ACTIVE", FROM:"College - North Carolina", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Jamison, Harold", ACTIVE:"1999 - 2001", FROM:"College - Clemson ''99", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Janisch, John Albert", ACTIVE:"1946 - 1947", FROM:"College - Valparaiso", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Janotta, Howard (Howie)", ACTIVE:"1949 - 1949", FROM:"College - Seton Hall", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Jaric, Marko", ACTIVE:"2007 - 2008", FROM:"From - Belgrade, Serbia", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Jaros, Anthony Joseph (Tony)", ACTIVE:"1946 - 1950", FROM:"College - Minnesota", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Jasikevicius, Sarunas", ACTIVE:"2005 - 2006", FROM:"College - Maryland", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Jawai, Nathan", ACTIVE:"2008 - 2009", FROM:"From - Australia", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Jeannette, Harry Edward (Buddy)", ACTIVE:"1947 - 1949", FROM:"College - Washington & Jefferson", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Jeelani, Abdul Qadir (formerly Gary Cole)", ACTIVE:"1979 - 1980", FROM:"College - Wis.-Parkside", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Jefferies, Chris", ACTIVE:"2002 - 2003", FROM:"College - Fresno State ''03", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Jeffers, Othyus", ACTIVE:"ACTIVE", FROM:"College - Robert Morris (Ill.)", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Jefferson, Al", ACTIVE:"ACTIVE", FROM:"High School - Prentiss HS (MS)", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Jefferson, Dontell", ACTIVE:"2008 - 2008", FROM:"College - Arkansas", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Jefferson, Richard", ACTIVE:"ACTIVE", FROM:"College - Arizona", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Kachan, Edwin John (Whitey)", ACTIVE:"1948 - 1948", FROM:"College - DePaul", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Kaftan, George A. (The Golden Greek)", ACTIVE:"1948 - 1952", FROM:"College - Holy Cross", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Kalafat, Edward L. (Ed)", ACTIVE:"1954 - 1956", FROM:"College - Minnesota", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Kaman, Chris", ACTIVE:"ACTIVE", FROM:"College - Central Michigan", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"Kaplowitz, Ralph (Kappy)", ACTIVE:"1946 - 1947", FROM:"College - N.Y.U.", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Kapono, Jason", ACTIVE:"ACTIVE", FROM:"College - UCLA", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Kappen, Anthony George (Tony)", ACTIVE:"1946 - 1946", FROM:"College - No College", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Karl, Coby", ACTIVE:"2007 - 2009", FROM:"College - Boise State", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Karl, George Matthew", ACTIVE:"1976 - 1977", FROM:"College - North Carolina", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Kasid, Edward (Ed)", ACTIVE:"1946 - 1946", FROM:"College - No College", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Kasun, Mario", ACTIVE:"2004 - 2005", FROM:"From - Croatia", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Katkaveck, Leo Frank", ACTIVE:"1948 - 1949", FROM:"College - North Carolina State", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Kauffman, Robert (Bob, Horse)", ACTIVE:"1968 - 1974", FROM:"College - Guilford", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Kautz, Wilbert (Wibs)", ACTIVE:"1946 - 1946", FROM:"College - Loyola (Chicago)", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Kea, Clarence Leroy", ACTIVE:"1980 - 1981", FROM:"College - Lamar", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Kearns, Michael Joseph", ACTIVE:"1954 - 1954", FROM:"College - Princeton", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"Kearns, Thomas Francis Jr. (Tommy)", ACTIVE:"1958 - 1958", FROM:"College - North Carolina", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Keefe, Adam", ACTIVE:"1992 - 2000", FROM:"College - Stanford", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Keeling, Harold A.", ACTIVE:"1985 - 1985", FROM:"College - Santa Clara", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Keller, Kenneth W. (Ken)", ACTIVE:"1946 - 1946", FROM:"College - Vermont; St. John's (N.Y.)", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Kelley, Rich", ACTIVE:"1975 - 1985", FROM:"College - Stanford", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Kellogg, Clark", ACTIVE:"1982 - 1986", FROM:"College - Ohio State", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Kelly, Gerard Allan (Jerry)", ACTIVE:"1946 - 1947", FROM:"College - Marshall", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Kelly, Thomas Edward (Tom)", ACTIVE:"1948 - 1948", FROM:"College - N.Y.U.", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Kelser, Greg", ACTIVE:"1979 - 1984", FROM:"College - Michigan State", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Kelso, Ben", ACTIVE:"1973 - 1973", FROM:"College - Central Michigan", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Kemp, Shawn", ACTIVE:"1989 - 2002", FROM:"High School - Concord HS (IN) ''87", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Kempton, Tim", ACTIVE:"1986 - 1997", FROM:"College - Notre Dame", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Kendrick, Frank Edward", ACTIVE:"1974 - 1974", FROM:"College - Purdue", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Kennedy, Eugene (Goo)", ACTIVE:"1976 - 1976", FROM:"College - Texas Christian", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Kennedy, Joseph A. (Joe)", ACTIVE:"1968 - 1969", FROM:"College - Duke", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Kennedy, William F. (Pickles)", ACTIVE:"1960 - 1960", FROM:"College - Temple", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Kenon, Larry", ACTIVE:"1976 - 1982", FROM:"College - Amarillo Coll. TX (J.C.); Memphis", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Kenville, William McGill (Billy, The Kid)", ACTIVE:"1953 - 1959", FROM:"College - St. Bonaventure", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Kerner, Jonathan", ACTIVE:"1998 - 1998", FROM:"College - East Carolina ''97", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Kerr, Johnny", ACTIVE:"1954 - 1965", FROM:"College - Illinois", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Kerr, Steve", ACTIVE:"1988 - 2002", FROM:"College - Arizona ''88", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Kerris, John E. (Jack)", ACTIVE:"1949 - 1952", FROM:"College - Loyola (Chicago)", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Kersey, Jerome", ACTIVE:"1984 - 2000", FROM:"College - Longwood", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Kessler, Alec", ACTIVE:"1990 - 1993", FROM:"College - Georgia", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Ketner, Lari", ACTIVE:"1999 - 2000", FROM:"College - Massachusetts", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Keys, Randolph", ACTIVE:"1988 - 1995", FROM:"College - Southern Mississippi", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Khryapa, Viktor", ACTIVE:"2007 - 2007", FROM:"From - Russia", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Kidd, Jason", ACTIVE:"ACTIVE", FROM:"College - California", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Kidd, Warren", ACTIVE:"1993 - 1993", FROM:"College - Middle Tennessee State", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Kiffin, Irvin A. Jr.", ACTIVE:"1979 - 1979", FROM:"College - Virginia Union; Oklahoma Baptist", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Kiley, John F. (Jack)", ACTIVE:"1951 - 1952", FROM:"College - Syracuse", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Killum, Earnest (Ernie)", ACTIVE:"1970 - 1970", FROM:"College - Stetson", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Kilpatrick, Carl", ACTIVE:"1979 - 1979", FROM:"College - Kilgore Coll. TX (J.C.); Louisiana-Monroe", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Kimball, Toby", ACTIVE:"1966 - 1974", FROM:"College - Connecticut", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Lacey, Sam", ACTIVE:"1970 - 1982", FROM:"College - New Mexico State", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"LaCour, Fred", ACTIVE:"1960 - 1962", FROM:"College - San Francisco", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Laettner, Christian", ACTIVE:"1992 - 2004", FROM:"College - Duke", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Lafayette, Oliver", ACTIVE:"2009 - 2009", FROM:"College - Houston", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"LaFrentz, Raef", ACTIVE:"2007 - 2007", FROM:"College - Kansas", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"LaGarde, Thomas Joseph (Tom)", ACTIVE:"1977 - 1984", FROM:"College - North Carolina", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Laimbeer, Bill", ACTIVE:"1980 - 1993", FROM:"College - Owens CC OH; Notre Dame", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Lalich, Peter T. (Pete)", ACTIVE:"1946 - 1946", FROM:"College - Ohio U.", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Lamar, Dwight (Bo)", ACTIVE:"1976 - 1976", FROM:"College - Louisiana-Lafayette", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Lambert, John Edward", ACTIVE:"1975 - 1981", FROM:"College - USC", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Lamp, Jeff", ACTIVE:"1981 - 1988", FROM:"College - Virginia", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Lampe, Maciej", ACTIVE:"2003 - 2005", FROM:"From - Poland", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Lampley, Jimmy", ACTIVE:"1986 - 1986", FROM:"College - Vanderbilt; Arkansas-Little Rock", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Lampley, Sean", ACTIVE:"2002 - 2003", FROM:"College - California", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"Landry, Carl", ACTIVE:"ACTIVE", FROM:"College - Purdue", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Landry, Marcus", ACTIVE:"2009 - 2009", FROM:"College - Wisconsin", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Landsberger, Mark", ACTIVE:"1977 - 1983", FROM:"College - Allan Hancock Coll. CA (J.C.); Minnesota; Arizona State", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Lane, Jerome", ACTIVE:"1988 - 1992", FROM:"College - Pittsburgh", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Lang, Andrew", ACTIVE:"1988 - 1999", FROM:"College - Arkansas", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Lang, Antonio", ACTIVE:"1994 - 1999", FROM:"College - Duke", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Lang, James", ACTIVE:"2006 - 2006", FROM:"High School - Central Park Christian HS (AL)", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Langdon, Trajan", ACTIVE:"1999 - 2001", FROM:"College - Duke", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Langford, Keith", ACTIVE:"2007 - 2007", FROM:"College - Kansas", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Langhi, Dan", ACTIVE:"2000 - 2003", FROM:"College - Vanderbilt ''00", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Lanier, Bob", ACTIVE:"1970 - 1983", FROM:"College - St. Bonaventure", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Lantz, Stuart Burrell (Stu)", ACTIVE:"1968 - 1975", FROM:"College - Nebraska", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Larese, York Bruno", ACTIVE:"1961 - 1961", FROM:"College - North Carolina", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"LaRue, Rusty", ACTIVE:"1997 - 2003", FROM:"College - Wake Forest", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"LaRusso, Rudolph A. (Rudy)", ACTIVE:"1959 - 1968", FROM:"College - Dartmouth", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Laskowski, John", ACTIVE:"1975 - 1976", FROM:"College - Indiana", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Lasme, Stephane", ACTIVE:"2007 - 2007", FROM:"College - Massachusetts", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Lattin, David (Dave, Big Daddy)", ACTIVE:"1967 - 1968", FROM:"College - Texas-El Paso", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Lauderdale, Priest", ACTIVE:"1996 - 1997", FROM:"College - Central State (Ohio)", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Laurel, Richard", ACTIVE:"1977 - 1977", FROM:"College - Hofstra", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Lautenbach, Walter Henry (Walt)", ACTIVE:"1949 - 1949", FROM:"College - Wisconsin", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Lavelli, Anthony (Tony)", ACTIVE:"1949 - 1950", FROM:"College - Yale", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Lavoy, Robert William (Bob)", ACTIVE:"1950 - 1953", FROM:"College - Illinois; Western Kentucky", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Law, Acie", ACTIVE:"ACTIVE", FROM:"College - Texas A&M", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Lawal, Gani", ACTIVE:"ACTIVE", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Lawrence, Edmund (Ed)", ACTIVE:"1980 - 1980", FROM:"College - McNeese State", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Lawson, Jason", ACTIVE:"1997 - 1997", FROM:"College - Villanova ''97", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Lawson, Ty", ACTIVE:"ACTIVE", FROM:"College - North Carolina", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Layton, Dennis (Mo)", ACTIVE:"1971 - 1977", FROM:"College - Phoenix Coll. AZ (J.C.); USC", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Leaks, Emanuel (Manny)", ACTIVE:"1972 - 1973", FROM:"College - Niagara", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Lear, Harold C. Jr. (Hal, King)", ACTIVE:"1956 - 1956", FROM:"College - Temple", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Leavell, Allen", ACTIVE:"1979 - 1988", FROM:"College - Oklahoma City", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Lebo, Jeff", ACTIVE:"1989 - 1989", FROM:"College - North Carolina", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Leckner, Eric", ACTIVE:"1988 - 1996", FROM:"College - Wyoming", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Lee, Alfred (Butch)", ACTIVE:"1978 - 1979", FROM:"College - Marquette", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Lee, Clyde", ACTIVE:"1966 - 1975", FROM:"College - Vanderbilt", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Macaluso, Michael Emelius (Mike)", ACTIVE:"1973 - 1973", FROM:"College - Canisius", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Macauley, Ed", ACTIVE:"1949 - 1958", FROM:"College - St. Louis", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"MacCulloch, Todd", ACTIVE:"1999 - 2002", FROM:"College - Washington ''99", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"MacGilvray, Ronald (Ronnie)", ACTIVE:"1954 - 1954", FROM:"College - St. John's (N.Y.)", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Macijauskas, Arvydas", ACTIVE:"2005 - 2005", FROM:"From - Lithuania", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Mack, Oliver (Ollie)", ACTIVE:"1979 - 1981", FROM:"College - San Jacinto Coll. TX (J.C.); East Carolina", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Mack, Sam", ACTIVE:"1992 - 2001", FROM:"College - Iowa State; Arizona State; Tyler JC TX; Houston", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"Mackey, Malcolm", ACTIVE:"1993 - 1993", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"Macklin, Rudy", ACTIVE:"1981 - 1983", FROM:"College - Louisiana State", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Macknowski, John Andrew (Johnny, Whitey)", ACTIVE:"1949 - 1950", FROM:"College - Seton Hall", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"MacLean, Don", ACTIVE:"1992 - 2000", FROM:"College - UCLA", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Macon, Mark", ACTIVE:"1991 - 1998", FROM:"College - Temple", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Macy, Kyle", ACTIVE:"1980 - 1986", FROM:"College - Purdue; Kentucky", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Maddox, Jack C.", ACTIVE:"1948 - 1948", FROM:"College - West Texas A&M", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Maddox, Tito", ACTIVE:"2002 - 2002", FROM:"College - Fresno State ''04", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Madkins, Gerald", ACTIVE:"1993 - 1997", FROM:"College - UCLA", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Madsen, Mark", ACTIVE:"2007 - 2008", FROM:"College - Stanford", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Mager, Norman Clifford (Norm)", ACTIVE:"1950 - 1950", FROM:"College - St. John's (N.Y.); CCNY", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Maggette, Corey", ACTIVE:"ACTIVE", FROM:"College - Duke", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Magley, Dave", ACTIVE:"1982 - 1982", FROM:"College - Kansas", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Magloire, Jamaal", ACTIVE:"ACTIVE", FROM:"College - Kentucky", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Mahinmi, Ian", ACTIVE:"ACTIVE", FROM:"From - Rouen, France", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Mahnken, John E. (Long John; Stretch)", ACTIVE:"1946 - 1952", FROM:"College - Georgetown", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Mahoney, Francis H. (Mo)", ACTIVE:"1952 - 1953", FROM:"College - Brown", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Mahorn, Rick", ACTIVE:"1980 - 1998", FROM:"College - Hampton", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Majerle, Dan", ACTIVE:"1988 - 2001", FROM:"College - Central Michigan", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Major, Renaldo", ACTIVE:"2006 - 2006", FROM:"College - Fresno State", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Malamed, Lionel", ACTIVE:"1948 - 1948", FROM:"College - CCNY", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Malone, Jeff", ACTIVE:"1983 - 1995", FROM:"College - Mississippi State", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Malone, Karl", ACTIVE:"1985 - 2003", FROM:"College - Louisiana Tech ''86", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Malone, Moses", ACTIVE:"1976 - 1994", FROM:"College - No College", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Maloney, Matt", ACTIVE:"1996 - 2002", FROM:"College - Pennsylvania", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Malovic, Stephen L.", ACTIVE:"1979 - 1979", FROM:"College - USC; San Diego State", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Manakas, Theodore (Ted)", ACTIVE:"1973 - 1973", FROM:"College - Princeton", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Mandic, John J.", ACTIVE:"1948 - 1949", FROM:"College - Oregon State", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Mangiapane, Francis E. (Frank)", ACTIVE:"1946 - 1946", FROM:"College - N.Y.U.", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Manning, Danny", ACTIVE:"1988 - 2002", FROM:"College - Kansas ''88", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Manning, Edward R. (Ed)", ACTIVE:"1967 - 1970", FROM:"College - Jackson State", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Manning, Rich", ACTIVE:"1995 - 1996", FROM:"College - Syracuse; Washington", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Mannion, Pace", ACTIVE:"1983 - 1988", FROM:"College - Utah", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Mantis, Nicholas (Nick)", ACTIVE:"1959 - 1962", FROM:"College - Northwestern", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Maravich, Pete", ACTIVE:"1970 - 1979", FROM:"College - Louisiana State", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Maravich, Peter (Press)", ACTIVE:"1946 - 1946", FROM:"College - Davis & Elkins", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Marble, Roy", ACTIVE:"1989 - 1993", FROM:"College - Iowa", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Marbury, Stephon", ACTIVE:"2007 - 2008", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Marciulionis, Sarunas", ACTIVE:"1989 - 1996", FROM:"College - Vilnius (Lithuania)", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"Mariaschin, Saul George", ACTIVE:"1947 - 1947", FROM:"College - Bloomsburg; Syracuse; Harvard", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Marin, John Warren (Jack)", ACTIVE:"1966 - 1976", FROM:"College - Duke", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Marion, Shawn", ACTIVE:"ACTIVE", FROM:"College - UNLV", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Markota, Damir", ACTIVE:"2006 - 2006", FROM:"From - Croatia", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"N'diaye, Mamadou", ACTIVE:"2000 - 2004", FROM:"College - Auburn", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Naber, Robert E. (Bob)", ACTIVE:"1952 - 1952", FROM:"College - Louisville", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Nachamkin, Boris Alexander", ACTIVE:"1954 - 1954", FROM:"College - N.Y.U.", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Nachbar, Bostjan", ACTIVE:"2007 - 2007", FROM:"From - Slovenia", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Nagel, Gerald R. (Jerry)", ACTIVE:"1949 - 1949", FROM:"College - Loyola (Chicago)", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Nagy, Frederick Karl (Fritz)", ACTIVE:"1948 - 1948", FROM:"College - North Carolina; Akron", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Nailon, Lee", ACTIVE:"2000 - 2005", FROM:"College - Texas Christian", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Najera, Eduardo", ACTIVE:"ACTIVE", FROM:"College - Oklahoma", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Nance, Larry", ACTIVE:"1981 - 1993", FROM:"College - Clemson", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Napolitano, Paul Wally", ACTIVE:"1948 - 1948", FROM:"College - San Francisco", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Nash, Charles Francis (Cotton)", ACTIVE:"1964 - 1964", FROM:"College - Kentucky", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Nash, Robert Lee Jr. (Bob)", ACTIVE:"1972 - 1978", FROM:"College - San Jacinto Coll. TX (J.C.); Hawaii", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Nash, Steve", ACTIVE:"ACTIVE", FROM:"College - Santa Clara", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Nater, Swen", ACTIVE:"1976 - 1983", FROM:"College - Cypress Coll. CA (J.C.); UCLA", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Nathan, Howard", ACTIVE:"1995 - 1995", FROM:"College - Louisiana-Monroe", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Natt, Calvin", ACTIVE:"1979 - 1989", FROM:"College - Louisiana-Monroe", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Natt, Kenny", ACTIVE:"1980 - 1984", FROM:"College - Louisiana-Monroe", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Naulls, Willie", ACTIVE:"1956 - 1965", FROM:"College - UCLA", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Navarro, Juan Carlos", ACTIVE:"2007 - 2007", FROM:"From - Spain", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"Ndiaye, Hamady", ACTIVE:"ACTIVE", FROM:"College - Rutgers", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Ndiaye, Makhtar", ACTIVE:"1998 - 1998", FROM:"College - North Carolina", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Ndong, Boniface", ACTIVE:"2005 - 2005", FROM:"-", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Neal, Craig", ACTIVE:"1988 - 1990", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Neal, Gary", ACTIVE:"ACTIVE", FROM:"College - Towson", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Neal, James Ellerbe (Jim)", ACTIVE:"1953 - 1954", FROM:"College - Wofford", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Neal, Lloyd", ACTIVE:"1972 - 1978", FROM:"College - Tennessee State", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Nealy, Ed", ACTIVE:"1982 - 1992", FROM:"College - Kansas State", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"Negratti, Albert Edward (Al)", ACTIVE:"1946 - 1946", FROM:"College - Seton Hall", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Nelson, Barry G.", ACTIVE:"1971 - 1971", FROM:"College - Duquesne", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Nelson, DeMarcus", ACTIVE:"2008 - 2008", FROM:"College - Duke", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Nelson, Donald Arvid (Don, Nellie)", ACTIVE:"1962 - 1975", FROM:"College - Iowa", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Nelson, Jameer", ACTIVE:"ACTIVE", FROM:"College - Saint Joseph's", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Nelson, Louis (Louie, Sweets)", ACTIVE:"1973 - 1977", FROM:"College - Washington", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Nembhard, Ruben", ACTIVE:"1996 - 1996", FROM:"College - Weber State", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Nene", ACTIVE:"ACTIVE", FROM:"From - Sao Carlos, Brazil", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Nesby, Tyrone", ACTIVE:"1998 - 2001", FROM:"College - Vincennes IN (J.C.); Nevada-Las Vegas", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Nessley, Martin", ACTIVE:"1987 - 1987", FROM:"College - Duke", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Nesterovic, Rasho", ACTIVE:"2007 - 2009", FROM:"From - Ljubljana, Slovenia", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Neumann, Johnny", ACTIVE:"1976 - 1977", FROM:"College - Mississippi", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Neumann, Paul R.", ACTIVE:"1961 - 1966", FROM:"College - Stanford", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Nevitt, Chuck", ACTIVE:"1982 - 1993", FROM:"College - North Carolina State", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Newbern, Melvin", ACTIVE:"1992 - 1992", FROM:"College - Minnesota", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Newbill, Ivano", ACTIVE:"1994 - 1997", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Newble, Ira", ACTIVE:"2007 - 2007", FROM:"College - Miami (Ohio)", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Newlin, Mike", ACTIVE:"1971 - 1981", FROM:"College - Utah", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Newman, Johnny", ACTIVE:"1986 - 2001", FROM:"College - Richmond", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Newmark, David L. (Dave)", ACTIVE:"1968 - 1969", FROM:"College - Columbia", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Nichols, Demetris", ACTIVE:"2007 - 2008", FROM:"College - Syracuse", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Nichols, Jack Edward", ACTIVE:"1948 - 1957", FROM:"College - Washington; USC", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Nickerson, Gaylon", ACTIVE:"1996 - 1996", FROM:"College - Wichita State; Butler Co. CC PA; Kansas State; Northwestern O", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"O'Bannon, Charles", ACTIVE:"1997 - 1998", FROM:"College - UCLA", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"O'Bannon, Ed", ACTIVE:"1995 - 1996", FROM:"College - UCLA", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"O'Koren, Mike", ACTIVE:"1980 - 1987", FROM:"College - North Carolina", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"O'Sullivan, Dan", ACTIVE:"1990 - 1995", FROM:"College - Fordham", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"O'Boyle, John W.", ACTIVE:"1952 - 1952", FROM:"College - Modesto JC CA; Colorado State", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"O'Brien, Ralph E. (Buckshot)", ACTIVE:"1951 - 1952", FROM:"College - Butler", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"O'Brien, Robert (Bob)", ACTIVE:"1947 - 1948", FROM:"College - Kansas; Pepperdine", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"O'Bryant, Patrick", ACTIVE:"2007 - 2009", FROM:"College - Bradley", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"O'Connell, Dermott F. (Dermie)", ACTIVE:"1948 - 1949", FROM:"College - Holy Cross", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"O'Donnell, Andrew J. (Andy)", ACTIVE:"1949 - 1949", FROM:"College - Loyola (Balt.)", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"O'Grady, Francis David (Buddy)", ACTIVE:"1946 - 1948", FROM:"College - Georgetown", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"O'Keefe, Richard T. (Dick)", ACTIVE:"1947 - 1950", FROM:"College - Santa Clara", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"O'Keefe, Thomas V. (Tommy)", ACTIVE:"1950 - 1950", FROM:"College - Notre Dame; Georgetown", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"O'Malley, V. Grady (Grady)", ACTIVE:"1969 - 1969", FROM:"College - Manhattan", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"O'Neal, Jermaine", ACTIVE:"ACTIVE", FROM:"High School - Eau Claire HS (SC)", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"O'Neal, Shaquille", ACTIVE:"2007 - 2010", FROM:"College - Louisiana State", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"O'Neill, Mike", ACTIVE:"1952 - 1952", FROM:"College - California", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"O'Shea, Kevin Christopher", ACTIVE:"1950 - 1952", FROM:"College - Notre Dame", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"O'Shields, Garland L. (Mule)", ACTIVE:"1946 - 1946", FROM:"College - Spartanburg Tech SC (J.C.); Tennessee", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Oakley, Charles", ACTIVE:"1985 - 2003", FROM:"College - Virginia Union ''85", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Oberto, Fabricio", ACTIVE:"2007 - 2010", FROM:"From - Las Varillas, Argentina", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Oden, Greg", ACTIVE:"ACTIVE", FROM:"College - Ohio State", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Odom, Lamar", ACTIVE:"ACTIVE", FROM:"College - Rhode Island", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Ogden, Carlos (Bud)", ACTIVE:"1969 - 1970", FROM:"College - Santa Clara", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Ogden, Ralph", ACTIVE:"1970 - 1970", FROM:"College - Santa Clara", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Ogg, Alan", ACTIVE:"1990 - 1992", FROM:"College - Alabama-Birmingham", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Ohl, Donald Jay (Don)", ACTIVE:"1960 - 1969", FROM:"College - Illinois", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Okafor, Emeka", ACTIVE:"ACTIVE", FROM:"College - Connecticut", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Okur, Mehmet", ACTIVE:"ACTIVE", FROM:"From - Yalova, Turkey", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Olajuwon, Hakeem", ACTIVE:"1984 - 2001", FROM:"College - Houston ''84", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Olberding, Mark", ACTIVE:"1976 - 1986", FROM:"College - Minnesota", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Oldham, Jawann", ACTIVE:"1980 - 1990", FROM:"College - Seattle", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Oldham, John O. (Johnny)", ACTIVE:"1949 - 1950", FROM:"College - Western Kentucky", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Oleynick, Frank (Magic)", ACTIVE:"1975 - 1976", FROM:"College - Seattle", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Olive, John", ACTIVE:"1978 - 1979", FROM:"College - Villanova", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Oliver, Brian", ACTIVE:"1990 - 1997", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Oliver, Dean", ACTIVE:"2001 - 2002", FROM:"College - Iowa ''01", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Oliver, Jimmy", ACTIVE:"1991 - 1998", FROM:"College - Purdue", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Ollie, Kevin", ACTIVE:"2007 - 2009", FROM:"College - Connecticut", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Ollrich, Gene W. (Moe)", ACTIVE:"1949 - 1949", FROM:"College - Drake", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Olowokandi, Michael", ACTIVE:"1998 - 2006", FROM:"College - U. of Pacific", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Olsen, Enoch Eli III (Bud)", ACTIVE:"1962 - 1968", FROM:"College - Louisville", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Orms, Barry D.", ACTIVE:"1968 - 1968", FROM:"College - St. Louis", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Orr, John M. (Johnny)", ACTIVE:"1949 - 1949", FROM:"College - Beloit; Illinois", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Orr, Louis", ACTIVE:"1980 - 1987", FROM:"College - Syracuse", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Ortiz, Jose", ACTIVE:"1988 - 1989", FROM:"College - Oregon State", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Osborne, Charles H. (Chuck)", ACTIVE:"1961 - 1961", FROM:"College - Western Kentucky", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Osterkorn, Walter Raymond (Wally)", ACTIVE:"1951 - 1954", FROM:"College - Illinois", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"Ostertag, Greg", ACTIVE:"1995 - 2005", FROM:"College - Kansas", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Othick, Matt", ACTIVE:"1992 - 1992", FROM:"College - Arizona", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Pace, Joseph (Joe)", ACTIVE:"1976 - 1977", FROM:"College - Maryland East. Shore; Coppin State", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Pachulia, Zaza", ACTIVE:"ACTIVE", FROM:"From - Tbilisi, Georgia", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Pack, Robert", ACTIVE:"1991 - 2003", FROM:"College - USC", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Paddio, Gerald", ACTIVE:"1990 - 1993", FROM:"College - Seminole JC OK; Kilgore Coll. TX (J.C.); Nevada-Las Vegas", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Padgett, Scott", ACTIVE:"1999 - 2006", FROM:"College - Kentucky", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Paine, Frederick Vincent Jr. (Fred)", ACTIVE:"1948 - 1948", FROM:"College - Westminster (PA)", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Palacio, Milt", ACTIVE:"1999 - 2005", FROM:"College - Colorado State", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Palazzi, Togo Anthony", ACTIVE:"1954 - 1959", FROM:"College - Holy Cross", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Palmer, James G. (Jim)", ACTIVE:"1958 - 1960", FROM:"College - Dayton", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Palmer, John S. (Bud)", ACTIVE:"1946 - 1948", FROM:"College - Princeton", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Palmer, Walter", ACTIVE:"1990 - 1992", FROM:"College - Dartmouth", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Panko, Andy", ACTIVE:"2000 - 2000", FROM:"College - Lebanon Valley", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Pargo, Jannero", ACTIVE:"ACTIVE", FROM:"College - Arkansas", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Parham, Estes Foster (Easy)", ACTIVE:"1948 - 1950", FROM:"College - Texas Wesleyan", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Parish, Robert", ACTIVE:"1976 - 1996", FROM:"College - Centenary", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"Park, Medford R. (Med)", ACTIVE:"1955 - 1959", FROM:"College - Missouri", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Parker, Anthony", ACTIVE:"ACTIVE", FROM:"College - Bradley", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"Parker, Robert S. Jr. (Sonny)", ACTIVE:"1976 - 1981", FROM:"College - Mineral Area Coll. MO (J.C.); Texas A&M", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Parker, Smush", ACTIVE:"2007 - 2007", FROM:"College - Fordham", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Parker, Tony", ACTIVE:"ACTIVE", FROM:"From - Paris, France", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"Parkinson, Jack Gordon", ACTIVE:"1949 - 1949", FROM:"College - Kentucky", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Parks, Cherokee", ACTIVE:"1995 - 2003", FROM:"College - Duke ''95", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Parr, Jack", ACTIVE:"1958 - 1958", FROM:"College - Kansas State", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Parrack, Doyle Kenneth", ACTIVE:"1946 - 1946", FROM:"College - Oklahoma State", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Parsley, Charles H. (Charlie)", ACTIVE:"1949 - 1949", FROM:"College - Western Kentucky", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Paspalj, Zarko", ACTIVE:"1989 - 1989", FROM:"College - No College", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Passaglia, Martin Harold (Marty)", ACTIVE:"1946 - 1948", FROM:"College - Santa Clara", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Pastushok, George A.", ACTIVE:"1946 - 1946", FROM:"College - Manhattan; St. John's (N.Y.)", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Patrick, Myles", ACTIVE:"1980 - 1980", FROM:"College - Auburn", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Patrick, Stanley A. (Stan)", ACTIVE:"1949 - 1949", FROM:"College - Santa Clara; Illinois", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Patterson, Andrae", ACTIVE:"1998 - 1999", FROM:"College - Indiana", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Patterson, George", ACTIVE:"1967 - 1967", FROM:"College - Toledo", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Patterson, Patrick", ACTIVE:"ACTIVE", FROM:"College - Kentucky", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Patterson, Ruben", ACTIVE:"2007 - 2007", FROM:"College - Cincinnati", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Patterson, Steven J. (Steve)", ACTIVE:"1971 - 1975", FROM:"College - UCLA", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Patterson, Tommie J. (Tommy)", ACTIVE:"1972 - 1973", FROM:"College - Ouachita Baptist", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Patterson, Worthington R. (Worthy)", ACTIVE:"1957 - 1957", FROM:"College - Connecticut", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Paul, Chris", ACTIVE:"ACTIVE", FROM:"College - Wake Forest", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Paulk, Charles (Charlie)", ACTIVE:"1968 - 1971", FROM:"College - Tulsa; Northeastern State (Okla.)", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Paulson, Gerald Arthur (Jerry)", ACTIVE:"1957 - 1957", FROM:"College - Manhattan", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Paultz, Billy", ACTIVE:"1976 - 1984", FROM:"College - Cameron; St. John's (N.Y.)", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Pavlovic, Aleksandar", ACTIVE:"ACTIVE", FROM:"From - Bar, Montenegro", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Paxson, James Edward Sr. (Jim)", ACTIVE:"1956 - 1957", FROM:"College - Dayton", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Paxson, Jim", ACTIVE:"1979 - 1989", FROM:"College - Dayton", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Paxson, John", ACTIVE:"1983 - 1993", FROM:"College - Notre Dame", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Payak, John Jr. (Johnny)", ACTIVE:"1949 - 1952", FROM:"College - Bowling Green State", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Payne, Kenny", ACTIVE:"1989 - 1992", FROM:"College - Louisville", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Payne, Tom", ACTIVE:"1971 - 1971", FROM:"College - Kentucky", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Payton, Gary", ACTIVE:"1990 - 2006", FROM:"College - Oregon State", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Payton, Melvin E. (Mel)", ACTIVE:"1951 - 1952", FROM:"College - Tulane", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Quick, Robert L. (Bob)", ACTIVE:"1968 - 1971", FROM:"College - Xavier (Ohio)", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Quinn, Chris", ACTIVE:"ACTIVE", FROM:"College - Notre Dame", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Quinnett, Brian", ACTIVE:"1989 - 1991", FROM:"College - Washington State", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Rackley, Luther Jr. (Luke)", ACTIVE:"1969 - 1973", FROM:"College - Xavier (Ohio)", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"Rader, Howard (Howie)", ACTIVE:"1948 - 1948", FROM:"College - Long Island University", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Radford, Mark", ACTIVE:"1981 - 1982", FROM:"College - Oregon State", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Radford, Wayne", ACTIVE:"1978 - 1978", FROM:"College - Indiana", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Radja, Dino", ACTIVE:"1993 - 1996", FROM:"College - Croatia", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Radmanovic, Vladimir", ACTIVE:"ACTIVE", FROM:"From - Belgrade, Serbia", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Radojevic, Aleksandar", ACTIVE:"1999 - 2004", FROM:"From - Serbia-Montenegro", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Radovich, Frank Raymond", ACTIVE:"1961 - 1961", FROM:"College - Indiana", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Radovich, George Lewis (Moe)", ACTIVE:"1952 - 1952", FROM:"College - Wyoming", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Radziszewski, Raymond A. (Ray)", ACTIVE:"1957 - 1957", FROM:"College - St. Joseph's (PA)", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Ragelis, Raymond Ernest (Ray)", ACTIVE:"1951 - 1951", FROM:"College - Northwestern", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Raiken, Sherwin H.", ACTIVE:"1952 - 1952", FROM:"College - Villanova", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Rains, Ed", ACTIVE:"1981 - 1982", FROM:"College - South Alabama", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Rakocevic, Igor", ACTIVE:"2002 - 2002", FROM:"College - No College", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Rambis, Kurt", ACTIVE:"1981 - 1994", FROM:"College - Santa Clara", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Ramos, Peter", ACTIVE:"2004 - 2004", FROM:"From - Puerto Rico", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Ramsey, Calvin (Cal)", ACTIVE:"1959 - 1960", FROM:"College - N.Y.U.", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Ramsey, Frank", ACTIVE:"1954 - 1963", FROM:"College - Kentucky", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Ramsey, Raymond Leroy (Ray)", ACTIVE:"1948 - 1948", FROM:"College - Bradley", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"Randall, Mark", ACTIVE:"1991 - 1994", FROM:"College - Kansas", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Randolph, Anthony", ACTIVE:"ACTIVE", FROM:"College - Louisiana State", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Randolph, Shavlik", ACTIVE:"2007 - 2009", FROM:"College - Duke", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Randolph, Zach", ACTIVE:"ACTIVE", FROM:"College - Michigan State", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Rank, Wallace Aliifua (Wally)", ACTIVE:"1980 - 1980", FROM:"College - San Jose State", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Ransey, Kelvin", ACTIVE:"1980 - 1985", FROM:"College - Ohio State", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Ranzino, Samuel Salvadore (Sam)", ACTIVE:"1951 - 1951", FROM:"College - North Carolina State", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Rasmussen, Blair", ACTIVE:"1985 - 1992", FROM:"College - Oregon", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Ratkovicz, George", ACTIVE:"1949 - 1954", FROM:"College - No College", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Ratleff, Ed", ACTIVE:"1973 - 1977", FROM:"College - Long Beach State", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Ratliff, Michael D. (Mike)", ACTIVE:"1972 - 1973", FROM:"College - Wis.-Eau Claire", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Ratliff, Theo", ACTIVE:"ACTIVE", FROM:"College - Wyoming", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Rautins, Andy", ACTIVE:"ACTIVE", FROM:"College - Syracuse", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"Rautins, Leo", ACTIVE:"1983 - 1984", FROM:"College - Minnesota; Syracuse", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"Ray, Allan", ACTIVE:"2006 - 2006", FROM:"College - Villanova", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Ray, Clifford", ACTIVE:"1971 - 1980", FROM:"College - Oklahoma", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Ray, Donald L. (Don, Duck)", ACTIVE:"1949 - 1949", FROM:"College - Western Kentucky", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Ray, James E. (Jim)", ACTIVE:"1956 - 1959", FROM:"College - Toledo", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Ray, James Earl", ACTIVE:"1980 - 1982", FROM:"College - Jacksonville", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Raymond, Craig Milford", ACTIVE:"1968 - 1968", FROM:"College - Brigham Young", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Rea, Connie Mack", ACTIVE:"1953 - 1953", FROM:"College - Centenary; Vanderbilt", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"Reaves, Joe L.", ACTIVE:"1973 - 1973", FROM:"College - Bethel College (Tenn.)", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Rebraca, Zeljko", ACTIVE:"2001 - 2005", FROM:"From - Serbia & Montenegro", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Recasner, Eldridge", ACTIVE:"1994 - 2001", FROM:"College - Washington", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Redd, Michael", ACTIVE:"ACTIVE", FROM:"College - Ohio State", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Reddout, Franklin P. (Frank)", ACTIVE:"1953 - 1953", FROM:"College - Syracuse", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"Redick, J.J.", ACTIVE:"ACTIVE", FROM:"College - Duke", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Redmond, Marlon Bernard", ACTIVE:"1978 - 1979", FROM:"College - San Francisco", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Reed, Hubert F. (Hub)", ACTIVE:"1958 - 1964", FROM:"College - Oklahoma City", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Reed, Justin", ACTIVE:"2004 - 2006", FROM:"College - Mississippi", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Reed, Ronald Lee (Ron)", ACTIVE:"1965 - 1966", FROM:"College - Notre Dame", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Sabonis, Arvydas", ACTIVE:"1995 - 2002", FROM:"From - Lithuania", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Sadowski, Edward Frank (Ed, Big Ed)", ACTIVE:"1946 - 1949", FROM:"College - Seton Hall", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Sailors, Kenneth L. (Kenny)", ACTIVE:"1946 - 1950", FROM:"College - Wyoming", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Salley, John", ACTIVE:"1986 - 1999", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Salmons, John", ACTIVE:"ACTIVE", FROM:"College - Miami (Fla.)", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Salvadori, Kevin", ACTIVE:"1996 - 1997", FROM:"College - North Carolina", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Samake, Soumaila", ACTIVE:"2000 - 2002", FROM:"From - Republic of Mali", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Samb, Cheikh", ACTIVE:"2007 - 2008", FROM:"From - Senegal", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Sampson, Jamal", ACTIVE:"2002 - 2006", FROM:"College - California", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Sampson, Ralph", ACTIVE:"1983 - 1991", FROM:"College - Virginia", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Samuels, Samardo", ACTIVE:"ACTIVE", FROM:"College - Louisville", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Sanchez, Pepe", ACTIVE:"2000 - 2002", FROM:"College - Temple ''00", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Sanders, Frankie J. (Frankie J.)", ACTIVE:"1978 - 1980", FROM:"College - Southern University", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Sanders, Jeff", ACTIVE:"1989 - 1992", FROM:"College - Georgia Southern", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Sanders, Larry", ACTIVE:"ACTIVE", FROM:"College - Virginia Commonwealth", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Sanders, Melvin", ACTIVE:"2005 - 2005", FROM:"College - Oklahoma State", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Sanders, Mike", ACTIVE:"1982 - 1992", FROM:"College - UCLA", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Sanders, Thomas Ernest (Satch)", ACTIVE:"1960 - 1972", FROM:"College - N.Y.U.", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Santiago, Daniel", ACTIVE:"2000 - 2004", FROM:"College - St. Vincent", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Santini, Robert (Bob)", ACTIVE:"1955 - 1955", FROM:"College - Iona", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Sappleton, Wayne B.", ACTIVE:"1984 - 1984", FROM:"College - Loyola (Chicago)", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Sasser, Jason", ACTIVE:"1996 - 1998", FROM:"College - Texas Tech ''96", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Sasser, Jeryl", ACTIVE:"2001 - 2002", FROM:"College - Southern Methodist ''01", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Satterfield, Kenny", ACTIVE:"2001 - 2002", FROM:"College - Cincinnati ''03", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Saul, Frank Benjamin Jr. (Pep)", ACTIVE:"1949 - 1954", FROM:"College - Seton Hall", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Sauldsberry, Woodrow Jr. (Woody)", ACTIVE:"1957 - 1965", FROM:"College - Texas Southern", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Saunders, James Frederick (Fred)", ACTIVE:"1974 - 1977", FROM:"College - Syracuse", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Savage, Donald Joseph (Don)", ACTIVE:"1951 - 1956", FROM:"College - Le Moyne", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Savovic, Predrag", ACTIVE:"2002 - 2002", FROM:"College - Hawaii ''02", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Sawyer, Alan Leigh", ACTIVE:"1950 - 1950", FROM:"College - UCLA", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Scalabrine, Brian", ACTIVE:"ACTIVE", FROM:"College - USC", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Scales, Alex", ACTIVE:"2005 - 2005", FROM:"College - Oregon", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Scales, DeWayne", ACTIVE:"1980 - 1983", FROM:"College - Louisiana State", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Schade, Frank", ACTIVE:"1972 - 1972", FROM:"College - Wis.-Eau Claire; Texas-El Paso", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Schadler, Bernard R. (Ben)", ACTIVE:"1947 - 1947", FROM:"College - Northwestern", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Schaefer, Herman H. (Herm)", ACTIVE:"1948 - 1949", FROM:"College - Indiana", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Schafer, Robert Thomas (Bob)", ACTIVE:"1955 - 1955", FROM:"College - Villanova", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Scharnus, Benedict Michael (Ben, Whitey)", ACTIVE:"1946 - 1948", FROM:"College - Seton Hall", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Schatzman, Marvin J. (Marv)", ACTIVE:"1949 - 1949", FROM:"College - St. Louis", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Schaus, Frederick Appleton (Fred)", ACTIVE:"1949 - 1953", FROM:"College - West Virginia", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Schayes, Danny", ACTIVE:"1981 - 1998", FROM:"College - Syracuse", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Schayes, Dolph", ACTIVE:"1949 - 1963", FROM:"College - N.Y.U.", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Schectman, Oscar B. (Ossie)", ACTIVE:"1946 - 1946", FROM:"College - Long Island University", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Scheffler, Steve", ACTIVE:"1990 - 1996", FROM:"College - Purdue", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Scheffler, Thomas Mark (Tom)", ACTIVE:"1984 - 1984", FROM:"College - Purdue", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Schellhase, David Gene Jr. (Dave)", ACTIVE:"1966 - 1967", FROM:"College - Purdue", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"Schenscher, Luke", ACTIVE:"2005 - 2006", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Scherer, Herbert Frederick (Herb)", ACTIVE:"1950 - 1951", FROM:"College - Long Island University", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Schintzius, Dwayne", ACTIVE:"1990 - 1998", FROM:"College - Florida", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Schlueter, Dale Wayne", ACTIVE:"1968 - 1977", FROM:"College - Colorado State", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Tabak, Zan", ACTIVE:"1994 - 2000", FROM:"College - No College", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Tabuse, Yuta", ACTIVE:"2004 - 2004", FROM:"College - BYU-Hawaii", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Taft, Chris", ACTIVE:"2005 - 2005", FROM:"College - Pittsburgh", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Tannenbaum, Sidney (Sid)", ACTIVE:"1947 - 1948", FROM:"College - N.Y.U.", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Tarlac, Dragan", ACTIVE:"2000 - 2000", FROM:"College - Olympiakos (Greece)", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Tarpley, Roy", ACTIVE:"1986 - 1994", FROM:"College - Michigan", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Tatum, William Earl (Earl)", ACTIVE:"1976 - 1979", FROM:"College - Marquette", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Taylor, Anthony", ACTIVE:"1988 - 1988", FROM:"College - Oregon", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Taylor, Brian Dw.", ACTIVE:"1976 - 1981", FROM:"College - Princeton", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Taylor, Donell", ACTIVE:"2005 - 2006", FROM:"College - Alabama-Birmingham", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Taylor, Fredrick Ollie (Fred)", ACTIVE:"1970 - 1971", FROM:"College - Texas-Pan American", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Taylor, Jay", ACTIVE:"1989 - 1989", FROM:"College - Eastern Illinois", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Taylor, Jeff", ACTIVE:"1982 - 1986", FROM:"College - Texas Tech", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Taylor, Jermaine", ACTIVE:"2009 - 2010", FROM:"College - Central Florida", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Taylor, Johnny", ACTIVE:"1997 - 1999", FROM:"College - Knoxville; Indian Hills CC IA; Tennessee-Chattanooga", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Taylor, Leonard", ACTIVE:"1989 - 1989", FROM:"College - California", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Taylor, Maurice", ACTIVE:"1997 - 2006", FROM:"College - Michigan", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Taylor, Mike", ACTIVE:"2008 - 2008", FROM:"College - Iowa State", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Taylor, Roland Morris (Fatty)", ACTIVE:"1976 - 1976", FROM:"College - Edison CC FL; La Salle", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Taylor, Vince", ACTIVE:"1982 - 1982", FROM:"College - Duke", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Teagle, Terry", ACTIVE:"1982 - 1992", FROM:"College - Baylor", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Teague, Jeff", ACTIVE:"ACTIVE", FROM:"College - Wake Forest", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Telfair, Sebastian", ACTIVE:"ACTIVE", FROM:"High School - Abraham Lincoln HS (Brooklyn, NY)", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Temple, Garrett", ACTIVE:"ACTIVE", FROM:"College - Louisiana State", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Terrell, Ira Edmondson", ACTIVE:"1976 - 1978", FROM:"College - Southern Methodist", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Terry, Allen Charles (Chuck)", ACTIVE:"1972 - 1976", FROM:"College - Long Beach State", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Terry, Carlos", ACTIVE:"1980 - 1982", FROM:"College - Winston-Salem State", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Terry, Claude Lewis", ACTIVE:"1976 - 1977", FROM:"College - Stanford", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Terry, Jason", ACTIVE:"ACTIVE", FROM:"College - Arizona", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Thabeet, Hasheem", ACTIVE:"ACTIVE", FROM:"College - Connecticut", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Thacker, Thomas Porter (Tom, Tack)", ACTIVE:"1963 - 1967", FROM:"College - Cincinnati", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Theus, Reggie", ACTIVE:"1978 - 1990", FROM:"College - Nevada-Las Vegas", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Thibeaux, Peter C.", ACTIVE:"1984 - 1985", FROM:"College - St. Mary's (CA)", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Thieben, William Bernard (Bill)", ACTIVE:"1956 - 1957", FROM:"College - Hofstra", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Thigpen, Justus", ACTIVE:"1972 - 1973", FROM:"College - Charles Stewart Mott CC MI; Weber State", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Thirdkill, David", ACTIVE:"1982 - 1986", FROM:"College - Coll. of Southern Idaho (J.C.); Bradley", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"Thomas, Billy", ACTIVE:"2007 - 2007", FROM:"College - Kansas", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Thomas, Carl", ACTIVE:"1991 - 1997", FROM:"College - Eastern Michigan", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Thomas, Charles", ACTIVE:"1991 - 1991", FROM:"College - Eastern Michigan", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Thomas, Etan", ACTIVE:"ACTIVE", FROM:"College - Syracuse", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Thomas, Irving", ACTIVE:"1990 - 1990", FROM:"College - Kentucky; Florida State", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Thomas, Isiah", ACTIVE:"1981 - 1993", FROM:"College - Indiana", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"Thomas, Jamel", ACTIVE:"1999 - 2000", FROM:"College - Providence", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Thomas, Jamel", ACTIVE:"1999 - 2000", FROM:"College - Providence", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"Thomas, James", ACTIVE:"2004 - 2005", FROM:"College - Texas", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Thomas, Jim", ACTIVE:"1983 - 1990", FROM:"College - Indiana", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Thomas, John", ACTIVE:"1997 - 2005", FROM:"College - Minnesota", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Thomas, Joseph Randle (Joe)", ACTIVE:"1970 - 1970", FROM:"College - Marquette", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Thomas, Kenny", ACTIVE:"2007 - 2009", FROM:"College - New Mexico", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Thomas, Kurt", ACTIVE:"ACTIVE", FROM:"College - Texas Christian", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Udoh, Ekpe", ACTIVE:"ACTIVE", FROM:"College - Baylor", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Udoka, Ime", ACTIVE:"2007 - 2010", FROM:"College - Portland State", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Udrih, Beno", ACTIVE:"ACTIVE", FROM:"From - Sempeter, Slovenia", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Ukic, Roko", ACTIVE:"2008 - 2009", FROM:"From - Split, Croatia", TEAM_LOGO:"../test/10_raw.jpg"},
+{NAME:"Unseld, Wes", ACTIVE:"1968 - 1980", FROM:"College - Louisville", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Uplinger, Harold F. (Hal)", ACTIVE:"1953 - 1953", FROM:"College - Long Island University", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Upshaw, Kelvin", ACTIVE:"1988 - 1990", FROM:"College - Northeastern State (Okla.); Utah", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Uzoh, Ben", ACTIVE:"ACTIVE", FROM:"College - Tulsa", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Valentine, Darnell", ACTIVE:"1981 - 1990", FROM:"College - Kansas", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Valentine, Ronnie L. (Ron)", ACTIVE:"1980 - 1980", FROM:"College - Old Dominion", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Vallely, John Stephen", ACTIVE:"1970 - 1971", FROM:"College - Orange Coast Coll. CA (J.C.); UCLA", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Van Arsdale, Dick", ACTIVE:"1965 - 1976", FROM:"College - Indiana", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Van Arsdale, Thomas Arthur (Tom)", ACTIVE:"1965 - 1976", FROM:"College - Indiana", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Van Breda Kolff, Jan", ACTIVE:"1976 - 1982", FROM:"College - Vanderbilt", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Van Breda Kolff, Willem H. (Butch)", ACTIVE:"1946 - 1949", FROM:"College - Princeton; N.Y.U.", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Van Exel, Nick", ACTIVE:"1993 - 2005", FROM:"College - Cincinnati", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Van Horn, Keith", ACTIVE:"1997 - 2005", FROM:"College - Utah", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Van Lier, Norm", ACTIVE:"1969 - 1978", FROM:"College - St. Francis (PA)", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Vance, Ellis Eugene (Gene)", ACTIVE:"1947 - 1951", FROM:"College - Illinois", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Vander Velden, Logan", ACTIVE:"1995 - 1995", FROM:"College - Wis.-Green Bay", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Vandeweghe, Ernest Maurice Jr. (Ernie, Doc)", ACTIVE:"1949 - 1955", FROM:"College - Colgate", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Vandeweghe, Kiki", ACTIVE:"1980 - 1992", FROM:"College - UCLA", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Vanos, Nick", ACTIVE:"1985 - 1986", FROM:"College - Santa Clara", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"Vanterpool, David", ACTIVE:"2000 - 2000", FROM:"College - St. Bonaventure", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Varda, Ratko", ACTIVE:"2001 - 2001", FROM:"From - Serbia & Montenegro", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Varejao, Anderson", ACTIVE:"ACTIVE", FROM:"From - Santa Teresa, Brazil", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Vasquez, Greivis", ACTIVE:"ACTIVE", FROM:"College - Maryland", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Vaughn, Charles (Chico)", ACTIVE:"1962 - 1966", FROM:"College - Southern Illinois", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Vaughn, David", ACTIVE:"1995 - 1998", FROM:"College - Memphis", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Vaughn, Jacque", ACTIVE:"2007 - 2008", FROM:"College - Kansas", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Vaughn, Virgil V.", ACTIVE:"1946 - 1946", FROM:"College - Kentucky Wesleyan", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Vaught, Loy", ACTIVE:"1990 - 2000", FROM:"College - Michigan", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Verga, Robert Bruce (Bob)", ACTIVE:"1973 - 1973", FROM:"College - Duke", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Verhoeven, Peter", ACTIVE:"1981 - 1986", FROM:"College - Fresno State", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Vetra, Gundars", ACTIVE:"1992 - 1992", FROM:"College - No College", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Vianna, Joao", ACTIVE:"1991 - 1991", FROM:"College - Travajara (Brazil)", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Villanueva, Charlie", ACTIVE:"ACTIVE", FROM:"College - Connecticut", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Vincent, Jay", ACTIVE:"1981 - 1989", FROM:"College - Michigan State", TEAM_LOGO:"../test/20_raw.jpg"},
+{NAME:"Vincent, Sam", ACTIVE:"1985 - 1991", FROM:"College - Michigan State", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Vinicius, Marcus", ACTIVE:"2007 - 2007", FROM:"From - Brazil", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Vinson, Fred", ACTIVE:"1994 - 1999", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Voce, Gary", ACTIVE:"1989 - 1989", FROM:"College - Notre Dame", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Volker, Floyd W.", ACTIVE:"1949 - 1949", FROM:"College - Wyoming", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Volkov, Alexander", ACTIVE:"1989 - 1991", FROM:"College - Kiev Institute (Ukraine)", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Von Nieda, Stanley L. Jr. (Whitey)", ACTIVE:"1949 - 1949", FROM:"College - Penn State", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Voskuhl, Jake", ACTIVE:"2007 - 2008", FROM:"College - Connecticut", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Vranes, Danny", ACTIVE:"1981 - 1987", FROM:"College - Utah", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Vranes, Slavko", ACTIVE:"2003 - 2003", FROM:"From - Serbia & Montenegro", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Vrankovic, Stojko", ACTIVE:"1990 - 1998", FROM:"College - Croatia", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Vroman, Brett Grant", ACTIVE:"1980 - 1980", FROM:"College - UCLA; Nevada-Las Vegas", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Vroman, Jackson", ACTIVE:"2004 - 2005", FROM:"College - Iowa State", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Vujacic, Sasha", ACTIVE:"ACTIVE", FROM:"From - Maribor, Slovenia", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Wade, Dwyane", ACTIVE:"ACTIVE", FROM:"College - Marquette", TEAM_LOGO:"../test/5_raw.jpg"},
+{NAME:"Wade, Mark", ACTIVE:"1987 - 1989", FROM:"College - El Camino Coll. CA (J.C.); Oklahoma; Nevada-Las Vegas", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Wafer, Von", ACTIVE:"ACTIVE", FROM:"College - Florida State", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Wager, Clinton B. (Clint)", ACTIVE:"1949 - 1949", FROM:"College - St. Mary's (Minn.)", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Wagner, Dajuan", ACTIVE:"2002 - 2006", FROM:"College - Memphis", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Wagner, Daniel Earnest (Danny)", ACTIVE:"1949 - 1949", FROM:"College - Schreiner Coll.; Texas", TEAM_LOGO:"../test/19_raw.jpg"},
+{NAME:"Wagner, Milt", ACTIVE:"1987 - 1990", FROM:"College - Louisville", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Waiters, Granville", ACTIVE:"1983 - 1987", FROM:"College - Ohio State", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"Wakefield, Andre", ACTIVE:"1978 - 1979", FROM:"College - Coll. of Southern Idaho (J.C.); Loyola (Chicago)", TEAM_LOGO:"../test/3_raw.jpg"},
+{NAME:"Walk, Neal", ACTIVE:"1969 - 1976", FROM:"College - Florida", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Walker, Andrew Martin (Andy)", ACTIVE:"1976 - 1976", FROM:"College - Niagara", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Walker, Antoine", ACTIVE:"2007 - 2007", FROM:"College - Kentucky", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"Walker, Bill", ACTIVE:"ACTIVE", FROM:"College - Kansas State", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Walker, Brady W.", ACTIVE:"1948 - 1951", FROM:"College - Brigham Young", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Walker, Chet", ACTIVE:"1962 - 1974", FROM:"College - Bradley", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Walker, Darrell", ACTIVE:"1983 - 1992", FROM:"College - Westark CC; Arkansas", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Walker, Foots", ACTIVE:"1974 - 1983", FROM:"College - Vincennes IN (J.C.); West Georgia", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Walker, Horace", ACTIVE:"1961 - 1961", FROM:"College - Michigan State", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Walker, James (Jimmy)", ACTIVE:"1967 - 1975", FROM:"College - Providence", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Walker, Kenny", ACTIVE:"1986 - 1994", FROM:"College - Kentucky", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"Walker, Phillip B. (Phil)", ACTIVE:"1977 - 1977", FROM:"College - Millersville", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Walker, Samaki", ACTIVE:"1996 - 2005", FROM:"College - Louisville", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Walker, Wally", ACTIVE:"1976 - 1983", FROM:"College - Virginia", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Wall, John", ACTIVE:"ACTIVE", FROM:"College - Kentucky", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Wallace, Ben", ACTIVE:"ACTIVE", FROM:"College - Virginia Union", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Wallace, Gerald", ACTIVE:"ACTIVE", FROM:"College - Alabama", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Wallace, John", ACTIVE:"1996 - 2003", FROM:"College - Syracuse ''96", TEAM_LOGO:"../test/25_raw.jpg"},
+{NAME:"Wallace, Michael John (Red)", ACTIVE:"1946 - 1946", FROM:"College - Scranton", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Wallace, Rasheed", ACTIVE:"2007 - 2009", FROM:"College - North Carolina", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Waller, Dwight", ACTIVE:"1968 - 1968", FROM:"College - Tennessee State", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Waller, Jamie", ACTIVE:"1987 - 1987", FROM:"College - Virginia Union", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Walsh, James Patrick (Jim)", ACTIVE:"1957 - 1957", FROM:"College - Stanford", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Walsh, Matt", ACTIVE:"2005 - 2005", FROM:"College - Florida", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Walters, Rex", ACTIVE:"1993 - 1999", FROM:"College - De Anza Coll. CA (J.C.); Northwestern; Kansas", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Walther, Paul P. (Lefty)", ACTIVE:"1949 - 1954", FROM:"College - Tennessee", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Walthour, Isaac (Rabbit)", ACTIVE:"1953 - 1953", FROM:"College - No College", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Walton, Bill", ACTIVE:"1974 - 1986", FROM:"College - UCLA", TEAM_LOGO:"../test/28_raw.jpg"},
+{NAME:"Walton, Lloyd", ACTIVE:"1976 - 1980", FROM:"College - Moberly Area CC; Marquette", TEAM_LOGO:"../test/12_raw.jpg"},
+{NAME:"Walton, Luke", ACTIVE:"ACTIVE", FROM:"College - Arizona", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Wang Zhizhi", ACTIVE:"2000 - 2004", FROM:"From - China", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Wanzer, Robert Francis (Bobby)", ACTIVE:"1948 - 1956", FROM:"College - Colgate; Seton Hall", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"Warbington, Perry", ACTIVE:"1974 - 1974", FROM:"College - Lake City CC FL; Georgia Southern", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Ward, Charlie", ACTIVE:"1994 - 2004", FROM:"College - Florida State", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Ward, Gerald W. (Gerry)", ACTIVE:"1963 - 1966", FROM:"College - Boston College", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Ward, Henry Lorette", ACTIVE:"1976 - 1976", FROM:"College - Jackson State", TEAM_LOGO:"../test/13_raw.jpg"},
+{NAME:"Ware, James Edward (Jim)", ACTIVE:"1966 - 1967", FROM:"College - Oklahoma City", TEAM_LOGO:"../test/11_raw.jpg"},
+{NAME:"Warley, Benjamin Vallintina (Ben)", ACTIVE:"1962 - 1966", FROM:"College - Tennessee State", TEAM_LOGO:"../test/27_raw.jpg"},
+{NAME:"Warlick, Robert Lee (Bob)", ACTIVE:"1965 - 1968", FROM:"College - Pueblo CC CO; Pepperdine; Denver", TEAM_LOGO:"../test/29_raw.jpg"},
+{NAME:"Warner, Cornell", ACTIVE:"1970 - 1976", FROM:"College - Jackson State", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Warren, John II (Johnny)", ACTIVE:"1969 - 1973", FROM:"College - St. John's (N.Y.)", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Yarbrough, Vincent", ACTIVE:"2002 - 2002", FROM:"College - Tennessee ''02", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Yardley, George", ACTIVE:"1953 - 1959", FROM:"College - Stanford", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"Yates, Barry", ACTIVE:"1971 - 1971", FROM:"College - Nebraska; Maryland", TEAM_LOGO:"../test/18_raw.jpg"},
+{NAME:"Yates, Wayne E.", ACTIVE:"1961 - 1961", FROM:"College - Memphis", TEAM_LOGO:"../test/4_raw.jpg"},
+{NAME:"Yelverton, Charles W. (Charlie)", ACTIVE:"1971 - 1971", FROM:"College - Fordham", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Yonakor, Richard Robert (Rich)", ACTIVE:"1981 - 1981", FROM:"College - North Carolina", TEAM_LOGO:"../test/16_raw.jpg"},
+{NAME:"Young, Danny", ACTIVE:"1984 - 1994", FROM:"College - Wake Forest", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Young, Korleone", ACTIVE:"1998 - 1998", FROM:"College - No College", TEAM_LOGO:"../test/6_raw.jpg"},
+{NAME:"Young, Michael", ACTIVE:"1984 - 1989", FROM:"College - Houston", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Young, Nick", ACTIVE:"ACTIVE", FROM:"College - USC", TEAM_LOGO:"../test/24_raw.jpg"},
+{NAME:"Young, Perry", ACTIVE:"1986 - 1986", FROM:"College - Virginia Tech", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Young, Sam", ACTIVE:"ACTIVE", FROM:"College - Pittsburgh", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Young, Thaddeus", ACTIVE:"ACTIVE", FROM:"College - Georgia Tech", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Young, Tim", ACTIVE:"1999 - 1999", FROM:"College - Stanford", TEAM_LOGO:"../test/9_raw.jpg"},
+{NAME:"Yue, Sun", ACTIVE:"2008 - 2008", FROM:"From - China", TEAM_LOGO:"../test/26_raw.jpg"},
+{NAME:"Zaslofsky, Max (Slats)", ACTIVE:"1946 - 1955", FROM:"College - Chicago; St. John's (N.Y.)", TEAM_LOGO:"../test/23_raw.jpg"},
+{NAME:"Zawoluk, Robert Michael (Zeke)", ACTIVE:"1952 - 1954", FROM:"College - St. John's (N.Y.)", TEAM_LOGO:"../test/17_raw.jpg"},
+{NAME:"Zeller, David A. (Dave)", ACTIVE:"1961 - 1961", FROM:"College - Miami (Ohio)", TEAM_LOGO:"../test/8_raw.jpg"},
+{NAME:"Zeller, Gary Lynn", ACTIVE:"1970 - 1971", FROM:"College - Drake", TEAM_LOGO:"../test/15_raw.jpg"},
+{NAME:"Zeller, Harry Raymond (Hank)", ACTIVE:"1946 - 1946", FROM:"College - Pittsburgh; Washington & Jefferson", TEAM_LOGO:"../test/21_raw.jpg"},
+{NAME:"Zeno, Anthony Michael (Tony)", ACTIVE:"1979 - 1979", FROM:"College - Arizona State", TEAM_LOGO:"../test/22_raw.jpg"},
+{NAME:"Zevenbergen, Phil", ACTIVE:"1987 - 1987", FROM:"College - Seattle Pacific; Edmonds CC WA; Washington", TEAM_LOGO:"../test/14_raw.jpg"},
+{NAME:"Zidek, George", ACTIVE:"1995 - 1997", FROM:"College - UCLA", TEAM_LOGO:"../test/30_raw.jpg"},
+{NAME:"Zimmerman, Derrick", ACTIVE:"2005 - 2005", FROM:"College - Mississippi State", TEAM_LOGO:"../test/7_raw.jpg"},
+{NAME:"Zoet, Jim", ACTIVE:"1982 - 1982", FROM:"College - Kent State", TEAM_LOGO:"../test/2_raw.jpg"},
+{NAME:"Zopf, William Charles Jr. (Bill, Zip)", ACTIVE:"1970 - 1970", FROM:"College - Duquesne", TEAM_LOGO:"../test/1_raw.jpg"},
+{NAME:"Zunic, Matthew (Matt, Mad Matt)", ACTIVE:"1948 - 1948", FROM:"College - George Washington", TEAM_LOGO:"../test/3_raw.jpg"}
+];
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal.html b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal.html
new file mode 100644 (file)
index 0000000..06379f8
--- /dev/null
@@ -0,0 +1,13 @@
+       <div data-role="page" id="virtuallist-normal_1line" class="virtuallist_demo_page" data-add-back-btn="true">
+               <div data-role="header" data-position="fixed">
+                       <h1>Virtual List - Normal Style 1line</h1>
+               </div>
+               <div data-role="content">
+                       <script id="tmp-1line" type="text/x-jquery-tmpl">
+                               <li class="ui-li-1line"><span class="ui-li-text-main">${NAME}</span></li>
+                       </script>
+                       
+                       <ul id="virtuallist-normal_1line_ul" data-role="virtuallistview" data-template="tmp-1line" data-dbtable="JSON_DATA" data-row="100">
+                       </ul>
+               </div>
+       </div>
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal_3_1_14.html b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal_3_1_14.html
new file mode 100644 (file)
index 0000000..7d65ed1
--- /dev/null
@@ -0,0 +1,18 @@
+
+<div data-role="page" id="virtuallist-normal_1line-bigicon5" class="virtuallist_demo_page"
+       data-add-back-btn="true">
+       <div data-role="header" data-position="fixed">
+               <h1>Virtual List - Normal Style 1line-bigicon5</h1>
+       </div>
+       <div data-role="content">
+               <script id="tmp-1line-bigicon5" type="text/x-jquery-tmpl">
+                       <li class="ui-li-1line-bigicon5">       
+                               <span class="ui-li-text-main">${NAME}</span>
+                               <img src=${TEAM_LOGO} class="ui-li-bigicon">
+                               <div data-role="button" data-inline="true" data-icon="plus" data-style="circle"></div>
+                       </li>
+               </script>
+               <ul id="virtuallist-normal_1line-bigicon5_ul" data-role="virtuallistview" data-template="tmp-1line-bigicon5" data-dbtable="JSON_DATA" data-row="100">
+               </ul>
+       </div>
+</div>
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal_3_1_4.html b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal_3_1_4.html
new file mode 100644 (file)
index 0000000..7ef26a4
--- /dev/null
@@ -0,0 +1,15 @@
+       <div data-role="page" id="virtuallist-normal_1line-btn1" class="virtuallist_demo_page" data-add-back-btn="true">
+               <div data-role="header" data-position="fixed">
+                       <h1>Virtual List - Normal Style 1line-btn1</h1>
+               </div>
+               <div data-role="content">
+                       <script id="tmp-1line-btn1" type="text/x-jquery-tmpl">
+                               <li class="ui-li-1line-btn1">
+                                       <span class="ui-li-text-main">${NAME}</span>
+                                       <div data-role="button" data-inline="true">${ACTIVE}</div>
+                               </li>
+                       </script>               
+                       <ul id="virtuallist-normal_1line-btn1_ul" data-role="virtuallistview" data-template="tmp-1line-btn1" data-dbtable="JSON_DATA" data-row="100">
+                       </ul>
+               </div>
+       </div>
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal_3_1_6.html b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal_3_1_6.html
new file mode 100644 (file)
index 0000000..cbde96c
--- /dev/null
@@ -0,0 +1,16 @@
+
+<div data-role="page" id="virtuallist-normal_1line-toggle" class="virtuallist_demo_page" data-add-back-btn="true">
+       <div data-role="header" data-position="fixed">
+               <h1>Virtual List - Normal Style 1line-toggle</h1>
+       </div>
+       <div data-role="content">
+               <script id="tmp-1line-toggle" type="text/x-jquery-tmpl">
+                       <li class="ui-li-1line-toggle">
+                               <span class="ui-li-text-main">${NAME}</span>
+                               <div data-role="toggleswitch"/></div>
+                       </li>
+               </script>
+               <ul id="virtuallist-normal_1line-toggle_ul" data-role="virtuallistview" data-template="tmp-1line-toggle" data-dbtable="JSON_DATA" data-row="100">
+               </ul>
+       </div>
+</div>
diff --git a/tct-webuifw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal_3_2_7.html b/tct-webuifw-tests/demos/tizen-winsets/widgets/list/virtuallist-normal_3_2_7.html
new file mode 100644 (file)
index 0000000..f06d891
--- /dev/null
@@ -0,0 +1,21 @@
+
+<div data-role="page" id="virtuallist-normal_2line-star1" class="virtuallist_demo_page"
+       data-add-back-btn="true">
+       <div data-role="header" data-position="fixed">
+               <h1>Virtual List - Normal Style 2line-star1</h1>
+       </div>
+       <div data-role="content">
+               <script id="tmp-2line-star1" type="text/x-jquery-tmpl">
+                       <li class="ui-li-2line-star1">
+                               <span class="ui-li-text-main">${NAME}</span>
+                               <img src="00_winset_icon_favorite_on.png" class="ui-li-icon-sub">
+                               <span class="ui-li-text-sub">${ACTIVE}</span>
+                               <span class="ui-li-text-sub2">${FROM}</span>
+                       </li>
+
+                       </script>
+
+               <ul id="virtuallist-normal_2line-star1_ul" data-role="virtuallistview" data-template="tmp-2line-star1" data-dbtable="JSON_DATA" data-row="100">
+               </ul>
+       </div>
+</div>
diff --git a/tct-webuifw-tests/index.html b/tct-webuifw-tests/index.html
new file mode 100644 (file)
index 0000000..85c2c86
--- /dev/null
@@ -0,0 +1,34 @@
+<!--
+Copyright (c) 2012 Intel Corporation. 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 works must retain the original copyright notice, this list
+of conditions and the following disclaimer.
+*Redistributions in binary form must reproduce the original 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 Intel Corporation nor the names of its contributors
+may be used to endorse or promote products derived from this work without
+specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "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 INTEL CORPORATION 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.
+
+Authors:
+        Fan, Yugang <yugang.fan@intel.com>
+-->
+
+<!doctype html>
+<head>
+    <meta http-equiv="Refresh" content="1; url=tests/unit-tests/index.html">
+</head>
diff --git a/tct-webuifw-tests/libs/js/jquery-1.7.1.js b/tct-webuifw-tests/libs/js/jquery-1.7.1.js
new file mode 100644 (file)
index 0000000..8ccd0ea
--- /dev/null
@@ -0,0 +1,9266 @@
+/*!
+ * jQuery JavaScript Library v1.7.1
+ * http://jquery.com/
+ *
+ * Copyright 2011, John Resig
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * Includes Sizzle.js
+ * http://sizzlejs.com/
+ * Copyright 2011, The Dojo Foundation
+ * Released under the MIT, BSD, and GPL Licenses.
+ *
+ * Date: Mon Nov 21 21:11:03 2011 -0500
+ */
+(function( window, undefined ) {
+
+// Use the correct document accordingly with window argument (sandbox)
+var document = window.document,
+       navigator = window.navigator,
+       location = window.location;
+var jQuery = (function() {
+
+// Define a local copy of jQuery
+var jQuery = function( selector, context ) {
+               // The jQuery object is actually just the init constructor 'enhanced'
+               return new jQuery.fn.init( selector, context, rootjQuery );
+       },
+
+       // Map over jQuery in case of overwrite
+       _jQuery = window.jQuery,
+
+       // Map over the $ in case of overwrite
+       _$ = window.$,
+
+       // A central reference to the root jQuery(document)
+       rootjQuery,
+
+       // A simple way to check for HTML strings or ID strings
+       // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
+       quickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
+
+       // Check if a string has a non-whitespace character in it
+       rnotwhite = /\S/,
+
+       // Used for trimming whitespace
+       trimLeft = /^\s+/,
+       trimRight = /\s+$/,
+
+       // Match a standalone tag
+       rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
+
+       // JSON RegExp
+       rvalidchars = /^[\],:{}\s]*$/,
+       rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
+       rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
+       rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
+
+       // Useragent RegExp
+       rwebkit = /(webkit)[ \/]([\w.]+)/,
+       ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,
+       rmsie = /(msie) ([\w.]+)/,
+       rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
+
+       // Matches dashed string for camelizing
+       rdashAlpha = /-([a-z]|[0-9])/ig,
+       rmsPrefix = /^-ms-/,
+
+       // Used by jQuery.camelCase as callback to replace()
+       fcamelCase = function( all, letter ) {
+               return ( letter + "" ).toUpperCase();
+       },
+
+       // Keep a UserAgent string for use with jQuery.browser
+       userAgent = navigator.userAgent,
+
+       // For matching the engine and version of the browser
+       browserMatch,
+
+       // The deferred used on DOM ready
+       readyList,
+
+       // The ready event handler
+       DOMContentLoaded,
+
+       // Save a reference to some core methods
+       toString = Object.prototype.toString,
+       hasOwn = Object.prototype.hasOwnProperty,
+       push = Array.prototype.push,
+       slice = Array.prototype.slice,
+       trim = String.prototype.trim,
+       indexOf = Array.prototype.indexOf,
+
+       // [[Class]] -> type pairs
+       class2type = {};
+
+jQuery.fn = jQuery.prototype = {
+       constructor: jQuery,
+       init: function( selector, context, rootjQuery ) {
+               var match, elem, ret, doc;
+
+               // Handle $(""), $(null), or $(undefined)
+               if ( !selector ) {
+                       return this;
+               }
+
+               // Handle $(DOMElement)
+               if ( selector.nodeType ) {
+                       this.context = this[0] = selector;
+                       this.length = 1;
+                       return this;
+               }
+
+               // The body element only exists once, optimize finding it
+               if ( selector === "body" && !context && document.body ) {
+                       this.context = document;
+                       this[0] = document.body;
+                       this.selector = selector;
+                       this.length = 1;
+                       return this;
+               }
+
+               // Handle HTML strings
+               if ( typeof selector === "string" ) {
+                       // Are we dealing with HTML string or an ID?
+                       if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
+                               // Assume that strings that start and end with <> are HTML and skip the regex check
+                               match = [ null, selector, null ];
+
+                       } else {
+                               match = quickExpr.exec( selector );
+                       }
+
+                       // Verify a match, and that no context was specified for #id
+                       if ( match && (match[1] || !context) ) {
+
+                               // HANDLE: $(html) -> $(array)
+                               if ( match[1] ) {
+                                       context = context instanceof jQuery ? context[0] : context;
+                                       doc = ( context ? context.ownerDocument || context : document );
+
+                                       // If a single string is passed in and it's a single tag
+                                       // just do a createElement and skip the rest
+                                       ret = rsingleTag.exec( selector );
+
+                                       if ( ret ) {
+                                               if ( jQuery.isPlainObject( context ) ) {
+                                                       selector = [ document.createElement( ret[1] ) ];
+                                                       jQuery.fn.attr.call( selector, context, true );
+
+                                               } else {
+                                                       selector = [ doc.createElement( ret[1] ) ];
+                                               }
+
+                                       } else {
+                                               ret = jQuery.buildFragment( [ match[1] ], [ doc ] );
+                                               selector = ( ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment ).childNodes;
+                                       }
+
+                                       return jQuery.merge( this, selector );
+
+                               // HANDLE: $("#id")
+                               } else {
+                                       elem = document.getElementById( match[2] );
+
+                                       // Check parentNode to catch when Blackberry 4.6 returns
+                                       // nodes that are no longer in the document #6963
+                                       if ( elem && elem.parentNode ) {
+                                               // Handle the case where IE and Opera return items
+                                               // by name instead of ID
+                                               if ( elem.id !== match[2] ) {
+                                                       return rootjQuery.find( selector );
+                                               }
+
+                                               // Otherwise, we inject the element directly into the jQuery object
+                                               this.length = 1;
+                                               this[0] = elem;
+                                       }
+
+                                       this.context = document;
+                                       this.selector = selector;
+                                       return this;
+                               }
+
+                       // HANDLE: $(expr, $(...))
+                       } else if ( !context || context.jquery ) {
+                               return ( context || rootjQuery ).find( selector );
+
+                       // HANDLE: $(expr, context)
+                       // (which is just equivalent to: $(context).find(expr)
+                       } else {
+                               return this.constructor( context ).find( selector );
+                       }
+
+               // HANDLE: $(function)
+               // Shortcut for document ready
+               } else if ( jQuery.isFunction( selector ) ) {
+                       return rootjQuery.ready( selector );
+               }
+
+               if ( selector.selector !== undefined ) {
+                       this.selector = selector.selector;
+                       this.context = selector.context;
+               }
+
+               return jQuery.makeArray( selector, this );
+       },
+
+       // Start with an empty selector
+       selector: "",
+
+       // The current version of jQuery being used
+       jquery: "1.7.1",
+
+       // The default length of a jQuery object is 0
+       length: 0,
+
+       // The number of elements contained in the matched element set
+       size: function() {
+               return this.length;
+       },
+
+       toArray: function() {
+               return slice.call( this, 0 );
+       },
+
+       // Get the Nth element in the matched element set OR
+       // Get the whole matched element set as a clean array
+       get: function( num ) {
+               return num == null ?
+
+                       // Return a 'clean' array
+                       this.toArray() :
+
+                       // Return just the object
+                       ( num < 0 ? this[ this.length + num ] : this[ num ] );
+       },
+
+       // Take an array of elements and push it onto the stack
+       // (returning the new matched element set)
+       pushStack: function( elems, name, selector ) {
+               // Build a new jQuery matched element set
+               var ret = this.constructor();
+
+               if ( jQuery.isArray( elems ) ) {
+                       push.apply( ret, elems );
+
+               } else {
+                       jQuery.merge( ret, elems );
+               }
+
+               // Add the old object onto the stack (as a reference)
+               ret.prevObject = this;
+
+               ret.context = this.context;
+
+               if ( name === "find" ) {
+                       ret.selector = this.selector + ( this.selector ? " " : "" ) + selector;
+               } else if ( name ) {
+                       ret.selector = this.selector + "." + name + "(" + selector + ")";
+               }
+
+               // Return the newly-formed element set
+               return ret;
+       },
+
+       // Execute a callback for every element in the matched set.
+       // (You can seed the arguments with an array of args, but this is
+       // only used internally.)
+       each: function( callback, args ) {
+               return jQuery.each( this, callback, args );
+       },
+
+       ready: function( fn ) {
+               // Attach the listeners
+               jQuery.bindReady();
+
+               // Add the callback
+               readyList.add( fn );
+
+               return this;
+       },
+
+       eq: function( i ) {
+               i = +i;
+               return i === -1 ?
+                       this.slice( i ) :
+                       this.slice( i, i + 1 );
+       },
+
+       first: function() {
+               return this.eq( 0 );
+       },
+
+       last: function() {
+               return this.eq( -1 );
+       },
+
+       slice: function() {
+               return this.pushStack( slice.apply( this, arguments ),
+                       "slice", slice.call(arguments).join(",") );
+       },
+
+       map: function( callback ) {
+               return this.pushStack( jQuery.map(this, function( elem, i ) {
+                       return callback.call( elem, i, elem );
+               }));
+       },
+
+       end: function() {
+               return this.prevObject || this.constructor(null);
+       },
+
+       // For internal use only.
+       // Behaves like an Array's method, not like a jQuery method.
+       push: push,
+       sort: [].sort,
+       splice: [].splice
+};
+
+// Give the init function the jQuery prototype for later instantiation
+jQuery.fn.init.prototype = jQuery.fn;
+
+jQuery.extend = jQuery.fn.extend = function() {
+       var options, name, src, copy, copyIsArray, clone,
+               target = arguments[0] || {},
+               i = 1,
+               length = arguments.length,
+               deep = false;
+
+       // Handle a deep copy situation
+       if ( typeof target === "boolean" ) {
+               deep = target;
+               target = arguments[1] || {};
+               // skip the boolean and the target
+               i = 2;
+       }
+
+       // Handle case when target is a string or something (possible in deep copy)
+       if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
+               target = {};
+       }
+
+       // extend jQuery itself if only one argument is passed
+       if ( length === i ) {
+               target = this;
+               --i;
+       }
+
+       for ( ; i < length; i++ ) {
+               // Only deal with non-null/undefined values
+               if ( (options = arguments[ i ]) != null ) {
+                       // Extend the base object
+                       for ( name in options ) {
+                               src = target[ name ];
+                               copy = options[ name ];
+
+                               // Prevent never-ending loop
+                               if ( target === copy ) {
+                                       continue;
+                               }
+
+                               // Recurse if we're merging plain objects or arrays
+                               if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
+                                       if ( copyIsArray ) {
+                                               copyIsArray = false;
+                                               clone = src && jQuery.isArray(src) ? src : [];
+
+                                       } else {
+                                               clone = src && jQuery.isPlainObject(src) ? src : {};
+                                       }
+
+                                       // Never move original objects, clone them
+                                       target[ name ] = jQuery.extend( deep, clone, copy );
+
+                               // Don't bring in undefined values
+                               } else if ( copy !== undefined ) {
+                                       target[ name ] = copy;
+                               }
+                       }
+               }
+       }
+
+       // Return the modified object
+       return target;
+};
+
+jQuery.extend({
+       noConflict: function( deep ) {
+               if ( window.$ === jQuery ) {
+                       window.$ = _$;
+               }
+
+               if ( deep && window.jQuery === jQuery ) {
+                       window.jQuery = _jQuery;
+               }
+
+               return jQuery;
+       },
+
+       // Is the DOM ready to be used? Set to true once it occurs.
+       isReady: false,
+
+       // A counter to track how many items to wait for before
+       // the ready event fires. See #6781
+       readyWait: 1,
+
+       // Hold (or release) the ready event
+       holdReady: function( hold ) {
+               if ( hold ) {
+                       jQuery.readyWait++;
+               } else {
+                       jQuery.ready( true );
+               }
+       },
+
+       // Handle when the DOM is ready
+       ready: function( wait ) {
+               // Either a released hold or an DOMready/load event and not yet ready
+               if ( (wait === true && !--jQuery.readyWait) || (wait !== true && !jQuery.isReady) ) {
+                       // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
+                       if ( !document.body ) {
+                               return setTimeout( jQuery.ready, 1 );
+                       }
+
+                       // Remember that the DOM is ready
+                       jQuery.isReady = true;
+
+                       // If a normal DOM Ready event fired, decrement, and wait if need be
+                       if ( wait !== true && --jQuery.readyWait > 0 ) {
+                               return;
+                       }
+
+                       // If there are functions bound, to execute
+                       readyList.fireWith( document, [ jQuery ] );
+
+                       // Trigger any bound ready events
+                       if ( jQuery.fn.trigger ) {
+                               jQuery( document ).trigger( "ready" ).off( "ready" );
+                       }
+               }
+       },
+
+       bindReady: function() {
+               if ( readyList ) {
+                       return;
+               }
+
+               readyList = jQuery.Callbacks( "once memory" );
+
+               // Catch cases where $(document).ready() is called after the
+               // browser event has already occurred.
+               if ( document.readyState === "complete" ) {
+                       // Handle it asynchronously to allow scripts the opportunity to delay ready
+                       return setTimeout( jQuery.ready, 1 );
+               }
+
+               // Mozilla, Opera and webkit nightlies currently support this event
+               if ( document.addEventListener ) {
+                       // Use the handy event callback
+                       document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
+
+                       // A fallback to window.onload, that will always work
+                       window.addEventListener( "load", jQuery.ready, false );
+
+               // If IE event model is used
+               } else if ( document.attachEvent ) {
+                       // ensure firing before onload,
+                       // maybe late but safe also for iframes
+                       document.attachEvent( "onreadystatechange", DOMContentLoaded );
+
+                       // A fallback to window.onload, that will always work
+                       window.attachEvent( "onload", jQuery.ready );
+
+                       // If IE and not a frame
+                       // continually check to see if the document is ready
+                       var toplevel = false;
+
+                       try {
+                               toplevel = window.frameElement == null;
+                       } catch(e) {}
+
+                       if ( document.documentElement.doScroll && toplevel ) {
+                               doScrollCheck();
+                       }
+               }
+       },
+
+       // See test/unit/core.js for details concerning isFunction.
+       // Since version 1.3, DOM methods and functions like alert
+       // aren't supported. They return false on IE (#2968).
+       isFunction: function( obj ) {
+               return jQuery.type(obj) === "function";
+       },
+
+       isArray: Array.isArray || function( obj ) {
+               return jQuery.type(obj) === "array";
+       },
+
+       // A crude way of determining if an object is a window
+       isWindow: function( obj ) {
+               return obj && typeof obj === "object" && "setInterval" in obj;
+       },
+
+       isNumeric: function( obj ) {
+               return !isNaN( parseFloat(obj) ) && isFinite( obj );
+       },
+
+       type: function( obj ) {
+               return obj == null ?
+                       String( obj ) :
+                       class2type[ toString.call(obj) ] || "object";
+       },
+
+       isPlainObject: function( obj ) {
+               // Must be an Object.
+               // Because of IE, we also have to check the presence of the constructor property.
+               // Make sure that DOM nodes and window objects don't pass through, as well
+               if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
+                       return false;
+               }
+
+               try {
+                       // Not own constructor property must be Object
+                       if ( obj.constructor &&
+                               !hasOwn.call(obj, "constructor") &&
+                               !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
+                               return false;
+                       }
+               } catch ( e ) {
+                       // IE8,9 Will throw exceptions on certain host objects #9897
+                       return false;
+               }
+
+               // Own properties are enumerated firstly, so to speed up,
+               // if last one is own, then all properties are own.
+
+               var key;
+               for ( key in obj ) {}
+
+               return key === undefined || hasOwn.call( obj, key );
+       },
+
+       isEmptyObject: function( obj ) {
+               for ( var name in obj ) {
+                       return false;
+               }
+               return true;
+       },
+
+       error: function( msg ) {
+               throw new Error( msg );
+       },
+
+       parseJSON: function( data ) {
+               if ( typeof data !== "string" || !data ) {
+                       return null;
+               }
+
+               // Make sure leading/trailing whitespace is removed (IE can't handle it)
+               data = jQuery.trim( data );
+
+               // Attempt to parse using the native JSON parser first
+               if ( window.JSON && window.JSON.parse ) {
+                       return window.JSON.parse( data );
+               }
+
+               // Make sure the incoming data is actual JSON
+               // Logic borrowed from http://json.org/json2.js
+               if ( rvalidchars.test( data.replace( rvalidescape, "@" )
+                       .replace( rvalidtokens, "]" )
+                       .replace( rvalidbraces, "")) ) {
+
+                       return ( new Function( "return " + data ) )();
+
+               }
+               jQuery.error( "Invalid JSON: " + data );
+       },
+
+       // Cross-browser xml parsing
+       parseXML: function( data ) {
+               var xml, tmp;
+               try {
+                       if ( window.DOMParser ) { // Standard
+                               tmp = new DOMParser();
+                               xml = tmp.parseFromString( data , "text/xml" );
+                       } else { // IE
+                               xml = new ActiveXObject( "Microsoft.XMLDOM" );
+                               xml.async = "false";
+                               xml.loadXML( data );
+                       }
+               } catch( e ) {
+                       xml = undefined;
+               }
+               if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
+                       jQuery.error( "Invalid XML: " + data );
+               }
+               return xml;
+       },
+
+       noop: function() {},
+
+       // Evaluates a script in a global context
+       // Workarounds based on findings by Jim Driscoll
+       // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
+       globalEval: function( data ) {
+               if ( data && rnotwhite.test( data ) ) {
+                       // We use execScript on Internet Explorer
+                       // We use an anonymous function so that context is window
+                       // rather than jQuery in Firefox
+                       ( window.execScript || function( data ) {
+                               window[ "eval" ].call( window, data );
+                       } )( data );
+               }
+       },
+
+       // Convert dashed to camelCase; used by the css and data modules
+       // Microsoft forgot to hump their vendor prefix (#9572)
+       camelCase: function( string ) {
+               return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
+       },
+
+       nodeName: function( elem, name ) {
+               return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
+       },
+
+       // args is for internal usage only
+       each: function( object, callback, args ) {
+               var name, i = 0,
+                       length = object.length,
+                       isObj = length === undefined || jQuery.isFunction( object );
+
+               if ( args ) {
+                       if ( isObj ) {
+                               for ( name in object ) {
+                                       if ( callback.apply( object[ name ], args ) === false ) {
+                                               break;
+                                       }
+                               }
+                       } else {
+                               for ( ; i < length; ) {
+                                       if ( callback.apply( object[ i++ ], args ) === false ) {
+                                               break;
+                                       }
+                               }
+                       }
+
+               // A special, fast, case for the most common use of each
+               } else {
+                       if ( isObj ) {
+                               for ( name in object ) {
+                                       if ( callback.call( object[ name ], name, object[ name ] ) === false ) {
+                                               break;
+                                       }
+                               }
+                       } else {
+                               for ( ; i < length; ) {
+                                       if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) {
+                                               break;
+                                       }
+                               }
+                       }
+               }
+
+               return object;
+       },
+
+       // Use native String.trim function wherever possible
+       trim: trim ?
+               function( text ) {
+                       return text == null ?
+                               "" :
+                               trim.call( text );
+               } :
+
+               // Otherwise use our own trimming functionality
+               function( text ) {
+                       return text == null ?
+                               "" :
+                               text.toString().replace( trimLeft, "" ).replace( trimRight, "" );
+               },
+
+       // results is for internal usage only
+       makeArray: function( array, results ) {
+               var ret = results || [];
+
+               if ( array != null ) {
+                       // The window, strings (and functions) also have 'length'
+                       // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
+                       var type = jQuery.type( array );
+
+                       if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) {
+                               push.call( ret, array );
+                       } else {
+                               jQuery.merge( ret, array );
+                       }
+               }
+
+               return ret;
+       },
+
+       inArray: function( elem, array, i ) {
+               var len;
+
+               if ( array ) {
+                       if ( indexOf ) {
+                               return indexOf.call( array, elem, i );
+                       }
+
+                       len = array.length;
+                       i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;
+
+                       for ( ; i < len; i++ ) {
+                               // Skip accessing in sparse arrays
+                               if ( i in array && array[ i ] === elem ) {
+                                       return i;
+                               }
+                       }
+               }
+
+               return -1;
+       },
+
+       merge: function( first, second ) {
+               var i = first.length,
+                       j = 0;
+
+               if ( typeof second.length === "number" ) {
+                       for ( var l = second.length; j < l; j++ ) {
+                               first[ i++ ] = second[ j ];
+                       }
+
+               } else {
+                       while ( second[j] !== undefined ) {
+                               first[ i++ ] = second[ j++ ];
+                       }
+               }
+
+               first.length = i;
+
+               return first;
+       },
+
+       grep: function( elems, callback, inv ) {
+               var ret = [], retVal;
+               inv = !!inv;
+
+               // Go through the array, only saving the items
+               // that pass the validator function
+               for ( var i = 0, length = elems.length; i < length; i++ ) {
+                       retVal = !!callback( elems[ i ], i );
+                       if ( inv !== retVal ) {
+                               ret.push( elems[ i ] );
+                       }
+               }
+
+               return ret;
+       },
+
+       // arg is for internal usage only
+       map: function( elems, callback, arg ) {
+               var value, key, ret = [],
+                       i = 0,
+                       length = elems.length,
+                       // jquery objects are treated as arrays
+                       isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ;
+
+               // Go through the array, translating each of the items to their
+               if ( isArray ) {
+                       for ( ; i < length; i++ ) {
+                               value = callback( elems[ i ], i, arg );
+
+                               if ( value != null ) {
+                                       ret[ ret.length ] = value;
+                               }
+                       }
+
+               // Go through every key on the object,
+               } else {
+                       for ( key in elems ) {
+                               value = callback( elems[ key ], key, arg );
+
+                               if ( value != null ) {
+                                       ret[ ret.length ] = value;
+                               }
+                       }
+               }
+
+               // Flatten any nested arrays
+               return ret.concat.apply( [], ret );
+       },
+
+       // A global GUID counter for objects
+       guid: 1,
+
+       // Bind a function to a context, optionally partially applying any
+       // arguments.
+       proxy: function( fn, context ) {
+               if ( typeof context === "string" ) {
+                       var tmp = fn[ context ];
+                       context = fn;
+                       fn = tmp;
+               }
+
+               // Quick check to determine if target is callable, in the spec
+               // this throws a TypeError, but we will just return undefined.
+               if ( !jQuery.isFunction( fn ) ) {
+                       return undefined;
+               }
+
+               // Simulated bind
+               var args = slice.call( arguments, 2 ),
+                       proxy = function() {
+                               return fn.apply( context, args.concat( slice.call( arguments ) ) );
+                       };
+
+               // Set the guid of unique handler to the same of original handler, so it can be removed
+               proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;
+
+               return proxy;
+       },
+
+       // Mutifunctional method to get and set values to a collection
+       // The value/s can optionally be executed if it's a function
+       access: function( elems, key, value, exec, fn, pass ) {
+               var length = elems.length;
+
+               // Setting many attributes
+               if ( typeof key === "object" ) {
+                       for ( var k in key ) {
+                               jQuery.access( elems, k, key[k], exec, fn, value );
+                       }
+                       return elems;
+               }
+
+               // Setting one attribute
+               if ( value !== undefined ) {
+                       // Optionally, function values get executed if exec is true
+                       exec = !pass && exec && jQuery.isFunction(value);
+
+                       for ( var i = 0; i < length; i++ ) {
+                               fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
+                       }
+
+                       return elems;
+               }
+
+               // Getting an attribute
+               return length ? fn( elems[0], key ) : undefined;
+       },
+
+       now: function() {
+               return ( new Date() ).getTime();
+       },
+
+       // Use of jQuery.browser is frowned upon.
+       // More details: http://docs.jquery.com/Utilities/jQuery.browser
+       uaMatch: function( ua ) {
+               ua = ua.toLowerCase();
+
+               var match = rwebkit.exec( ua ) ||
+                       ropera.exec( ua ) ||
+                       rmsie.exec( ua ) ||
+                       ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||
+                       [];
+
+               return { browser: match[1] || "", version: match[2] || "0" };
+       },
+
+       sub: function() {
+               function jQuerySub( selector, context ) {
+                       return new jQuerySub.fn.init( selector, context );
+               }
+               jQuery.extend( true, jQuerySub, this );
+               jQuerySub.superclass = this;
+               jQuerySub.fn = jQuerySub.prototype = this();
+               jQuerySub.fn.constructor = jQuerySub;
+               jQuerySub.sub = this.sub;
+               jQuerySub.fn.init = function init( selector, context ) {
+                       if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {
+                               context = jQuerySub( context );
+                       }
+
+                       return jQuery.fn.init.call( this, selector, context, rootjQuerySub );
+               };
+               jQuerySub.fn.init.prototype = jQuerySub.fn;
+               var rootjQuerySub = jQuerySub(document);
+               return jQuerySub;
+       },
+
+       browser: {}
+});
+
+// Populate the class2type map
+jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {
+       class2type[ "[object " + name + "]" ] = name.toLowerCase();
+});
+
+browserMatch = jQuery.uaMatch( userAgent );
+if ( browserMatch.browser ) {
+       jQuery.browser[ browserMatch.browser ] = true;
+       jQuery.browser.version = browserMatch.version;
+}
+
+// Deprecated, use jQuery.browser.webkit instead
+if ( jQuery.browser.webkit ) {
+       jQuery.browser.safari = true;
+}
+
+// IE doesn't match non-breaking spaces with \s
+if ( rnotwhite.test( "\xA0" ) ) {
+       trimLeft = /^[\s\xA0]+/;
+       trimRight = /[\s\xA0]+$/;
+}
+
+// All jQuery objects should point back to these
+rootjQuery = jQuery(document);
+
+// Cleanup functions for the document ready method
+if ( document.addEventListener ) {
+       DOMContentLoaded = function() {
+               document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
+               jQuery.ready();
+       };
+
+} else if ( document.attachEvent ) {
+       DOMContentLoaded = function() {
+               // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
+               if ( document.readyState === "complete" ) {
+                       document.detachEvent( "onreadystatechange", DOMContentLoaded );
+                       jQuery.ready();
+               }
+       };
+}
+
+// The DOM ready check for Internet Explorer
+function doScrollCheck() {
+       if ( jQuery.isReady ) {
+               return;
+       }
+
+       try {
+               // If IE is used, use the trick by Diego Perini
+               // http://javascript.nwbox.com/IEContentLoaded/
+               document.documentElement.doScroll("left");
+       } catch(e) {
+               setTimeout( doScrollCheck, 1 );
+               return;
+       }
+
+       // and execute any waiting functions
+       jQuery.ready();
+}
+
+return jQuery;
+
+})();
+
+
+// String to Object flags format cache
+var flagsCache = {};
+
+// Convert String-formatted flags into Object-formatted ones and store in cache
+function createFlags( flags ) {
+       var object = flagsCache[ flags ] = {},
+               i, length;
+       flags = flags.split( /\s+/ );
+       for ( i = 0, length = flags.length; i < length; i++ ) {
+               object[ flags[i] ] = true;
+       }
+       return object;
+}
+
+/*
+ * Create a callback list using the following parameters:
+ *
+ *     flags:  an optional list of space-separated flags that will change how
+ *                     the callback list behaves
+ *
+ * By default a callback list will act like an event callback list and can be
+ * "fired" multiple times.
+ *
+ * Possible flags:
+ *
+ *     once:                   will ensure the callback list can only be fired once (like a Deferred)
+ *
+ *     memory:                 will keep track of previous values and will call any callback added
+ *                                     after the list has been fired right away with the latest "memorized"
+ *                                     values (like a Deferred)
+ *
+ *     unique:                 will ensure a callback can only be added once (no duplicate in the list)
+ *
+ *     stopOnFalse:    interrupt callings when a callback returns false
+ *
+ */
+jQuery.Callbacks = function( flags ) {
+
+       // Convert flags from String-formatted to Object-formatted
+       // (we check in cache first)
+       flags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {};
+
+       var // Actual callback list
+               list = [],
+               // Stack of fire calls for repeatable lists
+               stack = [],
+               // Last fire value (for non-forgettable lists)
+               memory,
+               // Flag to know if list is currently firing
+               firing,
+               // First callback to fire (used internally by add and fireWith)
+               firingStart,
+               // End of the loop when firing
+               firingLength,
+               // Index of currently firing callback (modified by remove if needed)
+               firingIndex,
+               // Add one or several callbacks to the list
+               add = function( args ) {
+                       var i,
+                               length,
+                               elem,
+                               type,
+                               actual;
+                       for ( i = 0, length = args.length; i < length; i++ ) {
+                               elem = args[ i ];
+                               type = jQuery.type( elem );
+                               if ( type === "array" ) {
+                                       // Inspect recursively
+                                       add( elem );
+                               } else if ( type === "function" ) {
+                                       // Add if not in unique mode and callback is not in
+                                       if ( !flags.unique || !self.has( elem ) ) {
+                                               list.push( elem );
+                                       }
+                               }
+                       }
+               },
+               // Fire callbacks
+               fire = function( context, args ) {
+                       args = args || [];
+                       memory = !flags.memory || [ context, args ];
+                       firing = true;
+                       firingIndex = firingStart || 0;
+                       firingStart = 0;
+                       firingLength = list.length;
+                       for ( ; list && firingIndex < firingLength; firingIndex++ ) {
+                               if ( list[ firingIndex ].apply( context, args ) === false && flags.stopOnFalse ) {
+                                       memory = true; // Mark as halted
+                                       break;
+                               }
+                       }
+                       firing = false;
+                       if ( list ) {
+                               if ( !flags.once ) {
+                                       if ( stack && stack.length ) {
+                                               memory = stack.shift();
+                                               self.fireWith( memory[ 0 ], memory[ 1 ] );
+                                       }
+                               } else if ( memory === true ) {
+                                       self.disable();
+                               } else {
+                                       list = [];
+                               }
+                       }
+               },
+               // Actual Callbacks object
+               self = {
+                       // Add a callback or a collection of callbacks to the list
+                       add: function() {
+                               if ( list ) {
+                                       var length = list.length;
+                                       add( arguments );
+                                       // Do we need to add the callbacks to the
+                                       // current firing batch?
+                                       if ( firing ) {
+                                               firingLength = list.length;
+                                       // With memory, if we're not firing then
+                                       // we should call right away, unless previous
+                                       // firing was halted (stopOnFalse)
+                                       } else if ( memory && memory !== true ) {
+                                               firingStart = length;
+                                               fire( memory[ 0 ], memory[ 1 ] );
+                                       }
+                               }
+                               return this;
+                       },
+                       // Remove a callback from the list
+                       remove: function() {
+                               if ( list ) {
+                                       var args = arguments,
+                                               argIndex = 0,
+                                               argLength = args.length;
+                                       for ( ; argIndex < argLength ; argIndex++ ) {
+                                               for ( var i = 0; i < list.length; i++ ) {
+                                                       if ( args[ argIndex ] === list[ i ] ) {
+                                                               // Handle firingIndex and firingLength
+                                                               if ( firing ) {
+                                                                       if ( i <= firingLength ) {
+                                                                               firingLength--;
+                                                                               if ( i <= firingIndex ) {
+                                                                                       firingIndex--;
+                                                                               }
+                                                                       }
+                                                               }
+                                                               // Remove the element
+                                                               list.splice( i--, 1 );
+                                                               // If we have some unicity property then
+                                                               // we only need to do this once
+                                                               if ( flags.unique ) {
+                                                                       break;
+                                                               }
+                                                       }
+                                               }
+                                       }
+                               }
+                               return this;
+                       },
+                       // Control if a given callback is in the list
+                       has: function( fn ) {
+                               if ( list ) {
+                                       var i = 0,
+                                               length = list.length;
+                                       for ( ; i < length; i++ ) {
+                                               if ( fn === list[ i ] ) {
+                                                       return true;
+                                               }
+                                       }
+                               }
+                               return false;
+                       },
+                       // Remove all callbacks from the list
+                       empty: function() {
+                               list = [];
+                               return this;
+                       },
+                       // Have the list do nothing anymore
+                       disable: function() {
+                               list = stack = memory = undefined;
+                               return this;
+                       },
+                       // Is it disabled?
+                       disabled: function() {
+                               return !list;
+                       },
+                       // Lock the list in its current state
+                       lock: function() {
+                               stack = undefined;
+                               if ( !memory || memory === true ) {
+                                       self.disable();
+                               }
+                               return this;
+                       },
+                       // Is it locked?
+                       locked: function() {
+                               return !stack;
+                       },
+                       // Call all callbacks with the given context and arguments
+                       fireWith: function( context, args ) {
+                               if ( stack ) {
+                                       if ( firing ) {
+                                               if ( !flags.once ) {
+                                                       stack.push( [ context, args ] );
+                                               }
+                                       } else if ( !( flags.once && memory ) ) {
+                                               fire( context, args );
+                                       }
+                               }
+                               return this;
+                       },
+                       // Call all the callbacks with the given arguments
+                       fire: function() {
+                               self.fireWith( this, arguments );
+                               return this;
+                       },
+                       // To know if the callbacks have already been called at least once
+                       fired: function() {
+                               return !!memory;
+                       }
+               };
+
+       return self;
+};
+
+
+
+
+var // Static reference to slice
+       sliceDeferred = [].slice;
+
+jQuery.extend({
+
+       Deferred: function( func ) {
+               var doneList = jQuery.Callbacks( "once memory" ),
+                       failList = jQuery.Callbacks( "once memory" ),
+                       progressList = jQuery.Callbacks( "memory" ),
+                       state = "pending",
+                       lists = {
+                               resolve: doneList,
+                               reject: failList,
+                               notify: progressList
+                       },
+                       promise = {
+                               done: doneList.add,
+                               fail: failList.add,
+                               progress: progressList.add,
+
+                               state: function() {
+                                       return state;
+                               },
+
+                               // Deprecated
+                               isResolved: doneList.fired,
+                               isRejected: failList.fired,
+
+                               then: function( doneCallbacks, failCallbacks, progressCallbacks ) {
+                                       deferred.done( doneCallbacks ).fail( failCallbacks ).progress( progressCallbacks );
+                                       return this;
+                               },
+                               always: function() {
+                                       deferred.done.apply( deferred, arguments ).fail.apply( deferred, arguments );
+                                       return this;
+                               },
+                               pipe: function( fnDone, fnFail, fnProgress ) {
+                                       return jQuery.Deferred(function( newDefer ) {
+                                               jQuery.each( {
+                                                       done: [ fnDone, "resolve" ],
+                                                       fail: [ fnFail, "reject" ],
+                                                       progress: [ fnProgress, "notify" ]
+                                               }, function( handler, data ) {
+                                                       var fn = data[ 0 ],
+                                                               action = data[ 1 ],
+                                                               returned;
+                                                       if ( jQuery.isFunction( fn ) ) {
+                                                               deferred[ handler ](function() {
+                                                                       returned = fn.apply( this, arguments );
+                                                                       if ( returned && jQuery.isFunction( returned.promise ) ) {
+                                                                               returned.promise().then( newDefer.resolve, newDefer.reject, newDefer.notify );
+                                                                       } else {
+                                                                               newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] );
+                                                                       }
+                                                               });
+                                                       } else {
+                                                               deferred[ handler ]( newDefer[ action ] );
+                                                       }
+                                               });
+                                       }).promise();
+                               },
+                               // Get a promise for this deferred
+                               // If obj is provided, the promise aspect is added to the object
+                               promise: function( obj ) {
+                                       if ( obj == null ) {
+                                               obj = promise;
+                                       } else {
+                                               for ( var key in promise ) {
+                                                       obj[ key ] = promise[ key ];
+                                               }
+                                       }
+                                       return obj;
+                               }
+                       },
+                       deferred = promise.promise({}),
+                       key;
+
+               for ( key in lists ) {
+                       deferred[ key ] = lists[ key ].fire;
+                       deferred[ key + "With" ] = lists[ key ].fireWith;
+               }
+
+               // Handle state
+               deferred.done( function() {
+                       state = "resolved";
+               }, failList.disable, progressList.lock ).fail( function() {
+                       state = "rejected";
+               }, doneList.disable, progressList.lock );
+
+               // Call given func if any
+               if ( func ) {
+                       func.call( deferred, deferred );
+               }
+
+               // All done!
+               return deferred;
+       },
+
+       // Deferred helper
+       when: function( firstParam ) {
+               var args = sliceDeferred.call( arguments, 0 ),
+                       i = 0,
+                       length = args.length,
+                       pValues = new Array( length ),
+                       count = length,
+                       pCount = length,
+                       deferred = length <= 1 && firstParam && jQuery.isFunction( firstParam.promise ) ?
+                               firstParam :
+                               jQuery.Deferred(),
+                       promise = deferred.promise();
+               function resolveFunc( i ) {
+                       return function( value ) {
+                               args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
+                               if ( !( --count ) ) {
+                                       deferred.resolveWith( deferred, args );
+                               }
+                       };
+               }
+               function progressFunc( i ) {
+                       return function( value ) {
+                               pValues[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
+                               deferred.notifyWith( promise, pValues );
+                       };
+               }
+               if ( length > 1 ) {
+                       for ( ; i < length; i++ ) {
+                               if ( args[ i ] && args[ i ].promise && jQuery.isFunction( args[ i ].promise ) ) {
+                                       args[ i ].promise().then( resolveFunc(i), deferred.reject, progressFunc(i) );
+                               } else {
+                                       --count;
+                               }
+                       }
+                       if ( !count ) {
+                               deferred.resolveWith( deferred, args );
+                       }
+               } else if ( deferred !== firstParam ) {
+                       deferred.resolveWith( deferred, length ? [ firstParam ] : [] );
+               }
+               return promise;
+       }
+});
+
+
+
+
+jQuery.support = (function() {
+
+       var support,
+               all,
+               a,
+               select,
+               opt,
+               input,
+               marginDiv,
+               fragment,
+               tds,
+               events,
+               eventName,
+               i,
+               isSupported,
+               div = document.createElement( "div" ),
+               documentElement = document.documentElement;
+
+       // Preliminary tests
+       div.setAttribute("className", "t");
+       div.innerHTML = "   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
+
+       all = div.getElementsByTagName( "*" );
+       a = div.getElementsByTagName( "a" )[ 0 ];
+
+       // Can't get basic test support
+       if ( !all || !all.length || !a ) {
+               return {};
+       }
+
+       // First batch of supports tests
+       select = document.createElement( "select" );
+       opt = select.appendChild( document.createElement("option") );
+       input = div.getElementsByTagName( "input" )[ 0 ];
+
+       support = {
+               // IE strips leading whitespace when .innerHTML is used
+               leadingWhitespace: ( div.firstChild.nodeType === 3 ),
+
+               // Make sure that tbody elements aren't automatically inserted
+               // IE will insert them into empty tables
+               tbody: !div.getElementsByTagName("tbody").length,
+
+               // Make sure that link elements get serialized correctly by innerHTML
+               // This requires a wrapper element in IE
+               htmlSerialize: !!div.getElementsByTagName("link").length,
+
+               // Get the style information from getAttribute
+               // (IE uses .cssText instead)
+               style: /top/.test( a.getAttribute("style") ),
+
+               // Make sure that URLs aren't manipulated
+               // (IE normalizes it by default)
+               hrefNormalized: ( a.getAttribute("href") === "/a" ),
+
+               // Make sure that element opacity exists
+               // (IE uses filter instead)
+               // Use a regex to work around a WebKit issue. See #5145
+               opacity: /^0.55/.test( a.style.opacity ),
+
+               // Verify style float existence
+               // (IE uses styleFloat instead of cssFloat)
+               cssFloat: !!a.style.cssFloat,
+
+               // Make sure that if no value is specified for a checkbox
+               // that it defaults to "on".
+               // (WebKit defaults to "" instead)
+               checkOn: ( input.value === "on" ),
+
+               // Make sure that a selected-by-default option has a working selected property.
+               // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
+               optSelected: opt.selected,
+
+               // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
+               getSetAttribute: div.className !== "t",
+
+               // Tests for enctype support on a form(#6743)
+               enctype: !!document.createElement("form").enctype,
+
+               // Makes sure cloning an html5 element does not cause problems
+               // Where outerHTML is undefined, this still works
+               html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav></:nav>",
+
+               // Will be defined later
+               submitBubbles: true,
+               changeBubbles: true,
+               focusinBubbles: false,
+               deleteExpando: true,
+               noCloneEvent: true,
+               inlineBlockNeedsLayout: false,
+               shrinkWrapBlocks: false,
+               reliableMarginRight: true
+       };
+
+       // Make sure checked status is properly cloned
+       input.checked = true;
+       support.noCloneChecked = input.cloneNode( true ).checked;
+
+       // Make sure that the options inside disabled selects aren't marked as disabled
+       // (WebKit marks them as disabled)
+       select.disabled = true;
+       support.optDisabled = !opt.disabled;
+
+       // Test to see if it's possible to delete an expando from an element
+       // Fails in Internet Explorer
+       try {
+               delete div.test;
+       } catch( e ) {
+               support.deleteExpando = false;
+       }
+
+       if ( !div.addEventListener && div.attachEvent && div.fireEvent ) {
+               div.attachEvent( "onclick", function() {
+                       // Cloning a node shouldn't copy over any
+                       // bound event handlers (IE does this)
+                       support.noCloneEvent = false;
+               });
+               div.cloneNode( true ).fireEvent( "onclick" );
+       }
+
+       // Check if a radio maintains its value
+       // after being appended to the DOM
+       input = document.createElement("input");
+       input.value = "t";
+       input.setAttribute("type", "radio");
+       support.radioValue = input.value === "t";
+
+       input.setAttribute("checked", "checked");
+       div.appendChild( input );
+       fragment = document.createDocumentFragment();
+       fragment.appendChild( div.lastChild );
+
+       // WebKit doesn't clone checked state correctly in fragments
+       support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;
+
+       // Check if a disconnected checkbox will retain its checked
+       // value of true after appended to the DOM (IE6/7)
+       support.appendChecked = input.checked;
+
+       fragment.removeChild( input );
+       fragment.appendChild( div );
+
+       div.innerHTML = "";
+
+       // Check if div with explicit width and no margin-right incorrectly
+       // gets computed margin-right based on width of container. For more
+       // info see bug #3333
+       // Fails in WebKit before Feb 2011 nightlies
+       // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
+       if ( window.getComputedStyle ) {
+               marginDiv = document.createElement( "div" );
+               marginDiv.style.width = "0";
+               marginDiv.style.marginRight = "0";
+               div.style.width = "2px";
+               div.appendChild( marginDiv );
+               support.reliableMarginRight =
+                       ( parseInt( ( window.getComputedStyle( marginDiv, null ) || { marginRight: 0 } ).marginRight, 10 ) || 0 ) === 0;
+       }
+
+       // Technique from Juriy Zaytsev
+       // http://perfectionkills.com/detecting-event-support-without-browser-sniffing/
+       // We only care about the case where non-standard event systems
+       // are used, namely in IE. Short-circuiting here helps us to
+       // avoid an eval call (in setAttribute) which can cause CSP
+       // to go haywire. See: https://developer.mozilla.org/en/Security/CSP
+       if ( div.attachEvent ) {
+               for( i in {
+                       submit: 1,
+                       change: 1,
+                       focusin: 1
+               }) {
+                       eventName = "on" + i;
+                       isSupported = ( eventName in div );
+                       if ( !isSupported ) {
+                               div.setAttribute( eventName, "return;" );
+                               isSupported = ( typeof div[ eventName ] === "function" );
+                       }
+                       support[ i + "Bubbles" ] = isSupported;
+               }
+       }
+
+       fragment.removeChild( div );
+
+       // Null elements to avoid leaks in IE
+       fragment = select = opt = marginDiv = div = input = null;
+
+       // Run tests that need a body at doc ready
+       jQuery(function() {
+               var container, outer, inner, table, td, offsetSupport,
+                       conMarginTop, ptlm, vb, style, html,
+                       body = document.getElementsByTagName("body")[0];
+
+               if ( !body ) {
+                       // Return for frameset docs that don't have a body
+                       return;
+               }
+
+               conMarginTop = 1;
+               ptlm = "position:absolute;top:0;left:0;width:1px;height:1px;margin:0;";
+               vb = "visibility:hidden;border:0;";
+               style = "style='" + ptlm + "border:5px solid #000;padding:0;'";
+               html = "<div " + style + "><div></div></div>" +
+                       "<table " + style + " cellpadding='0' cellspacing='0'>" +
+                       "<tr><td></td></tr></table>";
+
+               container = document.createElement("div");
+               container.style.cssText = vb + "width:0;height:0;position:static;top:0;margin-top:" + conMarginTop + "px";
+               body.insertBefore( container, body.firstChild );
+
+               // Construct the test element
+               div = document.createElement("div");
+               container.appendChild( div );
+
+               // Check if table cells still have offsetWidth/Height when they are set
+               // to display:none and there are still other visible table cells in a
+               // table row; if so, offsetWidth/Height are not reliable for use when
+               // determining if an element has been hidden directly using
+               // display:none (it is still safe to use offsets if a parent element is
+               // hidden; don safety goggles and see bug #4512 for more information).
+               // (only IE 8 fails this test)
+               div.innerHTML = "<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";
+               tds = div.getElementsByTagName( "td" );
+               isSupported = ( tds[ 0 ].offsetHeight === 0 );
+
+               tds[ 0 ].style.display = "";
+               tds[ 1 ].style.display = "none";
+
+               // Check if empty table cells still have offsetWidth/Height
+               // (IE <= 8 fail this test)
+               support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 );
+
+               // Figure out if the W3C box model works as expected
+               div.innerHTML = "";
+               div.style.width = div.style.paddingLeft = "1px";
+               jQuery.boxModel = support.boxModel = div.offsetWidth === 2;
+
+               if ( typeof div.style.zoom !== "undefined" ) {
+                       // Check if natively block-level elements act like inline-block
+                       // elements when setting their display to 'inline' and giving
+                       // them layout
+                       // (IE < 8 does this)
+                       div.style.display = "inline";
+                       div.style.zoom = 1;
+                       support.inlineBlockNeedsLayout = ( div.offsetWidth === 2 );
+
+                       // Check if elements with layout shrink-wrap their children
+                       // (IE 6 does this)
+                       div.style.display = "";
+                       div.innerHTML = "<div style='width:4px;'></div>";
+                       support.shrinkWrapBlocks = ( div.offsetWidth !== 2 );
+               }
+
+               div.style.cssText = ptlm + vb;
+               div.innerHTML = html;
+
+               outer = div.firstChild;
+               inner = outer.firstChild;
+               td = outer.nextSibling.firstChild.firstChild;
+
+               offsetSupport = {
+                       doesNotAddBorder: ( inner.offsetTop !== 5 ),
+                       doesAddBorderForTableAndCells: ( td.offsetTop === 5 )
+               };
+
+               inner.style.position = "fixed";
+               inner.style.top = "20px";
+
+               // safari subtracts parent border width here which is 5px
+               offsetSupport.fixedPosition = ( inner.offsetTop === 20 || inner.offsetTop === 15 );
+               inner.style.position = inner.style.top = "";
+
+               outer.style.overflow = "hidden";
+               outer.style.position = "relative";
+
+               offsetSupport.subtractsBorderForOverflowNotVisible = ( inner.offsetTop === -5 );
+               offsetSupport.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== conMarginTop );
+
+               body.removeChild( container );
+               div  = container = null;
+
+               jQuery.extend( support, offsetSupport );
+       });
+
+       return support;
+})();
+
+
+
+
+var rbrace = /^(?:\{.*\}|\[.*\])$/,
+       rmultiDash = /([A-Z])/g;
+
+jQuery.extend({
+       cache: {},
+
+       // Please use with caution
+       uuid: 0,
+
+       // Unique for each copy of jQuery on the page
+       // Non-digits removed to match rinlinejQuery
+       expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ),
+
+       // The following elements throw uncatchable exceptions if you
+       // attempt to add expando properties to them.
+       noData: {
+               "embed": true,
+               // Ban all objects except for Flash (which handle expandos)
+               "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
+               "applet": true
+       },
+
+       hasData: function( elem ) {
+               elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];
+               return !!elem && !isEmptyDataObject( elem );
+       },
+
+       data: function( elem, name, data, pvt /* Internal Use Only */ ) {
+               if ( !jQuery.acceptData( elem ) ) {
+                       return;
+               }
+
+               var privateCache, thisCache, ret,
+                       internalKey = jQuery.expando,
+                       getByName = typeof name === "string",
+
+                       // We have to handle DOM nodes and JS objects differently because IE6-7
+                       // can't GC object references properly across the DOM-JS boundary
+                       isNode = elem.nodeType,
+
+                       // Only DOM nodes need the global jQuery cache; JS object data is
+                       // attached directly to the object so GC can occur automatically
+                       cache = isNode ? jQuery.cache : elem,
+
+                       // Only defining an ID for JS objects if its cache already exists allows
+                       // the code to shortcut on the same path as a DOM node with no cache
+                       id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey,
+                       isEvents = name === "events";
+
+               // Avoid doing any more work than we need to when trying to get data on an
+               // object that has no data at all
+               if ( (!id || !cache[id] || (!isEvents && !pvt && !cache[id].data)) && getByName && data === undefined ) {
+                       return;
+               }
+
+               if ( !id ) {
+                       // Only DOM nodes need a new unique ID for each element since their data
+                       // ends up in the global cache
+                       if ( isNode ) {
+                               elem[ internalKey ] = id = ++jQuery.uuid;
+                       } else {
+                               id = internalKey;
+                       }
+               }
+
+               if ( !cache[ id ] ) {
+                       cache[ id ] = {};
+
+                       // Avoids exposing jQuery metadata on plain JS objects when the object
+                       // is serialized using JSON.stringify
+                       if ( !isNode ) {
+                               cache[ id ].toJSON = jQuery.noop;
+                       }
+               }
+
+               // An object can be passed to jQuery.data instead of a key/value pair; this gets
+               // shallow copied over onto the existing cache
+               if ( typeof name === "object" || typeof name === "function" ) {
+                       if ( pvt ) {
+                               cache[ id ] = jQuery.extend( cache[ id ], name );
+                       } else {
+                               cache[ id ].data = jQuery.extend( cache[ id ].data, name );
+                       }
+               }
+
+               privateCache = thisCache = cache[ id ];
+
+               // jQuery data() is stored in a separate object inside the object's internal data
+               // cache in order to avoid key collisions between internal data and user-defined
+               // data.
+               if ( !pvt ) {
+                       if ( !thisCache.data ) {
+                               thisCache.data = {};
+                       }
+
+                       thisCache = thisCache.data;
+               }
+
+               if ( data !== undefined ) {
+                       thisCache[ jQuery.camelCase( name ) ] = data;
+               }
+
+               // Users should not attempt to inspect the internal events object using jQuery.data,
+               // it is undocumented and subject to change. But does anyone listen? No.
+               if ( isEvents && !thisCache[ name ] ) {
+                       return privateCache.events;
+               }
+
+               // Check for both converted-to-camel and non-converted data property names
+               // If a data property was specified
+               if ( getByName ) {
+
+                       // First Try to find as-is property data
+                       ret = thisCache[ name ];
+
+                       // Test for null|undefined property data
+                       if ( ret == null ) {
+
+                               // Try to find the camelCased property
+                               ret = thisCache[ jQuery.camelCase( name ) ];
+                       }
+               } else {
+                       ret = thisCache;
+               }
+
+               return ret;
+       },
+
+       removeData: function( elem, name, pvt /* Internal Use Only */ ) {
+               if ( !jQuery.acceptData( elem ) ) {
+                       return;
+               }
+
+               var thisCache, i, l,
+
+                       // Reference to internal data cache key
+                       internalKey = jQuery.expando,
+
+                       isNode = elem.nodeType,
+
+                       // See jQuery.data for more information
+                       cache = isNode ? jQuery.cache : elem,
+
+                       // See jQuery.data for more information
+                       id = isNode ? elem[ internalKey ] : internalKey;
+
+               // If there is already no cache entry for this object, there is no
+               // purpose in continuing
+               if ( !cache[ id ] ) {
+                       return;
+               }
+
+               if ( name ) {
+
+                       thisCache = pvt ? cache[ id ] : cache[ id ].data;
+
+                       if ( thisCache ) {
+
+                               // Support array or space separated string names for data keys
+                               if ( !jQuery.isArray( name ) ) {
+
+                                       // try the string as a key before any manipulation
+                                       if ( name in thisCache ) {
+                                               name = [ name ];
+                                       } else {
+
+                                               // split the camel cased version by spaces unless a key with the spaces exists
+                                               name = jQuery.camelCase( name );
+                                               if ( name in thisCache ) {
+                                                       name = [ name ];
+                                               } else {
+                                                       name = name.split( " " );
+                                               }
+                                       }
+                               }
+
+                               for ( i = 0, l = name.length; i < l; i++ ) {
+                                       delete thisCache[ name[i] ];
+                               }
+
+                               // If there is no data left in the cache, we want to continue
+                               // and let the cache object itself get destroyed
+                               if ( !( pvt ? isEmptyDataObject : jQuery.isEmptyObject )( thisCache ) ) {
+                                       return;
+                               }
+                       }
+               }
+
+               // See jQuery.data for more information
+               if ( !pvt ) {
+                       delete cache[ id ].data;
+
+                       // Don't destroy the parent cache unless the internal data object
+                       // had been the only thing left in it
+                       if ( !isEmptyDataObject(cache[ id ]) ) {
+                               return;
+                       }
+               }
+
+               // Browsers that fail expando deletion also refuse to delete expandos on
+               // the window, but it will allow it on all other JS objects; other browsers
+               // don't care
+               // Ensure that `cache` is not a window object #10080
+               if ( jQuery.support.deleteExpando || !cache.setInterval ) {
+                       delete cache[ id ];
+               } else {
+                       cache[ id ] = null;
+               }
+
+               // We destroyed the cache and need to eliminate the expando on the node to avoid
+               // false lookups in the cache for entries that no longer exist
+               if ( isNode ) {
+                       // IE does not allow us to delete expando properties from nodes,
+                       // nor does it have a removeAttribute function on Document nodes;
+                       // we must handle all of these cases
+                       if ( jQuery.support.deleteExpando ) {
+                               delete elem[ internalKey ];
+                       } else if ( elem.removeAttribute ) {
+                               elem.removeAttribute( internalKey );
+                       } else {
+                               elem[ internalKey ] = null;
+                       }
+               }
+       },
+
+       // For internal use only.
+       _data: function( elem, name, data ) {
+               return jQuery.data( elem, name, data, true );
+       },
+
+       // A method for determining if a DOM node can handle the data expando
+       acceptData: function( elem ) {
+               if ( elem.nodeName ) {
+                       var match = jQuery.noData[ elem.nodeName.toLowerCase() ];
+
+                       if ( match ) {
+                               return !(match === true || elem.getAttribute("classid") !== match);
+                       }
+               }
+
+               return true;
+       }
+});
+
+jQuery.fn.extend({
+       data: function( key, value ) {
+               var parts, attr, name,
+                       data = null;
+
+               if ( typeof key === "undefined" ) {
+                       if ( this.length ) {
+                               data = jQuery.data( this[0] );
+
+                               if ( this[0].nodeType === 1 && !jQuery._data( this[0], "parsedAttrs" ) ) {
+                                       attr = this[0].attributes;
+                                       for ( var i = 0, l = attr.length; i < l; i++ ) {
+                                               name = attr[i].name;
+
+                                               if ( name.indexOf( "data-" ) === 0 ) {
+                                                       name = jQuery.camelCase( name.substring(5) );
+
+                                                       dataAttr( this[0], name, data[ name ] );
+                                               }
+                                       }
+                                       jQuery._data( this[0], "parsedAttrs", true );
+                               }
+                       }
+
+                       return data;
+
+               } else if ( typeof key === "object" ) {
+                       return this.each(function() {
+                               jQuery.data( this, key );
+                       });
+               }
+
+               parts = key.split(".");
+               parts[1] = parts[1] ? "." + parts[1] : "";
+
+               if ( value === undefined ) {
+                       data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
+
+                       // Try to fetch any internally stored data first
+                       if ( data === undefined && this.length ) {
+                               data = jQuery.data( this[0], key );
+                               data = dataAttr( this[0], key, data );
+                       }
+
+                       return data === undefined && parts[1] ?
+                               this.data( parts[0] ) :
+                               data;
+
+               } else {
+                       return this.each(function() {
+                               var self = jQuery( this ),
+                                       args = [ parts[0], value ];
+
+                               self.triggerHandler( "setData" + parts[1] + "!", args );
+                               jQuery.data( this, key, value );
+                               self.triggerHandler( "changeData" + parts[1] + "!", args );
+                       });
+               }
+       },
+
+       removeData: function( key ) {
+               return this.each(function() {
+                       jQuery.removeData( this, key );
+               });
+       }
+});
+
+function dataAttr( elem, key, data ) {
+       // If nothing was found internally, try to fetch any
+       // data from the HTML5 data-* attribute
+       if ( data === undefined && elem.nodeType === 1 ) {
+
+               var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
+
+               data = elem.getAttribute( name );
+
+               if ( typeof data === "string" ) {
+                       try {
+                               data = data === "true" ? true :
+                               data === "false" ? false :
+                               data === "null" ? null :
+                               jQuery.isNumeric( data ) ? parseFloat( data ) :
+                                       rbrace.test( data ) ? jQuery.parseJSON( data ) :
+                                       data;
+                       } catch( e ) {}
+
+                       // Make sure we set the data so it isn't changed later
+                       jQuery.data( elem, key, data );
+
+               } else {
+                       data = undefined;
+               }
+       }
+
+       return data;
+}
+
+// checks a cache object for emptiness
+function isEmptyDataObject( obj ) {
+       for ( var name in obj ) {
+
+               // if the public data object is empty, the private is still empty
+               if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {
+                       continue;
+               }
+               if ( name !== "toJSON" ) {
+                       return false;
+               }
+       }
+
+       return true;
+}
+
+
+
+
+function handleQueueMarkDefer( elem, type, src ) {
+       var deferDataKey = type + "defer",
+               queueDataKey = type + "queue",
+               markDataKey = type + "mark",
+               defer = jQuery._data( elem, deferDataKey );
+       if ( defer &&
+               ( src === "queue" || !jQuery._data(elem, queueDataKey) ) &&
+               ( src === "mark" || !jQuery._data(elem, markDataKey) ) ) {
+               // Give room for hard-coded callbacks to fire first
+               // and eventually mark/queue something else on the element
+               setTimeout( function() {
+                       if ( !jQuery._data( elem, queueDataKey ) &&
+                               !jQuery._data( elem, markDataKey ) ) {
+                               jQuery.removeData( elem, deferDataKey, true );
+                               defer.fire();
+                       }
+               }, 0 );
+       }
+}
+
+jQuery.extend({
+
+       _mark: function( elem, type ) {
+               if ( elem ) {
+                       type = ( type || "fx" ) + "mark";
+                       jQuery._data( elem, type, (jQuery._data( elem, type ) || 0) + 1 );
+               }
+       },
+
+       _unmark: function( force, elem, type ) {
+               if ( force !== true ) {
+                       type = elem;
+                       elem = force;
+                       force = false;
+               }
+               if ( elem ) {
+                       type = type || "fx";
+                       var key = type + "mark",
+                               count = force ? 0 : ( (jQuery._data( elem, key ) || 1) - 1 );
+                       if ( count ) {
+                               jQuery._data( elem, key, count );
+                       } else {
+                               jQuery.removeData( elem, key, true );
+                               handleQueueMarkDefer( elem, type, "mark" );
+                       }
+               }
+       },
+
+       queue: function( elem, type, data ) {
+               var q;
+               if ( elem ) {
+                       type = ( type || "fx" ) + "queue";
+                       q = jQuery._data( elem, type );
+
+                       // Speed up dequeue by getting out quickly if this is just a lookup
+                       if ( data ) {
+                               if ( !q || jQuery.isArray(data) ) {
+                                       q = jQuery._data( elem, type, jQuery.makeArray(data) );
+                               } else {
+                                       q.push( data );
+                               }
+                       }
+                       return q || [];
+               }
+       },
+
+       dequeue: function( elem, type ) {
+               type = type || "fx";
+
+               var queue = jQuery.queue( elem, type ),
+                       fn = queue.shift(),
+                       hooks = {};
+
+               // If the fx queue is dequeued, always remove the progress sentinel
+               if ( fn === "inprogress" ) {
+                       fn = queue.shift();
+               }
+
+               if ( fn ) {
+                       // Add a progress sentinel to prevent the fx queue from being
+                       // automatically dequeued
+                       if ( type === "fx" ) {
+                               queue.unshift( "inprogress" );
+                       }
+
+                       jQuery._data( elem, type + ".run", hooks );
+                       fn.call( elem, function() {
+                               jQuery.dequeue( elem, type );
+                       }, hooks );
+               }
+
+               if ( !queue.length ) {
+                       jQuery.removeData( elem, type + "queue " + type + ".run", true );
+                       handleQueueMarkDefer( elem, type, "queue" );
+               }
+       }
+});
+
+jQuery.fn.extend({
+       queue: function( type, data ) {
+               if ( typeof type !== "string" ) {
+                       data = type;
+                       type = "fx";
+               }
+
+               if ( data === undefined ) {
+                       return jQuery.queue( this[0], type );
+               }
+               return this.each(function() {
+                       var queue = jQuery.queue( this, type, data );
+
+                       if ( type === "fx" && queue[0] !== "inprogress" ) {
+                               jQuery.dequeue( this, type );
+                       }
+               });
+       },
+       dequeue: function( type ) {
+               return this.each(function() {
+                       jQuery.dequeue( this, type );
+               });
+       },
+       // Based off of the plugin by Clint Helfers, with permission.
+       // http://blindsignals.com/index.php/2009/07/jquery-delay/
+       delay: function( time, type ) {
+               time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
+               type = type || "fx";
+
+               return this.queue( type, function( next, hooks ) {
+                       var timeout = setTimeout( next, time );
+                       hooks.stop = function() {
+                               clearTimeout( timeout );
+                       };
+               });
+       },
+       clearQueue: function( type ) {
+               return this.queue( type || "fx", [] );
+       },
+       // Get a promise resolved when queues of a certain type
+       // are emptied (fx is the type by default)
+       promise: function( type, object ) {
+               if ( typeof type !== "string" ) {
+                       object = type;
+                       type = undefined;
+               }
+               type = type || "fx";
+               var defer = jQuery.Deferred(),
+                       elements = this,
+                       i = elements.length,
+                       count = 1,
+                       deferDataKey = type + "defer",
+                       queueDataKey = type + "queue",
+                       markDataKey = type + "mark",
+                       tmp;
+               function resolve() {
+                       if ( !( --count ) ) {
+                               defer.resolveWith( elements, [ elements ] );
+                       }
+               }
+               while( i-- ) {
+                       if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) ||
+                                       ( jQuery.data( elements[ i ], queueDataKey, undefined, true ) ||
+                                               jQuery.data( elements[ i ], markDataKey, undefined, true ) ) &&
+                                       jQuery.data( elements[ i ], deferDataKey, jQuery.Callbacks( "once memory" ), true ) )) {
+                               count++;
+                               tmp.add( resolve );
+                       }
+               }
+               resolve();
+               return defer.promise();
+       }
+});
+
+
+
+
+var rclass = /[\n\t\r]/g,
+       rspace = /\s+/,
+       rreturn = /\r/g,
+       rtype = /^(?:button|input)$/i,
+       rfocusable = /^(?:button|input|object|select|textarea)$/i,
+       rclickable = /^a(?:rea)?$/i,
+       rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
+       getSetAttribute = jQuery.support.getSetAttribute,
+       nodeHook, boolHook, fixSpecified;
+
+jQuery.fn.extend({
+       attr: function( name, value ) {
+               return jQuery.access( this, name, value, true, jQuery.attr );
+       },
+
+       removeAttr: function( name ) {
+               return this.each(function() {
+                       jQuery.removeAttr( this, name );
+               });
+       },
+
+       prop: function( name, value ) {
+               return jQuery.access( this, name, value, true, jQuery.prop );
+       },
+
+       removeProp: function( name ) {
+               name = jQuery.propFix[ name ] || name;
+               return this.each(function() {
+                       // try/catch handles cases where IE balks (such as removing a property on window)
+                       try {
+                               this[ name ] = undefined;
+                               delete this[ name ];
+                       } catch( e ) {}
+               });
+       },
+
+       addClass: function( value ) {
+               var classNames, i, l, elem,
+                       setClass, c, cl;
+
+               if ( jQuery.isFunction( value ) ) {
+                       return this.each(function( j ) {
+                               jQuery( this ).addClass( value.call(this, j, this.className) );
+                       });
+               }
+
+               if ( value && typeof value === "string" ) {
+                       classNames = value.split( rspace );
+
+                       for ( i = 0, l = this.length; i < l; i++ ) {
+                               elem = this[ i ];
+
+                               if ( elem.nodeType === 1 ) {
+                                       if ( !elem.className && classNames.length === 1 ) {
+                                               elem.className = value;
+
+                                       } else {
+                                               setClass = " " + elem.className + " ";
+
+                                               for ( c = 0, cl = classNames.length; c < cl; c++ ) {
+                                                       if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) {
+                                                               setClass += classNames[ c ] + " ";
+                                                       }
+                                               }
+                                               elem.className = jQuery.trim( setClass );
+                                       }
+                               }
+                       }
+               }
+
+               return this;
+       },
+
+       removeClass: function( value ) {
+               var classNames, i, l, elem, className, c, cl;
+
+               if ( jQuery.isFunction( value ) ) {
+                       return this.each(function( j ) {
+                               jQuery( this ).removeClass( value.call(this, j, this.className) );
+                       });
+               }
+
+               if ( (value && typeof value === "string") || value === undefined ) {
+                       classNames = ( value || "" ).split( rspace );
+
+                       for ( i = 0, l = this.length; i < l; i++ ) {
+                               elem = this[ i ];
+
+                               if ( elem.nodeType === 1 && elem.className ) {
+                                       if ( value ) {
+                                               className = (" " + elem.className + " ").replace( rclass, " " );
+                                               for ( c = 0, cl = classNames.length; c < cl; c++ ) {
+                                                       className = className.replace(" " + classNames[ c ] + " ", " ");
+                                               }
+                                               elem.className = jQuery.trim( className );
+
+                                       } else {
+                                               elem.className = "";
+                                       }
+                               }
+                       }
+               }
+
+               return this;
+       },
+
+       toggleClass: function( value, stateVal ) {
+               var type = typeof value,
+                       isBool = typeof stateVal === "boolean";
+
+               if ( jQuery.isFunction( value ) ) {
+                       return this.each(function( i ) {
+                               jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
+                       });
+               }
+
+               return this.each(function() {
+                       if ( type === "string" ) {
+                               // toggle individual class names
+                               var className,
+                                       i = 0,
+                                       self = jQuery( this ),
+                                       state = stateVal,
+                                       classNames = value.split( rspace );
+
+                               while ( (className = classNames[ i++ ]) ) {
+                                       // check each className given, space seperated list
+                                       state = isBool ? state : !self.hasClass( className );
+                                       self[ state ? "addClass" : "removeClass" ]( className );
+                               }
+
+                       } else if ( type === "undefined" || type === "boolean" ) {
+                               if ( this.className ) {
+                                       // store className if set
+                                       jQuery._data( this, "__className__", this.className );
+                               }
+
+                               // toggle whole className
+                               this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";
+                       }
+               });
+       },
+
+       hasClass: function( selector ) {
+               var className = " " + selector + " ",
+                       i = 0,
+                       l = this.length;
+               for ( ; i < l; i++ ) {
+                       if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
+                               return true;
+                       }
+               }
+
+               return false;
+       },
+
+       val: function( value ) {
+               var hooks, ret, isFunction,
+                       elem = this[0];
+
+               if ( !arguments.length ) {
+                       if ( elem ) {
+                               hooks = jQuery.valHooks[ elem.nodeName.toLowerCase() ] || jQuery.valHooks[ elem.type ];
+
+                               if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
+                                       return ret;
+                               }
+
+                               ret = elem.value;
+
+                               return typeof ret === "string" ?
+                                       // handle most common string cases
+                                       ret.replace(rreturn, "") :
+                                       // handle cases where value is null/undef or number
+                                       ret == null ? "" : ret;
+                       }
+
+                       return;
+               }
+
+               isFunction = jQuery.isFunction( value );
+
+               return this.each(function( i ) {
+                       var self = jQuery(this), val;
+
+                       if ( this.nodeType !== 1 ) {
+                               return;
+                       }
+
+                       if ( isFunction ) {
+                               val = value.call( this, i, self.val() );
+                       } else {
+                               val = value;
+                       }
+
+                       // Treat null/undefined as ""; convert numbers to string
+                       if ( val == null ) {
+                               val = "";
+                       } else if ( typeof val === "number" ) {
+                               val += "";
+                       } else if ( jQuery.isArray( val ) ) {
+                               val = jQuery.map(val, function ( value ) {
+                                       return value == null ? "" : value + "";
+                               });
+                       }
+
+                       hooks = jQuery.valHooks[ this.nodeName.toLowerCase() ] || jQuery.valHooks[ this.type ];
+
+                       // If set returns undefined, fall back to normal setting
+                       if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
+                               this.value = val;
+                       }
+               });
+       }
+});
+
+jQuery.extend({
+       valHooks: {
+               option: {
+                       get: function( elem ) {
+                               // attributes.value is undefined in Blackberry 4.7 but
+                               // uses .value. See #6932
+                               var val = elem.attributes.value;
+                               return !val || val.specified ? elem.value : elem.text;
+                       }
+               },
+               select: {
+                       get: function( elem ) {
+                               var value, i, max, option,
+                                       index = elem.selectedIndex,
+                                       values = [],
+                                       options = elem.options,
+                                       one = elem.type === "select-one";
+
+                               // Nothing was selected
+                               if ( index < 0 ) {
+                                       return null;
+                               }
+
+                               // Loop through all the selected options
+                               i = one ? index : 0;
+                               max = one ? index + 1 : options.length;
+                               for ( ; i < max; i++ ) {
+                                       option = options[ i ];
+
+                                       // Don't return options that are disabled or in a disabled optgroup
+                                       if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) &&
+                                                       (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
+
+                                               // Get the specific value for the option
+                                               value = jQuery( option ).val();
+
+                                               // We don't need an array for one selects
+                                               if ( one ) {
+                                                       return value;
+                                               }
+
+                                               // Multi-Selects return an array
+                                               values.push( value );
+                                       }
+                               }
+
+                               // Fixes Bug #2551 -- select.val() broken in IE after form.reset()
+                               if ( one && !values.length && options.length ) {
+                                       return jQuery( options[ index ] ).val();
+                               }
+
+                               return values;
+                       },
+
+                       set: function( elem, value ) {
+                               var values = jQuery.makeArray( value );
+
+                               jQuery(elem).find("option").each(function() {
+                                       this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
+                               });
+
+                               if ( !values.length ) {
+                                       elem.selectedIndex = -1;
+                               }
+                               return values;
+                       }
+               }
+       },
+
+       attrFn: {
+               val: true,
+               css: true,
+               html: true,
+               text: true,
+               data: true,
+               width: true,
+               height: true,
+               offset: true
+       },
+
+       attr: function( elem, name, value, pass ) {
+               var ret, hooks, notxml,
+                       nType = elem.nodeType;
+
+               // don't get/set attributes on text, comment and attribute nodes
+               if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
+                       return;
+               }
+
+               if ( pass && name in jQuery.attrFn ) {
+                       return jQuery( elem )[ name ]( value );
+               }
+
+               // Fallback to prop when attributes are not supported
+               if ( typeof elem.getAttribute === "undefined" ) {
+                       return jQuery.prop( elem, name, value );
+               }
+
+               notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
+
+               // All attributes are lowercase
+               // Grab necessary hook if one is defined
+               if ( notxml ) {
+                       name = name.toLowerCase();
+                       hooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook );
+               }
+
+               if ( value !== undefined ) {
+
+                       if ( value === null ) {
+                               jQuery.removeAttr( elem, name );
+                               return;
+
+                       } else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) {
+                               return ret;
+
+                       } else {
+                               elem.setAttribute( name, "" + value );
+                               return value;
+                       }
+
+               } else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) {
+                       return ret;
+
+               } else {
+
+                       ret = elem.getAttribute( name );
+
+                       // Non-existent attributes return null, we normalize to undefined
+                       return ret === null ?
+                               undefined :
+                               ret;
+               }
+       },
+
+       removeAttr: function( elem, value ) {
+               var propName, attrNames, name, l,
+                       i = 0;
+
+               if ( value && elem.nodeType === 1 ) {
+                       attrNames = value.toLowerCase().split( rspace );
+                       l = attrNames.length;
+
+                       for ( ; i < l; i++ ) {
+                               name = attrNames[ i ];
+
+                               if ( name ) {
+                                       propName = jQuery.propFix[ name ] || name;
+
+                                       // See #9699 for explanation of this approach (setting first, then removal)
+                                       jQuery.attr( elem, name, "" );
+                                       elem.removeAttribute( getSetAttribute ? name : propName );
+
+                                       // Set corresponding property to false for boolean attributes
+                                       if ( rboolean.test( name ) && propName in elem ) {
+                                               elem[ propName ] = false;
+                                       }
+                               }
+                       }
+               }
+       },
+
+       attrHooks: {
+               type: {
+                       set: function( elem, value ) {
+                               // We can't allow the type property to be changed (since it causes problems in IE)
+                               if ( rtype.test( elem.nodeName ) && elem.parentNode ) {
+                                       jQuery.error( "type property can't be changed" );
+                               } else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
+                                       // Setting the type on a radio button after the value resets the value in IE6-9
+                                       // Reset value to it's default in case type is set after value
+                                       // This is for element creation
+                                       var val = elem.value;
+                                       elem.setAttribute( "type", value );
+                                       if ( val ) {
+                                               elem.value = val;
+                                       }
+                                       return value;
+                               }
+                       }
+               },
+               // Use the value property for back compat
+               // Use the nodeHook for button elements in IE6/7 (#1954)
+               value: {
+                       get: function( elem, name ) {
+                               if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
+                                       return nodeHook.get( elem, name );
+                               }
+                               return name in elem ?
+                                       elem.value :
+                                       null;
+                       },
+                       set: function( elem, value, name ) {
+                               if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
+                                       return nodeHook.set( elem, value, name );
+                               }
+                               // Does not return so that setAttribute is also used
+                               elem.value = value;
+                       }
+               }
+       },
+
+       propFix: {
+               tabindex: "tabIndex",
+               readonly: "readOnly",
+               "for": "htmlFor",
+               "class": "className",
+               maxlength: "maxLength",
+               cellspacing: "cellSpacing",
+               cellpadding: "cellPadding",
+               rowspan: "rowSpan",
+               colspan: "colSpan",
+               usemap: "useMap",
+               frameborder: "frameBorder",
+               contenteditable: "contentEditable"
+       },
+
+       prop: function( elem, name, value ) {
+               var ret, hooks, notxml,
+                       nType = elem.nodeType;
+
+               // don't get/set properties on text, comment and attribute nodes
+               if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
+                       return;
+               }
+
+               notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
+
+               if ( notxml ) {
+                       // Fix name and attach hooks
+                       name = jQuery.propFix[ name ] || name;
+                       hooks = jQuery.propHooks[ name ];
+               }
+
+               if ( value !== undefined ) {
+                       if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
+                               return ret;
+
+                       } else {
+                               return ( elem[ name ] = value );
+                       }
+
+               } else {
+                       if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
+                               return ret;
+
+                       } else {
+                               return elem[ name ];
+                       }
+               }
+       },
+
+       propHooks: {
+               tabIndex: {
+                       get: function( elem ) {
+                               // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
+                               // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
+                               var attributeNode = elem.getAttributeNode("tabindex");
+
+                               return attributeNode && attributeNode.specified ?
+                                       parseInt( attributeNode.value, 10 ) :
+                                       rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
+                                               0 :
+                                               undefined;
+                       }
+               }
+       }
+});
+
+// Add the tabIndex propHook to attrHooks for back-compat (different case is intentional)
+jQuery.attrHooks.tabindex = jQuery.propHooks.tabIndex;
+
+// Hook for boolean attributes
+boolHook = {
+       get: function( elem, name ) {
+               // Align boolean attributes with corresponding properties
+               // Fall back to attribute presence where some booleans are not supported
+               var attrNode,
+                       property = jQuery.prop( elem, name );
+               return property === true || typeof property !== "boolean" && ( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ?
+                       name.toLowerCase() :
+                       undefined;
+       },
+       set: function( elem, value, name ) {
+               var propName;
+               if ( value === false ) {
+                       // Remove boolean attributes when set to false
+                       jQuery.removeAttr( elem, name );
+               } else {
+                       // value is true since we know at this point it's type boolean and not false
+                       // Set boolean attributes to the same name and set the DOM property
+                       propName = jQuery.propFix[ name ] || name;
+                       if ( propName in elem ) {
+                               // Only set the IDL specifically if it already exists on the element
+                               elem[ propName ] = true;
+                       }
+
+                       elem.setAttribute( name, name.toLowerCase() );
+               }
+               return name;
+       }
+};
+
+// IE6/7 do not support getting/setting some attributes with get/setAttribute
+if ( !getSetAttribute ) {
+
+       fixSpecified = {
+               name: true,
+               id: true
+       };
+
+       // Use this for any attribute in IE6/7
+       // This fixes almost every IE6/7 issue
+       nodeHook = jQuery.valHooks.button = {
+               get: function( elem, name ) {
+                       var ret;
+                       ret = elem.getAttributeNode( name );
+                       return ret && ( fixSpecified[ name ] ? ret.nodeValue !== "" : ret.specified ) ?
+                               ret.nodeValue :
+                               undefined;
+               },
+               set: function( elem, value, name ) {
+                       // Set the existing or create a new attribute node
+                       var ret = elem.getAttributeNode( name );
+                       if ( !ret ) {
+                               ret = document.createAttribute( name );
+                               elem.setAttributeNode( ret );
+                       }
+                       return ( ret.nodeValue = value + "" );
+               }
+       };
+
+       // Apply the nodeHook to tabindex
+       jQuery.attrHooks.tabindex.set = nodeHook.set;
+
+       // Set width and height to auto instead of 0 on empty string( Bug #8150 )
+       // This is for removals
+       jQuery.each([ "width", "height" ], function( i, name ) {
+               jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
+                       set: function( elem, value ) {
+                               if ( value === "" ) {
+                                       elem.setAttribute( name, "auto" );
+                                       return value;
+                               }
+                       }
+               });
+       });
+
+       // Set contenteditable to false on removals(#10429)
+       // Setting to empty string throws an error as an invalid value
+       jQuery.attrHooks.contenteditable = {
+               get: nodeHook.get,
+               set: function( elem, value, name ) {
+                       if ( value === "" ) {
+                               value = "false";
+                       }
+                       nodeHook.set( elem, value, name );
+               }
+       };
+}
+
+
+// Some attributes require a special call on IE
+if ( !jQuery.support.hrefNormalized ) {
+       jQuery.each([ "href", "src", "width", "height" ], function( i, name ) {
+               jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
+                       get: function( elem ) {
+                               var ret = elem.getAttribute( name, 2 );
+                               return ret === null ? undefined : ret;
+                       }
+               });
+       });
+}
+
+if ( !jQuery.support.style ) {
+       jQuery.attrHooks.style = {
+               get: function( elem ) {
+                       // Return undefined in the case of empty string
+                       // Normalize to lowercase since IE uppercases css property names
+                       return elem.style.cssText.toLowerCase() || undefined;
+               },
+               set: function( elem, value ) {
+                       return ( elem.style.cssText = "" + value );
+               }
+       };
+}
+
+// Safari mis-reports the default selected property of an option
+// Accessing the parent's selectedIndex property fixes it
+if ( !jQuery.support.optSelected ) {
+       jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {
+               get: function( elem ) {
+                       var parent = elem.parentNode;
+
+                       if ( parent ) {
+                               parent.selectedIndex;
+
+                               // Make sure that it also works with optgroups, see #5701
+                               if ( parent.parentNode ) {
+                                       parent.parentNode.selectedIndex;
+                               }
+                       }
+                       return null;
+               }
+       });
+}
+
+// IE6/7 call enctype encoding
+if ( !jQuery.support.enctype ) {
+       jQuery.propFix.enctype = "encoding";
+}
+
+// Radios and checkboxes getter/setter
+if ( !jQuery.support.checkOn ) {
+       jQuery.each([ "radio", "checkbox" ], function() {
+               jQuery.valHooks[ this ] = {
+                       get: function( elem ) {
+                               // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
+                               return elem.getAttribute("value") === null ? "on" : elem.value;
+                       }
+               };
+       });
+}
+jQuery.each([ "radio", "checkbox" ], function() {
+       jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {
+               set: function( elem, value ) {
+                       if ( jQuery.isArray( value ) ) {
+                               return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
+                       }
+               }
+       });
+});
+
+
+
+
+var rformElems = /^(?:textarea|input|select)$/i,
+       rtypenamespace = /^([^\.]*)?(?:\.(.+))?$/,
+       rhoverHack = /\bhover(\.\S+)?\b/,
+       rkeyEvent = /^key/,
+       rmouseEvent = /^(?:mouse|contextmenu)|click/,
+       rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
+       rquickIs = /^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,
+       quickParse = function( selector ) {
+               var quick = rquickIs.exec( selector );
+               if ( quick ) {
+                       //   0  1    2   3
+                       // [ _, tag, id, class ]
+                       quick[1] = ( quick[1] || "" ).toLowerCase();
+                       quick[3] = quick[3] && new RegExp( "(?:^|\\s)" + quick[3] + "(?:\\s|$)" );
+               }
+               return quick;
+       },
+       quickIs = function( elem, m ) {
+               var attrs = elem.attributes || {};
+               return (
+                       (!m[1] || elem.nodeName.toLowerCase() === m[1]) &&
+                       (!m[2] || (attrs.id || {}).value === m[2]) &&
+                       (!m[3] || m[3].test( (attrs[ "class" ] || {}).value ))
+               );
+       },
+       hoverHack = function( events ) {
+               return jQuery.event.special.hover ? events : events.replace( rhoverHack, "mouseenter$1 mouseleave$1" );
+       };
+
+/*
+ * Helper functions for managing events -- not part of the public interface.
+ * Props to Dean Edwards' addEvent library for many of the ideas.
+ */
+jQuery.event = {
+
+       add: function( elem, types, handler, data, selector ) {
+
+               var elemData, eventHandle, events,
+                       t, tns, type, namespaces, handleObj,
+                       handleObjIn, quick, handlers, special;
+
+               // Don't attach events to noData or text/comment nodes (allow plain objects tho)
+               if ( elem.nodeType === 3 || elem.nodeType === 8 || !types || !handler || !(elemData = jQuery._data( elem )) ) {
+                       return;
+               }
+
+               // Caller can pass in an object of custom data in lieu of the handler
+               if ( handler.handler ) {
+                       handleObjIn = handler;
+                       handler = handleObjIn.handler;
+               }
+
+               // Make sure that the handler has a unique ID, used to find/remove it later
+               if ( !handler.guid ) {
+                       handler.guid = jQuery.guid++;
+               }
+
+               // Init the element's event structure and main handler, if this is the first
+               events = elemData.events;
+               if ( !events ) {
+                       elemData.events = events = {};
+               }
+               eventHandle = elemData.handle;
+               if ( !eventHandle ) {
+                       elemData.handle = eventHandle = function( e ) {
+                               // Discard the second event of a jQuery.event.trigger() and
+                               // when an event is called after a page has unloaded
+                               return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ?
+                                       jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
+                                       undefined;
+                       };
+                       // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events
+                       eventHandle.elem = elem;
+               }
+
+               // Handle multiple events separated by a space
+               // jQuery(...).bind("mouseover mouseout", fn);
+               types = jQuery.trim( hoverHack(types) ).split( " " );
+               for ( t = 0; t < types.length; t++ ) {
+
+                       tns = rtypenamespace.exec( types[t] ) || [];
+                       type = tns[1];
+                       namespaces = ( tns[2] || "" ).split( "." ).sort();
+
+                       // If event changes its type, use the special event handlers for the changed type
+                       special = jQuery.event.special[ type ] || {};
+
+                       // If selector defined, determine special event api type, otherwise given type
+                       type = ( selector ? special.delegateType : special.bindType ) || type;
+
+                       // Update special based on newly reset type
+                       special = jQuery.event.special[ type ] || {};
+
+                       // handleObj is passed to all event handlers
+                       handleObj = jQuery.extend({
+                               type: type,
+                               origType: tns[1],
+                               data: data,
+                               handler: handler,
+                               guid: handler.guid,
+                               selector: selector,
+                               quick: quickParse( selector ),
+                               namespace: namespaces.join(".")
+                       }, handleObjIn );
+
+                       // Init the event handler queue if we're the first
+                       handlers = events[ type ];
+                       if ( !handlers ) {
+                               handlers = events[ type ] = [];
+                               handlers.delegateCount = 0;
+
+                               // Only use addEventListener/attachEvent if the special events handler returns false
+                               if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
+                                       // Bind the global event handler to the element
+                                       if ( elem.addEventListener ) {
+                                               elem.addEventListener( type, eventHandle, false );
+
+                                       } else if ( elem.attachEvent ) {
+                                               elem.attachEvent( "on" + type, eventHandle );
+                                       }
+                               }
+                       }
+
+                       if ( special.add ) {
+                               special.add.call( elem, handleObj );
+
+                               if ( !handleObj.handler.guid ) {
+                                       handleObj.handler.guid = handler.guid;
+                               }
+                       }
+
+                       // Add to the element's handler list, delegates in front
+                       if ( selector ) {
+                               handlers.splice( handlers.delegateCount++, 0, handleObj );
+                       } else {
+                               handlers.push( handleObj );
+                       }
+
+                       // Keep track of which events have ever been used, for event optimization
+                       jQuery.event.global[ type ] = true;
+               }
+
+               // Nullify elem to prevent memory leaks in IE
+               elem = null;
+       },
+
+       global: {},
+
+       // Detach an event or set of events from an element
+       remove: function( elem, types, handler, selector, mappedTypes ) {
+
+               var elemData = jQuery.hasData( elem ) && jQuery._data( elem ),
+                       t, tns, type, origType, namespaces, origCount,
+                       j, events, special, handle, eventType, handleObj;
+
+               if ( !elemData || !(events = elemData.events) ) {
+                       return;
+               }
+
+               // Once for each type.namespace in types; type may be omitted
+               types = jQuery.trim( hoverHack( types || "" ) ).split(" ");
+               for ( t = 0; t < types.length; t++ ) {
+                       tns = rtypenamespace.exec( types[t] ) || [];
+                       type = origType = tns[1];
+                       namespaces = tns[2];
+
+                       // Unbind all events (on this namespace, if provided) for the element
+                       if ( !type ) {
+                               for ( type in events ) {
+                                       jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
+                               }
+                               continue;
+                       }
+
+                       special = jQuery.event.special[ type ] || {};
+                       type = ( selector? special.delegateType : special.bindType ) || type;
+                       eventType = events[ type ] || [];
+                       origCount = eventType.length;
+                       namespaces = namespaces ? new RegExp("(^|\\.)" + namespaces.split(".").sort().join("\\.(?:.*\\.)?") + "(\\.|$)") : null;
+
+                       // Remove matching events
+                       for ( j = 0; j < eventType.length; j++ ) {
+                               handleObj = eventType[ j ];
+
+                               if ( ( mappedTypes || origType === handleObj.origType ) &&
+                                        ( !handler || handler.guid === handleObj.guid ) &&
+                                        ( !namespaces || namespaces.test( handleObj.namespace ) ) &&
+                                        ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
+                                       eventType.splice( j--, 1 );
+
+                                       if ( handleObj.selector ) {
+                                               eventType.delegateCount--;
+                                       }
+                                       if ( special.remove ) {
+                                               special.remove.call( elem, handleObj );
+                                       }
+                               }
+                       }
+
+                       // Remove generic event handler if we removed something and no more handlers exist
+                       // (avoids potential for endless recursion during removal of special event handlers)
+                       if ( eventType.length === 0 && origCount !== eventType.length ) {
+                               if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {
+                                       jQuery.removeEvent( elem, type, elemData.handle );
+                               }
+
+                               delete events[ type ];
+                       }
+               }
+
+               // Remove the expando if it's no longer used
+               if ( jQuery.isEmptyObject( events ) ) {
+                       handle = elemData.handle;
+                       if ( handle ) {
+                               handle.elem = null;
+                       }
+
+                       // removeData also checks for emptiness and clears the expando if empty
+                       // so use it instead of delete
+                       jQuery.removeData( elem, [ "events", "handle" ], true );
+               }
+       },
+
+       // Events that are safe to short-circuit if no handlers are attached.
+       // Native DOM events should not be added, they may have inline handlers.
+       customEvent: {
+               "getData": true,
+               "setData": true,
+               "changeData": true
+       },
+
+       trigger: function( event, data, elem, onlyHandlers ) {
+               // Don't do events on text and comment nodes
+               if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {
+                       return;
+               }
+
+               // Event object or event type
+               var type = event.type || event,
+                       namespaces = [],
+                       cache, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType;
+
+               // focus/blur morphs to focusin/out; ensure we're not firing them right now
+               if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
+                       return;
+               }
+
+               if ( type.indexOf( "!" ) >= 0 ) {
+                       // Exclusive events trigger only for the exact event (no namespaces)
+                       type = type.slice(0, -1);
+                       exclusive = true;
+               }
+
+               if ( type.indexOf( "." ) >= 0 ) {
+                       // Namespaced trigger; create a regexp to match event type in handle()
+                       namespaces = type.split(".");
+                       type = namespaces.shift();
+                       namespaces.sort();
+               }
+
+               if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) {
+                       // No jQuery handlers for this event type, and it can't have inline handlers
+                       return;
+               }
+
+               // Caller can pass in an Event, Object, or just an event type string
+               event = typeof event === "object" ?
+                       // jQuery.Event object
+                       event[ jQuery.expando ] ? event :
+                       // Object literal
+                       new jQuery.Event( type, event ) :
+                       // Just the event type (string)
+                       new jQuery.Event( type );
+
+               event.type = type;
+               event.isTrigger = true;
+               event.exclusive = exclusive;
+               event.namespace = namespaces.join( "." );
+               event.namespace_re = event.namespace? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)") : null;
+               ontype = type.indexOf( ":" ) < 0 ? "on" + type : "";
+
+               // Handle a global trigger
+               if ( !elem ) {
+
+                       // TODO: Stop taunting the data cache; remove global events and always attach to document
+                       cache = jQuery.cache;
+                       for ( i in cache ) {
+                               if ( cache[ i ].events && cache[ i ].events[ type ] ) {
+                                       jQuery.event.trigger( event, data, cache[ i ].handle.elem, true );
+                               }
+                       }
+                       return;
+               }
+
+               // Clean up the event in case it is being reused
+               event.result = undefined;
+               if ( !event.target ) {
+                       event.target = elem;
+               }
+
+               // Clone any incoming data and prepend the event, creating the handler arg list
+               data = data != null ? jQuery.makeArray( data ) : [];
+               data.unshift( event );
+
+               // Allow special events to draw outside the lines
+               special = jQuery.event.special[ type ] || {};
+               if ( special.trigger && special.trigger.apply( elem, data ) === false ) {
+                       return;
+               }
+
+               // Determine event propagation path in advance, per W3C events spec (#9951)
+               // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
+               eventPath = [[ elem, special.bindType || type ]];
+               if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
+
+                       bubbleType = special.delegateType || type;
+                       cur = rfocusMorph.test( bubbleType + type ) ? elem : elem.parentNode;
+                       old = null;
+                       for ( ; cur; cur = cur.parentNode ) {
+                               eventPath.push([ cur, bubbleType ]);
+                               old = cur;
+                       }
+
+                       // Only add window if we got to document (e.g., not plain obj or detached DOM)
+                       if ( old && old === elem.ownerDocument ) {
+                               eventPath.push([ old.defaultView || old.parentWindow || window, bubbleType ]);
+                       }
+               }
+
+               // Fire handlers on the event path
+               for ( i = 0; i < eventPath.length && !event.isPropagationStopped(); i++ ) {
+
+                       cur = eventPath[i][0];
+                       event.type = eventPath[i][1];
+
+                       handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" );
+                       if ( handle ) {
+                               handle.apply( cur, data );
+                       }
+                       // Note that this is a bare JS function and not a jQuery handler
+                       handle = ontype && cur[ ontype ];
+                       if ( handle && jQuery.acceptData( cur ) && handle.apply( cur, data ) === false ) {
+                               event.preventDefault();
+                       }
+               }
+               event.type = type;
+
+               // If nobody prevented the default action, do it now
+               if ( !onlyHandlers && !event.isDefaultPrevented() ) {
+
+                       if ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) &&
+                               !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) {
+
+                               // Call a native DOM method on the target with the same name name as the event.
+                               // Can't use an .isFunction() check here because IE6/7 fails that test.
+                               // Don't do default actions on window, that's where global variables be (#6170)
+                               // IE<9 dies on focus/blur to hidden element (#1486)
+                               if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {
+
+                                       // Don't re-trigger an onFOO event when we call its FOO() method
+                                       old = elem[ ontype ];
+
+                                       if ( old ) {
+                                               elem[ ontype ] = null;
+                                       }
+
+                                       // Prevent re-triggering of the same event, since we already bubbled it above
+                                       jQuery.event.triggered = type;
+                                       elem[ type ]();
+                                       jQuery.event.triggered = undefined;
+
+                                       if ( old ) {
+                                               elem[ ontype ] = old;
+                                       }
+                               }
+                       }
+               }
+
+               return event.result;
+       },
+
+       dispatch: function( event ) {
+
+               // Make a writable jQuery.Event from the native event object
+               event = jQuery.event.fix( event || window.event );
+
+               var handlers = ( (jQuery._data( this, "events" ) || {} )[ event.type ] || []),
+                       delegateCount = handlers.delegateCount,
+                       args = [].slice.call( arguments, 0 ),
+                       run_all = !event.exclusive && !event.namespace,
+                       handlerQueue = [],
+                       i, j, cur, jqcur, ret, selMatch, matched, matches, handleObj, sel, related;
+
+               // Use the fix-ed jQuery.Event rather than the (read-only) native event
+               args[0] = event;
+               event.delegateTarget = this;
+
+               // Determine handlers that should run if there are delegated events
+               // Avoid disabled elements in IE (#6911) and non-left-click bubbling in Firefox (#3861)
+               if ( delegateCount && !event.target.disabled && !(event.button && event.type === "click") ) {
+
+                       // Pregenerate a single jQuery object for reuse with .is()
+                       jqcur = jQuery(this);
+                       jqcur.context = this.ownerDocument || this;
+
+                       for ( cur = event.target; cur != this; cur = cur.parentNode || this ) {
+                               selMatch = {};
+                               matches = [];
+                               jqcur[0] = cur;
+                               for ( i = 0; i < delegateCount; i++ ) {
+                                       handleObj = handlers[ i ];
+                                       sel = handleObj.selector;
+
+                                       if ( selMatch[ sel ] === undefined ) {
+                                               selMatch[ sel ] = (
+                                                       handleObj.quick ? quickIs( cur, handleObj.quick ) : jqcur.is( sel )
+                                               );
+                                       }
+                                       if ( selMatch[ sel ] ) {
+                                               matches.push( handleObj );
+                                       }
+                               }
+                               if ( matches.length ) {
+                                       handlerQueue.push({ elem: cur, matches: matches });
+                               }
+                       }
+               }
+
+               // Add the remaining (directly-bound) handlers
+               if ( handlers.length > delegateCount ) {
+                       handlerQueue.push({ elem: this, matches: handlers.slice( delegateCount ) });
+               }
+
+               // Run delegates first; they may want to stop propagation beneath us
+               for ( i = 0; i < handlerQueue.length && !event.isPropagationStopped(); i++ ) {
+                       matched = handlerQueue[ i ];
+                       event.currentTarget = matched.elem;
+
+                       for ( j = 0; j < matched.matches.length && !event.isImmediatePropagationStopped(); j++ ) {
+                               handleObj = matched.matches[ j ];
+
+                               // Triggered event must either 1) be non-exclusive and have no namespace, or
+                               // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).
+                               if ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) {
+
+                                       event.data = handleObj.data;
+                                       event.handleObj = handleObj;
+
+                                       ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )
+                                                       .apply( matched.elem, args );
+
+                                       if ( ret !== undefined ) {
+                                               event.result = ret;
+                                               if ( ret === false ) {
+                                                       event.preventDefault();
+                                                       event.stopPropagation();
+                                               }
+                                       }
+                               }
+                       }
+               }
+
+               return event.result;
+       },
+
+       // Includes some event props shared by KeyEvent and MouseEvent
+       // *** attrChange attrName relatedNode srcElement  are not normalized, non-W3C, deprecated, will be removed in 1.8 ***
+       props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
+
+       fixHooks: {},
+
+       keyHooks: {
+               props: "char charCode key keyCode".split(" "),
+               filter: function( event, original ) {
+
+                       // Add which for key events
+                       if ( event.which == null ) {
+                               event.which = original.charCode != null ? original.charCode : original.keyCode;
+                       }
+
+                       return event;
+               }
+       },
+
+       mouseHooks: {
+               props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
+               filter: function( event, original ) {
+                       var eventDoc, doc, body,
+                               button = original.button,
+                               fromElement = original.fromElement;
+
+                       // Calculate pageX/Y if missing and clientX/Y available
+                       if ( event.pageX == null && original.clientX != null ) {
+                               eventDoc = event.target.ownerDocument || document;
+                               doc = eventDoc.documentElement;
+                               body = eventDoc.body;
+
+                               event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
+                               event.pageY = original.clientY + ( doc && doc.scrollTop  || body && body.scrollTop  || 0 ) - ( doc && doc.clientTop  || body && body.clientTop  || 0 );
+                       }
+
+                       // Add relatedTarget, if necessary
+                       if ( !event.relatedTarget && fromElement ) {
+                               event.relatedTarget = fromElement === event.target ? original.toElement : fromElement;
+                       }
+
+                       // Add which for click: 1 === left; 2 === middle; 3 === right
+                       // Note: button is not normalized, so don't use it
+                       if ( !event.which && button !== undefined ) {
+                               event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
+                       }
+
+                       return event;
+               }
+       },
+
+       fix: function( event ) {
+               if ( event[ jQuery.expando ] ) {
+                       return event;
+               }
+
+               // Create a writable copy of the event object and normalize some properties
+               var i, prop,
+                       originalEvent = event,
+                       fixHook = jQuery.event.fixHooks[ event.type ] || {},
+                       copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
+
+               event = jQuery.Event( originalEvent );
+
+               for ( i = copy.length; i; ) {
+                       prop = copy[ --i ];
+                       event[ prop ] = originalEvent[ prop ];
+               }
+
+               // Fix target property, if necessary (#1925, IE 6/7/8 & Safari2)
+               if ( !event.target ) {
+                       event.target = originalEvent.srcElement || document;
+               }
+
+               // Target should not be a text node (#504, Safari)
+               if ( event.target.nodeType === 3 ) {
+                       event.target = event.target.parentNode;
+               }
+
+               // For mouse/key events; add metaKey if it's not there (#3368, IE6/7/8)
+               if ( event.metaKey === undefined ) {
+                       event.metaKey = event.ctrlKey;
+               }
+
+               return fixHook.filter? fixHook.filter( event, originalEvent ) : event;
+       },
+
+       special: {
+               ready: {
+                       // Make sure the ready event is setup
+                       setup: jQuery.bindReady
+               },
+
+               load: {
+                       // Prevent triggered image.load events from bubbling to window.load
+                       noBubble: true
+               },
+
+               focus: {
+                       delegateType: "focusin"
+               },
+               blur: {
+                       delegateType: "focusout"
+               },
+
+               beforeunload: {
+                       setup: function( data, namespaces, eventHandle ) {
+                               // We only want to do this special case on windows
+                               if ( jQuery.isWindow( this ) ) {
+                                       this.onbeforeunload = eventHandle;
+                               }
+                       },
+
+                       teardown: function( namespaces, eventHandle ) {
+                               if ( this.onbeforeunload === eventHandle ) {
+                                       this.onbeforeunload = null;
+                               }
+                       }
+               }
+       },
+
+       simulate: function( type, elem, event, bubble ) {
+               // Piggyback on a donor event to simulate a different one.
+               // Fake originalEvent to avoid donor's stopPropagation, but if the
+               // simulated event prevents default then we do the same on the donor.
+               var e = jQuery.extend(
+                       new jQuery.Event(),
+                       event,
+                       { type: type,
+                               isSimulated: true,
+                               originalEvent: {}
+                       }
+               );
+               if ( bubble ) {
+                       jQuery.event.trigger( e, null, elem );
+               } else {
+                       jQuery.event.dispatch.call( elem, e );
+               }
+               if ( e.isDefaultPrevented() ) {
+                       event.preventDefault();
+               }
+       }
+};
+
+// Some plugins are using, but it's undocumented/deprecated and will be removed.
+// The 1.7 special event interface should provide all the hooks needed now.
+jQuery.event.handle = jQuery.event.dispatch;
+
+jQuery.removeEvent = document.removeEventListener ?
+       function( elem, type, handle ) {
+               if ( elem.removeEventListener ) {
+                       elem.removeEventListener( type, handle, false );
+               }
+       } :
+       function( elem, type, handle ) {
+               if ( elem.detachEvent ) {
+                       elem.detachEvent( "on" + type, handle );
+               }
+       };
+
+jQuery.Event = function( src, props ) {
+       // Allow instantiation without the 'new' keyword
+       if ( !(this instanceof jQuery.Event) ) {
+               return new jQuery.Event( src, props );
+       }
+
+       // Event object
+       if ( src && src.type ) {
+               this.originalEvent = src;
+               this.type = src.type;
+
+               // Events bubbling up the document may have been marked as prevented
+               // by a handler lower down the tree; reflect the correct value.
+               this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false ||
+                       src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;
+
+       // Event type
+       } else {
+               this.type = src;
+       }
+
+       // Put explicitly provided properties onto the event object
+       if ( props ) {
+               jQuery.extend( this, props );
+       }
+
+       // Create a timestamp if incoming event doesn't have one
+       this.timeStamp = src && src.timeStamp || jQuery.now();
+
+       // Mark it as fixed
+       this[ jQuery.expando ] = true;
+};
+
+function returnFalse() {
+       return false;
+}
+function returnTrue() {
+       return true;
+}
+
+// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
+// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
+jQuery.Event.prototype = {
+       preventDefault: function() {
+               this.isDefaultPrevented = returnTrue;
+
+               var e = this.originalEvent;
+               if ( !e ) {
+                       return;
+               }
+
+               // if preventDefault exists run it on the original event
+               if ( e.preventDefault ) {
+                       e.preventDefault();
+
+               // otherwise set the returnValue property of the original event to false (IE)
+               } else {
+                       e.returnValue = false;
+               }
+       },
+       stopPropagation: function() {
+               this.isPropagationStopped = returnTrue;
+
+               var e = this.originalEvent;
+               if ( !e ) {
+                       return;
+               }
+               // if stopPropagation exists run it on the original event
+               if ( e.stopPropagation ) {
+                       e.stopPropagation();
+               }
+               // otherwise set the cancelBubble property of the original event to true (IE)
+               e.cancelBubble = true;
+       },
+       stopImmediatePropagation: function() {
+               this.isImmediatePropagationStopped = returnTrue;
+               this.stopPropagation();
+       },
+       isDefaultPrevented: returnFalse,
+       isPropagationStopped: returnFalse,
+       isImmediatePropagationStopped: returnFalse
+};
+
+// Create mouseenter/leave events using mouseover/out and event-time checks
+jQuery.each({
+       mouseenter: "mouseover",
+       mouseleave: "mouseout"
+}, function( orig, fix ) {
+       jQuery.event.special[ orig ] = {
+               delegateType: fix,
+               bindType: fix,
+
+               handle: function( event ) {
+                       var target = this,
+                               related = event.relatedTarget,
+                               handleObj = event.handleObj,
+                               selector = handleObj.selector,
+                               ret;
+
+                       // For mousenter/leave call the handler if related is outside the target.
+                       // NB: No relatedTarget if the mouse left/entered the browser window
+                       if ( !related || (related !== target && !jQuery.contains( target, related )) ) {
+                               event.type = handleObj.origType;
+                               ret = handleObj.handler.apply( this, arguments );
+                               event.type = fix;
+                       }
+                       return ret;
+               }
+       };
+});
+
+// IE submit delegation
+if ( !jQuery.support.submitBubbles ) {
+
+       jQuery.event.special.submit = {
+               setup: function() {
+                       // Only need this for delegated form submit events
+                       if ( jQuery.nodeName( this, "form" ) ) {
+                               return false;
+                       }
+
+                       // Lazy-add a submit handler when a descendant form may potentially be submitted
+                       jQuery.event.add( this, "click._submit keypress._submit", function( e ) {
+                               // Node name check avoids a VML-related crash in IE (#9807)
+                               var elem = e.target,
+                                       form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined;
+                               if ( form && !form._submit_attached ) {
+                                       jQuery.event.add( form, "submit._submit", function( event ) {
+                                               // If form was submitted by the user, bubble the event up the tree
+                                               if ( this.parentNode && !event.isTrigger ) {
+                                                       jQuery.event.simulate( "submit", this.parentNode, event, true );
+                                               }
+                                       });
+                                       form._submit_attached = true;
+                               }
+                       });
+                       // return undefined since we don't need an event listener
+               },
+
+               teardown: function() {
+                       // Only need this for delegated form submit events
+                       if ( jQuery.nodeName( this, "form" ) ) {
+                               return false;
+                       }
+
+                       // Remove delegated handlers; cleanData eventually reaps submit handlers attached above
+                       jQuery.event.remove( this, "._submit" );
+               }
+       };
+}
+
+// IE change delegation and checkbox/radio fix
+if ( !jQuery.support.changeBubbles ) {
+
+       jQuery.event.special.change = {
+
+               setup: function() {
+
+                       if ( rformElems.test( this.nodeName ) ) {
+                               // IE doesn't fire change on a check/radio until blur; trigger it on click
+                               // after a propertychange. Eat the blur-change in special.change.handle.
+                               // This still fires onchange a second time for check/radio after blur.
+                               if ( this.type === "checkbox" || this.type === "radio" ) {
+                                       jQuery.event.add( this, "propertychange._change", function( event ) {
+                                               if ( event.originalEvent.propertyName === "checked" ) {
+                                                       this._just_changed = true;
+                                               }
+                                       });
+                                       jQuery.event.add( this, "click._change", function( event ) {
+                                               if ( this._just_changed && !event.isTrigger ) {
+                                                       this._just_changed = false;
+                                                       jQuery.event.simulate( "change", this, event, true );
+                                               }
+                                       });
+                               }
+                               return false;
+                       }
+                       // Delegated event; lazy-add a change handler on descendant inputs
+                       jQuery.event.add( this, "beforeactivate._change", function( e ) {
+                               var elem = e.target;
+
+                               if ( rformElems.test( elem.nodeName ) && !elem._change_attached ) {
+                                       jQuery.event.add( elem, "change._change", function( event ) {
+                                               if ( this.parentNode && !event.isSimulated && !event.isTrigger ) {
+                                                       jQuery.event.simulate( "change", this.parentNode, event, true );
+                                               }
+                                       });
+                                       elem._change_attached = true;
+                               }
+                       });
+               },
+
+               handle: function( event ) {
+                       var elem = event.target;
+
+                       // Swallow native change events from checkbox/radio, we already triggered them above
+                       if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) {
+                               return event.handleObj.handler.apply( this, arguments );
+                       }
+               },
+
+               teardown: function() {
+                       jQuery.event.remove( this, "._change" );
+
+                       return rformElems.test( this.nodeName );
+               }
+       };
+}
+
+// Create "bubbling" focus and blur events
+if ( !jQuery.support.focusinBubbles ) {
+       jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
+
+               // Attach a single capturing handler while someone wants focusin/focusout
+               var attaches = 0,
+                       handler = function( event ) {
+                               jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
+                       };
+
+               jQuery.event.special[ fix ] = {
+                       setup: function() {
+                               if ( attaches++ === 0 ) {
+                                       document.addEventListener( orig, handler, true );
+                               }
+                       },
+                       teardown: function() {
+                               if ( --attaches === 0 ) {
+                                       document.removeEventListener( orig, handler, true );
+                               }
+                       }
+               };
+       });
+}
+
+jQuery.fn.extend({
+
+       on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
+               var origFn, type;
+
+               // Types can be a map of types/handlers
+               if ( typeof types === "object" ) {
+                       // ( types-Object, selector, data )
+                       if ( typeof selector !== "string" ) {
+                               // ( types-Object, data )
+                               data = selector;
+                               selector = undefined;
+                       }
+                       for ( type in types ) {
+                               this.on( type, selector, data, types[ type ], one );
+                       }
+                       return this;
+               }
+
+               if ( data == null && fn == null ) {
+                       // ( types, fn )
+                       fn = selector;
+                       data = selector = undefined;
+               } else if ( fn == null ) {
+                       if ( typeof selector === "string" ) {
+                               // ( types, selector, fn )
+                               fn = data;
+                               data = undefined;
+                       } else {
+                               // ( types, data, fn )
+                               fn = data;
+                               data = selector;
+                               selector = undefined;
+                       }
+               }
+               if ( fn === false ) {
+                       fn = returnFalse;
+               } else if ( !fn ) {
+                       return this;
+               }
+
+               if ( one === 1 ) {
+                       origFn = fn;
+                       fn = function( event ) {
+                               // Can use an empty set, since event contains the info
+                               jQuery().off( event );
+                               return origFn.apply( this, arguments );
+                       };
+                       // Use same guid so caller can remove using origFn
+                       fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
+               }
+               return this.each( function() {
+                       jQuery.event.add( this, types, fn, data, selector );
+               });
+       },
+       one: function( types, selector, data, fn ) {
+               return this.on.call( this, types, selector, data, fn, 1 );
+       },
+       off: function( types, selector, fn ) {
+               if ( types && types.preventDefault && types.handleObj ) {
+                       // ( event )  dispatched jQuery.Event
+                       var handleObj = types.handleObj;
+                       jQuery( types.delegateTarget ).off(
+                               handleObj.namespace? handleObj.type + "." + handleObj.namespace : handleObj.type,
+                               handleObj.selector,
+                               handleObj.handler
+                       );
+                       return this;
+               }
+               if ( typeof types === "object" ) {
+                       // ( types-object [, selector] )
+                       for ( var type in types ) {
+                               this.off( type, selector, types[ type ] );
+                       }
+                       return this;
+               }
+               if ( selector === false || typeof selector === "function" ) {
+                       // ( types [, fn] )
+                       fn = selector;
+                       selector = undefined;
+               }
+               if ( fn === false ) {
+                       fn = returnFalse;
+               }
+               return this.each(function() {
+                       jQuery.event.remove( this, types, fn, selector );
+               });
+       },
+
+       bind: function( types, data, fn ) {
+               return this.on( types, null, data, fn );
+       },
+       unbind: function( types, fn ) {
+               return this.off( types, null, fn );
+       },
+
+       live: function( types, data, fn ) {
+               jQuery( this.context ).on( types, this.selector, data, fn );
+               return this;
+       },
+       die: function( types, fn ) {
+               jQuery( this.context ).off( types, this.selector || "**", fn );
+               return this;
+       },
+
+       delegate: function( selector, types, data, fn ) {
+               return this.on( types, selector, data, fn );
+       },
+       undelegate: function( selector, types, fn ) {
+               // ( namespace ) or ( selector, types [, fn] )
+               return arguments.length == 1? this.off( selector, "**" ) : this.off( types, selector, fn );
+       },
+
+       trigger: function( type, data ) {
+               return this.each(function() {
+                       jQuery.event.trigger( type, data, this );
+               });
+       },
+       triggerHandler: function( type, data ) {
+               if ( this[0] ) {
+                       return jQuery.event.trigger( type, data, this[0], true );
+               }
+       },
+
+       toggle: function( fn ) {
+               // Save reference to arguments for access in closure
+               var args = arguments,
+                       guid = fn.guid || jQuery.guid++,
+                       i = 0,
+                       toggler = function( event ) {
+                               // Figure out which function to execute
+                               var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i;
+                               jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 );
+
+                               // Make sure that clicks stop
+                               event.preventDefault();
+
+                               // and execute the function
+                               return args[ lastToggle ].apply( this, arguments ) || false;
+                       };
+
+               // link all the functions, so any of them can unbind this click handler
+               toggler.guid = guid;
+               while ( i < args.length ) {
+                       args[ i++ ].guid = guid;
+               }
+
+               return this.click( toggler );
+       },
+
+       hover: function( fnOver, fnOut ) {
+               return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
+       }
+});
+
+jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
+       "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
+       "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {
+
+       // Handle event binding
+       jQuery.fn[ name ] = function( data, fn ) {
+               if ( fn == null ) {
+                       fn = data;
+                       data = null;
+               }
+
+               return arguments.length > 0 ?
+                       this.on( name, null, data, fn ) :
+                       this.trigger( name );
+       };
+
+       if ( jQuery.attrFn ) {
+               jQuery.attrFn[ name ] = true;
+       }
+
+       if ( rkeyEvent.test( name ) ) {
+               jQuery.event.fixHooks[ name ] = jQuery.event.keyHooks;
+       }
+
+       if ( rmouseEvent.test( name ) ) {
+               jQuery.event.fixHooks[ name ] = jQuery.event.mouseHooks;
+       }
+});
+
+
+
+/*!
+ * Sizzle CSS Selector Engine
+ *  Copyright 2011, The Dojo Foundation
+ *  Released under the MIT, BSD, and GPL Licenses.
+ *  More information: http://sizzlejs.com/
+ */
+(function(){
+
+var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
+       expando = "sizcache" + (Math.random() + '').replace('.', ''),
+       done = 0,
+       toString = Object.prototype.toString,
+       hasDuplicate = false,
+       baseHasDuplicate = true,
+       rBackslash = /\\/g,
+       rReturn = /\r\n/g,
+       rNonWord = /\W/;
+
+// Here we check if the JavaScript engine is using some sort of
+// optimization where it does not always call our comparision
+// function. If that is the case, discard the hasDuplicate value.
+//   Thus far that includes Google Chrome.
+[0, 0].sort(function() {
+       baseHasDuplicate = false;
+       return 0;
+});
+
+var Sizzle = function( selector, context, results, seed ) {
+       results = results || [];
+       context = context || document;
+
+       var origContext = context;
+
+       if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
+               return [];
+       }
+       
+       if ( !selector || typeof selector !== "string" ) {
+               return results;
+       }
+
+       var m, set, checkSet, extra, ret, cur, pop, i,
+               prune = true,
+               contextXML = Sizzle.isXML( context ),
+               parts = [],
+               soFar = selector;
+       
+       // Reset the position of the chunker regexp (start from head)
+       do {
+               chunker.exec( "" );
+               m = chunker.exec( soFar );
+
+               if ( m ) {
+                       soFar = m[3];
+               
+                       parts.push( m[1] );
+               
+                       if ( m[2] ) {
+                               extra = m[3];
+                               break;
+                       }
+               }
+       } while ( m );
+
+       if ( parts.length > 1 && origPOS.exec( selector ) ) {
+
+               if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
+                       set = posProcess( parts[0] + parts[1], context, seed );
+
+               } else {
+                       set = Expr.relative[ parts[0] ] ?
+                               [ context ] :
+                               Sizzle( parts.shift(), context );
+
+                       while ( parts.length ) {
+                               selector = parts.shift();
+
+                               if ( Expr.relative[ selector ] ) {
+                                       selector += parts.shift();
+                               }
+                               
+                               set = posProcess( selector, set, seed );
+                       }
+               }
+
+       } else {
+               // Take a shortcut and set the context if the root selector is an ID
+               // (but not if it'll be faster if the inner selector is an ID)
+               if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
+                               Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
+
+                       ret = Sizzle.find( parts.shift(), context, contextXML );
+                       context = ret.expr ?
+                               Sizzle.filter( ret.expr, ret.set )[0] :
+                               ret.set[0];
+               }
+
+               if ( context ) {
+                       ret = seed ?
+                               { expr: parts.pop(), set: makeArray(seed) } :
+                               Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );
+
+                       set = ret.expr ?
+                               Sizzle.filter( ret.expr, ret.set ) :
+                               ret.set;
+
+                       if ( parts.length > 0 ) {
+                               checkSet = makeArray( set );
+
+                       } else {
+                               prune = false;
+                       }
+
+                       while ( parts.length ) {
+                               cur = parts.pop();
+                               pop = cur;
+
+                               if ( !Expr.relative[ cur ] ) {
+                                       cur = "";
+                               } else {
+                                       pop = parts.pop();
+                               }
+
+                               if ( pop == null ) {
+                                       pop = context;
+                               }
+
+                               Expr.relative[ cur ]( checkSet, pop, contextXML );
+                       }
+
+               } else {
+                       checkSet = parts = [];
+               }
+       }
+
+       if ( !checkSet ) {
+               checkSet = set;
+       }
+
+       if ( !checkSet ) {
+               Sizzle.error( cur || selector );
+       }
+
+       if ( toString.call(checkSet) === "[object Array]" ) {
+               if ( !prune ) {
+                       results.push.apply( results, checkSet );
+
+               } else if ( context && context.nodeType === 1 ) {
+                       for ( i = 0; checkSet[i] != null; i++ ) {
+                               if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {
+                                       results.push( set[i] );
+                               }
+                       }
+
+               } else {
+                       for ( i = 0; checkSet[i] != null; i++ ) {
+                               if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
+                                       results.push( set[i] );
+                               }
+                       }
+               }
+
+       } else {
+               makeArray( checkSet, results );
+       }
+
+       if ( extra ) {
+               Sizzle( extra, origContext, results, seed );
+               Sizzle.uniqueSort( results );
+       }
+
+       return results;
+};
+
+Sizzle.uniqueSort = function( results ) {
+       if ( sortOrder ) {
+               hasDuplicate = baseHasDuplicate;
+               results.sort( sortOrder );
+
+               if ( hasDuplicate ) {
+                       for ( var i = 1; i < results.length; i++ ) {
+                               if ( results[i] === results[ i - 1 ] ) {
+                                       results.splice( i--, 1 );
+                               }
+                       }
+               }
+       }
+
+       return results;
+};
+
+Sizzle.matches = function( expr, set ) {
+       return Sizzle( expr, null, null, set );
+};
+
+Sizzle.matchesSelector = function( node, expr ) {
+       return Sizzle( expr, null, null, [node] ).length > 0;
+};
+
+Sizzle.find = function( expr, context, isXML ) {
+       var set, i, len, match, type, left;
+
+       if ( !expr ) {
+               return [];
+       }
+
+       for ( i = 0, len = Expr.order.length; i < len; i++ ) {
+               type = Expr.order[i];
+               
+               if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
+                       left = match[1];
+                       match.splice( 1, 1 );
+
+                       if ( left.substr( left.length - 1 ) !== "\\" ) {
+                               match[1] = (match[1] || "").replace( rBackslash, "" );
+                               set = Expr.find[ type ]( match, context, isXML );
+
+                               if ( set != null ) {
+                                       expr = expr.replace( Expr.match[ type ], "" );
+                                       break;
+                               }
+                       }
+               }
+       }
+
+       if ( !set ) {
+               set = typeof context.getElementsByTagName !== "undefined" ?
+                       context.getElementsByTagName( "*" ) :
+                       [];
+       }
+
+       return { set: set, expr: expr };
+};
+
+Sizzle.filter = function( expr, set, inplace, not ) {
+       var match, anyFound,
+               type, found, item, filter, left,
+               i, pass,
+               old = expr,
+               result = [],
+               curLoop = set,
+               isXMLFilter = set && set[0] && Sizzle.isXML( set[0] );
+
+       while ( expr && set.length ) {
+               for ( type in Expr.filter ) {
+                       if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
+                               filter = Expr.filter[ type ];
+                               left = match[1];
+
+                               anyFound = false;
+
+                               match.splice(1,1);
+
+                               if ( left.substr( left.length - 1 ) === "\\" ) {
+                                       continue;
+                               }
+
+                               if ( curLoop === result ) {
+                                       result = [];
+                               }
+
+                               if ( Expr.preFilter[ type ] ) {
+                                       match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
+
+                                       if ( !match ) {
+                                               anyFound = found = true;
+
+                                       } else if ( match === true ) {
+                                               continue;
+                                       }
+                               }
+
+                               if ( match ) {
+                                       for ( i = 0; (item = curLoop[i]) != null; i++ ) {
+                                               if ( item ) {
+                                                       found = filter( item, match, i, curLoop );
+                                                       pass = not ^ found;
+
+                                                       if ( inplace && found != null ) {
+                                                               if ( pass ) {
+                                                                       anyFound = true;
+
+                                                               } else {
+                                                                       curLoop[i] = false;
+                                                               }
+
+                                                       } else if ( pass ) {
+                                                               result.push( item );
+                                                               anyFound = true;
+                                                       }
+                                               }
+                                       }
+                               }
+
+                               if ( found !== undefined ) {
+                                       if ( !inplace ) {
+                                               curLoop = result;
+                                       }
+
+                                       expr = expr.replace( Expr.match[ type ], "" );
+
+                                       if ( !anyFound ) {
+                                               return [];
+                                       }
+
+                                       break;
+                               }
+                       }
+               }
+
+               // Improper expression
+               if ( expr === old ) {
+                       if ( anyFound == null ) {
+                               Sizzle.error( expr );
+
+                       } else {
+                               break;
+                       }
+               }
+
+               old = expr;
+       }
+
+       return curLoop;
+};
+
+Sizzle.error = function( msg ) {
+       throw new Error( "Syntax error, unrecognized expression: " + msg );
+};
+
+/**
+ * Utility function for retreiving the text value of an array of DOM nodes
+ * @param {Array|Element} elem
+ */
+var getText = Sizzle.getText = function( elem ) {
+    var i, node,
+               nodeType = elem.nodeType,
+               ret = "";
+
+       if ( nodeType ) {
+               if ( nodeType === 1 || nodeType === 9 ) {
+                       // Use textContent || innerText for elements
+                       if ( typeof elem.textContent === 'string' ) {
+                               return elem.textContent;
+                       } else if ( typeof elem.innerText === 'string' ) {
+                               // Replace IE's carriage returns
+                               return elem.innerText.replace( rReturn, '' );
+                       } else {
+                               // Traverse it's children
+                               for ( elem = elem.firstChild; elem; elem = elem.nextSibling) {
+                                       ret += getText( elem );
+                               }
+                       }
+               } else if ( nodeType === 3 || nodeType === 4 ) {
+                       return elem.nodeValue;
+               }
+       } else {
+
+               // If no nodeType, this is expected to be an array
+               for ( i = 0; (node = elem[i]); i++ ) {
+                       // Do not traverse comment nodes
+                       if ( node.nodeType !== 8 ) {
+                               ret += getText( node );
+                       }
+               }
+       }
+       return ret;
+};
+
+var Expr = Sizzle.selectors = {
+       order: [ "ID", "NAME", "TAG" ],
+
+       match: {
+               ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
+               CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
+               NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
+               ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
+               TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,
+               CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,
+               POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,
+               PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
+       },
+
+       leftMatch: {},
+
+       attrMap: {
+               "class": "className",
+               "for": "htmlFor"
+       },
+
+       attrHandle: {
+               href: function( elem ) {
+                       return elem.getAttribute( "href" );
+               },
+               type: function( elem ) {
+                       return elem.getAttribute( "type" );
+               }
+       },
+
+       relative: {
+               "+": function(checkSet, part){
+                       var isPartStr = typeof part === "string",
+                               isTag = isPartStr && !rNonWord.test( part ),
+                               isPartStrNotTag = isPartStr && !isTag;
+
+                       if ( isTag ) {
+                               part = part.toLowerCase();
+                       }
+
+                       for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
+                               if ( (elem = checkSet[i]) ) {
+                                       while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
+
+                                       checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?
+                                               elem || false :
+                                               elem === part;
+                               }
+                       }
+
+                       if ( isPartStrNotTag ) {
+                               Sizzle.filter( part, checkSet, true );
+                       }
+               },
+
+               ">": function( checkSet, part ) {
+                       var elem,
+                               isPartStr = typeof part === "string",
+                               i = 0,
+                               l = checkSet.length;
+
+                       if ( isPartStr && !rNonWord.test( part ) ) {
+                               part = part.toLowerCase();
+
+                               for ( ; i < l; i++ ) {
+                                       elem = checkSet[i];
+
+                                       if ( elem ) {
+                                               var parent = elem.parentNode;
+                                               checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
+                                       }
+                               }
+
+                       } else {
+                               for ( ; i < l; i++ ) {
+                                       elem = checkSet[i];
+
+                                       if ( elem ) {
+                                               checkSet[i] = isPartStr ?
+                                                       elem.parentNode :
+                                                       elem.parentNode === part;
+                                       }
+                               }
+
+                               if ( isPartStr ) {
+                                       Sizzle.filter( part, checkSet, true );
+                               }
+                       }
+               },
+
+               "": function(checkSet, part, isXML){
+                       var nodeCheck,
+                               doneName = done++,
+                               checkFn = dirCheck;
+
+                       if ( typeof part === "string" && !rNonWord.test( part ) ) {
+                               part = part.toLowerCase();
+                               nodeCheck = part;
+                               checkFn = dirNodeCheck;
+                       }
+
+                       checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML );
+               },
+
+               "~": function( checkSet, part, isXML ) {
+                       var nodeCheck,
+                               doneName = done++,
+                               checkFn = dirCheck;
+
+                       if ( typeof part === "string" && !rNonWord.test( part ) ) {
+                               part = part.toLowerCase();
+                               nodeCheck = part;
+                               checkFn = dirNodeCheck;
+                       }
+
+                       checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML );
+               }
+       },
+
+       find: {
+               ID: function( match, context, isXML ) {
+                       if ( typeof context.getElementById !== "undefined" && !isXML ) {
+                               var m = context.getElementById(match[1]);
+                               // Check parentNode to catch when Blackberry 4.6 returns
+                               // nodes that are no longer in the document #6963
+                               return m && m.parentNode ? [m] : [];
+                       }
+               },
+
+               NAME: function( match, context ) {
+                       if ( typeof context.getElementsByName !== "undefined" ) {
+                               var ret = [],
+                                       results = context.getElementsByName( match[1] );
+
+                               for ( var i = 0, l = results.length; i < l; i++ ) {
+                                       if ( results[i].getAttribute("name") === match[1] ) {
+                                               ret.push( results[i] );
+                                       }
+                               }
+
+                               return ret.length === 0 ? null : ret;
+                       }
+               },
+
+               TAG: function( match, context ) {
+                       if ( typeof context.getElementsByTagName !== "undefined" ) {
+                               return context.getElementsByTagName( match[1] );
+                       }
+               }
+       },
+       preFilter: {
+               CLASS: function( match, curLoop, inplace, result, not, isXML ) {
+                       match = " " + match[1].replace( rBackslash, "" ) + " ";
+
+                       if ( isXML ) {
+                               return match;
+                       }
+
+                       for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
+                               if ( elem ) {
+                                       if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) {
+                                               if ( !inplace ) {
+                                                       result.push( elem );
+                                               }
+
+                                       } else if ( inplace ) {
+                                               curLoop[i] = false;
+                                       }
+                               }
+                       }
+
+                       return false;
+               },
+
+               ID: function( match ) {
+                       return match[1].replace( rBackslash, "" );
+               },
+
+               TAG: function( match, curLoop ) {
+                       return match[1].replace( rBackslash, "" ).toLowerCase();
+               },
+
+               CHILD: function( match ) {
+                       if ( match[1] === "nth" ) {
+                               if ( !match[2] ) {
+                                       Sizzle.error( match[0] );
+                               }
+
+                               match[2] = match[2].replace(/^\+|\s*/g, '');
+
+                               // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
+                               var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec(
+                                       match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
+                                       !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
+
+                               // calculate the numbers (first)n+(last) including if they are negative
+                               match[2] = (test[1] + (test[2] || 1)) - 0;
+                               match[3] = test[3] - 0;
+                       }
+                       else if ( match[2] ) {
+                               Sizzle.error( match[0] );
+                       }
+
+                       // TODO: Move to normal caching system
+                       match[0] = done++;
+
+                       return match;
+               },
+
+               ATTR: function( match, curLoop, inplace, result, not, isXML ) {
+                       var name = match[1] = match[1].replace( rBackslash, "" );
+                       
+                       if ( !isXML && Expr.attrMap[name] ) {
+                               match[1] = Expr.attrMap[name];
+                       }
+
+                       // Handle if an un-quoted value was used
+                       match[4] = ( match[4] || match[5] || "" ).replace( rBackslash, "" );
+
+                       if ( match[2] === "~=" ) {
+                               match[4] = " " + match[4] + " ";
+                       }
+
+                       return match;
+               },
+
+               PSEUDO: function( match, curLoop, inplace, result, not ) {
+                       if ( match[1] === "not" ) {
+                               // If we're dealing with a complex expression, or a simple one
+                               if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
+                                       match[3] = Sizzle(match[3], null, null, curLoop);
+
+                               } else {
+                                       var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
+
+                                       if ( !inplace ) {
+                                               result.push.apply( result, ret );
+                                       }
+
+                                       return false;
+                               }
+
+                       } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
+                               return true;
+                       }
+                       
+                       return match;
+               },
+
+               POS: function( match ) {
+                       match.unshift( true );
+
+                       return match;
+               }
+       },
+       
+       filters: {
+               enabled: function( elem ) {
+                       return elem.disabled === false && elem.type !== "hidden";
+               },
+
+               disabled: function( elem ) {
+                       return elem.disabled === true;
+               },
+
+               checked: function( elem ) {
+                       return elem.checked === true;
+               },
+               
+               selected: function( elem ) {
+                       // Accessing this property makes selected-by-default
+                       // options in Safari work properly
+                       if ( elem.parentNode ) {
+                               elem.parentNode.selectedIndex;
+                       }
+                       
+                       return elem.selected === true;
+               },
+
+               parent: function( elem ) {
+                       return !!elem.firstChild;
+               },
+
+               empty: function( elem ) {
+                       return !elem.firstChild;
+               },
+
+               has: function( elem, i, match ) {
+                       return !!Sizzle( match[3], elem ).length;
+               },
+
+               header: function( elem ) {
+                       return (/h\d/i).test( elem.nodeName );
+               },
+
+               text: function( elem ) {
+                       var attr = elem.getAttribute( "type" ), type = elem.type;
+                       // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) 
+                       // use getAttribute instead to test this case
+                       return elem.nodeName.toLowerCase() === "input" && "text" === type && ( attr === type || attr === null );
+               },
+
+               radio: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "radio" === elem.type;
+               },
+
+               checkbox: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "checkbox" === elem.type;
+               },
+
+               file: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "file" === elem.type;
+               },
+
+               password: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "password" === elem.type;
+               },
+
+               submit: function( elem ) {
+                       var name = elem.nodeName.toLowerCase();
+                       return (name === "input" || name === "button") && "submit" === elem.type;
+               },
+
+               image: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "image" === elem.type;
+               },
+
+               reset: function( elem ) {
+                       var name = elem.nodeName.toLowerCase();
+                       return (name === "input" || name === "button") && "reset" === elem.type;
+               },
+
+               button: function( elem ) {
+                       var name = elem.nodeName.toLowerCase();
+                       return name === "input" && "button" === elem.type || name === "button";
+               },
+
+               input: function( elem ) {
+                       return (/input|select|textarea|button/i).test( elem.nodeName );
+               },
+
+               focus: function( elem ) {
+                       return elem === elem.ownerDocument.activeElement;
+               }
+       },
+       setFilters: {
+               first: function( elem, i ) {
+                       return i === 0;
+               },
+
+               last: function( elem, i, match, array ) {
+                       return i === array.length - 1;
+               },
+
+               even: function( elem, i ) {
+                       return i % 2 === 0;
+               },
+
+               odd: function( elem, i ) {
+                       return i % 2 === 1;
+               },
+
+               lt: function( elem, i, match ) {
+                       return i < match[3] - 0;
+               },
+
+               gt: function( elem, i, match ) {
+                       return i > match[3] - 0;
+               },
+
+               nth: function( elem, i, match ) {
+                       return match[3] - 0 === i;
+               },
+
+               eq: function( elem, i, match ) {
+                       return match[3] - 0 === i;
+               }
+       },
+       filter: {
+               PSEUDO: function( elem, match, i, array ) {
+                       var name = match[1],
+                               filter = Expr.filters[ name ];
+
+                       if ( filter ) {
+                               return filter( elem, i, match, array );
+
+                       } else if ( name === "contains" ) {
+                               return (elem.textContent || elem.innerText || getText([ elem ]) || "").indexOf(match[3]) >= 0;
+
+                       } else if ( name === "not" ) {
+                               var not = match[3];
+
+                               for ( var j = 0, l = not.length; j < l; j++ ) {
+                                       if ( not[j] === elem ) {
+                                               return false;
+                                       }
+                               }
+
+                               return true;
+
+                       } else {
+                               Sizzle.error( name );
+                       }
+               },
+
+               CHILD: function( elem, match ) {
+                       var first, last,
+                               doneName, parent, cache,
+                               count, diff,
+                               type = match[1],
+                               node = elem;
+
+                       switch ( type ) {
+                               case "only":
+                               case "first":
+                                       while ( (node = node.previousSibling) )  {
+                                               if ( node.nodeType === 1 ) { 
+                                                       return false; 
+                                               }
+                                       }
+
+                                       if ( type === "first" ) { 
+                                               return true; 
+                                       }
+
+                                       node = elem;
+
+                               case "last":
+                                       while ( (node = node.nextSibling) )      {
+                                               if ( node.nodeType === 1 ) { 
+                                                       return false; 
+                                               }
+                                       }
+
+                                       return true;
+
+                               case "nth":
+                                       first = match[2];
+                                       last = match[3];
+
+                                       if ( first === 1 && last === 0 ) {
+                                               return true;
+                                       }
+                                       
+                                       doneName = match[0];
+                                       parent = elem.parentNode;
+       
+                                       if ( parent && (parent[ expando ] !== doneName || !elem.nodeIndex) ) {
+                                               count = 0;
+                                               
+                                               for ( node = parent.firstChild; node; node = node.nextSibling ) {
+                                                       if ( node.nodeType === 1 ) {
+                                                               node.nodeIndex = ++count;
+                                                       }
+                                               } 
+
+                                               parent[ expando ] = doneName;
+                                       }
+                                       
+                                       diff = elem.nodeIndex - last;
+
+                                       if ( first === 0 ) {
+                                               return diff === 0;
+
+                                       } else {
+                                               return ( diff % first === 0 && diff / first >= 0 );
+                                       }
+                       }
+               },
+
+               ID: function( elem, match ) {
+                       return elem.nodeType === 1 && elem.getAttribute("id") === match;
+               },
+
+               TAG: function( elem, match ) {
+                       return (match === "*" && elem.nodeType === 1) || !!elem.nodeName && elem.nodeName.toLowerCase() === match;
+               },
+               
+               CLASS: function( elem, match ) {
+                       return (" " + (elem.className || elem.getAttribute("class")) + " ")
+                               .indexOf( match ) > -1;
+               },
+
+               ATTR: function( elem, match ) {
+                       var name = match[1],
+                               result = Sizzle.attr ?
+                                       Sizzle.attr( elem, name ) :
+                                       Expr.attrHandle[ name ] ?
+                                       Expr.attrHandle[ name ]( elem ) :
+                                       elem[ name ] != null ?
+                                               elem[ name ] :
+                                               elem.getAttribute( name ),
+                               value = result + "",
+                               type = match[2],
+                               check = match[4];
+
+                       return result == null ?
+                               type === "!=" :
+                               !type && Sizzle.attr ?
+                               result != null :
+                               type === "=" ?
+                               value === check :
+                               type === "*=" ?
+                               value.indexOf(check) >= 0 :
+                               type === "~=" ?
+                               (" " + value + " ").indexOf(check) >= 0 :
+                               !check ?
+                               value && result !== false :
+                               type === "!=" ?
+                               value !== check :
+                               type === "^=" ?
+                               value.indexOf(check) === 0 :
+                               type === "$=" ?
+                               value.substr(value.length - check.length) === check :
+                               type === "|=" ?
+                               value === check || value.substr(0, check.length + 1) === check + "-" :
+                               false;
+               },
+
+               POS: function( elem, match, i, array ) {
+                       var name = match[2],
+                               filter = Expr.setFilters[ name ];
+
+                       if ( filter ) {
+                               return filter( elem, i, match, array );
+                       }
+               }
+       }
+};
+
+var origPOS = Expr.match.POS,
+       fescape = function(all, num){
+               return "\\" + (num - 0 + 1);
+       };
+
+for ( var type in Expr.match ) {
+       Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) );
+       Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) );
+}
+
+var makeArray = function( array, results ) {
+       array = Array.prototype.slice.call( array, 0 );
+
+       if ( results ) {
+               results.push.apply( results, array );
+               return results;
+       }
+       
+       return array;
+};
+
+// Perform a simple check to determine if the browser is capable of
+// converting a NodeList to an array using builtin methods.
+// Also verifies that the returned array holds DOM nodes
+// (which is not the case in the Blackberry browser)
+try {
+       Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;
+
+// Provide a fallback method if it does not work
+} catch( e ) {
+       makeArray = function( array, results ) {
+               var i = 0,
+                       ret = results || [];
+
+               if ( toString.call(array) === "[object Array]" ) {
+                       Array.prototype.push.apply( ret, array );
+
+               } else {
+                       if ( typeof array.length === "number" ) {
+                               for ( var l = array.length; i < l; i++ ) {
+                                       ret.push( array[i] );
+                               }
+
+                       } else {
+                               for ( ; array[i]; i++ ) {
+                                       ret.push( array[i] );
+                               }
+                       }
+               }
+
+               return ret;
+       };
+}
+
+var sortOrder, siblingCheck;
+
+if ( document.documentElement.compareDocumentPosition ) {
+       sortOrder = function( a, b ) {
+               if ( a === b ) {
+                       hasDuplicate = true;
+                       return 0;
+               }
+
+               if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
+                       return a.compareDocumentPosition ? -1 : 1;
+               }
+
+               return a.compareDocumentPosition(b) & 4 ? -1 : 1;
+       };
+
+} else {
+       sortOrder = function( a, b ) {
+               // The nodes are identical, we can exit early
+               if ( a === b ) {
+                       hasDuplicate = true;
+                       return 0;
+
+               // Fallback to using sourceIndex (in IE) if it's available on both nodes
+               } else if ( a.sourceIndex && b.sourceIndex ) {
+                       return a.sourceIndex - b.sourceIndex;
+               }
+
+               var al, bl,
+                       ap = [],
+                       bp = [],
+                       aup = a.parentNode,
+                       bup = b.parentNode,
+                       cur = aup;
+
+               // If the nodes are siblings (or identical) we can do a quick check
+               if ( aup === bup ) {
+                       return siblingCheck( a, b );
+
+               // If no parents were found then the nodes are disconnected
+               } else if ( !aup ) {
+                       return -1;
+
+               } else if ( !bup ) {
+                       return 1;
+               }
+
+               // Otherwise they're somewhere else in the tree so we need
+               // to build up a full list of the parentNodes for comparison
+               while ( cur ) {
+                       ap.unshift( cur );
+                       cur = cur.parentNode;
+               }
+
+               cur = bup;
+
+               while ( cur ) {
+                       bp.unshift( cur );
+                       cur = cur.parentNode;
+               }
+
+               al = ap.length;
+               bl = bp.length;
+
+               // Start walking down the tree looking for a discrepancy
+               for ( var i = 0; i < al && i < bl; i++ ) {
+                       if ( ap[i] !== bp[i] ) {
+                               return siblingCheck( ap[i], bp[i] );
+                       }
+               }
+
+               // We ended someplace up the tree so do a sibling check
+               return i === al ?
+                       siblingCheck( a, bp[i], -1 ) :
+                       siblingCheck( ap[i], b, 1 );
+       };
+
+       siblingCheck = function( a, b, ret ) {
+               if ( a === b ) {
+                       return ret;
+               }
+
+               var cur = a.nextSibling;
+
+               while ( cur ) {
+                       if ( cur === b ) {
+                               return -1;
+                       }
+
+                       cur = cur.nextSibling;
+               }
+
+               return 1;
+       };
+}
+
+// Check to see if the browser returns elements by name when
+// querying by getElementById (and provide a workaround)
+(function(){
+       // We're going to inject a fake input element with a specified name
+       var form = document.createElement("div"),
+               id = "script" + (new Date()).getTime(),
+               root = document.documentElement;
+
+       form.innerHTML = "<a name='" + id + "'/>";
+
+       // Inject it into the root element, check its status, and remove it quickly
+       root.insertBefore( form, root.firstChild );
+
+       // The workaround has to do additional checks after a getElementById
+       // Which slows things down for other browsers (hence the branching)
+       if ( document.getElementById( id ) ) {
+               Expr.find.ID = function( match, context, isXML ) {
+                       if ( typeof context.getElementById !== "undefined" && !isXML ) {
+                               var m = context.getElementById(match[1]);
+
+                               return m ?
+                                       m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ?
+                                               [m] :
+                                               undefined :
+                                       [];
+                       }
+               };
+
+               Expr.filter.ID = function( elem, match ) {
+                       var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
+
+                       return elem.nodeType === 1 && node && node.nodeValue === match;
+               };
+       }
+
+       root.removeChild( form );
+
+       // release memory in IE
+       root = form = null;
+})();
+
+(function(){
+       // Check to see if the browser returns only elements
+       // when doing getElementsByTagName("*")
+
+       // Create a fake element
+       var div = document.createElement("div");
+       div.appendChild( document.createComment("") );
+
+       // Make sure no comments are found
+       if ( div.getElementsByTagName("*").length > 0 ) {
+               Expr.find.TAG = function( match, context ) {
+                       var results = context.getElementsByTagName( match[1] );
+
+                       // Filter out possible comments
+                       if ( match[1] === "*" ) {
+                               var tmp = [];
+
+                               for ( var i = 0; results[i]; i++ ) {
+                                       if ( results[i].nodeType === 1 ) {
+                                               tmp.push( results[i] );
+                                       }
+                               }
+
+                               results = tmp;
+                       }
+
+                       return results;
+               };
+       }
+
+       // Check to see if an attribute returns normalized href attributes
+       div.innerHTML = "<a href='#'></a>";
+
+       if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
+                       div.firstChild.getAttribute("href") !== "#" ) {
+
+               Expr.attrHandle.href = function( elem ) {
+                       return elem.getAttribute( "href", 2 );
+               };
+       }
+
+       // release memory in IE
+       div = null;
+})();
+
+if ( document.querySelectorAll ) {
+       (function(){
+               var oldSizzle = Sizzle,
+                       div = document.createElement("div"),
+                       id = "__sizzle__";
+
+               div.innerHTML = "<p class='TEST'></p>";
+
+               // Safari can't handle uppercase or unicode characters when
+               // in quirks mode.
+               if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
+                       return;
+               }
+       
+               Sizzle = function( query, context, extra, seed ) {
+                       context = context || document;
+
+                       // Only use querySelectorAll on non-XML documents
+                       // (ID selectors don't work in non-HTML documents)
+                       if ( !seed && !Sizzle.isXML(context) ) {
+                               // See if we find a selector to speed up
+                               var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query );
+                               
+                               if ( match && (context.nodeType === 1 || context.nodeType === 9) ) {
+                                       // Speed-up: Sizzle("TAG")
+                                       if ( match[1] ) {
+                                               return makeArray( context.getElementsByTagName( query ), extra );
+                                       
+                                       // Speed-up: Sizzle(".CLASS")
+                                       } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) {
+                                               return makeArray( context.getElementsByClassName( match[2] ), extra );
+                                       }
+                               }
+                               
+                               if ( context.nodeType === 9 ) {
+                                       // Speed-up: Sizzle("body")
+                                       // The body element only exists once, optimize finding it
+                                       if ( query === "body" && context.body ) {
+                                               return makeArray( [ context.body ], extra );
+                                               
+                                       // Speed-up: Sizzle("#ID")
+                                       } else if ( match && match[3] ) {
+                                               var elem = context.getElementById( match[3] );
+
+                                               // Check parentNode to catch when Blackberry 4.6 returns
+                                               // nodes that are no longer in the document #6963
+                                               if ( elem && elem.parentNode ) {
+                                                       // Handle the case where IE and Opera return items
+                                                       // by name instead of ID
+                                                       if ( elem.id === match[3] ) {
+                                                               return makeArray( [ elem ], extra );
+                                                       }
+                                                       
+                                               } else {
+                                                       return makeArray( [], extra );
+                                               }
+                                       }
+                                       
+                                       try {
+                                               return makeArray( context.querySelectorAll(query), extra );
+                                       } catch(qsaError) {}
+
+                               // qSA works strangely on Element-rooted queries
+                               // We can work around this by specifying an extra ID on the root
+                               // and working up from there (Thanks to Andrew Dupont for the technique)
+                               // IE 8 doesn't work on object elements
+                               } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
+                                       var oldContext = context,
+                                               old = context.getAttribute( "id" ),
+                                               nid = old || id,
+                                               hasParent = context.parentNode,
+                                               relativeHierarchySelector = /^\s*[+~]/.test( query );
+
+                                       if ( !old ) {
+                                               context.setAttribute( "id", nid );
+                                       } else {
+                                               nid = nid.replace( /'/g, "\\$&" );
+                                       }
+                                       if ( relativeHierarchySelector && hasParent ) {
+                                               context = context.parentNode;
+                                       }
+
+                                       try {
+                                               if ( !relativeHierarchySelector || hasParent ) {
+                                                       return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
+                                               }
+
+                                       } catch(pseudoError) {
+                                       } finally {
+                                               if ( !old ) {
+                                                       oldContext.removeAttribute( "id" );
+                                               }
+                                       }
+                               }
+                       }
+               
+                       return oldSizzle(query, context, extra, seed);
+               };
+
+               for ( var prop in oldSizzle ) {
+                       Sizzle[ prop ] = oldSizzle[ prop ];
+               }
+
+               // release memory in IE
+               div = null;
+       })();
+}
+
+(function(){
+       var html = document.documentElement,
+               matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector;
+
+       if ( matches ) {
+               // Check to see if it's possible to do matchesSelector
+               // on a disconnected node (IE 9 fails this)
+               var disconnectedMatch = !matches.call( document.createElement( "div" ), "div" ),
+                       pseudoWorks = false;
+
+               try {
+                       // This should fail with an exception
+                       // Gecko does not error, returns false instead
+                       matches.call( document.documentElement, "[test!='']:sizzle" );
+       
+               } catch( pseudoError ) {
+                       pseudoWorks = true;
+               }
+
+               Sizzle.matchesSelector = function( node, expr ) {
+                       // Make sure that attribute selectors are quoted
+                       expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']");
+
+                       if ( !Sizzle.isXML( node ) ) {
+                               try { 
+                                       if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) {
+                                               var ret = matches.call( node, expr );
+
+                                               // IE 9's matchesSelector returns false on disconnected nodes
+                                               if ( ret || !disconnectedMatch ||
+                                                               // As well, disconnected nodes are said to be in a document
+                                                               // fragment in IE 9, so check for that
+                                                               node.document && node.document.nodeType !== 11 ) {
+                                                       return ret;
+                                               }
+                                       }
+                               } catch(e) {}
+                       }
+
+                       return Sizzle(expr, null, null, [node]).length > 0;
+               };
+       }
+})();
+
+(function(){
+       var div = document.createElement("div");
+
+       div.innerHTML = "<div class='test e'></div><div class='test'></div>";
+
+       // Opera can't find a second classname (in 9.6)
+       // Also, make sure that getElementsByClassName actually exists
+       if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
+               return;
+       }
+
+       // Safari caches class attributes, doesn't catch changes (in 3.2)
+       div.lastChild.className = "e";
+
+       if ( div.getElementsByClassName("e").length === 1 ) {
+               return;
+       }
+       
+       Expr.order.splice(1, 0, "CLASS");
+       Expr.find.CLASS = function( match, context, isXML ) {
+               if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
+                       return context.getElementsByClassName(match[1]);
+               }
+       };
+
+       // release memory in IE
+       div = null;
+})();
+
+function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
+       for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+               var elem = checkSet[i];
+
+               if ( elem ) {
+                       var match = false;
+
+                       elem = elem[dir];
+
+                       while ( elem ) {
+                               if ( elem[ expando ] === doneName ) {
+                                       match = checkSet[elem.sizset];
+                                       break;
+                               }
+
+                               if ( elem.nodeType === 1 && !isXML ){
+                                       elem[ expando ] = doneName;
+                                       elem.sizset = i;
+                               }
+
+                               if ( elem.nodeName.toLowerCase() === cur ) {
+                                       match = elem;
+                                       break;
+                               }
+
+                               elem = elem[dir];
+                       }
+
+                       checkSet[i] = match;
+               }
+       }
+}
+
+function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
+       for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+               var elem = checkSet[i];
+
+               if ( elem ) {
+                       var match = false;
+                       
+                       elem = elem[dir];
+
+                       while ( elem ) {
+                               if ( elem[ expando ] === doneName ) {
+                                       match = checkSet[elem.sizset];
+                                       break;
+                               }
+
+                               if ( elem.nodeType === 1 ) {
+                                       if ( !isXML ) {
+                                               elem[ expando ] = doneName;
+                                               elem.sizset = i;
+                                       }
+
+                                       if ( typeof cur !== "string" ) {
+                                               if ( elem === cur ) {
+                                                       match = true;
+                                                       break;
+                                               }
+
+                                       } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
+                                               match = elem;
+                                               break;
+                                       }
+                               }
+
+                               elem = elem[dir];
+                       }
+
+                       checkSet[i] = match;
+               }
+       }
+}
+
+if ( document.documentElement.contains ) {
+       Sizzle.contains = function( a, b ) {
+               return a !== b && (a.contains ? a.contains(b) : true);
+       };
+
+} else if ( document.documentElement.compareDocumentPosition ) {
+       Sizzle.contains = function( a, b ) {
+               return !!(a.compareDocumentPosition(b) & 16);
+       };
+
+} else {
+       Sizzle.contains = function() {
+               return false;
+       };
+}
+
+Sizzle.isXML = function( elem ) {
+       // documentElement is verified for cases where it doesn't yet exist
+       // (such as loading iframes in IE - #4833) 
+       var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
+
+       return documentElement ? documentElement.nodeName !== "HTML" : false;
+};
+
+var posProcess = function( selector, context, seed ) {
+       var match,
+               tmpSet = [],
+               later = "",
+               root = context.nodeType ? [context] : context;
+
+       // Position selectors must be done after the filter
+       // And so must :not(positional) so we move all PSEUDOs to the end
+       while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
+               later += match[0];
+               selector = selector.replace( Expr.match.PSEUDO, "" );
+       }
+
+       selector = Expr.relative[selector] ? selector + "*" : selector;
+
+       for ( var i = 0, l = root.length; i < l; i++ ) {
+               Sizzle( selector, root[i], tmpSet, seed );
+       }
+
+       return Sizzle.filter( later, tmpSet );
+};
+
+// EXPOSE
+// Override sizzle attribute retrieval
+Sizzle.attr = jQuery.attr;
+Sizzle.selectors.attrMap = {};
+jQuery.find = Sizzle;
+jQuery.expr = Sizzle.selectors;
+jQuery.expr[":"] = jQuery.expr.filters;
+jQuery.unique = Sizzle.uniqueSort;
+jQuery.text = Sizzle.getText;
+jQuery.isXMLDoc = Sizzle.isXML;
+jQuery.contains = Sizzle.contains;
+
+
+})();
+
+
+var runtil = /Until$/,
+       rparentsprev = /^(?:parents|prevUntil|prevAll)/,
+       // Note: This RegExp should be improved, or likely pulled from Sizzle
+       rmultiselector = /,/,
+       isSimple = /^.[^:#\[\.,]*$/,
+       slice = Array.prototype.slice,
+       POS = jQuery.expr.match.POS,
+       // methods guaranteed to produce a unique set when starting from a unique set
+       guaranteedUnique = {
+               children: true,
+               contents: true,
+               next: true,
+               prev: true
+       };
+
+jQuery.fn.extend({
+       find: function( selector ) {
+               var self = this,
+                       i, l;
+
+               if ( typeof selector !== "string" ) {
+                       return jQuery( selector ).filter(function() {
+                               for ( i = 0, l = self.length; i < l; i++ ) {
+                                       if ( jQuery.contains( self[ i ], this ) ) {
+                                               return true;
+                                       }
+                               }
+                       });
+               }
+
+               var ret = this.pushStack( "", "find", selector ),
+                       length, n, r;
+
+               for ( i = 0, l = this.length; i < l; i++ ) {
+                       length = ret.length;
+                       jQuery.find( selector, this[i], ret );
+
+                       if ( i > 0 ) {
+                               // Make sure that the results are unique
+                               for ( n = length; n < ret.length; n++ ) {
+                                       for ( r = 0; r < length; r++ ) {
+                                               if ( ret[r] === ret[n] ) {
+                                                       ret.splice(n--, 1);
+                                                       break;
+                                               }
+                                       }
+                               }
+                       }
+               }
+
+               return ret;
+       },
+
+       has: function( target ) {
+               var targets = jQuery( target );
+               return this.filter(function() {
+                       for ( var i = 0, l = targets.length; i < l; i++ ) {
+                               if ( jQuery.contains( this, targets[i] ) ) {
+                                       return true;
+                               }
+                       }
+               });
+       },
+
+       not: function( selector ) {
+               return this.pushStack( winnow(this, selector, false), "not", selector);
+       },
+
+       filter: function( selector ) {
+               return this.pushStack( winnow(this, selector, true), "filter", selector );
+       },
+
+       is: function( selector ) {
+               return !!selector && ( 
+                       typeof selector === "string" ?
+                               // If this is a positional selector, check membership in the returned set
+                               // so $("p:first").is("p:last") won't return true for a doc with two "p".
+                               POS.test( selector ) ? 
+                                       jQuery( selector, this.context ).index( this[0] ) >= 0 :
+                                       jQuery.filter( selector, this ).length > 0 :
+                               this.filter( selector ).length > 0 );
+       },
+
+       closest: function( selectors, context ) {
+               var ret = [], i, l, cur = this[0];
+               
+               // Array (deprecated as of jQuery 1.7)
+               if ( jQuery.isArray( selectors ) ) {
+                       var level = 1;
+
+                       while ( cur && cur.ownerDocument && cur !== context ) {
+                               for ( i = 0; i < selectors.length; i++ ) {
+
+                                       if ( jQuery( cur ).is( selectors[ i ] ) ) {
+                                               ret.push({ selector: selectors[ i ], elem: cur, level: level });
+                                       }
+                               }
+
+                               cur = cur.parentNode;
+                               level++;
+                       }
+
+                       return ret;
+               }
+
+               // String
+               var pos = POS.test( selectors ) || typeof selectors !== "string" ?
+                               jQuery( selectors, context || this.context ) :
+                               0;
+
+               for ( i = 0, l = this.length; i < l; i++ ) {
+                       cur = this[i];
+
+                       while ( cur ) {
+                               if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {
+                                       ret.push( cur );
+                                       break;
+
+                               } else {
+                                       cur = cur.parentNode;
+                                       if ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) {
+                                               break;
+                                       }
+                               }
+                       }
+               }
+
+               ret = ret.length > 1 ? jQuery.unique( ret ) : ret;
+
+               return this.pushStack( ret, "closest", selectors );
+       },
+
+       // Determine the position of an element within
+       // the matched set of elements
+       index: function( elem ) {
+
+               // No argument, return index in parent
+               if ( !elem ) {
+                       return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1;
+               }
+
+               // index in selector
+               if ( typeof elem === "string" ) {
+                       return jQuery.inArray( this[0], jQuery( elem ) );
+               }
+
+               // Locate the position of the desired element
+               return jQuery.inArray(
+                       // If it receives a jQuery object, the first element is used
+                       elem.jquery ? elem[0] : elem, this );
+       },
+
+       add: function( selector, context ) {
+               var set = typeof selector === "string" ?
+                               jQuery( selector, context ) :
+                               jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),
+                       all = jQuery.merge( this.get(), set );
+
+               return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?
+                       all :
+                       jQuery.unique( all ) );
+       },
+
+       andSelf: function() {
+               return this.add( this.prevObject );
+       }
+});
+
+// A painfully simple check to see if an element is disconnected
+// from a document (should be improved, where feasible).
+function isDisconnected( node ) {
+       return !node || !node.parentNode || node.parentNode.nodeType === 11;
+}
+
+jQuery.each({
+       parent: function( elem ) {
+               var parent = elem.parentNode;
+               return parent && parent.nodeType !== 11 ? parent : null;
+       },
+       parents: function( elem ) {
+               return jQuery.dir( elem, "parentNode" );
+       },
+       parentsUntil: function( elem, i, until ) {
+               return jQuery.dir( elem, "parentNode", until );
+       },
+       next: function( elem ) {
+               return jQuery.nth( elem, 2, "nextSibling" );
+       },
+       prev: function( elem ) {
+               return jQuery.nth( elem, 2, "previousSibling" );
+       },
+       nextAll: function( elem ) {
+               return jQuery.dir( elem, "nextSibling" );
+       },
+       prevAll: function( elem ) {
+               return jQuery.dir( elem, "previousSibling" );
+       },
+       nextUntil: function( elem, i, until ) {
+               return jQuery.dir( elem, "nextSibling", until );
+       },
+       prevUntil: function( elem, i, until ) {
+               return jQuery.dir( elem, "previousSibling", until );
+       },
+       siblings: function( elem ) {
+               return jQuery.sibling( elem.parentNode.firstChild, elem );
+       },
+       children: function( elem ) {
+               return jQuery.sibling( elem.firstChild );
+       },
+       contents: function( elem ) {
+               return jQuery.nodeName( elem, "iframe" ) ?
+                       elem.contentDocument || elem.contentWindow.document :
+                       jQuery.makeArray( elem.childNodes );
+       }
+}, function( name, fn ) {
+       jQuery.fn[ name ] = function( until, selector ) {
+               var ret = jQuery.map( this, fn, until );
+
+               if ( !runtil.test( name ) ) {
+                       selector = until;
+               }
+
+               if ( selector && typeof selector === "string" ) {
+                       ret = jQuery.filter( selector, ret );
+               }
+
+               ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;
+
+               if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {
+                       ret = ret.reverse();
+               }
+
+               return this.pushStack( ret, name, slice.call( arguments ).join(",") );
+       };
+});
+
+jQuery.extend({
+       filter: function( expr, elems, not ) {
+               if ( not ) {
+                       expr = ":not(" + expr + ")";
+               }
+
+               return elems.length === 1 ?
+                       jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :
+                       jQuery.find.matches(expr, elems);
+       },
+
+       dir: function( elem, dir, until ) {
+               var matched = [],
+                       cur = elem[ dir ];
+
+               while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
+                       if ( cur.nodeType === 1 ) {
+                               matched.push( cur );
+                       }
+                       cur = cur[dir];
+               }
+               return matched;
+       },
+
+       nth: function( cur, result, dir, elem ) {
+               result = result || 1;
+               var num = 0;
+
+               for ( ; cur; cur = cur[dir] ) {
+                       if ( cur.nodeType === 1 && ++num === result ) {
+                               break;
+                       }
+               }
+
+               return cur;
+       },
+
+       sibling: function( n, elem ) {
+               var r = [];
+
+               for ( ; n; n = n.nextSibling ) {
+                       if ( n.nodeType === 1 && n !== elem ) {
+                               r.push( n );
+                       }
+               }
+
+               return r;
+       }
+});
+
+// Implement the identical functionality for filter and not
+function winnow( elements, qualifier, keep ) {
+
+       // Can't pass null or undefined to indexOf in Firefox 4
+       // Set to 0 to skip string check
+       qualifier = qualifier || 0;
+
+       if ( jQuery.isFunction( qualifier ) ) {
+               return jQuery.grep(elements, function( elem, i ) {
+                       var retVal = !!qualifier.call( elem, i, elem );
+                       return retVal === keep;
+               });
+
+       } else if ( qualifier.nodeType ) {
+               return jQuery.grep(elements, function( elem, i ) {
+                       return ( elem === qualifier ) === keep;
+               });
+
+       } else if ( typeof qualifier === "string" ) {
+               var filtered = jQuery.grep(elements, function( elem ) {
+                       return elem.nodeType === 1;
+               });
+
+               if ( isSimple.test( qualifier ) ) {
+                       return jQuery.filter(qualifier, filtered, !keep);
+               } else {
+                       qualifier = jQuery.filter( qualifier, filtered );
+               }
+       }
+
+       return jQuery.grep(elements, function( elem, i ) {
+               return ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep;
+       });
+}
+
+
+
+
+function createSafeFragment( document ) {
+       var list = nodeNames.split( "|" ),
+       safeFrag = document.createDocumentFragment();
+
+       if ( safeFrag.createElement ) {
+               while ( list.length ) {
+                       safeFrag.createElement(
+                               list.pop()
+                       );
+               }
+       }
+       return safeFrag;
+}
+
+var nodeNames = "abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|" +
+               "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
+       rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
+       rleadingWhitespace = /^\s+/,
+       rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,
+       rtagName = /<([\w:]+)/,
+       rtbody = /<tbody/i,
+       rhtml = /<|&#?\w+;/,
+       rnoInnerhtml = /<(?:script|style)/i,
+       rnocache = /<(?:script|object|embed|option|style)/i,
+       rnoshimcache = new RegExp("<(?:" + nodeNames + ")", "i"),
+       // checked="checked" or checked
+       rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
+       rscriptType = /\/(java|ecma)script/i,
+       rcleanScript = /^\s*<!(?:\[CDATA\[|\-\-)/,
+       wrapMap = {
+               option: [ 1, "<select multiple='multiple'>", "</select>" ],
+               legend: [ 1, "<fieldset>", "</fieldset>" ],
+               thead: [ 1, "<table>", "</table>" ],
+               tr: [ 2, "<table><tbody>", "</tbody></table>" ],
+               td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
+               col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
+               area: [ 1, "<map>", "</map>" ],
+               _default: [ 0, "", "" ]
+       },
+       safeFragment = createSafeFragment( document );
+
+wrapMap.optgroup = wrapMap.option;
+wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
+wrapMap.th = wrapMap.td;
+
+// IE can't serialize <link> and <script> tags normally
+if ( !jQuery.support.htmlSerialize ) {
+       wrapMap._default = [ 1, "div<div>", "</div>" ];
+}
+
+jQuery.fn.extend({
+       text: function( text ) {
+               if ( jQuery.isFunction(text) ) {
+                       return this.each(function(i) {
+                               var self = jQuery( this );
+
+                               self.text( text.call(this, i, self.text()) );
+                       });
+               }
+
+               if ( typeof text !== "object" && text !== undefined ) {
+                       return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
+               }
+
+               return jQuery.text( this );
+       },
+
+       wrapAll: function( html ) {
+               if ( jQuery.isFunction( html ) ) {
+                       return this.each(function(i) {
+                               jQuery(this).wrapAll( html.call(this, i) );
+                       });
+               }
+
+               if ( this[0] ) {
+                       // The elements to wrap the target around
+                       var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
+
+                       if ( this[0].parentNode ) {
+                               wrap.insertBefore( this[0] );
+                       }
+
+                       wrap.map(function() {
+                               var elem = this;
+
+                               while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
+                                       elem = elem.firstChild;
+                               }
+
+                               return elem;
+                       }).append( this );
+               }
+
+               return this;
+       },
+
+       wrapInner: function( html ) {
+               if ( jQuery.isFunction( html ) ) {
+                       return this.each(function(i) {
+                               jQuery(this).wrapInner( html.call(this, i) );
+                       });
+               }
+
+               return this.each(function() {
+                       var self = jQuery( this ),
+                               contents = self.contents();
+
+                       if ( contents.length ) {
+                               contents.wrapAll( html );
+
+                       } else {
+                               self.append( html );
+                       }
+               });
+       },
+
+       wrap: function( html ) {
+               var isFunction = jQuery.isFunction( html );
+
+               return this.each(function(i) {
+                       jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
+               });
+       },
+
+       unwrap: function() {
+               return this.parent().each(function() {
+                       if ( !jQuery.nodeName( this, "body" ) ) {
+                               jQuery( this ).replaceWith( this.childNodes );
+                       }
+               }).end();
+       },
+
+       append: function() {
+               return this.domManip(arguments, true, function( elem ) {
+                       if ( this.nodeType === 1 ) {
+                               this.appendChild( elem );
+                       }
+               });
+       },
+
+       prepend: function() {
+               return this.domManip(arguments, true, function( elem ) {
+                       if ( this.nodeType === 1 ) {
+                               this.insertBefore( elem, this.firstChild );
+                       }
+               });
+       },
+
+       before: function() {
+               if ( this[0] && this[0].parentNode ) {
+                       return this.domManip(arguments, false, function( elem ) {
+                               this.parentNode.insertBefore( elem, this );
+                       });
+               } else if ( arguments.length ) {
+                       var set = jQuery.clean( arguments );
+                       set.push.apply( set, this.toArray() );
+                       return this.pushStack( set, "before", arguments );
+               }
+       },
+
+       after: function() {
+               if ( this[0] && this[0].parentNode ) {
+                       return this.domManip(arguments, false, function( elem ) {
+                               this.parentNode.insertBefore( elem, this.nextSibling );
+                       });
+               } else if ( arguments.length ) {
+                       var set = this.pushStack( this, "after", arguments );
+                       set.push.apply( set, jQuery.clean(arguments) );
+                       return set;
+               }
+       },
+
+       // keepData is for internal use only--do not document
+       remove: function( selector, keepData ) {
+               for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
+                       if ( !selector || jQuery.filter( selector, [ elem ] ).length ) {
+                               if ( !keepData && elem.nodeType === 1 ) {
+                                       jQuery.cleanData( elem.getElementsByTagName("*") );
+                                       jQuery.cleanData( [ elem ] );
+                               }
+
+                               if ( elem.parentNode ) {
+                                       elem.parentNode.removeChild( elem );
+                               }
+                       }
+               }
+
+               return this;
+       },
+
+       empty: function() {
+               for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
+                       // Remove element nodes and prevent memory leaks
+                       if ( elem.nodeType === 1 ) {
+                               jQuery.cleanData( elem.getElementsByTagName("*") );
+                       }
+
+                       // Remove any remaining nodes
+                       while ( elem.firstChild ) {
+                               elem.removeChild( elem.firstChild );
+                       }
+               }
+
+               return this;
+       },
+
+       clone: function( dataAndEvents, deepDataAndEvents ) {
+               dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
+               deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
+
+               return this.map( function () {
+                       return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
+               });
+       },
+
+       html: function( value ) {
+               if ( value === undefined ) {
+                       return this[0] && this[0].nodeType === 1 ?
+                               this[0].innerHTML.replace(rinlinejQuery, "") :
+                               null;
+
+               // See if we can take a shortcut and just use innerHTML
+               } else if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
+                       (jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
+                       !wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {
+
+                       value = value.replace(rxhtmlTag, "<$1></$2>");
+
+                       try {
+                               for ( var i = 0, l = this.length; i < l; i++ ) {
+                                       // Remove element nodes and prevent memory leaks
+                                       if ( this[i].nodeType === 1 ) {
+                                               jQuery.cleanData( this[i].getElementsByTagName("*") );
+                                               this[i].innerHTML = value;
+                                       }
+                               }
+
+                       // If using innerHTML throws an exception, use the fallback method
+                       } catch(e) {
+                               this.empty().append( value );
+                       }
+
+               } else if ( jQuery.isFunction( value ) ) {
+                       this.each(function(i){
+                               var self = jQuery( this );
+
+                               self.html( value.call(this, i, self.html()) );
+                       });
+
+               } else {
+                       this.empty().append( value );
+               }
+
+               return this;
+       },
+
+       replaceWith: function( value ) {
+               if ( this[0] && this[0].parentNode ) {
+                       // Make sure that the elements are removed from the DOM before they are inserted
+                       // this can help fix replacing a parent with child elements
+                       if ( jQuery.isFunction( value ) ) {
+                               return this.each(function(i) {
+                                       var self = jQuery(this), old = self.html();
+                                       self.replaceWith( value.call( this, i, old ) );
+                               });
+                       }
+
+                       if ( typeof value !== "string" ) {
+                               value = jQuery( value ).detach();
+                       }
+
+                       return this.each(function() {
+                               var next = this.nextSibling,
+                                       parent = this.parentNode;
+
+                               jQuery( this ).remove();
+
+                               if ( next ) {
+                                       jQuery(next).before( value );
+                               } else {
+                                       jQuery(parent).append( value );
+                               }
+                       });
+               } else {
+                       return this.length ?
+                               this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value ) :
+                               this;
+               }
+       },
+
+       detach: function( selector ) {
+               return this.remove( selector, true );
+       },
+
+       domManip: function( args, table, callback ) {
+               var results, first, fragment, parent,
+                       value = args[0],
+                       scripts = [];
+
+               // We can't cloneNode fragments that contain checked, in WebKit
+               if ( !jQuery.support.checkClone && arguments.length === 3 && typeof value === "string" && rchecked.test( value ) ) {
+                       return this.each(function() {
+                               jQuery(this).domManip( args, table, callback, true );
+                       });
+               }
+
+               if ( jQuery.isFunction(value) ) {
+                       return this.each(function(i) {
+                               var self = jQuery(this);
+                               args[0] = value.call(this, i, table ? self.html() : undefined);
+                               self.domManip( args, table, callback );
+                       });
+               }
+
+               if ( this[0] ) {
+                       parent = value && value.parentNode;
+
+                       // If we're in a fragment, just use that instead of building a new one
+                       if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
+                               results = { fragment: parent };
+
+                       } else {
+                               results = jQuery.buildFragment( args, this, scripts );
+                       }
+
+                       fragment = results.fragment;
+
+                       if ( fragment.childNodes.length === 1 ) {
+                               first = fragment = fragment.firstChild;
+                       } else {
+                               first = fragment.firstChild;
+                       }
+
+                       if ( first ) {
+                               table = table && jQuery.nodeName( first, "tr" );
+
+                               for ( var i = 0, l = this.length, lastIndex = l - 1; i < l; i++ ) {
+                                       callback.call(
+                                               table ?
+                                                       root(this[i], first) :
+                                                       this[i],
+                                               // Make sure that we do not leak memory by inadvertently discarding
+                                               // the original fragment (which might have attached data) instead of
+                                               // using it; in addition, use the original fragment object for the last
+                                               // item instead of first because it can end up being emptied incorrectly
+                                               // in certain situations (Bug #8070).
+                                               // Fragments from the fragment cache must always be cloned and never used
+                                               // in place.
+                                               results.cacheable || ( l > 1 && i < lastIndex ) ?
+                                                       jQuery.clone( fragment, true, true ) :
+                                                       fragment
+                                       );
+                               }
+                       }
+
+                       if ( scripts.length ) {
+                               jQuery.each( scripts, evalScript );
+                       }
+               }
+
+               return this;
+       }
+});
+
+function root( elem, cur ) {
+       return jQuery.nodeName(elem, "table") ?
+               (elem.getElementsByTagName("tbody")[0] ||
+               elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
+               elem;
+}
+
+function cloneCopyEvent( src, dest ) {
+
+       if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {
+               return;
+       }
+
+       var type, i, l,
+               oldData = jQuery._data( src ),
+               curData = jQuery._data( dest, oldData ),
+               events = oldData.events;
+
+       if ( events ) {
+               delete curData.handle;
+               curData.events = {};
+
+               for ( type in events ) {
+                       for ( i = 0, l = events[ type ].length; i < l; i++ ) {
+                               jQuery.event.add( dest, type + ( events[ type ][ i ].namespace ? "." : "" ) + events[ type ][ i ].namespace, events[ type ][ i ], events[ type ][ i ].data );
+                       }
+               }
+       }
+
+       // make the cloned public data object a copy from the original
+       if ( curData.data ) {
+               curData.data = jQuery.extend( {}, curData.data );
+       }
+}
+
+function cloneFixAttributes( src, dest ) {
+       var nodeName;
+
+       // We do not need to do anything for non-Elements
+       if ( dest.nodeType !== 1 ) {
+               return;
+       }
+
+       // clearAttributes removes the attributes, which we don't want,
+       // but also removes the attachEvent events, which we *do* want
+       if ( dest.clearAttributes ) {
+               dest.clearAttributes();
+       }
+
+       // mergeAttributes, in contrast, only merges back on the
+       // original attributes, not the events
+       if ( dest.mergeAttributes ) {
+               dest.mergeAttributes( src );
+       }
+
+       nodeName = dest.nodeName.toLowerCase();
+
+       // IE6-8 fail to clone children inside object elements that use
+       // the proprietary classid attribute value (rather than the type
+       // attribute) to identify the type of content to display
+       if ( nodeName === "object" ) {
+               dest.outerHTML = src.outerHTML;
+
+       } else if ( nodeName === "input" && (src.type === "checkbox" || src.type === "radio") ) {
+               // IE6-8 fails to persist the checked state of a cloned checkbox
+               // or radio button. Worse, IE6-7 fail to give the cloned element
+               // a checked appearance if the defaultChecked value isn't also set
+               if ( src.checked ) {
+                       dest.defaultChecked = dest.checked = src.checked;
+               }
+
+               // IE6-7 get confused and end up setting the value of a cloned
+               // checkbox/radio button to an empty string instead of "on"
+               if ( dest.value !== src.value ) {
+                       dest.value = src.value;
+               }
+
+       // IE6-8 fails to return the selected option to the default selected
+       // state when cloning options
+       } else if ( nodeName === "option" ) {
+               dest.selected = src.defaultSelected;
+
+       // IE6-8 fails to set the defaultValue to the correct value when
+       // cloning other types of input fields
+       } else if ( nodeName === "input" || nodeName === "textarea" ) {
+               dest.defaultValue = src.defaultValue;
+       }
+
+       // Event data gets referenced instead of copied if the expando
+       // gets copied too
+       dest.removeAttribute( jQuery.expando );
+}
+
+jQuery.buildFragment = function( args, nodes, scripts ) {
+       var fragment, cacheable, cacheresults, doc,
+       first = args[ 0 ];
+
+       // nodes may contain either an explicit document object,
+       // a jQuery collection or context object.
+       // If nodes[0] contains a valid object to assign to doc
+       if ( nodes && nodes[0] ) {
+               doc = nodes[0].ownerDocument || nodes[0];
+       }
+
+       // Ensure that an attr object doesn't incorrectly stand in as a document object
+       // Chrome and Firefox seem to allow this to occur and will throw exception
+       // Fixes #8950
+       if ( !doc.createDocumentFragment ) {
+               doc = document;
+       }
+
+       // Only cache "small" (1/2 KB) HTML strings that are associated with the main document
+       // Cloning options loses the selected state, so don't cache them
+       // IE 6 doesn't like it when you put <object> or <embed> elements in a fragment
+       // Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache
+       // Lastly, IE6,7,8 will not correctly reuse cached fragments that were created from unknown elems #10501
+       if ( args.length === 1 && typeof first === "string" && first.length < 512 && doc === document &&
+               first.charAt(0) === "<" && !rnocache.test( first ) &&
+               (jQuery.support.checkClone || !rchecked.test( first )) &&
+               (jQuery.support.html5Clone || !rnoshimcache.test( first )) ) {
+
+               cacheable = true;
+
+               cacheresults = jQuery.fragments[ first ];
+               if ( cacheresults && cacheresults !== 1 ) {
+                       fragment = cacheresults;
+               }
+       }
+
+       if ( !fragment ) {
+               fragment = doc.createDocumentFragment();
+               jQuery.clean( args, doc, fragment, scripts );
+       }
+
+       if ( cacheable ) {
+               jQuery.fragments[ first ] = cacheresults ? fragment : 1;
+       }
+
+       return { fragment: fragment, cacheable: cacheable };
+};
+
+jQuery.fragments = {};
+
+jQuery.each({
+       appendTo: "append",
+       prependTo: "prepend",
+       insertBefore: "before",
+       insertAfter: "after",
+       replaceAll: "replaceWith"
+}, function( name, original ) {
+       jQuery.fn[ name ] = function( selector ) {
+               var ret = [],
+                       insert = jQuery( selector ),
+                       parent = this.length === 1 && this[0].parentNode;
+
+               if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {
+                       insert[ original ]( this[0] );
+                       return this;
+
+               } else {
+                       for ( var i = 0, l = insert.length; i < l; i++ ) {
+                               var elems = ( i > 0 ? this.clone(true) : this ).get();
+                               jQuery( insert[i] )[ original ]( elems );
+                               ret = ret.concat( elems );
+                       }
+
+                       return this.pushStack( ret, name, insert.selector );
+               }
+       };
+});
+
+function getAll( elem ) {
+       if ( typeof elem.getElementsByTagName !== "undefined" ) {
+               return elem.getElementsByTagName( "*" );
+
+       } else if ( typeof elem.querySelectorAll !== "undefined" ) {
+               return elem.querySelectorAll( "*" );
+
+       } else {
+               return [];
+       }
+}
+
+// Used in clean, fixes the defaultChecked property
+function fixDefaultChecked( elem ) {
+       if ( elem.type === "checkbox" || elem.type === "radio" ) {
+               elem.defaultChecked = elem.checked;
+       }
+}
+// Finds all inputs and passes them to fixDefaultChecked
+function findInputs( elem ) {
+       var nodeName = ( elem.nodeName || "" ).toLowerCase();
+       if ( nodeName === "input" ) {
+               fixDefaultChecked( elem );
+       // Skip scripts, get other children
+       } else if ( nodeName !== "script" && typeof elem.getElementsByTagName !== "undefined" ) {
+               jQuery.grep( elem.getElementsByTagName("input"), fixDefaultChecked );
+       }
+}
+
+// Derived From: http://www.iecss.com/shimprove/javascript/shimprove.1-0-1.js
+function shimCloneNode( elem ) {
+       var div = document.createElement( "div" );
+       safeFragment.appendChild( div );
+
+       div.innerHTML = elem.outerHTML;
+       return div.firstChild;
+}
+
+jQuery.extend({
+       clone: function( elem, dataAndEvents, deepDataAndEvents ) {
+               var srcElements,
+                       destElements,
+                       i,
+                       // IE<=8 does not properly clone detached, unknown element nodes
+                       clone = jQuery.support.html5Clone || !rnoshimcache.test( "<" + elem.nodeName ) ?
+                               elem.cloneNode( true ) :
+                               shimCloneNode( elem );
+
+               if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) &&
+                               (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {
+                       // IE copies events bound via attachEvent when using cloneNode.
+                       // Calling detachEvent on the clone will also remove the events
+                       // from the original. In order to get around this, we use some
+                       // proprietary methods to clear the events. Thanks to MooTools
+                       // guys for this hotness.
+
+                       cloneFixAttributes( elem, clone );
+
+                       // Using Sizzle here is crazy slow, so we use getElementsByTagName instead
+                       srcElements = getAll( elem );
+                       destElements = getAll( clone );
+
+                       // Weird iteration because IE will replace the length property
+                       // with an element if you are cloning the body and one of the
+                       // elements on the page has a name or id of "length"
+                       for ( i = 0; srcElements[i]; ++i ) {
+                               // Ensure that the destination node is not null; Fixes #9587
+                               if ( destElements[i] ) {
+                                       cloneFixAttributes( srcElements[i], destElements[i] );
+                               }
+                       }
+               }
+
+               // Copy the events from the original to the clone
+               if ( dataAndEvents ) {
+                       cloneCopyEvent( elem, clone );
+
+                       if ( deepDataAndEvents ) {
+                               srcElements = getAll( elem );
+                               destElements = getAll( clone );
+
+                               for ( i = 0; srcElements[i]; ++i ) {
+                                       cloneCopyEvent( srcElements[i], destElements[i] );
+                               }
+                       }
+               }
+
+               srcElements = destElements = null;
+
+               // Return the cloned set
+               return clone;
+       },
+
+       clean: function( elems, context, fragment, scripts ) {
+               var checkScriptType;
+
+               context = context || document;
+
+               // !context.createElement fails in IE with an error but returns typeof 'object'
+               if ( typeof context.createElement === "undefined" ) {
+                       context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
+               }
+
+               var ret = [], j;
+
+               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
+                       if ( typeof elem === "number" ) {
+                               elem += "";
+                       }
+
+                       if ( !elem ) {
+                               continue;
+                       }
+
+                       // Convert html string into DOM nodes
+                       if ( typeof elem === "string" ) {
+                               if ( !rhtml.test( elem ) ) {
+                                       elem = context.createTextNode( elem );
+                               } else {
+                                       // Fix "XHTML"-style tags in all browsers
+                                       elem = elem.replace(rxhtmlTag, "<$1></$2>");
+
+                                       // Trim whitespace, otherwise indexOf won't work as expected
+                                       var tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase(),
+                                               wrap = wrapMap[ tag ] || wrapMap._default,
+                                               depth = wrap[0],
+                                               div = context.createElement("div");
+
+                                       // Append wrapper element to unknown element safe doc fragment
+                                       if ( context === document ) {
+                                               // Use the fragment we've already created for this document
+                                               safeFragment.appendChild( div );
+                                       } else {
+                                               // Use a fragment created with the owner document
+                                               createSafeFragment( context ).appendChild( div );
+                                       }
+
+                                       // Go to html and back, then peel off extra wrappers
+                                       div.innerHTML = wrap[1] + elem + wrap[2];
+
+                                       // Move to the right depth
+                                       while ( depth-- ) {
+                                               div = div.lastChild;
+                                       }
+
+                                       // Remove IE's autoinserted <tbody> from table fragments
+                                       if ( !jQuery.support.tbody ) {
+
+                                               // String was a <table>, *may* have spurious <tbody>
+                                               var hasBody = rtbody.test(elem),
+                                                       tbody = tag === "table" && !hasBody ?
+                                                               div.firstChild && div.firstChild.childNodes :
+
+                                                               // String was a bare <thead> or <tfoot>
+                                                               wrap[1] === "<table>" && !hasBody ?
+                                                                       div.childNodes :
+                                                                       [];
+
+                                               for ( j = tbody.length - 1; j >= 0 ; --j ) {
+                                                       if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
+                                                               tbody[ j ].parentNode.removeChild( tbody[ j ] );
+                                                       }
+                                               }
+                                       }
+
+                                       // IE completely kills leading whitespace when innerHTML is used
+                                       if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
+                                               div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );
+                                       }
+
+                                       elem = div.childNodes;
+                               }
+                       }
+
+                       // Resets defaultChecked for any radios and checkboxes
+                       // about to be appended to the DOM in IE 6/7 (#8060)
+                       var len;
+                       if ( !jQuery.support.appendChecked ) {
+                               if ( elem[0] && typeof (len = elem.length) === "number" ) {
+                                       for ( j = 0; j < len; j++ ) {
+                                               findInputs( elem[j] );
+                                       }
+                               } else {
+                                       findInputs( elem );
+                               }
+                       }
+
+                       if ( elem.nodeType ) {
+                               ret.push( elem );
+                       } else {
+                               ret = jQuery.merge( ret, elem );
+                       }
+               }
+
+               if ( fragment ) {
+                       checkScriptType = function( elem ) {
+                               return !elem.type || rscriptType.test( elem.type );
+                       };
+                       for ( i = 0; ret[i]; i++ ) {
+                               if ( scripts && jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
+                                       scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
+
+                               } else {
+                                       if ( ret[i].nodeType === 1 ) {
+                                               var jsTags = jQuery.grep( ret[i].getElementsByTagName( "script" ), checkScriptType );
+
+                                               ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) );
+                                       }
+                                       fragment.appendChild( ret[i] );
+                               }
+                       }
+               }
+
+               return ret;
+       },
+
+       cleanData: function( elems ) {
+               var data, id,
+                       cache = jQuery.cache,
+                       special = jQuery.event.special,
+                       deleteExpando = jQuery.support.deleteExpando;
+
+               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
+                       if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
+                               continue;
+                       }
+
+                       id = elem[ jQuery.expando ];
+
+                       if ( id ) {
+                               data = cache[ id ];
+
+                               if ( data && data.events ) {
+                                       for ( var type in data.events ) {
+                                               if ( special[ type ] ) {
+                                                       jQuery.event.remove( elem, type );
+
+                                               // This is a shortcut to avoid jQuery.event.remove's overhead
+                                               } else {
+                                                       jQuery.removeEvent( elem, type, data.handle );
+                                               }
+                                       }
+
+                                       // Null the DOM reference to avoid IE6/7/8 leak (#7054)
+                                       if ( data.handle ) {
+                                               data.handle.elem = null;
+                                       }
+                               }
+
+                               if ( deleteExpando ) {
+                                       delete elem[ jQuery.expando ];
+
+                               } else if ( elem.removeAttribute ) {
+                                       elem.removeAttribute( jQuery.expando );
+                               }
+
+                               delete cache[ id ];
+                       }
+               }
+       }
+});
+
+function evalScript( i, elem ) {
+       if ( elem.src ) {
+               jQuery.ajax({
+                       url: elem.src,
+                       async: false,
+                       dataType: "script"
+               });
+       } else {
+               jQuery.globalEval( ( elem.text || elem.textContent || elem.innerHTML || "" ).replace( rcleanScript, "/*$0*/" ) );
+       }
+
+       if ( elem.parentNode ) {
+               elem.parentNode.removeChild( elem );
+       }
+}
+
+
+
+
+var ralpha = /alpha\([^)]*\)/i,
+       ropacity = /opacity=([^)]*)/,
+       // fixed for IE9, see #8346
+       rupper = /([A-Z]|^ms)/g,
+       rnumpx = /^-?\d+(?:px)?$/i,
+       rnum = /^-?\d/,
+       rrelNum = /^([\-+])=([\-+.\de]+)/,
+
+       cssShow = { position: "absolute", visibility: "hidden", display: "block" },
+       cssWidth = [ "Left", "Right" ],
+       cssHeight = [ "Top", "Bottom" ],
+       curCSS,
+
+       getComputedStyle,
+       currentStyle;
+
+jQuery.fn.css = function( name, value ) {
+       // Setting 'undefined' is a no-op
+       if ( arguments.length === 2 && value === undefined ) {
+               return this;
+       }
+
+       return jQuery.access( this, name, value, true, function( elem, name, value ) {
+               return value !== undefined ?
+                       jQuery.style( elem, name, value ) :
+                       jQuery.css( elem, name );
+       });
+};
+
+jQuery.extend({
+       // Add in style property hooks for overriding the default
+       // behavior of getting and setting a style property
+       cssHooks: {
+               opacity: {
+                       get: function( elem, computed ) {
+                               if ( computed ) {
+                                       // We should always get a number back from opacity
+                                       var ret = curCSS( elem, "opacity", "opacity" );
+                                       return ret === "" ? "1" : ret;
+
+                               } else {
+                                       return elem.style.opacity;
+                               }
+                       }
+               }
+       },
+
+       // Exclude the following css properties to add px
+       cssNumber: {
+               "fillOpacity": true,
+               "fontWeight": true,
+               "lineHeight": true,
+               "opacity": true,
+               "orphans": true,
+               "widows": true,
+               "zIndex": true,
+               "zoom": true
+       },
+
+       // Add in properties whose names you wish to fix before
+       // setting or getting the value
+       cssProps: {
+               // normalize float css property
+               "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat"
+       },
+
+       // Get and set the style property on a DOM Node
+       style: function( elem, name, value, extra ) {
+               // Don't set styles on text and comment nodes
+               if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
+                       return;
+               }
+
+               // Make sure that we're working with the right name
+               var ret, type, origName = jQuery.camelCase( name ),
+                       style = elem.style, hooks = jQuery.cssHooks[ origName ];
+
+               name = jQuery.cssProps[ origName ] || origName;
+
+               // Check if we're setting a value
+               if ( value !== undefined ) {
+                       type = typeof value;
+
+                       // convert relative number strings (+= or -=) to relative numbers. #7345
+                       if ( type === "string" && (ret = rrelNum.exec( value )) ) {
+                               value = ( +( ret[1] + 1) * +ret[2] ) + parseFloat( jQuery.css( elem, name ) );
+                               // Fixes bug #9237
+                               type = "number";
+                       }
+
+                       // Make sure that NaN and null values aren't set. See: #7116
+                       if ( value == null || type === "number" && isNaN( value ) ) {
+                               return;
+                       }
+
+                       // If a number was passed in, add 'px' to the (except for certain CSS properties)
+                       if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
+                               value += "px";
+                       }
+
+                       // If a hook was provided, use that value, otherwise just set the specified value
+                       if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value )) !== undefined ) {
+                               // Wrapped to prevent IE from throwing errors when 'invalid' values are provided
+                               // Fixes bug #5509
+                               try {
+                                       style[ name ] = value;
+                               } catch(e) {}
+                       }
+
+               } else {
+                       // If a hook was provided get the non-computed value from there
+                       if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
+                               return ret;
+                       }
+
+                       // Otherwise just get the value from the style object
+                       return style[ name ];
+               }
+       },
+
+       css: function( elem, name, extra ) {
+               var ret, hooks;
+
+               // Make sure that we're working with the right name
+               name = jQuery.camelCase( name );
+               hooks = jQuery.cssHooks[ name ];
+               name = jQuery.cssProps[ name ] || name;
+
+               // cssFloat needs a special treatment
+               if ( name === "cssFloat" ) {
+                       name = "float";
+               }
+
+               // If a hook was provided get the computed value from there
+               if ( hooks && "get" in hooks && (ret = hooks.get( elem, true, extra )) !== undefined ) {
+                       return ret;
+
+               // Otherwise, if a way to get the computed value exists, use that
+               } else if ( curCSS ) {
+                       return curCSS( elem, name );
+               }
+       },
+
+       // A method for quickly swapping in/out CSS properties to get correct calculations
+       swap: function( elem, options, callback ) {
+               var old = {};
+
+               // Remember the old values, and insert the new ones
+               for ( var name in options ) {
+                       old[ name ] = elem.style[ name ];
+                       elem.style[ name ] = options[ name ];
+               }
+
+               callback.call( elem );
+
+               // Revert the old values
+               for ( name in options ) {
+                       elem.style[ name ] = old[ name ];
+               }
+       }
+});
+
+// DEPRECATED, Use jQuery.css() instead
+jQuery.curCSS = jQuery.css;
+
+jQuery.each(["height", "width"], function( i, name ) {
+       jQuery.cssHooks[ name ] = {
+               get: function( elem, computed, extra ) {
+                       var val;
+
+                       if ( computed ) {
+                               if ( elem.offsetWidth !== 0 ) {
+                                       return getWH( elem, name, extra );
+                               } else {
+                                       jQuery.swap( elem, cssShow, function() {
+                                               val = getWH( elem, name, extra );
+                                       });
+                               }
+
+                               return val;
+                       }
+               },
+
+               set: function( elem, value ) {
+                       if ( rnumpx.test( value ) ) {
+                               // ignore negative width and height values #1599
+                               value = parseFloat( value );
+
+                               if ( value >= 0 ) {
+                                       return value + "px";
+                               }
+
+                       } else {
+                               return value;
+                       }
+               }
+       };
+});
+
+if ( !jQuery.support.opacity ) {
+       jQuery.cssHooks.opacity = {
+               get: function( elem, computed ) {
+                       // IE uses filters for opacity
+                       return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
+                               ( parseFloat( RegExp.$1 ) / 100 ) + "" :
+                               computed ? "1" : "";
+               },
+
+               set: function( elem, value ) {
+                       var style = elem.style,
+                               currentStyle = elem.currentStyle,
+                               opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "",
+                               filter = currentStyle && currentStyle.filter || style.filter || "";
+
+                       // IE has trouble with opacity if it does not have layout
+                       // Force it by setting the zoom level
+                       style.zoom = 1;
+
+                       // if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
+                       if ( value >= 1 && jQuery.trim( filter.replace( ralpha, "" ) ) === "" ) {
+
+                               // Setting style.filter to null, "" & " " still leave "filter:" in the cssText
+                               // if "filter:" is present at all, clearType is disabled, we want to avoid this
+                               // style.removeAttribute is IE Only, but so apparently is this code path...
+                               style.removeAttribute( "filter" );
+
+                               // if there there is no filter style applied in a css rule, we are done
+                               if ( currentStyle && !currentStyle.filter ) {
+                                       return;
+                               }
+                       }
+
+                       // otherwise, set new filter values
+                       style.filter = ralpha.test( filter ) ?
+                               filter.replace( ralpha, opacity ) :
+                               filter + " " + opacity;
+               }
+       };
+}
+
+jQuery(function() {
+       // This hook cannot be added until DOM ready because the support test
+       // for it is not run until after DOM ready
+       if ( !jQuery.support.reliableMarginRight ) {
+               jQuery.cssHooks.marginRight = {
+                       get: function( elem, computed ) {
+                               // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
+                               // Work around by temporarily setting element display to inline-block
+                               var ret;
+                               jQuery.swap( elem, { "display": "inline-block" }, function() {
+                                       if ( computed ) {
+                                               ret = curCSS( elem, "margin-right", "marginRight" );
+                                       } else {
+                                               ret = elem.style.marginRight;
+                                       }
+                               });
+                               return ret;
+                       }
+               };
+       }
+});
+
+if ( document.defaultView && document.defaultView.getComputedStyle ) {
+       getComputedStyle = function( elem, name ) {
+               var ret, defaultView, computedStyle;
+
+               name = name.replace( rupper, "-$1" ).toLowerCase();
+
+               if ( (defaultView = elem.ownerDocument.defaultView) &&
+                               (computedStyle = defaultView.getComputedStyle( elem, null )) ) {
+                       ret = computedStyle.getPropertyValue( name );
+                       if ( ret === "" && !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) {
+                               ret = jQuery.style( elem, name );
+                       }
+               }
+
+               return ret;
+       };
+}
+
+if ( document.documentElement.currentStyle ) {
+       currentStyle = function( elem, name ) {
+               var left, rsLeft, uncomputed,
+                       ret = elem.currentStyle && elem.currentStyle[ name ],
+                       style = elem.style;
+
+               // Avoid setting ret to empty string here
+               // so we don't default to auto
+               if ( ret === null && style && (uncomputed = style[ name ]) ) {
+                       ret = uncomputed;
+               }
+
+               // From the awesome hack by Dean Edwards
+               // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
+
+               // If we're not dealing with a regular pixel number
+               // but a number that has a weird ending, we need to convert it to pixels
+               if ( !rnumpx.test( ret ) && rnum.test( ret ) ) {
+
+                       // Remember the original values
+                       left = style.left;
+                       rsLeft = elem.runtimeStyle && elem.runtimeStyle.left;
+
+                       // Put in the new values to get a computed value out
+                       if ( rsLeft ) {
+                               elem.runtimeStyle.left = elem.currentStyle.left;
+                       }
+                       style.left = name === "fontSize" ? "1em" : ( ret || 0 );
+                       ret = style.pixelLeft + "px";
+
+                       // Revert the changed values
+                       style.left = left;
+                       if ( rsLeft ) {
+                               elem.runtimeStyle.left = rsLeft;
+                       }
+               }
+
+               return ret === "" ? "auto" : ret;
+       };
+}
+
+curCSS = getComputedStyle || currentStyle;
+
+function getWH( elem, name, extra ) {
+
+       // Start with offset property
+       var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
+               which = name === "width" ? cssWidth : cssHeight,
+               i = 0,
+               len = which.length;
+
+       if ( val > 0 ) {
+               if ( extra !== "border" ) {
+                       for ( ; i < len; i++ ) {
+                               if ( !extra ) {
+                                       val -= parseFloat( jQuery.css( elem, "padding" + which[ i ] ) ) || 0;
+                               }
+                               if ( extra === "margin" ) {
+                                       val += parseFloat( jQuery.css( elem, extra + which[ i ] ) ) || 0;
+                               } else {
+                                       val -= parseFloat( jQuery.css( elem, "border" + which[ i ] + "Width" ) ) || 0;
+                               }
+                       }
+               }
+
+               return val + "px";
+       }
+
+       // Fall back to computed then uncomputed css if necessary
+       val = curCSS( elem, name, name );
+       if ( val < 0 || val == null ) {
+               val = elem.style[ name ] || 0;
+       }
+       // Normalize "", auto, and prepare for extra
+       val = parseFloat( val ) || 0;
+
+       // Add padding, border, margin
+       if ( extra ) {
+               for ( ; i < len; i++ ) {
+                       val += parseFloat( jQuery.css( elem, "padding" + which[ i ] ) ) || 0;
+                       if ( extra !== "padding" ) {
+                               val += parseFloat( jQuery.css( elem, "border" + which[ i ] + "Width" ) ) || 0;
+                       }
+                       if ( extra === "margin" ) {
+                               val += parseFloat( jQuery.css( elem, extra + which[ i ] ) ) || 0;
+                       }
+               }
+       }
+
+       return val + "px";
+}
+
+if ( jQuery.expr && jQuery.expr.filters ) {
+       jQuery.expr.filters.hidden = function( elem ) {
+               var width = elem.offsetWidth,
+                       height = elem.offsetHeight;
+
+               return ( width === 0 && height === 0 ) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");
+       };
+
+       jQuery.expr.filters.visible = function( elem ) {
+               return !jQuery.expr.filters.hidden( elem );
+       };
+}
+
+
+
+
+var r20 = /%20/g,
+       rbracket = /\[\]$/,
+       rCRLF = /\r?\n/g,
+       rhash = /#.*$/,
+       rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
+       rinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
+       // #7653, #8125, #8152: local protocol detection
+       rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,
+       rnoContent = /^(?:GET|HEAD)$/,
+       rprotocol = /^\/\//,
+       rquery = /\?/,
+       rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
+       rselectTextarea = /^(?:select|textarea)/i,
+       rspacesAjax = /\s+/,
+       rts = /([?&])_=[^&]*/,
+       rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,
+
+       // Keep a copy of the old load method
+       _load = jQuery.fn.load,
+
+       /* Prefilters
+        * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
+        * 2) These are called:
+        *    - BEFORE asking for a transport
+        *    - AFTER param serialization (s.data is a string if s.processData is true)
+        * 3) key is the dataType
+        * 4) the catchall symbol "*" can be used
+        * 5) execution will start with transport dataType and THEN continue down to "*" if needed
+        */
+       prefilters = {},
+
+       /* Transports bindings
+        * 1) key is the dataType
+        * 2) the catchall symbol "*" can be used
+        * 3) selection will start with transport dataType and THEN go to "*" if needed
+        */
+       transports = {},
+
+       // Document location
+       ajaxLocation,
+
+       // Document location segments
+       ajaxLocParts,
+
+       // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
+       allTypes = ["*/"] + ["*"];
+
+// #8138, IE may throw an exception when accessing
+// a field from window.location if document.domain has been set
+try {
+       ajaxLocation = location.href;
+} catch( e ) {
+       // Use the href attribute of an A element
+       // since IE will modify it given document.location
+       ajaxLocation = document.createElement( "a" );
+       ajaxLocation.href = "";
+       ajaxLocation = ajaxLocation.href;
+}
+
+// Segment location into parts
+ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
+
+// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
+function addToPrefiltersOrTransports( structure ) {
+
+       // dataTypeExpression is optional and defaults to "*"
+       return function( dataTypeExpression, func ) {
+
+               if ( typeof dataTypeExpression !== "string" ) {
+                       func = dataTypeExpression;
+                       dataTypeExpression = "*";
+               }
+
+               if ( jQuery.isFunction( func ) ) {
+                       var dataTypes = dataTypeExpression.toLowerCase().split( rspacesAjax ),
+                               i = 0,
+                               length = dataTypes.length,
+                               dataType,
+                               list,
+                               placeBefore;
+
+                       // For each dataType in the dataTypeExpression
+                       for ( ; i < length; i++ ) {
+                               dataType = dataTypes[ i ];
+                               // We control if we're asked to add before
+                               // any existing element
+                               placeBefore = /^\+/.test( dataType );
+                               if ( placeBefore ) {
+                                       dataType = dataType.substr( 1 ) || "*";
+                               }
+                               list = structure[ dataType ] = structure[ dataType ] || [];
+                               // then we add to the structure accordingly
+                               list[ placeBefore ? "unshift" : "push" ]( func );
+                       }
+               }
+       };
+}
+
+// Base inspection function for prefilters and transports
+function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR,
+               dataType /* internal */, inspected /* internal */ ) {
+
+       dataType = dataType || options.dataTypes[ 0 ];
+       inspected = inspected || {};
+
+       inspected[ dataType ] = true;
+
+       var list = structure[ dataType ],
+               i = 0,
+               length = list ? list.length : 0,
+               executeOnly = ( structure === prefilters ),
+               selection;
+
+       for ( ; i < length && ( executeOnly || !selection ); i++ ) {
+               selection = list[ i ]( options, originalOptions, jqXHR );
+               // If we got redirected to another dataType
+               // we try there if executing only and not done already
+               if ( typeof selection === "string" ) {
+                       if ( !executeOnly || inspected[ selection ] ) {
+                               selection = undefined;
+                       } else {
+                               options.dataTypes.unshift( selection );
+                               selection = inspectPrefiltersOrTransports(
+                                               structure, options, originalOptions, jqXHR, selection, inspected );
+                       }
+               }
+       }
+       // If we're only executing or nothing was selected
+       // we try the catchall dataType if not done already
+       if ( ( executeOnly || !selection ) && !inspected[ "*" ] ) {
+               selection = inspectPrefiltersOrTransports(
+                               structure, options, originalOptions, jqXHR, "*", inspected );
+       }
+       // unnecessary when only executing (prefilters)
+       // but it'll be ignored by the caller in that case
+       return selection;
+}
+
+// A special extend for ajax options
+// that takes "flat" options (not to be deep extended)
+// Fixes #9887
+function ajaxExtend( target, src ) {
+       var key, deep,
+               flatOptions = jQuery.ajaxSettings.flatOptions || {};
+       for ( key in src ) {
+               if ( src[ key ] !== undefined ) {
+                       ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
+               }
+       }
+       if ( deep ) {
+               jQuery.extend( true, target, deep );
+       }
+}
+
+jQuery.fn.extend({
+       load: function( url, params, callback ) {
+               if ( typeof url !== "string" && _load ) {
+                       return _load.apply( this, arguments );
+
+               // Don't do a request if no elements are being requested
+               } else if ( !this.length ) {
+                       return this;
+               }
+
+               var off = url.indexOf( " " );
+               if ( off >= 0 ) {
+                       var selector = url.slice( off, url.length );
+                       url = url.slice( 0, off );
+               }
+
+               // Default to a GET request
+               var type = "GET";
+
+               // If the second parameter was provided
+               if ( params ) {
+                       // If it's a function
+                       if ( jQuery.isFunction( params ) ) {
+                               // We assume that it's the callback
+                               callback = params;
+                               params = undefined;
+
+                       // Otherwise, build a param string
+                       } else if ( typeof params === "object" ) {
+                               params = jQuery.param( params, jQuery.ajaxSettings.traditional );
+                               type = "POST";
+                       }
+               }
+
+               var self = this;
+
+               // Request the remote document
+               jQuery.ajax({
+                       url: url,
+                       type: type,
+                       dataType: "html",
+                       data: params,
+                       // Complete callback (responseText is used internally)
+                       complete: function( jqXHR, status, responseText ) {
+                               // Store the response as specified by the jqXHR object
+                               responseText = jqXHR.responseText;
+                               // If successful, inject the HTML into all the matched elements
+                               if ( jqXHR.isResolved() ) {
+                                       // #4825: Get the actual response in case
+                                       // a dataFilter is present in ajaxSettings
+                                       jqXHR.done(function( r ) {
+                                               responseText = r;
+                                       });
+                                       // See if a selector was specified
+                                       self.html( selector ?
+                                               // Create a dummy div to hold the results
+                                               jQuery("<div>")
+                                                       // inject the contents of the document in, removing the scripts
+                                                       // to avoid any 'Permission Denied' errors in IE
+                                                       .append(responseText.replace(rscript, ""))
+
+                                                       // Locate the specified elements
+                                                       .find(selector) :
+
+                                               // If not, just inject the full result
+                                               responseText );
+                               }
+
+                               if ( callback ) {
+                                       self.each( callback, [ responseText, status, jqXHR ] );
+                               }
+                       }
+               });
+
+               return this;
+       },
+
+       serialize: function() {
+               return jQuery.param( this.serializeArray() );
+       },
+
+       serializeArray: function() {
+               return this.map(function(){
+                       return this.elements ? jQuery.makeArray( this.elements ) : this;
+               })
+               .filter(function(){
+                       return this.name && !this.disabled &&
+                               ( this.checked || rselectTextarea.test( this.nodeName ) ||
+                                       rinput.test( this.type ) );
+               })
+               .map(function( i, elem ){
+                       var val = jQuery( this ).val();
+
+                       return val == null ?
+                               null :
+                               jQuery.isArray( val ) ?
+                                       jQuery.map( val, function( val, i ){
+                                               return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
+                                       }) :
+                                       { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
+               }).get();
+       }
+});
+
+// Attach a bunch of functions for handling common AJAX events
+jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split( " " ), function( i, o ){
+       jQuery.fn[ o ] = function( f ){
+               return this.on( o, f );
+       };
+});
+
+jQuery.each( [ "get", "post" ], function( i, method ) {
+       jQuery[ method ] = function( url, data, callback, type ) {
+               // shift arguments if data argument was omitted
+               if ( jQuery.isFunction( data ) ) {
+                       type = type || callback;
+                       callback = data;
+                       data = undefined;
+               }
+
+               return jQuery.ajax({
+                       type: method,
+                       url: url,
+                       data: data,
+                       success: callback,
+                       dataType: type
+               });
+       };
+});
+
+jQuery.extend({
+
+       getScript: function( url, callback ) {
+               return jQuery.get( url, undefined, callback, "script" );
+       },
+
+       getJSON: function( url, data, callback ) {
+               return jQuery.get( url, data, callback, "json" );
+       },
+
+       // Creates a full fledged settings object into target
+       // with both ajaxSettings and settings fields.
+       // If target is omitted, writes into ajaxSettings.
+       ajaxSetup: function( target, settings ) {
+               if ( settings ) {
+                       // Building a settings object
+                       ajaxExtend( target, jQuery.ajaxSettings );
+               } else {
+                       // Extending ajaxSettings
+                       settings = target;
+                       target = jQuery.ajaxSettings;
+               }
+               ajaxExtend( target, settings );
+               return target;
+       },
+
+       ajaxSettings: {
+               url: ajaxLocation,
+               isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
+               global: true,
+               type: "GET",
+               contentType: "application/x-www-form-urlencoded",
+               processData: true,
+               async: true,
+               /*
+               timeout: 0,
+               data: null,
+               dataType: null,
+               username: null,
+               password: null,
+               cache: null,
+               traditional: false,
+               headers: {},
+               */
+
+               accepts: {
+                       xml: "application/xml, text/xml",
+                       html: "text/html",
+                       text: "text/plain",
+                       json: "application/json, text/javascript",
+                       "*": allTypes
+               },
+
+               contents: {
+                       xml: /xml/,
+                       html: /html/,
+                       json: /json/
+               },
+
+               responseFields: {
+                       xml: "responseXML",
+                       text: "responseText"
+               },
+
+               // List of data converters
+               // 1) key format is "source_type destination_type" (a single space in-between)
+               // 2) the catchall symbol "*" can be used for source_type
+               converters: {
+
+                       // Convert anything to text
+                       "* text": window.String,
+
+                       // Text to html (true = no transformation)
+                       "text html": true,
+
+                       // Evaluate text as a json expression
+                       "text json": jQuery.parseJSON,
+
+                       // Parse text as xml
+                       "text xml": jQuery.parseXML
+               },
+
+               // For options that shouldn't be deep extended:
+               // you can add your own custom options here if
+               // and when you create one that shouldn't be
+               // deep extended (see ajaxExtend)
+               flatOptions: {
+                       context: true,
+                       url: true
+               }
+       },
+
+       ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
+       ajaxTransport: addToPrefiltersOrTransports( transports ),
+
+       // Main method
+       ajax: function( url, options ) {
+
+               // If url is an object, simulate pre-1.5 signature
+               if ( typeof url === "object" ) {
+                       options = url;
+                       url = undefined;
+               }
+
+               // Force options to be an object
+               options = options || {};
+
+               var // Create the final options object
+                       s = jQuery.ajaxSetup( {}, options ),
+                       // Callbacks context
+                       callbackContext = s.context || s,
+                       // Context for global events
+                       // It's the callbackContext if one was provided in the options
+                       // and if it's a DOM node or a jQuery collection
+                       globalEventContext = callbackContext !== s &&
+                               ( callbackContext.nodeType || callbackContext instanceof jQuery ) ?
+                                               jQuery( callbackContext ) : jQuery.event,
+                       // Deferreds
+                       deferred = jQuery.Deferred(),
+                       completeDeferred = jQuery.Callbacks( "once memory" ),
+                       // Status-dependent callbacks
+                       statusCode = s.statusCode || {},
+                       // ifModified key
+                       ifModifiedKey,
+                       // Headers (they are sent all at once)
+                       requestHeaders = {},
+                       requestHeadersNames = {},
+                       // Response headers
+                       responseHeadersString,
+                       responseHeaders,
+                       // transport
+                       transport,
+                       // timeout handle
+                       timeoutTimer,
+                       // Cross-domain detection vars
+                       parts,
+                       // The jqXHR state
+                       state = 0,
+                       // To know if global events are to be dispatched
+                       fireGlobals,
+                       // Loop variable
+                       i,
+                       // Fake xhr
+                       jqXHR = {
+
+                               readyState: 0,
+
+                               // Caches the header
+                               setRequestHeader: function( name, value ) {
+                                       if ( !state ) {
+                                               var lname = name.toLowerCase();
+                                               name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
+                                               requestHeaders[ name ] = value;
+                                       }
+                                       return this;
+                               },
+
+                               // Raw string
+                               getAllResponseHeaders: function() {
+                                       return state === 2 ? responseHeadersString : null;
+                               },
+
+                               // Builds headers hashtable if needed
+                               getResponseHeader: function( key ) {
+                                       var match;
+                                       if ( state === 2 ) {
+                                               if ( !responseHeaders ) {
+                                                       responseHeaders = {};
+                                                       while( ( match = rheaders.exec( responseHeadersString ) ) ) {
+                                                               responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
+                                                       }
+                                               }
+                                               match = responseHeaders[ key.toLowerCase() ];
+                                       }
+                                       return match === undefined ? null : match;
+                               },
+
+                               // Overrides response content-type header
+                               overrideMimeType: function( type ) {
+                                       if ( !state ) {
+                                               s.mimeType = type;
+                                       }
+                                       return this;
+                               },
+
+                               // Cancel the request
+                               abort: function( statusText ) {
+                                       statusText = statusText || "abort";
+                                       if ( transport ) {
+                                               transport.abort( statusText );
+                                       }
+                                       done( 0, statusText );
+                                       return this;
+                               }
+                       };
+
+               // Callback for when everything is done
+               // It is defined here because jslint complains if it is declared
+               // at the end of the function (which would be more logical and readable)
+               function done( status, nativeStatusText, responses, headers ) {
+
+                       // Called once
+                       if ( state === 2 ) {
+                               return;
+                       }
+
+                       // State is "done" now
+                       state = 2;
+
+                       // Clear timeout if it exists
+                       if ( timeoutTimer ) {
+                               clearTimeout( timeoutTimer );
+                       }
+
+                       // Dereference transport for early garbage collection
+                       // (no matter how long the jqXHR object will be used)
+                       transport = undefined;
+
+                       // Cache response headers
+                       responseHeadersString = headers || "";
+
+                       // Set readyState
+                       jqXHR.readyState = status > 0 ? 4 : 0;
+
+                       var isSuccess,
+                               success,
+                               error,
+                               statusText = nativeStatusText,
+                               response = responses ? ajaxHandleResponses( s, jqXHR, responses ) : undefined,
+                               lastModified,
+                               etag;
+
+                       // If successful, handle type chaining
+                       if ( status >= 200 && status < 300 || status === 304 ) {
+
+                               // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
+                               if ( s.ifModified ) {
+
+                                       if ( ( lastModified = jqXHR.getResponseHeader( "Last-Modified" ) ) ) {
+                                               jQuery.lastModified[ ifModifiedKey ] = lastModified;
+                                       }
+                                       if ( ( etag = jqXHR.getResponseHeader( "Etag" ) ) ) {
+                                               jQuery.etag[ ifModifiedKey ] = etag;
+                                       }
+                               }
+
+                               // If not modified
+                               if ( status === 304 ) {
+
+                                       statusText = "notmodified";
+                                       isSuccess = true;
+
+                               // If we have data
+                               } else {
+
+                                       try {
+                                               success = ajaxConvert( s, response );
+                                               statusText = "success";
+                                               isSuccess = true;
+                                       } catch(e) {
+                                               // We have a parsererror
+                                               statusText = "parsererror";
+                                               error = e;
+                                       }
+                               }
+                       } else {
+                               // We extract error from statusText
+                               // then normalize statusText and status for non-aborts
+                               error = statusText;
+                               if ( !statusText || status ) {
+                                       statusText = "error";
+                                       if ( status < 0 ) {
+                                               status = 0;
+                                       }
+                               }
+                       }
+
+                       // Set data for the fake xhr object
+                       jqXHR.status = status;
+                       jqXHR.statusText = "" + ( nativeStatusText || statusText );
+
+                       // Success/Error
+                       if ( isSuccess ) {
+                               deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
+                       } else {
+                               deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
+                       }
+
+                       // Status-dependent callbacks
+                       jqXHR.statusCode( statusCode );
+                       statusCode = undefined;
+
+                       if ( fireGlobals ) {
+                               globalEventContext.trigger( "ajax" + ( isSuccess ? "Success" : "Error" ),
+                                               [ jqXHR, s, isSuccess ? success : error ] );
+                       }
+
+                       // Complete
+                       completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
+
+                       if ( fireGlobals ) {
+                               globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
+                               // Handle the global AJAX counter
+                               if ( !( --jQuery.active ) ) {
+                                       jQuery.event.trigger( "ajaxStop" );
+                               }
+                       }
+               }
+
+               // Attach deferreds
+               deferred.promise( jqXHR );
+               jqXHR.success = jqXHR.done;
+               jqXHR.error = jqXHR.fail;
+               jqXHR.complete = completeDeferred.add;
+
+               // Status-dependent callbacks
+               jqXHR.statusCode = function( map ) {
+                       if ( map ) {
+                               var tmp;
+                               if ( state < 2 ) {
+                                       for ( tmp in map ) {
+                                               statusCode[ tmp ] = [ statusCode[tmp], map[tmp] ];
+                                       }
+                               } else {
+                                       tmp = map[ jqXHR.status ];
+                                       jqXHR.then( tmp, tmp );
+                               }
+                       }
+                       return this;
+               };
+
+               // Remove hash character (#7531: and string promotion)
+               // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
+               // We also use the url parameter if available
+               s.url = ( ( url || s.url ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
+
+               // Extract dataTypes list
+               s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( rspacesAjax );
+
+               // Determine if a cross-domain request is in order
+               if ( s.crossDomain == null ) {
+                       parts = rurl.exec( s.url.toLowerCase() );
+                       s.crossDomain = !!( parts &&
+                               ( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||
+                                       ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
+                                               ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) )
+                       );
+               }
+
+               // Convert data if not already a string
+               if ( s.data && s.processData && typeof s.data !== "string" ) {
+                       s.data = jQuery.param( s.data, s.traditional );
+               }
+
+               // Apply prefilters
+               inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
+
+               // If request was aborted inside a prefiler, stop there
+               if ( state === 2 ) {
+                       return false;
+               }
+
+               // We can fire global events as of now if asked to
+               fireGlobals = s.global;
+
+               // Uppercase the type
+               s.type = s.type.toUpperCase();
+
+               // Determine if request has content
+               s.hasContent = !rnoContent.test( s.type );
+
+               // Watch for a new set of requests
+               if ( fireGlobals && jQuery.active++ === 0 ) {
+                       jQuery.event.trigger( "ajaxStart" );
+               }
+
+               // More options handling for requests with no content
+               if ( !s.hasContent ) {
+
+                       // If data is available, append data to url
+                       if ( s.data ) {
+                               s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.data;
+                               // #9682: remove data so that it's not used in an eventual retry
+                               delete s.data;
+                       }
+
+                       // Get ifModifiedKey before adding the anti-cache parameter
+                       ifModifiedKey = s.url;
+
+                       // Add anti-cache in url if needed
+                       if ( s.cache === false ) {
+
+                               var ts = jQuery.now(),
+                                       // try replacing _= if it is there
+                                       ret = s.url.replace( rts, "$1_=" + ts );
+
+                               // if nothing was replaced, add timestamp to the end
+                               s.url = ret + ( ( ret === s.url ) ? ( rquery.test( s.url ) ? "&" : "?" ) + "_=" + ts : "" );
+                       }
+               }
+
+               // Set the correct header, if data is being sent
+               if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
+                       jqXHR.setRequestHeader( "Content-Type", s.contentType );
+               }
+
+               // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
+               if ( s.ifModified ) {
+                       ifModifiedKey = ifModifiedKey || s.url;
+                       if ( jQuery.lastModified[ ifModifiedKey ] ) {
+                               jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ ifModifiedKey ] );
+                       }
+                       if ( jQuery.etag[ ifModifiedKey ] ) {
+                               jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ ifModifiedKey ] );
+                       }
+               }
+
+               // Set the Accepts header for the server, depending on the dataType
+               jqXHR.setRequestHeader(
+                       "Accept",
+                       s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
+                               s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
+                               s.accepts[ "*" ]
+               );
+
+               // Check for headers option
+               for ( i in s.headers ) {
+                       jqXHR.setRequestHeader( i, s.headers[ i ] );
+               }
+
+               // Allow custom headers/mimetypes and early abort
+               if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
+                               // Abort if not done already
+                               jqXHR.abort();
+                               return false;
+
+               }
+
+               // Install callbacks on deferreds
+               for ( i in { success: 1, error: 1, complete: 1 } ) {
+                       jqXHR[ i ]( s[ i ] );
+               }
+
+               // Get transport
+               transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
+
+               // If no transport, we auto-abort
+               if ( !transport ) {
+                       done( -1, "No Transport" );
+               } else {
+                       jqXHR.readyState = 1;
+                       // Send global event
+                       if ( fireGlobals ) {
+                               globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
+                       }
+                       // Timeout
+                       if ( s.async && s.timeout > 0 ) {
+                               timeoutTimer = setTimeout( function(){
+                                       jqXHR.abort( "timeout" );
+                               }, s.timeout );
+                       }
+
+                       try {
+                               state = 1;
+                               transport.send( requestHeaders, done );
+                       } catch (e) {
+                               // Propagate exception as error if not done
+                               if ( state < 2 ) {
+                                       done( -1, e );
+                               // Simply rethrow otherwise
+                               } else {
+                                       throw e;
+                               }
+                       }
+               }
+
+               return jqXHR;
+       },
+
+       // Serialize an array of form elements or a set of
+       // key/values into a query string
+       param: function( a, traditional ) {
+               var s = [],
+                       add = function( key, value ) {
+                               // If value is a function, invoke it and return its value
+                               value = jQuery.isFunction( value ) ? value() : value;
+                               s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
+                       };
+
+               // Set traditional to true for jQuery <= 1.3.2 behavior.
+               if ( traditional === undefined ) {
+                       traditional = jQuery.ajaxSettings.traditional;
+               }
+
+               // If an array was passed in, assume that it is an array of form elements.
+               if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
+                       // Serialize the form elements
+                       jQuery.each( a, function() {
+                               add( this.name, this.value );
+                       });
+
+               } else {
+                       // If traditional, encode the "old" way (the way 1.3.2 or older
+                       // did it), otherwise encode params recursively.
+                       for ( var prefix in a ) {
+                               buildParams( prefix, a[ prefix ], traditional, add );
+                       }
+               }
+
+               // Return the resulting serialization
+               return s.join( "&" ).replace( r20, "+" );
+       }
+});
+
+function buildParams( prefix, obj, traditional, add ) {
+       if ( jQuery.isArray( obj ) ) {
+               // Serialize array item.
+               jQuery.each( obj, function( i, v ) {
+                       if ( traditional || rbracket.test( prefix ) ) {
+                               // Treat each array item as a scalar.
+                               add( prefix, v );
+
+                       } else {
+                               // If array item is non-scalar (array or object), encode its
+                               // numeric index to resolve deserialization ambiguity issues.
+                               // Note that rack (as of 1.0.0) can't currently deserialize
+                               // nested arrays properly, and attempting to do so may cause
+                               // a server error. Possible fixes are to modify rack's
+                               // deserialization algorithm or to provide an option or flag
+                               // to force array serialization to be shallow.
+                               buildParams( prefix + "[" + ( typeof v === "object" || jQuery.isArray(v) ? i : "" ) + "]", v, traditional, add );
+                       }
+               });
+
+       } else if ( !traditional && obj != null && typeof obj === "object" ) {
+               // Serialize object item.
+               for ( var name in obj ) {
+                       buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
+               }
+
+       } else {
+               // Serialize scalar item.
+               add( prefix, obj );
+       }
+}
+
+// This is still on the jQuery object... for now
+// Want to move this to jQuery.ajax some day
+jQuery.extend({
+
+       // Counter for holding the number of active queries
+       active: 0,
+
+       // Last-Modified header cache for next request
+       lastModified: {},
+       etag: {}
+
+});
+
+/* Handles responses to an ajax request:
+ * - sets all responseXXX fields accordingly
+ * - finds the right dataType (mediates between content-type and expected dataType)
+ * - returns the corresponding response
+ */
+function ajaxHandleResponses( s, jqXHR, responses ) {
+
+       var contents = s.contents,
+               dataTypes = s.dataTypes,
+               responseFields = s.responseFields,
+               ct,
+               type,
+               finalDataType,
+               firstDataType;
+
+       // Fill responseXXX fields
+       for ( type in responseFields ) {
+               if ( type in responses ) {
+                       jqXHR[ responseFields[type] ] = responses[ type ];
+               }
+       }
+
+       // Remove auto dataType and get content-type in the process
+       while( dataTypes[ 0 ] === "*" ) {
+               dataTypes.shift();
+               if ( ct === undefined ) {
+                       ct = s.mimeType || jqXHR.getResponseHeader( "content-type" );
+               }
+       }
+
+       // Check if we're dealing with a known content-type
+       if ( ct ) {
+               for ( type in contents ) {
+                       if ( contents[ type ] && contents[ type ].test( ct ) ) {
+                               dataTypes.unshift( type );
+                               break;
+                       }
+               }
+       }
+
+       // Check to see if we have a response for the expected dataType
+       if ( dataTypes[ 0 ] in responses ) {
+               finalDataType = dataTypes[ 0 ];
+       } else {
+               // Try convertible dataTypes
+               for ( type in responses ) {
+                       if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
+                               finalDataType = type;
+                               break;
+                       }
+                       if ( !firstDataType ) {
+                               firstDataType = type;
+                       }
+               }
+               // Or just use first one
+               finalDataType = finalDataType || firstDataType;
+       }
+
+       // If we found a dataType
+       // We add the dataType to the list if needed
+       // and return the corresponding response
+       if ( finalDataType ) {
+               if ( finalDataType !== dataTypes[ 0 ] ) {
+                       dataTypes.unshift( finalDataType );
+               }
+               return responses[ finalDataType ];
+       }
+}
+
+// Chain conversions given the request and the original response
+function ajaxConvert( s, response ) {
+
+       // Apply the dataFilter if provided
+       if ( s.dataFilter ) {
+               response = s.dataFilter( response, s.dataType );
+       }
+
+       var dataTypes = s.dataTypes,
+               converters = {},
+               i,
+               key,
+               length = dataTypes.length,
+               tmp,
+               // Current and previous dataTypes
+               current = dataTypes[ 0 ],
+               prev,
+               // Conversion expression
+               conversion,
+               // Conversion function
+               conv,
+               // Conversion functions (transitive conversion)
+               conv1,
+               conv2;
+
+       // For each dataType in the chain
+       for ( i = 1; i < length; i++ ) {
+
+               // Create converters map
+               // with lowercased keys
+               if ( i === 1 ) {
+                       for ( key in s.converters ) {
+                               if ( typeof key === "string" ) {
+                                       converters[ key.toLowerCase() ] = s.converters[ key ];
+                               }
+                       }
+               }
+
+               // Get the dataTypes
+               prev = current;
+               current = dataTypes[ i ];
+
+               // If current is auto dataType, update it to prev
+               if ( current === "*" ) {
+                       current = prev;
+               // If no auto and dataTypes are actually different
+               } else if ( prev !== "*" && prev !== current ) {
+
+                       // Get the converter
+                       conversion = prev + " " + current;
+                       conv = converters[ conversion ] || converters[ "* " + current ];
+
+                       // If there is no direct converter, search transitively
+                       if ( !conv ) {
+                               conv2 = undefined;
+                               for ( conv1 in converters ) {
+                                       tmp = conv1.split( " " );
+                                       if ( tmp[ 0 ] === prev || tmp[ 0 ] === "*" ) {
+                                               conv2 = converters[ tmp[1] + " " + current ];
+                                               if ( conv2 ) {
+                                                       conv1 = converters[ conv1 ];
+                                                       if ( conv1 === true ) {
+                                                               conv = conv2;
+                                                       } else if ( conv2 === true ) {
+                                                               conv = conv1;
+                                                       }
+                                                       break;
+                                               }
+                                       }
+                               }
+                       }
+                       // If we found no converter, dispatch an error
+                       if ( !( conv || conv2 ) ) {
+                               jQuery.error( "No conversion from " + conversion.replace(" "," to ") );
+                       }
+                       // If found converter is not an equivalence
+                       if ( conv !== true ) {
+                               // Convert with 1 or 2 converters accordingly
+                               response = conv ? conv( response ) : conv2( conv1(response) );
+                       }
+               }
+       }
+       return response;
+}
+
+
+
+
+var jsc = jQuery.now(),
+       jsre = /(\=)\?(&|$)|\?\?/i;
+
+// Default jsonp settings
+jQuery.ajaxSetup({
+       jsonp: "callback",
+       jsonpCallback: function() {
+               return jQuery.expando + "_" + ( jsc++ );
+       }
+});
+
+// Detect, normalize options and install callbacks for jsonp requests
+jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
+
+       var inspectData = s.contentType === "application/x-www-form-urlencoded" &&
+               ( typeof s.data === "string" );
+
+       if ( s.dataTypes[ 0 ] === "jsonp" ||
+               s.jsonp !== false && ( jsre.test( s.url ) ||
+                               inspectData && jsre.test( s.data ) ) ) {
+
+               var responseContainer,
+                       jsonpCallback = s.jsonpCallback =
+                               jQuery.isFunction( s.jsonpCallback ) ? s.jsonpCallback() : s.jsonpCallback,
+                       previous = window[ jsonpCallback ],
+                       url = s.url,
+                       data = s.data,
+                       replace = "$1" + jsonpCallback + "$2";
+
+               if ( s.jsonp !== false ) {
+                       url = url.replace( jsre, replace );
+                       if ( s.url === url ) {
+                               if ( inspectData ) {
+                                       data = data.replace( jsre, replace );
+                               }
+                               if ( s.data === data ) {
+                                       // Add callback manually
+                                       url += (/\?/.test( url ) ? "&" : "?") + s.jsonp + "=" + jsonpCallback;
+                               }
+                       }
+               }
+
+               s.url = url;
+               s.data = data;
+
+               // Install callback
+               window[ jsonpCallback ] = function( response ) {
+                       responseContainer = [ response ];
+               };
+
+               // Clean-up function
+               jqXHR.always(function() {
+                       // Set callback back to previous value
+                       window[ jsonpCallback ] = previous;
+                       // Call if it was a function and we have a response
+                       if ( responseContainer && jQuery.isFunction( previous ) ) {
+                               window[ jsonpCallback ]( responseContainer[ 0 ] );
+                       }
+               });
+
+               // Use data converter to retrieve json after script execution
+               s.converters["script json"] = function() {
+                       if ( !responseContainer ) {
+                               jQuery.error( jsonpCallback + " was not called" );
+                       }
+                       return responseContainer[ 0 ];
+               };
+
+               // force json dataType
+               s.dataTypes[ 0 ] = "json";
+
+               // Delegate to script
+               return "script";
+       }
+});
+
+
+
+
+// Install script dataType
+jQuery.ajaxSetup({
+       accepts: {
+               script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
+       },
+       contents: {
+               script: /javascript|ecmascript/
+       },
+       converters: {
+               "text script": function( text ) {
+                       jQuery.globalEval( text );
+                       return text;
+               }
+       }
+});
+
+// Handle cache's special case and global
+jQuery.ajaxPrefilter( "script", function( s ) {
+       if ( s.cache === undefined ) {
+               s.cache = false;
+       }
+       if ( s.crossDomain ) {
+               s.type = "GET";
+               s.global = false;
+       }
+});
+
+// Bind script tag hack transport
+jQuery.ajaxTransport( "script", function(s) {
+
+       // This transport only deals with cross domain requests
+       if ( s.crossDomain ) {
+
+               var script,
+                       head = document.head || document.getElementsByTagName( "head" )[0] || document.documentElement;
+
+               return {
+
+                       send: function( _, callback ) {
+
+                               script = document.createElement( "script" );
+
+                               script.async = "async";
+
+                               if ( s.scriptCharset ) {
+                                       script.charset = s.scriptCharset;
+                               }
+
+                               script.src = s.url;
+
+                               // Attach handlers for all browsers
+                               script.onload = script.onreadystatechange = function( _, isAbort ) {
+
+                                       if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {
+
+                                               // Handle memory leak in IE
+                                               script.onload = script.onreadystatechange = null;
+
+                                               // Remove the script
+                                               if ( head && script.parentNode ) {
+                                                       head.removeChild( script );
+                                               }
+
+                                               // Dereference the script
+                                               script = undefined;
+
+                                               // Callback if not abort
+                                               if ( !isAbort ) {
+                                                       callback( 200, "success" );
+                                               }
+                                       }
+                               };
+                               // Use insertBefore instead of appendChild  to circumvent an IE6 bug.
+                               // This arises when a base node is used (#2709 and #4378).
+                               head.insertBefore( script, head.firstChild );
+                       },
+
+                       abort: function() {
+                               if ( script ) {
+                                       script.onload( 0, 1 );
+                               }
+                       }
+               };
+       }
+});
+
+
+
+
+var // #5280: Internet Explorer will keep connections alive if we don't abort on unload
+       xhrOnUnloadAbort = window.ActiveXObject ? function() {
+               // Abort all pending requests
+               for ( var key in xhrCallbacks ) {
+                       xhrCallbacks[ key ]( 0, 1 );
+               }
+       } : false,
+       xhrId = 0,
+       xhrCallbacks;
+
+// Functions to create xhrs
+function createStandardXHR() {
+       try {
+               return new window.XMLHttpRequest();
+       } catch( e ) {}
+}
+
+function createActiveXHR() {
+       try {
+               return new window.ActiveXObject( "Microsoft.XMLHTTP" );
+       } catch( e ) {}
+}
+
+// Create the request object
+// (This is still attached to ajaxSettings for backward compatibility)
+jQuery.ajaxSettings.xhr = window.ActiveXObject ?
+       /* Microsoft failed to properly
+        * implement the XMLHttpRequest in IE7 (can't request local files),
+        * so we use the ActiveXObject when it is available
+        * Additionally XMLHttpRequest can be disabled in IE7/IE8 so
+        * we need a fallback.
+        */
+       function() {
+               return !this.isLocal && createStandardXHR() || createActiveXHR();
+       } :
+       // For all other browsers, use the standard XMLHttpRequest object
+       createStandardXHR;
+
+// Determine support properties
+(function( xhr ) {
+       jQuery.extend( jQuery.support, {
+               ajax: !!xhr,
+               cors: !!xhr && ( "withCredentials" in xhr )
+       });
+})( jQuery.ajaxSettings.xhr() );
+
+// Create transport if the browser can provide an xhr
+if ( jQuery.support.ajax ) {
+
+       jQuery.ajaxTransport(function( s ) {
+               // Cross domain only allowed if supported through XMLHttpRequest
+               if ( !s.crossDomain || jQuery.support.cors ) {
+
+                       var callback;
+
+                       return {
+                               send: function( headers, complete ) {
+
+                                       // Get a new xhr
+                                       var xhr = s.xhr(),
+                                               handle,
+                                               i;
+
+                                       // Open the socket
+                                       // Passing null username, generates a login popup on Opera (#2865)
+                                       if ( s.username ) {
+                                               xhr.open( s.type, s.url, s.async, s.username, s.password );
+                                       } else {
+                                               xhr.open( s.type, s.url, s.async );
+                                       }
+
+                                       // Apply custom fields if provided
+                                       if ( s.xhrFields ) {
+                                               for ( i in s.xhrFields ) {
+                                                       xhr[ i ] = s.xhrFields[ i ];
+                                               }
+                                       }
+
+                                       // Override mime type if needed
+                                       if ( s.mimeType && xhr.overrideMimeType ) {
+                                               xhr.overrideMimeType( s.mimeType );
+                                       }
+
+                                       // X-Requested-With header
+                                       // For cross-domain requests, seeing as conditions for a preflight are
+                                       // akin to a jigsaw puzzle, we simply never set it to be sure.
+                                       // (it can always be set on a per-request basis or even using ajaxSetup)
+                                       // For same-domain requests, won't change header if already provided.
+                                       if ( !s.crossDomain && !headers["X-Requested-With"] ) {
+                                               headers[ "X-Requested-With" ] = "XMLHttpRequest";
+                                       }
+
+                                       // Need an extra try/catch for cross domain requests in Firefox 3
+                                       try {
+                                               for ( i in headers ) {
+                                                       xhr.setRequestHeader( i, headers[ i ] );
+                                               }
+                                       } catch( _ ) {}
+
+                                       // Do send the request
+                                       // This may raise an exception which is actually
+                                       // handled in jQuery.ajax (so no try/catch here)
+                                       xhr.send( ( s.hasContent && s.data ) || null );
+
+                                       // Listener
+                                       callback = function( _, isAbort ) {
+
+                                               var status,
+                                                       statusText,
+                                                       responseHeaders,
+                                                       responses,
+                                                       xml;
+
+                                               // Firefox throws exceptions when accessing properties
+                                               // of an xhr when a network error occured
+                                               // http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
+                                               try {
+
+                                                       // Was never called and is aborted or complete
+                                                       if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
+
+                                                               // Only called once
+                                                               callback = undefined;
+
+                                                               // Do not keep as active anymore
+                                                               if ( handle ) {
+                                                                       xhr.onreadystatechange = jQuery.noop;
+                                                                       if ( xhrOnUnloadAbort ) {
+                                                                               delete xhrCallbacks[ handle ];
+                                                                       }
+                                                               }
+
+                                                               // If it's an abort
+                                                               if ( isAbort ) {
+                                                                       // Abort it manually if needed
+                                                                       if ( xhr.readyState !== 4 ) {
+                                                                               xhr.abort();
+                                                                       }
+                                                               } else {
+                                                                       status = xhr.status;
+                                                                       responseHeaders = xhr.getAllResponseHeaders();
+                                                                       responses = {};
+                                                                       xml = xhr.responseXML;
+
+                                                                       // Construct response list
+                                                                       if ( xml && xml.documentElement /* #4958 */ ) {
+                                                                               responses.xml = xml;
+                                                                       }
+                                                                       responses.text = xhr.responseText;
+
+                                                                       // Firefox throws an exception when accessing
+                                                                       // statusText for faulty cross-domain requests
+                                                                       try {
+                                                                               statusText = xhr.statusText;
+                                                                       } catch( e ) {
+                                                                               // We normalize with Webkit giving an empty statusText
+                                                                               statusText = "";
+                                                                       }
+
+                                                                       // Filter status for non standard behaviors
+
+                                                                       // If the request is local and we have data: assume a success
+                                                                       // (success with no data won't get notified, that's the best we
+                                                                       // can do given current implementations)
+                                                                       if ( !status && s.isLocal && !s.crossDomain ) {
+                                                                               status = responses.text ? 200 : 404;
+                                                                       // IE - #1450: sometimes returns 1223 when it should be 204
+                                                                       } else if ( status === 1223 ) {
+                                                                               status = 204;
+                                                                       }
+                                                               }
+                                                       }
+                                               } catch( firefoxAccessException ) {
+                                                       if ( !isAbort ) {
+                                                               complete( -1, firefoxAccessException );
+                                                       }
+                                               }
+
+                                               // Call complete if needed
+                                               if ( responses ) {
+                                                       complete( status, statusText, responses, responseHeaders );
+                                               }
+                                       };
+
+                                       // if we're in sync mode or it's in cache
+                                       // and has been retrieved directly (IE6 & IE7)
+                                       // we need to manually fire the callback
+                                       if ( !s.async || xhr.readyState === 4 ) {
+                                               callback();
+                                       } else {
+                                               handle = ++xhrId;
+                                               if ( xhrOnUnloadAbort ) {
+                                                       // Create the active xhrs callbacks list if needed
+                                                       // and attach the unload handler
+                                                       if ( !xhrCallbacks ) {
+                                                               xhrCallbacks = {};
+                                                               jQuery( window ).unload( xhrOnUnloadAbort );
+                                                       }
+                                                       // Add to list of active xhrs callbacks
+                                                       xhrCallbacks[ handle ] = callback;
+                                               }
+                                               xhr.onreadystatechange = callback;
+                                       }
+                               },
+
+                               abort: function() {
+                                       if ( callback ) {
+                                               callback(0,1);
+                                       }
+                               }
+                       };
+               }
+       });
+}
+
+
+
+
+var elemdisplay = {},
+       iframe, iframeDoc,
+       rfxtypes = /^(?:toggle|show|hide)$/,
+       rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
+       timerId,
+       fxAttrs = [
+               // height animations
+               [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
+               // width animations
+               [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
+               // opacity animations
+               [ "opacity" ]
+       ],
+       fxNow;
+
+jQuery.fn.extend({
+       show: function( speed, easing, callback ) {
+               var elem, display;
+
+               if ( speed || speed === 0 ) {
+                       return this.animate( genFx("show", 3), speed, easing, callback );
+
+               } else {
+                       for ( var i = 0, j = this.length; i < j; i++ ) {
+                               elem = this[ i ];
+
+                               if ( elem.style ) {
+                                       display = elem.style.display;
+
+                                       // Reset the inline display of this element to learn if it is
+                                       // being hidden by cascaded rules or not
+                                       if ( !jQuery._data(elem, "olddisplay") && display === "none" ) {
+                                               display = elem.style.display = "";
+                                       }
+
+                                       // Set elements which have been overridden with display: none
+                                       // in a stylesheet to whatever the default browser style is
+                                       // for such an element
+                                       if ( display === "" && jQuery.css(elem, "display") === "none" ) {
+                                               jQuery._data( elem, "olddisplay", defaultDisplay(elem.nodeName) );
+                                       }
+                               }
+                       }
+
+                       // Set the display of most of the elements in a second loop
+                       // to avoid the constant reflow
+                       for ( i = 0; i < j; i++ ) {
+                               elem = this[ i ];
+
+                               if ( elem.style ) {
+                                       display = elem.style.display;
+
+                                       if ( display === "" || display === "none" ) {
+                                               elem.style.display = jQuery._data( elem, "olddisplay" ) || "";
+                                       }
+                               }
+                       }
+
+                       return this;
+               }
+       },
+
+       hide: function( speed, easing, callback ) {
+               if ( speed || speed === 0 ) {
+                       return this.animate( genFx("hide", 3), speed, easing, callback);
+
+               } else {
+                       var elem, display,
+                               i = 0,
+                               j = this.length;
+
+                       for ( ; i < j; i++ ) {
+                               elem = this[i];
+                               if ( elem.style ) {
+                                       display = jQuery.css( elem, "display" );
+
+                                       if ( display !== "none" && !jQuery._data( elem, "olddisplay" ) ) {
+                                               jQuery._data( elem, "olddisplay", display );
+                                       }
+                               }
+                       }
+
+                       // Set the display of the elements in a second loop
+                       // to avoid the constant reflow
+                       for ( i = 0; i < j; i++ ) {
+                               if ( this[i].style ) {
+                                       this[i].style.display = "none";
+                               }
+                       }
+
+                       return this;
+               }
+       },
+
+       // Save the old toggle function
+       _toggle: jQuery.fn.toggle,
+
+       toggle: function( fn, fn2, callback ) {
+               var bool = typeof fn === "boolean";
+
+               if ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) {
+                       this._toggle.apply( this, arguments );
+
+               } else if ( fn == null || bool ) {
+                       this.each(function() {
+                               var state = bool ? fn : jQuery(this).is(":hidden");
+                               jQuery(this)[ state ? "show" : "hide" ]();
+                       });
+
+               } else {
+                       this.animate(genFx("toggle", 3), fn, fn2, callback);
+               }
+
+               return this;
+       },
+
+       fadeTo: function( speed, to, easing, callback ) {
+               return this.filter(":hidden").css("opacity", 0).show().end()
+                                       .animate({opacity: to}, speed, easing, callback);
+       },
+
+       animate: function( prop, speed, easing, callback ) {
+               var optall = jQuery.speed( speed, easing, callback );
+
+               if ( jQuery.isEmptyObject( prop ) ) {
+                       return this.each( optall.complete, [ false ] );
+               }
+
+               // Do not change referenced properties as per-property easing will be lost
+               prop = jQuery.extend( {}, prop );
+
+               function doAnimation() {
+                       // XXX 'this' does not always have a nodeName when running the
+                       // test suite
+
+                       if ( optall.queue === false ) {
+                               jQuery._mark( this );
+                       }
+
+                       var opt = jQuery.extend( {}, optall ),
+                               isElement = this.nodeType === 1,
+                               hidden = isElement && jQuery(this).is(":hidden"),
+                               name, val, p, e,
+                               parts, start, end, unit,
+                               method;
+
+                       // will store per property easing and be used to determine when an animation is complete
+                       opt.animatedProperties = {};
+
+                       for ( p in prop ) {
+
+                               // property name normalization
+                               name = jQuery.camelCase( p );
+                               if ( p !== name ) {
+                                       prop[ name ] = prop[ p ];
+                                       delete prop[ p ];
+                               }
+
+                               val = prop[ name ];
+
+                               // easing resolution: per property > opt.specialEasing > opt.easing > 'swing' (default)
+                               if ( jQuery.isArray( val ) ) {
+                                       opt.animatedProperties[ name ] = val[ 1 ];
+                                       val = prop[ name ] = val[ 0 ];
+                               } else {
+                                       opt.animatedProperties[ name ] = opt.specialEasing && opt.specialEasing[ name ] || opt.easing || 'swing';
+                               }
+
+                               if ( val === "hide" && hidden || val === "show" && !hidden ) {
+                                       return opt.complete.call( this );
+                               }
+
+                               if ( isElement && ( name === "height" || name === "width" ) ) {
+                                       // Make sure that nothing sneaks out
+                                       // Record all 3 overflow attributes because IE does not
+                                       // change the overflow attribute when overflowX and
+                                       // overflowY are set to the same value
+                                       opt.overflow = [ this.style.overflow, this.style.overflowX, this.style.overflowY ];
+
+                                       // Set display property to inline-block for height/width
+                                       // animations on inline elements that are having width/height animated
+                                       if ( jQuery.css( this, "display" ) === "inline" &&
+                                                       jQuery.css( this, "float" ) === "none" ) {
+
+                                               // inline-level elements accept inline-block;
+                                               // block-level elements need to be inline with layout
+                                               if ( !jQuery.support.inlineBlockNeedsLayout || defaultDisplay( this.nodeName ) === "inline" ) {
+                                                       this.style.display = "inline-block";
+
+                                               } else {
+                                                       this.style.zoom = 1;
+                                               }
+                                       }
+                               }
+                       }
+
+                       if ( opt.overflow != null ) {
+                               this.style.overflow = "hidden";
+                       }
+
+                       for ( p in prop ) {
+                               e = new jQuery.fx( this, opt, p );
+                               val = prop[ p ];
+
+                               if ( rfxtypes.test( val ) ) {
+
+                                       // Tracks whether to show or hide based on private
+                                       // data attached to the element
+                                       method = jQuery._data( this, "toggle" + p ) || ( val === "toggle" ? hidden ? "show" : "hide" : 0 );
+                                       if ( method ) {
+                                               jQuery._data( this, "toggle" + p, method === "show" ? "hide" : "show" );
+                                               e[ method ]();
+                                       } else {
+                                               e[ val ]();
+                                       }
+
+                               } else {
+                                       parts = rfxnum.exec( val );
+                                       start = e.cur();
+
+                                       if ( parts ) {
+                                               end = parseFloat( parts[2] );
+                                               unit = parts[3] || ( jQuery.cssNumber[ p ] ? "" : "px" );
+
+                                               // We need to compute starting value
+                                               if ( unit !== "px" ) {
+                                                       jQuery.style( this, p, (end || 1) + unit);
+                                                       start = ( (end || 1) / e.cur() ) * start;
+                                                       jQuery.style( this, p, start + unit);
+                                               }
+
+                                               // If a +=/-= token was provided, we're doing a relative animation
+                                               if ( parts[1] ) {
+                                                       end = ( (parts[ 1 ] === "-=" ? -1 : 1) * end ) + start;
+                                               }
+
+                                               e.custom( start, end, unit );
+
+                                       } else {
+                                               e.custom( start, val, "" );
+                                       }
+                               }
+                       }
+
+                       // For JS strict compliance
+                       return true;
+               }
+
+               return optall.queue === false ?
+                       this.each( doAnimation ) :
+                       this.queue( optall.queue, doAnimation );
+       },
+
+       stop: function( type, clearQueue, gotoEnd ) {
+               if ( typeof type !== "string" ) {
+                       gotoEnd = clearQueue;
+                       clearQueue = type;
+                       type = undefined;
+               }
+               if ( clearQueue && type !== false ) {
+                       this.queue( type || "fx", [] );
+               }
+
+               return this.each(function() {
+                       var index,
+                               hadTimers = false,
+                               timers = jQuery.timers,
+                               data = jQuery._data( this );
+
+                       // clear marker counters if we know they won't be
+                       if ( !gotoEnd ) {
+                               jQuery._unmark( true, this );
+                       }
+
+                       function stopQueue( elem, data, index ) {
+                               var hooks = data[ index ];
+                               jQuery.removeData( elem, index, true );
+                               hooks.stop( gotoEnd );
+                       }
+
+                       if ( type == null ) {
+                               for ( index in data ) {
+                                       if ( data[ index ] && data[ index ].stop && index.indexOf(".run") === index.length - 4 ) {
+                                               stopQueue( this, data, index );
+                                       }
+                               }
+                       } else if ( data[ index = type + ".run" ] && data[ index ].stop ){
+                               stopQueue( this, data, index );
+                       }
+
+                       for ( index = timers.length; index--; ) {
+                               if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {
+                                       if ( gotoEnd ) {
+
+                                               // force the next step to be the last
+                                               timers[ index ]( true );
+                                       } else {
+                                               timers[ index ].saveState();
+                                       }
+                                       hadTimers = true;
+                                       timers.splice( index, 1 );
+                               }
+                       }
+
+                       // start the next in the queue if the last step wasn't forced
+                       // timers currently will call their complete callbacks, which will dequeue
+                       // but only if they were gotoEnd
+                       if ( !( gotoEnd && hadTimers ) ) {
+                               jQuery.dequeue( this, type );
+                       }
+               });
+       }
+
+});
+
+// Animations created synchronously will run synchronously
+function createFxNow() {
+       setTimeout( clearFxNow, 0 );
+       return ( fxNow = jQuery.now() );
+}
+
+function clearFxNow() {
+       fxNow = undefined;
+}
+
+// Generate parameters to create a standard animation
+function genFx( type, num ) {
+       var obj = {};
+
+       jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice( 0, num )), function() {
+               obj[ this ] = type;
+       });
+
+       return obj;
+}
+
+// Generate shortcuts for custom animations
+jQuery.each({
+       slideDown: genFx( "show", 1 ),
+       slideUp: genFx( "hide", 1 ),
+       slideToggle: genFx( "toggle", 1 ),
+       fadeIn: { opacity: "show" },
+       fadeOut: { opacity: "hide" },
+       fadeToggle: { opacity: "toggle" }
+}, function( name, props ) {
+       jQuery.fn[ name ] = function( speed, easing, callback ) {
+               return this.animate( props, speed, easing, callback );
+       };
+});
+
+jQuery.extend({
+       speed: function( speed, easing, fn ) {
+               var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
+                       complete: fn || !fn && easing ||
+                               jQuery.isFunction( speed ) && speed,
+                       duration: speed,
+                       easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
+               };
+
+               opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
+                       opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
+
+               // normalize opt.queue - true/undefined/null -> "fx"
+               if ( opt.queue == null || opt.queue === true ) {
+                       opt.queue = "fx";
+               }
+
+               // Queueing
+               opt.old = opt.complete;
+
+               opt.complete = function( noUnmark ) {
+                       if ( jQuery.isFunction( opt.old ) ) {
+                               opt.old.call( this );
+                       }
+
+                       if ( opt.queue ) {
+                               jQuery.dequeue( this, opt.queue );
+                       } else if ( noUnmark !== false ) {
+                               jQuery._unmark( this );
+                       }
+               };
+
+               return opt;
+       },
+
+       easing: {
+               linear: function( p, n, firstNum, diff ) {
+                       return firstNum + diff * p;
+               },
+               swing: function( p, n, firstNum, diff ) {
+                       return ( ( -Math.cos( p*Math.PI ) / 2 ) + 0.5 ) * diff + firstNum;
+               }
+       },
+
+       timers: [],
+
+       fx: function( elem, options, prop ) {
+               this.options = options;
+               this.elem = elem;
+               this.prop = prop;
+
+               options.orig = options.orig || {};
+       }
+
+});
+
+jQuery.fx.prototype = {
+       // Simple function for setting a style value
+       update: function() {
+               if ( this.options.step ) {
+                       this.options.step.call( this.elem, this.now, this );
+               }
+
+               ( jQuery.fx.step[ this.prop ] || jQuery.fx.step._default )( this );
+       },
+
+       // Get the current size
+       cur: function() {
+               if ( this.elem[ this.prop ] != null && (!this.elem.style || this.elem.style[ this.prop ] == null) ) {
+                       return this.elem[ this.prop ];
+               }
+
+               var parsed,
+                       r = jQuery.css( this.elem, this.prop );
+               // Empty strings, null, undefined and "auto" are converted to 0,
+               // complex values such as "rotate(1rad)" are returned as is,
+               // simple values such as "10px" are parsed to Float.
+               return isNaN( parsed = parseFloat( r ) ) ? !r || r === "auto" ? 0 : r : parsed;
+       },
+
+       // Start an animation from one number to another
+       custom: function( from, to, unit ) {
+               var self = this,
+                       fx = jQuery.fx;
+
+               this.startTime = fxNow || createFxNow();
+               this.end = to;
+               this.now = this.start = from;
+               this.pos = this.state = 0;
+               this.unit = unit || this.unit || ( jQuery.cssNumber[ this.prop ] ? "" : "px" );
+
+               function t( gotoEnd ) {
+                       return self.step( gotoEnd );
+               }
+
+               t.queue = this.options.queue;
+               t.elem = this.elem;
+               t.saveState = function() {
+                       if ( self.options.hide && jQuery._data( self.elem, "fxshow" + self.prop ) === undefined ) {
+                               jQuery._data( self.elem, "fxshow" + self.prop, self.start );
+                       }
+               };
+
+               if ( t() && jQuery.timers.push(t) && !timerId ) {
+                       timerId = setInterval( fx.tick, fx.interval );
+               }
+       },
+
+       // Simple 'show' function
+       show: function() {
+               var dataShow = jQuery._data( this.elem, "fxshow" + this.prop );
+
+               // Remember where we started, so that we can go back to it later
+               this.options.orig[ this.prop ] = dataShow || jQuery.style( this.elem, this.prop );
+               this.options.show = true;
+
+               // Begin the animation
+               // Make sure that we start at a small width/height to avoid any flash of content
+               if ( dataShow !== undefined ) {
+                       // This show is picking up where a previous hide or show left off
+                       this.custom( this.cur(), dataShow );
+               } else {
+                       this.custom( this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur() );
+               }
+
+               // Start by showing the element
+               jQuery( this.elem ).show();
+       },
+
+       // Simple 'hide' function
+       hide: function() {
+               // Remember where we started, so that we can go back to it later
+               this.options.orig[ this.prop ] = jQuery._data( this.elem, "fxshow" + this.prop ) || jQuery.style( this.elem, this.prop );
+               this.options.hide = true;
+
+               // Begin the animation
+               this.custom( this.cur(), 0 );
+       },
+
+       // Each step of an animation
+       step: function( gotoEnd ) {
+               var p, n, complete,
+                       t = fxNow || createFxNow(),
+                       done = true,
+                       elem = this.elem,
+                       options = this.options;
+
+               if ( gotoEnd || t >= options.duration + this.startTime ) {
+                       this.now = this.end;
+                       this.pos = this.state = 1;
+                       this.update();
+
+                       options.animatedProperties[ this.prop ] = true;
+
+                       for ( p in options.animatedProperties ) {
+                               if ( options.animatedProperties[ p ] !== true ) {
+                                       done = false;
+                               }
+                       }
+
+                       if ( done ) {
+                               // Reset the overflow
+                               if ( options.overflow != null && !jQuery.support.shrinkWrapBlocks ) {
+
+                                       jQuery.each( [ "", "X", "Y" ], function( index, value ) {
+                                               elem.style[ "overflow" + value ] = options.overflow[ index ];
+                                       });
+                               }
+
+                               // Hide the element if the "hide" operation was done
+                               if ( options.hide ) {
+                                       jQuery( elem ).hide();
+                               }
+
+                               // Reset the properties, if the item has been hidden or shown
+                               if ( options.hide || options.show ) {
+                                       for ( p in options.animatedProperties ) {
+                                               jQuery.style( elem, p, options.orig[ p ] );
+                                               jQuery.removeData( elem, "fxshow" + p, true );
+                                               // Toggle data is no longer needed
+                                               jQuery.removeData( elem, "toggle" + p, true );
+                                       }
+                               }
+
+                               // Execute the complete function
+                               // in the event that the complete function throws an exception
+                               // we must ensure it won't be called twice. #5684
+
+                               complete = options.complete;
+                               if ( complete ) {
+
+                                       options.complete = false;
+                                       complete.call( elem );
+                               }
+                       }
+
+                       return false;
+
+               } else {
+                       // classical easing cannot be used with an Infinity duration
+                       if ( options.duration == Infinity ) {
+                               this.now = t;
+                       } else {
+                               n = t - this.startTime;
+                               this.state = n / options.duration;
+
+                               // Perform the easing function, defaults to swing
+                               this.pos = jQuery.easing[ options.animatedProperties[this.prop] ]( this.state, n, 0, 1, options.duration );
+                               this.now = this.start + ( (this.end - this.start) * this.pos );
+                       }
+                       // Perform the next step of the animation
+                       this.update();
+               }
+
+               return true;
+       }
+};
+
+jQuery.extend( jQuery.fx, {
+       tick: function() {
+               var timer,
+                       timers = jQuery.timers,
+                       i = 0;
+
+               for ( ; i < timers.length; i++ ) {
+                       timer = timers[ i ];
+                       // Checks the timer has not already been removed
+                       if ( !timer() && timers[ i ] === timer ) {
+                               timers.splice( i--, 1 );
+                       }
+               }
+
+               if ( !timers.length ) {
+                       jQuery.fx.stop();
+               }
+       },
+
+       interval: 13,
+
+       stop: function() {
+               clearInterval( timerId );
+               timerId = null;
+       },
+
+       speeds: {
+               slow: 600,
+               fast: 200,
+               // Default speed
+               _default: 400
+       },
+
+       step: {
+               opacity: function( fx ) {
+                       jQuery.style( fx.elem, "opacity", fx.now );
+               },
+
+               _default: function( fx ) {
+                       if ( fx.elem.style && fx.elem.style[ fx.prop ] != null ) {
+                               fx.elem.style[ fx.prop ] = fx.now + fx.unit;
+                       } else {
+                               fx.elem[ fx.prop ] = fx.now;
+                       }
+               }
+       }
+});
+
+// Adds width/height step functions
+// Do not set anything below 0
+jQuery.each([ "width", "height" ], function( i, prop ) {
+       jQuery.fx.step[ prop ] = function( fx ) {
+               jQuery.style( fx.elem, prop, Math.max(0, fx.now) + fx.unit );
+       };
+});
+
+if ( jQuery.expr && jQuery.expr.filters ) {
+       jQuery.expr.filters.animated = function( elem ) {
+               return jQuery.grep(jQuery.timers, function( fn ) {
+                       return elem === fn.elem;
+               }).length;
+       };
+}
+
+// Try to restore the default display value of an element
+function defaultDisplay( nodeName ) {
+
+       if ( !elemdisplay[ nodeName ] ) {
+
+               var body = document.body,
+                       elem = jQuery( "<" + nodeName + ">" ).appendTo( body ),
+                       display = elem.css( "display" );
+               elem.remove();
+
+               // If the simple way fails,
+               // get element's real default display by attaching it to a temp iframe
+               if ( display === "none" || display === "" ) {
+                       // No iframe to use yet, so create it
+                       if ( !iframe ) {
+                               iframe = document.createElement( "iframe" );
+                               iframe.frameBorder = iframe.width = iframe.height = 0;
+                       }
+
+                       body.appendChild( iframe );
+
+                       // Create a cacheable copy of the iframe document on first call.
+                       // IE and Opera will allow us to reuse the iframeDoc without re-writing the fake HTML
+                       // document to it; WebKit & Firefox won't allow reusing the iframe document.
+                       if ( !iframeDoc || !iframe.createElement ) {
+                               iframeDoc = ( iframe.contentWindow || iframe.contentDocument ).document;
+                               iframeDoc.write( ( document.compatMode === "CSS1Compat" ? "<!doctype html>" : "" ) + "<html><body>" );
+                               iframeDoc.close();
+                       }
+
+                       elem = iframeDoc.createElement( nodeName );
+
+                       iframeDoc.body.appendChild( elem );
+
+                       display = jQuery.css( elem, "display" );
+                       body.removeChild( iframe );
+               }
+
+               // Store the correct default display
+               elemdisplay[ nodeName ] = display;
+       }
+
+       return elemdisplay[ nodeName ];
+}
+
+
+
+
+var rtable = /^t(?:able|d|h)$/i,
+       rroot = /^(?:body|html)$/i;
+
+if ( "getBoundingClientRect" in document.documentElement ) {
+       jQuery.fn.offset = function( options ) {
+               var elem = this[0], box;
+
+               if ( options ) {
+                       return this.each(function( i ) {
+                               jQuery.offset.setOffset( this, options, i );
+                       });
+               }
+
+               if ( !elem || !elem.ownerDocument ) {
+                       return null;
+               }
+
+               if ( elem === elem.ownerDocument.body ) {
+                       return jQuery.offset.bodyOffset( elem );
+               }
+
+               try {
+                       box = elem.getBoundingClientRect();
+               } catch(e) {}
+
+               var doc = elem.ownerDocument,
+                       docElem = doc.documentElement;
+
+               // Make sure we're not dealing with a disconnected DOM node
+               if ( !box || !jQuery.contains( docElem, elem ) ) {
+                       return box ? { top: box.top, left: box.left } : { top: 0, left: 0 };
+               }
+
+               var body = doc.body,
+                       win = getWindow(doc),
+                       clientTop  = docElem.clientTop  || body.clientTop  || 0,
+                       clientLeft = docElem.clientLeft || body.clientLeft || 0,
+                       scrollTop  = win.pageYOffset || jQuery.support.boxModel && docElem.scrollTop  || body.scrollTop,
+                       scrollLeft = win.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft,
+                       top  = box.top  + scrollTop  - clientTop,
+                       left = box.left + scrollLeft - clientLeft;
+
+               return { top: top, left: left };
+       };
+
+} else {
+       jQuery.fn.offset = function( options ) {
+               var elem = this[0];
+
+               if ( options ) {
+                       return this.each(function( i ) {
+                               jQuery.offset.setOffset( this, options, i );
+                       });
+               }
+
+               if ( !elem || !elem.ownerDocument ) {
+                       return null;
+               }
+
+               if ( elem === elem.ownerDocument.body ) {
+                       return jQuery.offset.bodyOffset( elem );
+               }
+
+               var computedStyle,
+                       offsetParent = elem.offsetParent,
+                       prevOffsetParent = elem,
+                       doc = elem.ownerDocument,
+                       docElem = doc.documentElement,
+                       body = doc.body,
+                       defaultView = doc.defaultView,
+                       prevComputedStyle = defaultView ? defaultView.getComputedStyle( elem, null ) : elem.currentStyle,
+                       top = elem.offsetTop,
+                       left = elem.offsetLeft;
+
+               while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
+                       if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {
+                               break;
+                       }
+
+                       computedStyle = defaultView ? defaultView.getComputedStyle(elem, null) : elem.currentStyle;
+                       top  -= elem.scrollTop;
+                       left -= elem.scrollLeft;
+
+                       if ( elem === offsetParent ) {
+                               top  += elem.offsetTop;
+                               left += elem.offsetLeft;
+
+                               if ( jQuery.support.doesNotAddBorder && !(jQuery.support.doesAddBorderForTableAndCells && rtable.test(elem.nodeName)) ) {
+                                       top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
+                                       left += parseFloat( computedStyle.borderLeftWidth ) || 0;
+                               }
+
+                               prevOffsetParent = offsetParent;
+                               offsetParent = elem.offsetParent;
+                       }
+
+                       if ( jQuery.support.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" ) {
+                               top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
+                               left += parseFloat( computedStyle.borderLeftWidth ) || 0;
+                       }
+
+                       prevComputedStyle = computedStyle;
+               }
+
+               if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" ) {
+                       top  += body.offsetTop;
+                       left += body.offsetLeft;
+               }
+
+               if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {
+                       top  += Math.max( docElem.scrollTop, body.scrollTop );
+                       left += Math.max( docElem.scrollLeft, body.scrollLeft );
+               }
+
+               return { top: top, left: left };
+       };
+}
+
+jQuery.offset = {
+
+       bodyOffset: function( body ) {
+               var top = body.offsetTop,
+                       left = body.offsetLeft;
+
+               if ( jQuery.support.doesNotIncludeMarginInBodyOffset ) {
+                       top  += parseFloat( jQuery.css(body, "marginTop") ) || 0;
+                       left += parseFloat( jQuery.css(body, "marginLeft") ) || 0;
+               }
+
+               return { top: top, left: left };
+       },
+
+       setOffset: function( elem, options, i ) {
+               var position = jQuery.css( elem, "position" );
+
+               // set position first, in-case top/left are set even on static elem
+               if ( position === "static" ) {
+                       elem.style.position = "relative";
+               }
+
+               var curElem = jQuery( elem ),
+                       curOffset = curElem.offset(),
+                       curCSSTop = jQuery.css( elem, "top" ),
+                       curCSSLeft = jQuery.css( elem, "left" ),
+                       calculatePosition = ( position === "absolute" || position === "fixed" ) && jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1,
+                       props = {}, curPosition = {}, curTop, curLeft;
+
+               // need to be able to calculate position if either top or left is auto and position is either absolute or fixed
+               if ( calculatePosition ) {
+                       curPosition = curElem.position();
+                       curTop = curPosition.top;
+                       curLeft = curPosition.left;
+               } else {
+                       curTop = parseFloat( curCSSTop ) || 0;
+                       curLeft = parseFloat( curCSSLeft ) || 0;
+               }
+
+               if ( jQuery.isFunction( options ) ) {
+                       options = options.call( elem, i, curOffset );
+               }
+
+               if ( options.top != null ) {
+                       props.top = ( options.top - curOffset.top ) + curTop;
+               }
+               if ( options.left != null ) {
+                       props.left = ( options.left - curOffset.left ) + curLeft;
+               }
+
+               if ( "using" in options ) {
+                       options.using.call( elem, props );
+               } else {
+                       curElem.css( props );
+               }
+       }
+};
+
+
+jQuery.fn.extend({
+
+       position: function() {
+               if ( !this[0] ) {
+                       return null;
+               }
+
+               var elem = this[0],
+
+               // Get *real* offsetParent
+               offsetParent = this.offsetParent(),
+
+               // Get correct offsets
+               offset       = this.offset(),
+               parentOffset = rroot.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset();
+
+               // Subtract element margins
+               // note: when an element has margin: auto the offsetLeft and marginLeft
+               // are the same in Safari causing offset.left to incorrectly be 0
+               offset.top  -= parseFloat( jQuery.css(elem, "marginTop") ) || 0;
+               offset.left -= parseFloat( jQuery.css(elem, "marginLeft") ) || 0;
+
+               // Add offsetParent borders
+               parentOffset.top  += parseFloat( jQuery.css(offsetParent[0], "borderTopWidth") ) || 0;
+               parentOffset.left += parseFloat( jQuery.css(offsetParent[0], "borderLeftWidth") ) || 0;
+
+               // Subtract the two offsets
+               return {
+                       top:  offset.top  - parentOffset.top,
+                       left: offset.left - parentOffset.left
+               };
+       },
+
+       offsetParent: function() {
+               return this.map(function() {
+                       var offsetParent = this.offsetParent || document.body;
+                       while ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) {
+                               offsetParent = offsetParent.offsetParent;
+                       }
+                       return offsetParent;
+               });
+       }
+});
+
+
+// Create scrollLeft and scrollTop methods
+jQuery.each( ["Left", "Top"], function( i, name ) {
+       var method = "scroll" + name;
+
+       jQuery.fn[ method ] = function( val ) {
+               var elem, win;
+
+               if ( val === undefined ) {
+                       elem = this[ 0 ];
+
+                       if ( !elem ) {
+                               return null;
+                       }
+
+                       win = getWindow( elem );
+
+                       // Return the scroll offset
+                       return win ? ("pageXOffset" in win) ? win[ i ? "pageYOffset" : "pageXOffset" ] :
+                               jQuery.support.boxModel && win.document.documentElement[ method ] ||
+                                       win.document.body[ method ] :
+                               elem[ method ];
+               }
+
+               // Set the scroll offset
+               return this.each(function() {
+                       win = getWindow( this );
+
+                       if ( win ) {
+                               win.scrollTo(
+                                       !i ? val : jQuery( win ).scrollLeft(),
+                                        i ? val : jQuery( win ).scrollTop()
+                               );
+
+                       } else {
+                               this[ method ] = val;
+                       }
+               });
+       };
+});
+
+function getWindow( elem ) {
+       return jQuery.isWindow( elem ) ?
+               elem :
+               elem.nodeType === 9 ?
+                       elem.defaultView || elem.parentWindow :
+                       false;
+}
+
+
+
+
+// Create width, height, innerHeight, innerWidth, outerHeight and outerWidth methods
+jQuery.each([ "Height", "Width" ], function( i, name ) {
+
+       var type = name.toLowerCase();
+
+       // innerHeight and innerWidth
+       jQuery.fn[ "inner" + name ] = function() {
+               var elem = this[0];
+               return elem ?
+                       elem.style ?
+                       parseFloat( jQuery.css( elem, type, "padding" ) ) :
+                       this[ type ]() :
+                       null;
+       };
+
+       // outerHeight and outerWidth
+       jQuery.fn[ "outer" + name ] = function( margin ) {
+               var elem = this[0];
+               return elem ?
+                       elem.style ?
+                       parseFloat( jQuery.css( elem, type, margin ? "margin" : "border" ) ) :
+                       this[ type ]() :
+                       null;
+       };
+
+       jQuery.fn[ type ] = function( size ) {
+               // Get window width or height
+               var elem = this[0];
+               if ( !elem ) {
+                       return size == null ? null : this;
+               }
+
+               if ( jQuery.isFunction( size ) ) {
+                       return this.each(function( i ) {
+                               var self = jQuery( this );
+                               self[ type ]( size.call( this, i, self[ type ]() ) );
+                       });
+               }
+
+               if ( jQuery.isWindow( elem ) ) {
+                       // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
+                       // 3rd condition allows Nokia support, as it supports the docElem prop but not CSS1Compat
+                       var docElemProp = elem.document.documentElement[ "client" + name ],
+                               body = elem.document.body;
+                       return elem.document.compatMode === "CSS1Compat" && docElemProp ||
+                               body && body[ "client" + name ] || docElemProp;
+
+               // Get document width or height
+               } else if ( elem.nodeType === 9 ) {
+                       // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
+                       return Math.max(
+                               elem.documentElement["client" + name],
+                               elem.body["scroll" + name], elem.documentElement["scroll" + name],
+                               elem.body["offset" + name], elem.documentElement["offset" + name]
+                       );
+
+               // Get or set width or height on the element
+               } else if ( size === undefined ) {
+                       var orig = jQuery.css( elem, type ),
+                               ret = parseFloat( orig );
+
+                       return jQuery.isNumeric( ret ) ? ret : orig;
+
+               // Set the width or height on the element (default to pixels if value is unitless)
+               } else {
+                       return this.css( type, typeof size === "string" ? size : size + "px" );
+               }
+       };
+
+});
+
+
+
+
+// Expose jQuery to the global object
+window.jQuery = window.$ = jQuery;
+
+// Expose jQuery as an AMD module, but only for AMD loaders that
+// understand the issues with loading multiple versions of jQuery
+// in a page that all might call define(). The loader will indicate
+// they have special allowances for multiple jQuery versions by
+// specifying define.amd.jQuery = true. Register as a named module,
+// since jQuery can be concatenated with other files that may use define,
+// but not use a proper concatenation script that understands anonymous
+// AMD modules. A named AMD is safest and most robust way to register.
+// Lowercase jquery is used because AMD module names are derived from
+// file names, and jQuery is normally delivered in a lowercase file name.
+// Do this after creating the global so that if an AMD module wants to call
+// noConflict to hide this version of jQuery, it will work.
+if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
+       define( "jquery", [], function () { return jQuery; } );
+}
+
+
+
+})( window );
diff --git a/tct-webuifw-tests/libs/js/jquery-1.7.1.min.js b/tct-webuifw-tests/libs/js/jquery-1.7.1.min.js
new file mode 100644 (file)
index 0000000..198b3ff
--- /dev/null
@@ -0,0 +1,4 @@
+/*! jQuery v1.7.1 jquery.com | jquery.org/license */
+(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorder=cl.width=cl.height=0),b.appendChild(cl);if(!cm||!cl.createElement)cm=(cl.contentWindow||cl.contentDocument).document,cm.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),cm.close();d=cm.createElement(a),cm.body.appendChild(d),e=f.css(d,"display"),b.removeChild(cl)}ck[a]=e}return ck[a]}function cu(a,b){var c={};f.each(cq.concat.apply([],cq.slice(0,b)),function(){c[this]=a});return c}function ct(){cr=b}function cs(){setTimeout(ct,0);return cr=f.now()}function cj(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ci(){try{return new a.XMLHttpRequest}catch(b){}}function cc(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function cb(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function ca(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bE.test(a)?d(a,e):ca(a+"["+(typeof e=="object"||f.isArray(e)?b:"")+"]",e,c,d)});else if(!c&&b!=null&&typeof b=="object")for(var e in b)ca(a+"["+e+"]",b[e],c,d);else d(a,b)}function b_(a,c){var d,e,g=f.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((g[d]?a:e||(e={}))[d]=c[d]);e&&f.extend(!0,a,e)}function b$(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bT,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=b$(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=b$(a,c,d,e,"*",g));return l}function bZ(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bP),e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bC(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?bx:by,g=0,h=e.length;if(d>0){if(c!=="border")for(;g<h;g++)c||(d-=parseFloat(f.css(a,"padding"+e[g]))||0),c==="margin"?d+=parseFloat(f.css(a,c+e[g]))||0:d-=parseFloat(f.css(a,"border"+e[g]+"Width"))||0;return d+"px"}d=bz(a,b,b);if(d<0||d==null)d=a.style[b]||0;d=parseFloat(d)||0;if(c)for(;g<h;g++)d+=parseFloat(f.css(a,"padding"+e[g]))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+e[g]+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+e[g]))||0);return d+"px"}function bp(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bf,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bo(a){var b=c.createElement("div");bh.appendChild(b),b.innerHTML=a.outerHTML;return b.firstChild}function bn(a){var b=(a.nodeName||"").toLowerCase();b==="input"?bm(a):b!=="script"&&typeof a.getElementsByTagName!="undefined"&&f.grep(a.getElementsByTagName("input"),bm)}function bm(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bl(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function bk(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bj(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c,d,e,g=f._data(a),h=f._data(b,g),i=g.events;if(i){delete h.handle,h.events={};for(c in i)for(d=0,e=i[c].length;d<e;d++)f.event.add(b,c+(i[c][d].namespace?".":"")+i[c][d].namespace,i[c][d],i[c][d].data)}h.data&&(h.data=f.extend({},h.data))}}function bi(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function U(a){var b=V.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function T(a,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(O.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?parseFloat(d):j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c<d;c++)b[a[c]]=!0;return b}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.readyWait>0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a[g],g,a[g++])===!1)break;return a},trim:G?function(a){return a==null?"":G.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?E.call(c,a):e.merge(c,a)}return c},inArray:function(a,b,c){var d;if(b){if(H)return H.call(b,a,c);d=b.length,c=c?c<0?Math.max(0,d+c):c:0;for(;c<d;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i],i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.length]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=F.call(arguments,2),g=function(){return a.apply(c,f.concat(F.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h){var i=a.length;if(typeof c=="object"){for(var j in c)e.access(a,j,c[j],f,g,d);return a}if(d!==b){f=!h&&f&&e.isFunction(d);for(var k=0;k<i;k++)g(a[k],c,f?d.call(a[k],k,g(a[k],c)):d,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){I["[object "+b+"]"]=b.toLowerCase()}),z=e.uaMatch(y),z.browser&&(e.browser[z.browser]=!0,e.browser.version=z.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?B=function(){c.removeEventListener("DOMContentLoaded",B,!1),e.ready()}:c.attachEvent&&(B=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",B),e.ready())});return e}(),g={};f.Callbacks=function(a){a=a?g[a]||h(a):{};var c=[],d=[],e,i,j,k,l,m=function(b){var d,e,g,h,i;for(d=0,e=b.length;d<e;d++)g=b[d],h=f.type(g),h==="array"?m(g):h==="function"&&(!a.unique||!o.has(g))&&c.push(g)},n=function(b,f){f=f||[],e=!a.memory||[b,f],i=!0,l=j||0,j=0,k=c.length;for(;c&&l<k;l++)if(c[l].apply(b,f)===!1&&a.stopOnFalse){e=!0;break}i=!1,c&&(a.once?e===!0?o.disable():c=[]:d&&d.length&&(e=d.shift(),o.fireWith(e[0],e[1])))},o={add:function(){if(c){var a=c.length;m(arguments),i?k=c.length:e&&e!==!0&&(j=a,n(e[0],e[1]))}return this},remove:function(){if(c){var b=arguments,d=0,e=b.length;for(;d<e;d++)for(var f=0;f<c.length;f++)if(b[d]===c[f]){i&&f<=k&&(k--,f<=l&&l--),c.splice(f--,1);if(a.unique)break}}return this},has:function(a){if(c){var b=0,d=c.length;for(;b<d;b++)if(a===c[b])return!0}return!1},empty:function(){c=[];return this},disable:function(){c=d=e=b;return this},disabled:function(){return!c},lock:function(){d=b,(!e||e===!0)&&o.disable();return this},locked:function(){return!d},fireWith:function(b,c){d&&(i?a.once||d.push([b,c]):(!a.once||!e)&&n(b,c));return this},fire:function(){o.fireWith(this,arguments);return this},fired:function(){return!!e}};return o};var i=[].slice;f.extend({Deferred:function(a){var b=f.Callbacks("once memory"),c=f.Callbacks("once memory"),d=f.Callbacks("memory"),e="pending",g={resolve:b,reject:c,notify:d},h={done:b.add,fail:c.add,progress:d.add,state:function(){return e},isResolved:b.fired,isRejected:c.fired,then:function(a,b,c){i.done(a).fail(b).progress(c);return this},always:function(){i.done.apply(i,arguments).fail.apply(i,arguments);return this},pipe:function(a,b,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[b,"reject"],progress:[c,"notify"]},function(a,b){var c=b[0],e=b[1],g;f.isFunction(c)?i[a](function(){g=c.apply(this,arguments),g&&f.isFunction(g.promise)?g.promise().then(d.resolve,d.reject,d.notify):d[e+"With"](this===i?d:this,[g])}):i[a](d[e])})}).promise()},promise:function(a){if(a==null)a=h;else for(var b in h)a[b]=h[b];return a}},i=h.promise({}),j;for(j in g)i[j]=g[j].fire,i[j+"With"]=g[j].fireWith;i.done(function(){e="resolved"},c.disable,d.lock).fail(function(){e="rejected"},b.disable,d.lock),a&&a.call(i,i);return i},when:function(a){function m(a){return function(b){e[a]=arguments.length>1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c<d;c++)b[c]&&b[c].promise&&f.isFunction(b[c].promise)?b[c].promise().then(l(c),j.reject,m(c)):--g;g||j.resolveWith(j,b)}else j!==a&&j.resolveWith(j,d?[a]:[]);return k}}),f.support=function(){var b,d,e,g,h,i,j,k,l,m,n,o,p,q=c.createElement("div"),r=c.documentElement;q.setAttribute("className","t"),q.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=q.getElementsByTagName("*"),e=q.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=q.getElementsByTagName("input")[0],b={leadingWhitespace:q.firstChild.nodeType===3,tbody:!q.getElementsByTagName("tbody").length,htmlSerialize:!!q.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:q.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete q.test}catch(s){b.deleteExpando=!1}!q.addEventListener&&q.attachEvent&&q.fireEvent&&(q.attachEvent("onclick",function(){b.noCloneEvent=!1}),q.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),q.appendChild(i),k=c.createDocumentFragment(),k.appendChild(q.lastChild),b.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,k.removeChild(i),k.appendChild(q),q.innerHTML="",a.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",q.style.width="2px",q.appendChild(j),b.reliableMarginRight=(parseInt((a.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0);if(q.attachEvent)for(o in{submit:1,change:1,focusin:1})n="on"+o,p=n in q,p||(q.setAttribute(n,"return;"),p=typeof q[n]=="function"),b[o+"Bubbles"]=p;k.removeChild(q),k=g=h=j=q=i=null,f(function(){var a,d,e,g,h,i,j,k,m,n,o,r=c.getElementsByTagName("body")[0];!r||(j=1,k="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",m="visibility:hidden;border:0;",n="style='"+k+"border:5px solid #000;padding:0;'",o="<div "+n+"><div></div></div>"+"<table "+n+" cellpadding='0' cellspacing='0'>"+"<tr><td></td></tr></table>",a=c.createElement("div"),a.style.cssText=m+"width:0;height:0;position:static;top:0;margin-top:"+j+"px",r.insertBefore(a,r.firstChild),q=c.createElement("div"),a.appendChild(q),q.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",l=q.getElementsByTagName("td"),p=l[0].offsetHeight===0,l[0].style.display="",l[1].style.display="none",b.reliableHiddenOffsets=p&&l[0].offsetHeight===0,q.innerHTML="",q.style.width=q.style.paddingLeft="1px",f.boxModel=b.boxModel=q.offsetWidth===2,typeof q.style.zoom!="undefined"&&(q.style.display="inline",q.style.zoom=1,b.inlineBlockNeedsLayout=q.offsetWidth===2,q.style.display="",q.innerHTML="<div style='width:4px;'></div>",b.shrinkWrapBlocks=q.offsetWidth!==2),q.style.cssText=k+m,q.innerHTML=o,d=q.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,i={doesNotAddBorder:e.offsetTop!==5,doesAddBorderForTableAndCells:h.offsetTop===5},e.style.position="fixed",e.style.top="20px",i.fixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",i.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,i.doesNotIncludeMarginInBodyOffset=r.offsetTop!==j,r.removeChild(a),q=a=null,f.extend(b,i))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e<g;e++)delete d[b[e]];if(!(c?m:f.isEmptyObject)(d))return}}if(!c){delete j[k].data;if(!m(j[k]))return}f.support.deleteExpando||!j.setInterval?delete j[k]:j[k]=null,i&&(f.support.deleteExpando?delete a[h]:a.removeAttribute?a.removeAttribute(h):a[h]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d,e,g,h=null;if(typeof a=="undefined"){if(this.length){h=f.data(this[0]);if(this[0].nodeType===1&&!f._data(this[0],"parsedAttrs")){e=this[0].attributes;for(var i=0,j=e.length;i<j;i++)g=e[i].name,g.indexOf("data-")===0&&(g=f.camelCase(g.substring(5)),l(this[0],g,h[g]));f._data(this[0],"parsedAttrs",!0)}}return h}if(typeof a=="object")return this.each(function(){f.data(this,a)});d=a.split("."),d[1]=d[1]?"."+d[1]:"";if(c===b){h=this.triggerHandler("getData"+d[1]+"!",[d[0]]),h===b&&this.length&&(h=f.data(this[0],a),h=l(this[0],a,h));return h===b&&d[1]?this.data(d[0]):h}return this.each(function(){var b=f(this),e=[d[0],c];b.triggerHandler("setData"+d[1]+"!",e),f.data(this,a,c),b.triggerHandler("changeData"+d[1]+"!",e)})},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){typeof a!="string"&&(c=a,a="fx");if(c===b)return f.queue(this[0],a);return this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f.Callbacks("once memory"),!0))h++,l.add(m);m();return d.promise()}});var o=/[\n\t\r]/g,p=/\s+/,q=/\r/g,r=/^(?:button|input)$/i,s=/^(?:button|input|object|select|textarea)$/i,t=/^a(?:rea)?$/i,u=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,v=f.support.getSetAttribute,w,x,y;f.fn.extend({attr:function(a,b){return f.access(this,a,b,!0,f.attr)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,a,b,!0,f.prop)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(p);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className)if(a){h=(" "+g.className+" ").replace(o," ");for(i=0,j=c.length;i<j;i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a))return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)});return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(p);while(e=j[g++])i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(o," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.nodeName.toLowerCase()]||f.valHooks[g.type];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c<d;c++){e=i[c];if(e.selected&&(f.support.optDisabled?!e.disabled:e.getAttribute("disabled")===null)&&(!e.parentNode.disabled||!f.nodeName(e.parentNode,"optgroup"))){b=f(e).val();if(j)return b;h.push(b)}}if(j&&!h.length&&i.length)return f(i[g]).val();return h},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;h<g;h++)e=d[h],e&&(c=f.propFix[e]||e,f.attr(a,e,""),a.removeAttribute(v?e:c),u.test(e)&&c in a&&(a[c]=!1))}},attrHooks:{type:{set:function(a,b){if(r.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},value:{get:function(a,b){if(w&&f.nodeName(a,"button"))return w.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(w&&f.nodeName(a,"button"))return w.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e,g,h,i=a.nodeType;if(!!a&&i!==3&&i!==8&&i!==2){h=i!==1||!f.isXMLDoc(a),h&&(c=f.propFix[c]||c,g=f.propHooks[c]);return d!==b?g&&"set"in g&&(e=g.set(a,d,c))!==b?e:a[c]=d:g&&"get"in g&&(e=g.get(a,c))!==null?e:a[c]}},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):s.test(a.nodeName)||t.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabindex=f.propHooks.tabIndex,x={get:function(a,c){var d,e=f.prop(a,c);return e===!0||typeof e!="boolean"&&(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},v||(y={name:!0,id:!0},w=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&(y[c]?d.nodeValue!=="":d.specified)?d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttribute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.attrHooks.tabindex.set=w.set,f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})}),f.attrHooks.contenteditable={get:w.get,set:function(a,b,c){b===""&&(b="false"),w.set(a,b,c)}}),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null}})),f.support.enctype||(f.propFix.enctype="encoding"),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/\bhover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};
+f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k<c.length;k++){l=A.exec(c[k])||[],m=l[1],n=(l[2]||"").split(".").sort(),s=f.event.special[m]||{},m=(g?s.delegateType:s.bindType)||m,s=f.event.special[m]||{},o=f.extend({type:m,origType:l[1],data:e,handler:d,guid:d.guid,selector:g,quick:G(g),namespace:n.join(".")},p),r=j[m];if(!r){r=j[m]=[],r.delegateCount=0;if(!s.setup||s.setup.call(a,e,n,i)===!1)a.addEventListener?a.addEventListener(m,i,!1):a.attachEvent&&a.attachEvent("on"+m,i)}s.add&&(s.add.call(a,o),o.handler.guid||(o.handler.guid=d.guid)),g?r.splice(r.delegateCount++,0,o):r.push(o),f.event.global[m]=!0}a=null}},global:{},remove:function(a,b,c,d,e){var g=f.hasData(a)&&f._data(a),h,i,j,k,l,m,n,o,p,q,r,s;if(!!g&&!!(o=g.events)){b=f.trim(I(b||"")).split(" ");for(h=0;h<b.length;h++){i=A.exec(b[h])||[],j=k=i[1],l=i[2];if(!j){for(j in o)f.event.remove(a,j+b[h],c,d,!0);continue}p=f.event.special[j]||{},j=(d?p.delegateType:p.bindType)||j,r=o[j]||[],m=r.length,l=l?new RegExp("(^|\\.)"+l.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(n=0;n<r.length;n++)s=r[n],(e||k===s.origType)&&(!c||c.guid===s.guid)&&(!l||l.test(s.namespace))&&(!d||d===s.selector||d==="**"&&s.selector)&&(r.splice(n--,1),s.selector&&r.delegateCount--,p.remove&&p.remove.call(a,s));r.length===0&&m!==r.length&&((!p.teardown||p.teardown.call(a,l)===!1)&&f.removeEvent(a,j,g.handle),delete o[j])}f.isEmptyObject(o)&&(q=g.handle,q&&(q.elem=null),f.removeData(a,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){if(!e||e.nodeType!==3&&e.nodeType!==8){var h=c.type||c,i=[],j,k,l,m,n,o,p,q,r,s;if(E.test(h+f.event.triggered))return;h.indexOf("!")>=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;l<r.length&&!c.isPropagationStopped();l++)m=r[l][0],c.type=r[l][1],q=(f._data(m,"events")||{})[c.type]&&f._data(m,"handle"),q&&q.apply(m,d),q=o&&m[o],q&&f.acceptData(m)&&q.apply(m,d)===!1&&c.preventDefault();c.type=h,!g&&!c.isDefaultPrevented()&&(!p._default||p._default.apply(e.ownerDocument,d)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)&&o&&e[h]&&(h!=="focus"&&h!=="blur"||c.target.offsetWidth!==0)&&!f.isWindow(e)&&(n=e[o],n&&(e[o]=null),f.event.triggered=h,e[h](),f.event.triggered=b,n&&(e[o]=n));return c.result}},dispatch:function(c){c=f.event.fix(c||a.event);var d=(f._data(this,"events")||{})[c.type]||[],e=d.delegateCount,g=[].slice.call(arguments,0),h=!c.exclusive&&!c.namespace,i=[],j,k,l,m,n,o,p,q,r,s,t;g[0]=c,c.delegateTarget=this;if(e&&!c.target.disabled&&(!c.button||c.type!=="click")){m=f(this),m.context=this.ownerDocument||this;for(l=c.target;l!=this;l=l.parentNode||this){o={},q=[],m[0]=l;for(j=0;j<e;j++)r=d[j],s=r.selector,o[s]===b&&(o[s]=r.quick?H(l,r.quick):m.is(s)),o[s]&&q.push(r);q.length&&i.push({elem:l,matches:q})}}d.length>e&&i.push({elem:this,matches:d.slice(e)});for(j=0;j<i.length&&!c.isPropagationStopped();j++){p=i[j],c.currentTarget=p.elem;for(k=0;k<p.matches.length&&!c.isImmediatePropagationStopped();k++){r=p.matches[k];if(h||!c.namespace&&!r.namespace||c.namespace_re&&c.namespace_re.test(r.namespace))c.data=r.data,c.handleObj=r,n=((f.event.special[r.origType]||{}).handle||r.handler).apply(p.elem,g),n!==b&&(c.result=n,n===!1&&(c.preventDefault(),c.stopPropagation()))}}return c.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,d){var e,f,g,h=d.button,i=d.fromElement;a.pageX==null&&d.clientX!=null&&(e=a.target.ownerDocument||c,f=e.documentElement,g=e.body,a.pageX=d.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0),a.pageY=d.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&i&&(a.relatedTarget=i===a.target?d.toElement:i),!a.which&&h!==b&&(a.which=h&1?1:h&2?3:h&4?2:0);return a}},fix:function(a){if(a[f.expando])return a;var d,e,g=a,h=f.event.fixHooks[a.type]||{},i=h.props?this.props.concat(h.props):this.props;a=f.Event(g);for(d=i.length;d;)e=i[--d],a[e]=g[e];a.target||(a.target=g.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),a.metaKey===b&&(a.metaKey=a.ctrlKey);return h.filter?h.filter(a,g):a},special:{ready:{setup:f.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}},simulate:function(a,b,c,d){var e=f.extend(new f.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?f.event.trigger(e,null,b):f.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},f.event.handle=f.event.dispatch,f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!(this instanceof f.Event))return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?K:J):this.type=a,b&&f.extend(this,b),this.timeStamp=a&&a.timeStamp||f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=K;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=K;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=K,this.stopPropagation()},isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J},f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c=this,d=a.relatedTarget,e=a.handleObj,g=e.selector,h;if(!d||d!==c&&!f.contains(c,d))a.type=e.origType,h=e.handler.apply(this,arguments),a.type=b;return h}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(){if(f.nodeName(this,"form"))return!1;f.event.add(this,"click._submit keypress._submit",function(a){var c=a.target,d=f.nodeName(c,"input")||f.nodeName(c,"button")?c.form:b;d&&!d._submit_attached&&(f.event.add(d,"submit._submit",function(a){this.parentNode&&!a.isTrigger&&f.event.simulate("submit",this.parentNode,a,!0)}),d._submit_attached=!0)})},teardown:function(){if(f.nodeName(this,"form"))return!1;f.event.remove(this,"._submit")}}),f.support.changeBubbles||(f.event.special.change={setup:function(){if(z.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")f.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),f.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1,f.event.simulate("change",this,a,!0))});return!1}f.event.add(this,"beforeactivate._change",function(a){var b=a.target;z.test(b.nodeName)&&!b._change_attached&&(f.event.add(b,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&f.event.simulate("change",this.parentNode,a,!0)}),b._change_attached=!0)})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){f.event.remove(this,"._change");return z.test(this.nodeName)}}),f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){var d=0,e=function(a){f.event.simulate(b,a.target,f.event.fix(a),!0)};f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.fn.extend({on:function(a,c,d,e,g){var h,i;if(typeof a=="object"){typeof c!="string"&&(d=c,c=b);for(i in a)this.on(i,c,d,a[i],g);return this}d==null&&e==null?(e=c,d=c=b):e==null&&(typeof c=="string"?(e=d,d=b):(e=d,d=c,c=b));if(e===!1)e=J;else if(!e)return this;g===1&&(h=e,e=function(a){f().off(a);return h.apply(this,arguments)},e.guid=h.guid||(h.guid=f.guid++));return this.each(function(){f.event.add(this,a,e,d,c)})},one:function(a,b,c,d){return this.on.call(this,a,b,c,d,1)},off:function(a,c,d){if(a&&a.preventDefault&&a.handleObj){var e=a.handleObj;f(a.delegateTarget).off(e.namespace?e.type+"."+e.namespace:e.type,e.selector,e.handler);return this}if(typeof a=="object"){for(var g in a)this.off(g,c,a[g]);return this}if(c===!1||typeof c=="function")d=c,c=b;d===!1&&(d=J);return this.each(function(){f.event.remove(this,a,d,c)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){f(this.context).on(a,this.selector,b,c);return this},die:function(a,b){f(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length==1?this.off(a,"**"):this.off(b,a,c)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f._data(this,"lastToggle"+a.guid)||0)%d;f._data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}if(j.nodeType===1){g||(j[d]=c,j.sizset=h);if(typeof b!="string"){if(j===b){k=!0;break}}else if(m.filter(b,[j]).length>0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}j.nodeType===1&&!g&&(j[d]=c,j.sizset=h);if(j.nodeName.toLowerCase()===b){k=j;break}j=j[a]}e[h]=k}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},m.matches=function(a,b){return m(a,null,null,b)},m.matchesSelector=function(a,b){return m(b,null,null,[a]).length>0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e<f;e++){h=o.order[e];if(g=o.leftMatch[h].exec(a)){i=g[1],g.splice(1,1);if(i.substr(i.length-1)!=="\\"){g[1]=(g[1]||"").replace(j,""),d=o.find[h](g,b,c);if(d!=null){a=a.replace(o.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},m.filter=function(a,c,d,e){var f,g,h,i,j,k,l,n,p,q=a,r=[],s=c,t=c&&c[0]&&m.isXML(c[0]);while(a&&c.length){for(h in o.filter)if((f=o.leftMatch[h].exec(a))!=null&&f[2]){k=o.filter[h],l=f[1],g=!1,f.splice(1,1);if(l.substr(l.length-1)==="\\")continue;s===r&&(r=[]);if(o.preFilter[h]){f=o.preFilter[h](f,s,d,r,e,t);if(!f)g=i=!0;else if(f===!0)continue}if(f)for(n=0;(j=s[n])!=null;n++)j&&(i=k(j,f,n,s),p=e^i,d&&i!=null?p?g=!0:s[n]=!1:p&&(r.push(j),g=!0));if(i!==b){d||(s=r),a=a.replace(o.match[h],"");if(!g)return[];break}}if(a===q)if(g==null)m.error(a);else break;q=a}return s},m.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)};var n=m.getText=function(a){var b,c,d=a.nodeType,e="";if(d){if(d===1||d===9){if(typeof a.textContent=="string")return a.textContent;if(typeof a.innerText=="string")return a.innerText.replace(k,"");for(a=a.firstChild;a;a=a.nextSibling)e+=n(a)}else if(d===3||d===4)return a.nodeValue}else for(b=0;c=a[b];b++)c.nodeType!==8&&(e+=n(c));return e},o=m.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!l.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&m.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&m.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(j,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}m.error(e)},CHILD:function(a,b){var c,e,f,g,h,i,j,k=b[1],l=a;switch(k){case"only":case"first":while(l=l.previousSibling)if(l.nodeType===1)return!1;if(k==="first")return!0;l=a;case"last":while(l=l.nextSibling)if(l.nodeType===1)return!1;return!0;case"nth":c=b[2],e=b[3];if(c===1&&e===0)return!0;f=b[0],g=a.parentNode;if(g&&(g[d]!==f||!a.nodeIndex)){i=0;for(l=g.firstChild;l;l=l.nextSibling)l.nodeType===1&&(l.nodeIndex=++i);g[d]=f}j=a.nodeIndex-e;return c===0?j===0:j%c===0&&j/c>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var u,v;c.documentElement.compareDocumentPosition?u=function(a,b){if(a===b){h=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(u=function(a,b){if(a===b){h=!0;return 0}if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],g=a.parentNode,i=b.parentNode,j=g;if(g===i)return v(a,b);if(!g)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return v(e[k],f[k]);return k===c?v(a,f[k],-1):v(e[k],b,1)},v=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h<i;h++)m(a,g[h],e,c);return m.filter(f,e)};m.attr=f.attr,m.selectors.attrMap={},f.find=m,f.expr=m.selectors,f.expr[":"]=f.expr.filters,f.unique=m.uniqueSort,f.text=m.getText,f.isXMLDoc=m.isXML,f.contains=m.contains}();var L=/Until$/,M=/^(?:parents|prevUntil|prevAll)/,N=/,/,O=/^.[^:#\[\.,]*$/,P=Array.prototype.slice,Q=f.expr.match.POS,R={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],this))return!0});var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g;i++)if(e[i]===e[h]){e.splice(h--,1);break}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(T(this,a,!1),"not",a)},filter:function(a){return this.pushStack(T(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?Q.test(a)?f(a,this.context).index(this[0])>=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d<a.length;d++)f(g).is(a[d])&&c.push({selector:a[d],elem:g,level:h});g=g.parentNode,h++}return c}var i=Q.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(i?i.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/<tbody/i,_=/<|&#?\w+;/,ba=/<(?:script|style)/i,bb=/<(?:script|object|embed|option|style)/i,bc=new RegExp("<(?:"+V+")","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*<!(?:\[CDATA\[|\-\-)/,bg={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function()
+{for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1></$2>");try{for(var c=0,d=this.length;c<d;c++)this[c].nodeType===1&&(f.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(e){this.empty().append(a)}}else f.isFunction(a)?this.each(function(b){var c=f(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a))return this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))});typeof a!="string"&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bd.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});if(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)d.call(c?bi(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,bp)}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i,j=a[0];b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof j=="string"&&j.length<512&&i===c&&j.charAt(0)==="<"&&!bb.test(j)&&(f.support.checkClone||!bd.test(j))&&(f.support.html5Clone||!bc.test(j))&&(g=!0,h=f.fragments[j],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[j]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||!bc.test("<"+a.nodeName)?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!_.test(k))k=b.createTextNode(k);else{k=k.replace(Y,"<$1></$2>");var l=(Z.exec(k)||["",""])[1].toLowerCase(),m=bg[l]||bg._default,n=m[0],o=b.createElement("div");b===c?bh.appendChild(o):U(b).appendChild(o),o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=$.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]==="<table>"&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(b.createTextNode(X.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i<r;i++)bn(k[i]);else bn(k);k.nodeType?h.push(k):h=f.merge(h,k)}if(d){g=function(a){return!a.type||be.test(a.type)};for(j=0;h[j];j++)if(e&&f.nodeName(h[j],"script")&&(!h[j].type||h[j].type.toLowerCase()==="text/javascript"))e.push(h[j].parentNode?h[j].parentNode.removeChild(h[j]):h[j]);else{if(h[j].nodeType===1){var s=f.grep(h[j].getElementsByTagName("script"),g);h.splice.apply(h,[j+1,0].concat(s))}d.appendChild(h[j])}}return h},cleanData:function(a){var b,c,d=f.cache,e=f.event.special,g=f.support.deleteExpando;for(var h=0,i;(i=a[h])!=null;h++){if(i.nodeName&&f.noData[i.nodeName.toLowerCase()])continue;c=i[f.expando];if(c){b=d[c];if(b&&b.events){for(var j in b.events)e[j]?f.event.remove(i,j):f.removeEvent(i,j,b.handle);b.handle&&(b.handle.elem=null)}g?delete i[f.expando]:i.removeAttribute&&i.removeAttribute(f.expando),delete d[c]}}}});var bq=/alpha\([^)]*\)/i,br=/opacity=([^)]*)/,bs=/([A-Z]|^ms)/g,bt=/^-?\d+(?:px)?$/i,bu=/^-?\d/,bv=/^([\-+])=([\-+.\de]+)/,bw={position:"absolute",visibility:"hidden",display:"block"},bx=["Left","Right"],by=["Top","Bottom"],bz,bA,bB;f.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return f.access(this,a,c,!0,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)})},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bz(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bv.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(bz)return bz(a,c)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]}}),f.curCSS=f.css,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){var e;if(c){if(a.offsetWidth!==0)return bC(a,b,d);f.swap(a,bw,function(){e=bC(a,b,d)});return e}},set:function(a,b){if(!bt.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return br.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bq,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bq.test(g)?g.replace(bq,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bz(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bA=function(a,b){var c,d,e;b=b.replace(bs,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b)));return c}),c.documentElement.currentStyle&&(bB=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f===null&&g&&(e=g[b])&&(f=e),!bt.test(f)&&bu.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f||0,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),bz=bA||bB,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bD=/%20/g,bE=/\[\]$/,bF=/\r?\n/g,bG=/#.*$/,bH=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bI=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bJ=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bK=/^(?:GET|HEAD)$/,bL=/^\/\//,bM=/\?/,bN=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bO=/^(?:select|textarea)/i,bP=/\s+/,bQ=/([?&])_=[^&]*/,bR=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bS=f.fn.load,bT={},bU={},bV,bW,bX=["*/"]+["*"];try{bV=e.href}catch(bY){bV=c.createElement("a"),bV.href="",bV=bV.href}bW=bR.exec(bV.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bS)return bS.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bN,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bO.test(this.nodeName)||bI.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bF,"\r\n")}}):{name:b.name,value:c.replace(bF,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b_(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b_(a,b);return a},ajaxSettings:{url:bV,isLocal:bJ.test(bW[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bX},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bZ(bT),ajaxTransport:bZ(bU),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?cb(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cc(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bH.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bG,"").replace(bL,bW[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bP),d.crossDomain==null&&(r=bR.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bW[1]&&r[2]==bW[2]&&(r[3]||(r[1]==="http:"?80:443))==(bW[3]||(bW[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),b$(bT,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bK.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bM.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bQ,"$1_="+x);d.url=y+(y===d.url?(bM.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bX+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=b$(bU,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)ca(g,a[g],c,e);return d.join("&").replace(bD,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cd=f.now(),ce=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cd++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ce.test(b.url)||e&&ce.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ce,l),b.url===j&&(e&&(k=k.replace(ce,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cf=a.ActiveXObject?function(){for(var a in ch)ch[a](0,1)}:!1,cg=0,ch;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ci()||cj()}:ci,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cf&&delete ch[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cg,cf&&(ch||(ch={},f(a).unload(cf)),ch[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var ck={},cl,cm,cn=/^(?:toggle|show|hide)$/,co=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cp,cq=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cr;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cu("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),e===""&&f.css(d,"display")==="none"&&f._data(d,"olddisplay",cv(d.nodeName)));for(g=0;g<h;g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none")d.style.display=f._data(d,"olddisplay")||""}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(cu("hide",3),a,b,c);var d,e,g=0,h=this.length;for(;g<h;g++)d=this[g],d.style&&(e=f.css(d,"display"),e!=="none"&&!f._data(d,"olddisplay")&&f._data(d,"olddisplay",e));for(g=0;g<h;g++)this[g].style&&(this[g].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(cu("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){function g(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]),h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.call(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(!f.support.inlineBlockNeedsLayout||cv(this.nodeName)==="inline"?this.style.display="inline-block":this.style.zoom=1))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a)j=new f.fx(this,b,i),h=a[i],cn.test(h)?(o=f._data(this,"toggle"+i)||(h==="toggle"?d?"show":"hide":0),o?(f._data(this,"toggle"+i,o==="show"?"hide":"show"),j[o]()):j[h]()):(k=co.exec(h),l=j.cur(),k?(m=parseFloat(k[2]),n=k[3]||(f.cssNumber[i]?"":"px"),n!=="px"&&(f.style(this,i,(m||1)+n),l=(m||1)/j.cur()*l,f.style(this,i,l+n)),k[1]&&(m=(k[1]==="-="?-1:1)*m+l),j.custom(l,m,n)):j.custom(l,h,""));return!0}var e=f.speed(b,c,d);if(f.isEmptyObject(a))return this.each(e.complete,[!1]);a=f.extend({},a);return e.queue===!1?this.each(g):this.queue(e.queue,g)},stop:function(a,c,d){typeof a!="string"&&(d=c,c=a,a=b),c&&a!==!1&&this.queue(a||"fx",[]);return this.each(function(){function h(a,b,c){var e=b[c];f.removeData(a,c,!0),e.stop(d)}var b,c=!1,e=f.timers,g=f._data(this);d||f._unmark(!0,this);if(a==null)for(b in g)g[b]&&g[b].stop&&b.indexOf(".run")===b.length-4&&h(this,g,b);else g[b=a+".run"]&&g[b].stop&&h(this,g,b);for(b=e.length;b--;)e[b].elem===this&&(a==null||e[b].queue===a)&&(d?e[b](!0):e[b].saveState(),c=!0,e.splice(b,1));(!d||!c)&&f.dequeue(this,a)})}}),f.each({slideDown:cu("show",1),slideUp:cu("hide",1),slideToggle:cu("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default;if(d.queue==null||d.queue===!0)d.queue="fx";d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue?f.dequeue(this,d.queue):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,c,d){function h(a){return e.step(a)}var e=this,g=f.fx;this.startTime=cr||cs(),this.end=c,this.now=this.start=a,this.pos=this.state=0,this.unit=d||this.unit||(f.cssNumber[this.prop]?"":"px"),h.queue=this.options.queue,h.elem=this.elem,h.saveState=function(){e.options.hide&&f._data(e.elem,"fxshow"+e.prop)===b&&f._data(e.elem,"fxshow"+e.prop,e.start)},h()&&f.timers.push(h)&&!cp&&(cp=setInterval(g.tick,g.interval))},show:function(){var a=f._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||f.style(this.elem,this.prop),this.options.show=!0,a!==b?this.custom(this.cur(),a):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f._data(this.elem,"fxshow"+this.prop)||f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b,c,d,e=cr||cs(),g=!0,h=this.elem,i=this.options;if(a||e>=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c<b.length;c++)a=b[c],!a()&&b[c]===a&&b.splice(c--,1);b.length||f.fx.stop()},interval:13,stop:function(){clearInterval(cp),cp=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}}}),f.each(["width","height"],function(a,b){f.fx.step[b]=function(a){f.style(a.elem,b,Math.max(0,a.now)+a.unit)}}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var cw=/^t(?:able|d|h)$/i,cx=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?f.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(d){}var e=b.ownerDocument,g=e.documentElement;if(!c||!f.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=e.body,i=cy(e),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||f.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||f.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:f.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);var c,d=b.offsetParent,e=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(f.support.fixedPosition&&k.position==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===d&&(l+=b.offsetTop,m+=b.offsetLeft,f.support.doesNotAddBorder&&(!f.support.doesAddBorderForTableAndCells||!cw.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),e=d,d=b.offsetParent),f.support.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;f.support.fixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},f.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cy(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cy(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,d,"padding")):this[d]():null},f.fn["outer"+c]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,d,a?"margin":"border")):this[d]():null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c],h=e.document.body;return e.document.compatMode==="CSS1Compat"&&g||h&&h["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var i=f.css(e,d),j=parseFloat(i);return f.isNumeric(j)?j:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window);
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/LICENSE-INFO.min.txt b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/LICENSE-INFO.min.txt
new file mode 100644 (file)
index 0000000..5f585c2
--- /dev/null
@@ -0,0 +1 @@
+/*! jQuery Mobile v@VERSION jquerymobile.com | jquery.org/license */
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/LICENSE-INFO.txt b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/LICENSE-INFO.txt
new file mode 100644 (file)
index 0000000..4b99089
--- /dev/null
@@ -0,0 +1,9 @@
+/*
+* jQuery Mobile Framework v@VERSION
+* http://jquerymobile.com
+*
+* Copyright 2011 (c) jQuery Project
+* Dual licensed under the MIT or GPL Version 2 licenses.
+* http://jquery.org/license
+*
+*/
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/MIT-LICENSE.txt b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/MIT-LICENSE.txt
new file mode 100644 (file)
index 0000000..5327046
--- /dev/null
@@ -0,0 +1,20 @@
+Copyright (c) 2011 John Resig, http://jquery.com/
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/Makefile b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/Makefile
new file mode 100644 (file)
index 0000000..ddcfa01
--- /dev/null
@@ -0,0 +1,218 @@
+# Helper Variables
+# The command to replace the @VERSION in the files with the actual version
+HEAD_SHA = $(shell git log -1 --format=format:"%H")
+VER = sed "s/v@VERSION/$$(git log -1 --format=format:"Git Build: SHA1: %H <> Date: %cd")/"
+VER_MIN = "/*! jQuery Mobile v$$(git log -1 --format=format:"Git Build: SHA1: %H <> Date: %cd") jquerymobile.com | jquery.org/license */"
+VER_OFFICIAL = $(shell cat version.txt)
+SED_VER_REPLACE = 's/__version__/"${VER_OFFICIAL}"/g'
+SED_VER_API = sed ${SED_VER_REPLACE}
+SED_INPLACE_EXT = "whyunowork"
+deploy: VER = sed "s/v@VERSION/${VER_OFFICIAL} ${HEAD_SHA}/"
+deploy: VER_MIN = "/*! jQuery Mobile v${VER_OFFICIAL} ${HEAD_SHA} jquerymobile.com | jquery.org/license */"
+
+# The output folder for the finished files
+OUTPUT = compiled
+
+# The name of the files
+NAME = jquery.mobile
+BASE_NAME = jquery.mobile
+THEME_FILENAME = jquery.mobile.theme
+STRUCTURE = jquery.mobile.structure
+deploy: NAME = jquery.mobile-${VER_OFFICIAL}
+deploy: THEME_FILENAME = jquery.mobile.theme-${VER_OFFICIAL}
+deploy: STRUCTURE = jquery.mobile.structure-${VER_OFFICIAL}
+
+# The CSS theme being used
+THEME = default
+
+# If node is available then use node to run r.js
+# otherwise use good old rhino/java
+NODE ?= /usr/local/bin/node
+HAS_NODE = $(shell if test -x ${NODE} ;then echo true; fi)
+
+ifeq ($(HAS_NODE), true)
+       RUN_JS = @@${NODE}
+else
+       RUN_JS = @@java -XX:ReservedCodeCacheSize=64m -classpath build/js.jar:build/google-compiler-20111003.jar org.mozilla.javascript.tools.shell.Main
+endif
+
+# Build Targets
+
+# When no build target is specified, all gets ran
+all: css js zip notify
+
+clean:
+       # -------------------------------------------------
+       # Cleaning build output
+       @@rm -rf ${OUTPUT}
+       @@rm -rf tmp
+
+# Create the output directory.
+init:
+       @@mkdir -p ${OUTPUT}
+
+# Build and minify the CSS files
+css: init
+       # Build the CSS file with the theme included
+       ${RUN_JS} \
+               external/r.js/dist/r.js \
+               -o cssIn=css/themes/default/jquery.mobile.css \
+               optimizeCss=standard.keepComments.keepLines \
+               out=${OUTPUT}/${NAME}.compiled.css
+       @@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT}/${NAME}.css
+       @@cat ${OUTPUT}/${NAME}.compiled.css >> ${OUTPUT}/${NAME}.css
+       @@echo ${VER_MIN} > ${OUTPUT}/${NAME}.min.css
+       @@java -XX:ReservedCodeCacheSize=64m \
+               -jar build/yuicompressor-2.4.6.jar \
+               --type css ${OUTPUT}/${NAME}.compiled.css >> ${OUTPUT}/${NAME}.min.css
+       @@rm ${OUTPUT}/${NAME}.compiled.css
+       # Build the CSS Structure-only file
+       ${RUN_JS} \
+               external/r.js/dist/r.js \
+               -o cssIn=css/structure/jquery.mobile.structure.css \
+               out=${OUTPUT}/${STRUCTURE}.compiled.css
+       @@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT}/${STRUCTURE}.css
+       @@cat ${OUTPUT}/${STRUCTURE}.compiled.css >> ${OUTPUT}/${STRUCTURE}.css
+       # ..... and then minify it
+       @@echo ${VER_MIN} > ${OUTPUT}/${STRUCTURE}.min.css
+       @@java -XX:ReservedCodeCacheSize=64m \
+               -jar build/yuicompressor-2.4.6.jar \
+               --type css ${OUTPUT}/${STRUCTURE}.compiled.css >> ${OUTPUT}/${STRUCTURE}.min.css
+       @@rm ${OUTPUT}/${STRUCTURE}.compiled.css
+       # Build the theme only file
+       @@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT}/${THEME_FILENAME}.css
+       @@cat css/themes/default/jquery.mobile.theme.css >> ${OUTPUT}/${THEME_FILENAME}.css
+       # ..... and then minify it
+       @@echo ${VER_MIN} > ${OUTPUT}/${THEME_FILENAME}.min.css
+       @@java -XX:ReservedCodeCacheSize=64m \
+               -jar build/yuicompressor-2.4.6.jar \
+               --type css ${OUTPUT}/${THEME_FILENAME}.css >> ${OUTPUT}/${THEME_FILENAME}.min.css
+       # Copy in the images
+       @@cp -R css/themes/${THEME}/images ${OUTPUT}/
+       # Css portion is complete.
+       # -------------------------------------------------
+
+
+docs: init js css
+       # Create the Demos/Docs/Tests/Tools
+       # ... Create staging directories
+       @@mkdir -p tmp/demos/js
+       @@mkdir -p tmp/demos/css/themes/${THEME}
+       # ... Copy script files
+       @@cp compiled/*.js tmp/demos/js
+       @@cp js/jquery.js tmp/demos/js
+       # ... Copy html files
+       @@cp index.html tmp/demos
+       @@cp -r docs tmp/demos
+       # ... Copy css and images
+       @@cp compiled/*.css tmp/demos/css/themes/${THEME}
+       @@cp -r compiled/images tmp/demos/css/themes/${THEME}
+       # ... replace "js/" with "js/jquery.mobile.js"
+       @@ # NOTE the deletion here is required by gnu/bsd sed differences
+       @@find tmp/demos -name "*.html" -exec sed -i${SED_INPLACE_EXT} -e 's@js/"@js/jquery.mobile.js"@' {} \;
+       @@find tmp/demos -name "*${SED_INPLACE_EXT}" -exec rm {} \;
+       # ... Move and zip up the the whole folder
+       @@rm -f ${OUTPUT}/${BASE_NAME}.docs.zip
+       @@cd tmp/demos && zip -rq ../../${OUTPUT}/${NAME}.docs.zip *
+       @@rm -rf ${OUTPUT}/demos && mv -f tmp/demos ${OUTPUT}
+       # Finish by removing the temporary files
+       @@rm -rf tmp
+       # -------------------------------------------------
+
+# Build and minify the JS files
+js: init
+       # Build the JavaScript file
+       ${RUN_JS} \
+               external/r.js/dist/r.js \
+               -o baseUrl="js" \
+               name=jquery.mobile \
+               exclude=jquery,../external/requirejs/order,../external/requirejs/depend,../external/requirejs/text,../external/requirejs/text!../version.txt \
+               out=${OUTPUT}/${NAME}.compiled.js \
+               pragmasOnSave.jqmBuildExclude=true \
+               wrap.startFile=build/wrap.start \
+               wrap.endFile=build/wrap.end \
+               findNestedDependencies=true \
+               skipModuleInsertion=true \
+               optimize=none
+       @@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT}/${NAME}.js
+       @@cat ${OUTPUT}/${NAME}.compiled.js | ${SED_VER_API} >> ${OUTPUT}/${NAME}.js
+       @@rm ${OUTPUT}/${NAME}.compiled.js
+       ## ..... and then minify it
+       ##@@echo ${VER_MIN} > ${OUTPUT}/${NAME}.min.js
+       ##@@java -XX:ReservedCodeCacheSize=64m \
+       ##      -jar build/google-compiler-20111003.jar \
+       ##      --js ${OUTPUT}/${NAME}.js \
+       ##      --js_output_file ${OUTPUT}/${NAME}.compiled.js
+       ##@@cat ${OUTPUT}/${NAME}.compiled.js >> ${OUTPUT}/${NAME}.min.js
+       ##@@rm ${OUTPUT}/${NAME}.compiled.js
+       # -------------------------------------------------
+
+
+# Output a message saying the process is complete
+notify: init
+       @@echo "The files have been built and are in: " $$(pwd)/${OUTPUT}
+       # -------------------------------------------------
+
+
+# Zip up the jQm files without docs
+zip: init css js
+       # Packaging up the files into a zip archive
+       @@mkdir tmp
+       @@cp -R ${OUTPUT} tmp/${NAME}
+       # ... And remove the Zipped docs so they aren't included twice (for deploy scripts)
+       @@rm -rf tmp/${NAME}/*.zip
+       @@cd tmp; zip -rq ../${OUTPUT}/${NAME}.zip ${NAME}
+       @@rm -rf tmp
+       # -------------------------------------------------
+
+# -------------------------------------------------
+# -------------------------------------------------
+# -------------------------------------------------
+#
+# For jQuery Team Use Only
+#
+# -------------------------------------------------
+# NOTE the clean (which removes previous build output) has been removed to prevent a gap in service
+build_latest: css docs js zip
+       # ... Copy over the lib js, avoid the compiled stuff, to get the defines for tests/unit/*
+       @@ # TODO centralize list of built files
+       @@find js -name "*.js" -not -name "*.docs.js" -not -name "*.mobile.js"  | xargs -L1 -I FILENAME cp FILENAME ${OUTPUT}/demos/js/
+
+# Push the latest git version to the CDN. This is done on a post commit hook
+deploy_latest:
+       # Time to put these on the CDN
+       @@scp -qr ${OUTPUT}/* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/latest/
+       # -------------------------------------------------
+
+# TODO target name preserved to avoid issues during refactor, latest -> deploy_latest
+latest: build_latest deploy_latest
+
+# Push the nightly backups. This is done on a server cronjob
+deploy_nightlies:
+       # Time to put these on the CDN
+       @@scp -qr ${OUTPUT} jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/nightlies/$$(date "+%Y%m%d")
+       # -------------------------------------------------
+
+# Deploy a finished release. This is manually done.
+deploy: init css js docs zip
+       # Deploying all the files to the CDN
+       @@mkdir tmp
+       @@cp -R ${OUTPUT} tmp/${VER_OFFICIAL}
+       @@scp -qr tmp/* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/
+       @@rm -rf tmp/${VER_OFFICIAL}
+       @@mv ${OUTPUT}/demos tmp/${VER_OFFICIAL}
+       # Create the Demos/Docs/Tests/Tools for jQueryMobile.com
+       # ... By first replacing the paths
+       @@ # TODO update jQuery Version replacement on deploy
+       @@find tmp/${VER_OFFICIAL} -type f \
+               \( -name '*.html' -o -name '*.php' \) \
+               -exec perl -pi -e \
+               's|src="(.*)${BASE_NAME}.js"|src="//code.jquery.com/mobile/${VER_OFFICIAL}/${NAME}.min.js"|g;s|href="(.*)${BASE_NAME}.css"|href="//code.jquery.com/mobile/${VER_OFFICIAL}/${NAME}.min.css"|g;s|src="(.*)jquery.js"|src="//code.jquery.com/jquery-1.7.1.min.js"|g' {} \;
+       # ... So they can be copied to jquerymobile.com
+       @@scp -qr tmp/* jqadmin@jquerymobile.com:/srv/jquerymobile.com/htdocs/demos/
+       # Do some cleanup to wrap it up
+       @@rm -rf tmp
+       @@rm -rf ${OUTPUT}
+       # -------------------------------------------------
+
+
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/README.md b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/README.md
new file mode 100644 (file)
index 0000000..e5607ce
--- /dev/null
@@ -0,0 +1,111 @@
+jQuery Mobile Framework
+=======================
+[Official Site: http://jquerymobile.com](http://jquerymobile.com)
+
+[Demos and Documentation](http://jquerymobile.com/test/)
+
+How to build your own jQuery Mobile CSS and JS files
+====================================================
+Clone this repo and build the js and css files (you'll need Git and Make installed):
+
+    git clone git://github.com/jquery/jquery-mobile.git
+    cd jquery-mobile
+    make
+
+A full version and a minified version of the jQuery Mobile JavaScript and CSS files will be created
+in a folder named "compiled". There is also now a Structure only css file so you can add your own theme on top of it.
+
+How to build a self-contained version of the Docs/Demos
+=======================================================
+Once you have your own cloned repo on your computer:
+
+    make docs
+
+The docs will be built and available in the compiled/demos folder. You can move this folder to your web server or
+other location. It has no dependencies on anything other than a basic HTML web server.
+
+
+Submitting bugs
+===============
+If you think you've found a bug, please report it by following these instructions:
+
+1. Visit the [Issue tracker: https://github.com/jquery/jquery-mobile/issues](https://github.com/jquery/jquery-mobile/issues)
+2. Create an issue explaining the problem and expected result
+    - Be sure to include any relevant information for reproducing the issue
+    - Include information such as:
+        * Browser/device (with version #)
+        * The version of the jQuery Mobile code you're running
+        * If you are running from a git version, include the date and/or hash number
+    - Make sure that the bug still exists at http://jquerymobile.com/test/ as it may be fixed already
+    - You can use the CDN hosted JS and CSS files to test in your own code by using:
+        * [JS](http://code.jquery.com/mobile/latest/jquery.mobile.min.js)
+        * [CSS](http://code.jquery.com/mobile/latest/jquery.mobile.min.css)
+    - Include a link to some code of the bug in action. You can use either of these services to host your code
+        * [jsbin](http://jsbin.com)
+        * [jsfiddle](http://jsfiddle.net)
+3. Submit the issue.
+
+Recommended: [JS Bin issue template with instructions](http://jsbin.com/omacox/edit)
+
+Submitting patches
+==================
+To contribute code and bug fixes to jQuery Mobile: fork this project on Github, make changes to the code in your fork,
+and then send a "pull request" to notify the team of updates that are ready to be reviewed for inclusion.
+
+Detailed instructions can be found at [jQuery Mobile Patching](https://gist.github.com/1294035)
+
+Running the jQuery Mobile demos & docs locally
+==============================================
+To preview locally, you'll need to clone a local copy of this repository and point your Apache & PHP webserver at its
+root directory (a webserver is required, as PHP and .htaccess are used for combining development files).
+
+If you don't currently have a webserver running locally, there are a few options.
+
+If you're on a Mac, you can try dropping jQuery Mobile into your sites folder and turning on Web Sharing via System
+Prefs. From there, you'll find a URL where you can browse folders in your sites directory from a browser.
+
+Another quick way to get up and running is to download and install MAMP for Mac OSX. Once installed, just open MAMP,
+click preferences, go to the Apache tab, and select your local jQuery Mobile folder as the root. Then you can open a
+browser to http://localhost:8888 to preview the code.
+
+Another alternative is XAMPP (Mac, Windows). You need to actually modify Apache's httpd.conf to point to your checkout:
+[Instructions](http://www.apachefriends.org/en/xampp.html)
+
+You need the following Apache modules loaded:
+
+* Rewrite (mod\_rewrite.so)
+* Expire (mod\_expires.so)
+* Header (mod\_headers.so)
+
+Alternatively, with the addition of async loading, you can use the python simple http server from the project root:
+
+    $ python -m SimpleHTTPServer 8000
+
+And in your browser visit [localhost:8000](http://localhost:8000/tests/unit/core/). NOTE: The docs will not load as they are dependent on the "/js/" includes which require php. For other development work such as unit tests and custom test pages using
+
+    <script data-main="js/jquery.mobile.docs" src="external/requirejs/require.js"></script>
+
+will allow you to load modules asynchronously without php. Please note that the example above assumes it's inclusion in a page at the root of the directory in which the simple http server was run.
+
+AMD Support in Development
+==========================
+
+Please bear in mind that async loading is not supported for production and is primarily used for the project's build process. As a result developers should expect an initial flash of unstyled content, which will not occur when the library is compiled.
+
+If you find dependency bugs when using the async loading support for development please log them in the github issue tracker.
+
+Building With A Custom Theme
+============================
+To use a custom theme in your own build, you'll need Make installed. You can find the themes in the CSS/Themes folder.
+To create a new theme:
+
+1. Copy the `Default` folder from CSS/Themes to a new folder in the same location. The name of the folder will be the
+theme's name. For testing locally, make sure the index.php file is copied as well.
+2. Edit the `jquery.mobile.theme.css` file so it contains your custom fonts and colors.
+3. Once you are done editing your files and saving them, open a terminal.
+4. Navigate to the jQuery-Mobile folder's root.
+5. Run the following command to build jQuery-Mobile (THEME is the name of the folder for your theme from step 1.):
+
+    make THEME=YourThemeName
+
+6. The compiled files will be located in the "compiled" folder in the root of jQuery-Mobile.
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/combine.php b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/combine.php
new file mode 100644 (file)
index 0000000..cac1eea
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+// Get the filetype and array of files
+if ( ! isset($type) || ! isset($files) )
+{
+       echo '$type and $files must be specified!';
+       exit;
+}
+
+$contents = '';
+
+// Loop through the files adding them to a string
+foreach ( $files as $file ) {
+       $contents .= file_get_contents($file). "\n\n";
+}
+
+// Set the content type, filesize and an expiration so its not cached
+header('Content-Type: ' . $type);
+header('Content-Length: ' . strlen($contents));
+header('Expires: Fri, 01 Jan 2010 05:00:00 GMT');
+
+// Deliver the file
+echo $contents;
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.button.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.button.css
new file mode 100644 (file)
index 0000000..6fdc9ee
--- /dev/null
@@ -0,0 +1,70 @@
+.ui-btn { display: block; text-align: center; cursor:pointer;  position: relative; margin: .5em 5px; padding: 0; }
+.ui-mini { margin: .25em 5px; }
+.ui-btn-inner { padding: .6em 20px; min-width: .75em; display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; position: relative; zoom: 1; }
+.ui-btn input, .ui-btn button { z-index: 2; }
+.ui-btn-left, .ui-btn-right, .ui-btn-inline { display: inline-block; }
+.ui-btn-block { display: block; }
+
+.ui-header .ui-btn,
+.ui-footer .ui-btn { display: inline-block; margin: 0; }
+
+.ui-header .ui-btn-inner,
+.ui-footer .ui-btn-inner,
+.ui-mini .ui-btn-inner { font-size: 12.5px; padding: .55em 11px .5em; }
+
+.ui-header .ui-fullsize .ui-btn-inner,
+.ui-footer .ui-fullsize .ui-btn-inner { font-size: 16px; padding: .6em 25px; }
+
+.ui-btn-icon-notext { width: 24px; height: 24px; }
+.ui-btn-icon-notext .ui-btn-inner { padding: 0; height: 100%; }
+.ui-btn-icon-notext .ui-btn-inner .ui-icon { margin: 2px 1px 2px 3px; }
+
+.ui-btn-text { position: relative; z-index: 1; width: 100%; }
+.ui-btn-icon-notext .ui-btn-text { position: absolute; left: -9999px; }
+
+.ui-btn-icon-left .ui-btn-inner { padding-left: 40px; }
+.ui-btn-icon-right .ui-btn-inner { padding-right: 40px; }
+.ui-btn-icon-top .ui-btn-inner { padding-top: 40px; }
+.ui-btn-icon-bottom .ui-btn-inner { padding-bottom: 40px; }
+
+.ui-header .ui-btn-icon-left .ui-btn-inner,
+.ui-footer .ui-btn-icon-left .ui-btn-inner,
+.ui-mini .ui-btn-icon-left .ui-btn-inner { padding-left: 30px; }
+.ui-header .ui-btn-icon-right .ui-btn-inner,
+.ui-footer .ui-btn-icon-right .ui-btn-inner,
+.ui-mini .ui-btn-icon-right .ui-btn-inner { padding-right: 30px; }
+.ui-header .ui-btn-icon-top .ui-btn-inner,
+.ui-footer .ui-btn-icon-top .ui-btn-inner,
+.ui-mini .ui-btn-icon-top .ui-btn-inner { padding: 30px 3px .5em 3px; }
+.ui-header .ui-btn-icon-bottom .ui-btn-inner,
+.ui-footer .ui-btn-icon-bottom .ui-btn-inner,
+.ui-mini .ui-btn-icon-bottom .ui-btn-inner { padding: .55em 3px 30px 3px; }
+
+/*btn icon positioning*/
+.ui-btn-icon-notext .ui-icon { display: block; z-index: 0;}
+.ui-btn-icon-left .ui-btn-inner .ui-icon, .ui-btn-icon-right .ui-btn-inner .ui-icon { position: absolute; top: 50%; margin-top: -9px; }
+.ui-btn-icon-top .ui-btn-inner .ui-icon, .ui-btn-icon-bottom .ui-btn-inner .ui-icon { position: absolute; left: 50%;  margin-left: -9px; }
+.ui-btn-icon-left .ui-icon { left: 10px; }
+.ui-btn-icon-right .ui-icon { right: 10px; }
+.ui-btn-icon-top .ui-icon { top: 10px; }
+.ui-btn-icon-bottom .ui-icon { top: auto; bottom: 10px; }
+
+.ui-header .ui-btn-icon-left .ui-icon,
+.ui-footer .ui-btn-icon-left .ui-icon,
+.ui-mini.ui-btn-icon-left .ui-icon,
+.ui-mini .ui-btn-icon-left .ui-icon { left: 5px; }
+.ui-header .ui-btn-icon-right .ui-icon,
+.ui-footer .ui-btn-icon-right .ui-icon,
+.ui-mini.ui-btn-icon-right .ui-icon,
+.ui-mini .ui-btn-icon-right .ui-icon { right: 5px; }
+.ui-header .ui-btn-icon-top .ui-icon,
+.ui-footer .ui-btn-icon-top .ui-icon,
+.ui-mini.ui-btn-icon-top .ui-icon,
+.ui-mini .ui-btn-icon-top .ui-icon { top: 5px; }
+.ui-header .ui-btn-icon-bottom .ui-icon,
+.ui-footer .ui-btn-icon-bottom .ui-icon,
+.ui-mini.ui-btn-icon-bottom .ui-icon,
+.ui-mini .ui-btn-icon-bottom .ui-icon { bottom: 5px; }
+
+/*hiding native button,inputs */
+.ui-btn-hidden { position: absolute; top: 0; left: 0; width: 100%; height: 100%; -webkit-appearance: button; opacity: .1; cursor: pointer; background: #fff; background: rgba(255,255,255,0); filter: Alpha(Opacity=.0001); font-size: 1px; border: none; text-indent: -9999px; }
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.collapsible.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.collapsible.css
new file mode 100644 (file)
index 0000000..50f62bc
--- /dev/null
@@ -0,0 +1,25 @@
+.ui-collapsible { margin: .5em 0; }
+.ui-collapsible-heading { font-size: 16px; display: block; margin: 0 -8px; padding: 0; border-width: 0 0 1px 0; position: relative; }
+.ui-collapsible-heading a { text-align: left; margin: 0;  }
+.ui-collapsible-heading .ui-btn-inner,
+.ui-collapsible-heading .ui-btn-icon-left .ui-btn-inner { padding-left: 40px; }
+.ui-collapsible-heading .ui-btn-icon-right .ui-btn-inner { padding-left: 12px; padding-right: 40px; }
+.ui-collapsible-heading .ui-btn-icon-top .ui-btn-inner,
+.ui-collapsible-heading .ui-btn-icon-bottom .ui-btn-inner { padding-right: 40px; text-align: center; }
+
+.ui-collapsible-heading a span.ui-btn { position: absolute; left: 6px; top: 50%; margin: -12px 0 0 0; width: 20px; height: 20px; padding: 1px 0px 1px 2px; text-indent: -9999px; }
+.ui-collapsible-heading a span.ui-btn .ui-btn-inner { padding: 10px 0; }
+.ui-collapsible-heading a span.ui-btn .ui-icon { left: 0; margin-top: -10px; }
+.ui-collapsible-heading-status { position: absolute; top: -9999px; left:0px; }
+.ui-collapsible-content {
+       display: block;
+       margin:  0 -8px;
+       padding: 10px 16px;
+       border-top:  none;      /* Overrides ui-btn-up-* */
+       background-image: none; /* Overrides ui-btn-up-* */
+       font-weight: normal;    /* Overrides ui-btn-up-* */
+}
+.ui-collapsible-content-collapsed { display: none; }
+
+.ui-collapsible-set { margin: .5em 0; }
+.ui-collapsible-set .ui-collapsible { margin: -1px 0 0; }
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.controlgroup.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.controlgroup.css
new file mode 100644 (file)
index 0000000..6130417
--- /dev/null
@@ -0,0 +1,30 @@
+.ui-controlgroup, fieldset.ui-controlgroup { padding: 0; margin: 0em 0 .5em; zoom: 1; }
+
+.ui-bar .ui-controlgroup { margin: 0 .3em; }
+.ui-controlgroup-label { font-size: 16px; line-height: 1.4; font-weight: normal; margin: 0 0 .4em; }
+.ui-controlgroup-controls { display: block; width: 100%;}
+.ui-controlgroup li { list-style: none; }
+.ui-controlgroup-vertical .ui-btn,
+.ui-controlgroup-vertical .ui-checkbox, .ui-controlgroup-vertical .ui-radio { margin: 0; border-bottom-width: 0;  }
+.ui-controlgroup-controls label.ui-select { position: absolute; left: -9999px; }
+
+.ui-controlgroup-vertical .ui-controlgroup-last { border-bottom-width: 1px; }
+.ui-controlgroup-horizontal { padding: 0; }
+.ui-controlgroup-horizontal .ui-btn-inner { text-align:center; }
+.ui-controlgroup-horizontal .ui-btn, .ui-controlgroup-horizontal .ui-select { display: inline-block; margin: 0 -6px 0 0; }
+.ui-controlgroup-horizontal .ui-checkbox, .ui-controlgroup-horizontal .ui-radio { float: left; clear: none; margin: 0 -1px 0 0; }
+.ui-controlgroup-horizontal .ui-checkbox .ui-btn, .ui-controlgroup-horizontal .ui-radio .ui-btn,
+.ui-controlgroup-horizontal .ui-checkbox:last-child, .ui-controlgroup-horizontal .ui-radio:last-child { margin-right: 0; }
+.ui-controlgroup-horizontal .ui-controlgroup-last { margin-right: 0; }
+.ui-controlgroup .ui-checkbox label, .ui-controlgroup .ui-radio label { font-size: 16px;  }
+/* conflicts with listview..
+.ui-controlgroup .ui-btn-icon-notext { width: 30px; height: 30px; text-indent: -9999px; }
+.ui-controlgroup .ui-btn-icon-notext .ui-btn-inner {  padding: 5px 6px 5px 5px; }
+*/
+
+@media all and (min-width: 450px){
+       .ui-field-contain .ui-controlgroup-label { vertical-align: top; display: inline-block;  width: 20%;  margin: 0 2% 0 0;  }
+       .ui-field-contain .ui-controlgroup-controls { width: 60%; display: inline-block; }
+       .ui-field-contain .ui-controlgroup .ui-select { width: 100%; } 
+       .ui-field-contain .ui-controlgroup-horizontal .ui-select { width: auto; }
+}      
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.core.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.core.css
new file mode 100644 (file)
index 0000000..47fe49d
--- /dev/null
@@ -0,0 +1,72 @@
+/* some unsets - more probably needed */
+.ui-mobile, .ui-mobile body { height: 99.9%; }
+.ui-mobile fieldset, .ui-page { padding: 0; margin: 0; }
+.ui-mobile a img, .ui-mobile fieldset { border-width: 0; }
+
+/* responsive page widths */
+.ui-mobile-viewport {  margin: 0; overflow-x: visible; -webkit-text-size-adjust: none; -ms-text-size-adjust:none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
+/* Issue #2066 */
+body.ui-mobile-viewport,
+div.ui-mobile-viewport { overflow-x: hidden; }
+
+/* "page" containers - full-screen views, one should always be in view post-pageload */
+.ui-mobile [data-role=page], .ui-mobile [data-role=dialog], .ui-page { top: 0; left: 0; width: 100%; min-height: 100%; position: absolute; display: none; border: 0; }
+.ui-mobile .ui-page-active { display: block; overflow: visible; }
+
+/* on ios4, setting focus on the page element causes flashing during transitions when there is an outline, so we turn off outlines */
+.ui-page { outline: none; }
+
+/*orientations from js are available */
+@media screen and (orientation: portrait){
+.ui-mobile, .ui-mobile .ui-page { min-height: 420px; }
+}
+@media screen and (orientation: landscape){
+.ui-mobile, .ui-mobile .ui-page { min-height: 300px; }
+}
+
+/* loading screen */
+.ui-loading .ui-loader { display: block; }
+.ui-loader { display: none; z-index: 9999999; position: fixed; top: 50%; box-shadow: 0 1px 1px -1px #fff; left: 50%; border:0; }
+.ui-loader-default { background: none; opacity: .18; width: 46px; height: 46px; margin-left: -23px; margin-top: -23px; }
+.ui-loader-verbose { width: 200px; opacity: .88; height: auto; margin-left: -110px; margin-top: -43px; padding: 10px; }
+.ui-loader-default h1 { font-size: 0; width: 0; height: 0; overflow: hidden; }
+.ui-loader-verbose h1 { font-size: 16px; margin: 0; text-align: center; }
+.ui-loader .ui-icon { background-color: #000; display: block; margin: 0; width: 44px; height: 44px; padding: 1px; -webkit-border-radius: 36px; -moz-border-radius: 36px; border-radius: 36px; }
+.ui-loader-verbose .ui-icon { margin: 0 auto 10px; opacity: .75; }
+.ui-loader-textonly { padding: 15px; margin-left: -115px;  }
+.ui-loader-textonly .ui-icon { display: none; }
+.ui-loader-fakefix { position: absolute; }
+/*fouc*/
+.ui-mobile-rendering > * { visibility: hidden; }
+
+/*headers, content panels*/
+.ui-bar, .ui-body { position: relative; padding: .4em 15px;  overflow: hidden; display: block;  clear:both;  }
+.ui-bar { font-size: 16px; margin: 0; }
+.ui-bar h1, .ui-bar h2, .ui-bar h3, .ui-bar h4, .ui-bar h5, .ui-bar h6 { margin: 0; padding: 0; font-size: 16px; display: inline-block; }
+
+.ui-header, .ui-footer { position: relative; border-left-width: 0; border-right-width: 0; }
+.ui-header .ui-btn-left,
+.ui-header .ui-btn-right,
+.ui-footer .ui-btn-left,
+.ui-footer .ui-btn-right { position: absolute; top: 3px; }
+.ui-header .ui-btn-left,
+.ui-footer .ui-btn-left { left: 5px; }
+.ui-header .ui-btn-right,
+.ui-footer .ui-btn-right { right: 5px; }
+.ui-footer .ui-btn-icon-notext,
+.ui-header .ui-btn-icon-notext { top: 6px; }
+.ui-header .ui-title, .ui-footer .ui-title { min-height: 1.1em; text-align: center; font-size: 16px; display: block; margin: .6em 30% .8em;  padding: 0;  text-overflow: ellipsis; overflow: hidden; white-space: nowrap; outline: 0 !important; }
+.ui-footer .ui-title { margin: .6em 15px .8em;  }
+
+/*content area*/
+.ui-content { border-width: 0; overflow: visible; overflow-x: hidden; padding: 15px; }
+
+/* icons sizing */
+.ui-icon { width: 18px; height: 18px; }
+
+/* non-js content hiding */
+.ui-nojs { position: absolute; left: -9999px; }
+
+/* accessible content hiding */
+.ui-hide-label label,
+.ui-hidden-accessible { position: absolute !important; left: -9999px; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.dialog.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.dialog.css
new file mode 100644 (file)
index 0000000..6f0e651
--- /dev/null
@@ -0,0 +1,30 @@
+.ui-dialog {
+        background: none !important; /* this is to ensure that dialog theming does not apply (by default at least) on the page div */
+}
+.ui-dialog-contain { width: 92.5%; max-width: 500px; margin: 10% auto 15px auto; padding: 0; }
+.ui-dialog .ui-header {
+       margin-top: 15%;
+       border: none;
+       overflow: hidden;
+}
+.ui-dialog .ui-header, 
+.ui-dialog .ui-content, 
+.ui-dialog .ui-footer { 
+       display: block;
+       position: relative; 
+       width: auto;
+}
+.ui-dialog .ui-header, 
+.ui-dialog .ui-footer  { 
+       z-index: 10; 
+       padding: 0;
+}
+.ui-dialog .ui-footer {
+       padding: 0 15px; 
+}
+.ui-dialog .ui-content { 
+       padding: 15px; 
+}
+.ui-dialog { 
+       margin-top: -15px;  
+}
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.fixedToolbar.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.fixedToolbar.css
new file mode 100644 (file)
index 0000000..b81d9d0
--- /dev/null
@@ -0,0 +1,40 @@
+/* fixed page header & footer configuration */
+.ui-header-fixed,
+.ui-footer-fixed {
+       left: 0;
+       right: 0;
+       width: 100%;
+       position: fixed;
+       z-index: 1000;
+}
+.ui-header-fixed {
+       top: 0;
+}
+.ui-footer-fixed {
+       bottom: 0;
+}
+.ui-header-fullscreen,
+.ui-footer-fullscreen {
+       opacity: .9;
+}
+.ui-page-header-fixed {
+       padding-top: 2.5em;
+}
+.ui-page-footer-fixed {
+       padding-bottom: 3em;
+}
+.ui-page-header-fullscreen .ui-content,
+.ui-page-footer-fullscreen .ui-content {
+       padding: 0;
+}
+.ui-fixed-hidden {
+       position: absolute;
+}
+.ui-page-header-fullscreen .ui-fixed-hidden,
+.ui-page-footer-fullscreen .ui-fixed-hidden {
+       left: -99999em;
+}
+.ui-header-fixed .ui-btn,
+.ui-footer-fixed .ui-btn { 
+       z-index: 10;
+}
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.checkboxradio.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.checkboxradio.css
new file mode 100644 (file)
index 0000000..d5ec896
--- /dev/null
@@ -0,0 +1,24 @@
+.ui-checkbox, .ui-radio { position: relative; clear: both; margin: .2em 0 .5em; z-index: 1;  }
+.ui-checkbox .ui-btn, .ui-radio .ui-btn { margin: 0; text-align: left; z-index: 2; }
+.ui-checkbox .ui-btn-inner, .ui-radio .ui-btn-inner { white-space: normal; }
+.ui-checkbox .ui-btn-icon-left .ui-btn-inner,.ui-radio .ui-btn-icon-left .ui-btn-inner { padding-left: 45px; }
+.ui-checkbox .ui-mini.ui-btn-icon-left .ui-btn-inner,.ui-radio .ui-mini.ui-btn-icon-left .ui-btn-inner { padding-left: 36px; }
+
+.ui-checkbox .ui-btn-icon-right .ui-btn-inner, .ui-radio .ui-btn-icon-right .ui-btn-inner { padding-right: 45px; }
+.ui-checkbox .ui-mini.ui-btn-icon-right .ui-btn-inner, .ui-radio .ui-mini.ui-btn-icon-right .ui-btn-inner { padding-right: 36px; }
+
+.ui-checkbox .ui-btn-icon-top .ui-btn-inner,.ui-radio .ui-btn-icon-top .ui-btn-inner { padding-right: 0; padding-left: 0; text-align: center; }
+.ui-checkbox .ui-btn-icon-bottom .ui-btn-inner, .ui-radio .ui-btn-icon-bottom .ui-btn-inner { padding-right: 0; padding-left: 0; text-align: center; }
+
+.ui-checkbox .ui-icon, .ui-radio .ui-icon { top: 1.1em; }
+.ui-checkbox .ui-btn-icon-left .ui-icon, .ui-radio .ui-btn-icon-left .ui-icon { left: 15px; }
+.ui-checkbox .ui-mini.ui-btn-icon-left .ui-icon, .ui-radio .ui-mini.ui-btn-icon-left .ui-icon { left: 9px; }
+.ui-checkbox .ui-btn-icon-right .ui-icon, .ui-radio .ui-btn-icon-right .ui-icon { right: 15px; }
+.ui-checkbox .ui-mini.ui-btn-icon-right .ui-icon, .ui-radio .ui-mini.ui-btn-icon-right .ui-icon { right: 9px; }
+.ui-checkbox .ui-btn-icon-top .ui-icon, .ui-radio .ui-btn-icon-top .ui-icon { top: 10px; }
+.ui-checkbox .ui-btn-icon-bottom .ui-icon, .ui-radio .ui-btn-icon-bottom .ui-icon { top: auto; bottom: 10px; }
+.ui-checkbox .ui-btn-icon-right .ui-icon, .ui-radio .ui-btn-icon-right .ui-icon { right: 15px; }
+.ui-checkbox .ui-mini.ui-btn-icon-right .ui-icon, .ui-radio .ui-mini.ui-btn-icon-right .ui-icon { right: 9px; }
+
+/* input, label positioning */
+.ui-checkbox input,.ui-radio input { position:absolute; left:20px; top:50%; width: 10px; height: 10px;  margin:-5px 0 0 0; outline: 0 !important; z-index: 1; }
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.fieldcontain.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.fieldcontain.css
new file mode 100644 (file)
index 0000000..da40101
--- /dev/null
@@ -0,0 +1,18 @@
+.ui-field-contain, fieldset.ui-field-contain { padding: .8em 0; margin: 0; border-width: 0 0 1px 0; overflow: visible; }
+.ui-field-contain:first-child { border-top-width: 0; }
+.ui-header .ui-field-contain-left,
+.ui-header .ui-field-contain-right {
+       position: absolute;
+       top: 0;
+       width: 25%;
+}
+.ui-header .ui-field-contain-left {
+       left: 1em;
+}
+.ui-header .ui-field-contain-right {
+       right: 1em;
+}
+
+@media all and (min-width: 450px){
+       .ui-field-contain, .ui-mobile fieldset.ui-field-contain { border-width: 0; padding: 0; margin: 1em 0; }
+}
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.select.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.select.css
new file mode 100644 (file)
index 0000000..db8356f
--- /dev/null
@@ -0,0 +1,41 @@
+.ui-select { display: block; position: relative; }
+.ui-select select { position: absolute; left: -9999px; top: -9999px; }
+.ui-select .ui-btn { overflow: hidden; opacity: 1; margin: 0; }
+/* Fixes #2588 — When Windows Phone 7.5 (Mango) tries to calculate a numeric opacity for a select—including “inherit”—without explicitly specifying an opacity on the parent to give it context, a bug appears where clicking elsewhere on the page after opening the select will open the select again. */
+.ui-select .ui-btn select { cursor: pointer; -webkit-appearance: button; left: 0; top:0; width: 100%;  min-height: 1.5em; min-height: 100%; height: 3em; max-height: 100%; opacity: 0; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); z-index: 2; }
+
+.ui-select .ui-disabled { opacity: .3; }
+
+@-moz-document url-prefix() {.ui-select .ui-btn select { opacity: 0.0001; }}
+.ui-select .ui-btn select.ui-select-nativeonly { opacity: 1; text-indent: 0; }
+
+.ui-select .ui-btn-icon-right .ui-btn-inner { padding-right: 45px; } 
+.ui-select .ui-btn-icon-right .ui-icon { right: 15px;  }
+.ui-select .ui-mini.ui-btn-icon-right .ui-icon { right: 7px;  }
+
+
+/* labels */
+label.ui-select { font-size: 16px; line-height: 1.4;  font-weight: normal; margin: 0 0 .3em; display: block; }
+
+/*listbox*/
+.ui-select .ui-btn-text, .ui-selectmenu .ui-btn-text { display: block; min-height: 1em; overflow: hidden !important;
+/* This !important is required for iPad Safari specifically. See https://github.com/jquery/jquery-mobile/issues/2647 */ }
+.ui-select .ui-btn-text { text-overflow: ellipsis; }
+
+.ui-selectmenu { position: absolute; padding: 0; z-index: 1100 !important; width: 80%; max-width: 350px; padding: 6px; }
+.ui-selectmenu .ui-listview { margin: 0; }
+.ui-selectmenu .ui-btn.ui-li-divider { cursor: default; }
+.ui-selectmenu-hidden { top: -9999px; left: -9999px; }
+.ui-selectmenu-screen { position: absolute; top: 0; left: 0; width: 100%; height: 100%;  z-index: 99; }
+.ui-screen-hidden, .ui-selectmenu-list .ui-li .ui-icon { display: none; }
+.ui-selectmenu-list .ui-li .ui-icon { display: block; }
+.ui-li.ui-selectmenu-placeholder { display: none; }
+.ui-selectmenu .ui-header .ui-title { margin: 0.6em 46px 0.8em; }
+
+@media all and (min-width: 450px){     
+       .ui-field-contain label.ui-select { vertical-align: top;  display: inline-block;  width: 20%;  margin: 0 2% 0 0; }
+       .ui-field-contain .ui-select { width: 60%; display: inline-block; }
+}      
+
+/* when no placeholder is defined in a multiple select, the header height doesn't even extend past the close button.  this shim's content in there */
+.ui-selectmenu .ui-header h1:after { content: '.'; visibility: hidden; }
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.slider.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.slider.css
new file mode 100644 (file)
index 0000000..80035db
--- /dev/null
@@ -0,0 +1,35 @@
+label.ui-slider { font-size: 16px; line-height: 1.4;  font-weight: normal; margin: 0 0 .3em; display: block; }
+input.ui-slider-input,
+.ui-field-contain input.ui-slider-input { display: inline-block; width: 50px; }
+select.ui-slider-switch { display: none; }
+div.ui-slider { position: relative; display: inline-block; overflow: visible; height: 15px; padding: 0; margin: 0 2% 0 20px; top: 4px; width: 65%; }
+div.ui-slider-mini { height: 12px; margin-left: 10px; }
+div.ui-slider-bg { border: none; height: 100%; padding-right: 8px; }
+.ui-controlgroup a.ui-slider-handle, a.ui-slider-handle { position: absolute; z-index: 1;  top: 50%; width: 28px; height: 28px; margin-top: -15px; margin-left: -15px; outline: 0; }
+a.ui-slider-handle .ui-btn-inner { padding: 0; height: 100%; }
+div.ui-slider-mini a.ui-slider-handle { height: 14px; width: 14px; margin: -8px 0 0 -7px; }
+div.ui-slider-mini a.ui-slider-handle .ui-btn-inner { height: 30px; width: 30px; padding: 0; margin: -9px 0 0 -9px; }
+
+@media all and (min-width: 450px){
+       .ui-field-contain label.ui-slider { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0; }
+       .ui-field-contain div.ui-slider { width: 43%; }
+       .ui-field-contain div.ui-slider-switch { width: 5.5em; }
+}      
+
+div.ui-slider-switch { height: 32px; margin-left: 0; width: 5.8em; }
+a.ui-slider-handle-snapping { -webkit-transition: left 70ms linear; -moz-transition: left 70ms linear; }
+div.ui-slider-switch .ui-slider-handle {  margin-top: 1px;  }
+.ui-slider-inneroffset { margin: 0 16px; position: relative; z-index: 1; }
+
+div.ui-slider-switch.ui-slider-mini { width: 5em; height: 29px; }
+div.ui-slider-switch.ui-slider-mini .ui-slider-inneroffset { margin: 0 15px 0 14px; }
+div.ui-slider-switch.ui-slider-mini .ui-slider-handle { width: 25px; height: 25px; margin: 1px 0 0 -13px; }
+div.ui-slider-switch.ui-slider-mini a.ui-slider-handle .ui-btn-inner { height: 30px; width: 30px; padding: 0; margin: 0; }
+
+span.ui-slider-label { position: absolute; text-align: center; width: 100%; overflow: hidden; font-size: 16px; top: 0; line-height: 2; min-height: 100%; border-width: 0; white-space: nowrap; }
+.ui-slider-mini span.ui-slider-label { font-size: 14px; }
+
+span.ui-slider-label-a { z-index: 1; left: 0; text-indent: -1.5em; }
+span.ui-slider-label-b { z-index: 0; right: 0; text-indent: 1.5em;}
+
+.ui-slider-inline { width: 120px; display: inline-block; }
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.textinput.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.forms.textinput.css
new file mode 100644 (file)
index 0000000..3452bb4
--- /dev/null
@@ -0,0 +1,28 @@
+label.ui-input-text { font-size: 16px; line-height: 1.4; display: block; font-weight: normal; margin: 0 0 .3em; }
+input.ui-input-text, textarea.ui-input-text { background-image: none; padding: .4em; line-height: 1.4; font-size: 16px; display: block; width: 97%; outline: 0; }
+.ui-header input.ui-input-text,
+.ui-footer input.ui-input-text { margin-left: 1.25%; padding: .4em 1%; width: 95.5% } /* Note that padding left/right on text inputs is factored into how the element is displayed in Firefox, but does not actually pad the text inside it. */
+ input.ui-input-text { -webkit-appearance: none; }
+textarea.ui-input-text { height: 50px; -webkit-transition: height 200ms linear; -moz-transition: height 200ms linear; -o-transition: height 200ms linear; transition: height 200ms linear; }
+.ui-input-search { padding: 0 30px; background-image: none; position: relative; }
+.ui-icon-searchfield:after { position: absolute; left: 7px; top: 50%; margin-top: -9px; content: ""; width: 18px; height: 18px; opacity: .5; }
+.ui-input-search input.ui-input-text { border: none; width: 98%; padding: .4em 0; margin: 0; display: block; background: transparent none; outline: 0 !important; }
+.ui-input-search .ui-input-clear { position: absolute; right: 0; top: 50%; margin-top: -13px; }
+.ui-mini .ui-input-clear { right: -3px; }
+
+.ui-input-search .ui-input-clear-hidden { display: none; }
+input.ui-mini, .ui-mini input, textarea.ui-mini { font-size: 14px; }
+textarea.ui-mini { height: 45px; }
+
+/* orientation adjustments - incomplete!*/
+@media all and (min-width: 450px){
+       .ui-field-contain label.ui-input-text  { vertical-align: top; display: inline-block;  width: 20%;  margin: 0 2% 0 0 }
+       .ui-field-contain input.ui-input-text, 
+       .ui-field-contain textarea.ui-input-text, 
+       .ui-field-contain .ui-input-search { width: 60%; display: inline-block; } 
+       .ui-field-contain .ui-input-search { width: 50%; }
+       .ui-hide-label input.ui-input-text, 
+       .ui-hide-label textarea.ui-input-text, 
+       .ui-hide-label .ui-input-search { padding: .4em; width: 97%; } 
+       .ui-input-search input.ui-input-text { width: 98%; /*echos rule from above*/ }
+}
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.grid.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.grid.css
new file mode 100644 (file)
index 0000000..39a3850
--- /dev/null
@@ -0,0 +1,22 @@
+/* content configurations. */
+.ui-grid-a, .ui-grid-b, .ui-grid-c, .ui-grid-d { overflow: hidden; }
+.ui-block-a, .ui-block-b, .ui-block-c, .ui-block-d, .ui-block-e { margin: 0; padding: 0; border: 0; float: left; min-height:1px;}
+
+/* grid solo: 100 - single item fallback */
+.ui-grid-solo .ui-block-a { width: 100%; float: none; }
+
+/* grid a: 50/50 */
+.ui-grid-a .ui-block-a, .ui-grid-a .ui-block-b { width: 50%; }
+.ui-grid-a .ui-block-a { clear: left; }
+
+/* grid b: 33/33/33 */
+.ui-grid-b .ui-block-a, .ui-grid-b .ui-block-b, .ui-grid-b .ui-block-c { width: 33.333%; }
+.ui-grid-b .ui-block-a { clear: left; }
+
+/* grid c: 25/25/25/25 */
+.ui-grid-c .ui-block-a, .ui-grid-c .ui-block-b, .ui-grid-c .ui-block-c, .ui-grid-c .ui-block-d { width: 25%; }
+.ui-grid-c .ui-block-a { clear: left; }
+
+/* grid d: 20/20/20/20/20 */
+.ui-grid-d .ui-block-a, .ui-grid-d .ui-block-b, .ui-grid-d .ui-block-c, .ui-grid-d .ui-block-d, .ui-grid-d .ui-block-e { width: 20%; }
+.ui-grid-d .ui-block-a { clear: left; }
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.listview.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.listview.css
new file mode 100644 (file)
index 0000000..8bbda67
--- /dev/null
@@ -0,0 +1,51 @@
+.ui-listview { margin: 0; counter-reset: listnumbering; }
+.ui-content .ui-listview { margin: -15px; }
+.ui-content .ui-listview-inset { margin: 1em 0;  }
+.ui-listview, .ui-li { list-style:none; padding:0; }
+.ui-li, .ui-li.ui-field-contain { display: block; margin:0; position: relative; overflow: visible; text-align: left; border-width: 0; border-top-width: 1px; }
+.ui-li .ui-btn-text a.ui-link-inherit { text-overflow: ellipsis; overflow: hidden; white-space: nowrap;  }
+.ui-li-divider, .ui-li-static { padding: .5em 15px; font-size: 14px; font-weight: bold;  }
+.ui-li-divider { counter-reset: listnumbering;  }
+ol.ui-listview .ui-link-inherit:before, ol.ui-listview .ui-li-static:before, .ui-li-dec { font-size: .8em; display: inline-block; padding-right: .3em; font-weight: normal;counter-increment: listnumbering; content: counter(listnumbering) ". "; }
+ol.ui-listview .ui-li-jsnumbering:before { content: "" !important; } /* to avoid chance of duplication */
+.ui-listview-inset .ui-li { border-right-width: 1px; border-left-width: 1px; }
+.ui-li:last-child, .ui-li.ui-field-contain:last-child { border-bottom-width: 1px; }
+.ui-li>.ui-btn-inner { display: block; position: relative; padding: 0; }
+.ui-li .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li { padding: .7em 15px .7em 15px; display: block; }
+.ui-li-has-thumb .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-thumb  { min-height: 60px; padding-left: 100px; }
+.ui-li-has-icon .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-icon {  min-height: 20px; padding-left: 40px; }
+.ui-li-has-count .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-count { padding-right: 45px; }
+.ui-li-has-arrow .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-arrow { padding-right: 30px; }
+.ui-li-has-arrow.ui-li-has-count .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-arrow.ui-li-has-count { padding-right: 75px; }
+.ui-li-has-count .ui-btn-text { padding-right: 15px; }
+.ui-li-heading { font-size: 16px; font-weight: bold; display: block; margin: .6em 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;  }
+.ui-li-desc {  font-size: 12px; font-weight: normal; display: block; margin: -.5em 0 .6em; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
+.ui-li-thumb, .ui-listview .ui-li-icon { position: absolute; left: 1px; top: 0; max-height: 80px; max-width: 80px; }
+.ui-listview .ui-li-icon { max-height: 40px; max-width: 40px; left: 10px; top: .9em; }
+.ui-li-thumb, .ui-listview .ui-li-icon, .ui-li-content { float: left; margin-right: 10px; }
+
+.ui-li-aside { float: right; width: 50%; text-align: right; margin: .3em 0; }
+@media all and (min-width: 480px){
+        .ui-li-aside { width: 45%; }
+}       
+.ui-li-divider { cursor: default; }
+.ui-li-has-alt .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-alt { padding-right: 95px; }
+.ui-li-has-count .ui-li-count { position: absolute; font-size: 11px; font-weight: bold; padding: .2em .5em; top: 50%; margin-top: -.9em; right: 48px; }
+.ui-li-divider .ui-li-count, .ui-li-static .ui-li-count { right: 10px; }
+.ui-li-has-alt .ui-li-count { right: 55px; }
+.ui-li-link-alt { position: absolute; width: 40px; height: 100%; border-width: 0; border-left-width: 1px; top: 0; right: 0; margin: 0; padding: 0; z-index: 2; }
+.ui-li-link-alt .ui-btn { overflow: hidden; position: absolute; right: 8px; top: 50%; margin: -11px 0 0 0; border-bottom-width: 1px; z-index: -1;}
+.ui-li-link-alt .ui-btn-inner { padding: 0; height: 100%; position: absolute; width: 100%; top: 0; left: 0;}
+.ui-li-link-alt .ui-btn .ui-icon { right: 50%; margin-right: -9px;  }
+
+.ui-listview * .ui-btn-inner > .ui-btn > .ui-btn-inner { border-top: 0px; }
+
+.ui-listview-filter { border-width: 0; overflow: hidden; margin: -15px -15px 15px -15px }
+.ui-listview-filter .ui-input-search { margin: 5px; width: auto; display: block; }
+
+.ui-listview-filter-inset { margin: -15px -5px -15px -5px; background: transparent; }
+.ui-li.ui-screen-hidden{display:none;}
+/* Odd iPad positioning issue. */
+@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
+    .ui-li .ui-btn-text { overflow:  visible; }
+}
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.navbar.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.navbar.css
new file mode 100644 (file)
index 0000000..7c9640b
--- /dev/null
@@ -0,0 +1,21 @@
+.ui-navbar { overflow: hidden;  }
+.ui-navbar ul, .ui-navbar-expanded ul { list-style:none; padding: 0; margin: 0; position: relative; display: block; border: 0;}
+.ui-navbar-collapsed ul { float: left; width: 75%; margin-right: -2px; }
+.ui-navbar-collapsed .ui-navbar-toggle { float: left; width: 25%; }
+.ui-navbar li.ui-navbar-truncate { position: absolute; left: -9999px; top: -9999px; }
+.ui-navbar li .ui-btn, .ui-navbar .ui-navbar-toggle .ui-btn { display: block; font-size: 12px; text-align: center; margin: 0; border-right-width: 0; max-width: 100%; }
+.ui-navbar li .ui-btn {  margin-right: -1px; }
+.ui-navbar li .ui-btn:last-child { margin-right: 0; }
+.ui-header .ui-navbar li .ui-btn, .ui-header .ui-navbar .ui-navbar-toggle .ui-btn,
+.ui-footer .ui-navbar li .ui-btn, .ui-footer .ui-navbar .ui-navbar-toggle .ui-btn { border-top-width: 0; border-bottom-width: 0; }
+.ui-navbar .ui-btn-inner { padding-left: 2px; padding-right: 2px; }
+.ui-navbar-noicons li .ui-btn .ui-btn-inner, .ui-navbar-noicons .ui-navbar-toggle .ui-btn-inner { padding-top: .8em; padding-bottom: .9em; }
+/*expanded page styles*/
+.ui-navbar-expanded .ui-btn { margin: 0; font-size: 14px; }
+.ui-navbar-expanded .ui-btn-inner { padding-left: 5px; padding-right: 5px;  }
+.ui-navbar-expanded .ui-btn-icon-top .ui-btn-inner { padding: 45px 5px 15px; text-align: center; }
+.ui-navbar-expanded .ui-btn-icon-top .ui-icon { top: 15px; }
+.ui-navbar-expanded .ui-btn-icon-bottom .ui-btn-inner { padding: 15px 5px 45px; text-align: center; }
+.ui-navbar-expanded .ui-btn-icon-bottom .ui-icon { bottom: 15px; }
+.ui-navbar-expanded li .ui-btn .ui-btn-inner { min-height: 2.5em; }
+.ui-navbar-expanded .ui-navbar-noicons .ui-btn .ui-btn-inner { padding-top: 1.8em; padding-bottom: 1.9em; }
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.structure.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.structure.css
new file mode 100644 (file)
index 0000000..131eb9d
--- /dev/null
@@ -0,0 +1,24 @@
+@import url( "jquery.mobile.core.css" );
+@import url( "jquery.mobile.transition.css" );
+@import url( "jquery.mobile.transition.fade.css" );
+@import url( "jquery.mobile.transition.pop.css" );
+@import url( "jquery.mobile.transition.slide.css" );
+@import url( "jquery.mobile.transition.slidefade.css" );
+@import url( "jquery.mobile.transition.slidedown.css" );
+@import url( "jquery.mobile.transition.slideup.css" );
+@import url( "jquery.mobile.transition.flip.css" );
+@import url( "jquery.mobile.transition.turn.css" );
+@import url( "jquery.mobile.transition.flow.css" );
+@import url( "jquery.mobile.grid.css" );
+@import url( "jquery.mobile.fixedToolbar.css" );
+@import url( "jquery.mobile.navbar.css" );
+@import url( "jquery.mobile.button.css" );
+@import url( "jquery.mobile.collapsible.css" );
+@import url( "jquery.mobile.controlgroup.css" );
+@import url( "jquery.mobile.dialog.css" );
+@import url( "jquery.mobile.forms.checkboxradio.css" );
+@import url( "jquery.mobile.forms.fieldcontain.css" );
+@import url( "jquery.mobile.forms.select.css" );
+@import url( "jquery.mobile.forms.textinput.css" );
+@import url( "jquery.mobile.listview.css" );
+@import url( "jquery.mobile.forms.slider.css" );
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.css
new file mode 100644 (file)
index 0000000..7bccb84
--- /dev/null
@@ -0,0 +1,21 @@
+/* Transitions originally inspired by those from jQtouch, nice work, folks */
+.ui-mobile-viewport-transitioning,
+.ui-mobile-viewport-transitioning .ui-page {
+       width: 100%;
+       height: 100%;
+       overflow: hidden;
+}
+
+.in {
+       -webkit-animation-timing-function: ease-out;
+       -webkit-animation-duration: 350ms;
+       -moz-animation-timing-function: ease-out;
+       -moz-animation-duration: 350ms;
+}
+
+.out {
+       -webkit-animation-timing-function: ease-in;
+       -webkit-animation-duration: 225ms;
+       -moz-animation-timing-function: ease-in;
+       -moz-animation-duration: 225;
+}
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.fade.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.fade.css
new file mode 100644 (file)
index 0000000..c039249
--- /dev/null
@@ -0,0 +1,35 @@
+@-webkit-keyframes fadein {
+    from { opacity: 0; }
+    to { opacity: 1; }
+}
+
+@-moz-keyframes fadein {
+    from { opacity: 0; }
+    to { opacity: 1; }
+}
+
+@-webkit-keyframes fadeout {
+    from { opacity: 1; }
+    to { opacity: 0; }
+}
+
+@-moz-keyframes fadeout {
+    from { opacity: 1; }
+    to { opacity: 0; }
+}
+
+.fade.out {
+       opacity: 0;
+       -webkit-animation-duration: 125ms;
+       -webkit-animation-name: fadeout;
+       -moz-animation-duration: 125ms;
+       -moz-animation-name: fadeout;
+}
+
+.fade.in {
+       opacity: 1;
+       -webkit-animation-duration: 225ms;
+       -webkit-animation-name: fadein;
+       -moz-animation-duration: 225ms;
+       -moz-animation-name: fadein;
+}
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.flip.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.flip.css
new file mode 100644 (file)
index 0000000..3c4a54f
--- /dev/null
@@ -0,0 +1,79 @@
+/* The properties in this rule are only necessary for the 'flip' transition.
+ * We need specify the perspective to create a projection matrix. This will add
+ * some depth as the element flips. The depth number represents the distance of
+ * the viewer from the z-plane. According to the CSS3 spec, 1000 is a moderate
+ * value.
+ */
+
+.viewport-flip {
+       -webkit-perspective: 1000;
+       -moz-perspective: 1000;
+       position: absolute;
+}
+.flip {
+       -webkit-backface-visibility:hidden;
+       -webkit-transform:translateX(0); /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when -webkit-visibility:hidden is used. */
+       -moz-backface-visibility:hidden;
+       -moz-transform:translateX(0);
+}
+
+.flip.out {
+       -webkit-transform: rotateY(-90deg) scale(.9);
+       -webkit-animation-name: flipouttoleft;
+       -webkit-animation-duration: 175ms;
+       -moz-transform: rotateY(-90deg) scale(.9);
+       -moz-animation-name: flipouttoleft;
+       -moz-animation-duration: 175ms;
+}
+
+.flip.in {
+       -webkit-animation-name: flipintoright;
+       -webkit-animation-duration: 225ms;
+       -moz-animation-name: flipintoright;
+       -moz-animation-duration: 225ms;
+}
+
+.flip.out.reverse {
+       -webkit-transform: rotateY(90deg) scale(.9);
+       -webkit-animation-name: flipouttoright;
+       -moz-transform: rotateY(90deg) scale(.9);
+       -moz-animation-name: flipouttoright;
+}
+
+.flip.in.reverse {
+       -webkit-animation-name: flipintoleft;
+       -moz-animation-name: flipintoleft;
+}
+
+@-webkit-keyframes flipouttoleft {
+    from { -webkit-transform: rotateY(0); }
+    to { -webkit-transform: rotateY(-90deg) scale(.9); }
+}
+@-moz-keyframes flipouttoleft {
+    from { -moz-transform: rotateY(0); }
+    to { -moz-transform: rotateY(-90deg) scale(.9); }
+}
+@-webkit-keyframes flipouttoright {
+    from { -webkit-transform: rotateY(0) ; }
+    to { -webkit-transform: rotateY(90deg) scale(.9); }
+}
+@-moz-keyframes flipouttoright {
+    from { -moz-transform: rotateY(0); }
+    to { -moz-transform: rotateY(90deg) scale(.9); }
+}
+@-webkit-keyframes flipintoleft {
+    from { -webkit-transform: rotateY(-90deg) scale(.9); }
+    to { -webkit-transform: rotateY(0); }
+}
+@-moz-keyframes flipintoleft {
+    from { -moz-transform: rotateY(-90deg) scale(.9); }
+    to { -moz-transform: rotateY(0); }
+}
+@-webkit-keyframes flipintoright {
+    from { -webkit-transform: rotateY(90deg) scale(.9); }
+    to { -webkit-transform: rotateY(0); }
+}
+@-moz-keyframes flipintoright {
+    from { -moz-transform: rotateY(90deg) scale(.9); }
+    to { -moz-transform: rotateY(0); }
+}
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.flow.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.flow.css
new file mode 100644 (file)
index 0000000..6339642
--- /dev/null
@@ -0,0 +1,89 @@
+/* flow transition */
+.flow {
+       -webkit-transform-origin: 50% 30%;
+       -moz-transform-origin: 50% 30%; 
+       -webkit-box-shadow: 0 0 20px rgba(0,0,0,.4);
+       -moz-box-shadow: 0 0 20px rgba(0,0,0,.4);
+}
+.ui-dialog.flow {
+       -webkit-transform-origin: none;
+       -moz-transform-origin: none;    
+       -webkit-box-shadow: none;
+       -moz-box-shadow: none;
+}
+.flow.out {
+       -webkit-transform: translateX(-100%) scale(.7);
+       -webkit-animation-name: flowouttoleft;
+       -webkit-animation-timing-function: ease;
+       -webkit-animation-duration: 350ms;
+       -moz-transform: translateX(-100%) scale(.7);
+       -moz-animation-name: flowouttoleft;
+       -moz-animation-timing-function: ease;
+       -moz-animation-duration: 350ms;
+}
+
+.flow.in {
+       -webkit-transform: translateX(0) scale(1);
+       -webkit-animation-name: flowinfromright;
+       -webkit-animation-timing-function: ease;
+       -webkit-animation-duration: 350ms;
+       -moz-transform: translateX(0) scale(1);
+       -moz-animation-name: flowinfromright;
+       -moz-animation-timing-function: ease;
+       -moz-animation-duration: 350ms;
+}
+
+.flow.out.reverse {
+       -webkit-transform: translateX(100%);
+       -webkit-animation-name: flowouttoright;
+       -moz-transform: translateX(100%);
+       -moz-animation-name: flowouttoright;
+}
+
+.flow.in.reverse {
+       -webkit-animation-name: flowinfromleft;
+       -moz-animation-name: flowinfromleft;
+}
+
+@-webkit-keyframes flowouttoleft {
+    0% { -webkit-transform: translateX(0) scale(1); }
+       60%, 70% { -webkit-transform: translateX(0) scale(.7); }
+    100% { -webkit-transform: translateX(-100%) scale(.7); }
+}
+@-moz-keyframes flowouttoleft {
+    0% { -moz-transform: translateX(0) scale(1); }
+       60%, 70% { -moz-transform: translateX(0) scale(.7); }
+    100% { -moz-transform:  translateX(-100%) scale(.7); }
+}
+
+@-webkit-keyframes flowouttoright {
+    0% { -webkit-transform: translateX(0) scale(1); }
+       60%, 70% { -webkit-transform: translateX(0) scale(.7); }
+    100% { -webkit-transform:  translateX(100%) scale(.7); }
+}
+@-moz-keyframes flowouttoright {
+    0% { -moz-transform: translateX(0) scale(1); }
+       60%, 70% { -moz-transform: translateX(0) scale(.7); }
+    100% { -moz-transform:  translateX(100%) scale(.7); }
+}
+
+@-webkit-keyframes flowinfromleft {
+    0% { -webkit-transform: translateX(-100%) scale(.7); }
+       30%, 40% { -webkit-transform: translateX(0) scale(.7); }
+    100% { -webkit-transform: translateX(0) scale(1); }
+}
+@-moz-keyframes flowinfromleft {
+    0% { -moz-transform: translateX(-100%) scale(.7); }
+       30%, 40% { -moz-transform: translateX(0) scale(.7); }
+    100% { -moz-transform: translateX(0) scale(1); }
+}
+@-webkit-keyframes flowinfromright {
+    0% { -webkit-transform: translateX(100%) scale(.7); }
+       30%, 40% { -webkit-transform: translateX(0) scale(.7); }
+    100% { -webkit-transform: translateX(0) scale(1); }
+}
+@-moz-keyframes flowinfromright {
+    0% { -moz-transform: translateX(100%) scale(.7); }
+       30%, 40% { -moz-transform: translateX(0) scale(.7); }
+    100% { -moz-transform: translateX(0) scale(1); }
+}
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.pop.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.pop.css
new file mode 100644 (file)
index 0000000..625689e
--- /dev/null
@@ -0,0 +1,78 @@
+.pop {
+       -webkit-transform-origin: 50% 50%;
+       -moz-transform-origin: 50% 50%;
+}
+
+.pop.in {
+       -webkit-transform: scale(1);
+       -moz-transform: scale(1);
+    opacity: 1;
+       -webkit-animation-name: popin;
+       -moz-animation-name: popin;
+       -webkit-animation-duration: 350ms;
+       -moz-animation-duration: 350ms;
+}
+
+.pop.out {
+       -webkit-animation-name: fadeout;
+       -moz-animation-name: fadeout;
+       opacity: 0;
+       -webkit-animation-duration: 100ms;
+       -moz-animation-duration: 100ms;
+}
+
+.pop.in.reverse {
+       -webkit-animation-name: fadein;
+       -moz-animation-name: fadein;
+}
+
+.pop.out.reverse {
+       -webkit-transform: scale(.8);
+       -moz-transform: scale(.8);
+       -webkit-animation-name: popout;
+       -moz-animation-name: popout;
+}
+
+@-webkit-keyframes popin {
+    from {
+        -webkit-transform: scale(.8);
+        opacity: 0;
+    }
+    to {
+        -webkit-transform: scale(1);
+        opacity: 1;
+    }
+}
+
+@-moz-keyframes popin {
+    from {
+        -moz-transform: scale(.8);
+        opacity: 0;
+    }
+    to {
+        -moz-transform: scale(1);
+        opacity: 1;
+    }
+}
+
+@-webkit-keyframes popout {
+    from {
+        -webkit-transform: scale(1);
+        opacity: 1;
+    }
+    to {
+        -webkit-transform: scale(.8);
+        opacity: 0;
+    }
+}
+
+@-moz-keyframes popout {
+    from {
+        -moz-transform: scale(1);
+        opacity: 1;
+    }
+    to {
+        -moz-transform: scale(.8);
+        opacity: 0;
+    }
+}
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slide.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slide.css
new file mode 100644 (file)
index 0000000..17c924a
--- /dev/null
@@ -0,0 +1,36 @@
+@import url("jquery.mobile.transition.slidein.keyframes.css");
+@import url("jquery.mobile.transition.slideout.keyframes.css");
+
+.slide.out, .slide.in {
+       -webkit-animation-timing-function: ease-out;
+       -webkit-animation-duration: 350ms;
+       -moz-animation-timing-function: ease-out;
+       -moz-animation-duration: 350ms;
+}
+.slide.out {
+       -webkit-transform: translateX(-100%);
+       -webkit-animation-name: slideouttoleft;
+       -moz-transform: translateX(-100%);
+       -moz-animation-name: slideouttoleft;
+}
+
+.slide.in {
+       -webkit-transform: translateX(0);
+       -webkit-animation-name: slideinfromright;
+       -moz-transform: translateX(0);
+       -moz-animation-name: slideinfromright;
+}
+
+.slide.out.reverse {
+       -webkit-transform: translateX(100%);
+       -webkit-animation-name: slideouttoright;
+       -moz-transform: translateX(100%);
+       -moz-animation-name: slideouttoright;
+}
+
+.slide.in.reverse {
+       -webkit-transform: translateX(0);
+       -webkit-animation-name: slideinfromleft;
+       -moz-transform: translateX(0);
+       -moz-animation-name: slideinfromleft;
+}
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slidedown.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slidedown.css
new file mode 100644 (file)
index 0000000..b7809d0
--- /dev/null
@@ -0,0 +1,50 @@
+/* slide down */
+.slidedown.out {
+       -webkit-animation-name: fadeout;
+       -moz-animation-name: fadeout;
+       -webkit-animation-duration: 100ms;
+       -moz-animation-duration: 100ms;
+}
+
+.slidedown.in {
+       -webkit-transform: translateY(0);
+       -webkit-animation-name: slideinfromtop;
+       -moz-transform: translateY(0);
+       -moz-animation-name: slideinfromtop;
+       -webkit-animation-duration: 250ms;
+       -moz-animation-duration: 250ms;
+}
+
+.slidedown.in.reverse {
+       -webkit-animation-name: fadein;
+       -moz-animation-name: fadein;
+       -webkit-animation-duration: 150ms;
+       -moz-animation-duration: 150ms;
+}
+
+.slidedown.out.reverse {
+       -webkit-transform: translateY(-100%);
+       -moz-transform: translateY(-100%);
+       -webkit-animation-name: slideouttotop;
+       -moz-animation-name: slideouttotop;
+       -webkit-animation-duration: 200ms;
+       -moz-animation-duration: 200ms;
+}
+
+@-webkit-keyframes slideinfromtop {
+    from { -webkit-transform: translateY(-100%); }
+    to { -webkit-transform: translateY(0); }
+}
+@-moz-keyframes slideinfromtop {
+    from { -moz-transform: translateY(-100%); }
+    to { -moz-transform: translateY(0); }
+}
+
+@-webkit-keyframes slideouttotop {
+    from { -webkit-transform: translateY(0); }
+    to { -webkit-transform: translateY(-100%); }
+}
+@-moz-keyframes slideouttotop {
+    from { -moz-transform: translateY(0); }
+    to { -moz-transform: translateY(-100%); }
+}
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slidefade.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slidefade.css
new file mode 100644 (file)
index 0000000..7ef5a67
--- /dev/null
@@ -0,0 +1,38 @@
+@import url("jquery.mobile.transition.fade.css");
+@import url("jquery.mobile.transition.slideout.keyframes.css");
+
+.slidefade.out {
+       -webkit-transform: translateX(-100%);
+       -webkit-animation-name: slideouttoleft;
+       -moz-transform: translateX(-100%);
+       -moz-animation-name: slideouttoleft;
+       -webkit-animation-duration: 225ms;
+       -moz-animation-duration: 225ms;
+}
+
+.slidefade.in {
+       -webkit-transform: translateX(0);
+       -webkit-animation-name: fadein;
+       -moz-transform: translateX(0);
+       -moz-animation-name: fadein;
+       -webkit-animation-duration: 200ms;
+       -moz-animation-duration: 200ms;
+}
+
+.slidefade.out.reverse {
+       -webkit-transform: translateX(100%);
+       -webkit-animation-name: slideouttoright;
+       -moz-transform: translateX(100%);
+       -moz-animation-name: slideouttoright;
+       -webkit-animation-duration: 200ms;
+       -moz-animation-duration: 200ms;
+}
+
+.slidefade.in.reverse {
+       -webkit-transform: translateX(0);
+       -webkit-animation-name: fadein;
+       -moz-transform: translateX(0);
+       -moz-animation-name: fadein;
+       -webkit-animation-duration: 200ms;
+       -moz-animation-duration: 200ms;
+}
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slidein.keyframes.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slidein.keyframes.css
new file mode 100644 (file)
index 0000000..76a9fcb
--- /dev/null
@@ -0,0 +1,18 @@
+/* keyframes for slidein from sides */
+@-webkit-keyframes slideinfromright {
+    from { -webkit-transform: translateX(100%); }
+    to { -webkit-transform: translateX(0); }
+}
+@-moz-keyframes slideinfromright {
+    from { -moz-transform: translateX(100%); }
+    to { -moz-transform: translateX(0); }
+}
+
+@-webkit-keyframes slideinfromleft {
+    from { -webkit-transform: translateX(-100%); }
+    to { -webkit-transform: translateX(0); }
+}
+@-moz-keyframes slideinfromleft {
+    from { -moz-transform: translateX(-100%); }
+    to { -moz-transform: translateX(0); }
+}
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slideout.keyframes.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slideout.keyframes.css
new file mode 100644 (file)
index 0000000..9bea170
--- /dev/null
@@ -0,0 +1,18 @@
+/* keyframes for slideout to sides */
+@-webkit-keyframes slideouttoleft {
+    from { -webkit-transform: translateX(0); }
+    to { -webkit-transform: translateX(-100%); }
+}
+@-moz-keyframes slideouttoleft {
+    from { -moz-transform: translateX(0); }
+    to { -moz-transform: translateX(-100%); }
+}
+
+@-webkit-keyframes slideouttoright {
+    from { -webkit-transform: translateX(0); }
+    to { -webkit-transform: translateX(100%); }
+}
+@-moz-keyframes slideouttoright {
+    from { -moz-transform: translateX(0); }
+    to { -moz-transform: translateX(100%); }
+}
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slideup.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.slideup.css
new file mode 100644 (file)
index 0000000..e607aad
--- /dev/null
@@ -0,0 +1,50 @@
+/* slide up */
+.slideup.out {
+       -webkit-animation-name: fadeout;
+       -moz-animation-name: fadeout;
+       -webkit-animation-duration: 100ms;
+       -moz-animation-duration: 100ms;
+}
+
+.slideup.in {
+       -webkit-transform: translateY(0);
+       -webkit-animation-name: slideinfrombottom;
+       -moz-transform: translateY(0);
+       -moz-animation-name: slideinfrombottom;
+       -webkit-animation-duration: 250ms;
+       -moz-animation-duration: 250ms;
+}
+
+.slideup.in.reverse {
+       -webkit-animation-name: fadein;
+       -moz-animation-name: fadein;
+       -webkit-animation-duration: 150ms;
+       -moz-animation-duration: 150ms;
+}
+
+.slideup.out.reverse {
+       -webkit-transform: translateY(100%);
+       -moz-transform: translateY(100%);
+       -webkit-animation-name: slideouttobottom;
+       -moz-animation-name: slideouttobottom;
+       -webkit-animation-duration: 200ms;
+       -moz-animation-duration: 200ms;
+}
+
+@-webkit-keyframes slideinfrombottom {
+    from { -webkit-transform: translateY(100%); }
+    to { -webkit-transform: translateY(0); }
+}
+@-moz-keyframes slideinfrombottom {
+    from { -moz-transform: translateY(100%); }
+    to { -moz-transform: translateY(0); }
+}
+
+@-webkit-keyframes slideouttobottom {
+    from { -webkit-transform: translateY(0); }
+    to { -webkit-transform: translateY(100%); }
+}
+@-moz-keyframes slideouttobottom {
+    from { -moz-transform: translateY(0); }
+    to { -moz-transform: translateY(100%); }
+}
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.turn.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/structure/jquery.mobile.transition.turn.css
new file mode 100644 (file)
index 0000000..086fc2b
--- /dev/null
@@ -0,0 +1,83 @@
+/* The properties in this rule are only necessary for the 'flip' transition.
+ * We need specify the perspective to create a projection matrix. This will add
+ * some depth as the element flips. The depth number represents the distance of
+ * the viewer from the z-plane. According to the CSS3 spec, 1000 is a moderate
+ * value.
+ */
+
+.viewport-turn {
+       -webkit-perspective: 1000;
+       -moz-perspective: 1000;
+       position: absolute;
+}
+.turn {
+       -webkit-backface-visibility:hidden;
+       -webkit-transform:translateX(0); /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when -webkit-visibility:hidden is used. */
+       -webkit-transform-origin: 0;
+       
+       -moz-backface-visibility:hidden;
+       -moz-transform:translateX(0); /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when -webkit-visibility:hidden is used. */
+       -moz-transform-origin: 0;
+}
+
+.turn.out {
+       -webkit-transform: rotateY(-90deg) scale(.9);
+       -webkit-animation-name: flipouttoleft;
+       -moz-transform: rotateY(-90deg) scale(.9);
+       -moz-animation-name: flipouttoleft;
+       -webkit-animation-duration: 125ms;
+       -moz-animation-duration: 125ms;
+}
+
+.turn.in {
+       -webkit-animation-name: flipintoright;
+       -moz-animation-name: flipintoright;
+       -webkit-animation-duration: 250ms;
+       -moz-animation-duration: 250ms;
+       
+}
+
+.turn.out.reverse {
+       -webkit-transform: rotateY(90deg) scale(.9);
+       -webkit-animation-name: flipouttoright;
+       -moz-transform: rotateY(90deg) scale(.9);
+       -moz-animation-name: flipouttoright;
+}
+
+.turn.in.reverse {
+       -webkit-animation-name: flipintoleft;
+       -moz-animation-name: flipintoleft;
+}
+
+@-webkit-keyframes flipouttoleft {
+    from { -webkit-transform: rotateY(0); }
+    to { -webkit-transform: rotateY(-90deg) scale(.9); }
+}
+@-moz-keyframes flipouttoleft {
+    from { -moz-transform: rotateY(0); }
+    to { -moz-transform: rotateY(-90deg) scale(.9); }
+}
+@-webkit-keyframes flipouttoright {
+    from { -webkit-transform: rotateY(0) ; }
+    to { -webkit-transform: rotateY(90deg) scale(.9); }
+}
+@-moz-keyframes flipouttoright {
+    from { -moz-transform: rotateY(0); }
+    to { -moz-transform: rotateY(90deg) scale(.9); }
+}
+@-webkit-keyframes flipintoleft {
+    from { -webkit-transform: rotateY(-90deg) scale(.9); }
+    to { -webkit-transform: rotateY(0); }
+}
+@-moz-keyframes flipintoleft {
+    from { -moz-transform: rotateY(-90deg) scale(.9); }
+    to { -moz-transform: rotateY(0); }
+}
+@-webkit-keyframes flipintoright {
+    from { -webkit-transform: rotateY(90deg) scale(.9); }
+    to { -webkit-transform: rotateY(0); }
+}
+@-moz-keyframes flipintoright {
+    from { -moz-transform: rotateY(90deg) scale(.9); }
+    to { -moz-transform: rotateY(0); }
+}
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/ajax-loader.gif b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/ajax-loader.gif
new file mode 100644 (file)
index 0000000..fd1a189
Binary files /dev/null and b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/ajax-loader.gif differ
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/ajax-loader.png b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/ajax-loader.png
new file mode 100644 (file)
index 0000000..13b208d
Binary files /dev/null and b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/ajax-loader.png differ
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-18-black.png b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-18-black.png
new file mode 100644 (file)
index 0000000..ce1b758
Binary files /dev/null and b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-18-black.png differ
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-18-white.png b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-18-white.png
new file mode 100644 (file)
index 0000000..1ab0127
Binary files /dev/null and b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-18-white.png differ
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-36-black.png b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-36-black.png
new file mode 100644 (file)
index 0000000..1a59d7c
Binary files /dev/null and b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-36-black.png differ
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-36-white.png b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-36-white.png
new file mode 100644 (file)
index 0000000..5647bdc
Binary files /dev/null and b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/images/icons-36-white.png differ
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/index.php b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/index.php
new file mode 100644 (file)
index 0000000..431474d
--- /dev/null
@@ -0,0 +1,7 @@
+<?php
+$type = 'text/css';
+$files = array(
+       '../../../LICENSE-INFO.txt',
+       'jquery.mobile.css'
+);
+$base = dirname(__FILE__);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/jquery.mobile.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/jquery.mobile.css
new file mode 100644 (file)
index 0000000..08df129
--- /dev/null
@@ -0,0 +1,2 @@
+@import url( "jquery.mobile.theme.css" );
+@import url( "../../structure/jquery.mobile.structure.css" );
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/jquery.mobile.theme.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/default/jquery.mobile.theme.css
new file mode 100644 (file)
index 0000000..98c73a2
--- /dev/null
@@ -0,0 +1,1158 @@
+/* Swatches */
+
+/* A
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-bar-a {
+       border: 1px solid               #333 /*{a-bar-border}*/;
+       background:                     #111111 /*{a-bar-background-color}*/;
+       color:                                  #ffffff /*{a-bar-color}*/;
+       font-weight: bold;
+       text-shadow: 0 /*{a-bar-shadow-x}*/ -1px /*{a-bar-shadow-y}*/ 1px /*{a-bar-shadow-radius}*/ #000000 /*{a-bar-shadow-color}*/;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #3c3c3c /*{a-bar-background-start}*/), to( #111 /*{a-bar-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #3c3c3c /*{a-bar-background-start}*/, #111 /*{a-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #3c3c3c /*{a-bar-background-start}*/, #111 /*{a-bar-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #3c3c3c /*{a-bar-background-start}*/, #111 /*{a-bar-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #3c3c3c /*{a-bar-background-start}*/, #111 /*{a-bar-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #3c3c3c /*{a-bar-background-start}*/, #111 /*{a-bar-background-end}*/);
+}
+.ui-bar-a, 
+.ui-bar-a input, 
+.ui-bar-a select, 
+.ui-bar-a textarea, 
+.ui-bar-a button {
+       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
+}
+.ui-bar-a .ui-link-inherit {
+       color: #fff /*{a-bar-color}*/;
+}
+
+.ui-bar-a .ui-link {
+       color: #7cc4e7 /*{a-bar-link-color}*/;
+       font-weight: bold;
+}
+
+.ui-bar-a .ui-link:hover {
+       color: #2489CE /*{a-bar-link-hover}*/;
+}
+
+.ui-bar-a .ui-link:active {
+       color: #2489CE /*{a-bar-link-active}*/;
+}
+
+.ui-bar-a .ui-link:visited {
+    color: #2489CE /*{a-bar-link-visited}*/;
+}
+.ui-body-a,
+.ui-overlay-a {
+       border: 1px solid               #444 /*{a-body-border}*/;
+       background:                     #222 /*{a-body-background-color}*/;
+       color:                                  #fff /*{a-body-color}*/;
+       text-shadow: 0 /*{a-body-shadow-x}*/ 1px /*{a-body-shadow-y}*/ 1px /*{a-body-shadow-radius}*/ #111 /*{a-body-shadow-color}*/;
+       font-weight: normal;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #444 /*{a-body-background-start}*/), to( #222 /*{a-body-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #444 /*{a-body-background-start}*/, #222 /*{a-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #444 /*{a-body-background-start}*/, #222 /*{a-body-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #444 /*{a-body-background-start}*/, #222 /*{a-body-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #444 /*{a-body-background-start}*/, #222 /*{a-body-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #444 /*{a-body-background-start}*/, #222 /*{a-body-background-end}*/);       
+}
+.ui-overlay-a {
+       background-image: none;
+       border-width: 0;
+}
+.ui-body-a,
+.ui-body-a input,
+.ui-body-a select,
+.ui-body-a textarea,
+.ui-body-a button {
+       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
+}
+.ui-body-a .ui-link-inherit {
+       color:  #fff /*{a-body-color}*/;
+}
+
+.ui-body-a .ui-link {
+       color: #2489CE /*{a-body-link-color}*/;
+       font-weight: bold;
+}
+
+.ui-body-a .ui-link:hover {
+       color: #2489CE /*{a-body-link-hover}*/;
+}
+
+.ui-body-a .ui-link:active {
+       color: #2489CE /*{a-body-link-active}*/;
+}
+
+.ui-body-a .ui-link:visited {
+    color: #2489CE /*{a-body-link-visited}*/;
+}
+
+.ui-btn-up-a {
+       border: 1px solid               #111 /*{a-bup-border}*/;
+       background:                     #333 /*{a-bup-background-color}*/;
+       font-weight: bold;
+       color:                                  #fff /*{a-bup-color}*/;
+       text-shadow: 0 /*{a-bup-shadow-x}*/ 1px /*{a-bup-shadow-y}*/ 1px /*{a-bup-shadow-radius}*/ #111 /*{a-bup-shadow-color}*/;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #444444 /*{a-bup-background-start}*/), to( #2d2d2d /*{a-bup-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #444444 /*{a-bup-background-start}*/, #2d2d2d /*{a-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #444444 /*{a-bup-background-start}*/, #2d2d2d /*{a-bup-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #444444 /*{a-bup-background-start}*/, #2d2d2d /*{a-bup-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #444444 /*{a-bup-background-start}*/, #2d2d2d /*{a-bup-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #444444 /*{a-bup-background-start}*/, #2d2d2d /*{a-bup-background-end}*/);
+}
+.ui-btn-up-a a.ui-link-inherit {
+       color:                                  #fff /*{a-bup-color}*/;
+}
+.ui-btn-hover-a {
+       border: 1px solid               #000 /*{a-bhover-border}*/;
+       background:                     #444444 /*{a-bhover-background-color}*/;
+       font-weight: bold;
+       color:                                  #fff /*{a-bhover-color}*/;
+       text-shadow: 0 /*{a-bhover-shadow-x}*/ 1px /*{a-bhover-shadow-y}*/ 1px /*{a-bhover-shadow-radius}*/ #111 /*{a-bhover-shadow-color}*/;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #555555 /*{a-bhover-background-start}*/), to( #383838 /*{a-bhover-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #555555 /*{a-bhover-background-start}*/, #383838 /*{a-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #555555 /*{a-bhover-background-start}*/, #383838 /*{a-bhover-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #555555 /*{a-bhover-background-start}*/, #383838 /*{a-bhover-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #555555 /*{a-bhover-background-start}*/, #383838 /*{a-bhover-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #555555 /*{a-bhover-background-start}*/, #383838 /*{a-bhover-background-end}*/);
+}
+.ui-btn-hover-a a.ui-link-inherit {
+       color:                                  #fff /*{a-bhover-color}*/;
+}
+.ui-btn-down-a {
+       border: 1px solid               #000 /*{a-bdown-border}*/;
+       background:                     #222 /*{a-bdown-background-color}*/;
+       font-weight: bold;
+       color:                                  #fff /*{a-bdown-color}*/;
+       text-shadow: 0 /*{a-bdown-shadow-x}*/ 1px /*{a-bdown-shadow-y}*/ 1px /*{a-bdown-shadow-radius}*/ #111 /*{a-bdown-shadow-color}*/;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #202020 /*{a-bdown-background-start}*/), to( #2c2c2c /*{a-bdown-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #202020 /*{a-bdown-background-start}*/, #2c2c2c /*{a-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #202020 /*{a-bdown-background-start}*/, #2c2c2c /*{a-bdown-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #202020 /*{a-bdown-background-start}*/, #2c2c2c /*{a-bdown-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #202020 /*{a-bdown-background-start}*/, #2c2c2c /*{a-bdown-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #202020 /*{a-bdown-background-start}*/, #2c2c2c /*{a-bdown-background-end}*/);
+}
+.ui-btn-down-a a.ui-link-inherit {
+       color:                                  #fff /*{a-bdown-color}*/;
+}
+.ui-btn-up-a,
+.ui-btn-hover-a,
+.ui-btn-down-a {
+       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
+       text-decoration: none;
+}
+
+
+/* B
+-----------------------------------------------------------------------------------------------------------*/
+.ui-bar-b {
+       border: 1px solid               #456f9a /*{b-bar-border}*/;
+       background:                     #5e87b0 /*{b-bar-background-color}*/;
+       color:                                  #fff /*{b-bar-color}*/;
+       font-weight: bold;
+       text-shadow: 0 /*{b-bar-shadow-x}*/ 1px /*{b-bar-shadow-y}*/ 1px /*{b-bar-shadow-radius}*/ #3e6790 /*{b-bar-shadow-color}*/;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #6facd5 /*{b-bar-background-start}*/), to( #497bae /*{b-bar-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #6facd5 /*{b-bar-background-start}*/, #497bae /*{b-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #6facd5 /*{b-bar-background-start}*/, #497bae /*{b-bar-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #6facd5 /*{b-bar-background-start}*/, #497bae /*{b-bar-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #6facd5 /*{b-bar-background-start}*/, #497bae /*{b-bar-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #6facd5 /*{b-bar-background-start}*/, #497bae /*{b-bar-background-end}*/);
+}
+.ui-bar-b,
+.ui-bar-b input,
+.ui-bar-b select,
+.ui-bar-b textarea,
+.ui-bar-b button {
+       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
+}
+.ui-bar-b .ui-link-inherit {
+       color:  #fff /*{b-bar-color}*/;
+}
+.ui-bar-b .ui-link {
+       color: #ddf0f8 /*{b-bar-link-color}*/;
+       font-weight: bold;
+}
+
+.ui-bar-b .ui-link:hover {
+       color: #ddf0f8 /*{b-bar-link-hover}*/;
+}
+
+.ui-bar-b .ui-link:active {
+       color: #ddf0f8 /*{b-bar-link-active}*/;
+}
+
+.ui-bar-b .ui-link:visited {
+    color: #ddf0f8 /*{b-bar-link-visited}*/;
+}
+.ui-body-b,
+.ui-overlay-b {
+       border: 1px solid               #999 /*{b-body-border}*/;
+       background:                     #f3f3f3 /*{b-body-background-color}*/;
+       color:                                  #222222 /*{b-body-color}*/;
+       text-shadow: 0 /*{b-body-shadow-x}*/ 1px /*{b-body-shadow-y}*/ 0 /*{b-body-shadow-radius}*/ #fff /*{b-body-shadow-color}*/;
+       font-weight: normal;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #ddd /*{b-body-background-start}*/), to( #ccc /*{b-body-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #ddd /*{b-body-background-start}*/, #ccc /*{b-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #ddd /*{b-body-background-start}*/, #ccc /*{b-body-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #ddd /*{b-body-background-start}*/, #ccc /*{b-body-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #ddd /*{b-body-background-start}*/, #ccc /*{b-body-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #ddd /*{b-body-background-start}*/, #ccc /*{b-body-background-end}*/);
+}
+.ui-overlay-b {
+       background-image: none;
+       border-width: 0;
+}
+.ui-body-b,
+.ui-body-b input,
+.ui-body-b select,
+.ui-body-b textarea,
+.ui-body-b button {
+       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
+}
+.ui-body-b .ui-link-inherit {
+       color:  #333333 /*{b-body-color}*/;
+}
+
+.ui-body-b .ui-link {
+       color: #2489CE /*{b-body-link-color}*/;
+       font-weight: bold;
+}
+
+.ui-body-b .ui-link:hover {
+       color: #2489CE /*{b-body-link-hover}*/;
+}
+
+.ui-body-b .ui-link:active {
+       color: #2489CE /*{b-body-link-active}*/;
+}
+
+.ui-body-b .ui-link:visited {
+    color: #2489CE /*{b-body-link-visited}*/;
+}
+
+.ui-btn-up-b {
+       border: 1px solid               #044062 /*{b-bup-border}*/;
+       background:                     #396b9e /*{b-bup-background-color}*/;
+       font-weight: bold;
+       color:                                  #fff /*{b-bup-color}*/;
+       text-shadow: 0 /*{b-bup-shadow-x}*/ 1px /*{b-bup-shadow-y}*/ 1px /*{b-bup-shadow-radius}*/ #194b7e /*{b-bup-shadow-color}*/;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #5f9cc5 /*{b-bup-background-start}*/), to( #396b9e /*{b-bup-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #5f9cc5 /*{b-bup-background-start}*/, #396b9e /*{b-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #5f9cc5 /*{b-bup-background-start}*/, #396b9e /*{b-bup-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #5f9cc5 /*{b-bup-background-start}*/, #396b9e /*{b-bup-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #5f9cc5 /*{b-bup-background-start}*/, #396b9e /*{b-bup-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #5f9cc5 /*{b-bup-background-start}*/, #396b9e /*{b-bup-background-end}*/);
+}
+.ui-btn-up-b a.ui-link-inherit {
+       color:                                  #fff /*{b-bup-color}*/;
+}
+.ui-btn-hover-b {
+       border: 1px solid               #00415e /*{b-bhover-border}*/;
+       background:                     #4b88b6 /*{b-bhover-background-color}*/;
+       font-weight: bold;
+       color:                                  #fff /*{b-bhover-color}*/;
+       text-shadow: 0 /*{b-bhover-shadow-x}*/ 1px /*{b-bhover-shadow-y}*/ 1px /*{b-bhover-shadow-radius}*/ #194b7e /*{b-bhover-shadow-color}*/;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #6facd5 /*{b-bhover-background-start}*/), to( #4272a4 /*{b-bhover-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #6facd5 /*{b-bhover-background-start}*/, #4272a4 /*{b-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #6facd5 /*{b-bhover-background-start}*/, #4272a4 /*{b-bhover-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #6facd5 /*{b-bhover-background-start}*/, #4272a4 /*{b-bhover-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #6facd5 /*{b-bhover-background-start}*/, #4272a4 /*{b-bhover-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #6facd5 /*{b-bhover-background-start}*/, #4272a4 /*{b-bhover-background-end}*/);
+}
+.ui-btn-hover-b a.ui-link-inherit {
+       color:                                  #fff /*{b-bhover-color}*/;
+}
+.ui-btn-down-b {
+       border: 1px solid               #225377 /*{b-bdown-border}*/;
+       background:                     #4e89c5 /*{b-bdown-background-color}*/;
+       font-weight: bold;
+       color:                                  #fff /*{b-bdown-color}*/;
+       text-shadow: 0 /*{b-bdown-shadow-x}*/ 1px /*{b-bdown-shadow-y}*/ 1px /*{b-bdown-shadow-radius}*/ #194b7e /*{b-bdown-shadow-color}*/;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #295b8e /*{b-bdown-background-start}*/), to( #3e79b5 /*{b-bdown-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #295b8e /*{b-bdown-background-start}*/, #3e79b5 /*{b-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #295b8e /*{b-bdown-background-start}*/, #3e79b5 /*{b-bdown-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #295b8e /*{b-bdown-background-start}*/, #3e79b5 /*{b-bdown-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #295b8e /*{b-bdown-background-start}*/, #3e79b5 /*{b-bdown-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #295b8e /*{b-bdown-background-start}*/, #3e79b5 /*{b-bdown-background-end}*/);
+}
+.ui-btn-down-b a.ui-link-inherit {
+       color:                                  #fff /*{b-bdown-color}*/;
+}
+.ui-btn-up-b,
+.ui-btn-hover-b,
+.ui-btn-down-b {
+       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
+       text-decoration: none;
+}
+
+
+/* C
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-bar-c {
+       border: 1px solid               #B3B3B3 /*{c-bar-border}*/;
+       background:                     #eeeeee /*{c-bar-background-color}*/;
+       color:                                  #3E3E3E /*{c-bar-color}*/;
+       font-weight: bold;
+       text-shadow: 0 /*{c-bar-shadow-x}*/ 1px /*{c-bar-shadow-y}*/ 1px /*{c-bar-shadow-radius}*/      #fff /*{c-bar-shadow-color}*/;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #f0f0f0 /*{c-bar-background-start}*/), to( #ddd /*{c-bar-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #f0f0f0 /*{c-bar-background-start}*/, #ddd /*{c-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #f0f0f0 /*{c-bar-background-start}*/, #ddd /*{c-bar-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #f0f0f0 /*{c-bar-background-start}*/, #ddd /*{c-bar-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #f0f0f0 /*{c-bar-background-start}*/, #ddd /*{c-bar-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #f0f0f0 /*{c-bar-background-start}*/, #ddd /*{c-bar-background-end}*/);
+}
+
+.ui-bar-c .ui-link-inherit {
+       color:  #3E3E3E /*{c-bar-color}*/;
+}
+.ui-bar-c .ui-link {
+       color: #7cc4e7 /*{c-bar-link-color}*/;
+       font-weight: bold;
+}
+
+.ui-bar-c .ui-link:hover {
+       color: #2489CE /*{c-bar-link-hover}*/;
+}
+
+.ui-bar-c .ui-link:active {
+       color: #2489CE /*{c-bar-link-active}*/;
+}
+
+.ui-bar-c .ui-link:visited {
+    color: #2489CE /*{c-bar-link-visited}*/;
+}
+
+.ui-bar-c,
+.ui-bar-c input,
+.ui-bar-c select,
+.ui-bar-c textarea,
+.ui-bar-c button {
+       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
+}
+.ui-body-c,
+.ui-overlay-c {
+       border: 1px solid               #aaa /*{c-body-border}*/;
+       color:                                  #333333 /*{c-body-color}*/;
+       text-shadow: 0 /*{c-body-shadow-x}*/ 1px /*{c-body-shadow-y}*/ 0 /*{c-body-shadow-radius}*/ #fff /*{c-body-shadow-color}*/;
+       background:                     #f9f9f9 /*{c-body-background-color}*/;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #f9f9f9 /*{c-body-background-start}*/), to( #eeeeee /*{c-body-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #f9f9f9 /*{c-body-background-start}*/, #eeeeee /*{c-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #f9f9f9 /*{c-body-background-start}*/, #eeeeee /*{c-body-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #f9f9f9 /*{c-body-background-start}*/, #eeeeee /*{c-body-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #f9f9f9 /*{c-body-background-start}*/, #eeeeee /*{c-body-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #f9f9f9 /*{c-body-background-start}*/, #eeeeee /*{c-body-background-end}*/);
+}
+.ui-overlay-c {
+       background-image: none;
+       border-width: 0;
+}
+.ui-body-c,
+.ui-body-c input,
+.ui-body-c select,
+.ui-body-c textarea,
+.ui-body-c button {
+       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
+}
+
+.ui-body-c .ui-link-inherit {
+       color:  #333333 /*{c-body-color}*/;
+}
+
+.ui-body-c .ui-link {
+       color: #2489CE /*{c-body-link-color}*/;
+       font-weight: bold;
+}
+
+.ui-body-c .ui-link:hover {
+       color: #2489CE /*{c-body-link-hover}*/;
+}
+
+.ui-body-c .ui-link:active {
+       color: #2489CE /*{c-body-link-active}*/;
+}
+
+.ui-body-c .ui-link:visited {
+    color: #2489CE /*{c-body-link-visited}*/;
+}
+
+.ui-btn-up-c {
+       border: 1px solid               #ccc /*{c-bup-border}*/;
+       background:                     #eee /*{c-bup-background-color}*/;
+       font-weight: bold;
+       color:                                  #222 /*{c-bup-color}*/;
+       text-shadow: 0 /*{c-bup-shadow-x}*/ 1px /*{c-bup-shadow-y}*/ 0 /*{c-bup-shadow-radius}*/ #ffffff /*{c-bup-shadow-color}*/;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #ffffff /*{c-bup-background-start}*/), to( #f1f1f1 /*{c-bup-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #ffffff /*{c-bup-background-start}*/, #f1f1f1 /*{c-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #ffffff /*{c-bup-background-start}*/, #f1f1f1 /*{c-bup-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #ffffff /*{c-bup-background-start}*/, #f1f1f1 /*{c-bup-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #ffffff /*{c-bup-background-start}*/, #f1f1f1 /*{c-bup-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #ffffff /*{c-bup-background-start}*/, #f1f1f1 /*{c-bup-background-end}*/);
+}
+.ui-btn-up-c a.ui-link-inherit {
+       color:                                  #2F3E46 /*{c-bup-color}*/;
+}
+
+.ui-btn-hover-c {
+       border: 1px solid               #bbb /*{c-bhover-border}*/;
+       background:                     #dfdfdf /*{c-bhover-background-color}*/;
+       font-weight: bold;
+       color:                                  #222 /*{c-bhover-color}*/;
+       text-shadow: 0 /*{c-bhover-shadow-x}*/ 1px /*{c-bhover-shadow-y}*/ 0 /*{c-bhover-shadow-radius}*/ #ffffff /*{c-bhover-shadow-color}*/;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #f6f6f6 /*{c-bhover-background-start}*/), to( #e0e0e0 /*{c-bhover-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #f9f9f9 /*{c-bhover-background-start}*/, #e0e0e0 /*{c-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #f6f6f6 /*{c-bhover-background-start}*/, #e0e0e0 /*{c-bhover-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #f6f6f6 /*{c-bhover-background-start}*/, #e0e0e0 /*{c-bhover-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #f6f6f6 /*{c-bhover-background-start}*/, #e0e0e0 /*{c-bhover-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #f6f6f6 /*{c-bhover-background-start}*/, #e0e0e0 /*{c-bhover-background-end}*/);
+}
+.ui-btn-hover-c a.ui-link-inherit {
+       color:                                  #2F3E46 /*{c-bhover-color}*/;
+}
+.ui-btn-down-c {
+       border: 1px solid               #bbb /*{c-bdown-border}*/;
+       background:                     #d6d6d6 /*{c-bdown-background-color}*/;
+       font-weight: bold;
+       color:                                  #222 /*{c-bdown-color}*/;
+       text-shadow: 0 /*{c-bdown-shadow-x}*/ 1px /*{c-bdown-shadow-y}*/ 0 /*{c-bdown-shadow-radius}*/ #ffffff /*{c-bdown-shadow-color}*/;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #d0d0d0 /*{c-bdown-background-start}*/), to( #dfdfdf /*{c-bdown-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #d0d0d0 /*{c-bdown-background-start}*/, #dfdfdf /*{c-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #d0d0d0 /*{c-bdown-background-start}*/, #dfdfdf /*{c-bdown-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #d0d0d0 /*{c-bdown-background-start}*/, #dfdfdf /*{c-bdown-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #d0d0d0 /*{c-bdown-background-start}*/, #dfdfdf /*{c-bdown-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #d0d0d0 /*{c-bdown-background-start}*/, #dfdfdf /*{c-bdown-background-end}*/);
+}
+.ui-btn-down-c a.ui-link-inherit {
+       color:                                  #2F3E46 /*{c-bdown-color}*/;
+}
+.ui-btn-up-c,
+.ui-btn-hover-c,
+.ui-btn-down-c {
+       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
+       text-decoration: none;
+}
+
+
+/* D
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-bar-d {
+       border: 1px solid               #bbb /*{d-bar-border}*/;
+       background:                     #bbb /*{d-bar-background-color}*/;
+       color:                                  #333 /*{d-bar-color}*/;
+       text-shadow: 0 /*{d-bar-shadow-x}*/ 1px /*{d-bar-shadow-y}*/ 0 /*{d-bar-shadow-radius}*/ #eee /*{d-bar-shadow-color}*/;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #ddd /*{d-bar-background-start}*/), to( #bbb /*{d-bar-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #ddd /*{d-bar-background-start}*/, #bbb /*{d-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #ddd /*{d-bar-background-start}*/, #bbb /*{d-bar-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #ddd /*{d-bar-background-start}*/, #bbb /*{d-bar-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #ddd /*{d-bar-background-start}*/, #bbb /*{d-bar-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #ddd /*{d-bar-background-start}*/, #bbb /*{d-bar-background-end}*/);
+}
+.ui-bar-d,
+.ui-bar-d input,
+.ui-bar-d select,
+.ui-bar-d textarea,
+.ui-bar-d button {
+       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
+}
+
+.ui-bar-d .ui-link-inherit {
+       color:  #333333 /*{d-bar-color}*/;
+}
+.ui-bar-d .ui-link {
+       color: #2489CE /*{d-bar-link-color}*/;
+       font-weight: bold;
+}
+
+.ui-bar-d .ui-link:hover {
+       color: #2489CE /*{d-bar-link-hover}*/;
+}
+
+.ui-bar-d .ui-link:active {
+       color: #2489CE /*{d-bar-link-active}*/;
+}
+
+.ui-bar-d .ui-link:visited {
+    color: #2489CE /*{d-bar-link-visited}*/;
+}
+
+.ui-body-d,
+.ui-overlay-d {
+       border: 1px solid               #bbb /*{d-body-border}*/;
+       color:                                  #333333 /*{d-body-color}*/;
+       text-shadow: 0 /*{d-body-shadow-x}*/ 1px /*{d-body-shadow-y}*/ 0 /*{d-body-shadow-radius}*/     #fff /*{d-body-shadow-color}*/;
+       background:                     #ffffff /*{d-body-background-color}*/;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #fff), to( #fff /*{d-body-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #fff /*{d-body-background-start}*/, #fff /*{d-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #fff /*{d-body-background-start}*/, #fff /*{d-body-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #fff /*{d-body-background-start}*/, #fff /*{d-body-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #fff /*{d-body-background-start}*/, #fff /*{d-body-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #fff /*{d-body-background-start}*/, #fff /*{d-body-background-end}*/);
+}
+.ui-overlay-d {
+       background-image: none;
+       border-width: 0;
+}
+.ui-body-d,
+.ui-body-d input,
+.ui-body-d select,
+.ui-body-d textarea,
+.ui-body-d button {
+       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
+}
+
+.ui-body-d .ui-link-inherit {
+       color:  #333333 /*{d-body-color}*/;
+}
+
+.ui-body-d .ui-link {
+       color: #2489CE /*{d-body-link-color}*/;
+       font-weight: bold;
+}
+
+.ui-body-d .ui-link:hover {
+       color: #2489CE /*{d-body-link-hover}*/;
+}
+
+.ui-body-d .ui-link:active {
+       color: #2489CE /*{d-body-link-active}*/;
+}
+
+.ui-body-d .ui-link:visited {
+    color: #2489CE /*{d-body-link-visited}*/;
+}
+
+.ui-btn-up-d {
+       border: 1px solid               #bbb /*{d-bup-border}*/;
+       background:                     #fff /*{d-bup-background-color}*/;
+       font-weight: bold;
+       color:                                  #333 /*{d-bup-color}*/;
+       text-shadow: 0 /*{d-bup-shadow-x}*/ 1px /*{d-bup-shadow-y}*/ 0 /*{d-bup-shadow-radius}*/ #fff /*{d-bup-shadow-color}*/;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #fafafa), to( #f6f6f6 /*{d-bup-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #fafafa /*{d-bup-background-start}*/, #f6f6f6 /*{d-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #fafafa /*{d-bup-background-start}*/, #f6f6f6 /*{d-bup-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #fafafa /*{d-bup-background-start}*/, #f6f6f6 /*{d-bup-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #fafafa /*{d-bup-background-start}*/, #f6f6f6 /*{d-bup-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #fafafa /*{d-bup-background-start}*/, #f6f6f6 /*{d-bup-background-end}*/);
+}
+.ui-btn-up-d a.ui-link-inherit {
+       color:                                  #333 /*{d-bup-color}*/;
+}
+.ui-btn-hover-d {
+       border: 1px solid               #aaa /*{d-bhover-border}*/;
+       background:                     #eeeeee /*{d-bhover-background-color}*/;
+       font-weight: bold;
+       color:                                  #333 /*{d-bhover-color}*/;
+       cursor: pointer;
+       text-shadow: 0 /*{d-bhover-shadow-x}*/ 1px /*{d-bhover-shadow-y}*/ 0 /*{d-bhover-shadow-radius}*/       #fff /*{d-bhover-shadow-color}*/;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #eee), to( #fff /*{d-bhover-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #eee /*{d-bhover-background-start}*/, #fff /*{d-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #eee /*{d-bhover-background-start}*/, #fff /*{d-bhover-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #eee /*{d-bhover-background-start}*/, #fff /*{d-bhover-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #eee /*{d-bhover-background-start}*/, #fff /*{d-bhover-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #eee /*{d-bhover-background-start}*/, #fff /*{d-bhover-background-end}*/);
+}
+.ui-btn-hover-d a.ui-link-inherit {
+       color:                                  #333 /*{d-bhover-color}*/;
+}
+.ui-btn-down-d {
+       border: 1px solid               #aaa /*{d-bdown-border}*/;
+       background:                     #eee /*{d-bdown-background-color}*/;
+       font-weight: bold;
+       color:                                  #333 /*{d-bdown-color}*/;
+       text-shadow: 0 /*{d-bdown-shadow-x}*/ 1px /*{d-bdown-shadow-y}*/ 0 /*{d-bdown-shadow-radius}*/  #ffffff /*{d-bdown-shadow-color}*/;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #e5e5e5 /*{d-bdown-background-start}*/), to( #f2f2f2 /*{d-bdown-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #e5e5e5 /*{d-bdown-background-start}*/, #f2f2f2 /*{d-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #e5e5e5 /*{d-bdown-background-start}*/, #f2f2f2 /*{d-bdown-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #e5e5e5 /*{d-bdown-background-start}*/, #f2f2f2 /*{d-bdown-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #e5e5e5 /*{d-bdown-background-start}*/, #f2f2f2 /*{d-bdown-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #e5e5e5 /*{d-bdown-background-start}*/, #f2f2f2 /*{d-bdown-background-end}*/);
+}
+.ui-btn-down-d a.ui-link-inherit {
+       color:                                  #333 /*{d-bdown-color}*/;
+}
+.ui-btn-up-d,
+.ui-btn-hover-d,
+.ui-btn-down-d {
+       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
+       text-decoration: none;
+}
+
+
+/* E
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-bar-e {
+       border: 1px solid               #F7C942 /*{e-bar-border}*/;
+       background:                     #fadb4e /*{e-bar-background-color}*/;
+       color:                                  #333 /*{e-bar-color}*/;
+       text-shadow: 0 /*{e-bar-shadow-x}*/ 1px /*{e-bar-shadow-y}*/ 0 /*{e-bar-shadow-radius}*/        #fff /*{e-bar-shadow-color}*/;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #fceda7 /*{e-bar-background-start}*/), to( #fbef7e /*{e-bar-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #fceda7 /*{e-bar-background-start}*/, #fbef7e /*{e-bar-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #fceda7 /*{e-bar-background-start}*/, #fbef7e /*{e-bar-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #fceda7 /*{e-bar-background-start}*/, #fbef7e /*{e-bar-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #fceda7 /*{e-bar-background-start}*/, #fbef7e /*{e-bar-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #fceda7 /*{e-bar-background-start}*/, #fbef7e /*{e-bar-background-end}*/);
+}
+.ui-bar-e,
+.ui-bar-e input,
+.ui-bar-e select,
+.ui-bar-e textarea,
+.ui-bar-e button {
+       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
+}
+.ui-bar-e .ui-link-inherit {
+       color:  #333333 /*{e-bar-color}*/;
+}
+.ui-bar-e .ui-link {
+       color: #2489CE /*{e-bar-link-color}*/;
+       font-weight: bold;
+}
+
+.ui-bar-e .ui-link:hover {
+       color: #2489CE /*{e-bar-link-hover}*/;
+}
+
+.ui-bar-e .ui-link:active {
+       color: #2489CE /*{e-bar-link-active}*/;
+}
+
+.ui-bar-e .ui-link:visited {
+    color: #2489CE /*{e-bar-link-visited}*/;
+}
+
+.ui-body-e,
+.ui-overlay-e {
+       border: 1px solid               #F7C942 /*{e-body-border}*/;
+       color:                                  #222222 /*{e-body-color}*/;
+       text-shadow: 0 /*{e-body-shadow-x}*/ 1px /*{e-body-shadow-y}*/ 0 /*{e-body-shadow-radius}*/     #fff /*{e-body-shadow-color}*/;
+       background:                     #fff9df /*{e-body-background-color}*/;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #fffadf /*{e-body-background-start}*/), to( #fff3a5 /*{e-body-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #fffadf /*{e-body-background-start}*/, #fff3a5 /*{e-body-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #fffadf /*{e-body-background-start}*/, #fff3a5 /*{e-body-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #fffadf /*{e-body-background-start}*/, #fff3a5 /*{e-body-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #fffadf /*{e-body-background-start}*/, #fff3a5 /*{e-body-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #fffadf /*{e-body-background-start}*/, #fff3a5 /*{e-body-background-end}*/);
+}
+.ui-overlay-e {
+       background-image: none;
+       border-width: 0;
+}
+.ui-body-e,
+.ui-body-e input,
+.ui-body-e select,
+.ui-body-e textarea,
+.ui-body-e button {
+       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
+}
+.ui-body-e .ui-link-inherit {
+       color:  #333333 /*{e-body-color}*/;
+}
+
+.ui-body-e .ui-link {
+       color: #2489CE /*{e-body-link-color}*/;
+       font-weight: bold;
+}
+
+.ui-body-e .ui-link:hover {
+       color: #2489CE /*{e-body-link-hover}*/;
+}
+
+.ui-body-e .ui-link:active {
+       color: #2489CE /*{e-body-link-active}*/;
+}
+
+.ui-body-e .ui-link:visited {
+    color: #2489CE /*{e-body-link-visited}*/;
+}
+
+.ui-btn-up-e {
+       border: 1px solid               #F4C63f /*{e-bup-border}*/;
+       background:                     #fadb4e /*{e-bup-background-color}*/;
+       font-weight: bold;
+       color:                                  #222 /*{e-bup-color}*/;
+       text-shadow: 0 /*{e-bup-shadow-x}*/ 1px /*{e-bup-shadow-y}*/ 0 /*{e-bup-shadow-radius}*/        #fff /*{e-bup-shadow-color}*/;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #ffefaa /*{e-bup-background-start}*/), to( #ffe155 /*{e-bup-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #ffefaa /*{e-bup-background-start}*/, #ffe155 /*{e-bup-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #ffefaa /*{e-bup-background-start}*/, #ffe155 /*{e-bup-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #ffefaa /*{e-bup-background-start}*/, #ffe155 /*{e-bup-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #ffefaa /*{e-bup-background-start}*/, #ffe155 /*{e-bup-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #ffefaa /*{e-bup-background-start}*/, #ffe155 /*{e-bup-background-end}*/);
+}
+.ui-btn-up-e a.ui-link-inherit {
+       color:                                  #222 /*{e-bup-color}*/;
+}
+.ui-btn-hover-e {
+       border: 1px solid               #F2C43d /*{e-bhover-border}*/;
+       background:                     #fbe26f /*{e-bhover-background-color}*/;
+       font-weight: bold;
+       color:                                  #111 /*{e-bhover-color}*/;
+       text-shadow: 0 /*{e-bhover-shadow-x}*/ 1px /*{e-bhover-shadow-y}*/ 0 /*{e-bhover-shadow-radius}*/       #fff /*{e-bhover-shadow-color}*/;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #fff5ba /*{e-bhover-background-start}*/), to( #fbdd52 /*{e-bhover-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #fff5ba /*{e-bhover-background-start}*/, #fbdd52 /*{e-bhover-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #fff5ba /*{e-bhover-background-start}*/, #fbdd52 /*{e-bhover-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #fff5ba /*{e-bhover-background-start}*/, #fbdd52 /*{e-bhover-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #fff5ba /*{e-bhover-background-start}*/, #fbdd52 /*{e-bhover-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #fff5ba /*{e-bhover-background-start}*/, #fbdd52 /*{e-bhover-background-end}*/);
+}
+
+.ui-btn-hover-e a.ui-link-inherit {
+       color:                                  #333 /*{e-bhover-color}*/;
+}
+.ui-btn-down-e {
+       border: 1px solid               #F2C43d /*{e-bdown-border}*/;
+       background:                     #fceda7 /*{e-bdown-background-color}*/;
+       font-weight: bold;
+       color:                                  #111 /*{e-bdown-color}*/;
+       text-shadow: 0 /*{e-bdown-shadow-x}*/ 1px /*{e-bdown-shadow-y}*/ 0 /*{e-bdown-shadow-radius}*/  #ffffff /*{e-bdown-shadow-color}*/;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #f8d94c /*{e-bdown-background-start}*/), to( #fadb4e /*{e-bdown-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #f8d94c /*{e-bdown-background-start}*/, #fadb4e /*{e-bdown-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #f8d94c /*{e-bdown-background-start}*/, #fadb4e /*{e-bdown-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #f8d94c /*{e-bdown-background-start}*/, #fadb4e /*{e-bdown-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #f8d94c /*{e-bdown-background-start}*/, #fadb4e /*{e-bdown-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #f8d94c /*{e-bdown-background-start}*/, #fadb4e /*{e-bdown-background-end}*/);
+}
+.ui-btn-down-e a.ui-link-inherit {
+       color:                                  #333 /*{e-bdown-color}*/;
+}
+.ui-btn-up-e,
+.ui-btn-hover-e,
+.ui-btn-down-e {
+       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
+       text-decoration: none;
+}
+
+/* Structure */
+
+/* links within "buttons" 
+-----------------------------------------------------------------------------------------------------------*/
+
+a.ui-link-inherit {
+       text-decoration: none !important;
+}
+
+
+/* Active class used as the "on" state across all themes
+-----------------------------------------------------------------------------------------------------------*/
+.ui-btn-active {
+       border: 1px solid               #2373a5 /*{global-active-border}*/;
+       background:                     #5393c5 /*{global-active-background-color}*/;
+       font-weight: bold;
+       color:                                  #fff /*{global-active-color}*/;
+       cursor: pointer;
+       text-shadow: 0 /*{global-active-shadow-x}*/ 1px /*{global-active-shadow-y}*/ 1px /*{global-active-shadow-radius}*/ #3373a5 /*{global-active-shadow-color}*/;
+       text-decoration: none;
+       background-image: -webkit-gradient(linear, left top, left bottom, from( #5393c5 /*{global-active-background-start}*/), to( #6facd5 /*{global-active-background-end}*/)); /* Saf4+, Chrome */
+       background-image: -webkit-linear-gradient( #5393c5 /*{global-active-background-start}*/, #6facd5 /*{global-active-background-end}*/); /* Chrome 10+, Saf5.1+ */
+       background-image:    -moz-linear-gradient( #5393c5 /*{global-active-background-start}*/, #6facd5 /*{global-active-background-end}*/); /* FF3.6 */
+       background-image:     -ms-linear-gradient( #5393c5 /*{global-active-background-start}*/, #6facd5 /*{global-active-background-end}*/); /* IE10 */
+       background-image:      -o-linear-gradient( #5393c5 /*{global-active-background-start}*/, #6facd5 /*{global-active-background-end}*/); /* Opera 11.10+ */
+       background-image:         linear-gradient( #5393c5 /*{global-active-background-start}*/, #6facd5 /*{global-active-background-end}*/);
+       font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
+}
+.ui-btn-active a.ui-link-inherit {
+       color:                                  #fff /*{global-active-color}*/;
+}
+
+
+/* button inner top highlight
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-btn-inner {
+       border-top: 1px solid   #fff;
+       border-color:                   rgba(255,255,255,.3);
+}
+
+
+/* corner rounding classes
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-corner-tl {
+       -moz-border-radius-topleft:             .6em /*{global-radii-blocks}*/;
+       -webkit-border-top-left-radius:         .6em /*{global-radii-blocks}*/;
+       border-top-left-radius:                         .6em /*{global-radii-blocks}*/;
+}
+.ui-corner-tr {
+       -moz-border-radius-topright:            .6em /*{global-radii-blocks}*/;
+       -webkit-border-top-right-radius:        .6em /*{global-radii-blocks}*/;
+       border-top-right-radius:                        .6em /*{global-radii-blocks}*/;
+}
+.ui-corner-bl {
+       -moz-border-radius-bottomleft:          .6em /*{global-radii-blocks}*/;
+       -webkit-border-bottom-left-radius:      .6em /*{global-radii-blocks}*/;
+       border-bottom-left-radius:                      .6em /*{global-radii-blocks}*/;
+}
+.ui-corner-br {
+       -moz-border-radius-bottomright:         .6em /*{global-radii-blocks}*/;
+       -webkit-border-bottom-right-radius: .6em /*{global-radii-blocks}*/;
+       border-bottom-right-radius:             .6em /*{global-radii-blocks}*/;
+}
+.ui-corner-top {
+       -moz-border-radius-topleft:             .6em /*{global-radii-blocks}*/;
+       -webkit-border-top-left-radius:         .6em /*{global-radii-blocks}*/;
+       border-top-left-radius:                         .6em /*{global-radii-blocks}*/;
+       -moz-border-radius-topright:            .6em /*{global-radii-blocks}*/;
+       -webkit-border-top-right-radius:        .6em /*{global-radii-blocks}*/;
+       border-top-right-radius:                        .6em /*{global-radii-blocks}*/;
+}
+.ui-corner-bottom {
+       -moz-border-radius-bottomleft:          .6em /*{global-radii-blocks}*/;
+       -webkit-border-bottom-left-radius:      .6em /*{global-radii-blocks}*/;
+       border-bottom-left-radius:                      .6em /*{global-radii-blocks}*/;
+       -moz-border-radius-bottomright:         .6em /*{global-radii-blocks}*/;
+       -webkit-border-bottom-right-radius: .6em /*{global-radii-blocks}*/;
+       border-bottom-right-radius:             .6em /*{global-radii-blocks}*/;
+       }
+.ui-corner-right {
+       -moz-border-radius-topright:            .6em /*{global-radii-blocks}*/;
+       -webkit-border-top-right-radius:        .6em /*{global-radii-blocks}*/;
+       border-top-right-radius:                        .6em /*{global-radii-blocks}*/;
+       -moz-border-radius-bottomright:         .6em /*{global-radii-blocks}*/;
+       -webkit-border-bottom-right-radius: .6em /*{global-radii-blocks}*/;
+       border-bottom-right-radius:             .6em /*{global-radii-blocks}*/;
+}
+.ui-corner-left {
+       -moz-border-radius-topleft:             .6em /*{global-radii-blocks}*/;
+       -webkit-border-top-left-radius:         .6em /*{global-radii-blocks}*/;
+       border-top-left-radius:                         .6em /*{global-radii-blocks}*/;
+       -moz-border-radius-bottomleft:          .6em /*{global-radii-blocks}*/;
+       -webkit-border-bottom-left-radius:      .6em /*{global-radii-blocks}*/;
+       border-bottom-left-radius:                      .6em /*{global-radii-blocks}*/;
+}
+.ui-corner-all {
+       -moz-border-radius:                             .6em /*{global-radii-blocks}*/;
+       -webkit-border-radius:                          .6em /*{global-radii-blocks}*/;
+       border-radius:                                          .6em /*{global-radii-blocks}*/;
+}
+.ui-corner-none {
+       -moz-border-radius:                                0;
+       -webkit-border-radius:                             0;
+       border-radius:                                             0;
+}
+
+/* Form field separator
+-----------------------------------------------------------------------------------------------------------*/
+.ui-br {
+       border-bottom: rgb(130,130,130);
+       border-bottom: rgba(130,130,130,.3);
+       border-bottom-width: 1px;
+       border-bottom-style: solid;
+}
+
+/* Interaction cues
+-----------------------------------------------------------------------------------------------------------*/
+.ui-disabled {
+       opacity:                                                        .3;
+}
+.ui-disabled,
+.ui-disabled a {
+       cursor: default !important;
+       pointer-events: none;
+}
+.ui-disabled .ui-btn-text {
+       -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=30)";
+       filter: alpha(opacity=30);
+       zoom: 1;
+}
+
+/* Icons
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-icon,
+.ui-icon-searchfield:after {
+       background:                                             #666 /*{global-icon-color}*/;
+       background:                                             rgba(0,0,0,.4) /*{global-icon-disc}*/;
+       background-image: url(images/icons-18-white.png) /*{global-icon-set}*/;
+       background-repeat: no-repeat;
+       -moz-border-radius:                             9px;
+       -webkit-border-radius:                          9px;
+       border-radius:                                          9px;
+}
+
+
+/* Alt icon color
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-icon-alt {
+       background:                                             #fff;
+       background:                                             rgba(255,255,255,.3);
+       background-image: url(images/icons-18-black.png);
+       background-repeat: no-repeat;
+}
+
+/* HD/"retina" sprite
+-----------------------------------------------------------------------------------------------------------*/
+
+@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
+       only screen and (min--moz-device-pixel-ratio: 1.5),
+       only screen and (min-resolution: 240dpi) {
+       
+       .ui-icon-plus, .ui-icon-minus, .ui-icon-delete, .ui-icon-arrow-r,
+       .ui-icon-arrow-l, .ui-icon-arrow-u, .ui-icon-arrow-d, .ui-icon-check,
+       .ui-icon-gear, .ui-icon-refresh, .ui-icon-forward, .ui-icon-back,
+       .ui-icon-grid, .ui-icon-star, .ui-icon-alert, .ui-icon-info, .ui-icon-home, .ui-icon-search, .ui-icon-searchfield:after, 
+       .ui-icon-checkbox-off, .ui-icon-checkbox-on, .ui-icon-radio-off, .ui-icon-radio-on {
+               background-image: url(images/icons-36-white.png);
+               -moz-background-size: 776px 18px;
+               -o-background-size: 776px 18px;
+               -webkit-background-size: 776px 18px;
+               background-size: 776px 18px;
+       }
+       .ui-icon-alt {
+               background-image: url(images/icons-36-black.png);
+       }
+}
+
+/* plus minus */
+.ui-icon-plus {
+       background-position:    -0 50%;
+}
+.ui-icon-minus {
+       background-position:    -36px 50%;
+}
+
+/* delete/close */
+.ui-icon-delete {
+       background-position:    -72px 50%;
+}
+
+/* arrows */
+.ui-icon-arrow-r {
+       background-position:    -108px 50%;
+}
+.ui-icon-arrow-l {
+       background-position:    -144px 50%;
+}
+.ui-icon-arrow-u {
+       background-position:    -180px 50%;
+}
+.ui-icon-arrow-d {
+       background-position:    -216px 50%;
+}
+
+/* misc */
+.ui-icon-check {
+       background-position:    -252px 50%;
+}
+.ui-icon-gear {
+       background-position:    -288px 50%;
+}
+.ui-icon-refresh {
+       background-position:    -324px 50%;
+}
+.ui-icon-forward {
+       background-position:    -360px 50%;
+}
+.ui-icon-back {
+       background-position:    -396px 50%;
+}
+.ui-icon-grid {
+       background-position:    -432px 50%;
+}
+.ui-icon-star {
+       background-position:    -468px 50%;
+}
+.ui-icon-alert {
+       background-position:    -504px 50%;
+}
+.ui-icon-info {
+       background-position:    -540px 50%;
+}
+.ui-icon-home {
+       background-position:    -576px 50%;
+}
+.ui-icon-search,
+.ui-icon-searchfield:after {
+       background-position:    -612px 50%;
+}
+.ui-icon-checkbox-off {
+       background-position:    -684px 50%;
+}
+.ui-icon-checkbox-on {
+       background-position:    -648px 50%;
+}
+.ui-icon-radio-off {
+       background-position:    -756px 50%;
+}
+.ui-icon-radio-on {
+       background-position:    -720px 50%;
+}
+
+
+/* checks,radios */
+.ui-checkbox .ui-icon {
+       -moz-border-radius: 3px;
+       -webkit-border-radius: 3px;
+       border-radius: 3px;
+}
+.ui-icon-checkbox-off,
+.ui-icon-radio-off {
+       background-color: transparent;  
+}
+.ui-checkbox-on .ui-icon,
+.ui-radio-on .ui-icon {
+       background-color: #4596ce /*{global-active-background-color}*/; /* NOTE: this hex should match the active state color. It's repeated here for cascade */
+}
+
+/* loading icon */
+.ui-icon-loading {
+       background: url(images/ajax-loader.gif);
+       background-size: 46px 46px;
+}
+
+
+/* Button corner classes
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-btn-corner-tl {
+       -moz-border-radius-topleft:             1em /*{global-radii-buttons}*/;
+       -webkit-border-top-left-radius:         1em /*{global-radii-buttons}*/;
+       border-top-left-radius:                         1em /*{global-radii-buttons}*/;
+}
+.ui-btn-corner-tr {
+       -moz-border-radius-topright:            1em /*{global-radii-buttons}*/;
+       -webkit-border-top-right-radius:        1em /*{global-radii-buttons}*/;
+       border-top-right-radius:                        1em /*{global-radii-buttons}*/;
+}
+.ui-btn-corner-bl {
+       -moz-border-radius-bottomleft:          1em /*{global-radii-buttons}*/;
+       -webkit-border-bottom-left-radius:      1em /*{global-radii-buttons}*/;
+       border-bottom-left-radius:                      1em /*{global-radii-buttons}*/;
+}
+.ui-btn-corner-br {
+       -moz-border-radius-bottomright:         1em /*{global-radii-buttons}*/;
+       -webkit-border-bottom-right-radius: 1em /*{global-radii-buttons}*/;
+       border-bottom-right-radius:             1em /*{global-radii-buttons}*/;
+}
+.ui-btn-corner-top {
+       -moz-border-radius-topleft:             1em /*{global-radii-buttons}*/;
+       -webkit-border-top-left-radius:         1em /*{global-radii-buttons}*/;
+       border-top-left-radius:                         1em /*{global-radii-buttons}*/;
+       -moz-border-radius-topright:            1em /*{global-radii-buttons}*/;
+       -webkit-border-top-right-radius:        1em /*{global-radii-buttons}*/;
+       border-top-right-radius:                        1em /*{global-radii-buttons}*/;
+}
+.ui-btn-corner-bottom {
+       -moz-border-radius-bottomleft:          1em /*{global-radii-buttons}*/;
+       -webkit-border-bottom-left-radius:      1em /*{global-radii-buttons}*/;
+       border-bottom-left-radius:                      1em /*{global-radii-buttons}*/;
+       -moz-border-radius-bottomright:         1em /*{global-radii-buttons}*/;
+       -webkit-border-bottom-right-radius: 1em /*{global-radii-buttons}*/;
+       border-bottom-right-radius:             1em /*{global-radii-buttons}*/;
+}
+.ui-btn-corner-right {
+        -moz-border-radius-topright:           1em /*{global-radii-buttons}*/;
+       -webkit-border-top-right-radius:        1em /*{global-radii-buttons}*/;
+       border-top-right-radius:                        1em /*{global-radii-buttons}*/;
+       -moz-border-radius-bottomright:         1em /*{global-radii-buttons}*/;
+       -webkit-border-bottom-right-radius: 1em /*{global-radii-buttons}*/;
+       border-bottom-right-radius:             1em /*{global-radii-buttons}*/;
+}
+.ui-btn-corner-left {
+       -moz-border-radius-topleft:             1em /*{global-radii-buttons}*/;
+       -webkit-border-top-left-radius:         1em /*{global-radii-buttons}*/;
+       border-top-left-radius:                         1em /*{global-radii-buttons}*/;
+       -moz-border-radius-bottomleft:          1em /*{global-radii-buttons}*/;
+       -webkit-border-bottom-left-radius:      1em /*{global-radii-buttons}*/;
+       border-bottom-left-radius:                      1em /*{global-radii-buttons}*/;
+}
+.ui-btn-corner-all {
+       -moz-border-radius:                             1em /*{global-radii-buttons}*/;
+       -webkit-border-radius:                          1em /*{global-radii-buttons}*/;
+       border-radius:                                          1em /*{global-radii-buttons}*/;
+}
+
+/* radius clip workaround for cleaning up corner trapping */
+.ui-corner-tl,
+.ui-corner-tr,
+.ui-corner-bl, 
+.ui-corner-br,
+.ui-corner-top,
+.ui-corner-bottom, 
+.ui-corner-right,
+.ui-corner-left,
+.ui-corner-all,
+.ui-btn-corner-tl,
+.ui-btn-corner-tr,
+.ui-btn-corner-bl, 
+.ui-btn-corner-br,
+.ui-btn-corner-top,
+.ui-btn-corner-bottom, 
+.ui-btn-corner-right,
+.ui-btn-corner-left,
+.ui-btn-corner-all {
+  -webkit-background-clip: padding-box;
+     -moz-background-clip: padding;
+          background-clip: padding-box;
+}
+
+/* Overlay / modal
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-overlay {
+       background: #666;
+       opacity: .5;
+       filter: Alpha(Opacity=50);
+       position: absolute;
+       width: 100%;
+       height: 100%;
+}
+.ui-overlay-shadow {
+       -moz-box-shadow: 0px 0px 12px                   rgba(0,0,0,.6);
+       -webkit-box-shadow: 0px 0px 12px                rgba(0,0,0,.6);
+       box-shadow: 0px 0px 12px                                rgba(0,0,0,.6);
+}
+.ui-shadow {
+       -moz-box-shadow: 0px 1px 4px /*{global-box-shadow-size}*/                       rgba(0,0,0,.3) /*{global-box-shadow-color}*/;
+       -webkit-box-shadow: 0px 1px 4px /*{global-box-shadow-size}*/            rgba(0,0,0,.3) /*{global-box-shadow-color}*/;
+       box-shadow: 0px 1px 4px /*{global-box-shadow-size}*/                            rgba(0,0,0,.3) /*{global-box-shadow-color}*/;
+}
+.ui-bar-a .ui-shadow,
+.ui-bar-b .ui-shadow ,
+.ui-bar-c .ui-shadow  {
+       -moz-box-shadow: 0px 1px 0                              rgba(255,255,255,.3);
+       -webkit-box-shadow: 0px 1px 0                   rgba(255,255,255,.3);
+       box-shadow: 0px 1px 0                                   rgba(255,255,255,.3);
+}
+.ui-shadow-inset {
+       -moz-box-shadow: inset 0px 1px 4px              rgba(0,0,0,.2);
+       -webkit-box-shadow: inset 0px 1px 4px   rgba(0,0,0,.2);
+       box-shadow: inset 0px 1px 4px                   rgba(0,0,0,.2);
+}
+.ui-icon-shadow {
+       -moz-box-shadow: 0px 1px 0                              rgba(255,255,255,.4) /*{global-icon-shadow}*/;
+       -webkit-box-shadow: 0px 1px 0                   rgba(255,255,255,.4) /*{global-icon-shadow}*/;
+       box-shadow: 0px 1px 0                                   rgba(255,255,255,.4) /*{global-icon-shadow}*/;
+}
+
+/* Focus state - set here for specificity (note: these classes are added by JavaScript)
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-btn:focus {
+       outline: 0;
+}
+
+.ui-focus,
+.ui-btn:focus {
+       -moz-box-shadow: 0px 0px 12px           #387bbe /*{global-active-background-color}*/;
+       -webkit-box-shadow: 0px 0px 12px        #387bbe /*{global-active-background-color}*/;
+       box-shadow: 0px 0px 12px                        #387bbe /*{global-active-background-color}*/;
+}
+
+/* unset box shadow in browsers that don't do it right
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-mobile-nosupport-boxshadow * {
+       -moz-box-shadow: none !important;
+       -webkit-box-shadow: none !important;
+       box-shadow: none !important;
+}
+
+/* ...and bring back focus */
+.ui-mobile-nosupport-boxshadow .ui-focus,
+.ui-mobile-nosupport-boxshadow .ui-btn:focus {
+       outline-width: 1px;
+       outline-style: dotted;
+}
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/ajax-loader.png b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/ajax-loader.png
new file mode 100644 (file)
index 0000000..13b208d
Binary files /dev/null and b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/ajax-loader.png differ
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icon-search-black.png b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icon-search-black.png
new file mode 100644 (file)
index 0000000..0257f96
Binary files /dev/null and b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icon-search-black.png differ
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-18-black.png b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-18-black.png
new file mode 100644 (file)
index 0000000..ce1b758
Binary files /dev/null and b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-18-black.png differ
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-18-white.png b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-18-white.png
new file mode 100644 (file)
index 0000000..1ab0127
Binary files /dev/null and b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-18-white.png differ
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-36-black.png b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-36-black.png
new file mode 100644 (file)
index 0000000..1a59d7c
Binary files /dev/null and b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-36-black.png differ
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-36-white.png b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-36-white.png
new file mode 100644 (file)
index 0000000..5647bdc
Binary files /dev/null and b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/icons-36-white.png differ
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/texture_05.png b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/texture_05.png
new file mode 100644 (file)
index 0000000..ef39c5f
Binary files /dev/null and b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/texture_05.png differ
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/texture_075.png b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/texture_075.png
new file mode 100644 (file)
index 0000000..4a496ed
Binary files /dev/null and b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/images/texture_075.png differ
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/index.php b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/index.php
new file mode 100644 (file)
index 0000000..431474d
--- /dev/null
@@ -0,0 +1,7 @@
+<?php
+$type = 'text/css';
+$files = array(
+       '../../../LICENSE-INFO.txt',
+       'jquery.mobile.css'
+);
+$base = dirname(__FILE__);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/jquery.mobile.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/jquery.mobile.css
new file mode 100644 (file)
index 0000000..bd73b00
--- /dev/null
@@ -0,0 +1,2 @@
+@import url( "jquery.mobile.theme.css" );
+@import url( "../../structure/jquery.mobile.structure.css" );
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/jquery.mobile.theme.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/css/themes/valencia/jquery.mobile.theme.css
new file mode 100644 (file)
index 0000000..641e01d
--- /dev/null
@@ -0,0 +1,975 @@
+/*####################################################################################################################################
+
+  A
+
+####################################################################################################################################*/
+
+.ui-bar-a {  
+  font-weight: bold;
+  border: 1px solid       #be7800; 
+  background:             #e99515; 
+  color:                  #fff; 
+  text-shadow: 0 -1px 0px #94440F; 
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#e9a015), to(#e98a15)); /* Saf4+, Chrome */
+  background-image: -webkit-linear-gradient(#e9a015, #e98a15); /* Chrome 10+, Saf5.1+ */
+  background-image:    -moz-linear-gradient(#e9a015, #e98a15); /* FF3.6 */
+  background-image:     -ms-linear-gradient(#e9a015, #e98a15); /* IE10 */
+  background-image:      -o-linear-gradient(#e9a015, #e98a15); /* Opera 11.10+ */
+  background-image:         linear-gradient(#e9a015, #e98a15); 
+}
+.ui-btn-up-a {
+  border: 1px solid       #BD610D;
+  background:             #e68510;
+  color:                  #fff;
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#ea9e0c), to(#e68510)); /* Saf4+, Chrome */
+  background-image: -webkit-linear-gradient(#ea9e0c, #e68510); /* Chrome 10+, Saf5.1+ */
+  background-image:    -moz-linear-gradient(#ea9e0c, #e68510); /* FF3.6 */
+  background-image:     -ms-linear-gradient(#ea9e0c, #e68510); /* IE10 */
+  background-image:      -o-linear-gradient(#ea9e0c, #e68510); /* Opera 11.10+ */
+  background-image:         linear-gradient(#ea9e0c, #e68510); 
+}
+.ui-btn-up-a a.ui-link-inherit {
+  color:                  #fff;
+}
+.ui-btn-hover-a {
+  border: 1px solid       #b77504;
+  background:             #ed9730;
+  color:                  #fff;
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#edab30), to(#ed9730)); /* Saf4+, Chrome */
+  background-image: -webkit-linear-gradient(#edab30, #ed9730); /* Chrome 10+, Saf5.1+ */
+  background-image:    -moz-linear-gradient(#edab30, #ed9730); /* FF3.6 */
+  background-image:     -ms-linear-gradient(#edab30, #ed9730); /* IE10 */
+  background-image:      -o-linear-gradient(#edab30, #ed9730); /* Opera 11.10+ */
+  background-image:         linear-gradient(#edab30, #ed9730); 
+}
+.ui-btn-hover-a a.ui-link-inherit {
+  color:                  #fff;
+}
+.ui-btn-down-a {
+  border: 1px solid       #BD610D;
+  background:             #BA6E11;
+  color:                  #fff;
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#BA8011), to(#BA6E11)); /* Saf4+, Chrome */
+  background-image: -webkit-linear-gradient(#BA8011, #BA6E11); /* Chrome 10+, Saf5.1+ */
+  background-image:    -moz-linear-gradient(#BA8011, #BA6E11); /* FF3.6 */
+  background-image:     -ms-linear-gradient(#BA8011, #BA6E11); /* IE10 */
+  background-image:      -o-linear-gradient(#BA8011, #BA6E11); /* Opera 11.10+ */
+  background-image:         linear-gradient(#BA8011, #BA6E11);
+}
+.ui-btn-up-a,
+.ui-btn-hover-a,
+.ui-btn-down-a {
+  text-shadow: 0 -1px 0px #94440F;
+  cursor: pointer;
+  font-weight: bold; 
+  text-decoration: none;
+  font-family: Helvetica, Arial, sans-serif;
+}
+.ui-bar-a, 
+.ui-bar-a input, 
+.ui-bar-a select, 
+.ui-bar-a textarea, 
+.ui-bar-a button { 
+  font-family: Helvetica, Arial, sans-serif;
+}
+.ui-bar-a .ui-link-inherit { 
+  color:                  #fff;
+}
+.ui-bar-a .ui-link { 
+  color:                  #7cc4e7;
+  font-weight: bold;
+}
+.ui-body-a,
+.ui-dialog.ui-overlay-a {
+  font-weight: normal;
+  border: 1px solid       #222;
+  background:             #444;
+  color:                  #ddd;
+  text-shadow: 0 -1px 0px #000;
+  background-image: -webkit-gradient(linear, center top, center bottom, from(#333), color-stop(5%, #333), color-stop(15%, #444), color-stop(60%, #444), to(#222)); /* Saf4+, Chrome */
+  background-image: -webkit-linear-gradient(#333 0%, #333 5%, #444 15%, #444 60%, #222 100%); /* Chrome 10+, Saf5.1+ */
+  background-image:    -moz-linear-gradient(#333 0%, #333 5%, #444 15%, #444 60%, #222 100%); /* FF3.6 */
+  background-image:     -ms-linear-gradient(#333 0%, #333 5%, #444 15%, #444 60%, #222 100%); /* IE10 */
+  background-image:      -o-linear-gradient(#333 0%, #333 5%, #444 15%, #444 60%, #222 100%); /* Opera 11.10+ */
+  background-image:         linear-gradient(#333 0%, #333 5%, #444 15%, #444 60%, #222 100%);
+}
+.ui-body-a, 
+.ui-body-a input, 
+.ui-body-a select, 
+.ui-body-a textarea, 
+.ui-body-a button { 
+  font-family: Helvetica, Arial, sans-serif; 
+}
+.ui-body-a .ui-link-inherit { 
+  color:                  #fff; 
+}
+.ui-body-a .ui-link { 
+  color:                  #e98a15; 
+  font-weight: bold; 
+}
+
+/*####################################################################################################################################
+
+  B
+
+####################################################################################################################################*/
+
+.ui-bar-b {
+  font-weight: bold;
+  border: 1px solid       #222; 
+  background:             #333333; 
+  color:                  #fff; 
+  text-shadow: 0 -1px 0px #111; 
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#555), to(#333)); /* Saf4+, Chrome */
+  background-image: -webkit-linear-gradient(#555, #333); /* Chrome 10+, Saf5.1+ */
+  background-image:    -moz-linear-gradient(#555, #333); /* FF3.6 */
+  background-image:     -ms-linear-gradient(#555, #333); /* IE10 */
+  background-image:      -o-linear-gradient(#555, #333); /* Opera 11.10+ */
+  background-image:         linear-gradient(#555, #333);
+}
+.ui-btn-up-b {
+  border: 1px solid       #232323;
+  background:             #393939;
+  color:                  #eee;
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#5E5E5E), to(#393939)); /* Saf4+, Chrome */
+  background-image: -webkit-linear-gradient(#5E5E5E, #393939); /* Chrome 10+, Saf5.1+ */
+  background-image:    -moz-linear-gradient(#5E5E5E, #393939); /* FF3.6 */
+  background-image:     -ms-linear-gradient(#5E5E5E, #393939); /* IE10 */
+  background-image:      -o-linear-gradient(#5E5E5E, #393939); /* Opera 11.10+ */
+  background-image:         linear-gradient(#5E5E5E, #393939);
+}
+.ui-btn-up-b a.ui-link-inherit { 
+  color:                  #eee;
+}
+.ui-btn-hover-b {
+  border: 1px solid       #232323;
+  background:             #494949;
+  color:                  #fff;
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#6E6E6E), to(#494949)); /* Saf4+, Chrome */
+  background-image: -webkit-linear-gradient(#6E6E6E, #494949); /* Chrome 10+, Saf5.1+ */
+  background-image:    -moz-linear-gradient(#6E6E6E, #494949); /* FF3.6 */
+  background-image:     -ms-linear-gradient(#6E6E6E, #494949); /* IE10 */
+  background-image:      -o-linear-gradient(#6E6E6E, #494949); /* Opera 11.10+ */
+  background-image:         linear-gradient(#6E6E6E, #494949);
+}
+
+.ui-btn-hover-b a.ui-link-inherit {
+  color:                  #fff;
+}
+.ui-btn-down-b {
+  border: 1px solid       #232323;
+  background:             #292929;
+  color:                  #fff;
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#4E4E4E), to(#292929)); /* Saf4+, Chrome */
+  background-image: -webkit-linear-gradient(#4E4E4E, #292929); /* Chrome 10+, Saf5.1+ */
+  background-image:    -moz-linear-gradient(#4E4E4E, #292929); /* FF3.6 */
+  background-image:     -ms-linear-gradient(#4E4E4E, #292929); /* IE10 */
+  background-image:      -o-linear-gradient(#4E4E4E, #292929); /* Opera 11.10+ */
+  background-image:         linear-gradient(#4E4E4E, #292929);
+}
+.ui-btn-down-b a.ui-link-inherit {
+  color:                  #fff; 
+}
+.ui-btn-up-b, 
+.ui-btn-hover-b, 
+.ui-btn-down-b {
+  text-shadow: 0 -1px 0px #111;
+  cursor: pointer;
+  font-weight: bold;
+  text-decoration: none;
+  font-family: Helvetica, Arial, sans-serif; 
+}
+.ui-bar-b, 
+.ui-bar-b input, 
+.ui-bar-b select, 
+.ui-bar-b textarea, 
+.ui-bar-b button { 
+  font-family: Helvetica, Arial, sans-serif; 
+}
+.ui-bar-b .ui-link-inherit {
+  color:                  #fff;
+}
+.ui-bar-b .ui-link {
+  color:                  #7cc4e7; 
+  font-weight: bold;
+}
+.ui-body-b,
+.ui-dialog.ui-overlay-b {
+  font-weight: normal;
+  border: 1px solid       #999;
+  background-color:             #e5e5e5;
+  color:                  #666;
+  text-shadow: 0 1px 0px  #fff;
+  background-image: url(images/texture_075.png);
+}
+.ui-body-b, 
+.ui-body-b input, 
+.ui-body-b select, 
+.ui-body-b textarea, 
+.ui-body-b button { 
+  font-family: Helvetica, Arial, sans-serif; 
+}
+.ui-body-b .ui-link-inherit { 
+  color:                  #333333;
+}
+.ui-body-b .ui-link {
+  font-weight: bold;
+  color:                  #e98a15;
+}
+/*####################################################################################################################################
+
+  C Styles
+
+####################################################################################################################################*/
+
+.ui-bar-c {
+  font-weight: bold;
+  border: 1px solid       #ccc; 
+  background:             #e5e5e5; 
+  color:                  #111; 
+  text-shadow: 0 1px 0px  #fff;
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#e5e5e5)); /* Saf4+, Chrome */
+  background-image: -webkit-linear-gradient(#eee, #e5e5e5); /* Chrome 10+, Saf5.1+ */
+  background-image:    -moz-linear-gradient(#eee, #e5e5e5); /* FF3.6 */
+  background-image:     -ms-linear-gradient(#eee, #e5e5e5); /* IE10 */
+  background-image:      -o-linear-gradient(#eee, #e5e5e5); /* Opera 11.10+ */
+  background-image:         linear-gradient(#eee, #e5e5e5);
+}
+.ui-bar-c, 
+.ui-bar-c input, 
+.ui-bar-c select, 
+.ui-bar-c textarea, 
+.ui-bar-c button { 
+  font-family: Helvetica, Arial, sans-serif;
+}
+.ui-btn-up-c,
+.ui-btn-hover-c,
+.ui-btn-down-c {
+  font-family: Helvetica, Arial, sans-serif;
+  cursor: pointer;
+  font-weight: bold;
+  text-decoration: none;
+  text-shadow: 0 1px 0px  #fff;
+}
+.ui-btn-up-c {
+  border: 1px solid       #ccc;
+  background:             #e5e5e5;
+  color:                  #444;
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#e5e5e5)); /* Saf4+, Chrome */
+  background-image: -webkit-linear-gradient(#eee, #e5e5e5); /* Chrome 10+, Saf5.1+ */
+  background-image:    -moz-linear-gradient(#eee, #e5e5e5); /* FF3.6 */
+  background-image:     -ms-linear-gradient(#eee, #e5e5e5); /* IE10 */
+  background-image:      -o-linear-gradient(#eee, #e5e5e5); /* Opera 11.10+ */
+  background-image:         linear-gradient(#eee, #e5e5e5);
+}
+.ui-btn-up-c a.ui-link-inherit {
+  color:                  #444;
+}
+.ui-btn-hover-c {
+  border: 1px solid       #ccc;
+  background:             #f5f5f5;
+  color:                  #222;
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f5f5f5)); /* Saf4+, Chrome */
+  background-image: -webkit-linear-gradient(#fff, #f5f5f5); /* Chrome 10+, Saf5.1+ */
+  background-image:    -moz-linear-gradient(#fff, #f5f5f5); /* FF3.6 */
+  background-image:     -ms-linear-gradient(#fff, #f5f5f5); /* IE10 */
+  background-image:      -o-linear-gradient(#fff, #f5f5f5); /* Opera 11.10+ */
+  background-image:         linear-gradient(#fff, #f5f5f5);
+}
+.ui-btn-hover-c a.ui-link-inherit { 
+  color:                  #222;
+}
+.ui-btn-down-c {
+  border: 1px solid       #ccc;
+  background:             #d5d5d5;
+  color:                  #111;
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#ddd), to(#d5d5d5)); /* Saf4+, Chrome */
+  background-image: -webkit-linear-gradient(#ddd, #d5d5d5); /* Chrome 10+, Saf5.1+ */
+  background-image:    -moz-linear-gradient(#ddd, #d5d5d5); /* FF3.6 */
+  background-image:     -ms-linear-gradient(#ddd, #d5d5d5); /* IE10 */
+  background-image:      -o-linear-gradient(#ddd, #d5d5d5); /* Opera 11.10+ */
+  background-image:         linear-gradient(#ddd, #d5d5d5);
+}
+.ui-btn-down-c a.ui-link-inherit { 
+  color:                  #111;
+}
+.ui-body-c,
+.ui-dialog.ui-overlay-c {
+  border: 1px solid       #ddd;
+  color:                  #333333;
+  text-shadow: 0 1px 0px  #fff;
+  background:             #fff;
+  background-image: url(images/texture_075.png);
+}
+.ui-body-c, 
+.ui-body-c input, 
+.ui-body-c select, 
+.ui-body-c textarea, 
+.ui-body-c button { 
+  font-family: Helvetica, Arial, sans-serif;
+}
+.ui-body-c .ui-link-inherit {
+  color:                  #333333; }
+.ui-body-c .ui-link {
+  font-weight: bold;
+  color:                  #e98a15;
+}
+
+/*####################################################################################################################################
+
+  D
+
+####################################################################################################################################*/
+
+.ui-bar-d {
+  font-weight: bold;
+  border: 1px solid       #ccc; 
+  background:             #cbcbcb;
+  color:                  #666; 
+  text-shadow: 0 1px 0px  #fff;
+  background-image: -webkit-gradient(linear, center top, center bottom, from(#ddd), color-stop(5%, #ccc), color-stop(15%, #bbb), color-stop(95%, #ddd), to(#ccc)); /* Saf4+, Chrome */
+  background-image: -webkit-linear-gradient(#ddd 0%, #ccc 5%, #bbb 15%, #ddd 95%, #ccc 100%); /* Chrome 10+, Saf5.1+ */
+  background-image:    -moz-linear-gradient(#ddd 0%, #ccc 5%, #bbb 15%, #ddd 95%, #ccc 100%); /* FF3.6 */
+  background-image:     -ms-linear-gradient(#ddd 0%, #ccc 5%, #bbb 15%, #ddd 95%, #ccc 100%); /* IE10 */
+  background-image:      -o-linear-gradient(#ddd 0%, #ccc 5%, #bbb 15%, #ddd 95%, #ccc 100%); /* Opera 11.10+ */
+  background-image:         linear-gradient(#ddd 0%, #ccc 5%, #bbb 15%, #ddd 95%, #ccc 100%);
+}
+.ui-bar-d, 
+.ui-bar-d input, 
+.ui-bar-d select, 
+.ui-bar-d textarea, 
+.ui-bar-d button { 
+  font-family: Helvetica, Arial, sans-serif; 
+}
+.ui-bar-d .ui-link-inherit { 
+  color:                  #333;
+}
+.ui-bar-d .ui-link {
+  font-weight: bold;
+  color:                  #2489CE;
+}
+
+.ui-btn-up-d {
+  border: 1px solid       #c5c5c5;
+  background:             #ddd;
+  color:                  #666;
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#d5d5d5), to(#ddd)); /* Saf4+, Chrome */
+  background-image: -webkit-linear-gradient(#d5d5d5, #ddd); /* Chrome 10+, Saf5.1+ */
+  background-image:    -moz-linear-gradient(#d5d5d5, #ddd); /* FF3.6 */
+  background-image:     -ms-linear-gradient(#d5d5d5, #ddd); /* IE10 */
+  background-image:      -o-linear-gradient(#d5d5d5, #ddd); /* Opera 11.10+ */
+  background-image:         linear-gradient(#d5d5d5, #ddd);
+}
+.ui-btn-up-d a.ui-link-inherit {
+  color:                  #666;
+}
+.ui-btn-hover-d {
+  border: 1px solid       #aaa;
+  background:             #c5c5c5;
+  color:                  #666;
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#c5c5c5), to(#ccc)); /* Saf4+, Chrome */
+  background-image: -webkit-linear-gradient(#c5c5c5, #ccc); /* Chrome 10+, Saf5.1+ */
+  background-image:    -moz-linear-gradient(#c5c5c5, #ccc); /* FF3.6 */
+  background-image:     -ms-linear-gradient(#c5c5c5, #ccc); /* IE10 */
+  background-image:      -o-linear-gradient(#c5c5c5, #ccc); /* Opera 11.10+ */
+  background-image:         linear-gradient(#c5c5c5, #ccc);
+}
+.ui-btn-hover-d a.ui-link-inherit {
+  color:                  #666;
+}
+.ui-btn-down-d {
+  border: 1px solid       #999;
+  background:             #b5b5b5;
+  color:                  #444;
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#b5b5b5), to(#bbb)); /* Saf4+, Chrome */
+  background-image: -webkit-linear-gradient(#b5b5b5, #bbb); /* Chrome 10+, Saf5.1+ */
+  background-image:    -moz-linear-gradient(#b5b5b5, #bbb); /* FF3.6 */
+  background-image:     -ms-linear-gradient(#b5b5b5, #bbb); /* IE10 */
+  background-image:      -o-linear-gradient(#b5b5b5, #bbb); /* Opera 11.10+ */
+  background-image:         linear-gradient(#b5b5b5, #bbb);
+}
+.ui-btn-up-d a.ui-link {
+  color:                  #444;
+}
+.ui-btn-up-d,
+.ui-btn-hover-d,
+.ui-btn-down-d {
+  font-family: Helvetica, Arial, sans-serif;
+  cursor: pointer;
+  font-weight: bold;
+  text-decoration: none;
+  text-shadow: 0 1px 0px  #fff;
+}
+.ui-body-d,
+.ui-body-d input,
+.ui-body-d select, 
+.ui-body-d textarea, 
+.ui-body-d button { 
+  font-family: Helvetica, Arial, sans-serif; 
+}
+.ui-body-d .ui-link-inherit { 
+  color:                  #333333;
+}
+.ui-body-d,
+.ui-dialog.ui-overlay-d {
+  border: 1px solid       #aaa;
+  color:                  #666;
+  text-shadow: 0 1px 0px  #fff;
+  background:             #eee;
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), color-stop(15%, #f5f5f5), to(#eee)); /* Saf4+, Chrome */
+  background-image: -webkit-linear-gradient(#fff 0%, #f5f5f5 15%, #eee 100%); /* Chrome 10+, Saf5.1+ */
+  background-image:    -moz-linear-gradient(#fff 0%, #f5f5f5 15%, #eee 100%); /* FF3.6 */
+  background-image:     -ms-linear-gradient(#fff 0%, #f5f5f5 15%, #eee 100%); /* IE10 */
+  background-image:      -o-linear-gradient(#fff 0%, #f5f5f5 15%, #eee 100%); /* Opera 11.10+ */
+  background-image:         linear-gradient(#fff 0%, #f5f5f5 15%, #eee 100%);
+}
+.ui-body-d .ui-link {
+  font-weight: bold;
+  color:                  #e98a15;
+}
+
+.ui-body-c .ui-link-inherit {
+  color:                  #333333; }
+.ui-body-c .ui-link {
+  font-weight: bold;
+  color:                  #e98a15;
+}
+
+
+/*####################################################################################################################################
+
+  E
+
+####################################################################################################################################*/
+
+.ui-bar-e {
+  font-weight: bold;
+  border: 1px solid       #999;
+  background:             #dedede;
+  color:                  #000;
+  text-shadow: 0 1px 0px  #fff;
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), color-stop(50%, #ccc), color-stop(50%, #b5b5b5), to(#eee)); /* Saf4+, Chrome */
+  background-image: -webkit-linear-gradient(#fff 0%, #ccc 50%, #b5b5b5 50%, #eee 100%); /* Chrome 10+, Saf5.1+ */
+  background-image:    -moz-linear-gradient(#fff 0%, #ccc 50%, #b5b5b5 50%, #eee 100%); /* FF3.6 */
+  background-image:     -ms-linear-gradient(#fff 0%, #ccc 50%, #b5b5b5 50%, #eee 100%); /* IE10 */
+  background-image:      -o-linear-gradient(#fff 0%, #ccc 50%, #b5b5b5 50%, #eee 100%); /* Opera 11.10+ */
+  background-image:         linear-gradient(#fff 0%, #ccc 50%, #b5b5b5 50%, #eee 100%);
+}
+.ui-bar-e,
+.ui-bar-e input, 
+.ui-bar-e select, 
+.ui-bar-e textarea, 
+.ui-bar-d button { 
+  font-family: Helvetica, Arial, sans-serif; 
+}
+.ui-bar-e .ui-link-inherit { 
+  color:                  #333; 
+}
+.ui-bar-e .ui-link { 
+  color:                  #2489CE; 
+  font-weight: bold; 
+}
+.ui-btn-up-e {
+  border: 1px solid       #999;
+  background:             #dfdfdf;
+  color:                  #333;
+  text-shadow: 0 1px 0px  #fff;
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), color-stop(50%, #ccc), color-stop(50%, #b5b5b5), to(#f5f5f5)); /* Saf4+, Chrome */
+  background-image: -webkit-linear-gradient(#f5f5f5 0%, #ccc 50%, #b5b5b5 50%, #f5f5f5 100%); /* Chrome 10+, Saf5.1+ */
+  background-image:    -moz-linear-gradient(#f5f5f5 0%, #ccc 50%, #b5b5b5 50%, #f5f5f5 100%); /* FF3.6 */
+  background-image:     -ms-linear-gradient(#f5f5f5 0%, #ccc 50%, #b5b5b5 50%, #f5f5f5 100%); /* IE10 */
+  background-image:      -o-linear-gradient(#f5f5f5 0%, #ccc 50%, #b5b5b5 50%, #f5f5f5 100%); /* Opera 11.10+ */
+  background-image:         linear-gradient(#f5f5f5 0%, #ccc 50%, #b5b5b5 50%, #f5f5f5 100%);
+}
+.ui-btn-up-e a.ui-link-inherit {
+  color:                  #333;
+}
+.ui-btn-hover-e { 
+  border: 1px solid       #777;
+  background:             #e5e5e5;
+  color:                  #333;
+  text-shadow: 0 1px 0px  #fff;
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), color-stop(50%, #ddd), color-stop(50%, #ccc), to(#fff)); /* Saf4+, Chrome */
+  background-image: -webkit-linear-gradient(#fff 0%, #ddd 50%, #ccc 50%, #fff 100%); /* Chrome 10+, Saf5.1+ */
+  background-image:    -moz-linear-gradient(#fff 0%, #ddd 50%, #ccc 50%, #fff 100%); /* FF3.6 */
+  background-image:     -ms-linear-gradient(#fff 0%, #ddd 50%, #ccc 50%, #fff 100%); /* IE10 */
+  background-image:      -o-linear-gradient(#fff 0%, #ddd 50%, #ccc 50%, #fff 100%); /* Opera 11.10+ */
+  background-image:         linear-gradient(#fff 0%, #ddd 50%, #ccc 50%, #fff 100%);
+}
+.ui-btn-hover-e a.ui-link-inherit {
+  color:                  #333;
+}
+.ui-btn-down-e { 
+  border: 1px solid       #888;
+  background:             #ccc;
+  color:                  #333;
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#ddd), color-stop(50%, #ccc), color-stop(50%, #bbb), to(#ddd)); /* Saf4+, Chrome */
+  background-image: -webkit-linear-gradient(#ddd 0%, #ccc 50%, #bbb 50%, #ddd 100%); /* Chrome 10+, Saf5.1+ */
+  background-image:    -moz-linear-gradient(#ddd 0%, #ccc 50%, #bbb 50%, #ddd 100%); /* FF3.6 */
+  background-image:     -ms-linear-gradient(#ddd 0%, #ccc 50%, #bbb 50%, #ddd 100%); /* IE10 */
+  background-image:      -o-linear-gradient(#ddd 0%, #ccc 50%, #bbb 50%, #ddd 100%); /* Opera 11.10+ */
+  background-image:         linear-gradient(#ddd 0%, #ccc 50%, #bbb 50%, #ddd 100%);
+}
+.ui-btn-down-e a.ui-link-inherit {
+  color:                  #333;
+}
+.ui-btn-up-e, 
+.ui-btn-hover-e, 
+.ui-btn-down-e { 
+  font-family: Helvetica, Arial, sans-serif;
+  cursor: pointer;
+  font-weight: bold;
+  text-decoration: none;
+  text-shadow: 0 1px 0px  #fff;
+}
+.ui-body-e,
+.ui-dialog.ui-overlay-e {
+  font-weight: normal;
+  border: 1px solid       #aaa;
+  background:             #ccc;
+  color:                  #111;
+  text-shadow: 0 1px 0px  #fff;
+  background-image: url(images/texture_075.png);
+}
+.ui-body-e, 
+.ui-body-e input, 
+.ui-body-e select, 
+.ui-body-e textarea, 
+.ui-body-e button { 
+  font-family: Helvetica, Arial, sans-serif; 
+}
+.ui-body-e .ui-link-inherit {
+  color:                  #333333;
+}
+.ui-body-e .ui-link { 
+  font-weight: bold;
+  color:                  #e98a15;
+}
+
+/*####################################################################################################################################
+
+  Everything Else
+
+####################################################################################################################################*/
+
+
+a.ui-link-inherit { 
+  text-decoration: none !important;
+}
+
+/* Active class used as the "on" state across all themes */
+.ui-btn-active {
+  font-weight: bold;
+  cursor: pointer;
+  text-decoration: none;
+  border: 1px solid       #FFBC19;
+  background:             #FFBC19;
+  color:                  #222;
+  text-shadow: 0 1px 0px  #eee;
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#FFDC52), to(#FFBC19)); /* Saf4+, Chrome */
+  background-image: -webkit-linear-gradient(#FFDC52, #FFBC19); /* Chrome 10+, Saf5.1+ */
+  background-image:    -moz-linear-gradient(#FFDC52, #FFBC19); /* FF3.6 */
+  background-image:     -ms-linear-gradient(#FFDC52, #FFBC19); /* IE10 */
+  background-image:      -o-linear-gradient(#FFDC52, #FFBC19); /* Opera 11.10+ */
+  background-image:         linear-gradient(#FFDC52, #FFBC19);
+}
+.ui-btn-active a.ui-link-inherit {
+  color:                  #333;
+}
+
+/* button Inner Highlight */
+.ui-btn-inner { 
+  border-top: 1px solid   #fff;
+  border-color:           rgba(255,255,255,.25);
+}
+
+/* Container Corner radius */
+.ui-corner-tl { 
+  -moz-border-radius-topleft:         .6em;
+  -webkit-border-top-left-radius:     .6em; 
+  border-top-left-radius:             .6em;
+}
+.ui-corner-tr { 
+  -moz-border-radius-topright:        .6em; 
+  -webkit-border-top-right-radius:    .6em; 
+  border-top-right-radius:            .6em;
+}
+.ui-corner-bl { 
+  -moz-border-radius-bottomleft:      .6em;
+  -webkit-border-bottom-left-radius:  .6em;
+  border-bottom-left-radius:          .6em;
+}
+.ui-corner-br { 
+  -moz-border-radius-bottomright:     .6em;
+  -webkit-border-bottom-right-radius: .6em;
+  border-bottom-right-radius:         .6em;
+}
+.ui-corner-top {
+  -moz-border-radius-topleft:         .6em;
+  -webkit-border-top-left-radius:     .6em;
+  border-top-left-radius:             .6em;
+  -moz-border-radius-topright:        .6em;
+  -webkit-border-top-right-radius:    .6em;
+  border-top-right-radius:            .6em;
+}
+.ui-corner-bottom { 
+  -moz-border-radius-bottomleft:      .6em;
+  -webkit-border-bottom-left-radius:  .6em;
+  border-bottom-left-radius:          .6em;
+  -moz-border-radius-bottomright:     .6em;
+  -webkit-border-bottom-right-radius: .6em;
+  border-bottom-right-radius:         .6em;
+}
+.ui-corner-right {
+  -moz-border-radius-topright:        .6em;
+  -webkit-border-top-right-radius:    .6em;
+  border-top-right-radius:            .6em;
+  -moz-border-radius-bottomright:     .6em;
+  -webkit-border-bottom-right-radius: .6em;
+  border-bottom-right-radius:         .6em;
+}
+.ui-corner-left {
+  -moz-border-radius-topleft:         .6em;
+  -webkit-border-top-left-radius:     .6em;
+  border-top-left-radius:             .6em; 
+  -moz-border-radius-bottomleft:      .6em;
+  -webkit-border-bottom-left-radius:  .6em;
+  border-bottom-left-radius:          .6em;
+}
+.ui-corner-all { 
+  -moz-border-radius:                 .6em;
+  -webkit-border-radius:              .6em;
+  border-radius:                      .6em;
+}
+
+/* Interaction Cues
+----------------------------------*/
+.ui-disabled { 
+  opacity: .3;
+}
+.ui-disabled, .ui-disabled a {
+  cursor: default !important;
+}
+
+/* Icons
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-icon {
+       background:                                             #666;
+       background:                                             rgba(0,0,0,.4);
+       background-image: url(images/icons-18-white.png);
+       background-repeat: no-repeat;
+       -moz-border-radius:                             9px;
+       -webkit-border-radius:                          9px;
+       border-radius:                                          9px;
+}
+
+
+/* Alt icon color
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-icon-alt {
+       background:                                             #fff;
+       background:                                             rgba(255,255,255,.3);
+       background-image: url(images/icons-18-black.png);
+       background-repeat: no-repeat;
+}
+
+/* HD/"retina" sprite
+-----------------------------------------------------------------------------------------------------------*/
+
+@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
+       only screen and (min--moz-device-pixel-ratio: 1.5),
+       only screen and (min-resolution: 240dpi) {
+       
+       .ui-icon-plus, .ui-icon-minus, .ui-icon-delete, .ui-icon-arrow-r,
+       .ui-icon-arrow-l, .ui-icon-arrow-u, .ui-icon-arrow-d, .ui-icon-check,
+       .ui-icon-gear, .ui-icon-refresh, .ui-icon-forward, .ui-icon-back,
+       .ui-icon-grid, .ui-icon-star, .ui-icon-alert, .ui-icon-info, .ui-icon-home, .ui-icon-search, 
+       .ui-icon-checkbox-off, .ui-icon-checkbox-on, .ui-icon-radio-off, .ui-icon-radio-on {
+               background-image: url(images/icons-36-white.png);
+               -moz-background-size: 776px 18px;
+               -o-background-size: 776px 18px;
+               -webkit-background-size: 776px 18px;
+               background-size: 776px 18px;
+       }
+       .ui-icon-alt {
+               background-image: url(images/icons-36-black.png);
+       }
+}
+
+/* plus minus */
+.ui-icon-plus {
+       background-position:    -0 50%;
+}
+.ui-icon-minus {
+       background-position:    -36px 50%;
+}
+
+/* delete/close */
+.ui-icon-delete {
+       background-position:    -72px 50%;
+}
+
+/* arrows */
+.ui-icon-arrow-r {
+       background-position:    -108px 50%;
+}
+.ui-icon-arrow-l {
+       background-position:    -144px 50%;
+}
+.ui-icon-arrow-u {
+       background-position:    -180px 50%;
+}
+.ui-icon-arrow-d {
+       background-position:    -216px 50%;
+}
+
+/* misc */
+.ui-icon-check {
+       background-position:    -252px 50%;
+}
+.ui-icon-gear {
+       background-position:    -288px 50%;
+}
+.ui-icon-refresh {
+       background-position:    -324px 50%;
+}
+.ui-icon-forward {
+       background-position:    -360px 50%;
+}
+.ui-icon-back {
+       background-position:    -396px 50%;
+}
+.ui-icon-grid {
+       background-position:    -432px 50%;
+}
+.ui-icon-star {
+       background-position:    -468px 50%;
+}
+.ui-icon-alert {
+       background-position:    -504px 50%;
+}
+.ui-icon-info {
+       background-position:    -540px 50%;
+}
+.ui-icon-home {
+       background-position:    -576px 50%;
+}
+.ui-icon-search {
+       background-position:    -612px 50%;
+}
+.ui-icon-checkbox-off {
+       background-position:    -684px 50%;
+}
+.ui-icon-checkbox-on {
+       background-position:    -648px 50%;
+}
+.ui-icon-radio-off {
+       background-position:    -756px 50%;
+}
+.ui-icon-radio-on {
+       background-position:    -720px 50%;
+}
+
+
+/* checks,radios */
+.ui-checkbox .ui-icon {
+       -moz-border-radius: 3px;
+       -webkit-border-radius: 3px;
+       border-radius: 3px;
+}
+.ui-icon-checkbox-off,
+.ui-icon-radio-off {
+       background-color: transparent;  
+}
+.ui-checkbox-on .ui-icon,
+.ui-radio-on .ui-icon {
+       background-color: #FFBC19; /* NOTE: this hex should match the active state color. It's repeated here for cascade */
+}
+.ui-icon-searchfield {
+       background-image: url(images/icon-search-black.png);
+       background-size: 16px 16px;
+}
+
+/* loading icon */
+.ui-icon-loading {
+       background-image: url(images/ajax-loader.png);
+       width: 40px;
+       height: 40px;
+       -moz-border-radius: 20px;
+       -webkit-border-radius: 20px;
+       border-radius: 20px;
+       background-size: 35px 35px;
+}
+
+
+/* Button corner classes
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-btn-corner-tl { 
+  -moz-border-radius-topleft:         1em;
+  -webkit-border-top-left-radius:     1em;
+  border-top-left-radius:             1em;
+}
+.ui-btn-corner-tr { 
+  -moz-border-radius-topright:        1em; 
+  -webkit-border-top-right-radius:    1em; 
+  border-top-right-radius:            1em;
+}
+.ui-btn-corner-bl { 
+  -moz-border-radius-bottomleft:      1em; 
+  -webkit-border-bottom-left-radius:  1em; 
+  border-bottom-left-radius:          1em; 
+}
+.ui-btn-corner-br { 
+  -moz-border-radius-bottomright:     1em; 
+  -webkit-border-bottom-right-radius: 1em; 
+  border-bottom-right-radius:         1em; 
+}
+.ui-btn-corner-top { 
+  -moz-border-radius-topleft:         1em; 
+  -webkit-border-top-left-radius:     1em; 
+  border-top-left-radius:             1em; 
+  -moz-border-radius-topright:        1em; 
+  -webkit-border-top-right-radius:    1em; 
+  border-top-right-radius:            1em; 
+}
+.ui-btn-corner-bottom { 
+  -moz-border-radius-bottomleft:      1em; 
+  -webkit-border-bottom-left-radius:  1em; 
+  border-bottom-left-radius:          1em; 
+  -moz-border-radius-bottomright:     1em; 
+  -webkit-border-bottom-right-radius: 1em; 
+  border-bottom-right-radius:         1em; 
+}
+.ui-btn-corner-right {  
+  -moz-border-radius-topright:        1em; 
+  -webkit-border-top-right-radius:    1em; 
+  border-top-right-radius:            1em; 
+  -moz-border-radius-bottomright:     1em; 
+  -webkit-border-bottom-right-radius: 1em; 
+  border-bottom-right-radius:         1em; 
+}
+.ui-btn-corner-left { 
+  -moz-border-radius-topleft:         1em; 
+  -webkit-border-top-left-radius:     1em; 
+  border-top-left-radius:             1em; 
+  -moz-border-radius-bottomleft:      1em; 
+  -webkit-border-bottom-left-radius:  1em; 
+  border-bottom-left-radius:          1em; 
+}
+.ui-btn-corner-all { 
+  -moz-border-radius:                 .4em; 
+  -webkit-border-radius:              .4em; 
+  border-radius:                      .4em; 
+}
+
+.ui-corner-tl, .ui-corner-tr, .ui-corner-bl, 
+.ui-corner-br, .ui-corner-top, .ui-corner-bottom, 
+.ui-corner-right, .ui-corner-left, .ui-corner-all,
+.ui-btn-corner-tl, .ui-btn-corner-tr, .ui-btn-corner-bl, 
+.ui-btn-corner-br, .ui-btn-corner-top, .ui-btn-corner-bottom, 
+.ui-btn-corner-right, .ui-btn-corner-left, .ui-btn-corner-all {
+  -webkit-background-clip: padding-box;
+     -moz-background-clip: padding;
+          background-clip: padding-box;
+
+}
+
+/* Form field separator */
+.ui-br {
+       border-bottom: rgb(130,130,130);
+       border-bottom: rgba(130,130,130,.3);
+       border-bottom-width: 1px;
+       border-bottom-style: solid;
+}
+
+/* Overlays */
+.ui-overlay { 
+  position:   absolute; 
+  opacity:    .5; 
+  filter:     Alpha(Opacity=50); 
+  width:      100%; 
+  height:     100%;
+  background: #666;
+}
+.ui-overlay-shadow {  
+  -moz-box-shadow:    0px 0px 12px rgba(0,0,0,.6); 
+  -webkit-box-shadow: 0px 0px 12px rgba(0,0,0,.6); 
+  box-shadow:         0px 0px 12px rgba(0,0,0,.6);
+}
+.ui-shadow { 
+  -moz-box-shadow:    0px 1px 4px rgba(0,0,0,.3); 
+  -webkit-box-shadow: 0px 1px 4px rgba(0,0,0,.3);
+  box-shadow:         0px 1px 4px rgba(0,0,0,.3); 
+}
+.ui-bar-a .ui-shadow, 
+.ui-bar-b .ui-shadow , 
+.ui-bar-c .ui-shadow  { 
+  -moz-box-shadow:    0px 1px 0 rgba(255,255,255,.3); 
+  -webkit-box-shadow: 0px 1px 0 rgba(255,255,255,.3); 
+  box-shadow:         0px 1px 0 rgba(255,255,255,.3); 
+}
+.ui-shadow-inset { 
+  -moz-box-shadow:    inset 0px 1px 4px rgba(0,0,0,.2); 
+  -webkit-box-shadow: inset 0px 1px 4px rgba(0,0,0,.2); 
+  box-shadow:         inset 0px 1px 4px rgba(0,0,0,.2);
+}
+.ui-icon-shadow { 
+  -moz-box-shadow:    0px 1px 0 rgba(255,255,255,.4);
+  -webkit-box-shadow: 0px 1px 0 rgba(255,255,255,.4);
+  box-shadow:         0px 1px 0 rgba(255,255,255,.4);
+}
+
+/* set focus state last */
+.ui-focus {
+  -moz-box-shadow:    0px 0px 12px #FFBC19;
+  -webkit-box-shadow: 0px 0px 12px #FFBC19;
+  box-shadow:         0px 0px 12px #FFBC19;
+}
+
+/*####################################################################################################################################
+
+  CUSTOM ADDITIONS
+
+####################################################################################################################################*/
+
+
+/* Make inline buttons more rounded */
+.ui-slider.ui-btn-corner-all .ui-slider-handle.ui-btn-corner-all,
+.ui-slider.ui-btn-corner-all .ui-slider-handle.ui-btn-corner-all .ui-btn-inner,
+.ui-slider.ui-btn-corner-all{ 
+  -moz-border-radius:     1em; 
+  -webkit-border-radius:  1em; 
+  border-radius:          1em;
+}
+a.ui-btn.ui-btn-inline.ui-btn-corner-all,
+a.ui-btn.ui-btn-inline.ui-btn-corner-all .ui-btn-inner{
+  -moz-border-radius:     2em;
+  -webkit-border-radius:  2em;
+  border-radius:          2em;
+}
+
+/* Give the search input a stronger border */
+.ui-input-search{
+  border: 1px solid #999;
+}
+
+/* Adjustment for indicator icons inside split list & Search Input - Well I hope so :) */
+.ui-input-search .ui-btn-icon-notext,
+.ui-btn-inner .ui-btn-icon-notext{
+  -moz-border-radius:     1em;
+  -webkit-border-radius:  1em;
+  border-radius:          1em;
+}
+.ui-dialog a.ui-btn-icon-notext.ui-btn-corner-all,
+.ui-dialog a.ui-btn-icon-notext.ui-btn-corner-all .ui-btn-inner.ui-btn-corner-all{
+  -moz-border-radius:     1em; 
+  -webkit-border-radius:  1em; 
+  border-radius:          1em;
+}
+/* inner highlight is janky! */
+.ui-dialog a.ui-btn-icon-notext.ui-btn-corner-all .ui-btn-inner.ui-btn-corner-all{
+  border-top-color: transparent; 
+}
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/external/qunit.css b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/external/qunit.css
new file mode 100644 (file)
index 0000000..72e890a
--- /dev/null
@@ -0,0 +1,231 @@
+/**
+ * QUnit - A JavaScript Unit Testing Framework
+ *
+ * http://docs.jquery.com/QUnit
+ *
+ * Copyright (c) 2011 John Resig, Jörn Zaefferer
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * or GPL (GPL-LICENSE.txt) licenses.
+ */
+
+/** Font Family and Sizes */
+
+#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult {
+       font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
+}
+
+#qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
+#qunit-tests { font-size: smaller; }
+
+
+/** Resets */
+
+#qunit-tests, #qunit-tests ol, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult {
+       margin: 0;
+       padding: 0;
+}
+
+
+/** Header */
+
+#qunit-header {
+       padding: 0.5em 0 0.5em 1em;
+
+       color: #8699a4;
+       background-color: #0d3349;
+
+       font-size: 1.5em;
+       line-height: 1em;
+       font-weight: normal;
+
+       border-radius: 15px 15px 0 0;
+       -moz-border-radius: 15px 15px 0 0;
+       -webkit-border-top-right-radius: 15px;
+       -webkit-border-top-left-radius: 15px;
+}
+
+#qunit-header a {
+       text-decoration: none;
+       color: #c2ccd1;
+}
+
+#qunit-header a:hover,
+#qunit-header a:focus {
+       color: #fff;
+}
+
+#qunit-banner {
+       height: 5px;
+}
+
+#qunit-testrunner-toolbar {
+       padding: 0.5em 0 0.5em 2em;
+       color: #5E740B;
+       background-color: #eee;
+}
+
+#qunit-userAgent {
+       padding: 0.5em 0 0.5em 2.5em;
+       background-color: #2b81af;
+       color: #fff;
+       text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
+}
+
+
+/** Tests: Pass/Fail */
+
+#qunit-tests {
+       list-style-position: inside;
+}
+
+#qunit-tests li {
+       padding: 0.4em 0.5em 0.4em 2.5em;
+       border-bottom: 1px solid #fff;
+       list-style-position: inside;
+}
+
+#qunit-tests.hidepass li.pass, #qunit-tests.hidepass li.running  {
+       display: none;
+}
+
+#qunit-tests li strong {
+       cursor: pointer;
+}
+
+#qunit-tests li a {
+       padding: 0.5em;
+       color: #c2ccd1;
+       text-decoration: none;
+}
+#qunit-tests li a:hover,
+#qunit-tests li a:focus {
+       color: #000;
+}
+
+#qunit-tests ol {
+       margin-top: 0.5em;
+       padding: 0.5em;
+
+       background-color: #fff;
+
+       border-radius: 15px;
+       -moz-border-radius: 15px;
+       -webkit-border-radius: 15px;
+
+       box-shadow: inset 0px 2px 13px #999;
+       -moz-box-shadow: inset 0px 2px 13px #999;
+       -webkit-box-shadow: inset 0px 2px 13px #999;
+}
+
+#qunit-tests table {
+       border-collapse: collapse;
+       margin-top: .2em;
+}
+
+#qunit-tests th {
+       text-align: right;
+       vertical-align: top;
+       padding: 0 .5em 0 0;
+}
+
+#qunit-tests td {
+       vertical-align: top;
+}
+
+#qunit-tests pre {
+       margin: 0;
+       white-space: pre-wrap;
+       word-wrap: break-word;
+}
+
+#qunit-tests del {
+       background-color: #e0f2be;
+       color: #374e0c;
+       text-decoration: none;
+}
+
+#qunit-tests ins {
+       background-color: #ffcaca;
+       color: #500;
+       text-decoration: none;
+}
+
+/*** Test Counts */
+
+#qunit-tests b.counts                       { color: black; }
+#qunit-tests b.passed                       { color: #5E740B; }
+#qunit-tests b.failed                       { color: #710909; }
+
+#qunit-tests li li {
+       margin: 0.5em;
+       padding: 0.4em 0.5em 0.4em 0.5em;
+       background-color: #fff;
+       border-bottom: none;
+       list-style-position: inside;
+}
+
+/*** Passing Styles */
+
+#qunit-tests li li.pass {
+       color: #5E740B;
+       background-color: #fff;
+       border-left: 26px solid #C6E746;
+}
+
+#qunit-tests .pass                          { color: #528CE0; background-color: #D2E0E6; }
+#qunit-tests .pass .test-name               { color: #366097; }
+
+#qunit-tests .pass .test-actual,
+#qunit-tests .pass .test-expected           { color: #999999; }
+
+#qunit-banner.qunit-pass                    { background-color: #C6E746; }
+
+/*** Failing Styles */
+
+#qunit-tests li li.fail {
+       color: #710909;
+       background-color: #fff;
+       border-left: 26px solid #EE5757;
+       white-space: pre;
+}
+
+#qunit-tests > li:last-child {
+       border-radius: 0 0 15px 15px;
+       -moz-border-radius: 0 0 15px 15px;
+       -webkit-border-bottom-right-radius: 15px;
+       -webkit-border-bottom-left-radius: 15px;
+}
+
+#qunit-tests .fail                          { color: #000000; background-color: #EE5757; }
+#qunit-tests .fail .test-name,
+#qunit-tests .fail .module-name             { color: #000000; }
+
+#qunit-tests .fail .test-actual             { color: #EE5757; }
+#qunit-tests .fail .test-expected           { color: green;   }
+
+#qunit-banner.qunit-fail                    { background-color: #EE5757; }
+
+
+/** Result */
+
+#qunit-testresult {
+       padding: 0.5em 0.5em 0.5em 2.5em;
+
+       color: #2b81af;
+       background-color: #D2E0E6;
+
+       border-bottom: 1px solid white;
+}
+
+/** Fixture */
+
+#qunit-fixture {
+       position: absolute;
+       top: -10000px;
+       left: -10000px;
+}
+
+[data-role='page'], [data-role='dialog'] {
+  position: absolute !important;
+  top: -10000px !important;
+}
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/external/qunit.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/external/qunit.js
new file mode 100644 (file)
index 0000000..193d52d
--- /dev/null
@@ -0,0 +1,1552 @@
+/**
+ * QUnit - A JavaScript Unit Testing Framework
+ *
+ * http://docs.jquery.com/QUnit
+ *
+ * Copyright (c) 2011 John Resig, Jörn Zaefferer
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * or GPL (GPL-LICENSE.txt) licenses.
+ */
+
+(function(window) {
+
+var defined = {
+       setTimeout: typeof window.setTimeout !== "undefined",
+       sessionStorage: (function() {
+               try {
+                       return !!sessionStorage.getItem;
+               } catch(e) {
+                       return false;
+               }
+       })()
+};
+
+var testId = 0;
+
+var Test = function(name, testName, expected, testEnvironmentArg, async, callback) {
+       this.name = name;
+       this.testName = testName;
+       this.expected = expected;
+       this.testEnvironmentArg = testEnvironmentArg;
+       this.async = async;
+       this.callback = callback;
+       this.assertions = [];
+};
+Test.prototype = {
+       init: function() {
+               var tests = id("qunit-tests");
+               if (tests) {
+                       var b = document.createElement("strong");
+                               b.innerHTML = "Running " + this.name;
+                       var li = document.createElement("li");
+                               li.appendChild( b );
+                               li.className = "running";
+                               li.id = this.id = "test-output" + testId++;
+                       tests.appendChild( li );
+               }
+       },
+       setup: function() {
+               if (this.module != config.previousModule) {
+                       if ( config.previousModule ) {
+                               runLoggingCallbacks('moduleDone', QUnit, {
+                                       name: config.previousModule,
+                                       failed: config.moduleStats.bad,
+                                       passed: config.moduleStats.all - config.moduleStats.bad,
+                                       total: config.moduleStats.all
+                               } );
+                       }
+                       config.previousModule = this.module;
+                       config.moduleStats = { all: 0, bad: 0 };
+                       runLoggingCallbacks( 'moduleStart', QUnit, {
+                               name: this.module
+                       } );
+               }
+
+               config.current = this;
+               this.testEnvironment = extend({
+                       setup: function() {},
+                       teardown: function() {}
+               }, this.moduleTestEnvironment);
+               if (this.testEnvironmentArg) {
+                       extend(this.testEnvironment, this.testEnvironmentArg);
+               }
+
+               runLoggingCallbacks( 'testStart', QUnit, {
+                       name: this.testName,
+                       module: this.module
+               });
+
+               // allow utility functions to access the current test environment
+               // TODO why??
+               QUnit.current_testEnvironment = this.testEnvironment;
+
+               try {
+                       if ( !config.pollution ) {
+                               saveGlobal();
+                       }
+
+                       this.testEnvironment.setup.call(this.testEnvironment);
+               } catch(e) {
+                       QUnit.ok( false, "Setup failed on " + this.testName + ": " + e.message );
+               }
+       },
+       run: function() {
+               if ( this.async ) {
+                       QUnit.stop();
+               }
+
+               if ( config.notrycatch ) {
+                       this.callback.call(this.testEnvironment);
+                       return;
+               }
+               try {
+                       this.callback.call(this.testEnvironment);
+               } catch(e) {
+                       fail("Test " + this.testName + " died, exception and test follows", e, this.callback);
+                       QUnit.ok( false, "Died on test #" + (this.assertions.length + 1) + ": " + e.message + " - " + QUnit.jsDump.parse(e) );
+                       // else next test will carry the responsibility
+                       saveGlobal();
+
+                       // Restart the tests if they're blocking
+                       if ( config.blocking ) {
+                               start();
+                       }
+               }
+       },
+       teardown: function() {
+               try {
+                       this.testEnvironment.teardown.call(this.testEnvironment);
+                       checkPollution();
+               } catch(e) {
+                       QUnit.ok( false, "Teardown failed on " + this.testName + ": " + e.message );
+               }
+       },
+       finish: function() {
+               if ( this.expected && this.expected != this.assertions.length ) {
+                       QUnit.ok( false, "Expected " + this.expected + " assertions, but " + this.assertions.length + " were run" );
+               }
+
+               var good = 0, bad = 0,
+                       tests = id("qunit-tests");
+
+               config.stats.all += this.assertions.length;
+               config.moduleStats.all += this.assertions.length;
+
+               if ( tests ) {
+                       var ol = document.createElement("ol");
+
+                       for ( var i = 0; i < this.assertions.length; i++ ) {
+                               var assertion = this.assertions[i];
+
+                               var li = document.createElement("li");
+                               li.className = assertion.result ? "pass" : "fail";
+                               li.innerHTML = assertion.message || (assertion.result ? "okay" : "failed");
+                               ol.appendChild( li );
+
+                               if ( assertion.result ) {
+                                       good++;
+                               } else {
+                                       bad++;
+                                       config.stats.bad++;
+                                       config.moduleStats.bad++;
+                               }
+                       }
+
+                       // store result when possible
+                       if ( QUnit.config.reorder && defined.sessionStorage ) {
+                               if (bad) {
+                                       sessionStorage.setItem("qunit-" + this.module + "-" + this.testName, bad);
+                               } else {
+                                       sessionStorage.removeItem("qunit-" + this.module + "-" + this.testName);
+                               }
+                       }
+
+                       if (bad == 0) {
+                               ol.style.display = "none";
+                       }
+
+                       var b = document.createElement("strong");
+                       b.innerHTML = this.name + " <b class='counts'>(<b class='failed'>" + bad + "</b>, <b class='passed'>" + good + "</b>, " + this.assertions.length + ")</b>";
+
+                       var a = document.createElement("a");
+                       a.innerHTML = "Rerun";
+                       a.href = QUnit.url({ filter: getText([b]).replace(/\([^)]+\)$/, "").replace(/(^\s*|\s*$)/g, "") });
+
+                       addEvent(b, "click", function() {
+                               var next = b.nextSibling.nextSibling,
+                                       display = next.style.display;
+                               next.style.display = display === "none" ? "block" : "none";
+                       });
+
+                       addEvent(b, "dblclick", function(e) {
+                               var target = e && e.target ? e.target : window.event.srcElement;
+                               if ( target.nodeName.toLowerCase() == "span" || target.nodeName.toLowerCase() == "b" ) {
+                                       target = target.parentNode;
+                               }
+                               if ( window.location && target.nodeName.toLowerCase() === "strong" ) {
+                                       window.location = QUnit.url({ filter: getText([target]).replace(/\([^)]+\)$/, "").replace(/(^\s*|\s*$)/g, "") });
+                               }
+                       });
+
+                       var li = id(this.id);
+                       li.className = bad ? "fail" : "pass";
+                       li.removeChild( li.firstChild );
+                       li.appendChild( b );
+                       li.appendChild( a );
+                       li.appendChild( ol );
+
+               } else {
+                       for ( var i = 0; i < this.assertions.length; i++ ) {
+                               if ( !this.assertions[i].result ) {
+                                       bad++;
+                                       config.stats.bad++;
+                                       config.moduleStats.bad++;
+                               }
+                       }
+               }
+
+               try {
+                       QUnit.reset();
+               } catch(e) {
+                       fail("reset() failed, following Test " + this.testName + ", exception and reset fn follows", e, QUnit.reset);
+               }
+
+               runLoggingCallbacks( 'testDone', QUnit, {
+                       name: this.testName,
+                       module: this.module,
+                       failed: bad,
+                       passed: this.assertions.length - bad,
+                       total: this.assertions.length
+               } );
+       },
+
+       queue: function() {
+               var test = this;
+               synchronize(function() {
+                       test.init();
+               });
+               function run() {
+                       // each of these can by async
+                       synchronize(function() {
+                               test.setup();
+                       });
+                       synchronize(function() {
+                               test.run();
+                       });
+                       synchronize(function() {
+                               test.teardown();
+                       });
+                       synchronize(function() {
+                               test.finish();
+                       });
+               }
+               // defer when previous test run passed, if storage is available
+               var bad = QUnit.config.reorder && defined.sessionStorage && +sessionStorage.getItem("qunit-" + this.module + "-" + this.testName);
+               if (bad) {
+                       run();
+               } else {
+                       synchronize(run);
+               };
+       }
+
+};
+
+var QUnit = {
+
+       // call on start of module test to prepend name to all tests
+       module: function(name, testEnvironment) {
+               config.currentModule = name;
+               config.currentModuleTestEnviroment = testEnvironment;
+       },
+
+       asyncTest: function(testName, expected, callback) {
+               if ( arguments.length === 2 ) {
+                       callback = expected;
+                       expected = 0;
+               }
+
+               QUnit.test(testName, expected, callback, true);
+       },
+
+       test: function(testName, expected, callback, async) {
+               var name = '<span class="test-name">' + testName + '</span>', testEnvironmentArg;
+
+               if ( arguments.length === 2 ) {
+                       callback = expected;
+                       expected = null;
+               }
+               // is 2nd argument a testEnvironment?
+               if ( expected && typeof expected === 'object') {
+                       testEnvironmentArg = expected;
+                       expected = null;
+               }
+
+               if ( config.currentModule ) {
+                       name = '<span class="module-name">' + config.currentModule + "</span>: " + name;
+               }
+
+               if ( !validTest(config.currentModule + ": " + testName) ) {
+                       return;
+               }
+
+               var test = new Test(name, testName, expected, testEnvironmentArg, async, callback);
+               test.module = config.currentModule;
+               test.moduleTestEnvironment = config.currentModuleTestEnviroment;
+               test.queue();
+       },
+
+       /**
+        * Specify the number of expected assertions to gurantee that failed test (no assertions are run at all) don't slip through.
+        */
+       expect: function(asserts) {
+               config.current.expected = asserts;
+       },
+
+       /**
+        * Asserts true.
+        * @example ok( "asdfasdf".length > 5, "There must be at least 5 chars" );
+        */
+       ok: function(a, msg) {
+               a = !!a;
+               var details = {
+                       result: a,
+                       message: msg
+               };
+               msg = escapeInnerText(msg);
+               runLoggingCallbacks( 'log', QUnit, details );
+               config.current.assertions.push({
+                       result: a,
+                       message: msg
+               });
+       },
+
+       /**
+        * Checks that the first two arguments are equal, with an optional message.
+        * Prints out both actual and expected values.
+        *
+        * Prefered to ok( actual == expected, message )
+        *
+        * @example equal( format("Received {0} bytes.", 2), "Received 2 bytes." );
+        *
+        * @param Object actual
+        * @param Object expected
+        * @param String message (optional)
+        */
+       equal: function(actual, expected, message) {
+               QUnit.push(expected == actual, actual, expected, message);
+       },
+
+       notEqual: function(actual, expected, message) {
+               QUnit.push(expected != actual, actual, expected, message);
+       },
+
+       deepEqual: function(actual, expected, message) {
+               QUnit.push(QUnit.equiv(actual, expected), actual, expected, message);
+       },
+
+       notDeepEqual: function(actual, expected, message) {
+               QUnit.push(!QUnit.equiv(actual, expected), actual, expected, message);
+       },
+
+       strictEqual: function(actual, expected, message) {
+               QUnit.push(expected === actual, actual, expected, message);
+       },
+
+       notStrictEqual: function(actual, expected, message) {
+               QUnit.push(expected !== actual, actual, expected, message);
+       },
+
+       raises: function(block, expected, message) {
+               var actual, ok = false;
+
+               if (typeof expected === 'string') {
+                       message = expected;
+                       expected = null;
+               }
+
+               try {
+                       block();
+               } catch (e) {
+                       actual = e;
+               }
+
+               if (actual) {
+                       // we don't want to validate thrown error
+                       if (!expected) {
+                               ok = true;
+                       // expected is a regexp
+                       } else if (QUnit.objectType(expected) === "regexp") {
+                               ok = expected.test(actual);
+                       // expected is a constructor
+                       } else if (actual instanceof expected) {
+                               ok = true;
+                       // expected is a validation function which returns true is validation passed
+                       } else if (expected.call({}, actual) === true) {
+                               ok = true;
+                       }
+               }
+
+               QUnit.ok(ok, message);
+       },
+
+       start: function(count) {
+               config.semaphore -= count || 1;
+               if (config.semaphore > 0) {
+                       // don't start until equal number of stop-calls
+                       return;
+               }
+               if (config.semaphore < 0) {
+                       // ignore if start is called more often then stop
+                       config.semaphore = 0;
+               }
+               // A slight delay, to avoid any current callbacks
+               if ( defined.setTimeout ) {
+                       window.setTimeout(function() {
+                               if (config.semaphore > 0) {
+                                       return;
+                               }
+                               if ( config.timeout ) {
+                                       clearTimeout(config.timeout);
+                               }
+
+                               config.blocking = false;
+                               process();
+                       }, 13);
+               } else {
+                       config.blocking = false;
+                       process();
+               }
+       },
+
+       stop: function(count) {
+               config.semaphore += count || 1;
+               config.blocking = true;
+
+               if ( config.testTimeout && defined.setTimeout ) {
+                       clearTimeout(config.timeout);
+                       config.timeout = window.setTimeout(function() {
+                               QUnit.ok( false, "Test timed out" );
+                               config.semaphore = 1;
+                               QUnit.start();
+                       }, config.testTimeout);
+               }
+       }
+};
+
+//We want access to the constructor's prototype
+(function() {
+       function F(){};
+       F.prototype = QUnit;
+       QUnit = new F();
+       //Make F QUnit's constructor so that we can add to the prototype later
+       QUnit.constructor = F;
+})();
+
+// Backwards compatibility, deprecated
+QUnit.equals = QUnit.equal;
+QUnit.same = QUnit.deepEqual;
+
+// Maintain internal state
+var config = {
+       // The queue of tests to run
+       queue: [],
+
+       // block until document ready
+       blocking: true,
+
+       // when enabled, show only failing tests
+       // gets persisted through sessionStorage and can be changed in UI via checkbox
+       hidepassed: false,
+
+       // by default, run previously failed tests first
+       // very useful in combination with "Hide passed tests" checked
+       reorder: true,
+
+       // by default, modify document.title when suite is done
+       altertitle: true,
+
+       urlConfig: ['noglobals', 'notrycatch'],
+
+       //logging callback queues
+       begin: [],
+       done: [],
+       log: [],
+       testStart: [],
+       testDone: [],
+       moduleStart: [],
+       moduleDone: []
+};
+
+// Load paramaters
+(function() {
+       var location = window.location || { search: "", protocol: "file:" },
+               params = location.search.slice( 1 ).split( "&" ),
+               length = params.length,
+               urlParams = {},
+               current;
+
+       if ( params[ 0 ] ) {
+               for ( var i = 0; i < length; i++ ) {
+                       current = params[ i ].split( "=" );
+                       current[ 0 ] = decodeURIComponent( current[ 0 ] );
+                       // allow just a key to turn on a flag, e.g., test.html?noglobals
+                       current[ 1 ] = current[ 1 ] ? decodeURIComponent( current[ 1 ] ) : true;
+                       urlParams[ current[ 0 ] ] = current[ 1 ];
+               }
+       }
+
+       QUnit.urlParams = urlParams;
+       config.filter = urlParams.filter;
+
+       // Figure out if we're running the tests from a server or not
+       QUnit.isLocal = !!(location.protocol === 'file:');
+})();
+
+// Expose the API as global variables, unless an 'exports'
+// object exists, in that case we assume we're in CommonJS
+if ( typeof exports === "undefined" || typeof require === "undefined" ) {
+       extend(window, QUnit);
+       window.QUnit = QUnit;
+} else {
+       extend(exports, QUnit);
+       exports.QUnit = QUnit;
+}
+
+// define these after exposing globals to keep them in these QUnit namespace only
+extend(QUnit, {
+       config: config,
+
+       // Initialize the configuration options
+       init: function() {
+               extend(config, {
+                       stats: { all: 0, bad: 0 },
+                       moduleStats: { all: 0, bad: 0 },
+                       started: +new Date,
+                       updateRate: 1000,
+                       blocking: false,
+                       autostart: true,
+                       autorun: false,
+                       filter: "",
+                       queue: [],
+                       semaphore: 0
+               });
+
+               var tests = id( "qunit-tests" ),
+                       banner = id( "qunit-banner" ),
+                       result = id( "qunit-testresult" );
+
+               if ( tests ) {
+                       tests.innerHTML = "";
+               }
+
+               if ( banner ) {
+                       banner.className = "";
+               }
+
+               if ( result ) {
+                       result.parentNode.removeChild( result );
+               }
+
+               if ( tests ) {
+                       result = document.createElement( "p" );
+                       result.id = "qunit-testresult";
+                       result.className = "result";
+                       tests.parentNode.insertBefore( result, tests );
+                       result.innerHTML = 'Running...<br/>&nbsp;';
+               }
+       },
+
+       /**
+        * Resets the test setup. Useful for tests that modify the DOM.
+        *
+        * If jQuery is available, uses jQuery's html(), otherwise just innerHTML.
+        */
+       reset: function() {
+               if ( window.jQuery ) {
+                       jQuery( "#qunit-fixture" ).html( config.fixture );
+               } else {
+                       var main = id( 'qunit-fixture' );
+                       if ( main ) {
+                               main.innerHTML = config.fixture;
+                       }
+               }
+       },
+
+       /**
+        * Trigger an event on an element.
+        *
+        * @example triggerEvent( document.body, "click" );
+        *
+        * @param DOMElement elem
+        * @param String type
+        */
+       triggerEvent: function( elem, type, event ) {
+               if ( document.createEvent ) {
+                       event = document.createEvent("MouseEvents");
+                       event.initMouseEvent(type, true, true, elem.ownerDocument.defaultView,
+                               0, 0, 0, 0, 0, false, false, false, false, 0, null);
+                       elem.dispatchEvent( event );
+
+               } else if ( elem.fireEvent ) {
+                       elem.fireEvent("on"+type);
+               }
+       },
+
+       // Safe object type checking
+       is: function( type, obj ) {
+               return QUnit.objectType( obj ) == type;
+       },
+
+       objectType: function( obj ) {
+               if (typeof obj === "undefined") {
+                               return "undefined";
+
+               // consider: typeof null === object
+               }
+               if (obj === null) {
+                               return "null";
+               }
+
+               var type = Object.prototype.toString.call( obj )
+                       .match(/^\[object\s(.*)\]$/)[1] || '';
+
+               switch (type) {
+                               case 'Number':
+                                               if (isNaN(obj)) {
+                                                               return "nan";
+                                               } else {
+                                                               return "number";
+                                               }
+                               case 'String':
+                               case 'Boolean':
+                               case 'Array':
+                               case 'Date':
+                               case 'RegExp':
+                               case 'Function':
+                                               return type.toLowerCase();
+               }
+               if (typeof obj === "object") {
+                               return "object";
+               }
+               return undefined;
+       },
+
+       push: function(result, actual, expected, message) {
+               var details = {
+                       result: result,
+                       message: message,
+                       actual: actual,
+                       expected: expected
+               };
+
+               message = escapeInnerText(message) || (result ? "okay" : "failed");
+               message = '<span class="test-message">' + message + "</span>";
+               expected = escapeInnerText(QUnit.jsDump.parse(expected));
+               actual = escapeInnerText(QUnit.jsDump.parse(actual));
+               var output = message + '<table><tr class="test-expected"><th>Expected: </th><td><pre>' + expected + '</pre></td></tr>';
+               if (actual != expected) {
+                       output += '<tr class="test-actual"><th>Result: </th><td><pre>' + actual + '</pre></td></tr>';
+                       output += '<tr class="test-diff"><th>Diff: </th><td><pre>' + QUnit.diff(expected, actual) +'</pre></td></tr>';
+               }
+               if (!result) {
+                       var source = sourceFromStacktrace();
+                       if (source) {
+                               details.source = source;
+                               output += '<tr class="test-source"><th>Source: </th><td><pre>' + escapeInnerText(source) + '</pre></td></tr>';
+                       }
+               }
+               output += "</table>";
+
+               runLoggingCallbacks( 'log', QUnit, details );
+
+               config.current.assertions.push({
+                       result: !!result,
+                       message: output
+               });
+       },
+
+       url: function( params ) {
+               params = extend( extend( {}, QUnit.urlParams ), params );
+               var querystring = "?",
+                       key;
+               for ( key in params ) {
+                       querystring += encodeURIComponent( key ) + "=" +
+                               encodeURIComponent( params[ key ] ) + "&";
+               }
+               return window.location.pathname + querystring.slice( 0, -1 );
+       },
+
+       extend: extend,
+       id: id,
+       addEvent: addEvent
+});
+
+//QUnit.constructor is set to the empty F() above so that we can add to it's prototype later
+//Doing this allows us to tell if the following methods have been overwritten on the actual
+//QUnit object, which is a deprecated way of using the callbacks.
+extend(QUnit.constructor.prototype, {
+       // Logging callbacks; all receive a single argument with the listed properties
+       // run test/logs.html for any related changes
+       begin: registerLoggingCallback('begin'),
+       // done: { failed, passed, total, runtime }
+       done: registerLoggingCallback('done'),
+       // log: { result, actual, expected, message }
+       log: registerLoggingCallback('log'),
+       // testStart: { name }
+       testStart: registerLoggingCallback('testStart'),
+       // testDone: { name, failed, passed, total }
+       testDone: registerLoggingCallback('testDone'),
+       // moduleStart: { name }
+       moduleStart: registerLoggingCallback('moduleStart'),
+       // moduleDone: { name, failed, passed, total }
+       moduleDone: registerLoggingCallback('moduleDone')
+});
+
+if ( typeof document === "undefined" || document.readyState === "complete" ) {
+       config.autorun = true;
+}
+
+QUnit.load = function() {
+       runLoggingCallbacks( 'begin', QUnit, {} );
+
+       // Initialize the config, saving the execution queue
+       var oldconfig = extend({}, config);
+       QUnit.init();
+       extend(config, oldconfig);
+
+       config.blocking = false;
+
+       var urlConfigHtml = '', len = config.urlConfig.length;
+       for ( var i = 0, val; i < len, val = config.urlConfig[i]; i++ ) {
+               config[val] = QUnit.urlParams[val];
+               urlConfigHtml += '<label><input name="' + val + '" type="checkbox"' + ( config[val] ? ' checked="checked"' : '' ) + '>' + val + '</label>';
+       }
+
+       var userAgent = id("qunit-userAgent");
+       if ( userAgent ) {
+               userAgent.innerHTML = navigator.userAgent;
+       }
+       var banner = id("qunit-header");
+       if ( banner ) {
+               banner.innerHTML = '<a href="' + QUnit.url({ filter: undefined }) + '"> ' + banner.innerHTML + '</a> ' + urlConfigHtml;
+               addEvent( banner, "change", function( event ) {
+                       var params = {};
+                       params[ event.target.name ] = event.target.checked ? true : undefined;
+                       window.location = QUnit.url( params );
+               });
+       }
+
+       var toolbar = id("qunit-testrunner-toolbar");
+       if ( toolbar ) {
+               var filter = document.createElement("input");
+               filter.type = "checkbox";
+               filter.id = "qunit-filter-pass";
+               addEvent( filter, "click", function() {
+                       var ol = document.getElementById("qunit-tests");
+                       if ( filter.checked ) {
+                               ol.className = ol.className + " hidepass";
+                       } else {
+                               var tmp = " " + ol.className.replace( /[\n\t\r]/g, " " ) + " ";
+                               ol.className = tmp.replace(/ hidepass /, " ");
+                       }
+                       if ( defined.sessionStorage ) {
+                               if (filter.checked) {
+                                       sessionStorage.setItem("qunit-filter-passed-tests", "true");
+                               } else {
+                                       sessionStorage.removeItem("qunit-filter-passed-tests");
+                               }
+                       }
+               });
+               if ( config.hidepassed || defined.sessionStorage && sessionStorage.getItem("qunit-filter-passed-tests") ) {
+                       filter.checked = true;
+                       var ol = document.getElementById("qunit-tests");
+                       ol.className = ol.className + " hidepass";
+               }
+               toolbar.appendChild( filter );
+
+               var label = document.createElement("label");
+               label.setAttribute("for", "qunit-filter-pass");
+               label.innerHTML = "Hide passed tests";
+               toolbar.appendChild( label );
+       }
+
+       var main = id('qunit-fixture');
+       if ( main ) {
+               config.fixture = main.innerHTML;
+       }
+
+       if (config.autostart) {
+               QUnit.start();
+       }
+};
+
+addEvent(window, "load", QUnit.load);
+
+function done() {
+       config.autorun = true;
+
+       // Log the last module results
+       if ( config.currentModule ) {
+               runLoggingCallbacks( 'moduleDone', QUnit, {
+                       name: config.currentModule,
+                       failed: config.moduleStats.bad,
+                       passed: config.moduleStats.all - config.moduleStats.bad,
+                       total: config.moduleStats.all
+               } );
+       }
+
+       var banner = id("qunit-banner"),
+               tests = id("qunit-tests"),
+               runtime = +new Date - config.started,
+               passed = config.stats.all - config.stats.bad,
+               html = [
+                       'Tests completed in ',
+                       runtime,
+                       ' milliseconds.<br/>',
+                       '<span class="passed">',
+                       passed,
+                       '</span> tests of <span class="total">',
+                       config.stats.all,
+                       '</span> passed, <span class="failed">',
+                       config.stats.bad,
+                       '</span> failed.'
+               ].join('');
+
+       if ( banner ) {
+               banner.className = (config.stats.bad ? "qunit-fail" : "qunit-pass");
+       }
+
+       if ( tests ) {
+               id( "qunit-testresult" ).innerHTML = html;
+       }
+
+       if ( config.altertitle && typeof document !== "undefined" && document.title ) {
+               // show ✖ for good, ✔ for bad suite result in title
+               // use escape sequences in case file gets loaded with non-utf-8-charset
+               document.title = [
+                       (config.stats.bad ? "\u2716" : "\u2714"),
+                       document.title.replace(/^[\u2714\u2716] /i, "")
+               ].join(" ");
+       }
+
+       runLoggingCallbacks( 'done', QUnit, {
+               failed: config.stats.bad,
+               passed: passed,
+               total: config.stats.all,
+               runtime: runtime
+       } );
+}
+
+function validTest( name ) {
+       var filter = config.filter,
+               run = false;
+
+       if ( !filter ) {
+               return true;
+       }
+
+       var not = filter.charAt( 0 ) === "!";
+       if ( not ) {
+               filter = filter.slice( 1 );
+       }
+
+       if ( name.indexOf( filter ) !== -1 ) {
+               return !not;
+       }
+
+       if ( not ) {
+               run = true;
+       }
+
+       return run;
+}
+
+// so far supports only Firefox, Chrome and Opera (buggy)
+// could be extended in the future to use something like https://github.com/csnover/TraceKit
+function sourceFromStacktrace() {
+       try {
+               throw new Error();
+       } catch ( e ) {
+               if (e.stacktrace) {
+                       // Opera
+                       return e.stacktrace.split("\n")[6];
+               } else if (e.stack) {
+                       // Firefox, Chrome
+                       return e.stack.split("\n")[4];
+               } else if (e.sourceURL) {
+                       // Safari, PhantomJS
+                       // TODO sourceURL points at the 'throw new Error' line above, useless
+                       //return e.sourceURL + ":" + e.line;
+               }
+       }
+}
+
+function escapeInnerText(s) {
+       if (!s) {
+               return "";
+       }
+       s = s + "";
+       return s.replace(/[\&<>]/g, function(s) {
+               switch(s) {
+                       case "&": return "&amp;";
+                       case "<": return "&lt;";
+                       case ">": return "&gt;";
+                       default: return s;
+               }
+       });
+}
+
+function synchronize( callback ) {
+       config.queue.push( callback );
+
+       if ( config.autorun && !config.blocking ) {
+               process();
+       }
+}
+
+function process() {
+       var start = (new Date()).getTime();
+
+       while ( config.queue.length && !config.blocking ) {
+               if ( config.updateRate <= 0 || (((new Date()).getTime() - start) < config.updateRate) ) {
+                       config.queue.shift()();
+               } else {
+                       window.setTimeout( process, 13 );
+                       break;
+               }
+       }
+       if (!config.blocking && !config.queue.length) {
+               done();
+       }
+}
+
+function saveGlobal() {
+       config.pollution = [];
+
+       if ( config.noglobals ) {
+               for ( var key in window ) {
+                       config.pollution.push( key );
+               }
+       }
+}
+
+function checkPollution( name ) {
+       var old = config.pollution;
+       saveGlobal();
+
+       var newGlobals = diff( config.pollution, old );
+       if ( newGlobals.length > 0 ) {
+               ok( false, "Introduced global variable(s): " + newGlobals.join(", ") );
+       }
+
+       var deletedGlobals = diff( old, config.pollution );
+       if ( deletedGlobals.length > 0 ) {
+               ok( false, "Deleted global variable(s): " + deletedGlobals.join(", ") );
+       }
+}
+
+// returns a new Array with the elements that are in a but not in b
+function diff( a, b ) {
+       var result = a.slice();
+       for ( var i = 0; i < result.length; i++ ) {
+               for ( var j = 0; j < b.length; j++ ) {
+                       if ( result[i] === b[j] ) {
+                               result.splice(i, 1);
+                               i--;
+                               break;
+                       }
+               }
+       }
+       return result;
+}
+
+function fail(message, exception, callback) {
+       if ( typeof console !== "undefined" && console.error && console.warn ) {
+               console.error(message);
+               console.error(exception);
+               console.warn(callback.toString());
+
+       } else if ( window.opera && opera.postError ) {
+               opera.postError(message, exception, callback.toString);
+       }
+}
+
+function extend(a, b) {
+       for ( var prop in b ) {
+               if ( b[prop] === undefined ) {
+                       delete a[prop];
+               } else {
+                       a[prop] = b[prop];
+               }
+       }
+
+       return a;
+}
+
+function addEvent(elem, type, fn) {
+       if ( elem.addEventListener ) {
+               elem.addEventListener( type, fn, false );
+       } else if ( elem.attachEvent ) {
+               elem.attachEvent( "on" + type, fn );
+       } else {
+               fn();
+       }
+}
+
+function id(name) {
+       return !!(typeof document !== "undefined" && document && document.getElementById) &&
+               document.getElementById( name );
+}
+
+function registerLoggingCallback(key){
+       return function(callback){
+               config[key].push( callback );
+       };
+}
+
+// Supports deprecated method of completely overwriting logging callbacks
+function runLoggingCallbacks(key, scope, args) {
+       //debugger;
+       var callbacks;
+       if ( QUnit.hasOwnProperty(key) ) {
+               QUnit[key].call(scope, args);
+       } else {
+               callbacks = config[key];
+               for( var i = 0; i < callbacks.length; i++ ) {
+                       callbacks[i].call( scope, args );
+               }
+       }
+}
+
+// Test for equality any JavaScript type.
+// Author: Philippe Rathé <prathe@gmail.com>
+QUnit.equiv = function () {
+
+       var innerEquiv; // the real equiv function
+       var callers = []; // stack to decide between skip/abort functions
+       var parents = []; // stack to avoiding loops from circular referencing
+
+       // Call the o related callback with the given arguments.
+       function bindCallbacks(o, callbacks, args) {
+               var prop = QUnit.objectType(o);
+               if (prop) {
+                       if (QUnit.objectType(callbacks[prop]) === "function") {
+                               return callbacks[prop].apply(callbacks, args);
+                       } else {
+                               return callbacks[prop]; // or undefined
+                       }
+               }
+       }
+
+       var callbacks = function () {
+
+               // for string, boolean, number and null
+               function useStrictEquality(b, a) {
+                       if (b instanceof a.constructor || a instanceof b.constructor) {
+                               // to catch short annotaion VS 'new' annotation of a
+                               // declaration
+                               // e.g. var i = 1;
+                               // var j = new Number(1);
+                               return a == b;
+                       } else {
+                               return a === b;
+                       }
+               }
+
+               return {
+                       "string" : useStrictEquality,
+                       "boolean" : useStrictEquality,
+                       "number" : useStrictEquality,
+                       "null" : useStrictEquality,
+                       "undefined" : useStrictEquality,
+
+                       "nan" : function(b) {
+                               return isNaN(b);
+                       },
+
+                       "date" : function(b, a) {
+                               return QUnit.objectType(b) === "date"
+                                               && a.valueOf() === b.valueOf();
+                       },
+
+                       "regexp" : function(b, a) {
+                               return QUnit.objectType(b) === "regexp"
+                                               && a.source === b.source && // the regex itself
+                                               a.global === b.global && // and its modifers
+                                                                                                       // (gmi) ...
+                                               a.ignoreCase === b.ignoreCase
+                                               && a.multiline === b.multiline;
+                       },
+
+                       // - skip when the property is a method of an instance (OOP)
+                       // - abort otherwise,
+                       // initial === would have catch identical references anyway
+                       "function" : function() {
+                               var caller = callers[callers.length - 1];
+                               return caller !== Object && typeof caller !== "undefined";
+                       },
+
+                       "array" : function(b, a) {
+                               var i, j, loop;
+                               var len;
+
+                               // b could be an object literal here
+                               if (!(QUnit.objectType(b) === "array")) {
+                                       return false;
+                               }
+
+                               len = a.length;
+                               if (len !== b.length) { // safe and faster
+                                       return false;
+                               }
+
+                               // track reference to avoid circular references
+                               parents.push(a);
+                               for (i = 0; i < len; i++) {
+                                       loop = false;
+                                       for (j = 0; j < parents.length; j++) {
+                                               if (parents[j] === a[i]) {
+                                                       loop = true;// dont rewalk array
+                                               }
+                                       }
+                                       if (!loop && !innerEquiv(a[i], b[i])) {
+                                               parents.pop();
+                                               return false;
+                                       }
+                               }
+                               parents.pop();
+                               return true;
+                       },
+
+                       "object" : function(b, a) {
+                               var i, j, loop;
+                               var eq = true; // unless we can proove it
+                               var aProperties = [], bProperties = []; // collection of
+                                                                                                               // strings
+
+                               // comparing constructors is more strict than using
+                               // instanceof
+                               if (a.constructor !== b.constructor) {
+                                       return false;
+                               }
+
+                               // stack constructor before traversing properties
+                               callers.push(a.constructor);
+                               // track reference to avoid circular references
+                               parents.push(a);
+
+                               for (i in a) { // be strict: don't ensures hasOwnProperty
+                                                               // and go deep
+                                       loop = false;
+                                       for (j = 0; j < parents.length; j++) {
+                                               if (parents[j] === a[i])
+                                                       loop = true; // don't go down the same path
+                                                                                       // twice
+                                       }
+                                       aProperties.push(i); // collect a's properties
+
+                                       if (!loop && !innerEquiv(a[i], b[i])) {
+                                               eq = false;
+                                               break;
+                                       }
+                               }
+
+                               callers.pop(); // unstack, we are done
+                               parents.pop();
+
+                               for (i in b) {
+                                       bProperties.push(i); // collect b's properties
+                               }
+
+                               // Ensures identical properties name
+                               return eq
+                                               && innerEquiv(aProperties.sort(), bProperties
+                                                               .sort());
+                       }
+               };
+       }();
+
+       innerEquiv = function() { // can take multiple arguments
+               var args = Array.prototype.slice.apply(arguments);
+               if (args.length < 2) {
+                       return true; // end transition
+               }
+
+               return (function(a, b) {
+                       if (a === b) {
+                               return true; // catch the most you can
+                       } else if (a === null || b === null || typeof a === "undefined"
+                                       || typeof b === "undefined"
+                                       || QUnit.objectType(a) !== QUnit.objectType(b)) {
+                               return false; // don't lose time with error prone cases
+                       } else {
+                               return bindCallbacks(a, callbacks, [ b, a ]);
+                       }
+
+                       // apply transition with (1..n) arguments
+               })(args[0], args[1])
+                               && arguments.callee.apply(this, args.splice(1,
+                                               args.length - 1));
+       };
+
+       return innerEquiv;
+
+}();
+
+/**
+ * jsDump Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com |
+ * http://flesler.blogspot.com Licensed under BSD
+ * (http://www.opensource.org/licenses/bsd-license.php) Date: 5/15/2008
+ *
+ * @projectDescription Advanced and extensible data dumping for Javascript.
+ * @version 1.0.0
+ * @author Ariel Flesler
+ * @link {http://flesler.blogspot.com/2008/05/jsdump-pretty-dump-of-any-javascript.html}
+ */
+QUnit.jsDump = (function() {
+       function quote( str ) {
+               return '"' + str.toString().replace(/"/g, '\\"') + '"';
+       };
+       function literal( o ) {
+               return o + '';
+       };
+       function join( pre, arr, post ) {
+               var s = jsDump.separator(),
+                       base = jsDump.indent(),
+                       inner = jsDump.indent(1);
+               if ( arr.join )
+                       arr = arr.join( ',' + s + inner );
+               if ( !arr )
+                       return pre + post;
+               return [ pre, inner + arr, base + post ].join(s);
+       };
+       function array( arr, stack ) {
+               var i = arr.length, ret = Array(i);
+               this.up();
+               while ( i-- )
+                       ret[i] = this.parse( arr[i] , undefined , stack);
+               this.down();
+               return join( '[', ret, ']' );
+       };
+
+       var reName = /^function (\w+)/;
+
+       var jsDump = {
+               parse:function( obj, type, stack ) { //type is used mostly internally, you can fix a (custom)type in advance
+                       stack = stack || [ ];
+                       var parser = this.parsers[ type || this.typeOf(obj) ];
+                       type = typeof parser;
+                       var inStack = inArray(obj, stack);
+                       if (inStack != -1) {
+                               return 'recursion('+(inStack - stack.length)+')';
+                       }
+                       //else
+                       if (type == 'function')  {
+                                       stack.push(obj);
+                                       var res = parser.call( this, obj, stack );
+                                       stack.pop();
+                                       return res;
+                       }
+                       // else
+                       return (type == 'string') ? parser : this.parsers.error;
+               },
+               typeOf:function( obj ) {
+                       var type;
+                       if ( obj === null ) {
+                               type = "null";
+                       } else if (typeof obj === "undefined") {
+                               type = "undefined";
+                       } else if (QUnit.is("RegExp", obj)) {
+                               type = "regexp";
+                       } else if (QUnit.is("Date", obj)) {
+                               type = "date";
+                       } else if (QUnit.is("Function", obj)) {
+                               type = "function";
+                       } else if (typeof obj.setInterval !== undefined && typeof obj.document !== "undefined" && typeof obj.nodeType === "undefined") {
+                               type = "window";
+                       } else if (obj.nodeType === 9) {
+                               type = "document";
+                       } else if (obj.nodeType) {
+                               type = "node";
+                       } else if (typeof obj === "object" && typeof obj.length === "number" && obj.length >= 0) {
+                               type = "array";
+                       } else {
+                               type = typeof obj;
+                       }
+                       return type;
+               },
+               separator:function() {
+                       return this.multiline ? this.HTML ? '<br />' : '\n' : this.HTML ? '&nbsp;' : ' ';
+               },
+               indent:function( extra ) {// extra can be a number, shortcut for increasing-calling-decreasing
+                       if ( !this.multiline )
+                               return '';
+                       var chr = this.indentChar;
+                       if ( this.HTML )
+                               chr = chr.replace(/\t/g,'   ').replace(/ /g,'&nbsp;');
+                       return Array( this._depth_ + (extra||0) ).join(chr);
+               },
+               up:function( a ) {
+                       this._depth_ += a || 1;
+               },
+               down:function( a ) {
+                       this._depth_ -= a || 1;
+               },
+               setParser:function( name, parser ) {
+                       this.parsers[name] = parser;
+               },
+               // The next 3 are exposed so you can use them
+               quote:quote,
+               literal:literal,
+               join:join,
+               //
+               _depth_: 1,
+               // This is the list of parsers, to modify them, use jsDump.setParser
+               parsers:{
+                       window: '[Window]',
+                       document: '[Document]',
+                       error:'[ERROR]', //when no parser is found, shouldn't happen
+                       unknown: '[Unknown]',
+                       'null':'null',
+                       'undefined':'undefined',
+                       'function':function( fn ) {
+                               var ret = 'function',
+                                       name = 'name' in fn ? fn.name : (reName.exec(fn)||[])[1];//functions never have name in IE
+                               if ( name )
+                                       ret += ' ' + name;
+                               ret += '(';
+
+                               ret = [ ret, QUnit.jsDump.parse( fn, 'functionArgs' ), '){'].join('');
+                               return join( ret, QUnit.jsDump.parse(fn,'functionCode'), '}' );
+                       },
+                       array: array,
+                       nodelist: array,
+                       arguments: array,
+                       object:function( map, stack ) {
+                               var ret = [ ];
+                               QUnit.jsDump.up();
+                               for ( var key in map ) {
+                                   var val = map[key];
+                                       ret.push( QUnit.jsDump.parse(key,'key') + ': ' + QUnit.jsDump.parse(val, undefined, stack));
+                }
+                               QUnit.jsDump.down();
+                               return join( '{', ret, '}' );
+                       },
+                       node:function( node ) {
+                               var open = QUnit.jsDump.HTML ? '&lt;' : '<',
+                                       close = QUnit.jsDump.HTML ? '&gt;' : '>';
+
+                               var tag = node.nodeName.toLowerCase(),
+                                       ret = open + tag;
+
+                               for ( var a in QUnit.jsDump.DOMAttrs ) {
+                                       var val = node[QUnit.jsDump.DOMAttrs[a]];
+                                       if ( val )
+                                               ret += ' ' + a + '=' + QUnit.jsDump.parse( val, 'attribute' );
+                               }
+                               return ret + close + open + '/' + tag + close;
+                       },
+                       functionArgs:function( fn ) {//function calls it internally, it's the arguments part of the function
+                               var l = fn.length;
+                               if ( !l ) return '';
+
+                               var args = Array(l);
+                               while ( l-- )
+                                       args[l] = String.fromCharCode(97+l);//97 is 'a'
+                               return ' ' + args.join(', ') + ' ';
+                       },
+                       key:quote, //object calls it internally, the key part of an item in a map
+                       functionCode:'[code]', //function calls it internally, it's the content of the function
+                       attribute:quote, //node calls it internally, it's an html attribute value
+                       string:quote,
+                       date:quote,
+                       regexp:literal, //regex
+                       number:literal,
+                       'boolean':literal
+               },
+               DOMAttrs:{//attributes to dump from nodes, name=>realName
+                       id:'id',
+                       name:'name',
+                       'class':'className'
+               },
+               HTML:false,//if true, entities are escaped ( <, >, \t, space and \n )
+               indentChar:'  ',//indentation unit
+               multiline:true //if true, items in a collection, are separated by a \n, else just a space.
+       };
+
+       return jsDump;
+})();
+
+// from Sizzle.js
+function getText( elems ) {
+       var ret = "", elem;
+
+       for ( var i = 0; elems[i]; i++ ) {
+               elem = elems[i];
+
+               // Get the text from text nodes and CDATA nodes
+               if ( elem.nodeType === 3 || elem.nodeType === 4 ) {
+                       ret += elem.nodeValue;
+
+               // Traverse everything else, except comment nodes
+               } else if ( elem.nodeType !== 8 ) {
+                       ret += getText( elem.childNodes );
+               }
+       }
+
+       return ret;
+};
+
+//from jquery.js
+function inArray( elem, array ) {
+       if ( array.indexOf ) {
+               return array.indexOf( elem );
+       }
+
+       for ( var i = 0, length = array.length; i < length; i++ ) {
+               if ( array[ i ] === elem ) {
+                       return i;
+               }
+       }
+
+       return -1;
+}
+
+/*
+ * Javascript Diff Algorithm
+ *  By John Resig (http://ejohn.org/)
+ *  Modified by Chu Alan "sprite"
+ *
+ * Released under the MIT license.
+ *
+ * More Info:
+ *  http://ejohn.org/projects/javascript-diff-algorithm/
+ *
+ * Usage: QUnit.diff(expected, actual)
+ *
+ * QUnit.diff("the quick brown fox jumped over", "the quick fox jumps over") == "the  quick <del>brown </del> fox <del>jumped </del><ins>jumps </ins> over"
+ */
+QUnit.diff = (function() {
+       function diff(o, n) {
+               var ns = {};
+               var os = {};
+
+               for (var i = 0; i < n.length; i++) {
+                       if (ns[n[i]] == null)
+                               ns[n[i]] = {
+                                       rows: [],
+                                       o: null
+                               };
+                       ns[n[i]].rows.push(i);
+               }
+
+               for (var i = 0; i < o.length; i++) {
+                       if (os[o[i]] == null)
+                               os[o[i]] = {
+                                       rows: [],
+                                       n: null
+                               };
+                       os[o[i]].rows.push(i);
+               }
+
+               for (var i in ns) {
+                       if (ns[i].rows.length == 1 && typeof(os[i]) != "undefined" && os[i].rows.length == 1) {
+                               n[ns[i].rows[0]] = {
+                                       text: n[ns[i].rows[0]],
+                                       row: os[i].rows[0]
+                               };
+                               o[os[i].rows[0]] = {
+                                       text: o[os[i].rows[0]],
+                                       row: ns[i].rows[0]
+                               };
+                       }
+               }
+
+               for (var i = 0; i < n.length - 1; i++) {
+                       if (n[i].text != null && n[i + 1].text == null && n[i].row + 1 < o.length && o[n[i].row + 1].text == null &&
+                       n[i + 1] == o[n[i].row + 1]) {
+                               n[i + 1] = {
+                                       text: n[i + 1],
+                                       row: n[i].row + 1
+                               };
+                               o[n[i].row + 1] = {
+                                       text: o[n[i].row + 1],
+                                       row: i + 1
+                               };
+                       }
+               }
+
+               for (var i = n.length - 1; i > 0; i--) {
+                       if (n[i].text != null && n[i - 1].text == null && n[i].row > 0 && o[n[i].row - 1].text == null &&
+                       n[i - 1] == o[n[i].row - 1]) {
+                               n[i - 1] = {
+                                       text: n[i - 1],
+                                       row: n[i].row - 1
+                               };
+                               o[n[i].row - 1] = {
+                                       text: o[n[i].row - 1],
+                                       row: i - 1
+                               };
+                       }
+               }
+
+               return {
+                       o: o,
+                       n: n
+               };
+       }
+
+       return function(o, n) {
+               o = o.replace(/\s+$/, '');
+               n = n.replace(/\s+$/, '');
+               var out = diff(o == "" ? [] : o.split(/\s+/), n == "" ? [] : n.split(/\s+/));
+
+               var str = "";
+
+               var oSpace = o.match(/\s+/g);
+               if (oSpace == null) {
+                       oSpace = [" "];
+               }
+               else {
+                       oSpace.push(" ");
+               }
+               var nSpace = n.match(/\s+/g);
+               if (nSpace == null) {
+                       nSpace = [" "];
+               }
+               else {
+                       nSpace.push(" ");
+               }
+
+               if (out.n.length == 0) {
+                       for (var i = 0; i < out.o.length; i++) {
+                               str += '<del>' + out.o[i] + oSpace[i] + "</del>";
+                       }
+               }
+               else {
+                       if (out.n[0].text == null) {
+                               for (n = 0; n < out.o.length && out.o[n].text == null; n++) {
+                                       str += '<del>' + out.o[n] + oSpace[n] + "</del>";
+                               }
+                       }
+
+                       for (var i = 0; i < out.n.length; i++) {
+                               if (out.n[i].text == null) {
+                                       str += '<ins>' + out.n[i] + nSpace[i] + "</ins>";
+                               }
+                               else {
+                                       var pre = "";
+
+                                       for (n = out.n[i].row + 1; n < out.o.length && out.o[n].text == null; n++) {
+                                               pre += '<del>' + out.o[n] + oSpace[n] + "</del>";
+                                       }
+                                       str += " " + out.n[i].text + nSpace[i] + pre;
+                               }
+                       }
+               }
+
+               return str;
+       };
+})();
+
+})(this);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/external/r.js/dist/r.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/external/r.js/dist/r.js
new file mode 100644 (file)
index 0000000..9741071
--- /dev/null
@@ -0,0 +1,9862 @@
+/**
+ * @license r.js 1.0.7+ Fri, 30 Mar 2012 00:24:35 GMT Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+
+/*
+ * This is a bootstrap script to allow running RequireJS in the command line
+ * in either a Java/Rhino or Node environment. It is modified by the top-level
+ * dist.js file to inject other files to completely enable this file. It is
+ * the shell of the r.js file.
+ */
+
+/*jslint evil: true, nomen: true */
+/*global readFile: true, process: false, Packages: false, print: false,
+console: false, java: false, module: false, requirejsVars */
+
+var requirejs, require, define;
+(function (console, args, readFileFunc) {
+
+    var fileName, env, fs, vm, path, exec, rhinoContext, dir, nodeRequire,
+        nodeDefine, exists, reqMain, loadedOptimizedLib,
+        version = '1.0.7+ Fri, 30 Mar 2012 00:24:35 GMT',
+        jsSuffixRegExp = /\.js$/,
+        commandOption = '',
+        useLibLoaded = {},
+        //Used by jslib/rhino/args.js
+        rhinoArgs = args,
+        readFile = typeof readFileFunc !== 'undefined' ? readFileFunc : null;
+
+    function showHelp() {
+        console.log('See https://github.com/jrburke/r.js for usage.');
+    }
+
+    if (typeof Packages !== 'undefined') {
+        env = 'rhino';
+
+        fileName = args[0];
+
+        if (fileName && fileName.indexOf('-') === 0) {
+            commandOption = fileName.substring(1);
+            fileName = args[1];
+        }
+
+        //Set up execution context.
+        rhinoContext = Packages.org.mozilla.javascript.ContextFactory.getGlobal().enterContext();
+
+        exec = function (string, name) {
+            return rhinoContext.evaluateString(this, string, name, 0, null);
+        };
+
+        exists = function (fileName) {
+            return (new java.io.File(fileName)).exists();
+        };
+
+        //Define a console.log for easier logging. Don't
+        //get fancy though.
+        if (typeof console === 'undefined') {
+            console = {
+                log: function () {
+                    print.apply(undefined, arguments);
+                }
+            };
+        }
+    } else if (typeof process !== 'undefined') {
+        env = 'node';
+
+        //Get the fs module via Node's require before it
+        //gets replaced. Used in require/node.js
+        fs = require('fs');
+        vm = require('vm');
+        path = require('path');
+        nodeRequire = require;
+        nodeDefine = define;
+        reqMain = require.main;
+
+        //Temporarily hide require and define to allow require.js to define
+        //them.
+        require = undefined;
+        define = undefined;
+
+        readFile = function (path) {
+            return fs.readFileSync(path, 'utf8');
+        };
+
+        exec = function (string, name) {
+            return vm.runInThisContext(this.requirejsVars.require.makeNodeWrapper(string),
+                                       name ? fs.realpathSync(name) : '');
+        };
+
+        exists = function (fileName) {
+            return path.existsSync(fileName);
+        };
+
+
+        fileName = process.argv[2];
+
+        if (fileName && fileName.indexOf('-') === 0) {
+            commandOption = fileName.substring(1);
+            fileName = process.argv[3];
+        }
+    }
+
+    /** vim: et:ts=4:sw=4:sts=4
+ * @license RequireJS 1.0.7 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+/*jslint strict: false, plusplus: false, sub: true */
+/*global window, navigator, document, importScripts, jQuery, setTimeout, opera */
+
+
+(function () {
+    //Change this version number for each release.
+    var version = "1.0.7",
+        commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
+        cjsRequireRegExp = /require\(\s*["']([^'"\s]+)["']\s*\)/g,
+        currDirRegExp = /^\.\//,
+        jsSuffixRegExp = /\.js$/,
+        ostring = Object.prototype.toString,
+        ap = Array.prototype,
+        aps = ap.slice,
+        apsp = ap.splice,
+        isBrowser = !!(typeof window !== "undefined" && navigator && document),
+        isWebWorker = !isBrowser && typeof importScripts !== "undefined",
+        //PS3 indicates loaded and complete, but need to wait for complete
+        //specifically. Sequence is "loading", "loaded", execution,
+        // then "complete". The UA check is unfortunate, but not sure how
+        //to feature test w/o causing perf issues.
+        readyRegExp = isBrowser && navigator.platform === 'PLAYSTATION 3' ?
+                      /^complete$/ : /^(complete|loaded)$/,
+        defContextName = "_",
+        //Oh the tragedy, detecting opera. See the usage of isOpera for reason.
+        isOpera = typeof opera !== "undefined" && opera.toString() === "[object Opera]",
+        empty = {},
+        contexts = {},
+        globalDefQueue = [],
+        interactiveScript = null,
+        checkLoadedDepth = 0,
+        useInteractive = false,
+        reservedDependencies = {
+            require: true,
+            module: true,
+            exports: true
+        },
+        req, cfg = {}, currentlyAddingScript, s, head, baseElement, scripts, script,
+        src, subPath, mainScript, dataMain, globalI, ctx, jQueryCheck, checkLoadedTimeoutId;
+
+    function isFunction(it) {
+        return ostring.call(it) === "[object Function]";
+    }
+
+    function isArray(it) {
+        return ostring.call(it) === "[object Array]";
+    }
+
+    /**
+     * Simple function to mix in properties from source into target,
+     * but only if target does not already have a property of the same name.
+     * This is not robust in IE for transferring methods that match
+     * Object.prototype names, but the uses of mixin here seem unlikely to
+     * trigger a problem related to that.
+     */
+    function mixin(target, source, force) {
+        for (var prop in source) {
+            if (!(prop in empty) && (!(prop in target) || force)) {
+                target[prop] = source[prop];
+            }
+        }
+        return req;
+    }
+
+    /**
+     * Constructs an error with a pointer to an URL with more information.
+     * @param {String} id the error ID that maps to an ID on a web page.
+     * @param {String} message human readable error.
+     * @param {Error} [err] the original error, if there is one.
+     *
+     * @returns {Error}
+     */
+    function makeError(id, msg, err) {
+        var e = new Error(msg + '\nhttp://requirejs.org/docs/errors.html#' + id);
+        if (err) {
+            e.originalError = err;
+        }
+        return e;
+    }
+
+    /**
+     * Used to set up package paths from a packagePaths or packages config object.
+     * @param {Object} pkgs the object to store the new package config
+     * @param {Array} currentPackages an array of packages to configure
+     * @param {String} [dir] a prefix dir to use.
+     */
+    function configurePackageDir(pkgs, currentPackages, dir) {
+        var i, location, pkgObj;
+
+        for (i = 0; (pkgObj = currentPackages[i]); i++) {
+            pkgObj = typeof pkgObj === "string" ? { name: pkgObj } : pkgObj;
+            location = pkgObj.location;
+
+            //Add dir to the path, but avoid paths that start with a slash
+            //or have a colon (indicates a protocol)
+            if (dir && (!location || (location.indexOf("/") !== 0 && location.indexOf(":") === -1))) {
+                location = dir + "/" + (location || pkgObj.name);
+            }
+
+            //Create a brand new object on pkgs, since currentPackages can
+            //be passed in again, and config.pkgs is the internal transformed
+            //state for all package configs.
+            pkgs[pkgObj.name] = {
+                name: pkgObj.name,
+                location: location || pkgObj.name,
+                //Remove leading dot in main, so main paths are normalized,
+                //and remove any trailing .js, since different package
+                //envs have different conventions: some use a module name,
+                //some use a file name.
+                main: (pkgObj.main || "main")
+                      .replace(currDirRegExp, '')
+                      .replace(jsSuffixRegExp, '')
+            };
+        }
+    }
+
+    /**
+     * jQuery 1.4.3-1.5.x use a readyWait/ready() pairing to hold DOM
+     * ready callbacks, but jQuery 1.6 supports a holdReady() API instead.
+     * At some point remove the readyWait/ready() support and just stick
+     * with using holdReady.
+     */
+    function jQueryHoldReady($, shouldHold) {
+        if ($.holdReady) {
+            $.holdReady(shouldHold);
+        } else if (shouldHold) {
+            $.readyWait += 1;
+        } else {
+            $.ready(true);
+        }
+    }
+
+    if (typeof define !== "undefined") {
+        //If a define is already in play via another AMD loader,
+        //do not overwrite.
+        return;
+    }
+
+    if (typeof requirejs !== "undefined") {
+        if (isFunction(requirejs)) {
+            //Do not overwrite and existing requirejs instance.
+            return;
+        } else {
+            cfg = requirejs;
+            requirejs = undefined;
+        }
+    }
+
+    //Allow for a require config object
+    if (typeof require !== "undefined" && !isFunction(require)) {
+        //assume it is a config object.
+        cfg = require;
+        require = undefined;
+    }
+
+    /**
+     * Creates a new context for use in require and define calls.
+     * Handle most of the heavy lifting. Do not want to use an object
+     * with prototype here to avoid using "this" in require, in case it
+     * needs to be used in more super secure envs that do not want this.
+     * Also there should not be that many contexts in the page. Usually just
+     * one for the default context, but could be extra for multiversion cases
+     * or if a package needs a special context for a dependency that conflicts
+     * with the standard context.
+     */
+    function newContext(contextName) {
+        var context, resume,
+            config = {
+                waitSeconds: 7,
+                baseUrl: "./",
+                paths: {},
+                pkgs: {},
+                catchError: {}
+            },
+            defQueue = [],
+            specified = {
+                "require": true,
+                "exports": true,
+                "module": true
+            },
+            urlMap = {},
+            defined = {},
+            loaded = {},
+            waiting = {},
+            waitAry = [],
+            urlFetched = {},
+            managerCounter = 0,
+            managerCallbacks = {},
+            plugins = {},
+            //Used to indicate which modules in a build scenario
+            //need to be full executed.
+            needFullExec = {},
+            fullExec = {},
+            resumeDepth = 0;
+
+        /**
+         * Trims the . and .. from an array of path segments.
+         * It will keep a leading path segment if a .. will become
+         * the first path segment, to help with module name lookups,
+         * which act like paths, but can be remapped. But the end result,
+         * all paths that use this function should look normalized.
+         * NOTE: this method MODIFIES the input array.
+         * @param {Array} ary the array of path segments.
+         */
+        function trimDots(ary) {
+            var i, part;
+            for (i = 0; (part = ary[i]); i++) {
+                if (part === ".") {
+                    ary.splice(i, 1);
+                    i -= 1;
+                } else if (part === "..") {
+                    if (i === 1 && (ary[2] === '..' || ary[0] === '..')) {
+                        //End of the line. Keep at least one non-dot
+                        //path segment at the front so it can be mapped
+                        //correctly to disk. Otherwise, there is likely
+                        //no path mapping for a path starting with '..'.
+                        //This can still fail, but catches the most reasonable
+                        //uses of ..
+                        break;
+                    } else if (i > 0) {
+                        ary.splice(i - 1, 2);
+                        i -= 2;
+                    }
+                }
+            }
+        }
+
+        /**
+         * Given a relative module name, like ./something, normalize it to
+         * a real name that can be mapped to a path.
+         * @param {String} name the relative name
+         * @param {String} baseName a real name that the name arg is relative
+         * to.
+         * @returns {String} normalized name
+         */
+        function normalize(name, baseName) {
+            var pkgName, pkgConfig;
+
+            //Adjust any relative paths.
+            if (name && name.charAt(0) === ".") {
+                //If have a base name, try to normalize against it,
+                //otherwise, assume it is a top-level require that will
+                //be relative to baseUrl in the end.
+                if (baseName) {
+                    if (config.pkgs[baseName]) {
+                        //If the baseName is a package name, then just treat it as one
+                        //name to concat the name with.
+                        baseName = [baseName];
+                    } else {
+                        //Convert baseName to array, and lop off the last part,
+                        //so that . matches that "directory" and not name of the baseName's
+                        //module. For instance, baseName of "one/two/three", maps to
+                        //"one/two/three.js", but we want the directory, "one/two" for
+                        //this normalization.
+                        baseName = baseName.split("/");
+                        baseName = baseName.slice(0, baseName.length - 1);
+                    }
+
+                    name = baseName.concat(name.split("/"));
+                    trimDots(name);
+
+                    //Some use of packages may use a . path to reference the
+                    //"main" module name, so normalize for that.
+                    pkgConfig = config.pkgs[(pkgName = name[0])];
+                    name = name.join("/");
+                    if (pkgConfig && name === pkgName + '/' + pkgConfig.main) {
+                        name = pkgName;
+                    }
+                } else if (name.indexOf("./") === 0) {
+                    // No baseName, so this is ID is resolved relative
+                    // to baseUrl, pull off the leading dot.
+                    name = name.substring(2);
+                }
+            }
+            return name;
+        }
+
+        /**
+         * Creates a module mapping that includes plugin prefix, module
+         * name, and path. If parentModuleMap is provided it will
+         * also normalize the name via require.normalize()
+         *
+         * @param {String} name the module name
+         * @param {String} [parentModuleMap] parent module map
+         * for the module name, used to resolve relative names.
+         *
+         * @returns {Object}
+         */
+        function makeModuleMap(name, parentModuleMap) {
+            var index = name ? name.indexOf("!") : -1,
+                prefix = null,
+                parentName = parentModuleMap ? parentModuleMap.name : null,
+                originalName = name,
+                normalizedName, url, pluginModule;
+
+            if (index !== -1) {
+                prefix = name.substring(0, index);
+                name = name.substring(index + 1, name.length);
+            }
+
+            if (prefix) {
+                prefix = normalize(prefix, parentName);
+            }
+
+            //Account for relative paths if there is a base name.
+            if (name) {
+                if (prefix) {
+                    pluginModule = defined[prefix];
+                    if (pluginModule && pluginModule.normalize) {
+                        //Plugin is loaded, use its normalize method.
+                        normalizedName = pluginModule.normalize(name, function (name) {
+                            return normalize(name, parentName);
+                        });
+                    } else {
+                        normalizedName = normalize(name, parentName);
+                    }
+                } else {
+                    //A regular module.
+                    normalizedName = normalize(name, parentName);
+
+                    url = urlMap[normalizedName];
+                    if (!url) {
+                        //Calculate url for the module, if it has a name.
+                        //Use name here since nameToUrl also calls normalize,
+                        //and for relative names that are outside the baseUrl
+                        //this causes havoc. Was thinking of just removing
+                        //parentModuleMap to avoid extra normalization, but
+                        //normalize() still does a dot removal because of
+                        //issue #142, so just pass in name here and redo
+                        //the normalization. Paths outside baseUrl are just
+                        //messy to support.
+                        url = context.nameToUrl(name, null, parentModuleMap);
+
+                        //Store the URL mapping for later.
+                        urlMap[normalizedName] = url;
+                    }
+                }
+            }
+
+            return {
+                prefix: prefix,
+                name: normalizedName,
+                parentMap: parentModuleMap,
+                url: url,
+                originalName: originalName,
+                fullName: prefix ? prefix + "!" + (normalizedName || '') : normalizedName
+            };
+        }
+
+        /**
+         * Determine if priority loading is done. If so clear the priorityWait
+         */
+        function isPriorityDone() {
+            var priorityDone = true,
+                priorityWait = config.priorityWait,
+                priorityName, i;
+            if (priorityWait) {
+                for (i = 0; (priorityName = priorityWait[i]); i++) {
+                    if (!loaded[priorityName]) {
+                        priorityDone = false;
+                        break;
+                    }
+                }
+                if (priorityDone) {
+                    delete config.priorityWait;
+                }
+            }
+            return priorityDone;
+        }
+
+        function makeContextModuleFunc(func, relModuleMap, enableBuildCallback) {
+            return function () {
+                //A version of a require function that passes a moduleName
+                //value for items that may need to
+                //look up paths relative to the moduleName
+                var args = aps.call(arguments, 0), lastArg;
+                if (enableBuildCallback &&
+                    isFunction((lastArg = args[args.length - 1]))) {
+                    lastArg.__requireJsBuild = true;
+                }
+                args.push(relModuleMap);
+                return func.apply(null, args);
+            };
+        }
+
+        /**
+         * Helper function that creates a require function object to give to
+         * modules that ask for it as a dependency. It needs to be specific
+         * per module because of the implication of path mappings that may
+         * need to be relative to the module name.
+         */
+        function makeRequire(relModuleMap, enableBuildCallback, altRequire) {
+            var modRequire = makeContextModuleFunc(altRequire || context.require, relModuleMap, enableBuildCallback);
+
+            mixin(modRequire, {
+                nameToUrl: makeContextModuleFunc(context.nameToUrl, relModuleMap),
+                toUrl: makeContextModuleFunc(context.toUrl, relModuleMap),
+                defined: makeContextModuleFunc(context.requireDefined, relModuleMap),
+                specified: makeContextModuleFunc(context.requireSpecified, relModuleMap),
+                isBrowser: req.isBrowser
+            });
+            return modRequire;
+        }
+
+        /*
+         * Queues a dependency for checking after the loader is out of a
+         * "paused" state, for example while a script file is being loaded
+         * in the browser, where it may have many modules defined in it.
+         */
+        function queueDependency(manager) {
+            context.paused.push(manager);
+        }
+
+        function execManager(manager) {
+            var i, ret, err, errFile, errModuleTree,
+                cb = manager.callback,
+                map = manager.map,
+                fullName = map.fullName,
+                args = manager.deps,
+                listeners = manager.listeners,
+                execCb = config.requireExecCb || req.execCb,
+                cjsModule;
+
+            //Call the callback to define the module, if necessary.
+            if (cb && isFunction(cb)) {
+                if (config.catchError.define) {
+                    try {
+                        ret = execCb(fullName, manager.callback, args, defined[fullName]);
+                    } catch (e) {
+                        err = e;
+                    }
+                } else {
+                    ret = execCb(fullName, manager.callback, args, defined[fullName]);
+                }
+
+                if (fullName) {
+                    //If setting exports via "module" is in play,
+                    //favor that over return value and exports. After that,
+                    //favor a non-undefined return value over exports use.
+                    cjsModule = manager.cjsModule;
+                    if (cjsModule &&
+                        cjsModule.exports !== undefined &&
+                        //Make sure it is not already the exports value
+                        cjsModule.exports !== defined[fullName]) {
+                        ret = defined[fullName] = manager.cjsModule.exports;
+                    } else if (ret === undefined && manager.usingExports) {
+                        //exports already set the defined value.
+                        ret = defined[fullName];
+                    } else {
+                        //Use the return value from the function.
+                        defined[fullName] = ret;
+                        //If this module needed full execution in a build
+                        //environment, mark that now.
+                        if (needFullExec[fullName]) {
+                            fullExec[fullName] = true;
+                        }
+                    }
+                }
+            } else if (fullName) {
+                //May just be an object definition for the module. Only
+                //worry about defining if have a module name.
+                ret = defined[fullName] = cb;
+
+                //If this module needed full execution in a build
+                //environment, mark that now.
+                if (needFullExec[fullName]) {
+                    fullExec[fullName] = true;
+                }
+            }
+
+            //Clean up waiting. Do this before error calls, and before
+            //calling back listeners, so that bookkeeping is correct
+            //in the event of an error and error is reported in correct order,
+            //since the listeners will likely have errors if the
+            //onError function does not throw.
+            if (waiting[manager.id]) {
+                delete waiting[manager.id];
+                manager.isDone = true;
+                context.waitCount -= 1;
+                if (context.waitCount === 0) {
+                    //Clear the wait array used for cycles.
+                    waitAry = [];
+                }
+            }
+
+            //Do not need to track manager callback now that it is defined.
+            delete managerCallbacks[fullName];
+
+            //Allow instrumentation like the optimizer to know the order
+            //of modules executed and their dependencies.
+            if (req.onResourceLoad && !manager.placeholder) {
+                req.onResourceLoad(context, map, manager.depArray);
+            }
+
+            if (err) {
+                errFile = (fullName ? makeModuleMap(fullName).url : '') ||
+                           err.fileName || err.sourceURL;
+                errModuleTree = err.moduleTree;
+                err = makeError('defineerror', 'Error evaluating ' +
+                                'module "' + fullName + '" at location "' +
+                                errFile + '":\n' +
+                                err + '\nfileName:' + errFile +
+                                '\nlineNumber: ' + (err.lineNumber || err.line), err);
+                err.moduleName = fullName;
+                err.moduleTree = errModuleTree;
+                return req.onError(err);
+            }
+
+            //Let listeners know of this manager's value.
+            for (i = 0; (cb = listeners[i]); i++) {
+                cb(ret);
+            }
+
+            return undefined;
+        }
+
+        /**
+         * Helper that creates a callack function that is called when a dependency
+         * is ready, and sets the i-th dependency for the manager as the
+         * value passed to the callback generated by this function.
+         */
+        function makeArgCallback(manager, i) {
+            return function (value) {
+                //Only do the work if it has not been done
+                //already for a dependency. Cycle breaking
+                //logic in forceExec could mean this function
+                //is called more than once for a given dependency.
+                if (!manager.depDone[i]) {
+                    manager.depDone[i] = true;
+                    manager.deps[i] = value;
+                    manager.depCount -= 1;
+                    if (!manager.depCount) {
+                        //All done, execute!
+                        execManager(manager);
+                    }
+                }
+            };
+        }
+
+        function callPlugin(pluginName, depManager) {
+            var map = depManager.map,
+                fullName = map.fullName,
+                name = map.name,
+                plugin = plugins[pluginName] ||
+                        (plugins[pluginName] = defined[pluginName]),
+                load;
+
+            //No need to continue if the manager is already
+            //in the process of loading.
+            if (depManager.loading) {
+                return;
+            }
+            depManager.loading = true;
+
+            load = function (ret) {
+                depManager.callback = function () {
+                    return ret;
+                };
+                execManager(depManager);
+
+                loaded[depManager.id] = true;
+
+                //The loading of this plugin
+                //might have placed other things
+                //in the paused queue. In particular,
+                //a loader plugin that depends on
+                //a different plugin loaded resource.
+                resume();
+            };
+
+            //Allow plugins to load other code without having to know the
+            //context or how to "complete" the load.
+            load.fromText = function (moduleName, text) {
+                /*jslint evil: true */
+                var hasInteractive = useInteractive;
+
+                //Indicate a the module is in process of loading.
+                loaded[moduleName] = false;
+                context.scriptCount += 1;
+
+                //Indicate this is not a "real" module, so do not track it
+                //for builds, it does not map to a real file.
+                context.fake[moduleName] = true;
+
+                //Turn off interactive script matching for IE for any define
+                //calls in the text, then turn it back on at the end.
+                if (hasInteractive) {
+                    useInteractive = false;
+                }
+
+                req.exec(text);
+
+                if (hasInteractive) {
+                    useInteractive = true;
+                }
+
+                //Support anonymous modules.
+                context.completeLoad(moduleName);
+            };
+
+            //No need to continue if the plugin value has already been
+            //defined by a build.
+            if (fullName in defined) {
+                load(defined[fullName]);
+            } else {
+                //Use parentName here since the plugin's name is not reliable,
+                //could be some weird string with no path that actually wants to
+                //reference the parentName's path.
+                plugin.load(name, makeRequire(map.parentMap, true, function (deps, cb) {
+                    var moduleDeps = [],
+                        i, dep, depMap;
+                    //Convert deps to full names and hold on to them
+                    //for reference later, when figuring out if they
+                    //are blocked by a circular dependency.
+                    for (i = 0; (dep = deps[i]); i++) {
+                        depMap = makeModuleMap(dep, map.parentMap);
+                        deps[i] = depMap.fullName;
+                        if (!depMap.prefix) {
+                            moduleDeps.push(deps[i]);
+                        }
+                    }
+                    depManager.moduleDeps = (depManager.moduleDeps || []).concat(moduleDeps);
+                    return context.require(deps, cb);
+                }), load, config);
+            }
+        }
+
+        /**
+         * Adds the manager to the waiting queue. Only fully
+         * resolved items should be in the waiting queue.
+         */
+        function addWait(manager) {
+            if (!waiting[manager.id]) {
+                waiting[manager.id] = manager;
+                waitAry.push(manager);
+                context.waitCount += 1;
+            }
+        }
+
+        /**
+         * Function added to every manager object. Created out here
+         * to avoid new function creation for each manager instance.
+         */
+        function managerAdd(cb) {
+            this.listeners.push(cb);
+        }
+
+        function getManager(map, shouldQueue) {
+            var fullName = map.fullName,
+                prefix = map.prefix,
+                plugin = prefix ? plugins[prefix] ||
+                                (plugins[prefix] = defined[prefix]) : null,
+                manager, created, pluginManager, prefixMap;
+
+            if (fullName) {
+                manager = managerCallbacks[fullName];
+            }
+
+            if (!manager) {
+                created = true;
+                manager = {
+                    //ID is just the full name, but if it is a plugin resource
+                    //for a plugin that has not been loaded,
+                    //then add an ID counter to it.
+                    id: (prefix && !plugin ?
+                        (managerCounter++) + '__p@:' : '') +
+                        (fullName || '__r@' + (managerCounter++)),
+                    map: map,
+                    depCount: 0,
+                    depDone: [],
+                    depCallbacks: [],
+                    deps: [],
+                    listeners: [],
+                    add: managerAdd
+                };
+
+                specified[manager.id] = true;
+
+                //Only track the manager/reuse it if this is a non-plugin
+                //resource. Also only track plugin resources once
+                //the plugin has been loaded, and so the fullName is the
+                //true normalized value.
+                if (fullName && (!prefix || plugins[prefix])) {
+                    managerCallbacks[fullName] = manager;
+                }
+            }
+
+            //If there is a plugin needed, but it is not loaded,
+            //first load the plugin, then continue on.
+            if (prefix && !plugin) {
+                prefixMap = makeModuleMap(prefix);
+
+                //Clear out defined and urlFetched if the plugin was previously
+                //loaded/defined, but not as full module (as in a build
+                //situation). However, only do this work if the plugin is in
+                //defined but does not have a module export value.
+                if (prefix in defined && !defined[prefix]) {
+                    delete defined[prefix];
+                    delete urlFetched[prefixMap.url];
+                }
+
+                pluginManager = getManager(prefixMap, true);
+                pluginManager.add(function (plugin) {
+                    //Create a new manager for the normalized
+                    //resource ID and have it call this manager when
+                    //done.
+                    var newMap = makeModuleMap(map.originalName, map.parentMap),
+                        normalizedManager = getManager(newMap, true);
+
+                    //Indicate this manager is a placeholder for the real,
+                    //normalized thing. Important for when trying to map
+                    //modules and dependencies, for instance, in a build.
+                    manager.placeholder = true;
+
+                    normalizedManager.add(function (resource) {
+                        manager.callback = function () {
+                            return resource;
+                        };
+                        execManager(manager);
+                    });
+                });
+            } else if (created && shouldQueue) {
+                //Indicate the resource is not loaded yet if it is to be
+                //queued.
+                loaded[manager.id] = false;
+                queueDependency(manager);
+                addWait(manager);
+            }
+
+            return manager;
+        }
+
+        function main(inName, depArray, callback, relModuleMap) {
+            var moduleMap = makeModuleMap(inName, relModuleMap),
+                name = moduleMap.name,
+                fullName = moduleMap.fullName,
+                manager = getManager(moduleMap),
+                id = manager.id,
+                deps = manager.deps,
+                i, depArg, depName, depPrefix, cjsMod;
+
+            if (fullName) {
+                //If module already defined for context, or already loaded,
+                //then leave. Also leave if jQuery is registering but it does
+                //not match the desired version number in the config.
+                if (fullName in defined || loaded[id] === true ||
+                    (fullName === "jquery" && config.jQuery &&
+                     config.jQuery !== callback().fn.jquery)) {
+                    return;
+                }
+
+                //Set specified/loaded here for modules that are also loaded
+                //as part of a layer, where onScriptLoad is not fired
+                //for those cases. Do this after the inline define and
+                //dependency tracing is done.
+                specified[id] = true;
+                loaded[id] = true;
+
+                //If module is jQuery set up delaying its dom ready listeners.
+                if (fullName === "jquery" && callback) {
+                    jQueryCheck(callback());
+                }
+            }
+
+            //Attach real depArray and callback to the manager. Do this
+            //only if the module has not been defined already, so do this after
+            //the fullName checks above. IE can call main() more than once
+            //for a module.
+            manager.depArray = depArray;
+            manager.callback = callback;
+
+            //Add the dependencies to the deps field, and register for callbacks
+            //on the dependencies.
+            for (i = 0; i < depArray.length; i++) {
+                depArg = depArray[i];
+                //There could be cases like in IE, where a trailing comma will
+                //introduce a null dependency, so only treat a real dependency
+                //value as a dependency.
+                if (depArg) {
+                    //Split the dependency name into plugin and name parts
+                    depArg = makeModuleMap(depArg, (name ? moduleMap : relModuleMap));
+                    depName = depArg.fullName;
+                    depPrefix = depArg.prefix;
+
+                    //Fix the name in depArray to be just the name, since
+                    //that is how it will be called back later.
+                    depArray[i] = depName;
+
+                    //Fast path CommonJS standard dependencies.
+                    if (depName === "require") {
+                        deps[i] = makeRequire(moduleMap);
+                    } else if (depName === "exports") {
+                        //CommonJS module spec 1.1
+                        deps[i] = defined[fullName] = {};
+                        manager.usingExports = true;
+                    } else if (depName === "module") {
+                        //CommonJS module spec 1.1
+                        manager.cjsModule = cjsMod = deps[i] = {
+                            id: name,
+                            uri: name ? context.nameToUrl(name, null, relModuleMap) : undefined,
+                            exports: defined[fullName]
+                        };
+                    } else if (depName in defined && !(depName in waiting) &&
+                               (!(fullName in needFullExec) ||
+                                (fullName in needFullExec && fullExec[depName]))) {
+                        //Module already defined, and not in a build situation
+                        //where the module is a something that needs full
+                        //execution and this dependency has not been fully
+                        //executed. See r.js's requirePatch.js for more info
+                        //on fullExec.
+                        deps[i] = defined[depName];
+                    } else {
+                        //Mark this dependency as needing full exec if
+                        //the current module needs full exec.
+                        if (fullName in needFullExec) {
+                            needFullExec[depName] = true;
+                            //Reset state so fully executed code will get
+                            //picked up correctly.
+                            delete defined[depName];
+                            urlFetched[depArg.url] = false;
+                        }
+
+                        //Either a resource that is not loaded yet, or a plugin
+                        //resource for either a plugin that has not
+                        //loaded yet.
+                        manager.depCount += 1;
+                        manager.depCallbacks[i] = makeArgCallback(manager, i);
+                        getManager(depArg, true).add(manager.depCallbacks[i]);
+                    }
+                }
+            }
+
+            //Do not bother tracking the manager if it is all done.
+            if (!manager.depCount) {
+                //All done, execute!
+                execManager(manager);
+            } else {
+                addWait(manager);
+            }
+        }
+
+        /**
+         * Convenience method to call main for a define call that was put on
+         * hold in the defQueue.
+         */
+        function callDefMain(args) {
+            main.apply(null, args);
+        }
+
+        /**
+         * jQuery 1.4.3+ supports ways to hold off calling
+         * calling jQuery ready callbacks until all scripts are loaded. Be sure
+         * to track it if the capability exists.. Also, since jQuery 1.4.3 does
+         * not register as a module, need to do some global inference checking.
+         * Even if it does register as a module, not guaranteed to be the precise
+         * name of the global. If a jQuery is tracked for this context, then go
+         * ahead and register it as a module too, if not already in process.
+         */
+        jQueryCheck = function (jqCandidate) {
+            if (!context.jQuery) {
+                var $ = jqCandidate || (typeof jQuery !== "undefined" ? jQuery : null);
+
+                if ($) {
+                    //If a specific version of jQuery is wanted, make sure to only
+                    //use this jQuery if it matches.
+                    if (config.jQuery && $.fn.jquery !== config.jQuery) {
+                        return;
+                    }
+
+                    if ("holdReady" in $ || "readyWait" in $) {
+                        context.jQuery = $;
+
+                        //Manually create a "jquery" module entry if not one already
+                        //or in process. Note this could trigger an attempt at
+                        //a second jQuery registration, but does no harm since
+                        //the first one wins, and it is the same value anyway.
+                        callDefMain(["jquery", [], function () {
+                            return jQuery;
+                        }]);
+
+                        //Ask jQuery to hold DOM ready callbacks.
+                        if (context.scriptCount) {
+                            jQueryHoldReady($, true);
+                            context.jQueryIncremented = true;
+                        }
+                    }
+                }
+            }
+        };
+
+        function findCycle(manager, traced) {
+            var fullName = manager.map.fullName,
+                depArray = manager.depArray,
+                fullyLoaded = true,
+                i, depName, depManager, result;
+
+            if (manager.isDone || !fullName || !loaded[fullName]) {
+                return result;
+            }
+
+            //Found the cycle.
+            if (traced[fullName]) {
+                return manager;
+            }
+
+            traced[fullName] = true;
+
+            //Trace through the dependencies.
+            if (depArray) {
+                for (i = 0; i < depArray.length; i++) {
+                    //Some array members may be null, like if a trailing comma
+                    //IE, so do the explicit [i] access and check if it has a value.
+                    depName = depArray[i];
+                    if (!loaded[depName] && !reservedDependencies[depName]) {
+                        fullyLoaded = false;
+                        break;
+                    }
+                    depManager = waiting[depName];
+                    if (depManager && !depManager.isDone && loaded[depName]) {
+                        result = findCycle(depManager, traced);
+                        if (result) {
+                            break;
+                        }
+                    }
+                }
+                if (!fullyLoaded) {
+                    //Discard the cycle that was found, since it cannot
+                    //be forced yet. Also clear this module from traced.
+                    result = undefined;
+                    delete traced[fullName];
+                }
+            }
+
+            return result;
+        }
+
+        function forceExec(manager, traced) {
+            var fullName = manager.map.fullName,
+                depArray = manager.depArray,
+                i, depName, depManager, prefix, prefixManager, value;
+
+
+            if (manager.isDone || !fullName || !loaded[fullName]) {
+                return undefined;
+            }
+
+            if (fullName) {
+                if (traced[fullName]) {
+                    return defined[fullName];
+                }
+
+                traced[fullName] = true;
+            }
+
+            //Trace through the dependencies.
+            if (depArray) {
+                for (i = 0; i < depArray.length; i++) {
+                    //Some array members may be null, like if a trailing comma
+                    //IE, so do the explicit [i] access and check if it has a value.
+                    depName = depArray[i];
+                    if (depName) {
+                        //First, make sure if it is a plugin resource that the
+                        //plugin is not blocked.
+                        prefix = makeModuleMap(depName).prefix;
+                        if (prefix && (prefixManager = waiting[prefix])) {
+                            forceExec(prefixManager, traced);
+                        }
+                        depManager = waiting[depName];
+                        if (depManager && !depManager.isDone && loaded[depName]) {
+                            value = forceExec(depManager, traced);
+                            manager.depCallbacks[i](value);
+                        }
+                    }
+                }
+            }
+
+            return defined[fullName];
+        }
+
+        /**
+         * Checks if all modules for a context are loaded, and if so, evaluates the
+         * new ones in right dependency order.
+         *
+         * @private
+         */
+        function checkLoaded() {
+            var waitInterval = config.waitSeconds * 1000,
+                //It is possible to disable the wait interval by using waitSeconds of 0.
+                expired = waitInterval && (context.startTime + waitInterval) < new Date().getTime(),
+                noLoads = "", hasLoadedProp = false, stillLoading = false,
+                cycleDeps = [],
+                i, prop, err, manager, cycleManager, moduleDeps;
+
+            //If there are items still in the paused queue processing wait.
+            //This is particularly important in the sync case where each paused
+            //item is processed right away but there may be more waiting.
+            if (context.pausedCount > 0) {
+                return undefined;
+            }
+
+            //Determine if priority loading is done. If so clear the priority. If
+            //not, then do not check
+            if (config.priorityWait) {
+                if (isPriorityDone()) {
+                    //Call resume, since it could have
+                    //some waiting dependencies to trace.
+                    resume();
+                } else {
+                    return undefined;
+                }
+            }
+
+            //See if anything is still in flight.
+            for (prop in loaded) {
+                if (!(prop in empty)) {
+                    hasLoadedProp = true;
+                    if (!loaded[prop]) {
+                        if (expired) {
+                            noLoads += prop + " ";
+                        } else {
+                            stillLoading = true;
+                            if (prop.indexOf('!') === -1) {
+                                //No reason to keep looking for unfinished
+                                //loading. If the only stillLoading is a
+                                //plugin resource though, keep going,
+                                //because it may be that a plugin resource
+                                //is waiting on a non-plugin cycle.
+                                cycleDeps = [];
+                                break;
+                            } else {
+                                moduleDeps = managerCallbacks[prop] && managerCallbacks[prop].moduleDeps;
+                                if (moduleDeps) {
+                                    cycleDeps.push.apply(cycleDeps, moduleDeps);
+                                }
+                            }
+                        }
+                    }
+                }
+            }
+
+            //Check for exit conditions.
+            if (!hasLoadedProp && !context.waitCount) {
+                //If the loaded object had no items, then the rest of
+                //the work below does not need to be done.
+                return undefined;
+            }
+            if (expired && noLoads) {
+                //If wait time expired, throw error of unloaded modules.
+                err = makeError("timeout", "Load timeout for modules: " + noLoads);
+                err.requireType = "timeout";
+                err.requireModules = noLoads;
+                err.contextName = context.contextName;
+                return req.onError(err);
+            }
+
+            //If still loading but a plugin is waiting on a regular module cycle
+            //break the cycle.
+            if (stillLoading && cycleDeps.length) {
+                for (i = 0; (manager = waiting[cycleDeps[i]]); i++) {
+                    if ((cycleManager = findCycle(manager, {}))) {
+                        forceExec(cycleManager, {});
+                        break;
+                    }
+                }
+
+            }
+
+            //If still waiting on loads, and the waiting load is something
+            //other than a plugin resource, or there are still outstanding
+            //scripts, then just try back later.
+            if (!expired && (stillLoading || context.scriptCount)) {
+                //Something is still waiting to load. Wait for it, but only
+                //if a timeout is not already in effect.
+                if ((isBrowser || isWebWorker) && !checkLoadedTimeoutId) {
+                    checkLoadedTimeoutId = setTimeout(function () {
+                        checkLoadedTimeoutId = 0;
+                        checkLoaded();
+                    }, 50);
+                }
+                return undefined;
+            }
+
+            //If still have items in the waiting cue, but all modules have
+            //been loaded, then it means there are some circular dependencies
+            //that need to be broken.
+            //However, as a waiting thing is fired, then it can add items to
+            //the waiting cue, and those items should not be fired yet, so
+            //make sure to redo the checkLoaded call after breaking a single
+            //cycle, if nothing else loaded then this logic will pick it up
+            //again.
+            if (context.waitCount) {
+                //Cycle through the waitAry, and call items in sequence.
+                for (i = 0; (manager = waitAry[i]); i++) {
+                    forceExec(manager, {});
+                }
+
+                //If anything got placed in the paused queue, run it down.
+                if (context.paused.length) {
+                    resume();
+                }
+
+                //Only allow this recursion to a certain depth. Only
+                //triggered by errors in calling a module in which its
+                //modules waiting on it cannot finish loading, or some circular
+                //dependencies that then may add more dependencies.
+                //The value of 5 is a bit arbitrary. Hopefully just one extra
+                //pass, or two for the case of circular dependencies generating
+                //more work that gets resolved in the sync node case.
+                if (checkLoadedDepth < 5) {
+                    checkLoadedDepth += 1;
+                    checkLoaded();
+                }
+            }
+
+            checkLoadedDepth = 0;
+
+            //Check for DOM ready, and nothing is waiting across contexts.
+            req.checkReadyState();
+
+            return undefined;
+        }
+
+        /**
+         * Resumes tracing of dependencies and then checks if everything is loaded.
+         */
+        resume = function () {
+            var manager, map, url, i, p, args, fullName;
+
+            //Any defined modules in the global queue, intake them now.
+            context.takeGlobalQueue();
+
+            resumeDepth += 1;
+
+            if (context.scriptCount <= 0) {
+                //Synchronous envs will push the number below zero with the
+                //decrement above, be sure to set it back to zero for good measure.
+                //require() calls that also do not end up loading scripts could
+                //push the number negative too.
+                context.scriptCount = 0;
+            }
+
+            //Make sure any remaining defQueue items get properly processed.
+            while (defQueue.length) {
+                args = defQueue.shift();
+                if (args[0] === null) {
+                    return req.onError(makeError('mismatch', 'Mismatched anonymous define() module: ' + args[args.length - 1]));
+                } else {
+                    callDefMain(args);
+                }
+            }
+
+            //Skip the resume of paused dependencies
+            //if current context is in priority wait.
+            if (!config.priorityWait || isPriorityDone()) {
+                while (context.paused.length) {
+                    p = context.paused;
+                    context.pausedCount += p.length;
+                    //Reset paused list
+                    context.paused = [];
+
+                    for (i = 0; (manager = p[i]); i++) {
+                        map = manager.map;
+                        url = map.url;
+                        fullName = map.fullName;
+
+                        //If the manager is for a plugin managed resource,
+                        //ask the plugin to load it now.
+                        if (map.prefix) {
+                            callPlugin(map.prefix, manager);
+                        } else {
+                            //Regular dependency.
+                            if (!urlFetched[url] && !loaded[fullName]) {
+                                (config.requireLoad || req.load)(context, fullName, url);
+
+                                //Mark the URL as fetched, but only if it is
+                                //not an empty: URL, used by the optimizer.
+                                //In that case we need to be sure to call
+                                //load() for each module that is mapped to
+                                //empty: so that dependencies are satisfied
+                                //correctly.
+                                if (url.indexOf('empty:') !== 0) {
+                                    urlFetched[url] = true;
+                                }
+                            }
+                        }
+                    }
+
+                    //Move the start time for timeout forward.
+                    context.startTime = (new Date()).getTime();
+                    context.pausedCount -= p.length;
+                }
+            }
+
+            //Only check if loaded when resume depth is 1. It is likely that
+            //it is only greater than 1 in sync environments where a factory
+            //function also then calls the callback-style require. In those
+            //cases, the checkLoaded should not occur until the resume
+            //depth is back at the top level.
+            if (resumeDepth === 1) {
+                checkLoaded();
+            }
+
+            resumeDepth -= 1;
+
+            return undefined;
+        };
+
+        //Define the context object. Many of these fields are on here
+        //just to make debugging easier.
+        context = {
+            contextName: contextName,
+            config: config,
+            defQueue: defQueue,
+            waiting: waiting,
+            waitCount: 0,
+            specified: specified,
+            loaded: loaded,
+            urlMap: urlMap,
+            urlFetched: urlFetched,
+            scriptCount: 0,
+            defined: defined,
+            paused: [],
+            pausedCount: 0,
+            plugins: plugins,
+            needFullExec: needFullExec,
+            fake: {},
+            fullExec: fullExec,
+            managerCallbacks: managerCallbacks,
+            makeModuleMap: makeModuleMap,
+            normalize: normalize,
+            /**
+             * Set a configuration for the context.
+             * @param {Object} cfg config object to integrate.
+             */
+            configure: function (cfg) {
+                var paths, prop, packages, pkgs, packagePaths, requireWait;
+
+                //Make sure the baseUrl ends in a slash.
+                if (cfg.baseUrl) {
+                    if (cfg.baseUrl.charAt(cfg.baseUrl.length - 1) !== "/") {
+                        cfg.baseUrl += "/";
+                    }
+                }
+
+                //Save off the paths and packages since they require special processing,
+                //they are additive.
+                paths = config.paths;
+                packages = config.packages;
+                pkgs = config.pkgs;
+
+                //Mix in the config values, favoring the new values over
+                //existing ones in context.config.
+                mixin(config, cfg, true);
+
+                //Adjust paths if necessary.
+                if (cfg.paths) {
+                    for (prop in cfg.paths) {
+                        if (!(prop in empty)) {
+                            paths[prop] = cfg.paths[prop];
+                        }
+                    }
+                    config.paths = paths;
+                }
+
+                packagePaths = cfg.packagePaths;
+                if (packagePaths || cfg.packages) {
+                    //Convert packagePaths into a packages config.
+                    if (packagePaths) {
+                        for (prop in packagePaths) {
+                            if (!(prop in empty)) {
+                                configurePackageDir(pkgs, packagePaths[prop], prop);
+                            }
+                        }
+                    }
+
+                    //Adjust packages if necessary.
+                    if (cfg.packages) {
+                        configurePackageDir(pkgs, cfg.packages);
+                    }
+
+                    //Done with modifications, assing packages back to context config
+                    config.pkgs = pkgs;
+                }
+
+                //If priority loading is in effect, trigger the loads now
+                if (cfg.priority) {
+                    //Hold on to requireWait value, and reset it after done
+                    requireWait = context.requireWait;
+
+                    //Allow tracing some require calls to allow the fetching
+                    //of the priority config.
+                    context.requireWait = false;
+                    //But first, call resume to register any defined modules that may
+                    //be in a data-main built file before the priority config
+                    //call.
+                    resume();
+
+                    context.require(cfg.priority);
+
+                    //Trigger a resume right away, for the case when
+                    //the script with the priority load is done as part
+                    //of a data-main call. In that case the normal resume
+                    //call will not happen because the scriptCount will be
+                    //at 1, since the script for data-main is being processed.
+                    resume();
+
+                    //Restore previous state.
+                    context.requireWait = requireWait;
+                    config.priorityWait = cfg.priority;
+                }
+
+                //If a deps array or a config callback is specified, then call
+                //require with those args. This is useful when require is defined as a
+                //config object before require.js is loaded.
+                if (cfg.deps || cfg.callback) {
+                    context.require(cfg.deps || [], cfg.callback);
+                }
+            },
+
+            requireDefined: function (moduleName, relModuleMap) {
+                return makeModuleMap(moduleName, relModuleMap).fullName in defined;
+            },
+
+            requireSpecified: function (moduleName, relModuleMap) {
+                return makeModuleMap(moduleName, relModuleMap).fullName in specified;
+            },
+
+            require: function (deps, callback, relModuleMap) {
+                var moduleName, fullName, moduleMap;
+                if (typeof deps === "string") {
+                    if (isFunction(callback)) {
+                        //Invalid call
+                        return req.onError(makeError("requireargs", "Invalid require call"));
+                    }
+
+                    //Synchronous access to one module. If require.get is
+                    //available (as in the Node adapter), prefer that.
+                    //In this case deps is the moduleName and callback is
+                    //the relModuleMap
+                    if (req.get) {
+                        return req.get(context, deps, callback);
+                    }
+
+                    //Just return the module wanted. In this scenario, the
+                    //second arg (if passed) is just the relModuleMap.
+                    moduleName = deps;
+                    relModuleMap = callback;
+
+                    //Normalize module name, if it contains . or ..
+                    moduleMap = makeModuleMap(moduleName, relModuleMap);
+                    fullName = moduleMap.fullName;
+
+                    if (!(fullName in defined)) {
+                        return req.onError(makeError("notloaded", "Module name '" +
+                                    moduleMap.fullName +
+                                    "' has not been loaded yet for context: " +
+                                    contextName));
+                    }
+                    return defined[fullName];
+                }
+
+                //Call main but only if there are dependencies or
+                //a callback to call.
+                if (deps && deps.length || callback) {
+                    main(null, deps, callback, relModuleMap);
+                }
+
+                //If the require call does not trigger anything new to load,
+                //then resume the dependency processing.
+                if (!context.requireWait) {
+                    while (!context.scriptCount && context.paused.length) {
+                        resume();
+                    }
+                }
+                return context.require;
+            },
+
+            /**
+             * Internal method to transfer globalQueue items to this context's
+             * defQueue.
+             */
+            takeGlobalQueue: function () {
+                //Push all the globalDefQueue items into the context's defQueue
+                if (globalDefQueue.length) {
+                    //Array splice in the values since the context code has a
+                    //local var ref to defQueue, so cannot just reassign the one
+                    //on context.
+                    apsp.apply(context.defQueue,
+                               [context.defQueue.length - 1, 0].concat(globalDefQueue));
+                    globalDefQueue = [];
+                }
+            },
+
+            /**
+             * Internal method used by environment adapters to complete a load event.
+             * A load event could be a script load or just a load pass from a synchronous
+             * load call.
+             * @param {String} moduleName the name of the module to potentially complete.
+             */
+            completeLoad: function (moduleName) {
+                var args;
+
+                context.takeGlobalQueue();
+
+                while (defQueue.length) {
+                    args = defQueue.shift();
+
+                    if (args[0] === null) {
+                        args[0] = moduleName;
+                        break;
+                    } else if (args[0] === moduleName) {
+                        //Found matching define call for this script!
+                        break;
+                    } else {
+                        //Some other named define call, most likely the result
+                        //of a build layer that included many define calls.
+                        callDefMain(args);
+                        args = null;
+                    }
+                }
+                if (args) {
+                    callDefMain(args);
+                } else {
+                    //A script that does not call define(), so just simulate
+                    //the call for it. Special exception for jQuery dynamic load.
+                    callDefMain([moduleName, [],
+                                moduleName === "jquery" && typeof jQuery !== "undefined" ?
+                                function () {
+                                    return jQuery;
+                                } : null]);
+                }
+
+                //Doing this scriptCount decrement branching because sync envs
+                //need to decrement after resume, otherwise it looks like
+                //loading is complete after the first dependency is fetched.
+                //For browsers, it works fine to decrement after, but it means
+                //the checkLoaded setTimeout 50 ms cost is taken. To avoid
+                //that cost, decrement beforehand.
+                if (req.isAsync) {
+                    context.scriptCount -= 1;
+                }
+                resume();
+                if (!req.isAsync) {
+                    context.scriptCount -= 1;
+                }
+            },
+
+            /**
+             * Converts a module name + .extension into an URL path.
+             * *Requires* the use of a module name. It does not support using
+             * plain URLs like nameToUrl.
+             */
+            toUrl: function (moduleNamePlusExt, relModuleMap) {
+                var index = moduleNamePlusExt.lastIndexOf("."),
+                    ext = null;
+
+                if (index !== -1) {
+                    ext = moduleNamePlusExt.substring(index, moduleNamePlusExt.length);
+                    moduleNamePlusExt = moduleNamePlusExt.substring(0, index);
+                }
+
+                return context.nameToUrl(moduleNamePlusExt, ext, relModuleMap);
+            },
+
+            /**
+             * Converts a module name to a file path. Supports cases where
+             * moduleName may actually be just an URL.
+             */
+            nameToUrl: function (moduleName, ext, relModuleMap) {
+                var paths, pkgs, pkg, pkgPath, syms, i, parentModule, url,
+                    config = context.config;
+
+                //Normalize module name if have a base relative module name to work from.
+                moduleName = normalize(moduleName, relModuleMap && relModuleMap.fullName);
+
+                //If a colon is in the URL, it indicates a protocol is used and it is just
+                //an URL to a file, or if it starts with a slash or ends with .js, it is just a plain file.
+                //The slash is important for protocol-less URLs as well as full paths.
+                if (req.jsExtRegExp.test(moduleName)) {
+                    //Just a plain path, not module name lookup, so just return it.
+                    //Add extension if it is included. This is a bit wonky, only non-.js things pass
+                    //an extension, this method probably needs to be reworked.
+                    url = moduleName + (ext ? ext : "");
+                } else {
+                    //A module that needs to be converted to a path.
+                    paths = config.paths;
+                    pkgs = config.pkgs;
+
+                    syms = moduleName.split("/");
+                    //For each module name segment, see if there is a path
+                    //registered for it. Start with most specific name
+                    //and work up from it.
+                    for (i = syms.length; i > 0; i--) {
+                        parentModule = syms.slice(0, i).join("/");
+                        if (paths[parentModule]) {
+                            syms.splice(0, i, paths[parentModule]);
+                            break;
+                        } else if ((pkg = pkgs[parentModule])) {
+                            //If module name is just the package name, then looking
+                            //for the main module.
+                            if (moduleName === pkg.name) {
+                                pkgPath = pkg.location + '/' + pkg.main;
+                            } else {
+                                pkgPath = pkg.location;
+                            }
+                            syms.splice(0, i, pkgPath);
+                            break;
+                        }
+                    }
+
+                    //Join the path parts together, then figure out if baseUrl is needed.
+                    url = syms.join("/") + (ext || ".js");
+                    url = (url.charAt(0) === '/' || url.match(/^\w+:/) ? "" : config.baseUrl) + url;
+                }
+
+                return config.urlArgs ? url +
+                                        ((url.indexOf('?') === -1 ? '?' : '&') +
+                                         config.urlArgs) : url;
+            }
+        };
+
+        //Make these visible on the context so can be called at the very
+        //end of the file to bootstrap
+        context.jQueryCheck = jQueryCheck;
+        context.resume = resume;
+
+        return context;
+    }
+
+    /**
+     * Main entry point.
+     *
+     * If the only argument to require is a string, then the module that
+     * is represented by that string is fetched for the appropriate context.
+     *
+     * If the first argument is an array, then it will be treated as an array
+     * of dependency string names to fetch. An optional function callback can
+     * be specified to execute when all of those dependencies are available.
+     *
+     * Make a local req variable to help Caja compliance (it assumes things
+     * on a require that are not standardized), and to give a short
+     * name for minification/local scope use.
+     */
+    req = requirejs = function (deps, callback) {
+
+        //Find the right context, use default
+        var contextName = defContextName,
+            context, config;
+
+        // Determine if have config object in the call.
+        if (!isArray(deps) && typeof deps !== "string") {
+            // deps is a config object
+            config = deps;
+            if (isArray(callback)) {
+                // Adjust args if there are dependencies
+                deps = callback;
+                callback = arguments[2];
+            } else {
+                deps = [];
+            }
+        }
+
+        if (config && config.context) {
+            contextName = config.context;
+        }
+
+        context = contexts[contextName] ||
+                  (contexts[contextName] = newContext(contextName));
+
+        if (config) {
+            context.configure(config);
+        }
+
+        return context.require(deps, callback);
+    };
+
+    /**
+     * Support require.config() to make it easier to cooperate with other
+     * AMD loaders on globally agreed names.
+     */
+    req.config = function (config) {
+        return req(config);
+    };
+
+    /**
+     * Export require as a global, but only if it does not already exist.
+     */
+    if (!require) {
+        require = req;
+    }
+
+    /**
+     * Global require.toUrl(), to match global require, mostly useful
+     * for debugging/work in the global space.
+     */
+    req.toUrl = function (moduleNamePlusExt) {
+        return contexts[defContextName].toUrl(moduleNamePlusExt);
+    };
+
+    req.version = version;
+
+    //Used to filter out dependencies that are already paths.
+    req.jsExtRegExp = /^\/|:|\?|\.js$/;
+    s = req.s = {
+        contexts: contexts,
+        //Stores a list of URLs that should not get async script tag treatment.
+        skipAsync: {}
+    };
+
+    req.isAsync = req.isBrowser = isBrowser;
+    if (isBrowser) {
+        head = s.head = document.getElementsByTagName("head")[0];
+        //If BASE tag is in play, using appendChild is a problem for IE6.
+        //When that browser dies, this can be removed. Details in this jQuery bug:
+        //http://dev.jquery.com/ticket/2709
+        baseElement = document.getElementsByTagName("base")[0];
+        if (baseElement) {
+            head = s.head = baseElement.parentNode;
+        }
+    }
+
+    /**
+     * Any errors that require explicitly generates will be passed to this
+     * function. Intercept/override it if you want custom error handling.
+     * @param {Error} err the error object.
+     */
+    req.onError = function (err) {
+        throw err;
+    };
+
+    /**
+     * Does the request to load a module for the browser case.
+     * Make this a separate function to allow other environments
+     * to override it.
+     *
+     * @param {Object} context the require context to find state.
+     * @param {String} moduleName the name of the module.
+     * @param {Object} url the URL to the module.
+     */
+    req.load = function (context, moduleName, url) {
+        req.resourcesReady(false);
+
+        context.scriptCount += 1;
+        req.attach(url, context, moduleName);
+
+        //If tracking a jQuery, then make sure its ready callbacks
+        //are put on hold to prevent its ready callbacks from
+        //triggering too soon.
+        if (context.jQuery && !context.jQueryIncremented) {
+            jQueryHoldReady(context.jQuery, true);
+            context.jQueryIncremented = true;
+        }
+    };
+
+    function getInteractiveScript() {
+        var scripts, i, script;
+        if (interactiveScript && interactiveScript.readyState === 'interactive') {
+            return interactiveScript;
+        }
+
+        scripts = document.getElementsByTagName('script');
+        for (i = scripts.length - 1; i > -1 && (script = scripts[i]); i--) {
+            if (script.readyState === 'interactive') {
+                return (interactiveScript = script);
+            }
+        }
+
+        return null;
+    }
+
+    /**
+     * The function that handles definitions of modules. Differs from
+     * require() in that a string for the module should be the first argument,
+     * and the function to execute after dependencies are loaded should
+     * return a value to define the module corresponding to the first argument's
+     * name.
+     */
+    define = function (name, deps, callback) {
+        var node, context;
+
+        //Allow for anonymous functions
+        if (typeof name !== 'string') {
+            //Adjust args appropriately
+            callback = deps;
+            deps = name;
+            name = null;
+        }
+
+        //This module may not have dependencies
+        if (!isArray(deps)) {
+            callback = deps;
+            deps = [];
+        }
+
+        //If no name, and callback is a function, then figure out if it a
+        //CommonJS thing with dependencies.
+        if (!deps.length && isFunction(callback)) {
+            //Remove comments from the callback string,
+            //look for require calls, and pull them into the dependencies,
+            //but only if there are function args.
+            if (callback.length) {
+                callback
+                    .toString()
+                    .replace(commentRegExp, "")
+                    .replace(cjsRequireRegExp, function (match, dep) {
+                        deps.push(dep);
+                    });
+
+                //May be a CommonJS thing even without require calls, but still
+                //could use exports, and module. Avoid doing exports and module
+                //work though if it just needs require.
+                //REQUIRES the function to expect the CommonJS variables in the
+                //order listed below.
+                deps = (callback.length === 1 ? ["require"] : ["require", "exports", "module"]).concat(deps);
+            }
+        }
+
+        //If in IE 6-8 and hit an anonymous define() call, do the interactive
+        //work.
+        if (useInteractive) {
+            node = currentlyAddingScript || getInteractiveScript();
+            if (node) {
+                if (!name) {
+                    name = node.getAttribute("data-requiremodule");
+                }
+                context = contexts[node.getAttribute("data-requirecontext")];
+            }
+        }
+
+        //Always save off evaluating the def call until the script onload handler.
+        //This allows multiple modules to be in a file without prematurely
+        //tracing dependencies, and allows for anonymous module support,
+        //where the module name is not known until the script onload event
+        //occurs. If no context, use the global queue, and get it processed
+        //in the onscript load callback.
+        (context ? context.defQueue : globalDefQueue).push([name, deps, callback]);
+
+        return undefined;
+    };
+
+    define.amd = {
+        multiversion: true,
+        plugins: true,
+        jQuery: true
+    };
+
+    /**
+     * Executes the text. Normally just uses eval, but can be modified
+     * to use a more environment specific call.
+     * @param {String} text the text to execute/evaluate.
+     */
+    req.exec = function (text) {
+        return eval(text);
+    };
+
+    /**
+     * Executes a module callack function. Broken out as a separate function
+     * solely to allow the build system to sequence the files in the built
+     * layer in the right sequence.
+     *
+     * @private
+     */
+    req.execCb = function (name, callback, args, exports) {
+        return callback.apply(exports, args);
+    };
+
+
+    /**
+     * Adds a node to the DOM. Public function since used by the order plugin.
+     * This method should not normally be called by outside code.
+     */
+    req.addScriptToDom = function (node) {
+        //For some cache cases in IE 6-8, the script executes before the end
+        //of the appendChild execution, so to tie an anonymous define
+        //call to the module name (which is stored on the node), hold on
+        //to a reference to this node, but clear after the DOM insertion.
+        currentlyAddingScript = node;
+        if (baseElement) {
+            head.insertBefore(node, baseElement);
+        } else {
+            head.appendChild(node);
+        }
+        currentlyAddingScript = null;
+    };
+
+    /**
+     * callback for script loads, used to check status of loading.
+     *
+     * @param {Event} evt the event from the browser for the script
+     * that was loaded.
+     *
+     * @private
+     */
+    req.onScriptLoad = function (evt) {
+        //Using currentTarget instead of target for Firefox 2.0's sake. Not
+        //all old browsers will be supported, but this one was easy enough
+        //to support and still makes sense.
+        var node = evt.currentTarget || evt.srcElement, contextName, moduleName,
+            context;
+
+        if (evt.type === "load" || (node && readyRegExp.test(node.readyState))) {
+            //Reset interactive script so a script node is not held onto for
+            //to long.
+            interactiveScript = null;
+
+            //Pull out the name of the module and the context.
+            contextName = node.getAttribute("data-requirecontext");
+            moduleName = node.getAttribute("data-requiremodule");
+            context = contexts[contextName];
+
+            contexts[contextName].completeLoad(moduleName);
+
+            //Clean up script binding. Favor detachEvent because of IE9
+            //issue, see attachEvent/addEventListener comment elsewhere
+            //in this file.
+            if (node.detachEvent && !isOpera) {
+                //Probably IE. If not it will throw an error, which will be
+                //useful to know.
+                node.detachEvent("onreadystatechange", req.onScriptLoad);
+            } else {
+                node.removeEventListener("load", req.onScriptLoad, false);
+            }
+        }
+    };
+
+    /**
+     * Attaches the script represented by the URL to the current
+     * environment. Right now only supports browser loading,
+     * but can be redefined in other environments to do the right thing.
+     * @param {String} url the url of the script to attach.
+     * @param {Object} context the context that wants the script.
+     * @param {moduleName} the name of the module that is associated with the script.
+     * @param {Function} [callback] optional callback, defaults to require.onScriptLoad
+     * @param {String} [type] optional type, defaults to text/javascript
+     * @param {Function} [fetchOnlyFunction] optional function to indicate the script node
+     * should be set up to fetch the script but do not attach it to the DOM
+     * so that it can later be attached to execute it. This is a way for the
+     * order plugin to support ordered loading in IE. Once the script is fetched,
+     * but not executed, the fetchOnlyFunction will be called.
+     */
+    req.attach = function (url, context, moduleName, callback, type, fetchOnlyFunction) {
+        var node;
+        if (isBrowser) {
+            //In the browser so use a script tag
+            callback = callback || req.onScriptLoad;
+            node = context && context.config && context.config.xhtml ?
+                    document.createElementNS("http://www.w3.org/1999/xhtml", "html:script") :
+                    document.createElement("script");
+            node.type = type || (context && context.config.scriptType) ||
+                        "text/javascript";
+            node.charset = "utf-8";
+            //Use async so Gecko does not block on executing the script if something
+            //like a long-polling comet tag is being run first. Gecko likes
+            //to evaluate scripts in DOM order, even for dynamic scripts.
+            //It will fetch them async, but only evaluate the contents in DOM
+            //order, so a long-polling script tag can delay execution of scripts
+            //after it. But telling Gecko we expect async gets us the behavior
+            //we want -- execute it whenever it is finished downloading. Only
+            //Helps Firefox 3.6+
+            //Allow some URLs to not be fetched async. Mostly helps the order!
+            //plugin
+            node.async = !s.skipAsync[url];
+
+            if (context) {
+                node.setAttribute("data-requirecontext", context.contextName);
+            }
+            node.setAttribute("data-requiremodule", moduleName);
+
+            //Set up load listener. Test attachEvent first because IE9 has
+            //a subtle issue in its addEventListener and script onload firings
+            //that do not match the behavior of all other browsers with
+            //addEventListener support, which fire the onload event for a
+            //script right after the script execution. See:
+            //https://connect.microsoft.com/IE/feedback/details/648057/script-onload-event-is-not-fired-immediately-after-script-execution
+            //UNFORTUNATELY Opera implements attachEvent but does not follow the script
+            //script execution mode.
+            if (node.attachEvent && !isOpera) {
+                //Probably IE. IE (at least 6-8) do not fire
+                //script onload right after executing the script, so
+                //we cannot tie the anonymous define call to a name.
+                //However, IE reports the script as being in "interactive"
+                //readyState at the time of the define call.
+                useInteractive = true;
+
+
+                if (fetchOnlyFunction) {
+                    //Need to use old school onreadystate here since
+                    //when the event fires and the node is not attached
+                    //to the DOM, the evt.srcElement is null, so use
+                    //a closure to remember the node.
+                    node.onreadystatechange = function (evt) {
+                        //Script loaded but not executed.
+                        //Clear loaded handler, set the real one that
+                        //waits for script execution.
+                        if (node.readyState === 'loaded') {
+                            node.onreadystatechange = null;
+                            node.attachEvent("onreadystatechange", callback);
+                            fetchOnlyFunction(node);
+                        }
+                    };
+                } else {
+                    node.attachEvent("onreadystatechange", callback);
+                }
+            } else {
+                node.addEventListener("load", callback, false);
+            }
+            node.src = url;
+
+            //Fetch only means waiting to attach to DOM after loaded.
+            if (!fetchOnlyFunction) {
+                req.addScriptToDom(node);
+            }
+
+            return node;
+        } else if (isWebWorker) {
+            //In a web worker, use importScripts. This is not a very
+            //efficient use of importScripts, importScripts will block until
+            //its script is downloaded and evaluated. However, if web workers
+            //are in play, the expectation that a build has been done so that
+            //only one script needs to be loaded anyway. This may need to be
+            //reevaluated if other use cases become common.
+            importScripts(url);
+
+            //Account for anonymous modules
+            context.completeLoad(moduleName);
+        }
+        return null;
+    };
+
+    //Look for a data-main script attribute, which could also adjust the baseUrl.
+    if (isBrowser) {
+        //Figure out baseUrl. Get it from the script tag with require.js in it.
+        scripts = document.getElementsByTagName("script");
+
+        for (globalI = scripts.length - 1; globalI > -1 && (script = scripts[globalI]); globalI--) {
+            //Set the "head" where we can append children by
+            //using the script's parent.
+            if (!head) {
+                head = script.parentNode;
+            }
+
+            //Look for a data-main attribute to set main script for the page
+            //to load. If it is there, the path to data main becomes the
+            //baseUrl, if it is not already set.
+            if ((dataMain = script.getAttribute('data-main'))) {
+                if (!cfg.baseUrl) {
+                    //Pull off the directory of data-main for use as the
+                    //baseUrl.
+                    src = dataMain.split('/');
+                    mainScript = src.pop();
+                    subPath = src.length ? src.join('/')  + '/' : './';
+
+                    //Set final config.
+                    cfg.baseUrl = subPath;
+                    //Strip off any trailing .js since dataMain is now
+                    //like a module name.
+                    dataMain = mainScript.replace(jsSuffixRegExp, '');
+                }
+
+                //Put the data-main script in the files to load.
+                cfg.deps = cfg.deps ? cfg.deps.concat(dataMain) : [dataMain];
+
+                break;
+            }
+        }
+    }
+
+    //See if there is nothing waiting across contexts, and if not, trigger
+    //resourcesReady.
+    req.checkReadyState = function () {
+        var contexts = s.contexts, prop;
+        for (prop in contexts) {
+            if (!(prop in empty)) {
+                if (contexts[prop].waitCount) {
+                    return;
+                }
+            }
+        }
+        req.resourcesReady(true);
+    };
+
+    /**
+     * Internal function that is triggered whenever all scripts/resources
+     * have been loaded by the loader. Can be overridden by other, for
+     * instance the domReady plugin, which wants to know when all resources
+     * are loaded.
+     */
+    req.resourcesReady = function (isReady) {
+        var contexts, context, prop;
+
+        //First, set the public variable indicating that resources are loading.
+        req.resourcesDone = isReady;
+
+        if (req.resourcesDone) {
+            //If jQuery with DOM ready delayed, release it now.
+            contexts = s.contexts;
+            for (prop in contexts) {
+                if (!(prop in empty)) {
+                    context = contexts[prop];
+                    if (context.jQueryIncremented) {
+                        jQueryHoldReady(context.jQuery, false);
+                        context.jQueryIncremented = false;
+                    }
+                }
+            }
+        }
+    };
+
+    //FF < 3.6 readyState fix. Needed so that domReady plugin
+    //works well in that environment, since require.js is normally
+    //loaded via an HTML script tag so it will be there before window load,
+    //where the domReady plugin is more likely to be loaded after window load.
+    req.pageLoaded = function () {
+        if (document.readyState !== "complete") {
+            document.readyState = "complete";
+        }
+    };
+    if (isBrowser) {
+        if (document.addEventListener) {
+            if (!document.readyState) {
+                document.readyState = "loading";
+                window.addEventListener("load", req.pageLoaded, false);
+            }
+        }
+    }
+
+    //Set up default context. If require was a configuration object, use that as base config.
+    req(cfg);
+
+    //If modules are built into require.js, then need to make sure dependencies are
+    //traced. Use a setTimeout in the browser world, to allow all the modules to register
+    //themselves. In a non-browser env, assume that modules are not built into require.js,
+    //which seems odd to do on the server.
+    if (req.isAsync && typeof setTimeout !== "undefined") {
+        ctx = s.contexts[(cfg.context || defContextName)];
+        //Indicate that the script that includes require() is still loading,
+        //so that require()'d dependencies are not traced until the end of the
+        //file is parsed (approximated via the setTimeout call).
+        ctx.requireWait = true;
+        setTimeout(function () {
+            ctx.requireWait = false;
+
+            if (!ctx.scriptCount) {
+                ctx.resume();
+            }
+            req.checkReadyState();
+        }, 0);
+    }
+}());
+
+
+    if (env === 'rhino') {
+        /**
+ * @license RequireJS rhino Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+
+/*jslint strict: false */
+/*global require: false, java: false, load: false */
+
+(function () {
+
+    require.load = function (context, moduleName, url) {
+        //Indicate a the module is in process of loading.
+        context.scriptCount += 1;
+
+        load(url);
+
+        //Support anonymous modules.
+        context.completeLoad(moduleName);
+    };
+
+}());
+    } else if (env === 'node') {
+        this.requirejsVars = {
+            require: require,
+            requirejs: require,
+            define: define,
+            nodeRequire: nodeRequire
+        };
+        require.nodeRequire = nodeRequire;
+
+        /**
+ * @license RequireJS node Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+
+/*jslint regexp: false, strict: false */
+/*global require: false, define: false, requirejsVars: false, process: false */
+
+/**
+ * This adapter assumes that x.js has loaded it and set up
+ * some variables. This adapter just allows limited RequireJS
+ * usage from within the requirejs directory. The general
+ * node adapater is r.js.
+ */
+
+(function () {
+    var nodeReq = requirejsVars.nodeRequire,
+        req = requirejsVars.require,
+        def = requirejsVars.define,
+        fs = nodeReq('fs'),
+        path = nodeReq('path'),
+        vm = nodeReq('vm');
+
+    //Supply an implementation that allows synchronous get of a module.
+    req.get = function (context, moduleName, relModuleMap) {
+        if (moduleName === "require" || moduleName === "exports" || moduleName === "module") {
+            req.onError(new Error("Explicit require of " + moduleName + " is not allowed."));
+        }
+
+        var ret,
+            moduleMap = context.makeModuleMap(moduleName, relModuleMap);
+
+        //Normalize module name, if it contains . or ..
+        moduleName = moduleMap.fullName;
+
+        if (moduleName in context.defined) {
+            ret = context.defined[moduleName];
+        } else {
+            if (ret === undefined) {
+                //Try to dynamically fetch it.
+                req.load(context, moduleName, moduleMap.url);
+                //The above call is sync, so can do the next thing safely.
+                ret = context.defined[moduleName];
+            }
+        }
+
+        return ret;
+    };
+
+    //Add wrapper around the code so that it gets the requirejs
+    //API instead of the Node API, and it is done lexically so
+    //that it survives later execution.
+    req.makeNodeWrapper = function (contents) {
+        return '(function (require, requirejs, define) { ' +
+                contents +
+                '\n}(requirejsVars.require, requirejsVars.requirejs, requirejsVars.define));';
+    };
+
+    requirejsVars.nodeLoad = req.load = function (context, moduleName, url) {
+        var contents, err;
+
+        //Indicate a the module is in process of loading.
+        context.scriptCount += 1;
+
+        if (path.existsSync(url)) {
+            contents = fs.readFileSync(url, 'utf8');
+
+            contents = req.makeNodeWrapper(contents);
+            try {
+                vm.runInThisContext(contents, fs.realpathSync(url));
+            } catch (e) {
+                err = new Error('Evaluating ' + url + ' as module "' +
+                                moduleName + '" failed with error: ' + e);
+                err.originalError = e;
+                err.moduleName = moduleName;
+                err.fileName = url;
+                return req.onError(err);
+            }
+        } else {
+            def(moduleName, function () {
+                try {
+                    return (context.config.nodeRequire || req.nodeRequire)(moduleName);
+                } catch (e) {
+                    err = new Error('Calling node\'s require("' +
+                                        moduleName + '") failed with error: ' + e);
+                    err.originalError = e;
+                    err.moduleName = moduleName;
+                    return req.onError(err);
+                }
+            });
+        }
+
+        //Support anonymous modules.
+        context.completeLoad(moduleName);
+
+        return undefined;
+    };
+
+    //Override to provide the function wrapper for define/require.
+    req.exec = function (text) {
+        /*jslint evil: true */
+        text = req.makeNodeWrapper(text);
+        return eval(text);
+    };
+
+    //Hold on to the original execCb to use in useLib calls.
+    requirejsVars.nodeRequireExecCb = require.execCb;
+}());
+
+    }
+
+    //Support a default file name to execute. Useful for hosted envs
+    //like Joyent where it defaults to a server.js as the only executed
+    //script. But only do it if this is not an optimization run.
+    if (commandOption !== 'o' && (!fileName || !jsSuffixRegExp.test(fileName))) {
+        fileName = 'main.js';
+    }
+
+    /**
+     * Loads the library files that can be used for the optimizer, or for other
+     * tasks.
+     */
+    function loadLib() {
+        /**
+ * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+
+/*jslint strict: false */
+/*global Packages: false, process: false, window: false, navigator: false,
+  document: false, define: false */
+
+/**
+ * A plugin that modifies any /env/ path to be the right path based on
+ * the host environment. Right now only works for Node, Rhino and browser.
+ */
+(function () {
+    var pathRegExp = /(\/|^)env\/|\{env\}/,
+        env = 'unknown';
+
+    if (typeof Packages !== 'undefined') {
+        env = 'rhino';
+    } else if (typeof process !== 'undefined') {
+        env = 'node';
+    } else if (typeof window !== "undefined" && navigator && document) {
+        env = 'browser';
+    }
+
+    define('env', {
+        load: function (name, req, load, config) {
+            //Allow override in the config.
+            if (config.env) {
+                env = config.env;
+            }
+
+            name = name.replace(pathRegExp, function (match, prefix) {
+                if (match.indexOf('{') === -1) {
+                    return prefix + env + '/';
+                } else {
+                    return env;
+                }
+            });
+
+            req([name], function (mod) {
+                load(mod);
+            });
+        }
+    });
+}());
+if(env === 'node') {
+/**
+ * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+
+/*jslint strict: false */
+/*global define: false, process: false */
+
+define('node/args', function () {
+    //Do not return the "node" or "r.js" arguments
+    var args = process.argv.slice(2);
+
+    //Ignore any command option used for rq.js
+    if (args[0] && args[0].indexOf('-' === 0)) {
+        args = args.slice(1);
+    }
+
+    return args;
+});
+
+}
+
+if(env === 'rhino') {
+/**
+ * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+
+/*jslint strict: false */
+/*global define: false, process: false */
+
+var jsLibRhinoArgs = (typeof rhinoArgs !== 'undefined' && rhinoArgs) || [].concat(Array.prototype.slice.call(arguments, 0));
+
+define('rhino/args', function () {
+    var args = jsLibRhinoArgs;
+
+    //Ignore any command option used for rq.js
+    if (args[0] && args[0].indexOf('-' === 0)) {
+        args = args.slice(1);
+    }
+
+    return args;
+});
+
+}
+
+if(env === 'node') {
+/**
+ * @license RequireJS Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+
+/*jslint strict: false */
+/*global define: false, console: false */
+
+define('node/load', ['fs'], function (fs) {
+    function load(fileName) {
+        var contents = fs.readFileSync(fileName, 'utf8');
+        process.compile(contents, fileName);
+    }
+
+    return load;
+});
+
+}
+
+if(env === 'rhino') {
+/**
+ * @license RequireJS Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+
+/*jslint strict: false */
+/*global define: false, load: false */
+
+define('rhino/load', function () {
+    return load;
+});
+
+}
+
+if(env === 'node') {
+/**
+ * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+
+/*jslint plusplus: false, octal:false, strict: false */
+/*global define: false, process: false */
+
+define('node/file', ['fs', 'path'], function (fs, path) {
+
+    var isWindows = process.platform === 'win32',
+        windowsDriveRegExp = /^[a-zA-Z]\:\/$/,
+        file;
+
+    function frontSlash(path) {
+        return path.replace(/\\/g, '/');
+    }
+
+    function exists(path) {
+        if (isWindows && path.charAt(path.length - 1) === '/' &&
+            path.charAt(path.length - 2) !== ':') {
+            path = path.substring(0, path.length - 1);
+        }
+
+        try {
+            fs.statSync(path);
+            return true;
+        } catch (e) {
+            return false;
+        }
+    }
+
+    function mkDir(dir) {
+        if (!exists(dir) && (!isWindows || !windowsDriveRegExp.test(dir))) {
+            fs.mkdirSync(dir, 511);
+        }
+    }
+
+    function mkFullDir(dir) {
+        var parts = dir.split('/'),
+            currDir = '',
+            first = true;
+
+        parts.forEach(function (part) {
+            //First part may be empty string if path starts with a slash.
+            currDir += part + '/';
+            first = false;
+
+            if (part) {
+                mkDir(currDir);
+            }
+        });
+    }
+
+    file = {
+        backSlashRegExp: /\\/g,
+        exclusionRegExp: /^\./,
+        getLineSeparator: function () {
+            return '/';
+        },
+
+        exists: function (fileName) {
+            return exists(fileName);
+        },
+
+        parent: function (fileName) {
+            var parts = fileName.split('/');
+            parts.pop();
+            return parts.join('/');
+        },
+
+        /**
+         * Gets the absolute file path as a string, normalized
+         * to using front slashes for path separators.
+         * @param {String} fileName
+         */
+        absPath: function (fileName) {
+            return frontSlash(path.normalize(frontSlash(fs.realpathSync(fileName))));
+        },
+
+        normalize: function (fileName) {
+            return frontSlash(path.normalize(fileName));
+        },
+
+        isFile: function (path) {
+            return fs.statSync(path).isFile();
+        },
+
+        isDirectory: function (path) {
+            return fs.statSync(path).isDirectory();
+        },
+
+        getFilteredFileList: function (/*String*/startDir, /*RegExp*/regExpFilters, /*boolean?*/makeUnixPaths) {
+            //summary: Recurses startDir and finds matches to the files that match regExpFilters.include
+            //and do not match regExpFilters.exclude. Or just one regexp can be passed in for regExpFilters,
+            //and it will be treated as the "include" case.
+            //Ignores files/directories that start with a period (.) unless exclusionRegExp
+            //is set to another value.
+            var files = [], topDir, regExpInclude, regExpExclude, dirFileArray,
+                i, stat, filePath, ok, dirFiles, fileName;
+
+            topDir = startDir;
+
+            regExpInclude = regExpFilters.include || regExpFilters;
+            regExpExclude = regExpFilters.exclude || null;
+
+            if (file.exists(topDir)) {
+                dirFileArray = fs.readdirSync(topDir);
+                for (i = 0; i < dirFileArray.length; i++) {
+                    fileName = dirFileArray[i];
+                    filePath = path.join(topDir, fileName);
+                    stat = fs.statSync(filePath);
+                    if (stat.isFile()) {
+                        if (makeUnixPaths) {
+                            //Make sure we have a JS string.
+                            if (filePath.indexOf("/") === -1) {
+                                filePath = frontSlash(filePath);
+                            }
+                        }
+
+                        ok = true;
+                        if (regExpInclude) {
+                            ok = filePath.match(regExpInclude);
+                        }
+                        if (ok && regExpExclude) {
+                            ok = !filePath.match(regExpExclude);
+                        }
+
+                        if (ok && (!file.exclusionRegExp ||
+                            !file.exclusionRegExp.test(fileName))) {
+                            files.push(filePath);
+                        }
+                    } else if (stat.isDirectory() &&
+                              (!file.exclusionRegExp || !file.exclusionRegExp.test(fileName))) {
+                        dirFiles = this.getFilteredFileList(filePath, regExpFilters, makeUnixPaths);
+                        files.push.apply(files, dirFiles);
+                    }
+                }
+            }
+
+            return files; //Array
+        },
+
+        copyDir: function (/*String*/srcDir, /*String*/destDir, /*RegExp?*/regExpFilter, /*boolean?*/onlyCopyNew) {
+            //summary: copies files from srcDir to destDir using the regExpFilter to determine if the
+            //file should be copied. Returns a list file name strings of the destinations that were copied.
+            regExpFilter = regExpFilter || /\w/;
+
+            //Normalize th directory names, but keep front slashes.
+            //path module on windows now returns backslashed paths.
+            srcDir = frontSlash(path.normalize(srcDir));
+            destDir = frontSlash(path.normalize(destDir));
+
+            var fileNames = file.getFilteredFileList(srcDir, regExpFilter, true),
+            copiedFiles = [], i, srcFileName, destFileName;
+
+            for (i = 0; i < fileNames.length; i++) {
+                srcFileName = fileNames[i];
+                destFileName = srcFileName.replace(srcDir, destDir);
+
+                if (file.copyFile(srcFileName, destFileName, onlyCopyNew)) {
+                    copiedFiles.push(destFileName);
+                }
+            }
+
+            return copiedFiles.length ? copiedFiles : null; //Array or null
+        },
+
+        copyFile: function (/*String*/srcFileName, /*String*/destFileName, /*boolean?*/onlyCopyNew) {
+            //summary: copies srcFileName to destFileName. If onlyCopyNew is set, it only copies the file if
+            //srcFileName is newer than destFileName. Returns a boolean indicating if the copy occurred.
+            var parentDir;
+
+            //logger.trace("Src filename: " + srcFileName);
+            //logger.trace("Dest filename: " + destFileName);
+
+            //If onlyCopyNew is true, then compare dates and only copy if the src is newer
+            //than dest.
+            if (onlyCopyNew) {
+                if (file.exists(destFileName) && fs.statSync(destFileName).mtime.getTime() >= fs.statSync(srcFileName).mtime.getTime()) {
+                    return false; //Boolean
+                }
+            }
+
+            //Make sure destination dir exists.
+            parentDir = path.dirname(destFileName);
+            if (!file.exists(parentDir)) {
+                mkFullDir(parentDir);
+            }
+
+            fs.writeFileSync(destFileName, fs.readFileSync(srcFileName, 'binary'), 'binary');
+
+            return true; //Boolean
+        },
+
+        /**
+         * Renames a file. May fail if "to" already exists or is on another drive.
+         */
+        renameFile: function (from, to) {
+            return fs.renameSync(from, to);
+        },
+
+        /**
+         * Reads a *text* file.
+         */
+        readFile: function (/*String*/path, /*String?*/encoding) {
+            if (encoding === 'utf-8') {
+                encoding = 'utf8';
+            }
+            if (!encoding) {
+                encoding = 'utf8';
+            }
+
+            var text = fs.readFileSync(path, encoding);
+
+            //Hmm, would not expect to get A BOM, but it seems to happen,
+            //remove it just in case.
+            if (text.indexOf('\uFEFF') === 0) {
+                text = text.substring(1, text.length);
+            }
+
+            return text;
+        },
+
+        saveUtf8File: function (/*String*/fileName, /*String*/fileContents) {
+            //summary: saves a *text* file using UTF-8 encoding.
+            file.saveFile(fileName, fileContents, "utf8");
+        },
+
+        saveFile: function (/*String*/fileName, /*String*/fileContents, /*String?*/encoding) {
+            //summary: saves a *text* file.
+            var parentDir;
+
+            if (encoding === 'utf-8') {
+                encoding = 'utf8';
+            }
+            if (!encoding) {
+                encoding = 'utf8';
+            }
+
+            //Make sure destination directories exist.
+            parentDir = path.dirname(fileName);
+            if (!file.exists(parentDir)) {
+                mkFullDir(parentDir);
+            }
+
+            fs.writeFileSync(fileName, fileContents, encoding);
+        },
+
+        deleteFile: function (/*String*/fileName) {
+            //summary: deletes a file or directory if it exists.
+            var files, i, stat;
+            if (file.exists(fileName)) {
+                stat = fs.statSync(fileName);
+                if (stat.isDirectory()) {
+                    files = fs.readdirSync(fileName);
+                    for (i = 0; i < files.length; i++) {
+                        this.deleteFile(path.join(fileName, files[i]));
+                    }
+                    fs.rmdirSync(fileName);
+                } else {
+                    fs.unlinkSync(fileName);
+                }
+            }
+        }
+    };
+
+    return file;
+
+});
+
+}
+
+if(env === 'rhino') {
+/**
+ * @license RequireJS Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+//Helper functions to deal with file I/O.
+
+/*jslint plusplus: false, strict: false */
+/*global java: false, define: false */
+
+define('rhino/file', function () {
+    var file = {
+        backSlashRegExp: /\\/g,
+
+        exclusionRegExp: /^\./,
+
+        getLineSeparator: function () {
+            return file.lineSeparator;
+        },
+
+        lineSeparator: java.lang.System.getProperty("line.separator"), //Java String
+
+        exists: function (fileName) {
+            return (new java.io.File(fileName)).exists();
+        },
+
+        parent: function (fileName) {
+            return file.absPath((new java.io.File(fileName)).getParentFile());
+        },
+
+        normalize: function (fileName) {
+            return file.absPath(fileName);
+        },
+
+        isFile: function (path) {
+            return (new java.io.File(path)).isFile();
+        },
+
+        isDirectory: function (path) {
+            return (new java.io.File(path)).isDirectory();
+        },
+
+        /**
+         * Gets the absolute file path as a string, normalized
+         * to using front slashes for path separators.
+         * @param {java.io.File||String} file
+         */
+        absPath: function (fileObj) {
+            if (typeof fileObj === "string") {
+                fileObj = new java.io.File(fileObj);
+            }
+            return (fileObj.getAbsolutePath() + "").replace(file.backSlashRegExp, "/");
+        },
+
+        getFilteredFileList: function (/*String*/startDir, /*RegExp*/regExpFilters, /*boolean?*/makeUnixPaths, /*boolean?*/startDirIsJavaObject) {
+            //summary: Recurses startDir and finds matches to the files that match regExpFilters.include
+            //and do not match regExpFilters.exclude. Or just one regexp can be passed in for regExpFilters,
+            //and it will be treated as the "include" case.
+            //Ignores files/directories that start with a period (.) unless exclusionRegExp
+            //is set to another value.
+            var files = [], topDir, regExpInclude, regExpExclude, dirFileArray,
+                i, fileObj, filePath, ok, dirFiles;
+
+            topDir = startDir;
+            if (!startDirIsJavaObject) {
+                topDir = new java.io.File(startDir);
+            }
+
+            regExpInclude = regExpFilters.include || regExpFilters;
+            regExpExclude = regExpFilters.exclude || null;
+
+            if (topDir.exists()) {
+                dirFileArray = topDir.listFiles();
+                for (i = 0; i < dirFileArray.length; i++) {
+                    fileObj = dirFileArray[i];
+                    if (fileObj.isFile()) {
+                        filePath = fileObj.getPath();
+                        if (makeUnixPaths) {
+                            //Make sure we have a JS string.
+                            filePath = String(filePath);
+                            if (filePath.indexOf("/") === -1) {
+                                filePath = filePath.replace(/\\/g, "/");
+                            }
+                        }
+
+                        ok = true;
+                        if (regExpInclude) {
+                            ok = filePath.match(regExpInclude);
+                        }
+                        if (ok && regExpExclude) {
+                            ok = !filePath.match(regExpExclude);
+                        }
+
+                        if (ok && (!file.exclusionRegExp ||
+                            !file.exclusionRegExp.test(fileObj.getName()))) {
+                            files.push(filePath);
+                        }
+                    } else if (fileObj.isDirectory() &&
+                              (!file.exclusionRegExp || !file.exclusionRegExp.test(fileObj.getName()))) {
+                        dirFiles = this.getFilteredFileList(fileObj, regExpFilters, makeUnixPaths, true);
+                        files.push.apply(files, dirFiles);
+                    }
+                }
+            }
+
+            return files; //Array
+        },
+
+        copyDir: function (/*String*/srcDir, /*String*/destDir, /*RegExp?*/regExpFilter, /*boolean?*/onlyCopyNew) {
+            //summary: copies files from srcDir to destDir using the regExpFilter to determine if the
+            //file should be copied. Returns a list file name strings of the destinations that were copied.
+            regExpFilter = regExpFilter || /\w/;
+
+            var fileNames = file.getFilteredFileList(srcDir, regExpFilter, true),
+            copiedFiles = [], i, srcFileName, destFileName;
+
+            for (i = 0; i < fileNames.length; i++) {
+                srcFileName = fileNames[i];
+                destFileName = srcFileName.replace(srcDir, destDir);
+
+                if (file.copyFile(srcFileName, destFileName, onlyCopyNew)) {
+                    copiedFiles.push(destFileName);
+                }
+            }
+
+            return copiedFiles.length ? copiedFiles : null; //Array or null
+        },
+
+        copyFile: function (/*String*/srcFileName, /*String*/destFileName, /*boolean?*/onlyCopyNew) {
+            //summary: copies srcFileName to destFileName. If onlyCopyNew is set, it only copies the file if
+            //srcFileName is newer than destFileName. Returns a boolean indicating if the copy occurred.
+            var destFile = new java.io.File(destFileName), srcFile, parentDir,
+            srcChannel, destChannel;
+
+            //logger.trace("Src filename: " + srcFileName);
+            //logger.trace("Dest filename: " + destFileName);
+
+            //If onlyCopyNew is true, then compare dates and only copy if the src is newer
+            //than dest.
+            if (onlyCopyNew) {
+                srcFile = new java.io.File(srcFileName);
+                if (destFile.exists() && destFile.lastModified() >= srcFile.lastModified()) {
+                    return false; //Boolean
+                }
+            }
+
+            //Make sure destination dir exists.
+            parentDir = destFile.getParentFile();
+            if (!parentDir.exists()) {
+                if (!parentDir.mkdirs()) {
+                    throw "Could not create directory: " + parentDir.getAbsolutePath();
+                }
+            }
+
+            //Java's version of copy file.
+            srcChannel = new java.io.FileInputStream(srcFileName).getChannel();
+            destChannel = new java.io.FileOutputStream(destFileName).getChannel();
+            destChannel.transferFrom(srcChannel, 0, srcChannel.size());
+            srcChannel.close();
+            destChannel.close();
+
+            return true; //Boolean
+        },
+
+        /**
+         * Renames a file. May fail if "to" already exists or is on another drive.
+         */
+        renameFile: function (from, to) {
+            return (new java.io.File(from)).renameTo((new java.io.File(to)));
+        },
+
+        readFile: function (/*String*/path, /*String?*/encoding) {
+            //A file read function that can deal with BOMs
+            encoding = encoding || "utf-8";
+            var fileObj = new java.io.File(path),
+                    input = new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(fileObj), encoding)),
+                    stringBuffer, line;
+            try {
+                stringBuffer = new java.lang.StringBuffer();
+                line = input.readLine();
+
+                // Byte Order Mark (BOM) - The Unicode Standard, version 3.0, page 324
+                // http://www.unicode.org/faq/utf_bom.html
+
+                // Note that when we use utf-8, the BOM should appear as "EF BB BF", but it doesn't due to this bug in the JDK:
+                // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4508058
+                if (line && line.length() && line.charAt(0) === 0xfeff) {
+                    // Eat the BOM, since we've already found the encoding on this file,
+                    // and we plan to concatenating this buffer with others; the BOM should
+                    // only appear at the top of a file.
+                    line = line.substring(1);
+                }
+                while (line !== null) {
+                    stringBuffer.append(line);
+                    stringBuffer.append(file.lineSeparator);
+                    line = input.readLine();
+                }
+                //Make sure we return a JavaScript string and not a Java string.
+                return String(stringBuffer.toString()); //String
+            } finally {
+                input.close();
+            }
+        },
+
+        saveUtf8File: function (/*String*/fileName, /*String*/fileContents) {
+            //summary: saves a file using UTF-8 encoding.
+            file.saveFile(fileName, fileContents, "utf-8");
+        },
+
+        saveFile: function (/*String*/fileName, /*String*/fileContents, /*String?*/encoding) {
+            //summary: saves a file.
+            var outFile = new java.io.File(fileName), outWriter, parentDir, os;
+
+            parentDir = outFile.getAbsoluteFile().getParentFile();
+            if (!parentDir.exists()) {
+                if (!parentDir.mkdirs()) {
+                    throw "Could not create directory: " + parentDir.getAbsolutePath();
+                }
+            }
+
+            if (encoding) {
+                outWriter = new java.io.OutputStreamWriter(new java.io.FileOutputStream(outFile), encoding);
+            } else {
+                outWriter = new java.io.OutputStreamWriter(new java.io.FileOutputStream(outFile));
+            }
+
+            os = new java.io.BufferedWriter(outWriter);
+            try {
+                os.write(fileContents);
+            } finally {
+                os.close();
+            }
+        },
+
+        deleteFile: function (/*String*/fileName) {
+            //summary: deletes a file or directory if it exists.
+            var fileObj = new java.io.File(fileName), files, i;
+            if (fileObj.exists()) {
+                if (fileObj.isDirectory()) {
+                    files = fileObj.listFiles();
+                    for (i = 0; i < files.length; i++) {
+                        this.deleteFile(files[i]);
+                    }
+                }
+                fileObj["delete"]();
+            }
+        }
+    };
+
+    return file;
+});
+
+}
+/**
+ * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+
+/*jslint plusplus: true */
+/*global define */
+
+define('lang', function () {
+    'use strict';
+
+    var lang = {
+        backSlashRegExp: /\\/g,
+        ostring: Object.prototype.toString,
+
+        isArray: Array.isArray || function (it) {
+            return lang.ostring.call(it) === "[object Array]";
+        },
+
+        isFunction: function(it) {
+            return lang.ostring.call(it) === "[object Function]";
+        },
+
+        isRegExp: function(it) {
+            return it && it instanceof RegExp;
+        },
+
+        _mixin: function(dest, source, override){
+            var name;
+            for (name in source) {
+                if(source.hasOwnProperty(name)
+                    && (override || !dest.hasOwnProperty(name))) {
+                    dest[name] = source[name];
+                }
+            }
+
+            return dest; // Object
+        },
+
+        /**
+         * mixin({}, obj1, obj2) is allowed. If the last argument is a boolean,
+         * then the source objects properties are force copied over to dest.
+         */
+        mixin: function(dest){
+            var parameters = Array.prototype.slice.call(arguments),
+                override, i, l;
+
+            if (!dest) { dest = {}; }
+
+            if (parameters.length > 2 && typeof arguments[parameters.length-1] === 'boolean') {
+                override = parameters.pop();
+            }
+
+            for (i = 1, l = parameters.length; i < l; i++) {
+                lang._mixin(dest, parameters[i], override);
+            }
+            return dest; // Object
+        },
+
+        delegate: (function () {
+            // boodman/crockford delegation w/ cornford optimization
+            function TMP() {}
+            return function (obj, props) {
+                TMP.prototype = obj;
+                var tmp = new TMP();
+                TMP.prototype = null;
+                if (props) {
+                    lang.mixin(tmp, props);
+                }
+                return tmp; // Object
+            };
+        }())
+    };
+    return lang;
+});
+
+if(env === 'node') {
+/**
+ * @license RequireJS Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+
+/*jslint strict: false */
+/*global define: false, console: false */
+
+define('node/print', function () {
+    function print(msg) {
+        console.log(msg);
+    }
+
+    return print;
+});
+
+}
+
+if(env === 'rhino') {
+/**
+ * @license RequireJS Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+
+/*jslint strict: false */
+/*global define: false, print: false */
+
+define('rhino/print', function () {
+    return print;
+});
+
+}
+/**
+ * @license RequireJS Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+
+/*jslint nomen: false, strict: false */
+/*global define: false */
+
+define('logger', ['env!env/print'], function (print) {
+    var logger = {
+        TRACE: 0,
+        INFO: 1,
+        WARN: 2,
+        ERROR: 3,
+        SILENT: 4,
+        level: 0,
+        logPrefix: "",
+
+        logLevel: function( level ) {
+            this.level = level;
+        },
+
+        trace: function (message) {
+            if (this.level <= this.TRACE) {
+                this._print(message);
+            }
+        },
+
+        info: function (message) {
+            if (this.level <= this.INFO) {
+                this._print(message);
+            }
+        },
+
+        warn: function (message) {
+            if (this.level <= this.WARN) {
+                this._print(message);
+            }
+        },
+
+        error: function (message) {
+            if (this.level <= this.ERROR) {
+                this._print(message);
+            }
+        },
+
+        _print: function (message) {
+            this._sysPrint((this.logPrefix ? (this.logPrefix + " ") : "") + message);
+        },
+
+        _sysPrint: function (message) {
+            print(message);
+        }
+    };
+
+    return logger;
+});
+//Just a blank file to use when building the optimizer with the optimizer,
+//so that the build does not attempt to inline some env modules,
+//like Node's fs and path.
+
+//Just a blank file to use when building the optimizer with the optimizer,
+//so that the build does not attempt to inline some env modules,
+//like Node's fs and path.
+
+define('uglifyjs/parse-js', ["require", "exports", "module"], function(require, exports, module) {
+/***********************************************************************
+
+  A JavaScript tokenizer / parser / beautifier / compressor.
+
+  This version is suitable for Node.js.  With minimal changes (the
+  exports stuff) it should work on any JS platform.
+
+  This file contains the tokenizer/parser.  It is a port to JavaScript
+  of parse-js [1], a JavaScript parser library written in Common Lisp
+  by Marijn Haverbeke.  Thank you Marijn!
+
+  [1] http://marijn.haverbeke.nl/parse-js/
+
+  Exported functions:
+
+    - tokenizer(code) -- returns a function.  Call the returned
+      function to fetch the next token.
+
+    - parse(code) -- returns an AST of the given JavaScript code.
+
+  -------------------------------- (C) ---------------------------------
+
+                           Author: Mihai Bazon
+                         <mihai.bazon@gmail.com>
+                       http://mihai.bazon.net/blog
+
+  Distributed under the BSD license:
+
+    Copyright 2010 (c) Mihai Bazon <mihai.bazon@gmail.com>
+    Based on parse-js (http://marijn.haverbeke.nl/parse-js/).
+
+    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.
+
+    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “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 HOLDER 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.
+
+ ***********************************************************************/
+
+/* -----[ Tokenizer (constants) ]----- */
+
+var KEYWORDS = array_to_hash([
+        "break",
+        "case",
+        "catch",
+        "const",
+        "continue",
+        "default",
+        "delete",
+        "do",
+        "else",
+        "finally",
+        "for",
+        "function",
+        "if",
+        "in",
+        "instanceof",
+        "new",
+        "return",
+        "switch",
+        "throw",
+        "try",
+        "typeof",
+        "var",
+        "void",
+        "while",
+        "with"
+]);
+
+var RESERVED_WORDS = array_to_hash([
+        "abstract",
+        "boolean",
+        "byte",
+        "char",
+        "class",
+        "debugger",
+        "double",
+        "enum",
+        "export",
+        "extends",
+        "final",
+        "float",
+        "goto",
+        "implements",
+        "import",
+        "int",
+        "interface",
+        "long",
+        "native",
+        "package",
+        "private",
+        "protected",
+        "public",
+        "short",
+        "static",
+        "super",
+        "synchronized",
+        "throws",
+        "transient",
+        "volatile"
+]);
+
+var KEYWORDS_BEFORE_EXPRESSION = array_to_hash([
+        "return",
+        "new",
+        "delete",
+        "throw",
+        "else",
+        "case"
+]);
+
+var KEYWORDS_ATOM = array_to_hash([
+        "false",
+        "null",
+        "true",
+        "undefined"
+]);
+
+var OPERATOR_CHARS = array_to_hash(characters("+-*&%=<>!?|~^"));
+
+var RE_HEX_NUMBER = /^0x[0-9a-f]+$/i;
+var RE_OCT_NUMBER = /^0[0-7]+$/;
+var RE_DEC_NUMBER = /^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i;
+
+var OPERATORS = array_to_hash([
+        "in",
+        "instanceof",
+        "typeof",
+        "new",
+        "void",
+        "delete",
+        "++",
+        "--",
+        "+",
+        "-",
+        "!",
+        "~",
+        "&",
+        "|",
+        "^",
+        "*",
+        "/",
+        "%",
+        ">>",
+        "<<",
+        ">>>",
+        "<",
+        ">",
+        "<=",
+        ">=",
+        "==",
+        "===",
+        "!=",
+        "!==",
+        "?",
+        "=",
+        "+=",
+        "-=",
+        "/=",
+        "*=",
+        "%=",
+        ">>=",
+        "<<=",
+        ">>>=",
+        "|=",
+        "^=",
+        "&=",
+        "&&",
+        "||"
+]);
+
+var WHITESPACE_CHARS = array_to_hash(characters(" \u00a0\n\r\t\f\u000b\u200b\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000"));
+
+var PUNC_BEFORE_EXPRESSION = array_to_hash(characters("[{}(,.;:"));
+
+var PUNC_CHARS = array_to_hash(characters("[]{}(),;:"));
+
+var REGEXP_MODIFIERS = array_to_hash(characters("gmsiy"));
+
+/* -----[ Tokenizer ]----- */
+
+// regexps adapted from http://xregexp.com/plugins/#unicode
+var UNICODE = {
+        letter: new RegExp("[\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u0523\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0621-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971\\u0972\\u097B-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D28\\u0D2A-\\u0D39\\u0D3D\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC\\u0EDD\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8B\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10D0-\\u10FA\\u10FC\\u1100-\\u1159\\u115F-\\u11A2\\u11A8-\\u11F9\\u1200-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u1676\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u1900-\\u191C\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19A9\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u2094\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2C6F\\u2C71-\\u2C7D\\u2C80-\\u2CE4\\u2D00-\\u2D25\\u2D30-\\u2D65\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31B7\\u31F0-\\u31FF\\u3400\\u4DB5\\u4E00\\u9FC3\\uA000-\\uA48C\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA65F\\uA662-\\uA66E\\uA67F-\\uA697\\uA717-\\uA71F\\uA722-\\uA788\\uA78B\\uA78C\\uA7FB-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA90A-\\uA925\\uA930-\\uA946\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAC00\\uD7A3\\uF900-\\uFA2D\\uFA30-\\uFA6A\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),
+        non_spacing_mark: new RegExp("[\\u0300-\\u036F\\u0483-\\u0487\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065E\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0900-\\u0902\\u093C\\u0941-\\u0948\\u094D\\u0951-\\u0955\\u0962\\u0963\\u0981\\u09BC\\u09C1-\\u09C4\\u09CD\\u09E2\\u09E3\\u0A01\\u0A02\\u0A3C\\u0A41\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81\\u0A82\\u0ABC\\u0AC1-\\u0AC5\\u0AC7\\u0AC8\\u0ACD\\u0AE2\\u0AE3\\u0B01\\u0B3C\\u0B3F\\u0B41-\\u0B44\\u0B4D\\u0B56\\u0B62\\u0B63\\u0B82\\u0BC0\\u0BCD\\u0C3E-\\u0C40\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0CBC\\u0CBF\\u0CC6\\u0CCC\\u0CCD\\u0CE2\\u0CE3\\u0D41-\\u0D44\\u0D4D\\u0D62\\u0D63\\u0DCA\\u0DD2-\\u0DD4\\u0DD6\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F71-\\u0F7E\\u0F80-\\u0F84\\u0F86\\u0F87\\u0F90-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1030\\u1032-\\u1037\\u1039\\u103A\\u103D\\u103E\\u1058\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1085\\u1086\\u108D\\u109D\\u135F\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B7-\\u17BD\\u17C6\\u17C9-\\u17D3\\u17DD\\u180B-\\u180D\\u18A9\\u1920-\\u1922\\u1927\\u1928\\u1932\\u1939-\\u193B\\u1A17\\u1A18\\u1A56\\u1A58-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A6C\\u1A73-\\u1A7C\\u1A7F\\u1B00-\\u1B03\\u1B34\\u1B36-\\u1B3A\\u1B3C\\u1B42\\u1B6B-\\u1B73\\u1B80\\u1B81\\u1BA2-\\u1BA5\\u1BA8\\u1BA9\\u1C2C-\\u1C33\\u1C36\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE0\\u1CE2-\\u1CE8\\u1CED\\u1DC0-\\u1DE6\\u1DFD-\\u1DFF\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F\\uA67C\\uA67D\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA825\\uA826\\uA8C4\\uA8E0-\\uA8F1\\uA926-\\uA92D\\uA947-\\uA951\\uA980-\\uA982\\uA9B3\\uA9B6-\\uA9B9\\uA9BC\\uAA29-\\uAA2E\\uAA31\\uAA32\\uAA35\\uAA36\\uAA43\\uAA4C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uABE5\\uABE8\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE26]"),
+        space_combining_mark: new RegExp("[\\u0903\\u093E-\\u0940\\u0949-\\u094C\\u094E\\u0982\\u0983\\u09BE-\\u09C0\\u09C7\\u09C8\\u09CB\\u09CC\\u09D7\\u0A03\\u0A3E-\\u0A40\\u0A83\\u0ABE-\\u0AC0\\u0AC9\\u0ACB\\u0ACC\\u0B02\\u0B03\\u0B3E\\u0B40\\u0B47\\u0B48\\u0B4B\\u0B4C\\u0B57\\u0BBE\\u0BBF\\u0BC1\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCC\\u0BD7\\u0C01-\\u0C03\\u0C41-\\u0C44\\u0C82\\u0C83\\u0CBE\\u0CC0-\\u0CC4\\u0CC7\\u0CC8\\u0CCA\\u0CCB\\u0CD5\\u0CD6\\u0D02\\u0D03\\u0D3E-\\u0D40\\u0D46-\\u0D48\\u0D4A-\\u0D4C\\u0D57\\u0D82\\u0D83\\u0DCF-\\u0DD1\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0F3E\\u0F3F\\u0F7F\\u102B\\u102C\\u1031\\u1038\\u103B\\u103C\\u1056\\u1057\\u1062-\\u1064\\u1067-\\u106D\\u1083\\u1084\\u1087-\\u108C\\u108F\\u109A-\\u109C\\u17B6\\u17BE-\\u17C5\\u17C7\\u17C8\\u1923-\\u1926\\u1929-\\u192B\\u1930\\u1931\\u1933-\\u1938\\u19B0-\\u19C0\\u19C8\\u19C9\\u1A19-\\u1A1B\\u1A55\\u1A57\\u1A61\\u1A63\\u1A64\\u1A6D-\\u1A72\\u1B04\\u1B35\\u1B3B\\u1B3D-\\u1B41\\u1B43\\u1B44\\u1B82\\u1BA1\\u1BA6\\u1BA7\\u1BAA\\u1C24-\\u1C2B\\u1C34\\u1C35\\u1CE1\\u1CF2\\uA823\\uA824\\uA827\\uA880\\uA881\\uA8B4-\\uA8C3\\uA952\\uA953\\uA983\\uA9B4\\uA9B5\\uA9BA\\uA9BB\\uA9BD-\\uA9C0\\uAA2F\\uAA30\\uAA33\\uAA34\\uAA4D\\uAA7B\\uABE3\\uABE4\\uABE6\\uABE7\\uABE9\\uABEA\\uABEC]"),
+        connector_punctuation: new RegExp("[\\u005F\\u203F\\u2040\\u2054\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFF3F]")
+};
+
+function is_letter(ch) {
+        return UNICODE.letter.test(ch);
+};
+
+function is_digit(ch) {
+        ch = ch.charCodeAt(0);
+        return ch >= 48 && ch <= 57; //XXX: find out if "UnicodeDigit" means something else than 0..9
+};
+
+function is_alphanumeric_char(ch) {
+        return is_digit(ch) || is_letter(ch);
+};
+
+function is_unicode_combining_mark(ch) {
+        return UNICODE.non_spacing_mark.test(ch) || UNICODE.space_combining_mark.test(ch);
+};
+
+function is_unicode_connector_punctuation(ch) {
+        return UNICODE.connector_punctuation.test(ch);
+};
+
+function is_identifier_start(ch) {
+        return ch == "$" || ch == "_" || is_letter(ch);
+};
+
+function is_identifier_char(ch) {
+        return is_identifier_start(ch)
+                || is_unicode_combining_mark(ch)
+                || is_digit(ch)
+                || is_unicode_connector_punctuation(ch)
+                || ch == "\u200c" // zero-width non-joiner <ZWNJ>
+                || ch == "\u200d" // zero-width joiner <ZWJ> (in my ECMA-262 PDF, this is also 200c)
+        ;
+};
+
+function parse_js_number(num) {
+        if (RE_HEX_NUMBER.test(num)) {
+                return parseInt(num.substr(2), 16);
+        } else if (RE_OCT_NUMBER.test(num)) {
+                return parseInt(num.substr(1), 8);
+        } else if (RE_DEC_NUMBER.test(num)) {
+                return parseFloat(num);
+        }
+};
+
+function JS_Parse_Error(message, line, col, pos) {
+        this.message = message;
+        this.line = line + 1;
+        this.col = col + 1;
+        this.pos = pos + 1;
+        this.stack = new Error().stack;
+};
+
+JS_Parse_Error.prototype.toString = function() {
+        return this.message + " (line: " + this.line + ", col: " + this.col + ", pos: " + this.pos + ")" + "\n\n" + this.stack;
+};
+
+function js_error(message, line, col, pos) {
+        throw new JS_Parse_Error(message, line, col, pos);
+};
+
+function is_token(token, type, val) {
+        return token.type == type && (val == null || token.value == val);
+};
+
+var EX_EOF = {};
+
+function tokenizer($TEXT) {
+
+        var S = {
+                text            : $TEXT.replace(/\r\n?|[\n\u2028\u2029]/g, "\n").replace(/^\uFEFF/, ''),
+                pos             : 0,
+                tokpos          : 0,
+                line            : 0,
+                tokline         : 0,
+                col             : 0,
+                tokcol          : 0,
+                newline_before  : false,
+                regex_allowed   : false,
+                comments_before : []
+        };
+
+        function peek() { return S.text.charAt(S.pos); };
+
+        function next(signal_eof, in_string) {
+                var ch = S.text.charAt(S.pos++);
+                if (signal_eof && !ch)
+                        throw EX_EOF;
+                if (ch == "\n") {
+                        S.newline_before = S.newline_before || !in_string;
+                        ++S.line;
+                        S.col = 0;
+                } else {
+                        ++S.col;
+                }
+                return ch;
+        };
+
+        function eof() {
+                return !S.peek();
+        };
+
+        function find(what, signal_eof) {
+                var pos = S.text.indexOf(what, S.pos);
+                if (signal_eof && pos == -1) throw EX_EOF;
+                return pos;
+        };
+
+        function start_token() {
+                S.tokline = S.line;
+                S.tokcol = S.col;
+                S.tokpos = S.pos;
+        };
+
+        function token(type, value, is_comment) {
+                S.regex_allowed = ((type == "operator" && !HOP(UNARY_POSTFIX, value)) ||
+                                   (type == "keyword" && HOP(KEYWORDS_BEFORE_EXPRESSION, value)) ||
+                                   (type == "punc" && HOP(PUNC_BEFORE_EXPRESSION, value)));
+                var ret = {
+                        type   : type,
+                        value  : value,
+                        line   : S.tokline,
+                        col    : S.tokcol,
+                        pos    : S.tokpos,
+                        endpos : S.pos,
+                        nlb    : S.newline_before
+                };
+                if (!is_comment) {
+                        ret.comments_before = S.comments_before;
+                        S.comments_before = [];
+                }
+                S.newline_before = false;
+                return ret;
+        };
+
+        function skip_whitespace() {
+                while (HOP(WHITESPACE_CHARS, peek()))
+                        next();
+        };
+
+        function read_while(pred) {
+                var ret = "", ch = peek(), i = 0;
+                while (ch && pred(ch, i++)) {
+                        ret += next();
+                        ch = peek();
+                }
+                return ret;
+        };
+
+        function parse_error(err) {
+                js_error(err, S.tokline, S.tokcol, S.tokpos);
+        };
+
+        function read_num(prefix) {
+                var has_e = false, after_e = false, has_x = false, has_dot = prefix == ".";
+                var num = read_while(function(ch, i){
+                        if (ch == "x" || ch == "X") {
+                                if (has_x) return false;
+                                return has_x = true;
+                        }
+                        if (!has_x && (ch == "E" || ch == "e")) {
+                                if (has_e) return false;
+                                return has_e = after_e = true;
+                        }
+                        if (ch == "-") {
+                                if (after_e || (i == 0 && !prefix)) return true;
+                                return false;
+                        }
+                        if (ch == "+") return after_e;
+                        after_e = false;
+                        if (ch == ".") {
+                                if (!has_dot && !has_x)
+                                        return has_dot = true;
+                                return false;
+                        }
+                        return is_alphanumeric_char(ch);
+                });
+                if (prefix)
+                        num = prefix + num;
+                var valid = parse_js_number(num);
+                if (!isNaN(valid)) {
+                        return token("num", valid);
+                } else {
+                        parse_error("Invalid syntax: " + num);
+                }
+        };
+
+        function read_escaped_char(in_string) {
+                var ch = next(true, in_string);
+                switch (ch) {
+                    case "n" : return "\n";
+                    case "r" : return "\r";
+                    case "t" : return "\t";
+                    case "b" : return "\b";
+                    case "v" : return "\u000b";
+                    case "f" : return "\f";
+                    case "0" : return "\0";
+                    case "x" : return String.fromCharCode(hex_bytes(2));
+                    case "u" : return String.fromCharCode(hex_bytes(4));
+                    case "\n": return "";
+                    default  : return ch;
+                }
+        };
+
+        function hex_bytes(n) {
+                var num = 0;
+                for (; n > 0; --n) {
+                        var digit = parseInt(next(true), 16);
+                        if (isNaN(digit))
+                                parse_error("Invalid hex-character pattern in string");
+                        num = (num << 4) | digit;
+                }
+                return num;
+        };
+
+        function read_string() {
+                return with_eof_error("Unterminated string constant", function(){
+                        var quote = next(), ret = "";
+                        for (;;) {
+                                var ch = next(true);
+                                if (ch == "\\") {
+                                        // read OctalEscapeSequence (XXX: deprecated if "strict mode")
+                                        // https://github.com/mishoo/UglifyJS/issues/178
+                                        var octal_len = 0, first = null;
+                                        ch = read_while(function(ch){
+                                                if (ch >= "0" && ch <= "7") {
+                                                        if (!first) {
+                                                                first = ch;
+                                                                return ++octal_len;
+                                                        }
+                                                        else if (first <= "3" && octal_len <= 2) return ++octal_len;
+                                                        else if (first >= "4" && octal_len <= 1) return ++octal_len;
+                                                }
+                                                return false;
+                                        });
+                                        if (octal_len > 0) ch = String.fromCharCode(parseInt(ch, 8));
+                                        else ch = read_escaped_char(true);
+                                }
+                                else if (ch == quote) break;
+                                ret += ch;
+                        }
+                        return token("string", ret);
+                });
+        };
+
+        function read_line_comment() {
+                next();
+                var i = find("\n"), ret;
+                if (i == -1) {
+                        ret = S.text.substr(S.pos);
+                        S.pos = S.text.length;
+                } else {
+                        ret = S.text.substring(S.pos, i);
+                        S.pos = i;
+                }
+                return token("comment1", ret, true);
+        };
+
+        function read_multiline_comment() {
+                next();
+                return with_eof_error("Unterminated multiline comment", function(){
+                        var i = find("*/", true),
+                            text = S.text.substring(S.pos, i);
+                        S.pos = i + 2;
+                        S.line += text.split("\n").length - 1;
+                        S.newline_before = text.indexOf("\n") >= 0;
+
+                        // https://github.com/mishoo/UglifyJS/issues/#issue/100
+                        if (/^@cc_on/i.test(text)) {
+                                warn("WARNING: at line " + S.line);
+                                warn("*** Found \"conditional comment\": " + text);
+                                warn("*** UglifyJS DISCARDS ALL COMMENTS.  This means your code might no longer work properly in Internet Explorer.");
+                        }
+
+                        return token("comment2", text, true);
+                });
+        };
+
+        function read_name() {
+                var backslash = false, name = "", ch;
+                while ((ch = peek()) != null) {
+                        if (!backslash) {
+                                if (ch == "\\") backslash = true, next();
+                                else if (is_identifier_char(ch)) name += next();
+                                else break;
+                        }
+                        else {
+                                if (ch != "u") parse_error("Expecting UnicodeEscapeSequence -- uXXXX");
+                                ch = read_escaped_char();
+                                if (!is_identifier_char(ch)) parse_error("Unicode char: " + ch.charCodeAt(0) + " is not valid in identifier");
+                                name += ch;
+                                backslash = false;
+                        }
+                }
+                return name;
+        };
+
+        function read_regexp(regexp) {
+                return with_eof_error("Unterminated regular expression", function(){
+                        var prev_backslash = false, ch, in_class = false;
+                        while ((ch = next(true))) if (prev_backslash) {
+                                regexp += "\\" + ch;
+                                prev_backslash = false;
+                        } else if (ch == "[") {
+                                in_class = true;
+                                regexp += ch;
+                        } else if (ch == "]" && in_class) {
+                                in_class = false;
+                                regexp += ch;
+                        } else if (ch == "/" && !in_class) {
+                                break;
+                        } else if (ch == "\\") {
+                                prev_backslash = true;
+                        } else {
+                                regexp += ch;
+                        }
+                        var mods = read_name();
+                        return token("regexp", [ regexp, mods ]);
+                });
+        };
+
+        function read_operator(prefix) {
+                function grow(op) {
+                        if (!peek()) return op;
+                        var bigger = op + peek();
+                        if (HOP(OPERATORS, bigger)) {
+                                next();
+                                return grow(bigger);
+                        } else {
+                                return op;
+                        }
+                };
+                return token("operator", grow(prefix || next()));
+        };
+
+        function handle_slash() {
+                next();
+                var regex_allowed = S.regex_allowed;
+                switch (peek()) {
+                    case "/":
+                        S.comments_before.push(read_line_comment());
+                        S.regex_allowed = regex_allowed;
+                        return next_token();
+                    case "*":
+                        S.comments_before.push(read_multiline_comment());
+                        S.regex_allowed = regex_allowed;
+                        return next_token();
+                }
+                return S.regex_allowed ? read_regexp("") : read_operator("/");
+        };
+
+        function handle_dot() {
+                next();
+                return is_digit(peek())
+                        ? read_num(".")
+                        : token("punc", ".");
+        };
+
+        function read_word() {
+                var word = read_name();
+                return !HOP(KEYWORDS, word)
+                        ? token("name", word)
+                        : HOP(OPERATORS, word)
+                        ? token("operator", word)
+                        : HOP(KEYWORDS_ATOM, word)
+                        ? token("atom", word)
+                        : token("keyword", word);
+        };
+
+        function with_eof_error(eof_error, cont) {
+                try {
+                        return cont();
+                } catch(ex) {
+                        if (ex === EX_EOF) parse_error(eof_error);
+                        else throw ex;
+                }
+        };
+
+        function next_token(force_regexp) {
+                if (force_regexp != null)
+                        return read_regexp(force_regexp);
+                skip_whitespace();
+                start_token();
+                var ch = peek();
+                if (!ch) return token("eof");
+                if (is_digit(ch)) return read_num();
+                if (ch == '"' || ch == "'") return read_string();
+                if (HOP(PUNC_CHARS, ch)) return token("punc", next());
+                if (ch == ".") return handle_dot();
+                if (ch == "/") return handle_slash();
+                if (HOP(OPERATOR_CHARS, ch)) return read_operator();
+                if (ch == "\\" || is_identifier_start(ch)) return read_word();
+                parse_error("Unexpected character '" + ch + "'");
+        };
+
+        next_token.context = function(nc) {
+                if (nc) S = nc;
+                return S;
+        };
+
+        return next_token;
+
+};
+
+/* -----[ Parser (constants) ]----- */
+
+var UNARY_PREFIX = array_to_hash([
+        "typeof",
+        "void",
+        "delete",
+        "--",
+        "++",
+        "!",
+        "~",
+        "-",
+        "+"
+]);
+
+var UNARY_POSTFIX = array_to_hash([ "--", "++" ]);
+
+var ASSIGNMENT = (function(a, ret, i){
+        while (i < a.length) {
+                ret[a[i]] = a[i].substr(0, a[i].length - 1);
+                i++;
+        }
+        return ret;
+})(
+        ["+=", "-=", "/=", "*=", "%=", ">>=", "<<=", ">>>=", "|=", "^=", "&="],
+        { "=": true },
+        0
+);
+
+var PRECEDENCE = (function(a, ret){
+        for (var i = 0, n = 1; i < a.length; ++i, ++n) {
+                var b = a[i];
+                for (var j = 0; j < b.length; ++j) {
+                        ret[b[j]] = n;
+                }
+        }
+        return ret;
+})(
+        [
+                ["||"],
+                ["&&"],
+                ["|"],
+                ["^"],
+                ["&"],
+                ["==", "===", "!=", "!=="],
+                ["<", ">", "<=", ">=", "in", "instanceof"],
+                [">>", "<<", ">>>"],
+                ["+", "-"],
+                ["*", "/", "%"]
+        ],
+        {}
+);
+
+var STATEMENTS_WITH_LABELS = array_to_hash([ "for", "do", "while", "switch" ]);
+
+var ATOMIC_START_TOKEN = array_to_hash([ "atom", "num", "string", "regexp", "name" ]);
+
+/* -----[ Parser ]----- */
+
+function NodeWithToken(str, start, end) {
+        this.name = str;
+        this.start = start;
+        this.end = end;
+};
+
+NodeWithToken.prototype.toString = function() { return this.name; };
+
+function parse($TEXT, exigent_mode, embed_tokens) {
+
+        var S = {
+                input       : typeof $TEXT == "string" ? tokenizer($TEXT, true) : $TEXT,
+                token       : null,
+                prev        : null,
+                peeked      : null,
+                in_function : 0,
+                in_loop     : 0,
+                labels      : []
+        };
+
+        S.token = next();
+
+        function is(type, value) {
+                return is_token(S.token, type, value);
+        };
+
+        function peek() { return S.peeked || (S.peeked = S.input()); };
+
+        function next() {
+                S.prev = S.token;
+                if (S.peeked) {
+                        S.token = S.peeked;
+                        S.peeked = null;
+                } else {
+                        S.token = S.input();
+                }
+                return S.token;
+        };
+
+        function prev() {
+                return S.prev;
+        };
+
+        function croak(msg, line, col, pos) {
+                var ctx = S.input.context();
+                js_error(msg,
+                         line != null ? line : ctx.tokline,
+                         col != null ? col : ctx.tokcol,
+                         pos != null ? pos : ctx.tokpos);
+        };
+
+        function token_error(token, msg) {
+                croak(msg, token.line, token.col);
+        };
+
+        function unexpected(token) {
+                if (token == null)
+                        token = S.token;
+                token_error(token, "Unexpected token: " + token.type + " (" + token.value + ")");
+        };
+
+        function expect_token(type, val) {
+                if (is(type, val)) {
+                        return next();
+                }
+                token_error(S.token, "Unexpected token " + S.token.type + ", expected " + type);
+        };
+
+        function expect(punc) { return expect_token("punc", punc); };
+
+        function can_insert_semicolon() {
+                return !exigent_mode && (
+                        S.token.nlb || is("eof") || is("punc", "}")
+                );
+        };
+
+        function semicolon() {
+                if (is("punc", ";")) next();
+                else if (!can_insert_semicolon()) unexpected();
+        };
+
+        function as() {
+                return slice(arguments);
+        };
+
+        function parenthesised() {
+                expect("(");
+                var ex = expression();
+                expect(")");
+                return ex;
+        };
+
+        function add_tokens(str, start, end) {
+                return str instanceof NodeWithToken ? str : new NodeWithToken(str, start, end);
+        };
+
+        function maybe_embed_tokens(parser) {
+                if (embed_tokens) return function() {
+                        var start = S.token;
+                        var ast = parser.apply(this, arguments);
+                        ast[0] = add_tokens(ast[0], start, prev());
+                        return ast;
+                };
+                else return parser;
+        };
+
+        var statement = maybe_embed_tokens(function() {
+                if (is("operator", "/") || is("operator", "/=")) {
+                        S.peeked = null;
+                        S.token = S.input(S.token.value.substr(1)); // force regexp
+                }
+                switch (S.token.type) {
+                    case "num":
+                    case "string":
+                    case "regexp":
+                    case "operator":
+                    case "atom":
+                        return simple_statement();
+
+                    case "name":
+                        return is_token(peek(), "punc", ":")
+                                ? labeled_statement(prog1(S.token.value, next, next))
+                                : simple_statement();
+
+                    case "punc":
+                        switch (S.token.value) {
+                            case "{":
+                                return as("block", block_());
+                            case "[":
+                            case "(":
+                                return simple_statement();
+                            case ";":
+                                next();
+                                return as("block");
+                            default:
+                                unexpected();
+                        }
+
+                    case "keyword":
+                        switch (prog1(S.token.value, next)) {
+                            case "break":
+                                return break_cont("break");
+
+                            case "continue":
+                                return break_cont("continue");
+
+                            case "debugger":
+                                semicolon();
+                                return as("debugger");
+
+                            case "do":
+                                return (function(body){
+                                        expect_token("keyword", "while");
+                                        return as("do", prog1(parenthesised, semicolon), body);
+                                })(in_loop(statement));
+
+                            case "for":
+                                return for_();
+
+                            case "function":
+                                return function_(true);
+
+                            case "if":
+                                return if_();
+
+                            case "return":
+                                if (S.in_function == 0)
+                                        croak("'return' outside of function");
+                                return as("return",
+                                          is("punc", ";")
+                                          ? (next(), null)
+                                          : can_insert_semicolon()
+                                          ? null
+                                          : prog1(expression, semicolon));
+
+                            case "switch":
+                                return as("switch", parenthesised(), switch_block_());
+
+                            case "throw":
+                                if (S.token.nlb)
+                                        croak("Illegal newline after 'throw'");
+                                return as("throw", prog1(expression, semicolon));
+
+                            case "try":
+                                return try_();
+
+                            case "var":
+                                return prog1(var_, semicolon);
+
+                            case "const":
+                                return prog1(const_, semicolon);
+
+                            case "while":
+                                return as("while", parenthesised(), in_loop(statement));
+
+                            case "with":
+                                return as("with", parenthesised(), statement());
+
+                            default:
+                                unexpected();
+                        }
+                }
+        });
+
+        function labeled_statement(label) {
+                S.labels.push(label);
+                var start = S.token, stat = statement();
+                if (exigent_mode && !HOP(STATEMENTS_WITH_LABELS, stat[0]))
+                        unexpected(start);
+                S.labels.pop();
+                return as("label", label, stat);
+        };
+
+        function simple_statement() {
+                return as("stat", prog1(expression, semicolon));
+        };
+
+        function break_cont(type) {
+                var name;
+                if (!can_insert_semicolon()) {
+                        name = is("name") ? S.token.value : null;
+                }
+                if (name != null) {
+                        next();
+                        if (!member(name, S.labels))
+                                croak("Label " + name + " without matching loop or statement");
+                }
+                else if (S.in_loop == 0)
+                        croak(type + " not inside a loop or switch");
+                semicolon();
+                return as(type, name);
+        };
+
+        function for_() {
+                expect("(");
+                var init = null;
+                if (!is("punc", ";")) {
+                        init = is("keyword", "var")
+                                ? (next(), var_(true))
+                                : expression(true, true);
+                        if (is("operator", "in"))
+                                return for_in(init);
+                }
+                return regular_for(init);
+        };
+
+        function regular_for(init) {
+                expect(";");
+                var test = is("punc", ";") ? null : expression();
+                expect(";");
+                var step = is("punc", ")") ? null : expression();
+                expect(")");
+                return as("for", init, test, step, in_loop(statement));
+        };
+
+        function for_in(init) {
+                var lhs = init[0] == "var" ? as("name", init[1][0]) : init;
+                next();
+                var obj = expression();
+                expect(")");
+                return as("for-in", init, lhs, obj, in_loop(statement));
+        };
+
+        var function_ = function(in_statement) {
+                var name = is("name") ? prog1(S.token.value, next) : null;
+                if (in_statement && !name)
+                        unexpected();
+                expect("(");
+                return as(in_statement ? "defun" : "function",
+                          name,
+                          // arguments
+                          (function(first, a){
+                                  while (!is("punc", ")")) {
+                                          if (first) first = false; else expect(",");
+                                          if (!is("name")) unexpected();
+                                          a.push(S.token.value);
+                                          next();
+                                  }
+                                  next();
+                                  return a;
+                          })(true, []),
+                          // body
+                          (function(){
+                                  ++S.in_function;
+                                  var loop = S.in_loop;
+                                  S.in_loop = 0;
+                                  var a = block_();
+                                  --S.in_function;
+                                  S.in_loop = loop;
+                                  return a;
+                          })());
+        };
+
+        function if_() {
+                var cond = parenthesised(), body = statement(), belse;
+                if (is("keyword", "else")) {
+                        next();
+                        belse = statement();
+                }
+                return as("if", cond, body, belse);
+        };
+
+        function block_() {
+                expect("{");
+                var a = [];
+                while (!is("punc", "}")) {
+                        if (is("eof")) unexpected();
+                        a.push(statement());
+                }
+                next();
+                return a;
+        };
+
+        var switch_block_ = curry(in_loop, function(){
+                expect("{");
+                var a = [], cur = null;
+                while (!is("punc", "}")) {
+                        if (is("eof")) unexpected();
+                        if (is("keyword", "case")) {
+                                next();
+                                cur = [];
+                                a.push([ expression(), cur ]);
+                                expect(":");
+                        }
+                        else if (is("keyword", "default")) {
+                                next();
+                                expect(":");
+                                cur = [];
+                                a.push([ null, cur ]);
+                        }
+                        else {
+                                if (!cur) unexpected();
+                                cur.push(statement());
+                        }
+                }
+                next();
+                return a;
+        });
+
+        function try_() {
+                var body = block_(), bcatch, bfinally;
+                if (is("keyword", "catch")) {
+                        next();
+                        expect("(");
+                        if (!is("name"))
+                                croak("Name expected");
+                        var name = S.token.value;
+                        next();
+                        expect(")");
+                        bcatch = [ name, block_() ];
+                }
+                if (is("keyword", "finally")) {
+                        next();
+                        bfinally = block_();
+                }
+                if (!bcatch && !bfinally)
+                        croak("Missing catch/finally blocks");
+                return as("try", body, bcatch, bfinally);
+        };
+
+        function vardefs(no_in) {
+                var a = [];
+                for (;;) {
+                        if (!is("name"))
+                                unexpected();
+                        var name = S.token.value;
+                        next();
+                        if (is("operator", "=")) {
+                                next();
+                                a.push([ name, expression(false, no_in) ]);
+                        } else {
+                                a.push([ name ]);
+                        }
+                        if (!is("punc", ","))
+                                break;
+                        next();
+                }
+                return a;
+        };
+
+        function var_(no_in) {
+                return as("var", vardefs(no_in));
+        };
+
+        function const_() {
+                return as("const", vardefs());
+        };
+
+        function new_() {
+                var newexp = expr_atom(false), args;
+                if (is("punc", "(")) {
+                        next();
+                        args = expr_list(")");
+                } else {
+                        args = [];
+                }
+                return subscripts(as("new", newexp, args), true);
+        };
+
+        var expr_atom = maybe_embed_tokens(function(allow_calls) {
+                if (is("operator", "new")) {
+                        next();
+                        return new_();
+                }
+                if (is("punc")) {
+                        switch (S.token.value) {
+                            case "(":
+                                next();
+                                return subscripts(prog1(expression, curry(expect, ")")), allow_calls);
+                            case "[":
+                                next();
+                                return subscripts(array_(), allow_calls);
+                            case "{":
+                                next();
+                                return subscripts(object_(), allow_calls);
+                        }
+                        unexpected();
+                }
+                if (is("keyword", "function")) {
+                        next();
+                        return subscripts(function_(false), allow_calls);
+                }
+                if (HOP(ATOMIC_START_TOKEN, S.token.type)) {
+                        var atom = S.token.type == "regexp"
+                                ? as("regexp", S.token.value[0], S.token.value[1])
+                                : as(S.token.type, S.token.value);
+                        return subscripts(prog1(atom, next), allow_calls);
+                }
+                unexpected();
+        });
+
+        function expr_list(closing, allow_trailing_comma, allow_empty) {
+                var first = true, a = [];
+                while (!is("punc", closing)) {
+                        if (first) first = false; else expect(",");
+                        if (allow_trailing_comma && is("punc", closing)) break;
+                        if (is("punc", ",") && allow_empty) {
+                                a.push([ "atom", "undefined" ]);
+                        } else {
+                                a.push(expression(false));
+                        }
+                }
+                next();
+                return a;
+        };
+
+        function array_() {
+                return as("array", expr_list("]", !exigent_mode, true));
+        };
+
+        function object_() {
+                var first = true, a = [];
+                while (!is("punc", "}")) {
+                        if (first) first = false; else expect(",");
+                        if (!exigent_mode && is("punc", "}"))
+                                // allow trailing comma
+                                break;
+                        var type = S.token.type;
+                        var name = as_property_name();
+                        if (type == "name" && (name == "get" || name == "set") && !is("punc", ":")) {
+                                a.push([ as_name(), function_(false), name ]);
+                        } else {
+                                expect(":");
+                                a.push([ name, expression(false) ]);
+                        }
+                }
+                next();
+                return as("object", a);
+        };
+
+        function as_property_name() {
+                switch (S.token.type) {
+                    case "num":
+                    case "string":
+                        return prog1(S.token.value, next);
+                }
+                return as_name();
+        };
+
+        function as_name() {
+                switch (S.token.type) {
+                    case "name":
+                    case "operator":
+                    case "keyword":
+                    case "atom":
+                        return prog1(S.token.value, next);
+                    default:
+                        unexpected();
+                }
+        };
+
+        function subscripts(expr, allow_calls) {
+                if (is("punc", ".")) {
+                        next();
+                        return subscripts(as("dot", expr, as_name()), allow_calls);
+                }
+                if (is("punc", "[")) {
+                        next();
+                        return subscripts(as("sub", expr, prog1(expression, curry(expect, "]"))), allow_calls);
+                }
+                if (allow_calls && is("punc", "(")) {
+                        next();
+                        return subscripts(as("call", expr, expr_list(")")), true);
+                }
+                return expr;
+        };
+
+        function maybe_unary(allow_calls) {
+                if (is("operator") && HOP(UNARY_PREFIX, S.token.value)) {
+                        return make_unary("unary-prefix",
+                                          prog1(S.token.value, next),
+                                          maybe_unary(allow_calls));
+                }
+                var val = expr_atom(allow_calls);
+                while (is("operator") && HOP(UNARY_POSTFIX, S.token.value) && !S.token.nlb) {
+                        val = make_unary("unary-postfix", S.token.value, val);
+                        next();
+                }
+                return val;
+        };
+
+        function make_unary(tag, op, expr) {
+                if ((op == "++" || op == "--") && !is_assignable(expr))
+                        croak("Invalid use of " + op + " operator");
+                return as(tag, op, expr);
+        };
+
+        function expr_op(left, min_prec, no_in) {
+                var op = is("operator") ? S.token.value : null;
+                if (op && op == "in" && no_in) op = null;
+                var prec = op != null ? PRECEDENCE[op] : null;
+                if (prec != null && prec > min_prec) {
+                        next();
+                        var right = expr_op(maybe_unary(true), prec, no_in);
+                        return expr_op(as("binary", op, left, right), min_prec, no_in);
+                }
+                return left;
+        };
+
+        function expr_ops(no_in) {
+                return expr_op(maybe_unary(true), 0, no_in);
+        };
+
+        function maybe_conditional(no_in) {
+                var expr = expr_ops(no_in);
+                if (is("operator", "?")) {
+                        next();
+                        var yes = expression(false);
+                        expect(":");
+                        return as("conditional", expr, yes, expression(false, no_in));
+                }
+                return expr;
+        };
+
+        function is_assignable(expr) {
+                if (!exigent_mode) return true;
+                switch (expr[0]+"") {
+                    case "dot":
+                    case "sub":
+                    case "new":
+                    case "call":
+                        return true;
+                    case "name":
+                        return expr[1] != "this";
+                }
+        };
+
+        function maybe_assign(no_in) {
+                var left = maybe_conditional(no_in), val = S.token.value;
+                if (is("operator") && HOP(ASSIGNMENT, val)) {
+                        if (is_assignable(left)) {
+                                next();
+                                return as("assign", ASSIGNMENT[val], left, maybe_assign(no_in));
+                        }
+                        croak("Invalid assignment");
+                }
+                return left;
+        };
+
+        var expression = maybe_embed_tokens(function(commas, no_in) {
+                if (arguments.length == 0)
+                        commas = true;
+                var expr = maybe_assign(no_in);
+                if (commas && is("punc", ",")) {
+                        next();
+                        return as("seq", expr, expression(true, no_in));
+                }
+                return expr;
+        });
+
+        function in_loop(cont) {
+                try {
+                        ++S.in_loop;
+                        return cont();
+                } finally {
+                        --S.in_loop;
+                }
+        };
+
+        return as("toplevel", (function(a){
+                while (!is("eof"))
+                        a.push(statement());
+                return a;
+        })([]));
+
+};
+
+/* -----[ Utilities ]----- */
+
+function curry(f) {
+        var args = slice(arguments, 1);
+        return function() { return f.apply(this, args.concat(slice(arguments))); };
+};
+
+function prog1(ret) {
+        if (ret instanceof Function)
+                ret = ret();
+        for (var i = 1, n = arguments.length; --n > 0; ++i)
+                arguments[i]();
+        return ret;
+};
+
+function array_to_hash(a) {
+        var ret = {};
+        for (var i = 0; i < a.length; ++i)
+                ret[a[i]] = true;
+        return ret;
+};
+
+function slice(a, start) {
+        return Array.prototype.slice.call(a, start || 0);
+};
+
+function characters(str) {
+        return str.split("");
+};
+
+function member(name, array) {
+        for (var i = array.length; --i >= 0;)
+                if (array[i] == name)
+                        return true;
+        return false;
+};
+
+function HOP(obj, prop) {
+        return Object.prototype.hasOwnProperty.call(obj, prop);
+};
+
+var warn = function() {};
+
+/* -----[ Exports ]----- */
+
+exports.tokenizer = tokenizer;
+exports.parse = parse;
+exports.slice = slice;
+exports.curry = curry;
+exports.member = member;
+exports.array_to_hash = array_to_hash;
+exports.PRECEDENCE = PRECEDENCE;
+exports.KEYWORDS_ATOM = KEYWORDS_ATOM;
+exports.RESERVED_WORDS = RESERVED_WORDS;
+exports.KEYWORDS = KEYWORDS;
+exports.ATOMIC_START_TOKEN = ATOMIC_START_TOKEN;
+exports.OPERATORS = OPERATORS;
+exports.is_alphanumeric_char = is_alphanumeric_char;
+exports.set_logger = function(logger) {
+        warn = logger;
+};
+
+});
+define('uglifyjs/squeeze-more', ["require", "exports", "module", "./parse-js", "./process"], function(require, exports, module) {
+
+var jsp = require("./parse-js"),
+    pro = require("./process"),
+    slice = jsp.slice,
+    member = jsp.member,
+    curry = jsp.curry,
+    MAP = pro.MAP,
+    PRECEDENCE = jsp.PRECEDENCE,
+    OPERATORS = jsp.OPERATORS;
+
+function ast_squeeze_more(ast) {
+        var w = pro.ast_walker(), walk = w.walk, scope;
+        function with_scope(s, cont) {
+                var save = scope, ret;
+                scope = s;
+                ret = cont();
+                scope = save;
+                return ret;
+        };
+        function _lambda(name, args, body) {
+                return [ this[0], name, args, with_scope(body.scope, curry(MAP, body, walk)) ];
+        };
+        return w.with_walkers({
+                "toplevel": function(body) {
+                        return [ this[0], with_scope(this.scope, curry(MAP, body, walk)) ];
+                },
+                "function": _lambda,
+                "defun": _lambda,
+                "new": function(ctor, args) {
+                        if (ctor[0] == "name") {
+                                if (ctor[1] == "Array" && !scope.has("Array")) {
+                                        if (args.length != 1) {
+                                                return [ "array", args ];
+                                        } else {
+                                                return walk([ "call", [ "name", "Array" ], args ]);
+                                        }
+                                } else if (ctor[1] == "Object" && !scope.has("Object")) {
+                                        if (!args.length) {
+                                                return [ "object", [] ];
+                                        } else {
+                                                return walk([ "call", [ "name", "Object" ], args ]);
+                                        }
+                                } else if ((ctor[1] == "RegExp" || ctor[1] == "Function" || ctor[1] == "Error") && !scope.has(ctor[1])) {
+                                        return walk([ "call", [ "name", ctor[1] ], args]);
+                                }
+                        }
+                },
+                "call": function(expr, args) {
+                        if (expr[0] == "dot" && expr[2] == "toString" && args.length == 0) {
+                                // foo.toString()  ==>  foo+""
+                                return [ "binary", "+", expr[1], [ "string", "" ]];
+                        }
+                        if (expr[0] == "name") {
+                                if (expr[1] == "Array" && args.length != 1 && !scope.has("Array")) {
+                                        return [ "array", args ];
+                                }
+                                if (expr[1] == "Object" && !args.length && !scope.has("Object")) {
+                                        return [ "object", [] ];
+                                }
+                                if (expr[1] == "String" && !scope.has("String")) {
+                                        return [ "binary", "+", args[0], [ "string", "" ]];
+                                }
+                        }
+                }
+        }, function() {
+                return walk(pro.ast_add_scope(ast));
+        });
+};
+
+exports.ast_squeeze_more = ast_squeeze_more;
+
+});define('uglifyjs/process', ["require", "exports", "module", "./parse-js", "./squeeze-more"], function(require, exports, module) {
+
+/***********************************************************************
+
+  A JavaScript tokenizer / parser / beautifier / compressor.
+
+  This version is suitable for Node.js.  With minimal changes (the
+  exports stuff) it should work on any JS platform.
+
+  This file implements some AST processors.  They work on data built
+  by parse-js.
+
+  Exported functions:
+
+    - ast_mangle(ast, options) -- mangles the variable/function names
+      in the AST.  Returns an AST.
+
+    - ast_squeeze(ast) -- employs various optimizations to make the
+      final generated code even smaller.  Returns an AST.
+
+    - gen_code(ast, options) -- generates JS code from the AST.  Pass
+      true (or an object, see the code for some options) as second
+      argument to get "pretty" (indented) code.
+
+  -------------------------------- (C) ---------------------------------
+
+                           Author: Mihai Bazon
+                         <mihai.bazon@gmail.com>
+                       http://mihai.bazon.net/blog
+
+  Distributed under the BSD license:
+
+    Copyright 2010 (c) Mihai Bazon <mihai.bazon@gmail.com>
+
+    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.
+
+    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “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 HOLDER 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.
+
+ ***********************************************************************/
+
+var jsp = require("./parse-js"),
+    slice = jsp.slice,
+    member = jsp.member,
+    PRECEDENCE = jsp.PRECEDENCE,
+    OPERATORS = jsp.OPERATORS;
+
+/* -----[ helper for AST traversal ]----- */
+
+function ast_walker() {
+        function _vardefs(defs) {
+                return [ this[0], MAP(defs, function(def){
+                        var a = [ def[0] ];
+                        if (def.length > 1)
+                                a[1] = walk(def[1]);
+                        return a;
+                }) ];
+        };
+        function _block(statements) {
+                var out = [ this[0] ];
+                if (statements != null)
+                        out.push(MAP(statements, walk));
+                return out;
+        };
+        var walkers = {
+                "string": function(str) {
+                        return [ this[0], str ];
+                },
+                "num": function(num) {
+                        return [ this[0], num ];
+                },
+                "name": function(name) {
+                        return [ this[0], name ];
+                },
+                "toplevel": function(statements) {
+                        return [ this[0], MAP(statements, walk) ];
+                },
+                "block": _block,
+                "splice": _block,
+                "var": _vardefs,
+                "const": _vardefs,
+                "try": function(t, c, f) {
+                        return [
+                                this[0],
+                                MAP(t, walk),
+                                c != null ? [ c[0], MAP(c[1], walk) ] : null,
+                                f != null ? MAP(f, walk) : null
+                        ];
+                },
+                "throw": function(expr) {
+                        return [ this[0], walk(expr) ];
+                },
+                "new": function(ctor, args) {
+                        return [ this[0], walk(ctor), MAP(args, walk) ];
+                },
+                "switch": function(expr, body) {
+                        return [ this[0], walk(expr), MAP(body, function(branch){
+                                return [ branch[0] ? walk(branch[0]) : null,
+                                         MAP(branch[1], walk) ];
+                        }) ];
+                },
+                "break": function(label) {
+                        return [ this[0], label ];
+                },
+                "continue": function(label) {
+                        return [ this[0], label ];
+                },
+                "conditional": function(cond, t, e) {
+                        return [ this[0], walk(cond), walk(t), walk(e) ];
+                },
+                "assign": function(op, lvalue, rvalue) {
+                        return [ this[0], op, walk(lvalue), walk(rvalue) ];
+                },
+                "dot": function(expr) {
+                        return [ this[0], walk(expr) ].concat(slice(arguments, 1));
+                },
+                "call": function(expr, args) {
+                        return [ this[0], walk(expr), MAP(args, walk) ];
+                },
+                "function": function(name, args, body) {
+                        return [ this[0], name, args.slice(), MAP(body, walk) ];
+                },
+                "defun": function(name, args, body) {
+                        return [ this[0], name, args.slice(), MAP(body, walk) ];
+                },
+                "if": function(conditional, t, e) {
+                        return [ this[0], walk(conditional), walk(t), walk(e) ];
+                },
+                "for": function(init, cond, step, block) {
+                        return [ this[0], walk(init), walk(cond), walk(step), walk(block) ];
+                },
+                "for-in": function(vvar, key, hash, block) {
+                        return [ this[0], walk(vvar), walk(key), walk(hash), walk(block) ];
+                },
+                "while": function(cond, block) {
+                        return [ this[0], walk(cond), walk(block) ];
+                },
+                "do": function(cond, block) {
+                        return [ this[0], walk(cond), walk(block) ];
+                },
+                "return": function(expr) {
+                        return [ this[0], walk(expr) ];
+                },
+                "binary": function(op, left, right) {
+                        return [ this[0], op, walk(left), walk(right) ];
+                },
+                "unary-prefix": function(op, expr) {
+                        return [ this[0], op, walk(expr) ];
+                },
+                "unary-postfix": function(op, expr) {
+                        return [ this[0], op, walk(expr) ];
+                },
+                "sub": function(expr, subscript) {
+                        return [ this[0], walk(expr), walk(subscript) ];
+                },
+                "object": function(props) {
+                        return [ this[0], MAP(props, function(p){
+                                return p.length == 2
+                                        ? [ p[0], walk(p[1]) ]
+                                        : [ p[0], walk(p[1]), p[2] ]; // get/set-ter
+                        }) ];
+                },
+                "regexp": function(rx, mods) {
+                        return [ this[0], rx, mods ];
+                },
+                "array": function(elements) {
+                        return [ this[0], MAP(elements, walk) ];
+                },
+                "stat": function(stat) {
+                        return [ this[0], walk(stat) ];
+                },
+                "seq": function() {
+                        return [ this[0] ].concat(MAP(slice(arguments), walk));
+                },
+                "label": function(name, block) {
+                        return [ this[0], name, walk(block) ];
+                },
+                "with": function(expr, block) {
+                        return [ this[0], walk(expr), walk(block) ];
+                },
+                "atom": function(name) {
+                        return [ this[0], name ];
+                }
+        };
+
+        var user = {};
+        var stack = [];
+        function walk(ast) {
+                if (ast == null)
+                        return null;
+                try {
+                        stack.push(ast);
+                        var type = ast[0];
+                        var gen = user[type];
+                        if (gen) {
+                                var ret = gen.apply(ast, ast.slice(1));
+                                if (ret != null)
+                                        return ret;
+                        }
+                        gen = walkers[type];
+                        return gen.apply(ast, ast.slice(1));
+                } finally {
+                        stack.pop();
+                }
+        };
+
+        function dive(ast) {
+                if (ast == null)
+                        return null;
+                try {
+                        stack.push(ast);
+                        return walkers[ast[0]].apply(ast, ast.slice(1));
+                } finally {
+                        stack.pop();
+                }
+        };
+
+        function with_walkers(walkers, cont){
+                var save = {}, i;
+                for (i in walkers) if (HOP(walkers, i)) {
+                        save[i] = user[i];
+                        user[i] = walkers[i];
+                }
+                var ret = cont();
+                for (i in save) if (HOP(save, i)) {
+                        if (!save[i]) delete user[i];
+                        else user[i] = save[i];
+                }
+                return ret;
+        };
+
+        return {
+                walk: walk,
+                dive: dive,
+                with_walkers: with_walkers,
+                parent: function() {
+                        return stack[stack.length - 2]; // last one is current node
+                },
+                stack: function() {
+                        return stack;
+                }
+        };
+};
+
+/* -----[ Scope and mangling ]----- */
+
+function Scope(parent) {
+        this.names = {};        // names defined in this scope
+        this.mangled = {};      // mangled names (orig.name => mangled)
+        this.rev_mangled = {};  // reverse lookup (mangled => orig.name)
+        this.cname = -1;        // current mangled name
+        this.refs = {};         // names referenced from this scope
+        this.uses_with = false; // will become TRUE if with() is detected in this or any subscopes
+        this.uses_eval = false; // will become TRUE if eval() is detected in this or any subscopes
+        this.parent = parent;   // parent scope
+        this.children = [];     // sub-scopes
+        if (parent) {
+                this.level = parent.level + 1;
+                parent.children.push(this);
+        } else {
+                this.level = 0;
+        }
+};
+
+var base54 = (function(){
+        var DIGITS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_";
+        return function(num) {
+                var ret = "";
+                do {
+                        ret = DIGITS.charAt(num % 54) + ret;
+                        num = Math.floor(num / 54);
+                } while (num > 0);
+                return ret;
+        };
+})();
+
+Scope.prototype = {
+        has: function(name) {
+                for (var s = this; s; s = s.parent)
+                        if (HOP(s.names, name))
+                                return s;
+        },
+        has_mangled: function(mname) {
+                for (var s = this; s; s = s.parent)
+                        if (HOP(s.rev_mangled, mname))
+                                return s;
+        },
+        toJSON: function() {
+                return {
+                        names: this.names,
+                        uses_eval: this.uses_eval,
+                        uses_with: this.uses_with
+                };
+        },
+
+        next_mangled: function() {
+                // we must be careful that the new mangled name:
+                //
+                // 1. doesn't shadow a mangled name from a parent
+                //    scope, unless we don't reference the original
+                //    name from this scope OR from any sub-scopes!
+                //    This will get slow.
+                //
+                // 2. doesn't shadow an original name from a parent
+                //    scope, in the event that the name is not mangled
+                //    in the parent scope and we reference that name
+                //    here OR IN ANY SUBSCOPES!
+                //
+                // 3. doesn't shadow a name that is referenced but not
+                //    defined (possibly global defined elsewhere).
+                for (;;) {
+                        var m = base54(++this.cname), prior;
+
+                        // case 1.
+                        prior = this.has_mangled(m);
+                        if (prior && this.refs[prior.rev_mangled[m]] === prior)
+                                continue;
+
+                        // case 2.
+                        prior = this.has(m);
+                        if (prior && prior !== this && this.refs[m] === prior && !prior.has_mangled(m))
+                                continue;
+
+                        // case 3.
+                        if (HOP(this.refs, m) && this.refs[m] == null)
+                                continue;
+
+                        // I got "do" once. :-/
+                        if (!is_identifier(m))
+                                continue;
+
+                        return m;
+                }
+        },
+        set_mangle: function(name, m) {
+                this.rev_mangled[m] = name;
+                return this.mangled[name] = m;
+        },
+        get_mangled: function(name, newMangle) {
+                if (this.uses_eval || this.uses_with) return name; // no mangle if eval or with is in use
+                var s = this.has(name);
+                if (!s) return name; // not in visible scope, no mangle
+                if (HOP(s.mangled, name)) return s.mangled[name]; // already mangled in this scope
+                if (!newMangle) return name;                      // not found and no mangling requested
+                return s.set_mangle(name, s.next_mangled());
+        },
+        references: function(name) {
+                return name && !this.parent || this.uses_with || this.uses_eval || this.refs[name];
+        },
+        define: function(name, type) {
+                if (name != null) {
+                        if (type == "var" || !HOP(this.names, name))
+                                this.names[name] = type || "var";
+                        return name;
+                }
+        }
+};
+
+function ast_add_scope(ast) {
+
+        var current_scope = null;
+        var w = ast_walker(), walk = w.walk;
+        var having_eval = [];
+
+        function with_new_scope(cont) {
+                current_scope = new Scope(current_scope);
+                current_scope.labels = new Scope();
+                var ret = current_scope.body = cont();
+                ret.scope = current_scope;
+                current_scope = current_scope.parent;
+                return ret;
+        };
+
+        function define(name, type) {
+                return current_scope.define(name, type);
+        };
+
+        function reference(name) {
+                current_scope.refs[name] = true;
+        };
+
+        function _lambda(name, args, body) {
+                var is_defun = this[0] == "defun";
+                return [ this[0], is_defun ? define(name, "defun") : name, args, with_new_scope(function(){
+                        if (!is_defun) define(name, "lambda");
+                        MAP(args, function(name){ define(name, "arg") });
+                        return MAP(body, walk);
+                })];
+        };
+
+        function _vardefs(type) {
+                return function(defs) {
+                        MAP(defs, function(d){
+                                define(d[0], type);
+                                if (d[1]) reference(d[0]);
+                        });
+                };
+        };
+
+        function _breacont(label) {
+                if (label)
+                        current_scope.labels.refs[label] = true;
+        };
+
+        return with_new_scope(function(){
+                // process AST
+                var ret = w.with_walkers({
+                        "function": _lambda,
+                        "defun": _lambda,
+                        "label": function(name, stat) { current_scope.labels.define(name) },
+                        "break": _breacont,
+                        "continue": _breacont,
+                        "with": function(expr, block) {
+                                for (var s = current_scope; s; s = s.parent)
+                                        s.uses_with = true;
+                        },
+                        "var": _vardefs("var"),
+                        "const": _vardefs("const"),
+                        "try": function(t, c, f) {
+                                if (c != null) return [
+                                        this[0],
+                                        MAP(t, walk),
+                                        [ define(c[0], "catch"), MAP(c[1], walk) ],
+                                        f != null ? MAP(f, walk) : null
+                                ];
+                        },
+                        "name": function(name) {
+                                if (name == "eval")
+                                        having_eval.push(current_scope);
+                                reference(name);
+                        }
+                }, function(){
+                        return walk(ast);
+                });
+
+                // the reason why we need an additional pass here is
+                // that names can be used prior to their definition.
+
+                // scopes where eval was detected and their parents
+                // are marked with uses_eval, unless they define the
+                // "eval" name.
+                MAP(having_eval, function(scope){
+                        if (!scope.has("eval")) while (scope) {
+                                scope.uses_eval = true;
+                                scope = scope.parent;
+                        }
+                });
+
+                // for referenced names it might be useful to know
+                // their origin scope.  current_scope here is the
+                // toplevel one.
+                function fixrefs(scope, i) {
+                        // do children first; order shouldn't matter
+                        for (i = scope.children.length; --i >= 0;)
+                                fixrefs(scope.children[i]);
+                        for (i in scope.refs) if (HOP(scope.refs, i)) {
+                                // find origin scope and propagate the reference to origin
+                                for (var origin = scope.has(i), s = scope; s; s = s.parent) {
+                                        s.refs[i] = origin;
+                                        if (s === origin) break;
+                                }
+                        }
+                };
+                fixrefs(current_scope);
+
+                return ret;
+        });
+
+};
+
+/* -----[ mangle names ]----- */
+
+function ast_mangle(ast, options) {
+        var w = ast_walker(), walk = w.walk, scope;
+        options = options || {};
+
+        function get_mangled(name, newMangle) {
+                if (!options.toplevel && !scope.parent) return name; // don't mangle toplevel
+                if (options.except && member(name, options.except))
+                        return name;
+                return scope.get_mangled(name, newMangle);
+        };
+
+        function get_define(name) {
+                if (options.defines) {
+                        // we always lookup a defined symbol for the current scope FIRST, so declared
+                        // vars trump a DEFINE symbol, but if no such var is found, then match a DEFINE value
+                        if (!scope.has(name)) {
+                                if (HOP(options.defines, name)) {
+                                        return options.defines[name];
+                                }
+                        }
+                        return null;
+                }
+        };
+
+        function _lambda(name, args, body) {
+                if (!options.no_functions) {
+                        var is_defun = this[0] == "defun", extra;
+                        if (name) {
+                                if (is_defun) name = get_mangled(name);
+                                else if (body.scope.references(name)) {
+                                        extra = {};
+                                        if (!(scope.uses_eval || scope.uses_with))
+                                                name = extra[name] = scope.next_mangled();
+                                        else
+                                                extra[name] = name;
+                                }
+                                else name = null;
+                        }
+                }
+                body = with_scope(body.scope, function(){
+                        args = MAP(args, function(name){ return get_mangled(name) });
+                        return MAP(body, walk);
+                }, extra);
+                return [ this[0], name, args, body ];
+        };
+
+        function with_scope(s, cont, extra) {
+                var _scope = scope;
+                scope = s;
+                if (extra) for (var i in extra) if (HOP(extra, i)) {
+                        s.set_mangle(i, extra[i]);
+                }
+                for (var i in s.names) if (HOP(s.names, i)) {
+                        get_mangled(i, true);
+                }
+                var ret = cont();
+                ret.scope = s;
+                scope = _scope;
+                return ret;
+        };
+
+        function _vardefs(defs) {
+                return [ this[0], MAP(defs, function(d){
+                        return [ get_mangled(d[0]), walk(d[1]) ];
+                }) ];
+        };
+
+        function _breacont(label) {
+                if (label) return [ this[0], scope.labels.get_mangled(label) ];
+        };
+
+        return w.with_walkers({
+                "function": _lambda,
+                "defun": function() {
+                        // move function declarations to the top when
+                        // they are not in some block.
+                        var ast = _lambda.apply(this, arguments);
+                        switch (w.parent()[0]) {
+                            case "toplevel":
+                            case "function":
+                            case "defun":
+                                return MAP.at_top(ast);
+                        }
+                        return ast;
+                },
+                "label": function(label, stat) {
+                        if (scope.labels.refs[label]) return [
+                                this[0],
+                                scope.labels.get_mangled(label, true),
+                                walk(stat)
+                        ];
+                        return walk(stat);
+                },
+                "break": _breacont,
+                "continue": _breacont,
+                "var": _vardefs,
+                "const": _vardefs,
+                "name": function(name) {
+                        return get_define(name) || [ this[0], get_mangled(name) ];
+                },
+                "try": function(t, c, f) {
+                        return [ this[0],
+                                 MAP(t, walk),
+                                 c != null ? [ get_mangled(c[0]), MAP(c[1], walk) ] : null,
+                                 f != null ? MAP(f, walk) : null ];
+                },
+                "toplevel": function(body) {
+                        var self = this;
+                        return with_scope(self.scope, function(){
+                                return [ self[0], MAP(body, walk) ];
+                        });
+                }
+        }, function() {
+                return walk(ast_add_scope(ast));
+        });
+};
+
+/* -----[
+   - compress foo["bar"] into foo.bar,
+   - remove block brackets {} where possible
+   - join consecutive var declarations
+   - various optimizations for IFs:
+     - if (cond) foo(); else bar();  ==>  cond?foo():bar();
+     - if (cond) foo();  ==>  cond&&foo();
+     - if (foo) return bar(); else return baz();  ==> return foo?bar():baz(); // also for throw
+     - if (foo) return bar(); else something();  ==> {if(foo)return bar();something()}
+   ]----- */
+
+var warn = function(){};
+
+function best_of(ast1, ast2) {
+        return gen_code(ast1).length > gen_code(ast2[0] == "stat" ? ast2[1] : ast2).length ? ast2 : ast1;
+};
+
+function last_stat(b) {
+        if (b[0] == "block" && b[1] && b[1].length > 0)
+                return b[1][b[1].length - 1];
+        return b;
+}
+
+function aborts(t) {
+        if (t) switch (last_stat(t)[0]) {
+            case "return":
+            case "break":
+            case "continue":
+            case "throw":
+                return true;
+        }
+};
+
+function boolean_expr(expr) {
+        return ( (expr[0] == "unary-prefix"
+                  && member(expr[1], [ "!", "delete" ])) ||
+
+                 (expr[0] == "binary"
+                  && member(expr[1], [ "in", "instanceof", "==", "!=", "===", "!==", "<", "<=", ">=", ">" ])) ||
+
+                 (expr[0] == "binary"
+                  && member(expr[1], [ "&&", "||" ])
+                  && boolean_expr(expr[2])
+                  && boolean_expr(expr[3])) ||
+
+                 (expr[0] == "conditional"
+                  && boolean_expr(expr[2])
+                  && boolean_expr(expr[3])) ||
+
+                 (expr[0] == "assign"
+                  && expr[1] === true
+                  && boolean_expr(expr[3])) ||
+
+                 (expr[0] == "seq"
+                  && boolean_expr(expr[expr.length - 1]))
+               );
+};
+
+function empty(b) {
+        return !b || (b[0] == "block" && (!b[1] || b[1].length == 0));
+};
+
+function is_string(node) {
+        return (node[0] == "string" ||
+                node[0] == "unary-prefix" && node[1] == "typeof" ||
+                node[0] == "binary" && node[1] == "+" &&
+                (is_string(node[2]) || is_string(node[3])));
+};
+
+var when_constant = (function(){
+
+        var $NOT_CONSTANT = {};
+
+        // this can only evaluate constant expressions.  If it finds anything
+        // not constant, it throws $NOT_CONSTANT.
+        function evaluate(expr) {
+                switch (expr[0]) {
+                    case "string":
+                    case "num":
+                        return expr[1];
+                    case "name":
+                    case "atom":
+                        switch (expr[1]) {
+                            case "true": return true;
+                            case "false": return false;
+                            case "null": return null;
+                        }
+                        break;
+                    case "unary-prefix":
+                        switch (expr[1]) {
+                            case "!": return !evaluate(expr[2]);
+                            case "typeof": return typeof evaluate(expr[2]);
+                            case "~": return ~evaluate(expr[2]);
+                            case "-": return -evaluate(expr[2]);
+                            case "+": return +evaluate(expr[2]);
+                        }
+                        break;
+                    case "binary":
+                        var left = expr[2], right = expr[3];
+                        switch (expr[1]) {
+                            case "&&"         : return evaluate(left) &&         evaluate(right);
+                            case "||"         : return evaluate(left) ||         evaluate(right);
+                            case "|"          : return evaluate(left) |          evaluate(right);
+                            case "&"          : return evaluate(left) &          evaluate(right);
+                            case "^"          : return evaluate(left) ^          evaluate(right);
+                            case "+"          : return evaluate(left) +          evaluate(right);
+                            case "*"          : return evaluate(left) *          evaluate(right);
+                            case "/"          : return evaluate(left) /          evaluate(right);
+                            case "%"          : return evaluate(left) %          evaluate(right);
+                            case "-"          : return evaluate(left) -          evaluate(right);
+                            case "<<"         : return evaluate(left) <<         evaluate(right);
+                            case ">>"         : return evaluate(left) >>         evaluate(right);
+                            case ">>>"        : return evaluate(left) >>>        evaluate(right);
+                            case "=="         : return evaluate(left) ==         evaluate(right);
+                            case "==="        : return evaluate(left) ===        evaluate(right);
+                            case "!="         : return evaluate(left) !=         evaluate(right);
+                            case "!=="        : return evaluate(left) !==        evaluate(right);
+                            case "<"          : return evaluate(left) <          evaluate(right);
+                            case "<="         : return evaluate(left) <=         evaluate(right);
+                            case ">"          : return evaluate(left) >          evaluate(right);
+                            case ">="         : return evaluate(left) >=         evaluate(right);
+                            case "in"         : return evaluate(left) in         evaluate(right);
+                            case "instanceof" : return evaluate(left) instanceof evaluate(right);
+                        }
+                }
+                throw $NOT_CONSTANT;
+        };
+
+        return function(expr, yes, no) {
+                try {
+                        var val = evaluate(expr), ast;
+                        switch (typeof val) {
+                            case "string": ast =  [ "string", val ]; break;
+                            case "number": ast =  [ "num", val ]; break;
+                            case "boolean": ast =  [ "name", String(val) ]; break;
+                            default: throw new Error("Can't handle constant of type: " + (typeof val));
+                        }
+                        return yes.call(expr, ast, val);
+                } catch(ex) {
+                        if (ex === $NOT_CONSTANT) {
+                                if (expr[0] == "binary"
+                                    && (expr[1] == "===" || expr[1] == "!==")
+                                    && ((is_string(expr[2]) && is_string(expr[3]))
+                                        || (boolean_expr(expr[2]) && boolean_expr(expr[3])))) {
+                                        expr[1] = expr[1].substr(0, 2);
+                                }
+                                else if (no && expr[0] == "binary"
+                                         && (expr[1] == "||" || expr[1] == "&&")) {
+                                    // the whole expression is not constant but the lval may be...
+                                    try {
+                                        var lval = evaluate(expr[2]);
+                                        expr = ((expr[1] == "&&" && (lval ? expr[3] : lval))    ||
+                                                (expr[1] == "||" && (lval ? lval    : expr[3])) ||
+                                                expr);
+                                    } catch(ex2) {
+                                        // IGNORE... lval is not constant
+                                    }
+                                }
+                                return no ? no.call(expr, expr) : null;
+                        }
+                        else throw ex;
+                }
+        };
+
+})();
+
+function warn_unreachable(ast) {
+        if (!empty(ast))
+                warn("Dropping unreachable code: " + gen_code(ast, true));
+};
+
+function prepare_ifs(ast) {
+        var w = ast_walker(), walk = w.walk;
+        // In this first pass, we rewrite ifs which abort with no else with an
+        // if-else.  For example:
+        //
+        // if (x) {
+        //     blah();
+        //     return y;
+        // }
+        // foobar();
+        //
+        // is rewritten into:
+        //
+        // if (x) {
+        //     blah();
+        //     return y;
+        // } else {
+        //     foobar();
+        // }
+        function redo_if(statements) {
+                statements = MAP(statements, walk);
+
+                for (var i = 0; i < statements.length; ++i) {
+                        var fi = statements[i];
+                        if (fi[0] != "if") continue;
+
+                        if (fi[3] && walk(fi[3])) continue;
+
+                        var t = walk(fi[2]);
+                        if (!aborts(t)) continue;
+
+                        var conditional = walk(fi[1]);
+
+                        var e_body = statements.slice(i + 1);
+                        var e = e_body.length == 1 ? e_body[0] : [ "block", e_body ];
+
+                        var ret = statements.slice(0, i).concat([ [
+                                fi[0],          // "if"
+                                conditional,    // conditional
+                                t,              // then
+                                e               // else
+                        ] ]);
+
+                        return redo_if(ret);
+                }
+
+                return statements;
+        };
+
+        function redo_if_lambda(name, args, body) {
+                body = redo_if(body);
+                return [ this[0], name, args, body ];
+        };
+
+        function redo_if_block(statements) {
+                return [ this[0], statements != null ? redo_if(statements) : null ];
+        };
+
+        return w.with_walkers({
+                "defun": redo_if_lambda,
+                "function": redo_if_lambda,
+                "block": redo_if_block,
+                "splice": redo_if_block,
+                "toplevel": function(statements) {
+                        return [ this[0], redo_if(statements) ];
+                },
+                "try": function(t, c, f) {
+                        return [
+                                this[0],
+                                redo_if(t),
+                                c != null ? [ c[0], redo_if(c[1]) ] : null,
+                                f != null ? redo_if(f) : null
+                        ];
+                }
+        }, function() {
+                return walk(ast);
+        });
+};
+
+function for_side_effects(ast, handler) {
+        var w = ast_walker(), walk = w.walk;
+        var $stop = {}, $restart = {};
+        function stop() { throw $stop };
+        function restart() { throw $restart };
+        function found(){ return handler.call(this, this, w, stop, restart) };
+        function unary(op) {
+                if (op == "++" || op == "--")
+                        return found.apply(this, arguments);
+        };
+        return w.with_walkers({
+                "try": found,
+                "throw": found,
+                "return": found,
+                "new": found,
+                "switch": found,
+                "break": found,
+                "continue": found,
+                "assign": found,
+                "call": found,
+                "if": found,
+                "for": found,
+                "for-in": found,
+                "while": found,
+                "do": found,
+                "return": found,
+                "unary-prefix": unary,
+                "unary-postfix": unary,
+                "defun": found
+        }, function(){
+                while (true) try {
+                        walk(ast);
+                        break;
+                } catch(ex) {
+                        if (ex === $stop) break;
+                        if (ex === $restart) continue;
+                        throw ex;
+                }
+        });
+};
+
+function ast_lift_variables(ast) {
+        var w = ast_walker(), walk = w.walk, scope;
+        function do_body(body, env) {
+                var _scope = scope;
+                scope = env;
+                body = MAP(body, walk);
+                var hash = {}, names = MAP(env.names, function(type, name){
+                        if (type != "var") return MAP.skip;
+                        if (!env.references(name)) return MAP.skip;
+                        hash[name] = true;
+                        return [ name ];
+                });
+                if (names.length > 0) {
+                        // looking for assignments to any of these variables.
+                        // we can save considerable space by moving the definitions
+                        // in the var declaration.
+                        for_side_effects([ "block", body ], function(ast, walker, stop, restart) {
+                                if (ast[0] == "assign"
+                                    && ast[1] === true
+                                    && ast[2][0] == "name"
+                                    && HOP(hash, ast[2][1])) {
+                                        // insert the definition into the var declaration
+                                        for (var i = names.length; --i >= 0;) {
+                                                if (names[i][0] == ast[2][1]) {
+                                                        if (names[i][1]) // this name already defined, we must stop
+                                                                stop();
+                                                        names[i][1] = ast[3]; // definition
+                                                        names.push(names.splice(i, 1)[0]);
+                                                        break;
+                                                }
+                                        }
+                                        // remove this assignment from the AST.
+                                        var p = walker.parent();
+                                        if (p[0] == "seq") {
+                                                var a = p[2];
+                                                a.unshift(0, p.length);
+                                                p.splice.apply(p, a);
+                                        }
+                                        else if (p[0] == "stat") {
+                                                p.splice(0, p.length, "block"); // empty statement
+                                        }
+                                        else {
+                                                stop();
+                                        }
+                                        restart();
+                                }
+                                stop();
+                        });
+                        body.unshift([ "var", names ]);
+                }
+                scope = _scope;
+                return body;
+        };
+        function _vardefs(defs) {
+                var ret = null;
+                for (var i = defs.length; --i >= 0;) {
+                        var d = defs[i];
+                        if (!d[1]) continue;
+                        d = [ "assign", true, [ "name", d[0] ], d[1] ];
+                        if (ret == null) ret = d;
+                        else ret = [ "seq", d, ret ];
+                }
+                if (ret == null) {
+                        if (w.parent()[0] == "for-in")
+                                return [ "name", defs[0][0] ];
+                        return MAP.skip;
+                }
+                return [ "stat", ret ];
+        };
+        function _toplevel(body) {
+                return [ this[0], do_body(body, this.scope) ];
+        };
+        return w.with_walkers({
+                "function": function(name, args, body){
+                        for (var i = args.length; --i >= 0 && !body.scope.references(args[i]);)
+                                args.pop();
+                        if (!body.scope.references(name)) name = null;
+                        return [ this[0], name, args, do_body(body, body.scope) ];
+                },
+                "defun": function(name, args, body){
+                        if (!scope.references(name)) return MAP.skip;
+                        for (var i = args.length; --i >= 0 && !body.scope.references(args[i]);)
+                                args.pop();
+                        return [ this[0], name, args, do_body(body, body.scope) ];
+                },
+                "var": _vardefs,
+                "toplevel": _toplevel
+        }, function(){
+                return walk(ast_add_scope(ast));
+        });
+};
+
+function ast_squeeze(ast, options) {
+        options = defaults(options, {
+                make_seqs   : true,
+                dead_code   : true,
+                no_warnings : false,
+                keep_comps  : true
+        });
+
+        var w = ast_walker(), walk = w.walk;
+
+        function negate(c) {
+                var not_c = [ "unary-prefix", "!", c ];
+                switch (c[0]) {
+                    case "unary-prefix":
+                        return c[1] == "!" && boolean_expr(c[2]) ? c[2] : not_c;
+                    case "seq":
+                        c = slice(c);
+                        c[c.length - 1] = negate(c[c.length - 1]);
+                        return c;
+                    case "conditional":
+                        return best_of(not_c, [ "conditional", c[1], negate(c[2]), negate(c[3]) ]);
+                    case "binary":
+                        var op = c[1], left = c[2], right = c[3];
+                        if (!options.keep_comps) switch (op) {
+                            case "<="  : return [ "binary", ">", left, right ];
+                            case "<"   : return [ "binary", ">=", left, right ];
+                            case ">="  : return [ "binary", "<", left, right ];
+                            case ">"   : return [ "binary", "<=", left, right ];
+                        }
+                        switch (op) {
+                            case "=="  : return [ "binary", "!=", left, right ];
+                            case "!="  : return [ "binary", "==", left, right ];
+                            case "===" : return [ "binary", "!==", left, right ];
+                            case "!==" : return [ "binary", "===", left, right ];
+                            case "&&"  : return best_of(not_c, [ "binary", "||", negate(left), negate(right) ]);
+                            case "||"  : return best_of(not_c, [ "binary", "&&", negate(left), negate(right) ]);
+                        }
+                        break;
+                }
+                return not_c;
+        };
+
+        function make_conditional(c, t, e) {
+                var make_real_conditional = function() {
+                        if (c[0] == "unary-prefix" && c[1] == "!") {
+                                return e ? [ "conditional", c[2], e, t ] : [ "binary", "||", c[2], t ];
+                        } else {
+                                return e ? best_of(
+                                        [ "conditional", c, t, e ],
+                                        [ "conditional", negate(c), e, t ]
+                                ) : [ "binary", "&&", c, t ];
+                        }
+                };
+                // shortcut the conditional if the expression has a constant value
+                return when_constant(c, function(ast, val){
+                        warn_unreachable(val ? e : t);
+                        return          (val ? t : e);
+                }, make_real_conditional);
+        };
+
+        function rmblock(block) {
+                if (block != null && block[0] == "block" && block[1]) {
+                        if (block[1].length == 1)
+                                block = block[1][0];
+                        else if (block[1].length == 0)
+                                block = [ "block" ];
+                }
+                return block;
+        };
+
+        function _lambda(name, args, body) {
+                return [ this[0], name, args, tighten(body, "lambda") ];
+        };
+
+        // this function does a few things:
+        // 1. discard useless blocks
+        // 2. join consecutive var declarations
+        // 3. remove obviously dead code
+        // 4. transform consecutive statements using the comma operator
+        // 5. if block_type == "lambda" and it detects constructs like if(foo) return ... - rewrite like if (!foo) { ... }
+        function tighten(statements, block_type) {
+                statements = MAP(statements, walk);
+
+                statements = statements.reduce(function(a, stat){
+                        if (stat[0] == "block") {
+                                if (stat[1]) {
+                                        a.push.apply(a, stat[1]);
+                                }
+                        } else {
+                                a.push(stat);
+                        }
+                        return a;
+                }, []);
+
+                statements = (function(a, prev){
+                        statements.forEach(function(cur){
+                                if (prev && ((cur[0] == "var" && prev[0] == "var") ||
+                                             (cur[0] == "const" && prev[0] == "const"))) {
+                                        prev[1] = prev[1].concat(cur[1]);
+                                } else {
+                                        a.push(cur);
+                                        prev = cur;
+                                }
+                        });
+                        return a;
+                })([]);
+
+                if (options.dead_code) statements = (function(a, has_quit){
+                        statements.forEach(function(st){
+                                if (has_quit) {
+                                        if (st[0] == "function" || st[0] == "defun") {
+                                                a.push(st);
+                                        }
+                                        else if (st[0] == "var" || st[0] == "const") {
+                                                if (!options.no_warnings)
+                                                        warn("Variables declared in unreachable code");
+                                                st[1] = MAP(st[1], function(def){
+                                                        if (def[1] && !options.no_warnings)
+                                                                warn_unreachable([ "assign", true, [ "name", def[0] ], def[1] ]);
+                                                        return [ def[0] ];
+                                                });
+                                                a.push(st);
+                                        }
+                                        else if (!options.no_warnings)
+                                                warn_unreachable(st);
+                                }
+                                else {
+                                        a.push(st);
+                                        if (member(st[0], [ "return", "throw", "break", "continue" ]))
+                                                has_quit = true;
+                                }
+                        });
+                        return a;
+                })([]);
+
+                if (options.make_seqs) statements = (function(a, prev) {
+                        statements.forEach(function(cur){
+                                if (prev && prev[0] == "stat" && cur[0] == "stat") {
+                                        prev[1] = [ "seq", prev[1], cur[1] ];
+                                } else {
+                                        a.push(cur);
+                                        prev = cur;
+                                }
+                        });
+                        if (a.length >= 2
+                            && a[a.length-2][0] == "stat"
+                            && (a[a.length-1][0] == "return" || a[a.length-1][0] == "throw")
+                            && a[a.length-1][1])
+                        {
+                                a.splice(a.length - 2, 2,
+                                         [ a[a.length-1][0],
+                                           [ "seq", a[a.length-2][1], a[a.length-1][1] ]]);
+                        }
+                        return a;
+                })([]);
+
+                // this increases jQuery by 1K.  Probably not such a good idea after all..
+                // part of this is done in prepare_ifs anyway.
+                // if (block_type == "lambda") statements = (function(i, a, stat){
+                //         while (i < statements.length) {
+                //                 stat = statements[i++];
+                //                 if (stat[0] == "if" && !stat[3]) {
+                //                         if (stat[2][0] == "return" && stat[2][1] == null) {
+                //                                 a.push(make_if(negate(stat[1]), [ "block", statements.slice(i) ]));
+                //                                 break;
+                //                         }
+                //                         var last = last_stat(stat[2]);
+                //                         if (last[0] == "return" && last[1] == null) {
+                //                                 a.push(make_if(stat[1], [ "block", stat[2][1].slice(0, -1) ], [ "block", statements.slice(i) ]));
+                //                                 break;
+                //                         }
+                //                 }
+                //                 a.push(stat);
+                //         }
+                //         return a;
+                // })(0, []);
+
+                return statements;
+        };
+
+        function make_if(c, t, e) {
+                return when_constant(c, function(ast, val){
+                        if (val) {
+                                t = walk(t);
+                                warn_unreachable(e);
+                                return t || [ "block" ];
+                        } else {
+                                e = walk(e);
+                                warn_unreachable(t);
+                                return e || [ "block" ];
+                        }
+                }, function() {
+                        return make_real_if(c, t, e);
+                });
+        };
+
+        function make_real_if(c, t, e) {
+                c = walk(c);
+                t = walk(t);
+                e = walk(e);
+
+                if (empty(t)) {
+                        c = negate(c);
+                        t = e;
+                        e = null;
+                } else if (empty(e)) {
+                        e = null;
+                } else {
+                        // if we have both else and then, maybe it makes sense to switch them?
+                        (function(){
+                                var a = gen_code(c);
+                                var n = negate(c);
+                                var b = gen_code(n);
+                                if (b.length < a.length) {
+                                        var tmp = t;
+                                        t = e;
+                                        e = tmp;
+                                        c = n;
+                                }
+                        })();
+                }
+                if (empty(e) && empty(t))
+                        return [ "stat", c ];
+                var ret = [ "if", c, t, e ];
+                if (t[0] == "if" && empty(t[3]) && empty(e)) {
+                        ret = best_of(ret, walk([ "if", [ "binary", "&&", c, t[1] ], t[2] ]));
+                }
+                else if (t[0] == "stat") {
+                        if (e) {
+                                if (e[0] == "stat") {
+                                        ret = best_of(ret, [ "stat", make_conditional(c, t[1], e[1]) ]);
+                                }
+                        }
+                        else {
+                                ret = best_of(ret, [ "stat", make_conditional(c, t[1]) ]);
+                        }
+                }
+                else if (e && t[0] == e[0] && (t[0] == "return" || t[0] == "throw") && t[1] && e[1]) {
+                        ret = best_of(ret, [ t[0], make_conditional(c, t[1], e[1] ) ]);
+                }
+                else if (e && aborts(t)) {
+                        ret = [ [ "if", c, t ] ];
+                        if (e[0] == "block") {
+                                if (e[1]) ret = ret.concat(e[1]);
+                        }
+                        else {
+                                ret.push(e);
+                        }
+                        ret = walk([ "block", ret ]);
+                }
+                else if (t && aborts(e)) {
+                        ret = [ [ "if", negate(c), e ] ];
+                        if (t[0] == "block") {
+                                if (t[1]) ret = ret.concat(t[1]);
+                        } else {
+                                ret.push(t);
+                        }
+                        ret = walk([ "block", ret ]);
+                }
+                return ret;
+        };
+
+        function _do_while(cond, body) {
+                return when_constant(cond, function(cond, val){
+                        if (!val) {
+                                warn_unreachable(body);
+                                return [ "block" ];
+                        } else {
+                                return [ "for", null, null, null, walk(body) ];
+                        }
+                });
+        };
+
+        return w.with_walkers({
+                "sub": function(expr, subscript) {
+                        if (subscript[0] == "string") {
+                                var name = subscript[1];
+                                if (is_identifier(name))
+                                        return [ "dot", walk(expr), name ];
+                                else if (/^[1-9][0-9]*$/.test(name) || name === "0")
+                                        return [ "sub", walk(expr), [ "num", parseInt(name, 10) ] ];
+                        }
+                },
+                "if": make_if,
+                "toplevel": function(body) {
+                        return [ "toplevel", tighten(body) ];
+                },
+                "switch": function(expr, body) {
+                        var last = body.length - 1;
+                        return [ "switch", walk(expr), MAP(body, function(branch, i){
+                                var block = tighten(branch[1]);
+                                if (i == last && block.length > 0) {
+                                        var node = block[block.length - 1];
+                                        if (node[0] == "break" && !node[1])
+                                                block.pop();
+                                }
+                                return [ branch[0] ? walk(branch[0]) : null, block ];
+                        }) ];
+                },
+                "function": _lambda,
+                "defun": _lambda,
+                "block": function(body) {
+                        if (body) return rmblock([ "block", tighten(body) ]);
+                },
+                "binary": function(op, left, right) {
+                        return when_constant([ "binary", op, walk(left), walk(right) ], function yes(c){
+                                return best_of(walk(c), this);
+                        }, function no() {
+                                return function(){
+                                        if(op != "==" && op != "!=") return;
+                                        var l = walk(left), r = walk(right);
+                                        if(l && l[0] == "unary-prefix" && l[1] == "!" && l[2][0] == "num")
+                                                left = ['num', +!l[2][1]];
+                                        else if (r && r[0] == "unary-prefix" && r[1] == "!" && r[2][0] == "num")
+                                                right = ['num', +!r[2][1]];
+                                        return ["binary", op, left, right];
+                                }() || this;
+                        });
+                },
+                "conditional": function(c, t, e) {
+                        return make_conditional(walk(c), walk(t), walk(e));
+                },
+                "try": function(t, c, f) {
+                        return [
+                                "try",
+                                tighten(t),
+                                c != null ? [ c[0], tighten(c[1]) ] : null,
+                                f != null ? tighten(f) : null
+                        ];
+                },
+                "unary-prefix": function(op, expr) {
+                        expr = walk(expr);
+                        var ret = [ "unary-prefix", op, expr ];
+                        if (op == "!")
+                                ret = best_of(ret, negate(expr));
+                        return when_constant(ret, function(ast, val){
+                                return walk(ast); // it's either true or false, so minifies to !0 or !1
+                        }, function() { return ret });
+                },
+                "name": function(name) {
+                        switch (name) {
+                            case "true": return [ "unary-prefix", "!", [ "num", 0 ]];
+                            case "false": return [ "unary-prefix", "!", [ "num", 1 ]];
+                        }
+                },
+                "while": _do_while,
+                "assign": function(op, lvalue, rvalue) {
+                        lvalue = walk(lvalue);
+                        rvalue = walk(rvalue);
+                        var okOps = [ '+', '-', '/', '*', '%', '>>', '<<', '>>>', '|', '^', '&' ];
+                        if (op === true && lvalue[0] === "name" && rvalue[0] === "binary" &&
+                            ~okOps.indexOf(rvalue[1]) && rvalue[2][0] === "name" &&
+                            rvalue[2][1] === lvalue[1]) {
+                                return [ this[0], rvalue[1], lvalue, rvalue[3] ]
+                        }
+                        return [ this[0], op, lvalue, rvalue ];
+                }
+        }, function() {
+                for (var i = 0; i < 2; ++i) {
+                        ast = prepare_ifs(ast);
+                        ast = walk(ast);
+                }
+                return ast;
+        });
+};
+
+/* -----[ re-generate code from the AST ]----- */
+
+var DOT_CALL_NO_PARENS = jsp.array_to_hash([
+        "name",
+        "array",
+        "object",
+        "string",
+        "dot",
+        "sub",
+        "call",
+        "regexp",
+        "defun"
+]);
+
+function make_string(str, ascii_only) {
+        var dq = 0, sq = 0;
+        str = str.replace(/[\\\b\f\n\r\t\x22\x27\u2028\u2029\0]/g, function(s){
+                switch (s) {
+                    case "\\": return "\\\\";
+                    case "\b": return "\\b";
+                    case "\f": return "\\f";
+                    case "\n": return "\\n";
+                    case "\r": return "\\r";
+                    case "\t": return "\\t";
+                    case "\u2028": return "\\u2028";
+                    case "\u2029": return "\\u2029";
+                    case '"': ++dq; return '"';
+                    case "'": ++sq; return "'";
+                    case "\0": return "\\0";
+                }
+                return s;
+        });
+        if (ascii_only) str = to_ascii(str);
+        if (dq > sq) return "'" + str.replace(/\x27/g, "\\'") + "'";
+        else return '"' + str.replace(/\x22/g, '\\"') + '"';
+};
+
+function to_ascii(str) {
+        return str.replace(/[\u0080-\uffff]/g, function(ch) {
+                var code = ch.charCodeAt(0).toString(16);
+                while (code.length < 4) code = "0" + code;
+                return "\\u" + code;
+        });
+};
+
+var SPLICE_NEEDS_BRACKETS = jsp.array_to_hash([ "if", "while", "do", "for", "for-in", "with" ]);
+
+function gen_code(ast, options) {
+        options = defaults(options, {
+                indent_start : 0,
+                indent_level : 4,
+                quote_keys   : false,
+                space_colon  : false,
+                beautify     : false,
+                ascii_only   : false,
+                inline_script: false
+        });
+        var beautify = !!options.beautify;
+        var indentation = 0,
+            newline = beautify ? "\n" : "",
+            space = beautify ? " " : "";
+
+        function encode_string(str) {
+                var ret = make_string(str, options.ascii_only);
+                if (options.inline_script)
+                        ret = ret.replace(/<\x2fscript([>\/\t\n\f\r ])/gi, "<\\/script$1");
+                return ret;
+        };
+
+        function make_name(name) {
+                name = name.toString();
+                if (options.ascii_only)
+                        name = to_ascii(name);
+                return name;
+        };
+
+        function indent(line) {
+                if (line == null)
+                        line = "";
+                if (beautify)
+                        line = repeat_string(" ", options.indent_start + indentation * options.indent_level) + line;
+                return line;
+        };
+
+        function with_indent(cont, incr) {
+                if (incr == null) incr = 1;
+                indentation += incr;
+                try { return cont.apply(null, slice(arguments, 1)); }
+                finally { indentation -= incr; }
+        };
+
+        function add_spaces(a) {
+                if (beautify)
+                        return a.join(" ");
+                var b = [];
+                for (var i = 0; i < a.length; ++i) {
+                        var next = a[i + 1];
+                        b.push(a[i]);
+                        if (next &&
+                            ((/[a-z0-9_\x24]$/i.test(a[i].toString()) && /^[a-z0-9_\x24]/i.test(next.toString())) ||
+                             (/[\+\-]$/.test(a[i].toString()) && /^[\+\-]/.test(next.toString())))) {
+                                b.push(" ");
+                        }
+                }
+                return b.join("");
+        };
+
+        function add_commas(a) {
+                return a.join("," + space);
+        };
+
+        function parenthesize(expr) {
+                var gen = make(expr);
+                for (var i = 1; i < arguments.length; ++i) {
+                        var el = arguments[i];
+                        if ((el instanceof Function && el(expr)) || expr[0] == el)
+                                return "(" + gen + ")";
+                }
+                return gen;
+        };
+
+        function best_of(a) {
+                if (a.length == 1) {
+                        return a[0];
+                }
+                if (a.length == 2) {
+                        var b = a[1];
+                        a = a[0];
+                        return a.length <= b.length ? a : b;
+                }
+                return best_of([ a[0], best_of(a.slice(1)) ]);
+        };
+
+        function needs_parens(expr) {
+                if (expr[0] == "function" || expr[0] == "object") {
+                        // dot/call on a literal function requires the
+                        // function literal itself to be parenthesized
+                        // only if it's the first "thing" in a
+                        // statement.  This means that the parent is
+                        // "stat", but it could also be a "seq" and
+                        // we're the first in this "seq" and the
+                        // parent is "stat", and so on.  Messy stuff,
+                        // but it worths the trouble.
+                        var a = slice(w.stack()), self = a.pop(), p = a.pop();
+                        while (p) {
+                                if (p[0] == "stat") return true;
+                                if (((p[0] == "seq" || p[0] == "call" || p[0] == "dot" || p[0] == "sub" || p[0] == "conditional") && p[1] === self) ||
+                                    ((p[0] == "binary" || p[0] == "assign" || p[0] == "unary-postfix") && p[2] === self)) {
+                                        self = p;
+                                        p = a.pop();
+                                } else {
+                                        return false;
+                                }
+                        }
+                }
+                return !HOP(DOT_CALL_NO_PARENS, expr[0]);
+        };
+
+        function make_num(num) {
+                var str = num.toString(10), a = [ str.replace(/^0\./, ".") ], m;
+                if (Math.floor(num) === num) {
+                        if (num >= 0) {
+                                a.push("0x" + num.toString(16).toLowerCase(), // probably pointless
+                                       "0" + num.toString(8)); // same.
+                        } else {
+                                a.push("-0x" + (-num).toString(16).toLowerCase(), // probably pointless
+                                       "-0" + (-num).toString(8)); // same.
+                        }
+                        if ((m = /^(.*?)(0+)$/.exec(num))) {
+                                a.push(m[1] + "e" + m[2].length);
+                        }
+                } else if ((m = /^0?\.(0+)(.*)$/.exec(num))) {
+                        a.push(m[2] + "e-" + (m[1].length + m[2].length),
+                               str.substr(str.indexOf(".")));
+                }
+                return best_of(a);
+        };
+
+        var w = ast_walker();
+        var make = w.walk;
+        return w.with_walkers({
+                "string": encode_string,
+                "num": make_num,
+                "name": make_name,
+                "toplevel": function(statements) {
+                        return make_block_statements(statements)
+                                .join(newline + newline);
+                },
+                "splice": function(statements) {
+                        var parent = w.parent();
+                        if (HOP(SPLICE_NEEDS_BRACKETS, parent)) {
+                                // we need block brackets in this case
+                                return make_block.apply(this, arguments);
+                        } else {
+                                return MAP(make_block_statements(statements, true),
+                                           function(line, i) {
+                                                   // the first line is already indented
+                                                   return i > 0 ? indent(line) : line;
+                                           }).join(newline);
+                        }
+                },
+                "block": make_block,
+                "var": function(defs) {
+                        return "var " + add_commas(MAP(defs, make_1vardef)) + ";";
+                },
+                "const": function(defs) {
+                        return "const " + add_commas(MAP(defs, make_1vardef)) + ";";
+                },
+                "try": function(tr, ca, fi) {
+                        var out = [ "try", make_block(tr) ];
+                        if (ca) out.push("catch", "(" + ca[0] + ")", make_block(ca[1]));
+                        if (fi) out.push("finally", make_block(fi));
+                        return add_spaces(out);
+                },
+                "throw": function(expr) {
+                        return add_spaces([ "throw", make(expr) ]) + ";";
+                },
+                "new": function(ctor, args) {
+                        args = args.length > 0 ? "(" + add_commas(MAP(args, function(expr){
+                                return parenthesize(expr, "seq");
+                        })) + ")" : "";
+                        return add_spaces([ "new", parenthesize(ctor, "seq", "binary", "conditional", "assign", function(expr){
+                                var w = ast_walker(), has_call = {};
+                                try {
+                                        w.with_walkers({
+                                                "call": function() { throw has_call },
+                                                "function": function() { return this }
+                                        }, function(){
+                                                w.walk(expr);
+                                        });
+                                } catch(ex) {
+                                        if (ex === has_call)
+                                                return true;
+                                        throw ex;
+                                }
+                        }) + args ]);
+                },
+                "switch": function(expr, body) {
+                        return add_spaces([ "switch", "(" + make(expr) + ")", make_switch_block(body) ]);
+                },
+                "break": function(label) {
+                        var out = "break";
+                        if (label != null)
+                                out += " " + make_name(label);
+                        return out + ";";
+                },
+                "continue": function(label) {
+                        var out = "continue";
+                        if (label != null)
+                                out += " " + make_name(label);
+                        return out + ";";
+                },
+                "conditional": function(co, th, el) {
+                        return add_spaces([ parenthesize(co, "assign", "seq", "conditional"), "?",
+                                            parenthesize(th, "seq"), ":",
+                                            parenthesize(el, "seq") ]);
+                },
+                "assign": function(op, lvalue, rvalue) {
+                        if (op && op !== true) op += "=";
+                        else op = "=";
+                        return add_spaces([ make(lvalue), op, parenthesize(rvalue, "seq") ]);
+                },
+                "dot": function(expr) {
+                        var out = make(expr), i = 1;
+                        if (expr[0] == "num") {
+                                if (!/\./.test(expr[1]))
+                                        out += ".";
+                        } else if (needs_parens(expr))
+                                out = "(" + out + ")";
+                        while (i < arguments.length)
+                                out += "." + make_name(arguments[i++]);
+                        return out;
+                },
+                "call": function(func, args) {
+                        var f = make(func);
+                        if (f.charAt(0) != "(" && needs_parens(func))
+                                f = "(" + f + ")";
+                        return f + "(" + add_commas(MAP(args, function(expr){
+                                return parenthesize(expr, "seq");
+                        })) + ")";
+                },
+                "function": make_function,
+                "defun": make_function,
+                "if": function(co, th, el) {
+                        var out = [ "if", "(" + make(co) + ")", el ? make_then(th) : make(th) ];
+                        if (el) {
+                                out.push("else", make(el));
+                        }
+                        return add_spaces(out);
+                },
+                "for": function(init, cond, step, block) {
+                        var out = [ "for" ];
+                        init = (init != null ? make(init) : "").replace(/;*\s*$/, ";" + space);
+                        cond = (cond != null ? make(cond) : "").replace(/;*\s*$/, ";" + space);
+                        step = (step != null ? make(step) : "").replace(/;*\s*$/, "");
+                        var args = init + cond + step;
+                        if (args == "; ; ") args = ";;";
+                        out.push("(" + args + ")", make(block));
+                        return add_spaces(out);
+                },
+                "for-in": function(vvar, key, hash, block) {
+                        return add_spaces([ "for", "(" +
+                                            (vvar ? make(vvar).replace(/;+$/, "") : make(key)),
+                                            "in",
+                                            make(hash) + ")", make(block) ]);
+                },
+                "while": function(condition, block) {
+                        return add_spaces([ "while", "(" + make(condition) + ")", make(block) ]);
+                },
+                "do": function(condition, block) {
+                        return add_spaces([ "do", make(block), "while", "(" + make(condition) + ")" ]) + ";";
+                },
+                "return": function(expr) {
+                        var out = [ "return" ];
+                        if (expr != null) out.push(make(expr));
+                        return add_spaces(out) + ";";
+                },
+                "binary": function(operator, lvalue, rvalue) {
+                        var left = make(lvalue), right = make(rvalue);
+                        // XXX: I'm pretty sure other cases will bite here.
+                        //      we need to be smarter.
+                        //      adding parens all the time is the safest bet.
+                        if (member(lvalue[0], [ "assign", "conditional", "seq" ]) ||
+                            lvalue[0] == "binary" && PRECEDENCE[operator] > PRECEDENCE[lvalue[1]] ||
+                            lvalue[0] == "function" && needs_parens(this)) {
+                                left = "(" + left + ")";
+                        }
+                        if (member(rvalue[0], [ "assign", "conditional", "seq" ]) ||
+                            rvalue[0] == "binary" && PRECEDENCE[operator] >= PRECEDENCE[rvalue[1]] &&
+                            !(rvalue[1] == operator && member(operator, [ "&&", "||", "*" ]))) {
+                                right = "(" + right + ")";
+                        }
+                        else if (!beautify && options.inline_script && (operator == "<" || operator == "<<")
+                                 && rvalue[0] == "regexp" && /^script/i.test(rvalue[1])) {
+                                right = " " + right;
+                        }
+                        return add_spaces([ left, operator, right ]);
+                },
+                "unary-prefix": function(operator, expr) {
+                        var val = make(expr);
+                        if (!(expr[0] == "num" || (expr[0] == "unary-prefix" && !HOP(OPERATORS, operator + expr[1])) || !needs_parens(expr)))
+                                val = "(" + val + ")";
+                        return operator + (jsp.is_alphanumeric_char(operator.charAt(0)) ? " " : "") + val;
+                },
+                "unary-postfix": function(operator, expr) {
+                        var val = make(expr);
+                        if (!(expr[0] == "num" || (expr[0] == "unary-postfix" && !HOP(OPERATORS, operator + expr[1])) || !needs_parens(expr)))
+                                val = "(" + val + ")";
+                        return val + operator;
+                },
+                "sub": function(expr, subscript) {
+                        var hash = make(expr);
+                        if (needs_parens(expr))
+                                hash = "(" + hash + ")";
+                        return hash + "[" + make(subscript) + "]";
+                },
+                "object": function(props) {
+                        var obj_needs_parens = needs_parens(this);
+                        if (props.length == 0)
+                                return obj_needs_parens ? "({})" : "{}";
+                        var out = "{" + newline + with_indent(function(){
+                                return MAP(props, function(p){
+                                        if (p.length == 3) {
+                                                // getter/setter.  The name is in p[0], the arg.list in p[1][2], the
+                                                // body in p[1][3] and type ("get" / "set") in p[2].
+                                                return indent(make_function(p[0], p[1][2], p[1][3], p[2]));
+                                        }
+                                        var key = p[0], val = parenthesize(p[1], "seq");
+                                        if (options.quote_keys) {
+                                                key = encode_string(key);
+                                        } else if ((typeof key == "number" || !beautify && +key + "" == key)
+                                                   && parseFloat(key) >= 0) {
+                                                key = make_num(+key);
+                                        } else if (!is_identifier(key)) {
+                                                key = encode_string(key);
+                                        }
+                                        return indent(add_spaces(beautify && options.space_colon
+                                                                 ? [ key, ":", val ]
+                                                                 : [ key + ":", val ]));
+                                }).join("," + newline);
+                        }) + newline + indent("}");
+                        return obj_needs_parens ? "(" + out + ")" : out;
+                },
+                "regexp": function(rx, mods) {
+                        return "/" + rx + "/" + mods;
+                },
+                "array": function(elements) {
+                        if (elements.length == 0) return "[]";
+                        return add_spaces([ "[", add_commas(MAP(elements, function(el, i){
+                                if (!beautify && el[0] == "atom" && el[1] == "undefined") return i === elements.length - 1 ? "," : "";
+                                return parenthesize(el, "seq");
+                        })), "]" ]);
+                },
+                "stat": function(stmt) {
+                        return make(stmt).replace(/;*\s*$/, ";");
+                },
+                "seq": function() {
+                        return add_commas(MAP(slice(arguments), make));
+                },
+                "label": function(name, block) {
+                        return add_spaces([ make_name(name), ":", make(block) ]);
+                },
+                "with": function(expr, block) {
+                        return add_spaces([ "with", "(" + make(expr) + ")", make(block) ]);
+                },
+                "atom": function(name) {
+                        return make_name(name);
+                }
+        }, function(){ return make(ast) });
+
+        // The squeezer replaces "block"-s that contain only a single
+        // statement with the statement itself; technically, the AST
+        // is correct, but this can create problems when we output an
+        // IF having an ELSE clause where the THEN clause ends in an
+        // IF *without* an ELSE block (then the outer ELSE would refer
+        // to the inner IF).  This function checks for this case and
+        // adds the block brackets if needed.
+        function make_then(th) {
+                if (th == null) return ";";
+                if (th[0] == "do") {
+                        // https://github.com/mishoo/UglifyJS/issues/#issue/57
+                        // IE croaks with "syntax error" on code like this:
+                        //     if (foo) do ... while(cond); else ...
+                        // we need block brackets around do/while
+                        return make_block([ th ]);
+                }
+                var b = th;
+                while (true) {
+                        var type = b[0];
+                        if (type == "if") {
+                                if (!b[3])
+                                        // no else, we must add the block
+                                        return make([ "block", [ th ]]);
+                                b = b[3];
+                        }
+                        else if (type == "while" || type == "do") b = b[2];
+                        else if (type == "for" || type == "for-in") b = b[4];
+                        else break;
+                }
+                return make(th);
+        };
+
+        function make_function(name, args, body, keyword) {
+                var out = keyword || "function";
+                if (name) {
+                        out += " " + make_name(name);
+                }
+                out += "(" + add_commas(MAP(args, make_name)) + ")";
+                out = add_spaces([ out, make_block(body) ]);
+                return needs_parens(this) ? "(" + out + ")" : out;
+        };
+
+        function must_has_semicolon(node) {
+                switch (node[0]) {
+                    case "with":
+                    case "while":
+                        return empty(node[2]); // `with' or `while' with empty body?
+                    case "for":
+                    case "for-in":
+                        return empty(node[4]); // `for' with empty body?
+                    case "if":
+                        if (empty(node[2]) && !node[3]) return true; // `if' with empty `then' and no `else'
+                        if (node[3]) {
+                                if (empty(node[3])) return true; // `else' present but empty
+                                return must_has_semicolon(node[3]); // dive into the `else' branch
+                        }
+                        return must_has_semicolon(node[2]); // dive into the `then' branch
+                }
+        };
+
+        function make_block_statements(statements, noindent) {
+                for (var a = [], last = statements.length - 1, i = 0; i <= last; ++i) {
+                        var stat = statements[i];
+                        var code = make(stat);
+                        if (code != ";") {
+                                if (!beautify && i == last && !must_has_semicolon(stat)) {
+                                        code = code.replace(/;+\s*$/, "");
+                                }
+                                a.push(code);
+                        }
+                }
+                return noindent ? a : MAP(a, indent);
+        };
+
+        function make_switch_block(body) {
+                var n = body.length;
+                if (n == 0) return "{}";
+                return "{" + newline + MAP(body, function(branch, i){
+                        var has_body = branch[1].length > 0, code = with_indent(function(){
+                                return indent(branch[0]
+                                              ? add_spaces([ "case", make(branch[0]) + ":" ])
+                                              : "default:");
+                        }, 0.5) + (has_body ? newline + with_indent(function(){
+                                return make_block_statements(branch[1]).join(newline);
+                        }) : "");
+                        if (!beautify && has_body && i < n - 1)
+                                code += ";";
+                        return code;
+                }).join(newline) + newline + indent("}");
+        };
+
+        function make_block(statements) {
+                if (!statements) return ";";
+                if (statements.length == 0) return "{}";
+                return "{" + newline + with_indent(function(){
+                        return make_block_statements(statements).join(newline);
+                }) + newline + indent("}");
+        };
+
+        function make_1vardef(def) {
+                var name = def[0], val = def[1];
+                if (val != null)
+                        name = add_spaces([ make_name(name), "=", parenthesize(val, "seq") ]);
+                return name;
+        };
+
+};
+
+function split_lines(code, max_line_length) {
+        var splits = [ 0 ];
+        jsp.parse(function(){
+                var next_token = jsp.tokenizer(code);
+                var last_split = 0;
+                var prev_token;
+                function current_length(tok) {
+                        return tok.pos - last_split;
+                };
+                function split_here(tok) {
+                        last_split = tok.pos;
+                        splits.push(last_split);
+                };
+                function custom(){
+                        var tok = next_token.apply(this, arguments);
+                        out: {
+                                if (prev_token) {
+                                        if (prev_token.type == "keyword") break out;
+                                }
+                                if (current_length(tok) > max_line_length) {
+                                        switch (tok.type) {
+                                            case "keyword":
+                                            case "atom":
+                                            case "name":
+                                            case "punc":
+                                                split_here(tok);
+                                                break out;
+                                        }
+                                }
+                        }
+                        prev_token = tok;
+                        return tok;
+                };
+                custom.context = function() {
+                        return next_token.context.apply(this, arguments);
+                };
+                return custom;
+        }());
+        return splits.map(function(pos, i){
+                return code.substring(pos, splits[i + 1] || code.length);
+        }).join("\n");
+};
+
+/* -----[ Utilities ]----- */
+
+function repeat_string(str, i) {
+        if (i <= 0) return "";
+        if (i == 1) return str;
+        var d = repeat_string(str, i >> 1);
+        d += d;
+        if (i & 1) d += str;
+        return d;
+};
+
+function defaults(args, defs) {
+        var ret = {};
+        if (args === true)
+                args = {};
+        for (var i in defs) if (HOP(defs, i)) {
+                ret[i] = (args && HOP(args, i)) ? args[i] : defs[i];
+        }
+        return ret;
+};
+
+function is_identifier(name) {
+        return /^[a-z_$][a-z0-9_$]*$/i.test(name)
+                && name != "this"
+                && !HOP(jsp.KEYWORDS_ATOM, name)
+                && !HOP(jsp.RESERVED_WORDS, name)
+                && !HOP(jsp.KEYWORDS, name);
+};
+
+function HOP(obj, prop) {
+        return Object.prototype.hasOwnProperty.call(obj, prop);
+};
+
+// some utilities
+
+var MAP;
+
+(function(){
+        MAP = function(a, f, o) {
+                var ret = [], top = [], i;
+                function doit() {
+                        var val = f.call(o, a[i], i);
+                        if (val instanceof AtTop) {
+                                val = val.v;
+                                if (val instanceof Splice) {
+                                        top.push.apply(top, val.v);
+                                } else {
+                                        top.push(val);
+                                }
+                        }
+                        else if (val != skip) {
+                                if (val instanceof Splice) {
+                                        ret.push.apply(ret, val.v);
+                                } else {
+                                        ret.push(val);
+                                }
+                        }
+                };
+                if (a instanceof Array) for (i = 0; i < a.length; ++i) doit();
+                else for (i in a) if (HOP(a, i)) doit();
+                return top.concat(ret);
+        };
+        MAP.at_top = function(val) { return new AtTop(val) };
+        MAP.splice = function(val) { return new Splice(val) };
+        var skip = MAP.skip = {};
+        function AtTop(val) { this.v = val };
+        function Splice(val) { this.v = val };
+})();
+
+/* -----[ Exports ]----- */
+
+exports.ast_walker = ast_walker;
+exports.ast_mangle = ast_mangle;
+exports.ast_squeeze = ast_squeeze;
+exports.ast_lift_variables = ast_lift_variables;
+exports.gen_code = gen_code;
+exports.ast_add_scope = ast_add_scope;
+exports.set_logger = function(logger) { warn = logger };
+exports.make_string = make_string;
+exports.split_lines = split_lines;
+exports.MAP = MAP;
+
+// keep this last!
+exports.ast_squeeze_more = require("./squeeze-more").ast_squeeze_more;
+
+});define('uglifyjs/index', ["require", "exports", "module", "./parse-js", "./process"], function(require, exports, module) {
+
+//convienence function(src, [options]);
+function uglify(orig_code, options){
+  options || (options = {});
+  var jsp = uglify.parser;
+  var pro = uglify.uglify;
+
+  var ast = jsp.parse(orig_code, options.strict_semicolons); // parse code and get the initial AST
+  ast = pro.ast_mangle(ast, options.mangle_options); // get a new AST with mangled names
+  ast = pro.ast_squeeze(ast, options.squeeze_options); // get an AST with compression optimizations
+  var final_code = pro.gen_code(ast, options.gen_options); // compressed code here
+  return final_code;
+};
+
+uglify.parser = require("./parse-js");
+uglify.uglify = require("./process");
+
+module.exports = uglify
+
+});/**
+ * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+
+/*jslint plusplus: false, strict: false */
+/*global define: false */
+
+define('parse', ['./uglifyjs/index'], function (uglify) {
+    var parser = uglify.parser,
+        processor = uglify.uglify,
+        ostring = Object.prototype.toString,
+        isArray;
+
+    if (Array.isArray) {
+        isArray = Array.isArray;
+    } else {
+        isArray = function (it) {
+            return ostring.call(it) === "[object Array]";
+        };
+    }
+
+    /**
+     * Determines if the AST node is an array literal
+     */
+    function isArrayLiteral(node) {
+        return node[0] === 'array';
+    }
+
+    /**
+     * Determines if the AST node is an object literal
+     */
+    function isObjectLiteral(node) {
+        return node[0] === 'object';
+    }
+
+    /**
+     * Converts a regular JS array of strings to an AST node that
+     * represents that array.
+     * @param {Array} ary
+     * @param {Node} an AST node that represents an array of strings.
+     */
+    function toAstArray(ary) {
+        var output = [
+            'array',
+            []
+        ],
+        i, item;
+
+        for (i = 0; (item = ary[i]); i++) {
+            output[1].push([
+                'string',
+                item
+            ]);
+        }
+
+        return output;
+    }
+
+    /**
+     * Validates a node as being an object literal (like for i18n bundles)
+     * or an array literal with just string members. If an array literal,
+     * only return array members that are full strings. So the caller of
+     * this function should use the return value as the new value for the
+     * node.
+     *
+     * This function does not need to worry about comments, they are not
+     * present in this AST.
+     *
+     * @param {Node} node an AST node.
+     *
+     * @returns {Node} an AST node to use for the valid dependencies.
+     * If null is returned, then it means the input node was not a valid
+     * dependency.
+     */
+    function validateDeps(node) {
+        var newDeps = ['array', []],
+            arrayArgs, i, dep;
+
+        if (!node) {
+            return null;
+        }
+
+        if (isObjectLiteral(node) || node[0] === 'function') {
+            return node;
+        }
+
+        //Dependencies can be an object literal or an array.
+        if (!isArrayLiteral(node)) {
+            return null;
+        }
+
+        arrayArgs = node[1];
+
+        for (i = 0; i < arrayArgs.length; i++) {
+            dep = arrayArgs[i];
+            if (dep[0] === 'string') {
+                newDeps[1].push(dep);
+            }
+        }
+        return newDeps[1].length ? newDeps : null;
+    }
+
+    /**
+     * Gets dependencies from a node, but only if it is an array literal,
+     * and only if the dependency is a string literal.
+     *
+     * This function does not need to worry about comments, they are not
+     * present in this AST.
+     *
+     * @param {Node} node an AST node.
+     *
+     * @returns {Array} of valid dependencies.
+     * If null is returned, then it means the input node was not a valid
+     * array literal, or did not have any string literals..
+     */
+    function getValidDeps(node) {
+        var newDeps = [],
+            arrayArgs, i, dep;
+
+        if (!node) {
+            return null;
+        }
+
+        if (isObjectLiteral(node) || node[0] === 'function') {
+            return null;
+        }
+
+        //Dependencies can be an object literal or an array.
+        if (!isArrayLiteral(node)) {
+            return null;
+        }
+
+        arrayArgs = node[1];
+
+        for (i = 0; i < arrayArgs.length; i++) {
+            dep = arrayArgs[i];
+            if (dep[0] === 'string') {
+                newDeps.push(dep[1]);
+            }
+        }
+        return newDeps.length ? newDeps : null;
+    }
+
+    /**
+     * Main parse function. Returns a string of any valid require or define/require.def
+     * calls as part of one JavaScript source string.
+     * @param {String} moduleName the module name that represents this file.
+     * It is used to create a default define if there is not one already for the file.
+     * This allows properly tracing dependencies for builds. Otherwise, if
+     * the file just has a require() call, the file dependencies will not be
+     * properly reflected: the file will come before its dependencies.
+     * @param {String} moduleName
+     * @param {String} fileName
+     * @param {String} fileContents
+     * @param {Object} options optional options. insertNeedsDefine: true will
+     * add calls to require.needsDefine() if appropriate.
+     * @returns {String} JS source string or null, if no require or define/require.def
+     * calls are found.
+     */
+    function parse(moduleName, fileName, fileContents, options) {
+        options = options || {};
+
+        //Set up source input
+        var moduleDeps = [],
+            result = '',
+            moduleList = [],
+            needsDefine = true,
+            astRoot = parser.parse(fileContents),
+            i, moduleCall, depString;
+
+        parse.recurse(astRoot, function (callName, config, name, deps) {
+            //If name is an array, it means it is an anonymous module,
+            //so adjust args appropriately. An anonymous module could
+            //have a FUNCTION as the name type, but just ignore those
+            //since we just want to find dependencies.
+            if (name && isArrayLiteral(name)) {
+                deps = name;
+                name = null;
+            }
+
+            if (!(deps = getValidDeps(deps))) {
+                deps = [];
+            }
+
+            //Get the name as a string literal, if it is available.
+            if (name && name[0] === 'string') {
+                name = name[1];
+            } else {
+                name = null;
+            }
+
+            if (callName === 'define' && (!name || name === moduleName)) {
+                needsDefine = false;
+            }
+
+            if (!name) {
+                //If there is no module name, the dependencies are for
+                //this file/default module name.
+                moduleDeps = moduleDeps.concat(deps);
+            } else {
+                moduleList.push({
+                    name: name,
+                    deps: deps
+                });
+            }
+
+            //If define was found, no need to dive deeper, unless
+            //the config explicitly wants to dig deeper.
+            return !options.findNestedDependencies;
+        }, options);
+
+        if (options.insertNeedsDefine && needsDefine) {
+            result += 'require.needsDefine("' + moduleName + '");';
+        }
+
+        if (moduleDeps.length || moduleList.length) {
+            for (i = 0; (moduleCall = moduleList[i]); i++) {
+                if (result) {
+                    result += '\n';
+                }
+
+                //If this is the main module for this file, combine any
+                //"anonymous" dependencies (could come from a nested require
+                //call) with this module.
+                if (moduleCall.name === moduleName) {
+                    moduleCall.deps = moduleCall.deps.concat(moduleDeps);
+                    moduleDeps = [];
+                }
+
+                depString = moduleCall.deps.length ? '["' + moduleCall.deps.join('","') + '"]' : '[]';
+                result += 'define("' + moduleCall.name + '",' + depString + ');';
+            }
+            if (moduleDeps.length) {
+                if (result) {
+                    result += '\n';
+                }
+                depString = moduleDeps.length ? '["' + moduleDeps.join('","') + '"]' : '[]';
+                result += 'define("' + moduleName + '",' + depString + ');';
+            }
+        }
+
+        return result ? result : null;
+    }
+
+    //Add some private methods to object for use in derived objects.
+    parse.isArray = isArray;
+    parse.isObjectLiteral = isObjectLiteral;
+    parse.isArrayLiteral = isArrayLiteral;
+
+    /**
+     * Handles parsing a file recursively for require calls.
+     * @param {Array} parentNode the AST node to start with.
+     * @param {Function} onMatch function to call on a parse match.
+     * @param {Object} [options] This is normally the build config options if
+     * it is passed.
+     * @param {Function} [recurseCallback] function to call on each valid
+     * node, defaults to parse.parseNode.
+     */
+    parse.recurse = function (parentNode, onMatch, options, recurseCallback) {
+        var hasHas = options && options.has,
+            i, node;
+
+        recurseCallback = recurseCallback || this.parseNode;
+
+        if (isArray(parentNode)) {
+            for (i = 0; i < parentNode.length; i++) {
+                node = parentNode[i];
+                if (isArray(node)) {
+                    //If has config is in play, if calls have been converted
+                    //by this point to be true/false values. So, if
+                    //options has a 'has' value, skip if branches that have
+                    //literal false values.
+
+                    //uglify returns if constructs in an array:
+                    //[0]: 'if'
+                    //[1]: the condition, ['name', true | false] for the has replaced case.
+                    //[2]: the block to process if true
+                    //[3]: the block to process if false
+                    //For if/else if/else, the else if is in the [3],
+                    //so only ever have to deal with this structure.
+                    if (hasHas && node[0] === 'if' && node[1] && node[1][0] === 'name' &&
+                        (node[1][1] === 'true' || node[1][1] === 'false')) {
+                        if (node[1][1] === 'true') {
+                            this.recurse([node[2]], onMatch, options, recurseCallback);
+                        } else {
+                            this.recurse([node[3]], onMatch, options, recurseCallback);
+                        }
+                    } else {
+                        if (recurseCallback(node, onMatch)) {
+                            //The onMatch indicated parsing should
+                            //stop for children of this node.
+                            continue;
+                        }
+                        this.recurse(node, onMatch, options, recurseCallback);
+                    }
+                }
+            }
+        }
+    };
+
+    /**
+     * Determines if the file defines require().
+     * @param {String} fileName
+     * @param {String} fileContents
+     * @returns {Boolean}
+     */
+    parse.definesRequire = function (fileName, fileContents) {
+        var astRoot = parser.parse(fileContents);
+        return this.nodeHasRequire(astRoot);
+    };
+
+    /**
+     * Finds require("") calls inside a CommonJS anonymous module wrapped in a
+     * define(function(require, exports, module){}) wrapper. These dependencies
+     * will be added to a modified define() call that lists the dependencies
+     * on the outside of the function.
+     * @param {String} fileName
+     * @param {String} fileContents
+     * @returns {Array} an array of module names that are dependencies. Always
+     * returns an array, but could be of length zero.
+     */
+    parse.getAnonDeps = function (fileName, fileContents) {
+        var astRoot = parser.parse(fileContents),
+            defFunc = this.findAnonDefineFactory(astRoot);
+
+        return parse.getAnonDepsFromNode(defFunc);
+    };
+
+    /**
+     * Finds require("") calls inside a CommonJS anonymous module wrapped
+     * in a define function, given an AST node for the definition function.
+     * @param {Node} node the AST node for the definition function.
+     * @returns {Array} and array of dependency names. Can be of zero length.
+     */
+    parse.getAnonDepsFromNode = function (node) {
+        var deps = [],
+            funcArgLength;
+
+        if (node) {
+            this.findRequireDepNames(node, deps);
+
+            //If no deps, still add the standard CommonJS require, exports, module,
+            //in that order, to the deps, but only if specified as function args.
+            //In particular, if exports is used, it is favored over the return
+            //value of the function, so only add it if asked.
+            funcArgLength = node[2] && node[2].length;
+            if (funcArgLength) {
+                deps = (funcArgLength > 1 ? ["require", "exports", "module"] :
+                        ["require"]).concat(deps);
+            }
+        }
+        return deps;
+    };
+
+    /**
+     * Finds the function in define(function (require, exports, module){});
+     * @param {Array} node
+     * @returns {Boolean}
+     */
+    parse.findAnonDefineFactory = function (node) {
+        var callback, i, n, call, args;
+
+        if (isArray(node)) {
+            if (node[0] === 'call') {
+                call = node[1];
+                args = node[2];
+                if ((call[0] === 'name' && call[1] === 'define') ||
+                           (call[0] === 'dot' && call[1][1] === 'require' && call[2] === 'def')) {
+
+                    //There should only be one argument and it should be a function,
+                    //or a named module with function as second arg
+                    if (args.length === 1 && args[0][0] === 'function') {
+                        return args[0];
+                    } else if (args.length === 2 && args[0][0] === 'string' &&
+                               args[1][0] === 'function') {
+                        return args[1];
+                    }
+                }
+            }
+
+            //Check child nodes
+            for (i = 0; i < node.length; i++) {
+                n = node[i];
+                if ((callback = this.findAnonDefineFactory(n))) {
+                    return callback;
+                }
+            }
+        }
+
+        return null;
+    };
+
+    /**
+     * Finds any config that is passed to requirejs.
+     * @param {String} fileName
+     * @param {String} fileContents
+     *
+     * @returns {Object} a config object. Will be null if no config.
+     * Can throw an error if the config in the file cannot be evaluated in
+     * a build context to valid JavaScript.
+     */
+    parse.findConfig = function (fileName, fileContents) {
+        /*jslint evil: true */
+        //This is a litle bit inefficient, it ends up with two uglifyjs parser
+        //calls. Can revisit later, but trying to build out larger functional
+        //pieces first.
+        var foundConfig = null,
+            astRoot = parser.parse(fileContents);
+
+        parse.recurse(astRoot, function (configNode) {
+            var jsConfig;
+
+            if (!foundConfig && configNode) {
+                jsConfig = parse.nodeToString(configNode);
+                foundConfig = eval('(' + jsConfig + ')');
+                return foundConfig;
+            }
+            return undefined;
+        }, null, parse.parseConfigNode);
+
+        return foundConfig;
+    };
+
+    /**
+     * Finds all dependencies specified in dependency arrays and inside
+     * simplified commonjs wrappers.
+     * @param {String} fileName
+     * @param {String} fileContents
+     *
+     * @returns {Array} an array of dependency strings. The dependencies
+     * have not been normalized, they may be relative IDs.
+     */
+    parse.findDependencies = function (fileName, fileContents, options) {
+        //This is a litle bit inefficient, it ends up with two uglifyjs parser
+        //calls. Can revisit later, but trying to build out larger functional
+        //pieces first.
+        var dependencies = [],
+            astRoot = parser.parse(fileContents);
+
+        parse.recurse(astRoot, function (callName, config, name, deps) {
+            //Normalize the input args.
+            if (name && isArrayLiteral(name)) {
+                deps = name;
+                name = null;
+            }
+
+            if ((deps = getValidDeps(deps))) {
+                dependencies = dependencies.concat(deps);
+            }
+        }, options);
+
+        return dependencies;
+    };
+
+    /**
+     * Finds only CJS dependencies, ones that are the form require('stringLiteral')
+     */
+    parse.findCjsDependencies = function (fileName, fileContents, options) {
+        //This is a litle bit inefficient, it ends up with two uglifyjs parser
+        //calls. Can revisit later, but trying to build out larger functional
+        //pieces first.
+        var dependencies = [],
+            astRoot = parser.parse(fileContents);
+
+        parse.recurse(astRoot, function (dep) {
+            dependencies.push(dep);
+        }, options, function (node, onMatch) {
+
+            var call, args;
+
+            if (!isArray(node)) {
+                return false;
+            }
+
+            if (node[0] === 'call') {
+                call = node[1];
+                args = node[2];
+
+                if (call) {
+                    //A require('') use.
+                    if (call[0] === 'name' && call[1] === 'require' &&
+                        args[0][0] === 'string') {
+                        return onMatch(args[0][1]);
+                    }
+                }
+            }
+
+            return false;
+
+        });
+
+        return dependencies;
+    };
+
+    /**
+     * Determines if define(), require({}|[]) or requirejs was called in the
+     * file. Also finds out if define() is declared and if define.amd is called.
+     */
+    parse.usesAmdOrRequireJs = function (fileName, fileContents, options) {
+        var astRoot = parser.parse(fileContents),
+            uses;
+
+        parse.recurse(astRoot, function (prop) {
+            if (!uses) {
+                uses = {};
+            }
+            uses[prop] = true;
+        }, options, parse.findAmdOrRequireJsNode);
+
+        return uses;
+    };
+
+    /**
+     * Determines if require(''), exports.x =, module.exports =,
+     * __dirname, __filename are used. So, not strictly traditional CommonJS,
+     * also checks for Node variants.
+     */
+    parse.usesCommonJs = function (fileName, fileContents, options) {
+        var uses = null,
+            assignsExports = false,
+            astRoot = parser.parse(fileContents);
+
+        parse.recurse(astRoot, function (prop) {
+            if (prop === 'varExports') {
+                assignsExports = true;
+            } else if (prop !== 'exports' || !assignsExports) {
+                if (!uses) {
+                    uses = {};
+                }
+                uses[prop] = true;
+            }
+        }, options, function (node, onMatch) {
+
+            var call, args;
+
+            if (!isArray(node)) {
+                return false;
+            }
+
+            if (node[0] === 'name' && (node[1] === '__dirname' || node[1] === '__filename')) {
+                return onMatch(node[1].substring(2));
+            } else if (node[0] === 'var' && node[1] && node[1][0] && node[1][0][0] === 'exports') {
+                //Hmm, a variable assignment for exports, so does not use cjs exports.
+                return onMatch('varExports');
+            } else if (node[0] === 'assign' && node[2] && node[2][0] === 'dot') {
+                args = node[2][1];
+
+                if (args) {
+                    //An exports or module.exports assignment.
+                    if (args[0] === 'name' && args[1] === 'module' &&
+                        node[2][2] === 'exports') {
+                        return onMatch('moduleExports');
+                    } else if (args[0] === 'name' && args[1] === 'exports') {
+                        return onMatch('exports');
+                    }
+                }
+            } else if (node[0] === 'call') {
+                call = node[1];
+                args = node[2];
+
+                if (call) {
+                    //A require('') use.
+                    if (call[0] === 'name' && call[1] === 'require' &&
+                        args[0][0] === 'string') {
+                        return onMatch('require');
+                    }
+                }
+            }
+
+            return false;
+
+        });
+
+        return uses;
+    };
+
+
+    parse.findRequireDepNames = function (node, deps) {
+        var moduleName, i, n, call, args;
+
+        if (isArray(node)) {
+            if (node[0] === 'call') {
+                call = node[1];
+                args = node[2];
+
+                if (call && call[0] === 'name' && call[1] === 'require') {
+                    moduleName = args[0];
+                    if (moduleName[0] === 'string') {
+                        deps.push(moduleName[1]);
+                    }
+                }
+
+
+            }
+
+            //Check child nodes
+            for (i = 0; i < node.length; i++) {
+                n = node[i];
+                this.findRequireDepNames(n, deps);
+            }
+        }
+    };
+
+    /**
+     * Determines if a given node contains a require() definition.
+     * @param {Array} node
+     * @returns {Boolean}
+     */
+    parse.nodeHasRequire = function (node) {
+        if (this.isDefineNode(node)) {
+            return true;
+        }
+
+        if (isArray(node)) {
+            for (var i = 0, n; i < node.length; i++) {
+                n = node[i];
+                if (this.nodeHasRequire(n)) {
+                    return true;
+                }
+            }
+        }
+
+        return false;
+    };
+
+    /**
+     * Is the given node the actual definition of define(). Actually uses
+     * the definition of define.amd to find require.
+     * @param {Array} node
+     * @returns {Boolean}
+     */
+    parse.isDefineNode = function (node) {
+        //Actually look for the define.amd = assignment, since
+        //that is more indicative of RequireJS vs a plain require definition.
+        var assign;
+        if (!node) {
+            return null;
+        }
+
+        if (node[0] === 'assign' && node[1] === true) {
+            assign = node[2];
+            if (assign[0] === 'dot' && assign[1][0] === 'name' &&
+                assign[1][1] === 'define' && assign[2] === 'amd') {
+                return true;
+            }
+        }
+        return false;
+    };
+
+    /**
+     * Determines if a specific node is a valid require or define/require.def call.
+     * @param {Array} node
+     * @param {Function} onMatch a function to call when a match is found.
+     * It is passed the match name, and the config, name, deps possible args.
+     * The config, name and deps args are not normalized.
+     *
+     * @returns {String} a JS source string with the valid require/define call.
+     * Otherwise null.
+     */
+    parse.parseNode = function (node, onMatch) {
+        var call, name, config, deps, args, cjsDeps;
+
+        if (!isArray(node)) {
+            return false;
+        }
+
+        if (node[0] === 'call') {
+            call = node[1];
+            args = node[2];
+
+            if (call) {
+                if (call[0] === 'name' &&
+                   (call[1] === 'require' || call[1] === 'requirejs')) {
+
+                    //It is a plain require() call.
+                    config = args[0];
+                    deps = args[1];
+                    if (isArrayLiteral(config)) {
+                        deps = config;
+                        config = null;
+                    }
+
+                    if (!(deps = validateDeps(deps))) {
+                        return null;
+                    }
+
+                    return onMatch("require", null, null, deps);
+
+                } else if (call[0] === 'name' && call[1] === 'define') {
+
+                    //A define call
+                    name = args[0];
+                    deps = args[1];
+                    //Only allow define calls that match what is expected
+                    //in an AMD call:
+                    //* first arg should be string, array, function or object
+                    //* second arg optional, or array, function or object.
+                    //This helps weed out calls to a non-AMD define, but it is
+                    //not completely robust. Someone could create a define
+                    //function that still matches this shape, but this is the
+                    //best that is possible, and at least allows UglifyJS,
+                    //which does create its own internal define in one file,
+                    //to be inlined.
+                    if (((name[0] === 'string' || isArrayLiteral(name) ||
+                          name[0] === 'function' || isObjectLiteral(name))) &&
+                        (!deps || isArrayLiteral(deps) ||
+                         deps[0] === 'function' || isObjectLiteral(deps) ||
+                         // allow define(['dep'], factory) pattern
+                         (isArrayLiteral(name) && deps[0] === 'name' && args.length === 2))) {
+
+                        //If first arg is a function, could be a commonjs wrapper,
+                        //look inside for commonjs dependencies.
+                        //Also, if deps is a function look for commonjs deps.
+                        if (name && name[0] === 'function') {
+                            cjsDeps = parse.getAnonDepsFromNode(name);
+                            if (cjsDeps.length) {
+                                name = toAstArray(cjsDeps);
+                            }
+                        } else if (deps && deps[0] === 'function') {
+                            cjsDeps = parse.getAnonDepsFromNode(deps);
+                            if (cjsDeps.length) {
+                                deps = toAstArray(cjsDeps);
+                            }
+                        }
+
+                        return onMatch("define", null, name, deps);
+                    }
+                }
+            }
+        }
+
+        return false;
+    };
+
+    /**
+     * Looks for define(), require({} || []), requirejs({} || []) calls.
+     */
+    parse.findAmdOrRequireJsNode = function (node, onMatch) {
+        var call, args, configNode, type;
+
+        if (!isArray(node)) {
+            return false;
+        }
+
+        if (node[0] === 'defun' && node[1] === 'define') {
+            type = 'declaresDefine';
+        } else if (node[0] === 'assign' && node[2] && node[2][2] === 'amd' &&
+            node[2][1] && node[2][1][0] === 'name' &&
+            node[2][1][1] === 'define') {
+            type = 'defineAmd';
+        } else if (node[0] === 'call') {
+            call = node[1];
+            args = node[2];
+
+            if (call) {
+                if ((call[0] === 'dot' &&
+                   (call[1] && call[1][0] === 'name' &&
+                    (call[1][1] === 'require' || call[1][1] === 'requirejs')) &&
+                   call[2] === 'config')) {
+                    //A require.config() or requirejs.config() call.
+                    type = call[1][1] + 'Config';
+                } else if (call[0] === 'name' &&
+                   (call[1] === 'require' || call[1] === 'requirejs')) {
+                    //A require() or requirejs() config call.
+                    //Only want ones that start with an object or an array.
+                    configNode = args[0];
+                    if (configNode[0] === 'object' || configNode[0] === 'array') {
+                        type = call[1];
+                    }
+                } else if (call[0] === 'name' && call[1] === 'define') {
+                    //A define call.
+                    type = 'define';
+                }
+            }
+        }
+
+        if (type) {
+            return onMatch(type);
+        }
+
+        return false;
+    };
+
+    /**
+     * Determines if a specific node is a valid require/requirejs config
+     * call. That includes calls to require/requirejs.config().
+     * @param {Array} node
+     * @param {Function} onMatch a function to call when a match is found.
+     * It is passed the match name, and the config, name, deps possible args.
+     * The config, name and deps args are not normalized.
+     *
+     * @returns {String} a JS source string with the valid require/define call.
+     * Otherwise null.
+     */
+    parse.parseConfigNode = function (node, onMatch) {
+        var call, configNode, args;
+
+        if (!isArray(node)) {
+            return false;
+        }
+
+        if (node[0] === 'call') {
+            call = node[1];
+            args = node[2];
+
+            if (call) {
+                //A require.config() or requirejs.config() call.
+                if ((call[0] === 'dot' &&
+                   (call[1] && call[1][0] === 'name' &&
+                    (call[1][1] === 'require' || call[1][1] === 'requirejs')) &&
+                   call[2] === 'config') ||
+                   //A require() or requirejs() config call.
+
+                   (call[0] === 'name' &&
+                   (call[1] === 'require' || call[1] === 'requirejs'))
+                ) {
+                    //It is a plain require() call.
+                    configNode = args[0];
+
+                    if (configNode[0] !== 'object') {
+                        return null;
+                    }
+
+                    return onMatch(configNode);
+
+                }
+            }
+        }
+
+        return false;
+    };
+
+    /**
+     * Converts an AST node into a JS source string. Does not maintain formatting
+     * or even comments from original source, just returns valid JS source.
+     * @param {Array} node
+     * @returns {String} a JS source string.
+     */
+    parse.nodeToString = function (node) {
+        return processor.gen_code(node, true);
+    };
+
+    return parse;
+});
+/**
+ * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+
+/*jslint regexp: false, strict: false, plusplus: false  */
+/*global define: false */
+
+define('pragma', ['parse', 'logger'], function (parse, logger) {
+
+    function Temp() {}
+
+    function create(obj, mixin) {
+        Temp.prototype = obj;
+        var temp = new Temp(), prop;
+
+        //Avoid any extra memory hanging around
+        Temp.prototype = null;
+
+        if (mixin) {
+            for (prop in mixin) {
+                if (mixin.hasOwnProperty(prop) && !(prop in temp)) {
+                    temp[prop] = mixin[prop];
+                }
+            }
+        }
+
+        return temp; // Object
+    }
+
+    var pragma = {
+        conditionalRegExp: /(exclude|include)Start\s*\(\s*["'](\w+)["']\s*,(.*)\)/,
+        useStrictRegExp: /['"]use strict['"];/g,
+        hasRegExp: /has\s*\(\s*['"]([^'"]+)['"]\s*\)/g,
+        nsRegExp: /(^|[^\.])(requirejs|require|define)\s*\(/,
+        nsWrapRegExp: /\/\*requirejs namespace: true \*\//,
+        apiDefRegExp: /var requirejs, require, define;/,
+        defineCheckRegExp: /typeof\s+define\s*===\s*["']function["']\s*&&\s*define\s*\.\s*amd/g,
+        defineJQueryRegExp: /typeof\s+define\s*===\s*["']function["']\s*&&\s*define\s*\.\s*amd\s*&&\s*define\s*\.\s*amd\s*\.\s*jQuery/g,
+        defineHasRegExp: /typeof\s+define\s*==(=)?\s*['"]function['"]\s*&&\s*typeof\s+define\.amd\s*==(=)?\s*['"]object['"]\s*&&\s*define\.amd/g,
+        defineTernaryRegExp: /typeof\s+define\s*===\s*['"]function["']\s*&&\s*define\s*\.\s*amd\s*\?\s*define/,
+        amdefineRegExp: /if\s*\(\s*typeof define\s*\!==\s*'function'\s*\)\s*\{\s*[^\{\}]+amdefine[^\{\}]+\}/g,
+
+        removeStrict: function (contents, config) {
+            return config.useStrict ? contents : contents.replace(pragma.useStrictRegExp, '');
+        },
+
+        namespace: function (fileContents, ns, onLifecycleName) {
+            if (ns) {
+                //Namespace require/define calls
+                fileContents = fileContents.replace(pragma.nsRegExp, '$1' + ns + '.$2(');
+
+                //Namespace define ternary use:
+                fileContents = fileContents.replace(pragma.defineTernaryRegExp,
+                                                    "typeof " + ns + ".define === 'function' && " + ns + ".define.amd ? " + ns + ".define");
+
+                //Namespace define jquery use:
+                fileContents = fileContents.replace(pragma.defineJQueryRegExp,
+                                                    "typeof " + ns + ".define === 'function' && " + ns + ".define.amd && " + ns + ".define.amd.jQuery");
+
+                //Namespace has.js define use:
+                fileContents = fileContents.replace(pragma.defineHasRegExp,
+                                                    "typeof " + ns + ".define === 'function' && typeof " + ns + ".define.amd === 'object' && " + ns + ".define.amd");
+
+                //Namespace define checks.
+                //Do this one last, since it is a subset of the more specific
+                //checks above.
+                fileContents = fileContents.replace(pragma.defineCheckRegExp,
+                                                    "typeof " + ns + ".define === 'function' && " + ns + ".define.amd");
+
+                //Check for require.js with the require/define definitions
+                if (pragma.apiDefRegExp.test(fileContents) &&
+                    fileContents.indexOf("if (typeof " + ns + " === 'undefined')") === -1) {
+                    //Wrap the file contents in a typeof check, and a function
+                    //to contain the API globals.
+                    fileContents = "var " + ns + ";(function () { if (typeof " +
+                                    ns + " === 'undefined') {\n" +
+                                    ns + ' = {};\n' +
+                                    fileContents +
+                                    "\n" +
+                                    ns + ".requirejs = requirejs;" +
+                                    ns + ".require = require;" +
+                                    ns + ".define = define;\n" +
+                                    "}\n}());";
+                }
+
+                //Finally, if the file wants a special wrapper because it ties
+                //in to the requirejs internals in a way that would not fit
+                //the above matches, do that. Look for /*requirejs namespace: true*/
+                if (pragma.nsWrapRegExp.test(fileContents)) {
+                    //Remove the pragma.
+                    fileContents = fileContents.replace(pragma.nsWrapRegExp, '');
+
+                    //Alter the contents.
+                    fileContents = '(function () {\n' +
+                                   'var require = ' + ns + '.require,' +
+                                   'requirejs = ' + ns + '.requirejs,' +
+                                   'define = ' + ns + '.define;\n' +
+                                   fileContents +
+                                   '\n}());'
+                }
+            }
+
+            return fileContents;
+        },
+
+        /**
+         * processes the fileContents for some //>> conditional statements
+         */
+        process: function (fileName, fileContents, config, onLifecycleName, pluginCollector) {
+            /*jslint evil: true */
+            var foundIndex = -1, startIndex = 0, lineEndIndex, conditionLine,
+                matches, type, marker, condition, isTrue, endRegExp, endMatches,
+                endMarkerIndex, shouldInclude, startLength, lifecycleHas, deps,
+                i, dep, moduleName,
+                lifecyclePragmas, pragmas = config.pragmas, hasConfig = config.has,
+                //Legacy arg defined to help in dojo conversion script. Remove later
+                //when dojo no longer needs conversion:
+                kwArgs = pragmas;
+
+            //Mix in a specific lifecycle scoped object, to allow targeting
+            //some pragmas/has tests to only when files are saved, or at different
+            //lifecycle events. Do not bother with kwArgs in this section, since
+            //the old dojo kwArgs were for all points in the build lifecycle.
+            if (onLifecycleName) {
+                lifecyclePragmas = config['pragmas' + onLifecycleName];
+                lifecycleHas = config['has' + onLifecycleName];
+
+                if (lifecyclePragmas) {
+                    pragmas = create(pragmas || {}, lifecyclePragmas);
+                }
+
+                if (lifecycleHas) {
+                    hasConfig = create(hasConfig || {}, lifecycleHas);
+                }
+            }
+
+            //Replace has references if desired
+            if (hasConfig) {
+                fileContents = fileContents.replace(pragma.hasRegExp, function (match, test) {
+                    if (test in hasConfig) {
+                        return !!hasConfig[test];
+                    }
+                    return match;
+                });
+            }
+
+            if (!config.skipPragmas) {
+
+                while ((foundIndex = fileContents.indexOf("//>>", startIndex)) !== -1) {
+                    //Found a conditional. Get the conditional line.
+                    lineEndIndex = fileContents.indexOf("\n", foundIndex);
+                    if (lineEndIndex === -1) {
+                        lineEndIndex = fileContents.length - 1;
+                    }
+
+                    //Increment startIndex past the line so the next conditional search can be done.
+                    startIndex = lineEndIndex + 1;
+
+                    //Break apart the conditional.
+                    conditionLine = fileContents.substring(foundIndex, lineEndIndex + 1);
+                    matches = conditionLine.match(pragma.conditionalRegExp);
+                    if (matches) {
+                        type = matches[1];
+                        marker = matches[2];
+                        condition = matches[3];
+                        isTrue = false;
+                        //See if the condition is true.
+                        try {
+                            isTrue = !!eval("(" + condition + ")");
+                        } catch (e) {
+                            throw "Error in file: " +
+                                   fileName +
+                                   ". Conditional comment: " +
+                                   conditionLine +
+                                   " failed with this error: " + e;
+                        }
+
+                        //Find the endpoint marker.
+                        endRegExp = new RegExp('\\/\\/\\>\\>\\s*' + type + 'End\\(\\s*[\'"]' + marker + '[\'"]\\s*\\)', "g");
+                        endMatches = endRegExp.exec(fileContents.substring(startIndex, fileContents.length));
+                        if (endMatches) {
+                            endMarkerIndex = startIndex + endRegExp.lastIndex - endMatches[0].length;
+
+                            //Find the next line return based on the match position.
+                            lineEndIndex = fileContents.indexOf("\n", endMarkerIndex);
+                            if (lineEndIndex === -1) {
+                                lineEndIndex = fileContents.length - 1;
+                            }
+
+                            //Should we include the segment?
+                            shouldInclude = ((type === "exclude" && !isTrue) || (type === "include" && isTrue));
+
+                            //Remove the conditional comments, and optionally remove the content inside
+                            //the conditional comments.
+                            startLength = startIndex - foundIndex;
+                            fileContents = fileContents.substring(0, foundIndex) +
+                                (shouldInclude ? fileContents.substring(startIndex, endMarkerIndex) : "") +
+                                fileContents.substring(lineEndIndex + 1, fileContents.length);
+
+                            //Move startIndex to foundIndex, since that is the new position in the file
+                            //where we need to look for more conditionals in the next while loop pass.
+                            startIndex = foundIndex;
+                        } else {
+                            throw "Error in file: " +
+                                  fileName +
+                                  ". Cannot find end marker for conditional comment: " +
+                                  conditionLine;
+
+                        }
+                    }
+                }
+            }
+
+            //If need to find all plugin resources to optimize, do that now,
+            //before namespacing, since the namespacing will change the API
+            //names.
+            //If there is a plugin collector, scan the file for plugin resources.
+            if (config.optimizeAllPluginResources && pluginCollector) {
+                try {
+                    deps = parse.findDependencies(fileName, fileContents);
+                    if (deps.length) {
+                        for (i = 0; (dep = deps[i]); i++) {
+                            if (dep.indexOf('!') !== -1) {
+                                (pluginCollector[moduleName] ||
+                                 (pluginCollector[moduleName] = [])).push(dep);
+                            }
+                        }
+                    }
+                } catch (eDep) {
+                    logger.error('Parse error looking for plugin resources in ' +
+                                 fileName + ', skipping.');
+                }
+            }
+
+            //Strip amdefine use for node-shared modules.
+            fileContents = fileContents.replace(pragma.amdefineRegExp, '');
+
+            //Do namespacing
+            if (onLifecycleName === 'OnSave' && config.namespace) {
+                fileContents = pragma.namespace(fileContents, config.namespace, onLifecycleName);
+            }
+
+
+            return pragma.removeStrict(fileContents, config);
+        }
+    };
+
+    return pragma;
+});
+if(env === 'node') {
+/**
+ * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+
+/*jslint strict: false */
+/*global define: false */
+
+define('node/optimize', {});
+
+}
+
+if(env === 'rhino') {
+/**
+ * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+
+/*jslint strict: false, plusplus: false */
+/*global define: false, java: false, Packages: false */
+
+define('rhino/optimize', ['logger'], function (logger) {
+
+    //Add .reduce to Rhino so UglifyJS can run in Rhino,
+    //inspired by https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/reduce
+    //but rewritten for brevity, and to be good enough for use by UglifyJS.
+    if (!Array.prototype.reduce) {
+        Array.prototype.reduce = function (fn /*, initialValue */) {
+            var i = 0,
+                length = this.length,
+                accumulator;
+
+            if (arguments.length >= 2) {
+                accumulator = arguments[1];
+            } else {
+                do {
+                    if (i in this) {
+                        accumulator = this[i++];
+                        break;
+                    }
+                }
+                while (true);
+            }
+
+            for (; i < length; i++) {
+                if (i in this) {
+                    accumulator = fn.call(undefined, accumulator, this[i], i, this);
+                }
+            }
+
+            return accumulator;
+        };
+    }
+
+    var JSSourceFilefromCode, optimize;
+
+    //Bind to Closure compiler, but if it is not available, do not sweat it.
+    try {
+        JSSourceFilefromCode = java.lang.Class.forName('com.google.javascript.jscomp.JSSourceFile').getMethod('fromCode', [java.lang.String, java.lang.String]);
+    } catch (e) {}
+
+    //Helper for closure compiler, because of weird Java-JavaScript interactions.
+    function closurefromCode(filename, content) {
+        return JSSourceFilefromCode.invoke(null, [filename, content]);
+    }
+
+    optimize = {
+        closure: function (fileName, fileContents, keepLines, config) {
+            config = config || {};
+            var jscomp = Packages.com.google.javascript.jscomp,
+                flags = Packages.com.google.common.flags,
+                //Fake extern
+                externSourceFile = closurefromCode("fakeextern.js", " "),
+                //Set up source input
+                jsSourceFile = closurefromCode(String(fileName), String(fileContents)),
+                options, option, FLAG_compilation_level, compiler,
+                Compiler = Packages.com.google.javascript.jscomp.Compiler,
+                result;
+
+            logger.trace("Minifying file: " + fileName);
+
+            //Set up options
+            options = new jscomp.CompilerOptions();
+            for (option in config.CompilerOptions) {
+                // options are false by default and jslint wanted an if statement in this for loop
+                if (config.CompilerOptions[option]) {
+                    options[option] = config.CompilerOptions[option];
+                }
+
+            }
+            options.prettyPrint = keepLines || options.prettyPrint;
+
+            FLAG_compilation_level = jscomp.CompilationLevel[config.CompilationLevel || 'SIMPLE_OPTIMIZATIONS'];
+            FLAG_compilation_level.setOptionsForCompilationLevel(options);
+
+            //Trigger the compiler
+            Compiler.setLoggingLevel(Packages.java.util.logging.Level[config.loggingLevel || 'WARNING']);
+            compiler = new Compiler();
+
+            result = compiler.compile(externSourceFile, jsSourceFile, options);
+            if (!result.success) {
+                logger.error('Cannot closure compile file: ' + fileName + '. Skipping it.');
+            } else {
+                fileContents = compiler.toSource();
+            }
+
+            return fileContents;
+        }
+    };
+
+    return optimize;
+});
+}
+/**
+ * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+
+/*jslint plusplus: false, nomen: false, regexp: false */
+/*global define: false */
+
+define('optimize', [ 'lang', 'logger', 'env!env/optimize', 'env!env/file', 'parse',
+         'pragma', 'uglifyjs/index'],
+function (lang,   logger,   envOptimize,        file,           parse,
+          pragma, uglify) {
+
+    var optimize,
+        cssImportRegExp = /\@import\s+(url\()?\s*([^);]+)\s*(\))?([\w, ]*)(;)?/g,
+        cssUrlRegExp = /\url\(\s*([^\)]+)\s*\)?/g;
+
+    /**
+     * If an URL from a CSS url value contains start/end quotes, remove them.
+     * This is not done in the regexp, since my regexp fu is not that strong,
+     * and the CSS spec allows for ' and " in the URL if they are backslash escaped.
+     * @param {String} url
+     */
+    function cleanCssUrlQuotes(url) {
+        //Make sure we are not ending in whitespace.
+        //Not very confident of the css regexps above that there will not be ending
+        //whitespace.
+        url = url.replace(/\s+$/, "");
+
+        if (url.charAt(0) === "'" || url.charAt(0) === "\"") {
+            url = url.substring(1, url.length - 1);
+        }
+
+        return url;
+    }
+
+    /**
+     * Inlines nested stylesheets that have @import calls in them.
+     * @param {String} fileName the file name
+     * @param {String} fileContents the file contents
+     * @param {String} cssImportIgnore comma delimited string of files to ignore
+     * @param {Object} included an object used to track the files already imported
+     */
+    function flattenCss(fileName, fileContents, cssImportIgnore, included) {
+        //Find the last slash in the name.
+        fileName = fileName.replace(lang.backSlashRegExp, "/");
+        var endIndex = fileName.lastIndexOf("/"),
+            //Make a file path based on the last slash.
+            //If no slash, so must be just a file name. Use empty string then.
+            filePath = (endIndex !== -1) ? fileName.substring(0, endIndex + 1) : "",
+            //store a list of merged files
+            importList = [];
+
+        //Make sure we have a delimited ignore list to make matching faster
+        if (cssImportIgnore && cssImportIgnore.charAt(cssImportIgnore.length - 1) !== ",") {
+            cssImportIgnore += ",";
+        }
+
+        fileContents = fileContents.replace(cssImportRegExp, function (fullMatch, urlStart, importFileName, urlEnd, mediaTypes) {
+            //Only process media type "all" or empty media type rules.
+            if (mediaTypes && ((mediaTypes.replace(/^\s\s*/, '').replace(/\s\s*$/, '')) !== "all")) {
+                return fullMatch;
+            }
+
+            importFileName = cleanCssUrlQuotes(importFileName);
+
+            //Ignore the file import if it is part of an ignore list.
+            if (cssImportIgnore && cssImportIgnore.indexOf(importFileName + ",") !== -1) {
+                return fullMatch;
+            }
+
+            //Make sure we have a unix path for the rest of the operation.
+            importFileName = importFileName.replace(lang.backSlashRegExp, "/");
+
+            try {
+                //if a relative path, then tack on the filePath.
+                //If it is not a relative path, then the readFile below will fail,
+                //and we will just skip that import.
+                var fullImportFileName = importFileName.charAt(0) === "/" ? importFileName : filePath + importFileName,
+                    importContents = file.readFile(fullImportFileName), i,
+                    importEndIndex, importPath, fixedUrlMatch, colonIndex, parts, flat;
+
+                //Skip the file if it has already been included.
+                if (included[fullImportFileName]) {
+                    return '';
+                }
+                included[fullImportFileName] = true;
+
+                //Make sure to flatten any nested imports.
+                flat = flattenCss(fullImportFileName, importContents, cssImportIgnore, included);
+                importContents = flat.fileContents;
+
+                if (flat.importList.length) {
+                    importList.push.apply(importList, flat.importList);
+                }
+
+                //Make the full import path
+                importEndIndex = importFileName.lastIndexOf("/");
+
+                //Make a file path based on the last slash.
+                //If no slash, so must be just a file name. Use empty string then.
+                importPath = (importEndIndex !== -1) ? importFileName.substring(0, importEndIndex + 1) : "";
+
+                //fix url() on relative import (#5)
+                importPath = importPath.replace(/^\.\//, '');
+
+                //Modify URL paths to match the path represented by this file.
+                importContents = importContents.replace(cssUrlRegExp, function (fullMatch, urlMatch) {
+                    fixedUrlMatch = cleanCssUrlQuotes(urlMatch);
+                    fixedUrlMatch = fixedUrlMatch.replace(lang.backSlashRegExp, "/");
+
+                    //Only do the work for relative URLs. Skip things that start with / or have
+                    //a protocol.
+                    colonIndex = fixedUrlMatch.indexOf(":");
+                    if (fixedUrlMatch.charAt(0) !== "/" && (colonIndex === -1 || colonIndex > fixedUrlMatch.indexOf("/"))) {
+                        //It is a relative URL, tack on the path prefix
+                        urlMatch = importPath + fixedUrlMatch;
+                    } else {
+                        logger.trace(importFileName + "\n  URL not a relative URL, skipping: " + urlMatch);
+                    }
+
+                    //Collapse .. and .
+                    parts = urlMatch.split("/");
+                    for (i = parts.length - 1; i > 0; i--) {
+                        if (parts[i] === ".") {
+                            parts.splice(i, 1);
+                        } else if (parts[i] === "..") {
+                            if (i !== 0 && parts[i - 1] !== "..") {
+                                parts.splice(i - 1, 2);
+                                i -= 1;
+                            }
+                        }
+                    }
+
+                    return "url(" + parts.join("/") + ")";
+                });
+
+                importList.push(fullImportFileName);
+                return importContents;
+            } catch (e) {
+                logger.warn(fileName + "\n  Cannot inline css import, skipping: " + importFileName);
+                return fullMatch;
+            }
+        });
+
+        return {
+            importList : importList,
+            fileContents : fileContents
+        };
+    }
+
+    optimize = {
+        licenseCommentRegExp: /\/\*[\s\S]*?\*\//g,
+
+        /**
+         * Optimizes a file that contains JavaScript content. Optionally collects
+         * plugin resources mentioned in a file, and then passes the content
+         * through an minifier if one is specified via config.optimize.
+         *
+         * @param {String} fileName the name of the file to optimize
+         * @param {String} outFileName the name of the file to use for the
+         * saved optimized content.
+         * @param {Object} config the build config object.
+         * @param {String} [moduleName] the module name to use for the file.
+         * Used for plugin resource collection.
+         * @param {Array} [pluginCollector] storage for any plugin resources
+         * found.
+         */
+        jsFile: function (fileName, outFileName, config, moduleName, pluginCollector) {
+            var parts = (config.optimize + "").split('.'),
+                optimizerName = parts[0],
+                keepLines = parts[1] === 'keepLines',
+                fileContents;
+
+            fileContents = file.readFile(fileName);
+
+            fileContents = optimize.js(fileName, fileContents, optimizerName,
+                                       keepLines, config, pluginCollector);
+
+            file.saveUtf8File(outFileName, fileContents);
+        },
+
+        /**
+         * Optimizes a file that contains JavaScript content. Optionally collects
+         * plugin resources mentioned in a file, and then passes the content
+         * through an minifier if one is specified via config.optimize.
+         *
+         * @param {String} fileName the name of the file that matches the
+         * fileContents.
+         * @param {String} fileContents the string of JS to optimize.
+         * @param {String} [optimizerName] optional name of the optimizer to
+         * use. 'uglify' is default.
+         * @param {Boolean} [keepLines] whether to keep line returns in the optimization.
+         * @param {Object} [config] the build config object.
+         * @param {Array} [pluginCollector] storage for any plugin resources
+         * found.
+         */
+        js: function (fileName, fileContents, optimizerName, keepLines, config, pluginCollector) {
+            var licenseContents = '',
+                optFunc, match, comment;
+
+            config = config || {};
+
+            //Apply pragmas/namespace renaming
+            fileContents = pragma.process(fileName, fileContents, config, 'OnSave', pluginCollector);
+
+            //Optimize the JS files if asked.
+            if (optimizerName && optimizerName !== 'none') {
+                optFunc = envOptimize[optimizerName] || optimize.optimizers[optimizerName];
+                if (!optFunc) {
+                    throw new Error('optimizer with name of "' +
+                                    optimizerName +
+                                    '" not found for this environment');
+                }
+
+                if (config.preserveLicenseComments) {
+                    //Pull out any license comments for prepending after optimization.
+                    optimize.licenseCommentRegExp.lastIndex = 0;
+                    while ((match = optimize.licenseCommentRegExp.exec(fileContents))) {
+                        comment = match[0];
+                        //Only keep the comments if they are license comments.
+                        if (comment.indexOf('@license') !== -1 ||
+                            comment.indexOf('/*!') === 0) {
+                            licenseContents += comment + '\n';
+                        }
+                    }
+                }
+
+                fileContents = licenseContents + optFunc(fileName, fileContents, keepLines,
+                                        config[optimizerName]);
+            }
+
+            return fileContents;
+        },
+
+        /**
+         * Optimizes one CSS file, inlining @import calls, stripping comments, and
+         * optionally removes line returns.
+         * @param {String} fileName the path to the CSS file to optimize
+         * @param {String} outFileName the path to save the optimized file.
+         * @param {Object} config the config object with the optimizeCss and
+         * cssImportIgnore options.
+         */
+        cssFile: function (fileName, outFileName, config) {
+
+            //Read in the file. Make sure we have a JS string.
+            var originalFileContents = file.readFile(fileName),
+                flat = flattenCss(fileName, originalFileContents, config.cssImportIgnore, {}),
+                fileContents = flat.fileContents,
+                startIndex, endIndex, buildText;
+
+            //Do comment removal.
+            try {
+                if (config.optimizeCss.indexOf(".keepComments") === -1) {
+                    startIndex = -1;
+                    //Get rid of comments.
+                    while ((startIndex = fileContents.indexOf("/*")) !== -1) {
+                        endIndex = fileContents.indexOf("*/", startIndex + 2);
+                        if (endIndex === -1) {
+                            throw "Improper comment in CSS file: " + fileName;
+                        }
+                        fileContents = fileContents.substring(0, startIndex) + fileContents.substring(endIndex + 2, fileContents.length);
+                    }
+                }
+                //Get rid of newlines.
+                if (config.optimizeCss.indexOf(".keepLines") === -1) {
+                    fileContents = fileContents.replace(/[\r\n]/g, "");
+                    fileContents = fileContents.replace(/\s+/g, " ");
+                    fileContents = fileContents.replace(/\{\s/g, "{");
+                    fileContents = fileContents.replace(/\s\}/g, "}");
+                } else {
+                    //Remove multiple empty lines.
+                    fileContents = fileContents.replace(/(\r\n)+/g, "\r\n");
+                    fileContents = fileContents.replace(/(\n)+/g, "\n");
+                }
+            } catch (e) {
+                fileContents = originalFileContents;
+                logger.error("Could not optimized CSS file: " + fileName + ", error: " + e);
+            }
+
+            file.saveUtf8File(outFileName, fileContents);
+
+            //text output to stdout and/or written to build.txt file
+            buildText = "\n"+ outFileName.replace(config.dir, "") +"\n----------------\n";
+            flat.importList.push(fileName);
+            buildText += flat.importList.map(function(path){
+                return path.replace(config.dir, "");
+            }).join("\n");
+            return buildText +"\n";
+        },
+
+        /**
+         * Optimizes CSS files, inlining @import calls, stripping comments, and
+         * optionally removes line returns.
+         * @param {String} startDir the path to the top level directory
+         * @param {Object} config the config object with the optimizeCss and
+         * cssImportIgnore options.
+         */
+        css: function (startDir, config) {
+            var buildText = "",
+                i, fileName, fileList;
+            if (config.optimizeCss.indexOf("standard") !== -1) {
+                fileList = file.getFilteredFileList(startDir, /\.css$/, true);
+                if (fileList) {
+                    for (i = 0; i < fileList.length; i++) {
+                        fileName = fileList[i];
+                        logger.trace("Optimizing (" + config.optimizeCss + ") CSS file: " + fileName);
+                        buildText += optimize.cssFile(fileName, fileName, config);
+                    }
+                }
+            }
+            return buildText;
+        },
+
+        optimizers: {
+            uglify: function (fileName, fileContents, keepLines, config) {
+                var parser = uglify.parser,
+                    processor = uglify.uglify,
+                    ast;
+
+                config = config || {};
+
+                logger.trace("Uglifying file: " + fileName);
+
+                try {
+                    ast = parser.parse(fileContents, config.strict_semicolons);
+                    ast = processor.ast_mangle(ast, config);
+                    ast = processor.ast_squeeze(ast, config);
+
+                    fileContents = processor.gen_code(ast, config);
+                } catch (e) {
+                    logger.error('Cannot uglify file: ' + fileName + '. Skipping it. Error is:\n' + e.toString());
+                }
+                return fileContents;
+            }
+        }
+    };
+
+    return optimize;
+});
+/**
+ * @license RequireJS Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+/*
+ * This file patches require.js to communicate with the build system.
+ */
+
+/*jslint nomen: false, plusplus: false, regexp: false, strict: false */
+/*global require: false, define: true */
+
+//NOT asking for require as a dependency since the goal is to modify the
+//global require below
+define('requirePatch', [ 'env!env/file', 'pragma', 'parse'],
+function (file,           pragma,   parse) {
+
+    var allowRun = true;
+
+    //This method should be called when the patches to require should take hold.
+    return function () {
+        if (!allowRun) {
+            return;
+        }
+        allowRun = false;
+
+        var layer,
+            pluginBuilderRegExp = /(["']?)pluginBuilder(["']?)\s*[=\:]\s*["']([^'"\s]+)["']/,
+            oldDef;
+
+
+        /** Print out some extrs info about the module tree that caused the error. **/
+        require.onError = function (err) {
+
+            var msg = '\nIn module tree:\n',
+                standardIndent = '  ',
+                tree = err.moduleTree,
+                i, j, mod;
+
+            if (tree && tree.length > 0) {
+                for (i = tree.length - 1; i > -1 && (mod = tree[i]); i--) {
+                    for (j = tree.length - i; j > -1; j--) {
+                        msg += standardIndent;
+                    }
+                    msg += mod + '\n';
+                }
+
+                err = new Error(err.toString() + msg);
+            }
+
+            throw err;
+        };
+
+        //Stored cached file contents for reuse in other layers.
+        require._cachedFileContents = {};
+
+        /** Reset state for each build layer pass. */
+        require._buildReset = function () {
+            var oldContext = require.s.contexts._;
+
+            //Clear up the existing context.
+            delete require.s.contexts._;
+
+            //Set up new context, so the layer object can hold onto it.
+            require({});
+
+            layer = require._layer = {
+                buildPathMap: {},
+                buildFileToModule: {},
+                buildFilePaths: [],
+                pathAdded: {},
+                modulesWithNames: {},
+                needsDefine: {},
+                existingRequireUrl: "",
+                context: require.s.contexts._
+            };
+
+            //Return the previous context in case it is needed, like for
+            //the basic config object.
+            return oldContext;
+        };
+
+        require._buildReset();
+
+        /**
+         * Makes sure the URL is something that can be supported by the
+         * optimization tool.
+         * @param {String} url
+         * @returns {Boolean}
+         */
+        require._isSupportedBuildUrl = function (url) {
+            //Ignore URLs with protocols, hosts or question marks, means either network
+            //access is needed to fetch it or it is too dynamic. Note that
+            //on Windows, full paths are used for some urls, which include
+            //the drive, like c:/something, so need to test for something other
+            //than just a colon.
+            return url.indexOf("://") === -1 && url.indexOf("?") === -1 &&
+                   url.indexOf('empty:') !== 0 && url.indexOf('//') !== 0;
+        };
+
+        //Override define() to catch modules that just define an object, so that
+        //a dummy define call is not put in the build file for them. They do
+        //not end up getting defined via require.execCb, so we need to catch them
+        //at the define call.
+        oldDef = define;
+
+        //This function signature does not have to be exact, just match what we
+        //are looking for.
+        define = function (name, obj) {
+            if (typeof name === "string" && !layer.needsDefine[name]) {
+                layer.modulesWithNames[name] = true;
+            }
+            return oldDef.apply(require, arguments);
+        };
+
+        define.amd = oldDef.amd;
+
+        //Add some utilities for plugins
+        require._readFile = file.readFile;
+        require._fileExists = function (path) {
+            return file.exists(path);
+        };
+
+        function normalizeUrlWithBase(context, moduleName, url) {
+            //Adjust the URL if it was not transformed to use baseUrl.
+            if (require.jsExtRegExp.test(moduleName)) {
+                url = (context.config.dir || context.config.dirBaseUrl) + url;
+            }
+            return url;
+        }
+
+        //Override load so that the file paths can be collected.
+        require.load = function (context, moduleName, url) {
+            /*jslint evil: true */
+            var contents, pluginBuilderMatch, builderName;
+
+            context.scriptCount += 1;
+
+            //Only handle urls that can be inlined, so that means avoiding some
+            //URLs like ones that require network access or may be too dynamic,
+            //like JSONP
+            if (require._isSupportedBuildUrl(url)) {
+                //Adjust the URL if it was not transformed to use baseUrl.
+                url = normalizeUrlWithBase(context, moduleName, url);
+                
+                //Save the module name to path  and path to module name mappings.
+                layer.buildPathMap[moduleName] = url;
+                layer.buildFileToModule[url] = moduleName;
+
+                if (moduleName in context.plugins) {
+                    //plugins need to have their source evaled as-is.
+                    context.needFullExec[moduleName] = true;
+                }
+
+                try {
+                    if (url in require._cachedFileContents &&
+                        (!context.needFullExec[moduleName] || context.fullExec[moduleName])) {
+                        contents = require._cachedFileContents[url];
+                    } else {
+                        //Load the file contents, process for conditionals, then
+                        //evaluate it.
+                        contents = file.readFile(url);
+
+                        //If there is a read filter, run it now.
+                        if (context.config.onBuildRead) {
+                            contents = context.config.onBuildRead(moduleName, url, contents);
+                        }
+
+                        contents = pragma.process(url, contents, context.config, 'OnExecute');
+
+                        //Find out if the file contains a require() definition. Need to know
+                        //this so we can inject plugins right after it, but before they are needed,
+                        //and to make sure this file is first, so that define calls work.
+                        //This situation mainly occurs when the build is done on top of the output
+                        //of another build, where the first build may include require somewhere in it.
+                        try {
+                            if (!layer.existingRequireUrl && parse.definesRequire(url, contents)) {
+                                layer.existingRequireUrl = url;
+                            }
+                        } catch (e1) {
+                            throw new Error('Parse error using UglifyJS ' +
+                                            'for file: ' + url + '\n' + e1);
+                        }
+
+                        if (moduleName in context.plugins) {
+                            //This is a loader plugin, check to see if it has a build extension,
+                            //otherwise the plugin will act as the plugin builder too.
+                            pluginBuilderMatch = pluginBuilderRegExp.exec(contents);
+                            if (pluginBuilderMatch) {
+                                //Load the plugin builder for the plugin contents.
+                                builderName = context.normalize(pluginBuilderMatch[3], moduleName);
+                                contents = file.readFile(context.nameToUrl(builderName));
+                            }
+                        }
+
+                        //Parse out the require and define calls.
+                        //Do this even for plugins in case they have their own
+                        //dependencies that may be separate to how the pluginBuilder works.
+                        try {
+                            if (!context.needFullExec[moduleName]) {
+                                contents = parse(moduleName, url, contents, {
+                                    insertNeedsDefine: true,
+                                    has: context.config.has,
+                                    findNestedDependencies: context.config.findNestedDependencies
+                                });
+                            }
+                        } catch (e2) {
+                            throw new Error('Parse error using UglifyJS ' +
+                                            'for file: ' + url + '\n' + e2);
+                        }
+
+                        require._cachedFileContents[url] = contents;
+                    }
+
+                    if (contents) {
+                        eval(contents);
+                    }
+
+                    //Need to close out completion of this module
+                    //so that listeners will get notified that it is available.
+                    try {
+                        context.completeLoad(moduleName);
+                    } catch (e) {
+                        //Track which module could not complete loading.
+                        (e.moduleTree || (e.moduleTree = [])).push(moduleName);
+                        throw e;
+                    }
+
+                } catch (eOuter) {
+                    if (!eOuter.fileName) {
+                        eOuter.fileName = url;
+                    }
+                    throw eOuter;
+                }
+            } else {
+                //With unsupported URLs still need to call completeLoad to
+                //finish loading.
+                context.completeLoad(moduleName);
+            }
+
+            //Mark the module loaded.
+            context.loaded[moduleName] = true;
+        };
+
+
+        //Called when execManager runs for a dependency. Used to figure out
+        //what order of execution.
+        require.onResourceLoad = function (context, map) {
+            var fullName = map.fullName,
+                url;
+
+            //Ignore "fake" modules, usually generated by plugin code, since
+            //they do not map back to a real file to include in the optimizer,
+            //or it will be included, but in a different form.
+            if (context.fake[fullName]) {
+                return;
+            }
+
+            //A plugin.
+            if (map.prefix) {
+                if (!layer.pathAdded[fullName]) {
+                    layer.buildFilePaths.push(fullName);
+                    //For plugins the real path is not knowable, use the name
+                    //for both module to file and file to module mappings.
+                    layer.buildPathMap[fullName] = fullName;
+                    layer.buildFileToModule[fullName] = fullName;
+                    layer.modulesWithNames[fullName] = true;
+                    layer.pathAdded[fullName] = true;
+                }
+            } else if (map.url && require._isSupportedBuildUrl(map.url)) {
+                //If the url has not been added to the layer yet, and it
+                //is from an actual file that was loaded, add it now.
+                url = normalizeUrlWithBase(context, map.fullName, map.url);
+                if (!layer.pathAdded[url] && layer.buildPathMap[fullName]) {
+                    //Remember the list of dependencies for this layer.
+                    layer.buildFilePaths.push(url);
+                    layer.pathAdded[url] = true;
+                }
+            }
+        };
+
+        //Called by output of the parse() function, when a file does not
+        //explicitly call define, probably just require, but the parse()
+        //function normalizes on define() for dependency mapping and file
+        //ordering works correctly.
+        require.needsDefine = function (moduleName) {
+            layer.needsDefine[moduleName] = true;
+        };
+
+        //Marks module has having a name, and optionally executes the
+        //callback, but only if it meets certain criteria.
+        require.execCb = function (name, cb, args, exports) {
+            if (!layer.needsDefine[name]) {
+                layer.modulesWithNames[name] = true;
+            }
+            if (cb.__requireJsBuild || layer.context.needFullExec[name]) {
+                return cb.apply(exports, args);
+            }
+            return undefined;
+        };
+    };
+});
+/**
+ * @license RequireJS Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+
+/*jslint plusplus: false, regexp: false, strict: false */
+/*global define: false, console: false */
+
+define('commonJs', ['env!env/file', 'uglifyjs/index'], function (file, uglify) {
+    var commonJs = {
+        depRegExp: /require\s*\(\s*["']([\w-_\.\/]+)["']\s*\)/g,
+
+        //Set this to false in non-rhino environments. If rhino, then it uses
+        //rhino's decompiler to remove comments before looking for require() calls,
+        //otherwise, it will use a crude regexp approach to remove comments. The
+        //rhino way is more robust, but he regexp is more portable across environments.
+        useRhino: true,
+
+        //Set to false if you do not want this file to log. Useful in environments
+        //like node where you want the work to happen without noise.
+        useLog: true,
+
+        convertDir: function (commonJsPath, savePath) {
+            var fileList, i,
+                jsFileRegExp = /\.js$/,
+                fileName, convertedFileName, fileContents;
+
+            //Get list of files to convert.
+            fileList = file.getFilteredFileList(commonJsPath, /\w/, true);
+
+            //Normalize on front slashes and make sure the paths do not end in a slash.
+            commonJsPath = commonJsPath.replace(/\\/g, "/");
+            savePath = savePath.replace(/\\/g, "/");
+            if (commonJsPath.charAt(commonJsPath.length - 1) === "/") {
+                commonJsPath = commonJsPath.substring(0, commonJsPath.length - 1);
+            }
+            if (savePath.charAt(savePath.length - 1) === "/") {
+                savePath = savePath.substring(0, savePath.length - 1);
+            }
+
+            //Cycle through all the JS files and convert them.
+            if (!fileList || !fileList.length) {
+                if (commonJs.useLog) {
+                    if (commonJsPath === "convert") {
+                        //A request just to convert one file.
+                        console.log('\n\n' + commonJs.convert(savePath, file.readFile(savePath)));
+                    } else {
+                        console.log("No files to convert in directory: " + commonJsPath);
+                    }
+                }
+            } else {
+                for (i = 0; (fileName = fileList[i]); i++) {
+                    convertedFileName = fileName.replace(commonJsPath, savePath);
+
+                    //Handle JS files.
+                    if (jsFileRegExp.test(fileName)) {
+                        fileContents = file.readFile(fileName);
+                        fileContents = commonJs.convert(fileName, fileContents);
+                        file.saveUtf8File(convertedFileName, fileContents);
+                    } else {
+                        //Just copy the file over.
+                        file.copyFile(fileName, convertedFileName, true);
+                    }
+                }
+            }
+        },
+
+        /**
+         * Removes the comments from a string.
+         *
+         * @param {String} fileContents
+         * @param {String} fileName mostly used for informative reasons if an error.
+         *
+         * @returns {String} a string of JS with comments removed.
+         */
+        removeComments: function (fileContents, fileName) {
+            //Uglify's ast generation removes comments, so just convert to ast,
+            //then back to source code to get rid of comments.
+            return uglify.uglify.gen_code(uglify.parser.parse(fileContents), true);
+        },
+
+        /**
+         * Regexp for testing if there is already a require.def call in the file,
+         * in which case do not try to convert it.
+         */
+        defRegExp: /define\s*\(\s*("|'|\[|function)/,
+
+        /**
+         * Regexp for testing if there is a require([]) or require(function(){})
+         * call, indicating the file is already in requirejs syntax.
+         */
+        rjsRegExp: /require\s*\(\s*(\[|function)/,
+
+        /**
+         * Does the actual file conversion.
+         *
+         * @param {String} fileName the name of the file.
+         *
+         * @param {String} fileContents the contents of a file :)
+         *
+         * @param {Boolean} skipDeps if true, require("") dependencies
+         * will not be searched, but the contents will just be wrapped in the
+         * standard require, exports, module dependencies. Only usable in sync
+         * environments like Node where the require("") calls can be resolved on
+         * the fly.
+         *
+         * @returns {String} the converted contents
+         */
+        convert: function (fileName, fileContents, skipDeps) {
+            //Strip out comments.
+            try {
+                var deps = [], depName, match,
+                    //Remove comments
+                    tempContents = commonJs.removeComments(fileContents, fileName);
+
+                //First see if the module is not already RequireJS-formatted.
+                if (commonJs.defRegExp.test(tempContents) || commonJs.rjsRegExp.test(tempContents)) {
+                    return fileContents;
+                }
+
+                //Reset the regexp to start at beginning of file. Do this
+                //since the regexp is reused across files.
+                commonJs.depRegExp.lastIndex = 0;
+
+                if (!skipDeps) {
+                    //Find dependencies in the code that was not in comments.
+                    while ((match = commonJs.depRegExp.exec(tempContents))) {
+                        depName = match[1];
+                        if (depName) {
+                            deps.push('"' + depName + '"');
+                        }
+                    }
+                }
+
+                //Construct the wrapper boilerplate.
+                fileContents = 'define(["require", "exports", "module"' +
+                       (deps.length ? ', ' + deps.join(",") : '') + '], ' +
+                       'function(require, exports, module) {\n' +
+                       fileContents +
+                       '\n});\n';
+            } catch (e) {
+                console.log("COULD NOT CONVERT: " + fileName + ", so skipping it. Error was: " + e);
+                return fileContents;
+            }
+
+            return fileContents;
+        }
+    };
+
+    return commonJs;
+});
+/**
+ * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+
+/*jslint plusplus: true, nomen: true  */
+/*global define, require */
+
+
+define('build', [ 'lang', 'logger', 'env!env/file', 'parse', 'optimize', 'pragma',
+         'env!env/load', 'requirePatch'],
+function (lang,   logger,   file,          parse,    optimize,   pragma,
+          load,           requirePatch) {
+    'use strict';
+
+    var build, buildBaseConfig,
+        endsWithSemiColonRegExp = /;\s*$/;
+
+    buildBaseConfig = {
+            appDir: "",
+            pragmas: {},
+            paths: {},
+            optimize: "uglify",
+            optimizeCss: "standard.keepLines",
+            inlineText: true,
+            isBuild: true,
+            optimizeAllPluginResources: false,
+            findNestedDependencies: false,
+            preserveLicenseComments: true,
+            //By default, all files/directories are copied, unless
+            //they match this regexp, by default just excludes .folders
+            dirExclusionRegExp: file.dirExclusionRegExp
+        };
+
+    /**
+     * Some JS may not be valid if concatenated with other JS, in particular
+     * the style of omitting semicolons and rely on ASI. Add a semicolon in
+     * those cases.
+     */
+    function addSemiColon(text) {
+        if (endsWithSemiColonRegExp.test(text)) {
+            return text;
+        } else {
+            return text + ";";
+        }
+    }
+
+    /**
+     * If the path looks like an URL, throw an error. This is to prevent
+     * people from using URLs with protocols in the build config, since
+     * the optimizer is not set up to do network access. However, be
+     * sure to allow absolute paths on Windows, like C:\directory.
+     */
+    function disallowUrls(path) {
+        if ((path.indexOf('://') !== -1 || path.indexOf('//') === 0) && path !== 'empty:') {
+            throw new Error('Path is not supported: ' + path +
+                            '\nOptimizer can only handle' +
+                            ' local paths. Download the locally if necessary' +
+                            ' and update the config to use a local path.\n' +
+                            'http://requirejs.org/docs/errors.html#pathnotsupported');
+        }
+    }
+
+    function endsWithSlash(dirName) {
+        if (dirName.charAt(dirName.length - 1) !== "/") {
+            dirName += "/";
+        }
+        disallowUrls(dirName);
+        return dirName;
+    }
+
+    //Method used by plugin writeFile calls, defined up here to avoid
+    //jslint warning about "making a function in a loop".
+    function makeWriteFile(anonDefRegExp, namespaceWithDot, layer) {
+        function writeFile(name, contents) {
+            logger.trace('Saving plugin-optimized file: ' + name);
+            file.saveUtf8File(name, contents);
+        }
+
+        writeFile.asModule = function (moduleName, fileName, contents) {
+            writeFile(fileName,
+                build.toTransport(anonDefRegExp, namespaceWithDot, moduleName, fileName, contents, layer));
+        };
+
+        return writeFile;
+    }
+
+    /**
+     * Main API entry point into the build. The args argument can either be
+     * an array of arguments (like the onese passed on a command-line),
+     * or it can be a JavaScript object that has the format of a build profile
+     * file.
+     *
+     * If it is an object, then in addition to the normal properties allowed in
+     * a build profile file, the object should contain one other property:
+     *
+     * The object could also contain a "buildFile" property, which is a string
+     * that is the file path to a build profile that contains the rest
+     * of the build profile directives.
+     *
+     * This function does not return a status, it should throw an error if
+     * there is a problem completing the build.
+     */
+    build = function (args) {
+        var buildFile, cmdConfig;
+
+        if (!args || lang.isArray(args)) {
+            if (!args || args.length < 1) {
+                logger.error("build.js buildProfile.js\n" +
+                      "where buildProfile.js is the name of the build file (see example.build.js for hints on how to make a build file).");
+                return undefined;
+            }
+
+            //Next args can include a build file path as well as other build args.
+            //build file path comes first. If it does not contain an = then it is
+            //a build file path. Otherwise, just all build args.
+            if (args[0].indexOf("=") === -1) {
+                buildFile = args[0];
+                args.splice(0, 1);
+            }
+
+            //Remaining args are options to the build
+            cmdConfig = build.convertArrayToObject(args);
+            cmdConfig.buildFile = buildFile;
+        } else {
+            cmdConfig = args;
+        }
+
+        return build._run(cmdConfig);
+    };
+
+    build._run = function (cmdConfig) {
+        var buildFileContents = "",
+            pluginCollector = {},
+            buildPaths, fileName, fileNames,
+            prop, paths, i,
+            baseConfig, config,
+            modules, builtModule, srcPath, buildContext,
+            destPath, moduleName, moduleMap, parentModuleMap, context,
+            resources, resource, pluginProcessed = {}, plugin;
+
+        //Can now run the patches to require.js to allow it to be used for
+        //build generation. Do it here instead of at the top of the module
+        //because we want normal require behavior to load the build tool
+        //then want to switch to build mode.
+        requirePatch();
+
+        config = build.createConfig(cmdConfig);
+        paths = config.paths;
+
+        if (config.logLevel) {
+            logger.logLevel(config.logLevel);
+        }
+
+        if (!config.out && !config.cssIn) {
+            //This is not just a one-off file build but a full build profile, with
+            //lots of files to process.
+
+            //First copy all the baseUrl content
+            file.copyDir((config.appDir || config.baseUrl), config.dir, /\w/, true);
+
+            //Adjust baseUrl if config.appDir is in play, and set up build output paths.
+            buildPaths = {};
+            if (config.appDir) {
+                //All the paths should be inside the appDir, so just adjust
+                //the paths to use the dirBaseUrl
+                for (prop in paths) {
+                    if (paths.hasOwnProperty(prop)) {
+                        buildPaths[prop] = paths[prop].replace(config.baseUrl, config.dirBaseUrl);
+                    }
+                }
+            } else {
+                //If no appDir, then make sure to copy the other paths to this directory.
+                for (prop in paths) {
+                    if (paths.hasOwnProperty(prop)) {
+                        //Set up build path for each path prefix.
+                        buildPaths[prop] = paths[prop] === 'empty:' ? 'empty:' : prop.replace(/\./g, "/");
+
+                        //Make sure source path is fully formed with baseUrl,
+                        //if it is a relative URL.
+                        srcPath = paths[prop];
+                        if (srcPath.indexOf('/') !== 0 && srcPath.indexOf(':') === -1) {
+                            srcPath = config.baseUrl + srcPath;
+                        }
+
+                        destPath = config.dirBaseUrl + buildPaths[prop];
+
+                        //Skip empty: paths
+                        if (srcPath !== 'empty:') {
+                            //If the srcPath is a directory, copy the whole directory.
+                            if (file.exists(srcPath) && file.isDirectory(srcPath)) {
+                                //Copy files to build area. Copy all files (the /\w/ regexp)
+                                file.copyDir(srcPath, destPath, /\w/, true);
+                            } else {
+                                //Try a .js extension
+                                srcPath += '.js';
+                                destPath += '.js';
+                                file.copyFile(srcPath, destPath);
+                            }
+                        }
+                    }
+                }
+            }
+        }
+
+        //Figure out source file location for each module layer. Do this by seeding require
+        //with source area configuration. This is needed so that later the module layers
+        //can be manually copied over to the source area, since the build may be
+        //require multiple times and the above copyDir call only copies newer files.
+        require({
+            baseUrl: config.baseUrl,
+            paths: paths,
+            packagePaths: config.packagePaths,
+            packages: config.packages
+        });
+        buildContext = require.s.contexts._;
+        modules = config.modules;
+
+        if (modules) {
+            modules.forEach(function (module) {
+                if (module.name) {
+                    module._sourcePath = buildContext.nameToUrl(module.name);
+                    //If the module does not exist, and this is not a "new" module layer,
+                    //as indicated by a true "create" property on the module, and
+                    //it is not a plugin-loaded resource, then throw an error.
+                    if (!file.exists(module._sourcePath) && !module.create &&
+                        module.name.indexOf('!') === -1) {
+                        throw new Error("ERROR: module path does not exist: " +
+                                        module._sourcePath + " for module named: " + module.name +
+                                        ". Path is relative to: " + file.absPath('.'));
+                    }
+                }
+            });
+        }
+
+        if (config.out) {
+            //Just set up the _buildPath for the module layer.
+            require(config);
+            if (!config.cssIn) {
+                config.modules[0]._buildPath = config.out;
+            }
+        } else if (!config.cssIn) {
+            //Now set up the config for require to use the build area, and calculate the
+            //build file locations. Pass along any config info too.
+            baseConfig = {
+                baseUrl: config.dirBaseUrl,
+                paths: buildPaths
+            };
+
+            lang.mixin(baseConfig, config);
+            require(baseConfig);
+
+            if (modules) {
+                modules.forEach(function (module) {
+                    if (module.name) {
+                        module._buildPath = buildContext.nameToUrl(module.name, null);
+                        if (!module.create) {
+                            file.copyFile(module._sourcePath, module._buildPath);
+                        }
+                    }
+                });
+            }
+        }
+
+        //Run CSS optimizations before doing JS module tracing, to allow
+        //things like text loader plugins loading CSS to get the optimized
+        //CSS.
+        if (config.optimizeCss && config.optimizeCss !== "none" && config.dir) {
+            buildFileContents += optimize.css(config.dir, config);
+        }
+
+        if (modules) {
+            //For each module layer, call require to calculate dependencies.
+            modules.forEach(function (module) {
+                module.layer = build.traceDependencies(module, config);
+            });
+
+            //Now build up shadow layers for anything that should be excluded.
+            //Do this after tracing dependencies for each module, in case one
+            //of those modules end up being one of the excluded values.
+            modules.forEach(function (module) {
+                if (module.exclude) {
+                    module.excludeLayers = [];
+                    module.exclude.forEach(function (exclude, i) {
+                        //See if it is already in the list of modules.
+                        //If not trace dependencies for it.
+                        module.excludeLayers[i] = build.findBuildModule(exclude, modules) ||
+                                                 {layer: build.traceDependencies({name: exclude}, config)};
+                    });
+                }
+            });
+
+            modules.forEach(function (module) {
+                if (module.exclude) {
+                    //module.exclude is an array of module names. For each one,
+                    //get the nested dependencies for it via a matching entry
+                    //in the module.excludeLayers array.
+                    module.exclude.forEach(function (excludeModule, i) {
+                        var excludeLayer = module.excludeLayers[i].layer, map = excludeLayer.buildPathMap, prop;
+                        for (prop in map) {
+                            if (map.hasOwnProperty(prop)) {
+                                build.removeModulePath(prop, map[prop], module.layer);
+                            }
+                        }
+                    });
+                }
+                if (module.excludeShallow) {
+                    //module.excludeShallow is an array of module names.
+                    //shallow exclusions are just that module itself, and not
+                    //its nested dependencies.
+                    module.excludeShallow.forEach(function (excludeShallowModule) {
+                        var path = module.layer.buildPathMap[excludeShallowModule];
+                        if (path) {
+                            build.removeModulePath(excludeShallowModule, path, module.layer);
+                        }
+                    });
+                }
+
+                //Flatten them and collect the build output for each module.
+                builtModule = build.flattenModule(module, module.layer, config);
+
+                //Save it to a temp file for now, in case there are other layers that
+                //contain optimized content that should not be included in later
+                //layer optimizations. See issue #56.
+                file.saveUtf8File(module._buildPath + '-temp', builtModule.text);
+                buildFileContents += builtModule.buildText;
+            });
+
+            //Now move the build layers to their final position.
+            modules.forEach(function (module) {
+                var finalPath = module._buildPath;
+                if (file.exists(finalPath)) {
+                    file.deleteFile(finalPath);
+                }
+                file.renameFile(finalPath + '-temp', finalPath);
+            });
+        }
+
+        //Do other optimizations.
+        if (config.out && !config.cssIn) {
+            //Just need to worry about one JS file.
+            fileName = config.modules[0]._buildPath;
+            optimize.jsFile(fileName, fileName, config);
+        } else if (!config.cssIn) {
+            //Normal optimizations across modules.
+
+            //JS optimizations.
+            fileNames = file.getFilteredFileList(config.dir, /\.js$/, true);
+            for (i = 0; (fileName = fileNames[i]); i++) {
+                //Generate the module name from the config.dir root.
+                moduleName = fileName.replace(config.dir, '');
+                //Get rid of the extension
+                moduleName = moduleName.substring(0, moduleName.length - 3);
+                optimize.jsFile(fileName, fileName, config, moduleName, pluginCollector);
+            }
+
+            //Normalize all the plugin resources.
+            context = require.s.contexts._;
+
+            for (moduleName in pluginCollector) {
+                if (pluginCollector.hasOwnProperty(moduleName)) {
+                    parentModuleMap = context.makeModuleMap(moduleName);
+                    resources = pluginCollector[moduleName];
+                    for (i = 0; (resource = resources[i]); i++) {
+                        moduleMap = context.makeModuleMap(resource, parentModuleMap);
+                        if (!context.plugins[moduleMap.prefix]) {
+                            //Set the value in context.plugins so it
+                            //will be evaluated as a full plugin.
+                            context.plugins[moduleMap.prefix] = true;
+
+                            //Do not bother if the plugin is not available.
+                            if (!file.exists(require.toUrl(moduleMap.prefix + '.js'))) {
+                                continue;
+                            }
+
+                            //Rely on the require in the build environment
+                            //to be synchronous
+                            context.require([moduleMap.prefix]);
+
+                            //Now that the plugin is loaded, redo the moduleMap
+                            //since the plugin will need to normalize part of the path.
+                            moduleMap = context.makeModuleMap(resource, parentModuleMap);
+                        }
+
+                        //Only bother with plugin resources that can be handled
+                        //processed by the plugin, via support of the writeFile
+                        //method.
+                        if (!pluginProcessed[moduleMap.fullName]) {
+                            //Only do the work if the plugin was really loaded.
+                            //Using an internal access because the file may
+                            //not really be loaded.
+                            plugin = context.defined[moduleMap.prefix];
+                            if (plugin && plugin.writeFile) {
+                                plugin.writeFile(
+                                    moduleMap.prefix,
+                                    moduleMap.name,
+                                    require,
+                                    makeWriteFile(
+                                        config.anonDefRegExp,
+                                        config.namespaceWithDot
+                                    ),
+                                    context.config
+                                );
+                            }
+
+                            pluginProcessed[moduleMap.fullName] = true;
+                        }
+                    }
+
+                }
+            }
+
+            //console.log('PLUGIN COLLECTOR: ' + JSON.stringify(pluginCollector, null, "  "));
+
+
+            //All module layers are done, write out the build.txt file.
+            file.saveUtf8File(config.dir + "build.txt", buildFileContents);
+        }
+
+        //If just have one CSS file to optimize, do that here.
+        if (config.cssIn) {
+            buildFileContents += optimize.cssFile(config.cssIn, config.out, config);
+        }
+
+        //Print out what was built into which layers.
+        if (buildFileContents) {
+            logger.info(buildFileContents);
+            return buildFileContents;
+        }
+
+        return '';
+    };
+
+    /**
+     * Converts command line args like "paths.foo=../some/path"
+     * result.paths = { foo: '../some/path' } where prop = paths,
+     * name = paths.foo and value = ../some/path, so it assumes the
+     * name=value splitting has already happened.
+     */
+    function stringDotToObj(result, prop, name, value) {
+        if (!result[prop]) {
+            result[prop] = {};
+        }
+        name = name.substring((prop + '.').length, name.length);
+        result[prop][name] = value;
+    }
+
+    //Used by convertArrayToObject to convert some things from prop.name=value
+    //to a prop: { name: value}
+    build.dotProps = [
+        'paths.',
+        'wrap.',
+        'pragmas.',
+        'pragmasOnSave.',
+        'has.',
+        'hasOnSave.',
+        'wrap.',
+        'uglify.',
+        'closure.'
+    ];
+
+    build.hasDotPropMatch = function (prop) {
+        return build.dotProps.some(function (dotProp) {
+            return prop.indexOf(dotProp) === 0;
+        });
+    };
+
+    /**
+     * Converts an array that has String members of "name=value"
+     * into an object, where the properties on the object are the names in the array.
+     * Also converts the strings "true" and "false" to booleans for the values.
+     * member name/value pairs, and converts some comma-separated lists into
+     * arrays.
+     * @param {Array} ary
+     */
+    build.convertArrayToObject = function (ary) {
+        var result = {}, i, separatorIndex, prop, value,
+            needArray = {
+                "include": true,
+                "exclude": true,
+                "excludeShallow": true
+            };
+
+        for (i = 0; i < ary.length; i++) {
+            separatorIndex = ary[i].indexOf("=");
+            if (separatorIndex === -1) {
+                throw "Malformed name/value pair: [" + ary[i] + "]. Format should be name=value";
+            }
+
+            value = ary[i].substring(separatorIndex + 1, ary[i].length);
+            if (value === "true") {
+                value = true;
+            } else if (value === "false") {
+                value = false;
+            }
+
+            prop = ary[i].substring(0, separatorIndex);
+
+            //Convert to array if necessary
+            if (needArray[prop]) {
+                value = value.split(",");
+            }
+
+            if (build.hasDotPropMatch(prop)) {
+                stringDotToObj(result, prop.split('.')[0], prop, value);
+            } else {
+                result[prop] = value;
+            }
+        }
+        return result; //Object
+    };
+
+    build.makeAbsPath = function (path, absFilePath) {
+        //Add abspath if necessary. If path starts with a slash or has a colon,
+        //then already is an abolute path.
+        if (path.indexOf('/') !== 0 && path.indexOf(':') === -1) {
+            path = absFilePath +
+                   (absFilePath.charAt(absFilePath.length - 1) === '/' ? '' : '/') +
+                   path;
+            path = file.normalize(path);
+        }
+        return path.replace(lang.backSlashRegExp, '/');
+    };
+
+    build.makeAbsObject = function (props, obj, absFilePath) {
+        var i, prop;
+        if (obj) {
+            for (i = 0; (prop = props[i]); i++) {
+                if (obj.hasOwnProperty(prop)) {
+                    obj[prop] = build.makeAbsPath(obj[prop], absFilePath);
+                }
+            }
+        }
+    };
+
+    /**
+     * For any path in a possible config, make it absolute relative
+     * to the absFilePath passed in.
+     */
+    build.makeAbsConfig = function (config, absFilePath) {
+        var props, prop, i;
+
+        props = ["appDir", "dir", "baseUrl"];
+        for (i = 0; (prop = props[i]); i++) {
+            if (config[prop]) {
+                //Add abspath if necessary, make sure these paths end in
+                //slashes
+                if (prop === "baseUrl") {
+                    config.originalBaseUrl = config.baseUrl;
+                    if (config.appDir) {
+                        //If baseUrl with an appDir, the baseUrl is relative to
+                        //the appDir, *not* the absFilePath. appDir and dir are
+                        //made absolute before baseUrl, so this will work.
+                        config.baseUrl = build.makeAbsPath(config.originalBaseUrl, config.appDir);
+                    } else {
+                        //The dir output baseUrl is same as regular baseUrl, both
+                        //relative to the absFilePath.
+                        config.baseUrl = build.makeAbsPath(config[prop], absFilePath);
+                    }
+                } else {
+                    config[prop] = build.makeAbsPath(config[prop], absFilePath);
+                }
+
+                config[prop] = endsWithSlash(config[prop]);
+            }
+        }
+
+        //Do not allow URLs for paths resources.
+        if (config.paths) {
+            for (prop in config.paths) {
+                if (config.paths.hasOwnProperty(prop)) {
+                    config.paths[prop] = build.makeAbsPath(config.paths[prop],
+                                              (config.baseUrl || absFilePath));
+                }
+            }
+        }
+
+        build.makeAbsObject(["out", "cssIn"], config, absFilePath);
+        build.makeAbsObject(["startFile", "endFile"], config.wrap, absFilePath);
+    };
+
+    build.nestedMix = {
+        paths: true,
+        has: true,
+        hasOnSave: true,
+        pragmas: true,
+        pragmasOnSave: true
+    };
+
+    /**
+     * Mixes additional source config into target config, and merges some
+     * nested config, like paths, correctly.
+     */
+    function mixConfig(target, source) {
+        var prop, value;
+
+        for (prop in source) {
+            if (source.hasOwnProperty(prop)) {
+                //If the value of the property is a plain object, then
+                //allow a one-level-deep mixing of it.
+                value = source[prop];
+                if (typeof value === 'object' && value &&
+                    !lang.isArray(value) && !lang.isFunction(value) &&
+                    !lang.isRegExp(value)) {
+                    target[prop] = lang.mixin({}, target[prop], value, true);
+                } else {
+                    target[prop] = value;
+                }
+            }
+        }
+    }
+
+    /**
+     * Creates a config object for an optimization build.
+     * It will also read the build profile if it is available, to create
+     * the configuration.
+     *
+     * @param {Object} cfg config options that take priority
+     * over defaults and ones in the build file. These options could
+     * be from a command line, for instance.
+     *
+     * @param {Object} the created config object.
+     */
+    build.createConfig = function (cfg) {
+        /*jslint evil: true */
+        var config = {}, buildFileContents, buildFileConfig, mainConfig,
+            mainConfigFile, prop, buildFile, absFilePath;
+
+        //Make sure all paths are relative to current directory.
+        absFilePath = file.absPath('.');
+        build.makeAbsConfig(cfg, absFilePath);
+        build.makeAbsConfig(buildBaseConfig, absFilePath);
+
+        lang.mixin(config, buildBaseConfig);
+        lang.mixin(config, cfg, true);
+
+        if (config.buildFile) {
+            //A build file exists, load it to get more config.
+            buildFile = file.absPath(config.buildFile);
+
+            //Find the build file, and make sure it exists, if this is a build
+            //that has a build profile, and not just command line args with an in=path
+            if (!file.exists(buildFile)) {
+                throw new Error("ERROR: build file does not exist: " + buildFile);
+            }
+
+            absFilePath = config.baseUrl = file.absPath(file.parent(buildFile));
+
+            //Load build file options.
+            buildFileContents = file.readFile(buildFile);
+            try {
+                buildFileConfig = eval("(" + buildFileContents + ")");
+                build.makeAbsConfig(buildFileConfig, absFilePath);
+
+                if (!buildFileConfig.out && !buildFileConfig.dir) {
+                    buildFileConfig.dir = (buildFileConfig.baseUrl || config.baseUrl) + "/build/";
+                }
+
+            } catch (e) {
+                throw new Error("Build file " + buildFile + " is malformed: " + e);
+            }
+        }
+
+        mainConfigFile = config.mainConfigFile || (buildFileConfig && buildFileConfig.mainConfigFile);
+        if (mainConfigFile) {
+            mainConfigFile = build.makeAbsPath(mainConfigFile, absFilePath);
+            try {
+                mainConfig = parse.findConfig(mainConfigFile, file.readFile(mainConfigFile));
+            } catch (configError) {
+                throw new Error('The config in mainConfigFile ' +
+                        mainConfigFile +
+                        ' cannot be used because it cannot be evaluated' +
+                        ' correctly while running in the optimizer. Try only' +
+                        ' using a config that is also valid JSON, or do not use' +
+                        ' mainConfigFile and instead copy the config values needed' +
+                        ' into a build file or command line arguments given to the optimizer.');
+            }
+            if (mainConfig) {
+                //If no baseUrl, then use the directory holding the main config.
+                if (!mainConfig.baseUrl) {
+                    mainConfig.baseUrl = mainConfigFile.substring(0, mainConfigFile.lastIndexOf('/'));
+                }
+                build.makeAbsConfig(mainConfig, mainConfigFile);
+                mixConfig(config, mainConfig);
+            }
+        }
+
+        //Mix in build file config, but only after mainConfig has been mixed in.
+        if (buildFileConfig) {
+            mixConfig(config, buildFileConfig);
+        }
+
+        //Re-apply the override config values. Command line
+        //args should take precedence over build file values.
+        mixConfig(config, cfg);
+
+
+        //Set final output dir
+        if (config.hasOwnProperty("baseUrl")) {
+            if (config.appDir) {
+                config.dirBaseUrl = build.makeAbsPath(config.originalBaseUrl, config.dir);
+            } else {
+                config.dirBaseUrl = config.dir || config.baseUrl;
+            }
+            //Make sure dirBaseUrl ends in a slash, since it is
+            //concatenated with other strings.
+            config.dirBaseUrl = endsWithSlash(config.dirBaseUrl);
+        }
+
+        //Check for errors in config
+        if (config.cssIn && !config.out) {
+            throw new Error("ERROR: 'out' option missing.");
+        }
+        if (!config.cssIn && !config.baseUrl) {
+            throw new Error("ERROR: 'baseUrl' option missing.");
+        }
+        if (!config.out && !config.dir) {
+            throw new Error('Missing either an "out" or "dir" config value. ' +
+                            'If using "appDir" for a full project optimization, ' +
+                            'use "dir". If you want to optimize to one file, ' +
+                            'use "out".');
+        }
+        if (config.appDir && config.out) {
+            throw new Error('"appDir" is not compatible with "out". Use "dir" ' +
+                            'instead. appDir is used to copy whole projects, ' +
+                            'where "out" is used to just optimize to one file.');
+        }
+        if (config.out && config.dir) {
+            throw new Error('The "out" and "dir" options are incompatible.' +
+                            ' Use "out" if you are targeting a single file for' +
+                            ' for optimization, and "dir" if you want the appDir' +
+                            ' or baseUrl directories optimized.');
+        }
+
+        if ((config.name || config.include) && !config.modules) {
+            //Just need to build one file, but may be part of a whole appDir/
+            //baseUrl copy, but specified on the command line, so cannot do
+            //the modules array setup. So create a modules section in that
+            //case.
+            config.modules = [
+                {
+                    name: config.name,
+                    out: config.out,
+                    include: config.include,
+                    exclude: config.exclude,
+                    excludeShallow: config.excludeShallow
+                }
+            ];
+        }
+
+        if (config.out && !config.cssIn) {
+            //Just one file to optimize.
+
+            //Does not have a build file, so set up some defaults.
+            //Optimizing CSS should not be allowed, unless explicitly
+            //asked for on command line. In that case the only task is
+            //to optimize a CSS file.
+            if (!cfg.optimizeCss) {
+                config.optimizeCss = "none";
+            }
+        }
+
+        //Do not allow URLs for paths resources.
+        if (config.paths) {
+            for (prop in config.paths) {
+                if (config.paths.hasOwnProperty(prop)) {
+                    disallowUrls(config.paths[prop]);
+                }
+            }
+        }
+
+        //Get any wrap text.
+        try {
+            if (config.wrap) {
+                if (config.wrap === true) {
+                    //Use default values.
+                    config.wrap = {
+                        start: '(function () {',
+                        end: '}());'
+                    };
+                } else {
+                    config.wrap.start = config.wrap.start ||
+                            file.readFile(build.makeAbsPath(config.wrap.startFile, absFilePath));
+                    config.wrap.end = config.wrap.end ||
+                            file.readFile(build.makeAbsPath(config.wrap.endFile, absFilePath));
+                }
+            }
+        } catch (wrapError) {
+            throw new Error('Malformed wrap config: need both start/end or ' +
+                            'startFile/endFile: ' + wrapError.toString());
+        }
+
+
+        //Set up proper info for namespaces and using namespaces in transport
+        //wrappings.
+        config.namespaceWithDot = config.namespace ? config.namespace + '.' : '';
+        config.anonDefRegExp = build.makeAnonDefRegExp(config.namespaceWithDot);
+
+        //Do final input verification
+        if (config.context) {
+            throw new Error('The build argument "context" is not supported' +
+                            ' in a build. It should only be used in web' +
+                            ' pages.');
+        }
+
+        //Set file.fileExclusionRegExp if desired
+        if ('fileExclusionRegExp' in config) {
+            if (typeof config.fileExclusionRegExp === "string") {
+                file.exclusionRegExp = new RegExp(config.fileExclusionRegExp);
+            } else {
+                file.exclusionRegExp = config.fileExclusionRegExp;
+            }
+        } else if ('dirExclusionRegExp' in config) {
+            //Set file.dirExclusionRegExp if desired, this is the old
+            //name for fileExclusionRegExp before 1.0.2. Support for backwards
+            //compatibility
+            file.exclusionRegExp = config.dirExclusionRegExp;
+        }
+
+        return config;
+    };
+
+    /**
+     * finds the module being built/optimized with the given moduleName,
+     * or returns null.
+     * @param {String} moduleName
+     * @param {Array} modules
+     * @returns {Object} the module object from the build profile, or null.
+     */
+    build.findBuildModule = function (moduleName, modules) {
+        var i, module;
+        for (i = 0; (module = modules[i]); i++) {
+            if (module.name === moduleName) {
+                return module;
+            }
+        }
+        return null;
+    };
+
+    /**
+     * Removes a module name and path from a layer, if it is supposed to be
+     * excluded from the layer.
+     * @param {String} moduleName the name of the module
+     * @param {String} path the file path for the module
+     * @param {Object} layer the layer to remove the module/path from
+     */
+    build.removeModulePath = function (module, path, layer) {
+        var index = layer.buildFilePaths.indexOf(path);
+        if (index !== -1) {
+            layer.buildFilePaths.splice(index, 1);
+        }
+
+        //Take it out of the specified modules. Specified modules are mostly
+        //used to find require modifiers.
+        delete layer.specified[module];
+    };
+
+    /**
+     * Uses the module build config object to trace the dependencies for the
+     * given module.
+     *
+     * @param {Object} module the module object from the build config info.
+     * @param {Object} the build config object.
+     *
+     * @returns {Object} layer information about what paths and modules should
+     * be in the flattened module.
+     */
+    build.traceDependencies = function (module, config) {
+        var include, override, layer, context, baseConfig, oldContext;
+
+        //Reset some state set up in requirePatch.js, and clean up require's
+        //current context.
+        oldContext = require._buildReset();
+
+        //Grab the reset layer and context after the reset, but keep the
+        //old config to reuse in the new context.
+        baseConfig = oldContext.config;
+        layer = require._layer;
+        context = layer.context;
+
+        //Put back basic config, use a fresh object for it.
+        //WARNING: probably not robust for paths and packages/packagePaths,
+        //since those property's objects can be modified. But for basic
+        //config clone it works out.
+        require(lang.delegate(baseConfig));
+
+        logger.trace("\nTracing dependencies for: " + (module.name || module.out));
+        include = module.name && !module.create ? [module.name] : [];
+        if (module.include) {
+            include = include.concat(module.include);
+        }
+
+        //If there are overrides to basic config, set that up now.;
+        if (module.override) {
+            override = lang.delegate(baseConfig);
+            lang.mixin(override, module.override, true);
+            require(override);
+        }
+
+        //Figure out module layer dependencies by calling require to do the work.
+        require(include);
+
+        //Pull out the layer dependencies.
+        layer.specified = context.specified;
+
+        //Reset config
+        if (module.override) {
+            require(baseConfig);
+        }
+
+        return layer;
+    };
+
+    /**
+     * Uses the module build config object to create an flattened version
+     * of the module, with deep dependencies included.
+     *
+     * @param {Object} module the module object from the build config info.
+     *
+     * @param {Object} layer the layer object returned from build.traceDependencies.
+     *
+     * @param {Object} the build config object.
+     *
+     * @returns {Object} with two properties: "text", the text of the flattened
+     * module, and "buildText", a string of text representing which files were
+     * included in the flattened module text.
+     */
+    build.flattenModule = function (module, layer, config) {
+        var buildFileContents = "",
+            namespace = config.namespace ? config.namespace + '.' : '',
+            context = layer.context,
+            anonDefRegExp = config.anonDefRegExp,
+            path, reqIndex, fileContents, currContents,
+            i, moduleName,
+            parts, builder, writeApi;
+
+        //Use override settings, particularly for pragmas
+        if (module.override) {
+            config = lang.delegate(config);
+            lang.mixin(config, module.override, true);
+        }
+
+        //Start build output for the module.
+        buildFileContents += "\n" +
+                             (config.dir ? module._buildPath.replace(config.dir, "") : module._buildPath) +
+                             "\n----------------\n";
+
+        //If there was an existing file with require in it, hoist to the top.
+        if (layer.existingRequireUrl) {
+            reqIndex = layer.buildFilePaths.indexOf(layer.existingRequireUrl);
+            if (reqIndex !== -1) {
+                layer.buildFilePaths.splice(reqIndex, 1);
+                layer.buildFilePaths.unshift(layer.existingRequireUrl);
+            }
+        }
+
+        //Write the built module to disk, and build up the build output.
+        fileContents = "";
+        for (i = 0; (path = layer.buildFilePaths[i]); i++) {
+            moduleName = layer.buildFileToModule[path];
+
+            //Figure out if the module is a result of a build plugin, and if so,
+            //then delegate to that plugin.
+            parts = context.makeModuleMap(moduleName);
+            builder = parts.prefix && context.defined[parts.prefix];
+            if (builder) {
+                if (builder.write) {
+                    writeApi = function (input) {
+                        fileContents += "\n" + addSemiColon(input);
+                        if (config.onBuildWrite) {
+                            fileContents = config.onBuildWrite(moduleName, path, fileContents);
+                        }
+                    };
+                    writeApi.asModule = function (moduleName, input) {
+                        fileContents += "\n" +
+                                        addSemiColon(
+                                            build.toTransport(anonDefRegExp, namespace, moduleName, path, input, layer));
+                        if (config.onBuildWrite) {
+                            fileContents = config.onBuildWrite(moduleName, path, fileContents);
+                        }
+                    };
+                    builder.write(parts.prefix, parts.name, writeApi);
+                }
+            } else {
+                currContents = file.readFile(path);
+
+                if (config.onBuildRead) {
+                    currContents = config.onBuildRead(moduleName, path, currContents);
+                }
+
+                if (config.namespace) {
+                    currContents = pragma.namespace(currContents, config.namespace);
+                }
+
+                currContents = build.toTransport(anonDefRegExp, namespace, moduleName, path, currContents, layer);
+
+                if (config.onBuildWrite) {
+                    currContents = config.onBuildWrite(moduleName, path, currContents);
+                }
+
+                //Semicolon is for files that are not well formed when
+                //concatenated with other content.
+                fileContents += "\n" + addSemiColon(currContents);
+            }
+
+            buildFileContents += path.replace(config.dir, "") + "\n";
+            //Some files may not have declared a require module, and if so,
+            //put in a placeholder call so the require does not try to load them
+            //after the module is processed.
+            //If we have a name, but no defined module, then add in the placeholder.
+            if (moduleName && !layer.modulesWithNames[moduleName] && !config.skipModuleInsertion) {
+                //If including jquery, register the module correctly, otherwise
+                //register an empty function. For jquery, make sure jQuery is
+                //a real object, and perhaps not some other file mapping, like
+                //to zepto.
+                if (moduleName === 'jquery') {
+                    fileContents += '\n(function () {\n' +
+                                   'var jq = typeof jQuery !== "undefined" && jQuery;\n' +
+                                   namespace +
+                                   'define("jquery", [], function () { return jq; });\n' +
+                                   '}());\n';
+                } else {
+                    fileContents += '\n' + namespace + 'define("' + moduleName + '", function(){});\n';
+                }
+            }
+        }
+
+        return {
+            text: config.wrap ?
+                    config.wrap.start + fileContents + config.wrap.end :
+                    fileContents,
+            buildText: buildFileContents
+        };
+    };
+
+    /**
+     * Creates the regexp to find anonymous defines.
+     * @param {String} namespace an optional namespace to use. The namespace
+     * should *include* a trailing dot. So a valid value would be 'foo.'
+     * @returns {RegExp}
+     */
+    build.makeAnonDefRegExp = function (namespace) {
+        //This regexp is not bullet-proof, and it has one optional part to
+        //avoid issues with some Dojo transition modules that use a
+        //define(\n//begin v1.x content
+        //for a comment.
+        return new RegExp('(^|[^\\.])(' + (namespace || '').replace(/\./g, '\\.') +
+                          'define|define)\\s*\\(\\s*(\\/\\/[^\\n\\r]*[\\r\\n])?(\\[|function|[\\w\\d_\\-\\$]+\\s*\\)|\\{|["\']([^"\']+)["\'])(\\s*,\\s*f)?');
+    };
+
+    build.leadingCommaRegExp = /^\s*,/;
+
+    build.toTransport = function (anonDefRegExp, namespace, moduleName, path, contents, layer) {
+
+        //If anonymous module, insert the module name.
+        return contents.replace(anonDefRegExp, function (match, start, callName, possibleComment, suffix, namedModule, namedFuncStart) {
+            //A named module with either listed dependencies or an object
+            //literal for a value. Skip it. If named module, only want ones
+            //whose next argument is a function literal to scan for
+            //require('') dependecies.
+            if (namedModule && !namedFuncStart) {
+                return match;
+            }
+
+            //Only mark this module as having a name if not a named module,
+            //or if a named module and the name matches expectations.
+            if (layer && (!namedModule || namedModule === moduleName)) {
+                layer.modulesWithNames[moduleName] = true;
+            }
+
+            var deps = null;
+
+            //Look for CommonJS require calls inside the function if this is
+            //an anonymous define call that just has a function registered.
+            //Also look if a named define function but has a factory function
+            //as the second arg that should be scanned for dependencies.
+            if (suffix.indexOf('f') !== -1 || (namedModule)) {
+                deps = parse.getAnonDeps(path, contents);
+
+                if (deps.length) {
+                    deps = deps.map(function (dep) {
+                        return "'" + dep + "'";
+                    });
+                } else {
+                    deps = [];
+                }
+            }
+
+            return start + namespace + "define('" + (namedModule || moduleName) + "'," +
+                   (deps ? ('[' + deps.toString() + '],') : '') +
+                   (namedModule ? namedFuncStart.replace(build.leadingCommaRegExp, '') : suffix);
+        });
+
+    };
+
+    return build;
+});
+
+    }
+
+
+    /**
+     * Sets the default baseUrl for requirejs to be directory of top level
+     * script.
+     */
+    function setBaseUrl(fileName) {
+        //Use the file name's directory as the baseUrl if available.
+        dir = fileName.replace(/\\/g, '/');
+        if (dir.indexOf('/') !== -1) {
+            dir = dir.split('/');
+            dir.pop();
+            dir = dir.join('/');
+            exec("require({baseUrl: '" + dir + "'});");
+        }
+    }
+
+    //If in Node, and included via a require('requirejs'), just export and
+    //THROW IT ON THE GROUND!
+    if (env === 'node' && reqMain !== module) {
+        setBaseUrl(path.resolve(reqMain ? reqMain.filename : '.'));
+
+        //Create a method that will run the optimzer given an object
+        //config.
+        requirejs.optimize = function (config, callback) {
+            if (!loadedOptimizedLib) {
+                loadLib();
+                loadedOptimizedLib = true;
+            }
+
+            //Create the function that will be called once build modules
+            //have been loaded.
+            var runBuild = function (build, logger) {
+                //Make sure config has a log level, and if not,
+                //make it "silent" by default.
+                config.logLevel = config.hasOwnProperty('logLevel') ?
+                                  config.logLevel : logger.SILENT;
+
+                var result = build(config);
+
+                //Reset build internals on each run.
+                requirejs._buildReset();
+
+                if (callback) {
+                    callback(result);
+                }
+            };
+
+            //Enable execution of this callback in a build setting.
+            //Normally, once requirePatch is run, by default it will
+            //not execute callbacks, unless this property is set on
+            //the callback.
+            runBuild.__requireJsBuild = true;
+
+            requirejs({
+                context: 'build'
+            }, ['build', 'logger'], runBuild);
+        };
+
+        requirejs.tools = {
+            useLib: function (contextName, callback) {
+                if (!callback) {
+                    callback = contextName;
+                    contextName = 'uselib';
+                }
+
+                if (!useLibLoaded[contextName]) {
+                    loadLib();
+                    useLibLoaded[contextName] = true;
+                }
+
+                var req = requirejs({
+                    context: contextName,
+                    requireLoad: requirejsVars.nodeLoad,
+                    requireExecCb: requirejsVars.nodeRequireExecCb
+                });
+
+                req(['build'], function () {
+                    callback(req);
+                });
+            }
+        };
+
+        requirejs.define = define;
+
+        module.exports = requirejs;
+        return;
+    }
+
+    if (commandOption === 'o') {
+        //Do the optimizer work.
+        loadLib();
+
+        /**
+ * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+
+/*
+ * Create a build.js file that has the build options you want and pass that
+ * build file to this file to do the build. See example.build.js for more information.
+ */
+
+/*jslint strict: false, nomen: false */
+/*global require: false */
+
+require({
+    baseUrl: require.s.contexts._.config.baseUrl,
+    //Use a separate context than the default context so that the
+    //build can use the default context.
+    context: 'build',
+    catchError: {
+        define: true
+    }
+},       ['env!env/args', 'build'],
+function (args,            build) {
+    build(args);
+});
+
+
+    } else if (commandOption === 'v') {
+        console.log('r.js: ' + version + ', RequireJS: ' + this.requirejsVars.require.version);
+    } else if (commandOption === 'convert') {
+        loadLib();
+
+        this.requirejsVars.require(['env!env/args', 'commonJs', 'env!env/print'],
+        function (args,           commonJs,   print) {
+
+            var srcDir, outDir;
+            srcDir = args[0];
+            outDir = args[1];
+
+            if (!srcDir || !outDir) {
+                print('Usage: path/to/commonjs/modules output/dir');
+                return;
+            }
+
+            commonJs.convertDir(args[0], args[1]);
+        });
+    } else {
+        //Just run an app
+
+        //Load the bundled libraries for use in the app.
+        if (commandOption === 'lib') {
+            loadLib();
+        }
+
+        setBaseUrl(fileName);
+
+        if (exists(fileName)) {
+            exec(readFile(fileName), fileName);
+        } else {
+            showHelp();
+        }
+    }
+
+}((typeof console !== 'undefined' ? console : undefined),
+  (typeof Packages !== 'undefined' ? Array.prototype.slice.call(arguments, 0) : []),
+  (typeof readFile !== 'undefined' ? readFile : undefined)));
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/external/requirejs/depend.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/external/requirejs/depend.js
new file mode 100644 (file)
index 0000000..8de7760
--- /dev/null
@@ -0,0 +1,27 @@
+/** @license
+ * Plugin to load JS files that have dependencies but aren't wrapped into
+ * `define` calls.
+ * Author: Miller Medeiros
+ * Version: 0.1.0 (2011/12/13)
+ * Released under the MIT license
+ */
+define(function () {
+
+    var rParts = /^(.*)\[([^\]]*)\]$/;
+
+    return {
+
+        //example: depend!bar[jquery,lib/foo]
+        load : function(name, req, onLoad, config){
+            var parts = rParts.exec(name);
+
+            req(parts[2].split(','), function(){
+                req([parts[1]], function(mod){
+                    onLoad(mod);
+                });
+            });
+        }
+
+    };
+
+});
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/external/requirejs/order.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/external/requirejs/order.js
new file mode 100644 (file)
index 0000000..574286c
--- /dev/null
@@ -0,0 +1,180 @@
+/**
+ * @license RequireJS order 1.0.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+/*jslint nomen: false, plusplus: false, strict: false */
+/*global require: false, define: false, window: false, document: false,
+  setTimeout: false */
+
+//Specify that requirejs optimizer should wrap this code in a closure that
+//maps the namespaced requirejs API to non-namespaced local variables.
+/*requirejs namespace: true */
+
+(function () {
+
+    //Sadly necessary browser inference due to differences in the way
+    //that browsers load and execute dynamically inserted javascript
+    //and whether the script/cache method works when ordered execution is
+    //desired. Currently, Gecko and Opera do not load/fire onload for scripts with
+    //type="script/cache" but they execute injected scripts in order
+    //unless the 'async' flag is present.
+    //However, this is all changing in latest browsers implementing HTML5
+    //spec. With compliant browsers .async true by default, and
+    //if false, then it will execute in order. Favor that test first for forward
+    //compatibility.
+    var testScript = typeof document !== "undefined" &&
+                 typeof window !== "undefined" &&
+                 document.createElement("script"),
+
+        supportsInOrderExecution = testScript && (testScript.async ||
+                               ((window.opera &&
+                                 Object.prototype.toString.call(window.opera) === "[object Opera]") ||
+                               //If Firefox 2 does not have to be supported, then
+                               //a better check may be:
+                               //('mozIsLocallyAvailable' in window.navigator)
+                               ("MozAppearance" in document.documentElement.style))),
+
+        //This test is true for IE browsers, which will load scripts but only
+        //execute them once the script is added to the DOM.
+        supportsLoadSeparateFromExecute = testScript &&
+                                          testScript.readyState === 'uninitialized',
+
+        readyRegExp = /^(complete|loaded)$/,
+        cacheWaiting = [],
+        cached = {},
+        scriptNodes = {},
+        scriptWaiting = [];
+
+    //Done with the test script.
+    testScript = null;
+
+    //Callback used by the type="script/cache" callback that indicates a script
+    //has finished downloading.
+    function scriptCacheCallback(evt) {
+        var node = evt.currentTarget || evt.srcElement, i,
+            moduleName, resource;
+
+        if (evt.type === "load" || readyRegExp.test(node.readyState)) {
+            //Pull out the name of the module and the context.
+            moduleName = node.getAttribute("data-requiremodule");
+
+            //Mark this cache request as loaded
+            cached[moduleName] = true;
+
+            //Find out how many ordered modules have loaded
+            for (i = 0; (resource = cacheWaiting[i]); i++) {
+                if (cached[resource.name]) {
+                    resource.req([resource.name], resource.onLoad);
+                } else {
+                    //Something in the ordered list is not loaded,
+                    //so wait.
+                    break;
+                }
+            }
+
+            //If just loaded some items, remove them from cacheWaiting.
+            if (i > 0) {
+                cacheWaiting.splice(0, i);
+            }
+
+            //Remove this script tag from the DOM
+            //Use a setTimeout for cleanup because some older IE versions vomit
+            //if removing a script node while it is being evaluated.
+            setTimeout(function () {
+                node.parentNode.removeChild(node);
+            }, 15);
+        }
+    }
+
+    /**
+     * Used for the IE case, where fetching is done by creating script element
+     * but not attaching it to the DOM. This function will be called when that
+     * happens so it can be determined when the node can be attached to the
+     * DOM to trigger its execution.
+     */
+    function onFetchOnly(node) {
+        var i, loadedNode, resourceName;
+
+        //Mark this script as loaded.
+        node.setAttribute('data-orderloaded', 'loaded');
+
+        //Cycle through waiting scripts. If the matching node for them
+        //is loaded, and is in the right order, add it to the DOM
+        //to execute the script.
+        for (i = 0; (resourceName = scriptWaiting[i]); i++) {
+            loadedNode = scriptNodes[resourceName];
+            if (loadedNode &&
+                loadedNode.getAttribute('data-orderloaded') === 'loaded') {
+                delete scriptNodes[resourceName];
+                require.addScriptToDom(loadedNode);
+            } else {
+                break;
+            }
+        }
+
+        //If just loaded some items, remove them from waiting.
+        if (i > 0) {
+            scriptWaiting.splice(0, i);
+        }
+    }
+
+    define({
+        version: '1.0.0',
+
+        load: function (name, req, onLoad, config) {
+            var url = req.nameToUrl(name, null),
+                node, context;
+
+            //Make sure the async attribute is not set for any pathway involving
+            //this script.
+            require.s.skipAsync[url] = true;
+            if (supportsInOrderExecution || config.isBuild) {
+                //Just a normal script tag append, but without async attribute
+                //on the script.
+                req([name], onLoad);
+            } else if (supportsLoadSeparateFromExecute) {
+                //Just fetch the URL, but do not execute it yet. The
+                //non-standards IE case. Really not so nice because it is
+                //assuming and touching requrejs internals. OK though since
+                //ordered execution should go away after a long while.
+                context = require.s.contexts._;
+
+                if (!context.urlFetched[url] && !context.loaded[name]) {
+                    //Indicate the script is being fetched.
+                    context.urlFetched[url] = true;
+
+                    //Stuff from require.load
+                    require.resourcesReady(false);
+                    context.scriptCount += 1;
+
+                    //Fetch the script now, remember it.
+                    node = require.attach(url, context, name, null, null, onFetchOnly);
+                    scriptNodes[name] = node;
+                    scriptWaiting.push(name);
+                }
+
+                //Do a normal require for it, once it loads, use it as return
+                //value.
+                req([name], onLoad);
+            } else {
+                //Credit to LABjs author Kyle Simpson for finding that scripts
+                //with type="script/cache" allow scripts to be downloaded into
+                //browser cache but not executed. Use that
+                //so that subsequent addition of a real type="text/javascript"
+                //tag will cause the scripts to be executed immediately in the
+                //correct order.
+                if (req.specified(name)) {
+                    req([name], onLoad);
+                } else {
+                    cacheWaiting.push({
+                        name: name,
+                        req: req,
+                        onLoad: onLoad
+                    });
+                    require.attach(url, null, name, scriptCacheCallback, "script/cache");
+                }
+            }
+        }
+    });
+}());
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/external/requirejs/require.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/external/requirejs/require.js
new file mode 100644 (file)
index 0000000..4d0d055
--- /dev/null
@@ -0,0 +1,2053 @@
+/** vim: et:ts=4:sw=4:sts=4
+ * @license RequireJS 1.0.6 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+/*jslint strict: false, plusplus: false, sub: true */
+/*global window, navigator, document, importScripts, jQuery, setTimeout, opera */
+
+var requirejs, require, define;
+(function () {
+    //Change this version number for each release.
+    var version = "1.0.6",
+        commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
+        cjsRequireRegExp = /require\(\s*["']([^'"\s]+)["']\s*\)/g,
+        currDirRegExp = /^\.\//,
+        jsSuffixRegExp = /\.js$/,
+        ostring = Object.prototype.toString,
+        ap = Array.prototype,
+        aps = ap.slice,
+        apsp = ap.splice,
+        isBrowser = !!(typeof window !== "undefined" && navigator && document),
+        isWebWorker = !isBrowser && typeof importScripts !== "undefined",
+        //PS3 indicates loaded and complete, but need to wait for complete
+        //specifically. Sequence is "loading", "loaded", execution,
+        // then "complete". The UA check is unfortunate, but not sure how
+        //to feature test w/o causing perf issues.
+        readyRegExp = isBrowser && navigator.platform === 'PLAYSTATION 3' ?
+                      /^complete$/ : /^(complete|loaded)$/,
+        defContextName = "_",
+        //Oh the tragedy, detecting opera. See the usage of isOpera for reason.
+        isOpera = typeof opera !== "undefined" && opera.toString() === "[object Opera]",
+        empty = {},
+        contexts = {},
+        globalDefQueue = [],
+        interactiveScript = null,
+        checkLoadedDepth = 0,
+        useInteractive = false,
+        reservedDependencies = {
+            require: true,
+            module: true,
+            exports: true
+        },
+        req, cfg = {}, currentlyAddingScript, s, head, baseElement, scripts, script,
+        src, subPath, mainScript, dataMain, globalI, ctx, jQueryCheck, checkLoadedTimeoutId;
+
+    function isFunction(it) {
+        return ostring.call(it) === "[object Function]";
+    }
+
+    function isArray(it) {
+        return ostring.call(it) === "[object Array]";
+    }
+
+    /**
+     * Simple function to mix in properties from source into target,
+     * but only if target does not already have a property of the same name.
+     * This is not robust in IE for transferring methods that match
+     * Object.prototype names, but the uses of mixin here seem unlikely to
+     * trigger a problem related to that.
+     */
+    function mixin(target, source, force) {
+        for (var prop in source) {
+            if (!(prop in empty) && (!(prop in target) || force)) {
+                target[prop] = source[prop];
+            }
+        }
+        return req;
+    }
+
+    /**
+     * Constructs an error with a pointer to an URL with more information.
+     * @param {String} id the error ID that maps to an ID on a web page.
+     * @param {String} message human readable error.
+     * @param {Error} [err] the original error, if there is one.
+     *
+     * @returns {Error}
+     */
+    function makeError(id, msg, err) {
+        var e = new Error(msg + '\nhttp://requirejs.org/docs/errors.html#' + id);
+        if (err) {
+            e.originalError = err;
+        }
+        return e;
+    }
+
+    /**
+     * Used to set up package paths from a packagePaths or packages config object.
+     * @param {Object} pkgs the object to store the new package config
+     * @param {Array} currentPackages an array of packages to configure
+     * @param {String} [dir] a prefix dir to use.
+     */
+    function configurePackageDir(pkgs, currentPackages, dir) {
+        var i, location, pkgObj;
+
+        for (i = 0; (pkgObj = currentPackages[i]); i++) {
+            pkgObj = typeof pkgObj === "string" ? { name: pkgObj } : pkgObj;
+            location = pkgObj.location;
+
+            //Add dir to the path, but avoid paths that start with a slash
+            //or have a colon (indicates a protocol)
+            if (dir && (!location || (location.indexOf("/") !== 0 && location.indexOf(":") === -1))) {
+                location = dir + "/" + (location || pkgObj.name);
+            }
+
+            //Create a brand new object on pkgs, since currentPackages can
+            //be passed in again, and config.pkgs is the internal transformed
+            //state for all package configs.
+            pkgs[pkgObj.name] = {
+                name: pkgObj.name,
+                location: location || pkgObj.name,
+                //Remove leading dot in main, so main paths are normalized,
+                //and remove any trailing .js, since different package
+                //envs have different conventions: some use a module name,
+                //some use a file name.
+                main: (pkgObj.main || "main")
+                      .replace(currDirRegExp, '')
+                      .replace(jsSuffixRegExp, '')
+            };
+        }
+    }
+
+    /**
+     * jQuery 1.4.3-1.5.x use a readyWait/ready() pairing to hold DOM
+     * ready callbacks, but jQuery 1.6 supports a holdReady() API instead.
+     * At some point remove the readyWait/ready() support and just stick
+     * with using holdReady.
+     */
+    function jQueryHoldReady($, shouldHold) {
+        if ($.holdReady) {
+            $.holdReady(shouldHold);
+        } else if (shouldHold) {
+            $.readyWait += 1;
+        } else {
+            $.ready(true);
+        }
+    }
+
+    if (typeof define !== "undefined") {
+        //If a define is already in play via another AMD loader,
+        //do not overwrite.
+        return;
+    }
+
+    if (typeof requirejs !== "undefined") {
+        if (isFunction(requirejs)) {
+            //Do not overwrite and existing requirejs instance.
+            return;
+        } else {
+            cfg = requirejs;
+            requirejs = undefined;
+        }
+    }
+
+    //Allow for a require config object
+    if (typeof require !== "undefined" && !isFunction(require)) {
+        //assume it is a config object.
+        cfg = require;
+        require = undefined;
+    }
+
+    /**
+     * Creates a new context for use in require and define calls.
+     * Handle most of the heavy lifting. Do not want to use an object
+     * with prototype here to avoid using "this" in require, in case it
+     * needs to be used in more super secure envs that do not want this.
+     * Also there should not be that many contexts in the page. Usually just
+     * one for the default context, but could be extra for multiversion cases
+     * or if a package needs a special context for a dependency that conflicts
+     * with the standard context.
+     */
+    function newContext(contextName) {
+        var context, resume,
+            config = {
+                waitSeconds: 7,
+                baseUrl: "./",
+                paths: {},
+                pkgs: {},
+                catchError: {}
+            },
+            defQueue = [],
+            specified = {
+                "require": true,
+                "exports": true,
+                "module": true
+            },
+            urlMap = {},
+            defined = {},
+            loaded = {},
+            waiting = {},
+            waitAry = [],
+            urlFetched = {},
+            managerCounter = 0,
+            managerCallbacks = {},
+            plugins = {},
+            //Used to indicate which modules in a build scenario
+            //need to be full executed.
+            needFullExec = {},
+            fullExec = {},
+            resumeDepth = 0;
+
+        /**
+         * Trims the . and .. from an array of path segments.
+         * It will keep a leading path segment if a .. will become
+         * the first path segment, to help with module name lookups,
+         * which act like paths, but can be remapped. But the end result,
+         * all paths that use this function should look normalized.
+         * NOTE: this method MODIFIES the input array.
+         * @param {Array} ary the array of path segments.
+         */
+        function trimDots(ary) {
+            var i, part;
+            for (i = 0; (part = ary[i]); i++) {
+                if (part === ".") {
+                    ary.splice(i, 1);
+                    i -= 1;
+                } else if (part === "..") {
+                    if (i === 1 && (ary[2] === '..' || ary[0] === '..')) {
+                        //End of the line. Keep at least one non-dot
+                        //path segment at the front so it can be mapped
+                        //correctly to disk. Otherwise, there is likely
+                        //no path mapping for a path starting with '..'.
+                        //This can still fail, but catches the most reasonable
+                        //uses of ..
+                        break;
+                    } else if (i > 0) {
+                        ary.splice(i - 1, 2);
+                        i -= 2;
+                    }
+                }
+            }
+        }
+
+        /**
+         * Given a relative module name, like ./something, normalize it to
+         * a real name that can be mapped to a path.
+         * @param {String} name the relative name
+         * @param {String} baseName a real name that the name arg is relative
+         * to.
+         * @returns {String} normalized name
+         */
+        function normalize(name, baseName) {
+            var pkgName, pkgConfig;
+
+            //Adjust any relative paths.
+            if (name && name.charAt(0) === ".") {
+                //If have a base name, try to normalize against it,
+                //otherwise, assume it is a top-level require that will
+                //be relative to baseUrl in the end.
+                if (baseName) {
+                    if (config.pkgs[baseName]) {
+                        //If the baseName is a package name, then just treat it as one
+                        //name to concat the name with.
+                        baseName = [baseName];
+                    } else {
+                        //Convert baseName to array, and lop off the last part,
+                        //so that . matches that "directory" and not name of the baseName's
+                        //module. For instance, baseName of "one/two/three", maps to
+                        //"one/two/three.js", but we want the directory, "one/two" for
+                        //this normalization.
+                        baseName = baseName.split("/");
+                        baseName = baseName.slice(0, baseName.length - 1);
+                    }
+
+                    name = baseName.concat(name.split("/"));
+                    trimDots(name);
+
+                    //Some use of packages may use a . path to reference the
+                    //"main" module name, so normalize for that.
+                    pkgConfig = config.pkgs[(pkgName = name[0])];
+                    name = name.join("/");
+                    if (pkgConfig && name === pkgName + '/' + pkgConfig.main) {
+                        name = pkgName;
+                    }
+                } else if (name.indexOf("./") === 0) {
+                    // No baseName, so this is ID is resolved relative
+                    // to baseUrl, pull off the leading dot.
+                    name = name.substring(2);
+                }
+            }
+            return name;
+        }
+
+        /**
+         * Creates a module mapping that includes plugin prefix, module
+         * name, and path. If parentModuleMap is provided it will
+         * also normalize the name via require.normalize()
+         *
+         * @param {String} name the module name
+         * @param {String} [parentModuleMap] parent module map
+         * for the module name, used to resolve relative names.
+         *
+         * @returns {Object}
+         */
+        function makeModuleMap(name, parentModuleMap) {
+            var index = name ? name.indexOf("!") : -1,
+                prefix = null,
+                parentName = parentModuleMap ? parentModuleMap.name : null,
+                originalName = name,
+                normalizedName, url, pluginModule;
+
+            if (index !== -1) {
+                prefix = name.substring(0, index);
+                name = name.substring(index + 1, name.length);
+            }
+
+            if (prefix) {
+                prefix = normalize(prefix, parentName);
+            }
+
+            //Account for relative paths if there is a base name.
+            if (name) {
+                if (prefix) {
+                    pluginModule = defined[prefix];
+                    if (pluginModule && pluginModule.normalize) {
+                        //Plugin is loaded, use its normalize method.
+                        normalizedName = pluginModule.normalize(name, function (name) {
+                            return normalize(name, parentName);
+                        });
+                    } else {
+                        normalizedName = normalize(name, parentName);
+                    }
+                } else {
+                    //A regular module.
+                    normalizedName = normalize(name, parentName);
+
+                    url = urlMap[normalizedName];
+                    if (!url) {
+                        //Calculate url for the module, if it has a name.
+                        //Use name here since nameToUrl also calls normalize,
+                        //and for relative names that are outside the baseUrl
+                        //this causes havoc. Was thinking of just removing
+                        //parentModuleMap to avoid extra normalization, but
+                        //normalize() still does a dot removal because of
+                        //issue #142, so just pass in name here and redo
+                        //the normalization. Paths outside baseUrl are just
+                        //messy to support.
+                        url = context.nameToUrl(name, null, parentModuleMap);
+
+                        //Store the URL mapping for later.
+                        urlMap[normalizedName] = url;
+                    }
+                }
+            }
+
+            return {
+                prefix: prefix,
+                name: normalizedName,
+                parentMap: parentModuleMap,
+                url: url,
+                originalName: originalName,
+                fullName: prefix ? prefix + "!" + (normalizedName || '') : normalizedName
+            };
+        }
+
+        /**
+         * Determine if priority loading is done. If so clear the priorityWait
+         */
+        function isPriorityDone() {
+            var priorityDone = true,
+                priorityWait = config.priorityWait,
+                priorityName, i;
+            if (priorityWait) {
+                for (i = 0; (priorityName = priorityWait[i]); i++) {
+                    if (!loaded[priorityName]) {
+                        priorityDone = false;
+                        break;
+                    }
+                }
+                if (priorityDone) {
+                    delete config.priorityWait;
+                }
+            }
+            return priorityDone;
+        }
+
+        function makeContextModuleFunc(func, relModuleMap, enableBuildCallback) {
+            return function () {
+                //A version of a require function that passes a moduleName
+                //value for items that may need to
+                //look up paths relative to the moduleName
+                var args = aps.call(arguments, 0), lastArg;
+                if (enableBuildCallback &&
+                    isFunction((lastArg = args[args.length - 1]))) {
+                    lastArg.__requireJsBuild = true;
+                }
+                args.push(relModuleMap);
+                return func.apply(null, args);
+            };
+        }
+
+        /**
+         * Helper function that creates a require function object to give to
+         * modules that ask for it as a dependency. It needs to be specific
+         * per module because of the implication of path mappings that may
+         * need to be relative to the module name.
+         */
+        function makeRequire(relModuleMap, enableBuildCallback, altRequire) {
+            var modRequire = makeContextModuleFunc(altRequire || context.require, relModuleMap, enableBuildCallback);
+
+            mixin(modRequire, {
+                nameToUrl: makeContextModuleFunc(context.nameToUrl, relModuleMap),
+                toUrl: makeContextModuleFunc(context.toUrl, relModuleMap),
+                defined: makeContextModuleFunc(context.requireDefined, relModuleMap),
+                specified: makeContextModuleFunc(context.requireSpecified, relModuleMap),
+                isBrowser: req.isBrowser
+            });
+            return modRequire;
+        }
+
+        /*
+         * Queues a dependency for checking after the loader is out of a
+         * "paused" state, for example while a script file is being loaded
+         * in the browser, where it may have many modules defined in it.
+         */
+        function queueDependency(manager) {
+            context.paused.push(manager);
+        }
+
+        function execManager(manager) {
+            var i, ret, err, errFile, errModuleTree,
+                cb = manager.callback,
+                map = manager.map,
+                fullName = map.fullName,
+                args = manager.deps,
+                listeners = manager.listeners,
+                cjsModule;
+
+            //Call the callback to define the module, if necessary.
+            if (cb && isFunction(cb)) {
+                if (config.catchError.define) {
+                    try {
+                        ret = req.execCb(fullName, manager.callback, args, defined[fullName]);
+                    } catch (e) {
+                        err = e;
+                    }
+                } else {
+                    ret = req.execCb(fullName, manager.callback, args, defined[fullName]);
+                }
+
+                if (fullName) {
+                    //If setting exports via "module" is in play,
+                    //favor that over return value and exports. After that,
+                    //favor a non-undefined return value over exports use.
+                    cjsModule = manager.cjsModule;
+                    if (cjsModule &&
+                        cjsModule.exports !== undefined &&
+                        //Make sure it is not already the exports value
+                        cjsModule.exports !== defined[fullName]) {
+                        ret = defined[fullName] = manager.cjsModule.exports;
+                    } else if (ret === undefined && manager.usingExports) {
+                        //exports already set the defined value.
+                        ret = defined[fullName];
+                    } else {
+                        //Use the return value from the function.
+                        defined[fullName] = ret;
+                        //If this module needed full execution in a build
+                        //environment, mark that now.
+                        if (needFullExec[fullName]) {
+                            fullExec[fullName] = true;
+                        }
+                    }
+                }
+            } else if (fullName) {
+                //May just be an object definition for the module. Only
+                //worry about defining if have a module name.
+                ret = defined[fullName] = cb;
+
+                //If this module needed full execution in a build
+                //environment, mark that now.
+                if (needFullExec[fullName]) {
+                    fullExec[fullName] = true;
+                }
+            }
+
+            //Clean up waiting. Do this before error calls, and before
+            //calling back listeners, so that bookkeeping is correct
+            //in the event of an error and error is reported in correct order,
+            //since the listeners will likely have errors if the
+            //onError function does not throw.
+            if (waiting[manager.id]) {
+                delete waiting[manager.id];
+                manager.isDone = true;
+                context.waitCount -= 1;
+                if (context.waitCount === 0) {
+                    //Clear the wait array used for cycles.
+                    waitAry = [];
+                }
+            }
+
+            //Do not need to track manager callback now that it is defined.
+            delete managerCallbacks[fullName];
+
+            //Allow instrumentation like the optimizer to know the order
+            //of modules executed and their dependencies.
+            if (req.onResourceLoad && !manager.placeholder) {
+                req.onResourceLoad(context, map, manager.depArray);
+            }
+
+            if (err) {
+                errFile = (fullName ? makeModuleMap(fullName).url : '') ||
+                           err.fileName || err.sourceURL;
+                errModuleTree = err.moduleTree;
+                err = makeError('defineerror', 'Error evaluating ' +
+                                'module "' + fullName + '" at location "' +
+                                errFile + '":\n' +
+                                err + '\nfileName:' + errFile +
+                                '\nlineNumber: ' + (err.lineNumber || err.line), err);
+                err.moduleName = fullName;
+                err.moduleTree = errModuleTree;
+                return req.onError(err);
+            }
+
+            //Let listeners know of this manager's value.
+            for (i = 0; (cb = listeners[i]); i++) {
+                cb(ret);
+            }
+
+            return undefined;
+        }
+
+        /**
+         * Helper that creates a callack function that is called when a dependency
+         * is ready, and sets the i-th dependency for the manager as the
+         * value passed to the callback generated by this function.
+         */
+        function makeArgCallback(manager, i) {
+            return function (value) {
+                //Only do the work if it has not been done
+                //already for a dependency. Cycle breaking
+                //logic in forceExec could mean this function
+                //is called more than once for a given dependency.
+                if (!manager.depDone[i]) {
+                    manager.depDone[i] = true;
+                    manager.deps[i] = value;
+                    manager.depCount -= 1;
+                    if (!manager.depCount) {
+                        //All done, execute!
+                        execManager(manager);
+                    }
+                }
+            };
+        }
+
+        function callPlugin(pluginName, depManager) {
+            var map = depManager.map,
+                fullName = map.fullName,
+                name = map.name,
+                plugin = plugins[pluginName] ||
+                        (plugins[pluginName] = defined[pluginName]),
+                load;
+
+            //No need to continue if the manager is already
+            //in the process of loading.
+            if (depManager.loading) {
+                return;
+            }
+            depManager.loading = true;
+
+            load = function (ret) {
+                depManager.callback = function () {
+                    return ret;
+                };
+                execManager(depManager);
+
+                loaded[depManager.id] = true;
+
+                //The loading of this plugin
+                //might have placed other things
+                //in the paused queue. In particular,
+                //a loader plugin that depends on
+                //a different plugin loaded resource.
+                resume();
+            };
+
+            //Allow plugins to load other code without having to know the
+            //context or how to "complete" the load.
+            load.fromText = function (moduleName, text) {
+                /*jslint evil: true */
+                var hasInteractive = useInteractive;
+
+                //Indicate a the module is in process of loading.
+                loaded[moduleName] = false;
+                context.scriptCount += 1;
+
+                //Indicate this is not a "real" module, so do not track it
+                //for builds, it does not map to a real file.
+                context.fake[moduleName] = true;
+
+                //Turn off interactive script matching for IE for any define
+                //calls in the text, then turn it back on at the end.
+                if (hasInteractive) {
+                    useInteractive = false;
+                }
+
+                req.exec(text);
+
+                if (hasInteractive) {
+                    useInteractive = true;
+                }
+
+                //Support anonymous modules.
+                context.completeLoad(moduleName);
+            };
+
+            //No need to continue if the plugin value has already been
+            //defined by a build.
+            if (fullName in defined) {
+                load(defined[fullName]);
+            } else {
+                //Use parentName here since the plugin's name is not reliable,
+                //could be some weird string with no path that actually wants to
+                //reference the parentName's path.
+                plugin.load(name, makeRequire(map.parentMap, true, function (deps, cb) {
+                    var moduleDeps = [],
+                        i, dep, depMap;
+                    //Convert deps to full names and hold on to them
+                    //for reference later, when figuring out if they
+                    //are blocked by a circular dependency.
+                    for (i = 0; (dep = deps[i]); i++) {
+                        depMap = makeModuleMap(dep, map.parentMap);
+                        deps[i] = depMap.fullName;
+                        if (!depMap.prefix) {
+                            moduleDeps.push(deps[i]);
+                        }
+                    }
+                    depManager.moduleDeps = (depManager.moduleDeps || []).concat(moduleDeps);
+                    return context.require(deps, cb);
+                }), load, config);
+            }
+        }
+
+        /**
+         * Adds the manager to the waiting queue. Only fully
+         * resolved items should be in the waiting queue.
+         */
+        function addWait(manager) {
+            if (!waiting[manager.id]) {
+                waiting[manager.id] = manager;
+                waitAry.push(manager);
+                context.waitCount += 1;
+            }
+        }
+
+        /**
+         * Function added to every manager object. Created out here
+         * to avoid new function creation for each manager instance.
+         */
+        function managerAdd(cb) {
+            this.listeners.push(cb);
+        }
+
+        function getManager(map, shouldQueue) {
+            var fullName = map.fullName,
+                prefix = map.prefix,
+                plugin = prefix ? plugins[prefix] ||
+                                (plugins[prefix] = defined[prefix]) : null,
+                manager, created, pluginManager, prefixMap;
+
+            if (fullName) {
+                manager = managerCallbacks[fullName];
+            }
+
+            if (!manager) {
+                created = true;
+                manager = {
+                    //ID is just the full name, but if it is a plugin resource
+                    //for a plugin that has not been loaded,
+                    //then add an ID counter to it.
+                    id: (prefix && !plugin ?
+                        (managerCounter++) + '__p@:' : '') +
+                        (fullName || '__r@' + (managerCounter++)),
+                    map: map,
+                    depCount: 0,
+                    depDone: [],
+                    depCallbacks: [],
+                    deps: [],
+                    listeners: [],
+                    add: managerAdd
+                };
+
+                specified[manager.id] = true;
+
+                //Only track the manager/reuse it if this is a non-plugin
+                //resource. Also only track plugin resources once
+                //the plugin has been loaded, and so the fullName is the
+                //true normalized value.
+                if (fullName && (!prefix || plugins[prefix])) {
+                    managerCallbacks[fullName] = manager;
+                }
+            }
+
+            //If there is a plugin needed, but it is not loaded,
+            //first load the plugin, then continue on.
+            if (prefix && !plugin) {
+                prefixMap = makeModuleMap(prefix);
+
+                //Clear out defined and urlFetched if the plugin was previously
+                //loaded/defined, but not as full module (as in a build
+                //situation). However, only do this work if the plugin is in
+                //defined but does not have a module export value.
+                if (prefix in defined && !defined[prefix]) {
+                    delete defined[prefix];
+                    delete urlFetched[prefixMap.url];
+                }
+
+                pluginManager = getManager(prefixMap, true);
+                pluginManager.add(function (plugin) {
+                    //Create a new manager for the normalized
+                    //resource ID and have it call this manager when
+                    //done.
+                    var newMap = makeModuleMap(map.originalName, map.parentMap),
+                        normalizedManager = getManager(newMap, true);
+
+                    //Indicate this manager is a placeholder for the real,
+                    //normalized thing. Important for when trying to map
+                    //modules and dependencies, for instance, in a build.
+                    manager.placeholder = true;
+
+                    normalizedManager.add(function (resource) {
+                        manager.callback = function () {
+                            return resource;
+                        };
+                        execManager(manager);
+                    });
+                });
+            } else if (created && shouldQueue) {
+                //Indicate the resource is not loaded yet if it is to be
+                //queued.
+                loaded[manager.id] = false;
+                queueDependency(manager);
+                addWait(manager);
+            }
+
+            return manager;
+        }
+
+        function main(inName, depArray, callback, relModuleMap) {
+            var moduleMap = makeModuleMap(inName, relModuleMap),
+                name = moduleMap.name,
+                fullName = moduleMap.fullName,
+                manager = getManager(moduleMap),
+                id = manager.id,
+                deps = manager.deps,
+                i, depArg, depName, depPrefix, cjsMod;
+
+            if (fullName) {
+                //If module already defined for context, or already loaded,
+                //then leave. Also leave if jQuery is registering but it does
+                //not match the desired version number in the config.
+                if (fullName in defined || loaded[id] === true ||
+                    (fullName === "jquery" && config.jQuery &&
+                     config.jQuery !== callback().fn.jquery)) {
+                    return;
+                }
+
+                //Set specified/loaded here for modules that are also loaded
+                //as part of a layer, where onScriptLoad is not fired
+                //for those cases. Do this after the inline define and
+                //dependency tracing is done.
+                specified[id] = true;
+                loaded[id] = true;
+
+                //If module is jQuery set up delaying its dom ready listeners.
+                if (fullName === "jquery" && callback) {
+                    jQueryCheck(callback());
+                }
+            }
+
+            //Attach real depArray and callback to the manager. Do this
+            //only if the module has not been defined already, so do this after
+            //the fullName checks above. IE can call main() more than once
+            //for a module.
+            manager.depArray = depArray;
+            manager.callback = callback;
+
+            //Add the dependencies to the deps field, and register for callbacks
+            //on the dependencies.
+            for (i = 0; i < depArray.length; i++) {
+                depArg = depArray[i];
+                //There could be cases like in IE, where a trailing comma will
+                //introduce a null dependency, so only treat a real dependency
+                //value as a dependency.
+                if (depArg) {
+                    //Split the dependency name into plugin and name parts
+                    depArg = makeModuleMap(depArg, (name ? moduleMap : relModuleMap));
+                    depName = depArg.fullName;
+                    depPrefix = depArg.prefix;
+
+                    //Fix the name in depArray to be just the name, since
+                    //that is how it will be called back later.
+                    depArray[i] = depName;
+
+                    //Fast path CommonJS standard dependencies.
+                    if (depName === "require") {
+                        deps[i] = makeRequire(moduleMap);
+                    } else if (depName === "exports") {
+                        //CommonJS module spec 1.1
+                        deps[i] = defined[fullName] = {};
+                        manager.usingExports = true;
+                    } else if (depName === "module") {
+                        //CommonJS module spec 1.1
+                        manager.cjsModule = cjsMod = deps[i] = {
+                            id: name,
+                            uri: name ? context.nameToUrl(name, null, relModuleMap) : undefined,
+                            exports: defined[fullName]
+                        };
+                    } else if (depName in defined && !(depName in waiting) &&
+                               (!(fullName in needFullExec) ||
+                                (fullName in needFullExec && fullExec[depName]))) {
+                        //Module already defined, and not in a build situation
+                        //where the module is a something that needs full
+                        //execution and this dependency has not been fully
+                        //executed. See r.js's requirePatch.js for more info
+                        //on fullExec.
+                        deps[i] = defined[depName];
+                    } else {
+                        //Mark this dependency as needing full exec if
+                        //the current module needs full exec.
+                        if (fullName in needFullExec) {
+                            needFullExec[depName] = true;
+                            //Reset state so fully executed code will get
+                            //picked up correctly.
+                            delete defined[depName];
+                            urlFetched[depArg.url] = false;
+                        }
+
+                        //Either a resource that is not loaded yet, or a plugin
+                        //resource for either a plugin that has not
+                        //loaded yet.
+                        manager.depCount += 1;
+                        manager.depCallbacks[i] = makeArgCallback(manager, i);
+                        getManager(depArg, true).add(manager.depCallbacks[i]);
+                    }
+                }
+            }
+
+            //Do not bother tracking the manager if it is all done.
+            if (!manager.depCount) {
+                //All done, execute!
+                execManager(manager);
+            } else {
+                addWait(manager);
+            }
+        }
+
+        /**
+         * Convenience method to call main for a define call that was put on
+         * hold in the defQueue.
+         */
+        function callDefMain(args) {
+            main.apply(null, args);
+        }
+
+        /**
+         * jQuery 1.4.3+ supports ways to hold off calling
+         * calling jQuery ready callbacks until all scripts are loaded. Be sure
+         * to track it if the capability exists.. Also, since jQuery 1.4.3 does
+         * not register as a module, need to do some global inference checking.
+         * Even if it does register as a module, not guaranteed to be the precise
+         * name of the global. If a jQuery is tracked for this context, then go
+         * ahead and register it as a module too, if not already in process.
+         */
+        jQueryCheck = function (jqCandidate) {
+            if (!context.jQuery) {
+                var $ = jqCandidate || (typeof jQuery !== "undefined" ? jQuery : null);
+
+                if ($) {
+                    //If a specific version of jQuery is wanted, make sure to only
+                    //use this jQuery if it matches.
+                    if (config.jQuery && $.fn.jquery !== config.jQuery) {
+                        return;
+                    }
+
+                    if ("holdReady" in $ || "readyWait" in $) {
+                        context.jQuery = $;
+
+                        //Manually create a "jquery" module entry if not one already
+                        //or in process. Note this could trigger an attempt at
+                        //a second jQuery registration, but does no harm since
+                        //the first one wins, and it is the same value anyway.
+                        callDefMain(["jquery", [], function () {
+                            return jQuery;
+                        }]);
+
+                        //Ask jQuery to hold DOM ready callbacks.
+                        if (context.scriptCount) {
+                            jQueryHoldReady($, true);
+                            context.jQueryIncremented = true;
+                        }
+                    }
+                }
+            }
+        };
+
+        function findCycle(manager, traced) {
+            var fullName = manager.map.fullName,
+                depArray = manager.depArray,
+                fullyLoaded = true,
+                i, depName, depManager, result;
+
+            if (manager.isDone || !fullName || !loaded[fullName]) {
+                return result;
+            }
+
+            //Found the cycle.
+            if (traced[fullName]) {
+                return manager;
+            }
+
+            traced[fullName] = true;
+
+            //Trace through the dependencies.
+            if (depArray) {
+                for (i = 0; i < depArray.length; i++) {
+                    //Some array members may be null, like if a trailing comma
+                    //IE, so do the explicit [i] access and check if it has a value.
+                    depName = depArray[i];
+                    if (!loaded[depName] && !reservedDependencies[depName]) {
+                        fullyLoaded = false;
+                        break;
+                    }
+                    depManager = waiting[depName];
+                    if (depManager && !depManager.isDone && loaded[depName]) {
+                        result = findCycle(depManager, traced);
+                        if (result) {
+                            break;
+                        }
+                    }
+                }
+                if (!fullyLoaded) {
+                    //Discard the cycle that was found, since it cannot
+                    //be forced yet. Also clear this module from traced.
+                    result = undefined;
+                    delete traced[fullName];
+                }
+            }
+
+            return result;
+        }
+
+        function forceExec(manager, traced) {
+            var fullName = manager.map.fullName,
+                depArray = manager.depArray,
+                i, depName, depManager, prefix, prefixManager, value;
+
+
+            if (manager.isDone || !fullName || !loaded[fullName]) {
+                return undefined;
+            }
+
+            if (fullName) {
+                if (traced[fullName]) {
+                    return defined[fullName];
+                }
+
+                traced[fullName] = true;
+            }
+
+            //Trace through the dependencies.
+            if (depArray) {
+                for (i = 0; i < depArray.length; i++) {
+                    //Some array members may be null, like if a trailing comma
+                    //IE, so do the explicit [i] access and check if it has a value.
+                    depName = depArray[i];
+                    if (depName) {
+                        //First, make sure if it is a plugin resource that the
+                        //plugin is not blocked.
+                        prefix = makeModuleMap(depName).prefix;
+                        if (prefix && (prefixManager = waiting[prefix])) {
+                            forceExec(prefixManager, traced);
+                        }
+                        depManager = waiting[depName];
+                        if (depManager && !depManager.isDone && loaded[depName]) {
+                            value = forceExec(depManager, traced);
+                            manager.depCallbacks[i](value);
+                        }
+                    }
+                }
+            }
+
+            return defined[fullName];
+        }
+
+        /**
+         * Checks if all modules for a context are loaded, and if so, evaluates the
+         * new ones in right dependency order.
+         *
+         * @private
+         */
+        function checkLoaded() {
+            var waitInterval = config.waitSeconds * 1000,
+                //It is possible to disable the wait interval by using waitSeconds of 0.
+                expired = waitInterval && (context.startTime + waitInterval) < new Date().getTime(),
+                noLoads = "", hasLoadedProp = false, stillLoading = false,
+                cycleDeps = [],
+                i, prop, err, manager, cycleManager, moduleDeps;
+
+            //If there are items still in the paused queue processing wait.
+            //This is particularly important in the sync case where each paused
+            //item is processed right away but there may be more waiting.
+            if (context.pausedCount > 0) {
+                return undefined;
+            }
+
+            //Determine if priority loading is done. If so clear the priority. If
+            //not, then do not check
+            if (config.priorityWait) {
+                if (isPriorityDone()) {
+                    //Call resume, since it could have
+                    //some waiting dependencies to trace.
+                    resume();
+                } else {
+                    return undefined;
+                }
+            }
+
+            //See if anything is still in flight.
+            for (prop in loaded) {
+                if (!(prop in empty)) {
+                    hasLoadedProp = true;
+                    if (!loaded[prop]) {
+                        if (expired) {
+                            noLoads += prop + " ";
+                        } else {
+                            stillLoading = true;
+                            if (prop.indexOf('!') === -1) {
+                                //No reason to keep looking for unfinished
+                                //loading. If the only stillLoading is a
+                                //plugin resource though, keep going,
+                                //because it may be that a plugin resource
+                                //is waiting on a non-plugin cycle.
+                                cycleDeps = [];
+                                break;
+                            } else {
+                                moduleDeps = managerCallbacks[prop] && managerCallbacks[prop].moduleDeps;
+                                if (moduleDeps) {
+                                    cycleDeps.push.apply(cycleDeps, moduleDeps);
+                                }
+                            }
+                        }
+                    }
+                }
+            }
+
+            //Check for exit conditions.
+            if (!hasLoadedProp && !context.waitCount) {
+                //If the loaded object had no items, then the rest of
+                //the work below does not need to be done.
+                return undefined;
+            }
+            if (expired && noLoads) {
+                //If wait time expired, throw error of unloaded modules.
+                err = makeError("timeout", "Load timeout for modules: " + noLoads);
+                err.requireType = "timeout";
+                err.requireModules = noLoads;
+                err.contextName = context.contextName;
+                return req.onError(err);
+            }
+
+            //If still loading but a plugin is waiting on a regular module cycle
+            //break the cycle.
+            if (stillLoading && cycleDeps.length) {
+                for (i = 0; (manager = waiting[cycleDeps[i]]); i++) {
+                    if ((cycleManager = findCycle(manager, {}))) {
+                        forceExec(cycleManager, {});
+                        break;
+                    }
+                }
+
+            }
+
+            //If still waiting on loads, and the waiting load is something
+            //other than a plugin resource, or there are still outstanding
+            //scripts, then just try back later.
+            if (!expired && (stillLoading || context.scriptCount)) {
+                //Something is still waiting to load. Wait for it, but only
+                //if a timeout is not already in effect.
+                if ((isBrowser || isWebWorker) && !checkLoadedTimeoutId) {
+                    checkLoadedTimeoutId = setTimeout(function () {
+                        checkLoadedTimeoutId = 0;
+                        checkLoaded();
+                    }, 50);
+                }
+                return undefined;
+            }
+
+            //If still have items in the waiting cue, but all modules have
+            //been loaded, then it means there are some circular dependencies
+            //that need to be broken.
+            //However, as a waiting thing is fired, then it can add items to
+            //the waiting cue, and those items should not be fired yet, so
+            //make sure to redo the checkLoaded call after breaking a single
+            //cycle, if nothing else loaded then this logic will pick it up
+            //again.
+            if (context.waitCount) {
+                //Cycle through the waitAry, and call items in sequence.
+                for (i = 0; (manager = waitAry[i]); i++) {
+                    forceExec(manager, {});
+                }
+
+                //If anything got placed in the paused queue, run it down.
+                if (context.paused.length) {
+                    resume();
+                }
+
+                //Only allow this recursion to a certain depth. Only
+                //triggered by errors in calling a module in which its
+                //modules waiting on it cannot finish loading, or some circular
+                //dependencies that then may add more dependencies.
+                //The value of 5 is a bit arbitrary. Hopefully just one extra
+                //pass, or two for the case of circular dependencies generating
+                //more work that gets resolved in the sync node case.
+                if (checkLoadedDepth < 5) {
+                    checkLoadedDepth += 1;
+                    checkLoaded();
+                }
+            }
+
+            checkLoadedDepth = 0;
+
+            //Check for DOM ready, and nothing is waiting across contexts.
+            req.checkReadyState();
+
+            return undefined;
+        }
+
+        /**
+         * Resumes tracing of dependencies and then checks if everything is loaded.
+         */
+        resume = function () {
+            var manager, map, url, i, p, args, fullName;
+
+            //Any defined modules in the global queue, intake them now.
+            context.takeGlobalQueue();
+
+            resumeDepth += 1;
+
+            if (context.scriptCount <= 0) {
+                //Synchronous envs will push the number below zero with the
+                //decrement above, be sure to set it back to zero for good measure.
+                //require() calls that also do not end up loading scripts could
+                //push the number negative too.
+                context.scriptCount = 0;
+            }
+
+            //Make sure any remaining defQueue items get properly processed.
+            while (defQueue.length) {
+                args = defQueue.shift();
+                if (args[0] === null) {
+                    return req.onError(makeError('mismatch', 'Mismatched anonymous define() module: ' + args[args.length - 1]));
+                } else {
+                    callDefMain(args);
+                }
+            }
+
+            //Skip the resume of paused dependencies
+            //if current context is in priority wait.
+            if (!config.priorityWait || isPriorityDone()) {
+                while (context.paused.length) {
+                    p = context.paused;
+                    context.pausedCount += p.length;
+                    //Reset paused list
+                    context.paused = [];
+
+                    for (i = 0; (manager = p[i]); i++) {
+                        map = manager.map;
+                        url = map.url;
+                        fullName = map.fullName;
+
+                        //If the manager is for a plugin managed resource,
+                        //ask the plugin to load it now.
+                        if (map.prefix) {
+                            callPlugin(map.prefix, manager);
+                        } else {
+                            //Regular dependency.
+                            if (!urlFetched[url] && !loaded[fullName]) {
+                                req.load(context, fullName, url);
+
+                                //Mark the URL as fetched, but only if it is
+                                //not an empty: URL, used by the optimizer.
+                                //In that case we need to be sure to call
+                                //load() for each module that is mapped to
+                                //empty: so that dependencies are satisfied
+                                //correctly.
+                                if (url.indexOf('empty:') !== 0) {
+                                    urlFetched[url] = true;
+                                }
+                            }
+                        }
+                    }
+
+                    //Move the start time for timeout forward.
+                    context.startTime = (new Date()).getTime();
+                    context.pausedCount -= p.length;
+                }
+            }
+
+            //Only check if loaded when resume depth is 1. It is likely that
+            //it is only greater than 1 in sync environments where a factory
+            //function also then calls the callback-style require. In those
+            //cases, the checkLoaded should not occur until the resume
+            //depth is back at the top level.
+            if (resumeDepth === 1) {
+                checkLoaded();
+            }
+
+            resumeDepth -= 1;
+
+            return undefined;
+        };
+
+        //Define the context object. Many of these fields are on here
+        //just to make debugging easier.
+        context = {
+            contextName: contextName,
+            config: config,
+            defQueue: defQueue,
+            waiting: waiting,
+            waitCount: 0,
+            specified: specified,
+            loaded: loaded,
+            urlMap: urlMap,
+            urlFetched: urlFetched,
+            scriptCount: 0,
+            defined: defined,
+            paused: [],
+            pausedCount: 0,
+            plugins: plugins,
+            needFullExec: needFullExec,
+            fake: {},
+            fullExec: fullExec,
+            managerCallbacks: managerCallbacks,
+            makeModuleMap: makeModuleMap,
+            normalize: normalize,
+            /**
+             * Set a configuration for the context.
+             * @param {Object} cfg config object to integrate.
+             */
+            configure: function (cfg) {
+                var paths, prop, packages, pkgs, packagePaths, requireWait;
+
+                //Make sure the baseUrl ends in a slash.
+                if (cfg.baseUrl) {
+                    if (cfg.baseUrl.charAt(cfg.baseUrl.length - 1) !== "/") {
+                        cfg.baseUrl += "/";
+                    }
+                }
+
+                //Save off the paths and packages since they require special processing,
+                //they are additive.
+                paths = config.paths;
+                packages = config.packages;
+                pkgs = config.pkgs;
+
+                //Mix in the config values, favoring the new values over
+                //existing ones in context.config.
+                mixin(config, cfg, true);
+
+                //Adjust paths if necessary.
+                if (cfg.paths) {
+                    for (prop in cfg.paths) {
+                        if (!(prop in empty)) {
+                            paths[prop] = cfg.paths[prop];
+                        }
+                    }
+                    config.paths = paths;
+                }
+
+                packagePaths = cfg.packagePaths;
+                if (packagePaths || cfg.packages) {
+                    //Convert packagePaths into a packages config.
+                    if (packagePaths) {
+                        for (prop in packagePaths) {
+                            if (!(prop in empty)) {
+                                configurePackageDir(pkgs, packagePaths[prop], prop);
+                            }
+                        }
+                    }
+
+                    //Adjust packages if necessary.
+                    if (cfg.packages) {
+                        configurePackageDir(pkgs, cfg.packages);
+                    }
+
+                    //Done with modifications, assing packages back to context config
+                    config.pkgs = pkgs;
+                }
+
+                //If priority loading is in effect, trigger the loads now
+                if (cfg.priority) {
+                    //Hold on to requireWait value, and reset it after done
+                    requireWait = context.requireWait;
+
+                    //Allow tracing some require calls to allow the fetching
+                    //of the priority config.
+                    context.requireWait = false;
+                    //But first, call resume to register any defined modules that may
+                    //be in a data-main built file before the priority config
+                    //call.
+                    resume();
+
+                    context.require(cfg.priority);
+
+                    //Trigger a resume right away, for the case when
+                    //the script with the priority load is done as part
+                    //of a data-main call. In that case the normal resume
+                    //call will not happen because the scriptCount will be
+                    //at 1, since the script for data-main is being processed.
+                    resume();
+
+                    //Restore previous state.
+                    context.requireWait = requireWait;
+                    config.priorityWait = cfg.priority;
+                }
+
+                //If a deps array or a config callback is specified, then call
+                //require with those args. This is useful when require is defined as a
+                //config object before require.js is loaded.
+                if (cfg.deps || cfg.callback) {
+                    context.require(cfg.deps || [], cfg.callback);
+                }
+            },
+
+            requireDefined: function (moduleName, relModuleMap) {
+                return makeModuleMap(moduleName, relModuleMap).fullName in defined;
+            },
+
+            requireSpecified: function (moduleName, relModuleMap) {
+                return makeModuleMap(moduleName, relModuleMap).fullName in specified;
+            },
+
+            require: function (deps, callback, relModuleMap) {
+                var moduleName, fullName, moduleMap;
+                if (typeof deps === "string") {
+                    if (isFunction(callback)) {
+                        //Invalid call
+                        return req.onError(makeError("requireargs", "Invalid require call"));
+                    }
+
+                    //Synchronous access to one module. If require.get is
+                    //available (as in the Node adapter), prefer that.
+                    //In this case deps is the moduleName and callback is
+                    //the relModuleMap
+                    if (req.get) {
+                        return req.get(context, deps, callback);
+                    }
+
+                    //Just return the module wanted. In this scenario, the
+                    //second arg (if passed) is just the relModuleMap.
+                    moduleName = deps;
+                    relModuleMap = callback;
+
+                    //Normalize module name, if it contains . or ..
+                    moduleMap = makeModuleMap(moduleName, relModuleMap);
+                    fullName = moduleMap.fullName;
+
+                    if (!(fullName in defined)) {
+                        return req.onError(makeError("notloaded", "Module name '" +
+                                    moduleMap.fullName +
+                                    "' has not been loaded yet for context: " +
+                                    contextName));
+                    }
+                    return defined[fullName];
+                }
+
+                //Call main but only if there are dependencies or
+                //a callback to call.
+                if (deps && deps.length || callback) {
+                    main(null, deps, callback, relModuleMap);
+                }
+
+                //If the require call does not trigger anything new to load,
+                //then resume the dependency processing.
+                if (!context.requireWait) {
+                    while (!context.scriptCount && context.paused.length) {
+                        resume();
+                    }
+                }
+                return context.require;
+            },
+
+            /**
+             * Internal method to transfer globalQueue items to this context's
+             * defQueue.
+             */
+            takeGlobalQueue: function () {
+                //Push all the globalDefQueue items into the context's defQueue
+                if (globalDefQueue.length) {
+                    //Array splice in the values since the context code has a
+                    //local var ref to defQueue, so cannot just reassign the one
+                    //on context.
+                    apsp.apply(context.defQueue,
+                               [context.defQueue.length - 1, 0].concat(globalDefQueue));
+                    globalDefQueue = [];
+                }
+            },
+
+            /**
+             * Internal method used by environment adapters to complete a load event.
+             * A load event could be a script load or just a load pass from a synchronous
+             * load call.
+             * @param {String} moduleName the name of the module to potentially complete.
+             */
+            completeLoad: function (moduleName) {
+                var args;
+
+                context.takeGlobalQueue();
+
+                while (defQueue.length) {
+                    args = defQueue.shift();
+
+                    if (args[0] === null) {
+                        args[0] = moduleName;
+                        break;
+                    } else if (args[0] === moduleName) {
+                        //Found matching define call for this script!
+                        break;
+                    } else {
+                        //Some other named define call, most likely the result
+                        //of a build layer that included many define calls.
+                        callDefMain(args);
+                        args = null;
+                    }
+                }
+                if (args) {
+                    callDefMain(args);
+                } else {
+                    //A script that does not call define(), so just simulate
+                    //the call for it. Special exception for jQuery dynamic load.
+                    callDefMain([moduleName, [],
+                                moduleName === "jquery" && typeof jQuery !== "undefined" ?
+                                function () {
+                                    return jQuery;
+                                } : null]);
+                }
+
+                //Doing this scriptCount decrement branching because sync envs
+                //need to decrement after resume, otherwise it looks like
+                //loading is complete after the first dependency is fetched.
+                //For browsers, it works fine to decrement after, but it means
+                //the checkLoaded setTimeout 50 ms cost is taken. To avoid
+                //that cost, decrement beforehand.
+                if (req.isAsync) {
+                    context.scriptCount -= 1;
+                }
+                resume();
+                if (!req.isAsync) {
+                    context.scriptCount -= 1;
+                }
+            },
+
+            /**
+             * Converts a module name + .extension into an URL path.
+             * *Requires* the use of a module name. It does not support using
+             * plain URLs like nameToUrl.
+             */
+            toUrl: function (moduleNamePlusExt, relModuleMap) {
+                var index = moduleNamePlusExt.lastIndexOf("."),
+                    ext = null;
+
+                if (index !== -1) {
+                    ext = moduleNamePlusExt.substring(index, moduleNamePlusExt.length);
+                    moduleNamePlusExt = moduleNamePlusExt.substring(0, index);
+                }
+
+                return context.nameToUrl(moduleNamePlusExt, ext, relModuleMap);
+            },
+
+            /**
+             * Converts a module name to a file path. Supports cases where
+             * moduleName may actually be just an URL.
+             */
+            nameToUrl: function (moduleName, ext, relModuleMap) {
+                var paths, pkgs, pkg, pkgPath, syms, i, parentModule, url,
+                    config = context.config;
+
+                //Normalize module name if have a base relative module name to work from.
+                moduleName = normalize(moduleName, relModuleMap && relModuleMap.fullName);
+
+                //If a colon is in the URL, it indicates a protocol is used and it is just
+                //an URL to a file, or if it starts with a slash or ends with .js, it is just a plain file.
+                //The slash is important for protocol-less URLs as well as full paths.
+                if (req.jsExtRegExp.test(moduleName)) {
+                    //Just a plain path, not module name lookup, so just return it.
+                    //Add extension if it is included. This is a bit wonky, only non-.js things pass
+                    //an extension, this method probably needs to be reworked.
+                    url = moduleName + (ext ? ext : "");
+                } else {
+                    //A module that needs to be converted to a path.
+                    paths = config.paths;
+                    pkgs = config.pkgs;
+
+                    syms = moduleName.split("/");
+                    //For each module name segment, see if there is a path
+                    //registered for it. Start with most specific name
+                    //and work up from it.
+                    for (i = syms.length; i > 0; i--) {
+                        parentModule = syms.slice(0, i).join("/");
+                        if (paths[parentModule]) {
+                            syms.splice(0, i, paths[parentModule]);
+                            break;
+                        } else if ((pkg = pkgs[parentModule])) {
+                            //If module name is just the package name, then looking
+                            //for the main module.
+                            if (moduleName === pkg.name) {
+                                pkgPath = pkg.location + '/' + pkg.main;
+                            } else {
+                                pkgPath = pkg.location;
+                            }
+                            syms.splice(0, i, pkgPath);
+                            break;
+                        }
+                    }
+
+                    //Join the path parts together, then figure out if baseUrl is needed.
+                    url = syms.join("/") + (ext || ".js");
+                    url = (url.charAt(0) === '/' || url.match(/^\w+:/) ? "" : config.baseUrl) + url;
+                }
+
+                return config.urlArgs ? url +
+                                        ((url.indexOf('?') === -1 ? '?' : '&') +
+                                         config.urlArgs) : url;
+            }
+        };
+
+        //Make these visible on the context so can be called at the very
+        //end of the file to bootstrap
+        context.jQueryCheck = jQueryCheck;
+        context.resume = resume;
+
+        return context;
+    }
+
+    /**
+     * Main entry point.
+     *
+     * If the only argument to require is a string, then the module that
+     * is represented by that string is fetched for the appropriate context.
+     *
+     * If the first argument is an array, then it will be treated as an array
+     * of dependency string names to fetch. An optional function callback can
+     * be specified to execute when all of those dependencies are available.
+     *
+     * Make a local req variable to help Caja compliance (it assumes things
+     * on a require that are not standardized), and to give a short
+     * name for minification/local scope use.
+     */
+    req = requirejs = function (deps, callback) {
+
+        //Find the right context, use default
+        var contextName = defContextName,
+            context, config;
+
+        // Determine if have config object in the call.
+        if (!isArray(deps) && typeof deps !== "string") {
+            // deps is a config object
+            config = deps;
+            if (isArray(callback)) {
+                // Adjust args if there are dependencies
+                deps = callback;
+                callback = arguments[2];
+            } else {
+                deps = [];
+            }
+        }
+
+        if (config && config.context) {
+            contextName = config.context;
+        }
+
+        context = contexts[contextName] ||
+                  (contexts[contextName] = newContext(contextName));
+
+        if (config) {
+            context.configure(config);
+        }
+
+        return context.require(deps, callback);
+    };
+
+    /**
+     * Support require.config() to make it easier to cooperate with other
+     * AMD loaders on globally agreed names.
+     */
+    req.config = function (config) {
+        return req(config);
+    };
+
+    /**
+     * Export require as a global, but only if it does not already exist.
+     */
+    if (!require) {
+        require = req;
+    }
+
+    /**
+     * Global require.toUrl(), to match global require, mostly useful
+     * for debugging/work in the global space.
+     */
+    req.toUrl = function (moduleNamePlusExt) {
+        return contexts[defContextName].toUrl(moduleNamePlusExt);
+    };
+
+    req.version = version;
+
+    //Used to filter out dependencies that are already paths.
+    req.jsExtRegExp = /^\/|:|\?|\.js$/;
+    s = req.s = {
+        contexts: contexts,
+        //Stores a list of URLs that should not get async script tag treatment.
+        skipAsync: {}
+    };
+
+    req.isAsync = req.isBrowser = isBrowser;
+    if (isBrowser) {
+        head = s.head = document.getElementsByTagName("head")[0];
+        //If BASE tag is in play, using appendChild is a problem for IE6.
+        //When that browser dies, this can be removed. Details in this jQuery bug:
+        //http://dev.jquery.com/ticket/2709
+        baseElement = document.getElementsByTagName("base")[0];
+        if (baseElement) {
+            head = s.head = baseElement.parentNode;
+        }
+    }
+
+    /**
+     * Any errors that require explicitly generates will be passed to this
+     * function. Intercept/override it if you want custom error handling.
+     * @param {Error} err the error object.
+     */
+    req.onError = function (err) {
+        throw err;
+    };
+
+    /**
+     * Does the request to load a module for the browser case.
+     * Make this a separate function to allow other environments
+     * to override it.
+     *
+     * @param {Object} context the require context to find state.
+     * @param {String} moduleName the name of the module.
+     * @param {Object} url the URL to the module.
+     */
+    req.load = function (context, moduleName, url) {
+        req.resourcesReady(false);
+
+        context.scriptCount += 1;
+        req.attach(url, context, moduleName);
+
+        //If tracking a jQuery, then make sure its ready callbacks
+        //are put on hold to prevent its ready callbacks from
+        //triggering too soon.
+        if (context.jQuery && !context.jQueryIncremented) {
+            jQueryHoldReady(context.jQuery, true);
+            context.jQueryIncremented = true;
+        }
+    };
+
+    function getInteractiveScript() {
+        var scripts, i, script;
+        if (interactiveScript && interactiveScript.readyState === 'interactive') {
+            return interactiveScript;
+        }
+
+        scripts = document.getElementsByTagName('script');
+        for (i = scripts.length - 1; i > -1 && (script = scripts[i]); i--) {
+            if (script.readyState === 'interactive') {
+                return (interactiveScript = script);
+            }
+        }
+
+        return null;
+    }
+
+    /**
+     * The function that handles definitions of modules. Differs from
+     * require() in that a string for the module should be the first argument,
+     * and the function to execute after dependencies are loaded should
+     * return a value to define the module corresponding to the first argument's
+     * name.
+     */
+    define = function (name, deps, callback) {
+        var node, context;
+
+        //Allow for anonymous functions
+        if (typeof name !== 'string') {
+            //Adjust args appropriately
+            callback = deps;
+            deps = name;
+            name = null;
+        }
+
+        //This module may not have dependencies
+        if (!isArray(deps)) {
+            callback = deps;
+            deps = [];
+        }
+
+        //If no name, and callback is a function, then figure out if it a
+        //CommonJS thing with dependencies.
+        if (!deps.length && isFunction(callback)) {
+            //Remove comments from the callback string,
+            //look for require calls, and pull them into the dependencies,
+            //but only if there are function args.
+            if (callback.length) {
+                callback
+                    .toString()
+                    .replace(commentRegExp, "")
+                    .replace(cjsRequireRegExp, function (match, dep) {
+                        deps.push(dep);
+                    });
+
+                //May be a CommonJS thing even without require calls, but still
+                //could use exports, and module. Avoid doing exports and module
+                //work though if it just needs require.
+                //REQUIRES the function to expect the CommonJS variables in the
+                //order listed below.
+                deps = (callback.length === 1 ? ["require"] : ["require", "exports", "module"]).concat(deps);
+            }
+        }
+
+        //If in IE 6-8 and hit an anonymous define() call, do the interactive
+        //work.
+        if (useInteractive) {
+            node = currentlyAddingScript || getInteractiveScript();
+            if (node) {
+                if (!name) {
+                    name = node.getAttribute("data-requiremodule");
+                }
+                context = contexts[node.getAttribute("data-requirecontext")];
+            }
+        }
+
+        //Always save off evaluating the def call until the script onload handler.
+        //This allows multiple modules to be in a file without prematurely
+        //tracing dependencies, and allows for anonymous module support,
+        //where the module name is not known until the script onload event
+        //occurs. If no context, use the global queue, and get it processed
+        //in the onscript load callback.
+        (context ? context.defQueue : globalDefQueue).push([name, deps, callback]);
+
+        return undefined;
+    };
+
+    define.amd = {
+        multiversion: true,
+        plugins: true,
+        jQuery: true
+    };
+
+    /**
+     * Executes the text. Normally just uses eval, but can be modified
+     * to use a more environment specific call.
+     * @param {String} text the text to execute/evaluate.
+     */
+    req.exec = function (text) {
+        return eval(text);
+    };
+
+    /**
+     * Executes a module callack function. Broken out as a separate function
+     * solely to allow the build system to sequence the files in the built
+     * layer in the right sequence.
+     *
+     * @private
+     */
+    req.execCb = function (name, callback, args, exports) {
+        return callback.apply(exports, args);
+    };
+
+
+    /**
+     * Adds a node to the DOM. Public function since used by the order plugin.
+     * This method should not normally be called by outside code.
+     */
+    req.addScriptToDom = function (node) {
+        //For some cache cases in IE 6-8, the script executes before the end
+        //of the appendChild execution, so to tie an anonymous define
+        //call to the module name (which is stored on the node), hold on
+        //to a reference to this node, but clear after the DOM insertion.
+        currentlyAddingScript = node;
+        if (baseElement) {
+            head.insertBefore(node, baseElement);
+        } else {
+            head.appendChild(node);
+        }
+        currentlyAddingScript = null;
+    };
+
+    /**
+     * callback for script loads, used to check status of loading.
+     *
+     * @param {Event} evt the event from the browser for the script
+     * that was loaded.
+     *
+     * @private
+     */
+    req.onScriptLoad = function (evt) {
+        //Using currentTarget instead of target for Firefox 2.0's sake. Not
+        //all old browsers will be supported, but this one was easy enough
+        //to support and still makes sense.
+        var node = evt.currentTarget || evt.srcElement, contextName, moduleName,
+            context;
+
+        if (evt.type === "load" || (node && readyRegExp.test(node.readyState))) {
+            //Reset interactive script so a script node is not held onto for
+            //to long.
+            interactiveScript = null;
+
+            //Pull out the name of the module and the context.
+            contextName = node.getAttribute("data-requirecontext");
+            moduleName = node.getAttribute("data-requiremodule");
+            context = contexts[contextName];
+
+            contexts[contextName].completeLoad(moduleName);
+
+            //Clean up script binding. Favor detachEvent because of IE9
+            //issue, see attachEvent/addEventListener comment elsewhere
+            //in this file.
+            if (node.detachEvent && !isOpera) {
+                //Probably IE. If not it will throw an error, which will be
+                //useful to know.
+                node.detachEvent("onreadystatechange", req.onScriptLoad);
+            } else {
+                node.removeEventListener("load", req.onScriptLoad, false);
+            }
+        }
+    };
+
+    /**
+     * Attaches the script represented by the URL to the current
+     * environment. Right now only supports browser loading,
+     * but can be redefined in other environments to do the right thing.
+     * @param {String} url the url of the script to attach.
+     * @param {Object} context the context that wants the script.
+     * @param {moduleName} the name of the module that is associated with the script.
+     * @param {Function} [callback] optional callback, defaults to require.onScriptLoad
+     * @param {String} [type] optional type, defaults to text/javascript
+     * @param {Function} [fetchOnlyFunction] optional function to indicate the script node
+     * should be set up to fetch the script but do not attach it to the DOM
+     * so that it can later be attached to execute it. This is a way for the
+     * order plugin to support ordered loading in IE. Once the script is fetched,
+     * but not executed, the fetchOnlyFunction will be called.
+     */
+    req.attach = function (url, context, moduleName, callback, type, fetchOnlyFunction) {
+        var node;
+        if (isBrowser) {
+            //In the browser so use a script tag
+            callback = callback || req.onScriptLoad;
+            node = context && context.config && context.config.xhtml ?
+                    document.createElementNS("http://www.w3.org/1999/xhtml", "html:script") :
+                    document.createElement("script");
+            node.type = type || (context && context.config.scriptType) ||
+                        "text/javascript";
+            node.charset = "utf-8";
+            //Use async so Gecko does not block on executing the script if something
+            //like a long-polling comet tag is being run first. Gecko likes
+            //to evaluate scripts in DOM order, even for dynamic scripts.
+            //It will fetch them async, but only evaluate the contents in DOM
+            //order, so a long-polling script tag can delay execution of scripts
+            //after it. But telling Gecko we expect async gets us the behavior
+            //we want -- execute it whenever it is finished downloading. Only
+            //Helps Firefox 3.6+
+            //Allow some URLs to not be fetched async. Mostly helps the order!
+            //plugin
+            node.async = !s.skipAsync[url];
+
+            if (context) {
+                node.setAttribute("data-requirecontext", context.contextName);
+            }
+            node.setAttribute("data-requiremodule", moduleName);
+
+            //Set up load listener. Test attachEvent first because IE9 has
+            //a subtle issue in its addEventListener and script onload firings
+            //that do not match the behavior of all other browsers with
+            //addEventListener support, which fire the onload event for a
+            //script right after the script execution. See:
+            //https://connect.microsoft.com/IE/feedback/details/648057/script-onload-event-is-not-fired-immediately-after-script-execution
+            //UNFORTUNATELY Opera implements attachEvent but does not follow the script
+            //script execution mode.
+            if (node.attachEvent && !isOpera) {
+                //Probably IE. IE (at least 6-8) do not fire
+                //script onload right after executing the script, so
+                //we cannot tie the anonymous define call to a name.
+                //However, IE reports the script as being in "interactive"
+                //readyState at the time of the define call.
+                useInteractive = true;
+
+
+                if (fetchOnlyFunction) {
+                    //Need to use old school onreadystate here since
+                    //when the event fires and the node is not attached
+                    //to the DOM, the evt.srcElement is null, so use
+                    //a closure to remember the node.
+                    node.onreadystatechange = function (evt) {
+                        //Script loaded but not executed.
+                        //Clear loaded handler, set the real one that
+                        //waits for script execution.
+                        if (node.readyState === 'loaded') {
+                            node.onreadystatechange = null;
+                            node.attachEvent("onreadystatechange", callback);
+                            fetchOnlyFunction(node);
+                        }
+                    };
+                } else {
+                    node.attachEvent("onreadystatechange", callback);
+                }
+            } else {
+                node.addEventListener("load", callback, false);
+            }
+            node.src = url;
+
+            //Fetch only means waiting to attach to DOM after loaded.
+            if (!fetchOnlyFunction) {
+                req.addScriptToDom(node);
+            }
+
+            return node;
+        } else if (isWebWorker) {
+            //In a web worker, use importScripts. This is not a very
+            //efficient use of importScripts, importScripts will block until
+            //its script is downloaded and evaluated. However, if web workers
+            //are in play, the expectation that a build has been done so that
+            //only one script needs to be loaded anyway. This may need to be
+            //reevaluated if other use cases become common.
+            importScripts(url);
+
+            //Account for anonymous modules
+            context.completeLoad(moduleName);
+        }
+        return null;
+    };
+
+    //Look for a data-main script attribute, which could also adjust the baseUrl.
+    if (isBrowser) {
+        //Figure out baseUrl. Get it from the script tag with require.js in it.
+        scripts = document.getElementsByTagName("script");
+
+        for (globalI = scripts.length - 1; globalI > -1 && (script = scripts[globalI]); globalI--) {
+            //Set the "head" where we can append children by
+            //using the script's parent.
+            if (!head) {
+                head = script.parentNode;
+            }
+
+            //Look for a data-main attribute to set main script for the page
+            //to load. If it is there, the path to data main becomes the
+            //baseUrl, if it is not already set.
+            if ((dataMain = script.getAttribute('data-main'))) {
+                if (!cfg.baseUrl) {
+                    //Pull off the directory of data-main for use as the
+                    //baseUrl.
+                    src = dataMain.split('/');
+                    mainScript = src.pop();
+                    subPath = src.length ? src.join('/')  + '/' : './';
+
+                    //Set final config.
+                    cfg.baseUrl = subPath;
+                    //Strip off any trailing .js since dataMain is now
+                    //like a module name.
+                    dataMain = mainScript.replace(jsSuffixRegExp, '');
+                }
+
+                //Put the data-main script in the files to load.
+                cfg.deps = cfg.deps ? cfg.deps.concat(dataMain) : [dataMain];
+
+                break;
+            }
+        }
+    }
+
+    //See if there is nothing waiting across contexts, and if not, trigger
+    //resourcesReady.
+    req.checkReadyState = function () {
+        var contexts = s.contexts, prop;
+        for (prop in contexts) {
+            if (!(prop in empty)) {
+                if (contexts[prop].waitCount) {
+                    return;
+                }
+            }
+        }
+        req.resourcesReady(true);
+    };
+
+    /**
+     * Internal function that is triggered whenever all scripts/resources
+     * have been loaded by the loader. Can be overridden by other, for
+     * instance the domReady plugin, which wants to know when all resources
+     * are loaded.
+     */
+    req.resourcesReady = function (isReady) {
+        var contexts, context, prop;
+
+        //First, set the public variable indicating that resources are loading.
+        req.resourcesDone = isReady;
+
+        if (req.resourcesDone) {
+            //If jQuery with DOM ready delayed, release it now.
+            contexts = s.contexts;
+            for (prop in contexts) {
+                if (!(prop in empty)) {
+                    context = contexts[prop];
+                    if (context.jQueryIncremented) {
+                        jQueryHoldReady(context.jQuery, false);
+                        context.jQueryIncremented = false;
+                    }
+                }
+            }
+        }
+    };
+
+    //FF < 3.6 readyState fix. Needed so that domReady plugin
+    //works well in that environment, since require.js is normally
+    //loaded via an HTML script tag so it will be there before window load,
+    //where the domReady plugin is more likely to be loaded after window load.
+    req.pageLoaded = function () {
+        if (document.readyState !== "complete") {
+            document.readyState = "complete";
+        }
+    };
+    if (isBrowser) {
+        if (document.addEventListener) {
+            if (!document.readyState) {
+                document.readyState = "loading";
+                window.addEventListener("load", req.pageLoaded, false);
+            }
+        }
+    }
+
+    //Set up default context. If require was a configuration object, use that as base config.
+    req(cfg);
+
+    //If modules are built into require.js, then need to make sure dependencies are
+    //traced. Use a setTimeout in the browser world, to allow all the modules to register
+    //themselves. In a non-browser env, assume that modules are not built into require.js,
+    //which seems odd to do on the server.
+    if (req.isAsync && typeof setTimeout !== "undefined") {
+        ctx = s.contexts[(cfg.context || defContextName)];
+        //Indicate that the script that includes require() is still loading,
+        //so that require()'d dependencies are not traced until the end of the
+        //file is parsed (approximated via the setTimeout call).
+        ctx.requireWait = true;
+        setTimeout(function () {
+            ctx.requireWait = false;
+
+            if (!ctx.scriptCount) {
+                ctx.resume();
+            }
+            req.checkReadyState();
+        }, 0);
+    }
+}());
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/external/requirejs/text.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/external/requirejs/text.js
new file mode 100644 (file)
index 0000000..6ef7422
--- /dev/null
@@ -0,0 +1,283 @@
+/**
+ * @license RequireJS text 1.0.2 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * Available via the MIT or new BSD license.
+ * see: http://github.com/jrburke/requirejs for details
+ */
+/*jslint regexp: false, nomen: false, plusplus: false, strict: false */
+/*global require: false, XMLHttpRequest: false, ActiveXObject: false,
+  define: false, window: false, process: false, Packages: false,
+  java: false, location: false */
+
+(function () {
+    var progIds = ['Msxml2.XMLHTTP', 'Microsoft.XMLHTTP', 'Msxml2.XMLHTTP.4.0'],
+        xmlRegExp = /^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,
+        bodyRegExp = /<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,
+        hasLocation = typeof location !== 'undefined' && location.href,
+        defaultProtocol = hasLocation && location.protocol && location.protocol.replace(/\:/, ''),
+        defaultHostName = hasLocation && location.hostname,
+        defaultPort = hasLocation && (location.port || undefined),
+        buildMap = [];
+
+    define(function () {
+        var text, get, fs;
+
+        if (typeof window !== "undefined" && window.navigator && window.document) {
+            get = function (url, callback) {
+                var xhr = text.createXhr();
+                xhr.open('GET', url, true);
+                xhr.onreadystatechange = function (evt) {
+                    //Do not explicitly handle errors, those should be
+                    //visible via console output in the browser.
+                    if (xhr.readyState === 4) {
+                        callback(xhr.responseText);
+                    }
+                };
+                xhr.send(null);
+            };
+        } else if (typeof process !== "undefined" &&
+                 process.versions &&
+                 !!process.versions.node) {
+            //Using special require.nodeRequire, something added by r.js.
+            fs = require.nodeRequire('fs');
+
+            get = function (url, callback) {
+                callback(fs.readFileSync(url, 'utf8'));
+            };
+        } else if (typeof Packages !== 'undefined') {
+            //Why Java, why is this so awkward?
+            get = function (url, callback) {
+                var encoding = "utf-8",
+                    file = new java.io.File(url),
+                    lineSeparator = java.lang.System.getProperty("line.separator"),
+                    input = new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(file), encoding)),
+                    stringBuffer, line,
+                    content = '';
+                try {
+                    stringBuffer = new java.lang.StringBuffer();
+                    line = input.readLine();
+
+                    // Byte Order Mark (BOM) - The Unicode Standard, version 3.0, page 324
+                    // http://www.unicode.org/faq/utf_bom.html
+
+                    // Note that when we use utf-8, the BOM should appear as "EF BB BF", but it doesn't due to this bug in the JDK:
+                    // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4508058
+                    if (line && line.length() && line.charAt(0) === 0xfeff) {
+                        // Eat the BOM, since we've already found the encoding on this file,
+                        // and we plan to concatenating this buffer with others; the BOM should
+                        // only appear at the top of a file.
+                        line = line.substring(1);
+                    }
+
+                    stringBuffer.append(line);
+
+                    while ((line = input.readLine()) !== null) {
+                        stringBuffer.append(lineSeparator);
+                        stringBuffer.append(line);
+                    }
+                    //Make sure we return a JavaScript string and not a Java string.
+                    content = String(stringBuffer.toString()); //String
+                } finally {
+                    input.close();
+                }
+                callback(content);
+            };
+        }
+
+        text = {
+            version: '1.0.2',
+
+            strip: function (content) {
+                //Strips <?xml ...?> declarations so that external SVG and XML
+                //documents can be added to a document without worry. Also, if the string
+                //is an HTML document, only the part inside the body tag is returned.
+                if (content) {
+                    content = content.replace(xmlRegExp, "");
+                    var matches = content.match(bodyRegExp);
+                    if (matches) {
+                        content = matches[1];
+                    }
+                } else {
+                    content = "";
+                }
+                return content;
+            },
+
+            jsEscape: function (content) {
+                return content.replace(/(['\\])/g, '\\$1')
+                    .replace(/[\f]/g, "\\f")
+                    .replace(/[\b]/g, "\\b")
+                    .replace(/[\n]/g, "\\n")
+                    .replace(/[\t]/g, "\\t")
+                    .replace(/[\r]/g, "\\r");
+            },
+
+            createXhr: function () {
+                //Would love to dump the ActiveX crap in here. Need IE 6 to die first.
+                var xhr, i, progId;
+                if (typeof XMLHttpRequest !== "undefined") {
+                    return new XMLHttpRequest();
+                } else {
+                    for (i = 0; i < 3; i++) {
+                        progId = progIds[i];
+                        try {
+                            xhr = new ActiveXObject(progId);
+                        } catch (e) {}
+
+                        if (xhr) {
+                            progIds = [progId];  // so faster next time
+                            break;
+                        }
+                    }
+                }
+
+                if (!xhr) {
+                    throw new Error("createXhr(): XMLHttpRequest not available");
+                }
+
+                return xhr;
+            },
+
+            get: get,
+
+            /**
+             * Parses a resource name into its component parts. Resource names
+             * look like: module/name.ext!strip, where the !strip part is
+             * optional.
+             * @param {String} name the resource name
+             * @returns {Object} with properties "moduleName", "ext" and "strip"
+             * where strip is a boolean.
+             */
+            parseName: function (name) {
+                var strip = false, index = name.indexOf("."),
+                    modName = name.substring(0, index),
+                    ext = name.substring(index + 1, name.length);
+
+                index = ext.indexOf("!");
+                if (index !== -1) {
+                    //Pull off the strip arg.
+                    strip = ext.substring(index + 1, ext.length);
+                    strip = strip === "strip";
+                    ext = ext.substring(0, index);
+                }
+
+                return {
+                    moduleName: modName,
+                    ext: ext,
+                    strip: strip
+                };
+            },
+
+            xdRegExp: /^((\w+)\:)?\/\/([^\/\\]+)/,
+
+            /**
+             * Is an URL on another domain. Only works for browser use, returns
+             * false in non-browser environments. Only used to know if an
+             * optimized .js version of a text resource should be loaded
+             * instead.
+             * @param {String} url
+             * @returns Boolean
+             */
+            useXhr: function (url, protocol, hostname, port) {
+                var match = text.xdRegExp.exec(url),
+                    uProtocol, uHostName, uPort;
+                if (!match) {
+                    return true;
+                }
+                uProtocol = match[2];
+                uHostName = match[3];
+
+                uHostName = uHostName.split(':');
+                uPort = uHostName[1];
+                uHostName = uHostName[0];
+
+                return (!uProtocol || uProtocol === protocol) &&
+                       (!uHostName || uHostName === hostname) &&
+                       ((!uPort && !uHostName) || uPort === port);
+            },
+
+            finishLoad: function (name, strip, content, onLoad, config) {
+                content = strip ? text.strip(content) : content;
+                if (config.isBuild) {
+                    buildMap[name] = content;
+                }
+                onLoad(content);
+            },
+
+            load: function (name, req, onLoad, config) {
+                //Name has format: some.module.filext!strip
+                //The strip part is optional.
+                //if strip is present, then that means only get the string contents
+                //inside a body tag in an HTML string. For XML/SVG content it means
+                //removing the <?xml ...?> declarations so the content can be inserted
+                //into the current doc without problems.
+
+                // Do not bother with the work if a build and text will
+                // not be inlined.
+                if (config.isBuild && !config.inlineText) {
+                    onLoad();
+                    return;
+                }
+
+                var parsed = text.parseName(name),
+                    nonStripName = parsed.moduleName + '.' + parsed.ext,
+                    url = req.toUrl(nonStripName),
+                    useXhr = (config && config.text && config.text.useXhr) ||
+                             text.useXhr;
+
+                //Load the text. Use XHR if possible and in a browser.
+                if (!hasLocation || useXhr(url, defaultProtocol, defaultHostName, defaultPort)) {
+                    text.get(url, function (content) {
+                        text.finishLoad(name, parsed.strip, content, onLoad, config);
+                    });
+                } else {
+                    //Need to fetch the resource across domains. Assume
+                    //the resource has been optimized into a JS module. Fetch
+                    //by the module name + extension, but do not include the
+                    //!strip part to avoid file system issues.
+                    req([nonStripName], function (content) {
+                        text.finishLoad(parsed.moduleName + '.' + parsed.ext,
+                                        parsed.strip, content, onLoad, config);
+                    });
+                }
+            },
+
+            write: function (pluginName, moduleName, write, config) {
+                if (moduleName in buildMap) {
+                    var content = text.jsEscape(buildMap[moduleName]);
+                    write.asModule(pluginName + "!" + moduleName,
+                                   "define(function () { return '" +
+                                       content +
+                                   "';});\n");
+                }
+            },
+
+            writeFile: function (pluginName, moduleName, req, write, config) {
+                var parsed = text.parseName(moduleName),
+                    nonStripName = parsed.moduleName + '.' + parsed.ext,
+                    //Use a '.js' file name so that it indicates it is a
+                    //script that can be loaded across domains.
+                    fileName = req.toUrl(parsed.moduleName + '.' +
+                                         parsed.ext) + '.js';
+
+                //Leverage own load() method to load plugin value, but only
+                //write out values that do not have the strip argument,
+                //to avoid any potential issues with ! in file names.
+                text.load(nonStripName, req, function (value) {
+                    //Use own write() method to construct full module value.
+                    //But need to create shell that translates writeFile's
+                    //write() to the right interface.
+                    var textWrite = function (contents) {
+                        return write(fileName, contents);
+                    };
+                    textWrite.asModule = function (moduleName, contents) {
+                        return write.asModule(moduleName, fileName, contents);
+                    };
+
+                    text.write(pluginName, nonStripName, textWrite, config);
+                }, config);
+            }
+        };
+
+        return text;
+    });
+}());
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/index.html
new file mode 100644 (file)
index 0000000..8eb9690
--- /dev/null
@@ -0,0 +1,76 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile: Demos and Documentation</title>
+       <link rel="stylesheet"  href="css/themes/default/jquery.mobile.css" />
+       <link rel="stylesheet" href="docs/_assets/css/jqm-docs.css" />
+       <script src="js/jquery.js"></script>
+       <script src="docs/_assets/js/jqm-docs.js"></script>
+       <script src="js/"></script>
+       
+</head>
+<body>
+<div data-role="page" class="type-home">
+       <div data-role="content">
+               <p id="jqm-version">1.1.0 Final Release</p>
+
+
+               <div class="content-secondary">
+
+                       <div id="jqm-homeheader">
+                               <h1 id="jqm-logo"><img src="docs/_assets/images/jquery-logo.png" alt="jQuery Mobile Framework" /></h1>
+                               <p>A Touch-Optimized UI Framework built with jQuery and HTML5.</p>
+                       </div>
+
+
+                       <p class="intro"><strong>Welcome.</strong> jQuery Mobile is the easiest way to build sites and apps that are accessible on all popular smartphone, tablet and desktop devices. For jQuery 1.6.4 and 1.7.1.</p>
+
+                       <ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="f">
+                               <li data-role="list-divider">Overview</li>
+                               <li><a href="docs/about/intro.html">Intro to jQuery Mobile</a></li>
+                               <li><a href="docs/about/getting-started.html">Quick start guide</a></li>
+                               <li><a href="docs/about/features.html">Features</a></li>
+                               <li><a href="docs/about/accessibility.html">Accessibility</a></li>
+                               <li><a href="docs/about/platforms.html">Supported platforms</a></li>
+                       </ul>
+
+               </div><!--/content-primary-->
+
+               <div class="content-primary">
+                       <nav>
+
+
+                               <ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="b">
+                                       <li data-role="list-divider">Components</li>
+                                       <li><a href="docs/pages/index.html">Pages &amp; dialogs</a></li>
+                                       <li><a href="docs/toolbars/index.html">Toolbars</a></li>
+                                       <li><a href="docs/buttons/index.html">Buttons</a></li>
+                                       <li><a href="docs/content/index.html">Content formatting</a></li>
+                                       <li><a href="docs/forms/index.html">Form elements</a></li>
+                                       <li><a href="docs/lists/index.html">List views</a></li>
+
+                                       <li data-role="list-divider">API</li>
+                                       <li><a href="docs/api/globalconfig.html">Configuring defaults</a></li>
+                                       <li><a href="docs/api/events.html">Events</a></li>
+                                       <li><a href="docs/api/methods.html">Methods &amp; Utilities</a></li>
+                                       <li><a href="docs/api/data-attributes.html">Data attribute reference</a></li>
+                                       <li><a href="docs/api/themes.html">Theme framework</a></li>
+
+
+                               </ul>
+                       </nav>
+               </div>
+
+
+
+       </div>
+
+       <div data-role="footer" class="footer-docs" data-theme="c">
+                       <p>&copy; 2011-12 The jQuery Foundation</p>
+       </div>
+
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/index.php b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/index.php
new file mode 100644 (file)
index 0000000..5cb07fc
--- /dev/null
@@ -0,0 +1,54 @@
+<?php
+$type = 'text/javascript';
+$files = array(
+       '../LICENSE-INFO.txt',
+       // note that define is only included here as a means
+       // to revert to the pre async include, and should not be
+       // used in other build methods
+       'jquery.mobile.define.js',
+       'jquery.ui.widget.js',
+       'jquery.mobile.widget.js',
+       'jquery.mobile.media.js',
+       'jquery.mobile.support.js',
+       'jquery.mobile.vmouse.js',
+       'jquery.mobile.event.js',
+       'jquery.mobile.hashchange.js',
+       'jquery.mobile.page.js',
+       'jquery.mobile.core.js',
+       'jquery.mobile.navigation.js',
+       'jquery.mobile.navigation.pushstate.js',
+       'jquery.mobile.transition.js',
+       'jquery.mobile.transition.pop.js',
+       'jquery.mobile.transition.slide.js',
+       'jquery.mobile.transition.slidedown.js',
+       'jquery.mobile.transition.slideup.js',
+       'jquery.mobile.transition.flip.js',
+       'jquery.mobile.transition.flow.js',
+       'jquery.mobile.transition.turn.js',
+       'jquery.mobile.degradeInputs.js',
+       'jquery.mobile.dialog.js',
+       'jquery.mobile.page.sections.js',
+       'jquery.mobile.collapsible.js',
+       'jquery.mobile.collapsibleSet.js',
+       'jquery.mobile.fieldContain.js',
+       'jquery.mobile.grid.js',
+       'jquery.mobile.navbar.js',
+       'jquery.mobile.listview.js',
+       'jquery.mobile.listview.filter.js',
+       'jquery.mobile.nojs.js',
+       'jquery.mobile.forms.checkboxradio.js',
+       'jquery.mobile.forms.button.js',
+       'jquery.mobile.forms.slider.js',
+       'jquery.mobile.forms.textinput.js',
+       'jquery.mobile.forms.select.custom.js',
+       'jquery.mobile.forms.select.js',
+       'jquery.mobile.buttonMarkup.js',
+       'jquery.mobile.controlGroup.js',
+       'jquery.mobile.links.js',
+       'jquery.mobile.fixedToolbar.js',
+       'jquery.mobile.zoom.js',
+       'jquery.mobile.zoom.iosorientationfix.js',
+       'jquery.mobile.init.js'
+);
+
+require_once('../combine.php');
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery-1.6.4.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery-1.6.4.js
new file mode 100644 (file)
index 0000000..11e6d06
--- /dev/null
@@ -0,0 +1,9046 @@
+/*!
+ * jQuery JavaScript Library v1.6.4
+ * http://jquery.com/
+ *
+ * Copyright 2011, John Resig
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * Includes Sizzle.js
+ * http://sizzlejs.com/
+ * Copyright 2011, The Dojo Foundation
+ * Released under the MIT, BSD, and GPL Licenses.
+ *
+ * Date: Mon Sep 12 18:54:48 2011 -0400
+ */
+(function( window, undefined ) {
+
+// Use the correct document accordingly with window argument (sandbox)
+var document = window.document,
+       navigator = window.navigator,
+       location = window.location;
+var jQuery = (function() {
+
+// Define a local copy of jQuery
+var jQuery = function( selector, context ) {
+               // The jQuery object is actually just the init constructor 'enhanced'
+               return new jQuery.fn.init( selector, context, rootjQuery );
+       },
+
+       // Map over jQuery in case of overwrite
+       _jQuery = window.jQuery,
+
+       // Map over the $ in case of overwrite
+       _$ = window.$,
+
+       // A central reference to the root jQuery(document)
+       rootjQuery,
+
+       // A simple way to check for HTML strings or ID strings
+       // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
+       quickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
+
+       // Check if a string has a non-whitespace character in it
+       rnotwhite = /\S/,
+
+       // Used for trimming whitespace
+       trimLeft = /^\s+/,
+       trimRight = /\s+$/,
+
+       // Check for digits
+       rdigit = /\d/,
+
+       // Match a standalone tag
+       rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
+
+       // JSON RegExp
+       rvalidchars = /^[\],:{}\s]*$/,
+       rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
+       rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
+       rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
+
+       // Useragent RegExp
+       rwebkit = /(webkit)[ \/]([\w.]+)/,
+       ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,
+       rmsie = /(msie) ([\w.]+)/,
+       rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
+
+       // Matches dashed string for camelizing
+       rdashAlpha = /-([a-z]|[0-9])/ig,
+       rmsPrefix = /^-ms-/,
+
+       // Used by jQuery.camelCase as callback to replace()
+       fcamelCase = function( all, letter ) {
+               return ( letter + "" ).toUpperCase();
+       },
+
+       // Keep a UserAgent string for use with jQuery.browser
+       userAgent = navigator.userAgent,
+
+       // For matching the engine and version of the browser
+       browserMatch,
+
+       // The deferred used on DOM ready
+       readyList,
+
+       // The ready event handler
+       DOMContentLoaded,
+
+       // Save a reference to some core methods
+       toString = Object.prototype.toString,
+       hasOwn = Object.prototype.hasOwnProperty,
+       push = Array.prototype.push,
+       slice = Array.prototype.slice,
+       trim = String.prototype.trim,
+       indexOf = Array.prototype.indexOf,
+
+       // [[Class]] -> type pairs
+       class2type = {};
+
+jQuery.fn = jQuery.prototype = {
+       constructor: jQuery,
+       init: function( selector, context, rootjQuery ) {
+               var match, elem, ret, doc;
+
+               // Handle $(""), $(null), or $(undefined)
+               if ( !selector ) {
+                       return this;
+               }
+
+               // Handle $(DOMElement)
+               if ( selector.nodeType ) {
+                       this.context = this[0] = selector;
+                       this.length = 1;
+                       return this;
+               }
+
+               // The body element only exists once, optimize finding it
+               if ( selector === "body" && !context && document.body ) {
+                       this.context = document;
+                       this[0] = document.body;
+                       this.selector = selector;
+                       this.length = 1;
+                       return this;
+               }
+
+               // Handle HTML strings
+               if ( typeof selector === "string" ) {
+                       // Are we dealing with HTML string or an ID?
+                       if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
+                               // Assume that strings that start and end with <> are HTML and skip the regex check
+                               match = [ null, selector, null ];
+
+                       } else {
+                               match = quickExpr.exec( selector );
+                       }
+
+                       // Verify a match, and that no context was specified for #id
+                       if ( match && (match[1] || !context) ) {
+
+                               // HANDLE: $(html) -> $(array)
+                               if ( match[1] ) {
+                                       context = context instanceof jQuery ? context[0] : context;
+                                       doc = (context ? context.ownerDocument || context : document);
+
+                                       // If a single string is passed in and it's a single tag
+                                       // just do a createElement and skip the rest
+                                       ret = rsingleTag.exec( selector );
+
+                                       if ( ret ) {
+                                               if ( jQuery.isPlainObject( context ) ) {
+                                                       selector = [ document.createElement( ret[1] ) ];
+                                                       jQuery.fn.attr.call( selector, context, true );
+
+                                               } else {
+                                                       selector = [ doc.createElement( ret[1] ) ];
+                                               }
+
+                                       } else {
+                                               ret = jQuery.buildFragment( [ match[1] ], [ doc ] );
+                                               selector = (ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment).childNodes;
+                                       }
+
+                                       return jQuery.merge( this, selector );
+
+                               // HANDLE: $("#id")
+                               } else {
+                                       elem = document.getElementById( match[2] );
+
+                                       // Check parentNode to catch when Blackberry 4.6 returns
+                                       // nodes that are no longer in the document #6963
+                                       if ( elem && elem.parentNode ) {
+                                               // Handle the case where IE and Opera return items
+                                               // by name instead of ID
+                                               if ( elem.id !== match[2] ) {
+                                                       return rootjQuery.find( selector );
+                                               }
+
+                                               // Otherwise, we inject the element directly into the jQuery object
+                                               this.length = 1;
+                                               this[0] = elem;
+                                       }
+
+                                       this.context = document;
+                                       this.selector = selector;
+                                       return this;
+                               }
+
+                       // HANDLE: $(expr, $(...))
+                       } else if ( !context || context.jquery ) {
+                               return (context || rootjQuery).find( selector );
+
+                       // HANDLE: $(expr, context)
+                       // (which is just equivalent to: $(context).find(expr)
+                       } else {
+                               return this.constructor( context ).find( selector );
+                       }
+
+               // HANDLE: $(function)
+               // Shortcut for document ready
+               } else if ( jQuery.isFunction( selector ) ) {
+                       return rootjQuery.ready( selector );
+               }
+
+               if (selector.selector !== undefined) {
+                       this.selector = selector.selector;
+                       this.context = selector.context;
+               }
+
+               return jQuery.makeArray( selector, this );
+       },
+
+       // Start with an empty selector
+       selector: "",
+
+       // The current version of jQuery being used
+       jquery: "1.6.4",
+
+       // The default length of a jQuery object is 0
+       length: 0,
+
+       // The number of elements contained in the matched element set
+       size: function() {
+               return this.length;
+       },
+
+       toArray: function() {
+               return slice.call( this, 0 );
+       },
+
+       // Get the Nth element in the matched element set OR
+       // Get the whole matched element set as a clean array
+       get: function( num ) {
+               return num == null ?
+
+                       // Return a 'clean' array
+                       this.toArray() :
+
+                       // Return just the object
+                       ( num < 0 ? this[ this.length + num ] : this[ num ] );
+       },
+
+       // Take an array of elements and push it onto the stack
+       // (returning the new matched element set)
+       pushStack: function( elems, name, selector ) {
+               // Build a new jQuery matched element set
+               var ret = this.constructor();
+
+               if ( jQuery.isArray( elems ) ) {
+                       push.apply( ret, elems );
+
+               } else {
+                       jQuery.merge( ret, elems );
+               }
+
+               // Add the old object onto the stack (as a reference)
+               ret.prevObject = this;
+
+               ret.context = this.context;
+
+               if ( name === "find" ) {
+                       ret.selector = this.selector + (this.selector ? " " : "") + selector;
+               } else if ( name ) {
+                       ret.selector = this.selector + "." + name + "(" + selector + ")";
+               }
+
+               // Return the newly-formed element set
+               return ret;
+       },
+
+       // Execute a callback for every element in the matched set.
+       // (You can seed the arguments with an array of args, but this is
+       // only used internally.)
+       each: function( callback, args ) {
+               return jQuery.each( this, callback, args );
+       },
+
+       ready: function( fn ) {
+               // Attach the listeners
+               jQuery.bindReady();
+
+               // Add the callback
+               readyList.done( fn );
+
+               return this;
+       },
+
+       eq: function( i ) {
+               return i === -1 ?
+                       this.slice( i ) :
+                       this.slice( i, +i + 1 );
+       },
+
+       first: function() {
+               return this.eq( 0 );
+       },
+
+       last: function() {
+               return this.eq( -1 );
+       },
+
+       slice: function() {
+               return this.pushStack( slice.apply( this, arguments ),
+                       "slice", slice.call(arguments).join(",") );
+       },
+
+       map: function( callback ) {
+               return this.pushStack( jQuery.map(this, function( elem, i ) {
+                       return callback.call( elem, i, elem );
+               }));
+       },
+
+       end: function() {
+               return this.prevObject || this.constructor(null);
+       },
+
+       // For internal use only.
+       // Behaves like an Array's method, not like a jQuery method.
+       push: push,
+       sort: [].sort,
+       splice: [].splice
+};
+
+// Give the init function the jQuery prototype for later instantiation
+jQuery.fn.init.prototype = jQuery.fn;
+
+jQuery.extend = jQuery.fn.extend = function() {
+       var options, name, src, copy, copyIsArray, clone,
+               target = arguments[0] || {},
+               i = 1,
+               length = arguments.length,
+               deep = false;
+
+       // Handle a deep copy situation
+       if ( typeof target === "boolean" ) {
+               deep = target;
+               target = arguments[1] || {};
+               // skip the boolean and the target
+               i = 2;
+       }
+
+       // Handle case when target is a string or something (possible in deep copy)
+       if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
+               target = {};
+       }
+
+       // extend jQuery itself if only one argument is passed
+       if ( length === i ) {
+               target = this;
+               --i;
+       }
+
+       for ( ; i < length; i++ ) {
+               // Only deal with non-null/undefined values
+               if ( (options = arguments[ i ]) != null ) {
+                       // Extend the base object
+                       for ( name in options ) {
+                               src = target[ name ];
+                               copy = options[ name ];
+
+                               // Prevent never-ending loop
+                               if ( target === copy ) {
+                                       continue;
+                               }
+
+                               // Recurse if we're merging plain objects or arrays
+                               if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
+                                       if ( copyIsArray ) {
+                                               copyIsArray = false;
+                                               clone = src && jQuery.isArray(src) ? src : [];
+
+                                       } else {
+                                               clone = src && jQuery.isPlainObject(src) ? src : {};
+                                       }
+
+                                       // Never move original objects, clone them
+                                       target[ name ] = jQuery.extend( deep, clone, copy );
+
+                               // Don't bring in undefined values
+                               } else if ( copy !== undefined ) {
+                                       target[ name ] = copy;
+                               }
+                       }
+               }
+       }
+
+       // Return the modified object
+       return target;
+};
+
+jQuery.extend({
+       noConflict: function( deep ) {
+               if ( window.$ === jQuery ) {
+                       window.$ = _$;
+               }
+
+               if ( deep && window.jQuery === jQuery ) {
+                       window.jQuery = _jQuery;
+               }
+
+               return jQuery;
+       },
+
+       // Is the DOM ready to be used? Set to true once it occurs.
+       isReady: false,
+
+       // A counter to track how many items to wait for before
+       // the ready event fires. See #6781
+       readyWait: 1,
+
+       // Hold (or release) the ready event
+       holdReady: function( hold ) {
+               if ( hold ) {
+                       jQuery.readyWait++;
+               } else {
+                       jQuery.ready( true );
+               }
+       },
+
+       // Handle when the DOM is ready
+       ready: function( wait ) {
+               // Either a released hold or an DOMready/load event and not yet ready
+               if ( (wait === true && !--jQuery.readyWait) || (wait !== true && !jQuery.isReady) ) {
+                       // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
+                       if ( !document.body ) {
+                               return setTimeout( jQuery.ready, 1 );
+                       }
+
+                       // Remember that the DOM is ready
+                       jQuery.isReady = true;
+
+                       // If a normal DOM Ready event fired, decrement, and wait if need be
+                       if ( wait !== true && --jQuery.readyWait > 0 ) {
+                               return;
+                       }
+
+                       // If there are functions bound, to execute
+                       readyList.resolveWith( document, [ jQuery ] );
+
+                       // Trigger any bound ready events
+                       if ( jQuery.fn.trigger ) {
+                               jQuery( document ).trigger( "ready" ).unbind( "ready" );
+                       }
+               }
+       },
+
+       bindReady: function() {
+               if ( readyList ) {
+                       return;
+               }
+
+               readyList = jQuery._Deferred();
+
+               // Catch cases where $(document).ready() is called after the
+               // browser event has already occurred.
+               if ( document.readyState === "complete" ) {
+                       // Handle it asynchronously to allow scripts the opportunity to delay ready
+                       return setTimeout( jQuery.ready, 1 );
+               }
+
+               // Mozilla, Opera and webkit nightlies currently support this event
+               if ( document.addEventListener ) {
+                       // Use the handy event callback
+                       document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
+
+                       // A fallback to window.onload, that will always work
+                       window.addEventListener( "load", jQuery.ready, false );
+
+               // If IE event model is used
+               } else if ( document.attachEvent ) {
+                       // ensure firing before onload,
+                       // maybe late but safe also for iframes
+                       document.attachEvent( "onreadystatechange", DOMContentLoaded );
+
+                       // A fallback to window.onload, that will always work
+                       window.attachEvent( "onload", jQuery.ready );
+
+                       // If IE and not a frame
+                       // continually check to see if the document is ready
+                       var toplevel = false;
+
+                       try {
+                               toplevel = window.frameElement == null;
+                       } catch(e) {}
+
+                       if ( document.documentElement.doScroll && toplevel ) {
+                               doScrollCheck();
+                       }
+               }
+       },
+
+       // See test/unit/core.js for details concerning isFunction.
+       // Since version 1.3, DOM methods and functions like alert
+       // aren't supported. They return false on IE (#2968).
+       isFunction: function( obj ) {
+               return jQuery.type(obj) === "function";
+       },
+
+       isArray: Array.isArray || function( obj ) {
+               return jQuery.type(obj) === "array";
+       },
+
+       // A crude way of determining if an object is a window
+       isWindow: function( obj ) {
+               return obj && typeof obj === "object" && "setInterval" in obj;
+       },
+
+       isNaN: function( obj ) {
+               return obj == null || !rdigit.test( obj ) || isNaN( obj );
+       },
+
+       type: function( obj ) {
+               return obj == null ?
+                       String( obj ) :
+                       class2type[ toString.call(obj) ] || "object";
+       },
+
+       isPlainObject: function( obj ) {
+               // Must be an Object.
+               // Because of IE, we also have to check the presence of the constructor property.
+               // Make sure that DOM nodes and window objects don't pass through, as well
+               if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
+                       return false;
+               }
+
+               try {
+                       // Not own constructor property must be Object
+                       if ( obj.constructor &&
+                               !hasOwn.call(obj, "constructor") &&
+                               !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
+                               return false;
+                       }
+               } catch ( e ) {
+                       // IE8,9 Will throw exceptions on certain host objects #9897
+                       return false;
+               }
+
+               // Own properties are enumerated firstly, so to speed up,
+               // if last one is own, then all properties are own.
+
+               var key;
+               for ( key in obj ) {}
+
+               return key === undefined || hasOwn.call( obj, key );
+       },
+
+       isEmptyObject: function( obj ) {
+               for ( var name in obj ) {
+                       return false;
+               }
+               return true;
+       },
+
+       error: function( msg ) {
+               throw msg;
+       },
+
+       parseJSON: function( data ) {
+               if ( typeof data !== "string" || !data ) {
+                       return null;
+               }
+
+               // Make sure leading/trailing whitespace is removed (IE can't handle it)
+               data = jQuery.trim( data );
+
+               // Attempt to parse using the native JSON parser first
+               if ( window.JSON && window.JSON.parse ) {
+                       return window.JSON.parse( data );
+               }
+
+               // Make sure the incoming data is actual JSON
+               // Logic borrowed from http://json.org/json2.js
+               if ( rvalidchars.test( data.replace( rvalidescape, "@" )
+                       .replace( rvalidtokens, "]" )
+                       .replace( rvalidbraces, "")) ) {
+
+                       return (new Function( "return " + data ))();
+
+               }
+               jQuery.error( "Invalid JSON: " + data );
+       },
+
+       // Cross-browser xml parsing
+       parseXML: function( data ) {
+               var xml, tmp;
+               try {
+                       if ( window.DOMParser ) { // Standard
+                               tmp = new DOMParser();
+                               xml = tmp.parseFromString( data , "text/xml" );
+                       } else { // IE
+                               xml = new ActiveXObject( "Microsoft.XMLDOM" );
+                               xml.async = "false";
+                               xml.loadXML( data );
+                       }
+               } catch( e ) {
+                       xml = undefined;
+               }
+               if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
+                       jQuery.error( "Invalid XML: " + data );
+               }
+               return xml;
+       },
+
+       noop: function() {},
+
+       // Evaluates a script in a global context
+       // Workarounds based on findings by Jim Driscoll
+       // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
+       globalEval: function( data ) {
+               if ( data && rnotwhite.test( data ) ) {
+                       // We use execScript on Internet Explorer
+                       // We use an anonymous function so that context is window
+                       // rather than jQuery in Firefox
+                       ( window.execScript || function( data ) {
+                               window[ "eval" ].call( window, data );
+                       } )( data );
+               }
+       },
+
+       // Convert dashed to camelCase; used by the css and data modules
+       // Microsoft forgot to hump their vendor prefix (#9572)
+       camelCase: function( string ) {
+               return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
+       },
+
+       nodeName: function( elem, name ) {
+               return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
+       },
+
+       // args is for internal usage only
+       each: function( object, callback, args ) {
+               var name, i = 0,
+                       length = object.length,
+                       isObj = length === undefined || jQuery.isFunction( object );
+
+               if ( args ) {
+                       if ( isObj ) {
+                               for ( name in object ) {
+                                       if ( callback.apply( object[ name ], args ) === false ) {
+                                               break;
+                                       }
+                               }
+                       } else {
+                               for ( ; i < length; ) {
+                                       if ( callback.apply( object[ i++ ], args ) === false ) {
+                                               break;
+                                       }
+                               }
+                       }
+
+               // A special, fast, case for the most common use of each
+               } else {
+                       if ( isObj ) {
+                               for ( name in object ) {
+                                       if ( callback.call( object[ name ], name, object[ name ] ) === false ) {
+                                               break;
+                                       }
+                               }
+                       } else {
+                               for ( ; i < length; ) {
+                                       if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) {
+                                               break;
+                                       }
+                               }
+                       }
+               }
+
+               return object;
+       },
+
+       // Use native String.trim function wherever possible
+       trim: trim ?
+               function( text ) {
+                       return text == null ?
+                               "" :
+                               trim.call( text );
+               } :
+
+               // Otherwise use our own trimming functionality
+               function( text ) {
+                       return text == null ?
+                               "" :
+                               text.toString().replace( trimLeft, "" ).replace( trimRight, "" );
+               },
+
+       // results is for internal usage only
+       makeArray: function( array, results ) {
+               var ret = results || [];
+
+               if ( array != null ) {
+                       // The window, strings (and functions) also have 'length'
+                       // The extra typeof function check is to prevent crashes
+                       // in Safari 2 (See: #3039)
+                       // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
+                       var type = jQuery.type( array );
+
+                       if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) {
+                               push.call( ret, array );
+                       } else {
+                               jQuery.merge( ret, array );
+                       }
+               }
+
+               return ret;
+       },
+
+       inArray: function( elem, array ) {
+               if ( !array ) {
+                       return -1;
+               }
+
+               if ( indexOf ) {
+                       return indexOf.call( array, elem );
+               }
+
+               for ( var i = 0, length = array.length; i < length; i++ ) {
+                       if ( array[ i ] === elem ) {
+                               return i;
+                       }
+               }
+
+               return -1;
+       },
+
+       merge: function( first, second ) {
+               var i = first.length,
+                       j = 0;
+
+               if ( typeof second.length === "number" ) {
+                       for ( var l = second.length; j < l; j++ ) {
+                               first[ i++ ] = second[ j ];
+                       }
+
+               } else {
+                       while ( second[j] !== undefined ) {
+                               first[ i++ ] = second[ j++ ];
+                       }
+               }
+
+               first.length = i;
+
+               return first;
+       },
+
+       grep: function( elems, callback, inv ) {
+               var ret = [], retVal;
+               inv = !!inv;
+
+               // Go through the array, only saving the items
+               // that pass the validator function
+               for ( var i = 0, length = elems.length; i < length; i++ ) {
+                       retVal = !!callback( elems[ i ], i );
+                       if ( inv !== retVal ) {
+                               ret.push( elems[ i ] );
+                       }
+               }
+
+               return ret;
+       },
+
+       // arg is for internal usage only
+       map: function( elems, callback, arg ) {
+               var value, key, ret = [],
+                       i = 0,
+                       length = elems.length,
+                       // jquery objects are treated as arrays
+                       isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ;
+
+               // Go through the array, translating each of the items to their
+               if ( isArray ) {
+                       for ( ; i < length; i++ ) {
+                               value = callback( elems[ i ], i, arg );
+
+                               if ( value != null ) {
+                                       ret[ ret.length ] = value;
+                               }
+                       }
+
+               // Go through every key on the object,
+               } else {
+                       for ( key in elems ) {
+                               value = callback( elems[ key ], key, arg );
+
+                               if ( value != null ) {
+                                       ret[ ret.length ] = value;
+                               }
+                       }
+               }
+
+               // Flatten any nested arrays
+               return ret.concat.apply( [], ret );
+       },
+
+       // A global GUID counter for objects
+       guid: 1,
+
+       // Bind a function to a context, optionally partially applying any
+       // arguments.
+       proxy: function( fn, context ) {
+               if ( typeof context === "string" ) {
+                       var tmp = fn[ context ];
+                       context = fn;
+                       fn = tmp;
+               }
+
+               // Quick check to determine if target is callable, in the spec
+               // this throws a TypeError, but we will just return undefined.
+               if ( !jQuery.isFunction( fn ) ) {
+                       return undefined;
+               }
+
+               // Simulated bind
+               var args = slice.call( arguments, 2 ),
+                       proxy = function() {
+                               return fn.apply( context, args.concat( slice.call( arguments ) ) );
+                       };
+
+               // Set the guid of unique handler to the same of original handler, so it can be removed
+               proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;
+
+               return proxy;
+       },
+
+       // Mutifunctional method to get and set values to a collection
+       // The value/s can optionally be executed if it's a function
+       access: function( elems, key, value, exec, fn, pass ) {
+               var length = elems.length;
+
+               // Setting many attributes
+               if ( typeof key === "object" ) {
+                       for ( var k in key ) {
+                               jQuery.access( elems, k, key[k], exec, fn, value );
+                       }
+                       return elems;
+               }
+
+               // Setting one attribute
+               if ( value !== undefined ) {
+                       // Optionally, function values get executed if exec is true
+                       exec = !pass && exec && jQuery.isFunction(value);
+
+                       for ( var i = 0; i < length; i++ ) {
+                               fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
+                       }
+
+                       return elems;
+               }
+
+               // Getting an attribute
+               return length ? fn( elems[0], key ) : undefined;
+       },
+
+       now: function() {
+               return (new Date()).getTime();
+       },
+
+       // Use of jQuery.browser is frowned upon.
+       // More details: http://docs.jquery.com/Utilities/jQuery.browser
+       uaMatch: function( ua ) {
+               ua = ua.toLowerCase();
+
+               var match = rwebkit.exec( ua ) ||
+                       ropera.exec( ua ) ||
+                       rmsie.exec( ua ) ||
+                       ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||
+                       [];
+
+               return { browser: match[1] || "", version: match[2] || "0" };
+       },
+
+       sub: function() {
+               function jQuerySub( selector, context ) {
+                       return new jQuerySub.fn.init( selector, context );
+               }
+               jQuery.extend( true, jQuerySub, this );
+               jQuerySub.superclass = this;
+               jQuerySub.fn = jQuerySub.prototype = this();
+               jQuerySub.fn.constructor = jQuerySub;
+               jQuerySub.sub = this.sub;
+               jQuerySub.fn.init = function init( selector, context ) {
+                       if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {
+                               context = jQuerySub( context );
+                       }
+
+                       return jQuery.fn.init.call( this, selector, context, rootjQuerySub );
+               };
+               jQuerySub.fn.init.prototype = jQuerySub.fn;
+               var rootjQuerySub = jQuerySub(document);
+               return jQuerySub;
+       },
+
+       browser: {}
+});
+
+// Populate the class2type map
+jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {
+       class2type[ "[object " + name + "]" ] = name.toLowerCase();
+});
+
+browserMatch = jQuery.uaMatch( userAgent );
+if ( browserMatch.browser ) {
+       jQuery.browser[ browserMatch.browser ] = true;
+       jQuery.browser.version = browserMatch.version;
+}
+
+// Deprecated, use jQuery.browser.webkit instead
+if ( jQuery.browser.webkit ) {
+       jQuery.browser.safari = true;
+}
+
+// IE doesn't match non-breaking spaces with \s
+if ( rnotwhite.test( "\xA0" ) ) {
+       trimLeft = /^[\s\xA0]+/;
+       trimRight = /[\s\xA0]+$/;
+}
+
+// All jQuery objects should point back to these
+rootjQuery = jQuery(document);
+
+// Cleanup functions for the document ready method
+if ( document.addEventListener ) {
+       DOMContentLoaded = function() {
+               document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
+               jQuery.ready();
+       };
+
+} else if ( document.attachEvent ) {
+       DOMContentLoaded = function() {
+               // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
+               if ( document.readyState === "complete" ) {
+                       document.detachEvent( "onreadystatechange", DOMContentLoaded );
+                       jQuery.ready();
+               }
+       };
+}
+
+// The DOM ready check for Internet Explorer
+function doScrollCheck() {
+       if ( jQuery.isReady ) {
+               return;
+       }
+
+       try {
+               // If IE is used, use the trick by Diego Perini
+               // http://javascript.nwbox.com/IEContentLoaded/
+               document.documentElement.doScroll("left");
+       } catch(e) {
+               setTimeout( doScrollCheck, 1 );
+               return;
+       }
+
+       // and execute any waiting functions
+       jQuery.ready();
+}
+
+return jQuery;
+
+})();
+
+
+var // Promise methods
+       promiseMethods = "done fail isResolved isRejected promise then always pipe".split( " " ),
+       // Static reference to slice
+       sliceDeferred = [].slice;
+
+jQuery.extend({
+       // Create a simple deferred (one callbacks list)
+       _Deferred: function() {
+               var // callbacks list
+                       callbacks = [],
+                       // stored [ context , args ]
+                       fired,
+                       // to avoid firing when already doing so
+                       firing,
+                       // flag to know if the deferred has been cancelled
+                       cancelled,
+                       // the deferred itself
+                       deferred  = {
+
+                               // done( f1, f2, ...)
+                               done: function() {
+                                       if ( !cancelled ) {
+                                               var args = arguments,
+                                                       i,
+                                                       length,
+                                                       elem,
+                                                       type,
+                                                       _fired;
+                                               if ( fired ) {
+                                                       _fired = fired;
+                                                       fired = 0;
+                                               }
+                                               for ( i = 0, length = args.length; i < length; i++ ) {
+                                                       elem = args[ i ];
+                                                       type = jQuery.type( elem );
+                                                       if ( type === "array" ) {
+                                                               deferred.done.apply( deferred, elem );
+                                                       } else if ( type === "function" ) {
+                                                               callbacks.push( elem );
+                                                       }
+                                               }
+                                               if ( _fired ) {
+                                                       deferred.resolveWith( _fired[ 0 ], _fired[ 1 ] );
+                                               }
+                                       }
+                                       return this;
+                               },
+
+                               // resolve with given context and args
+                               resolveWith: function( context, args ) {
+                                       if ( !cancelled && !fired && !firing ) {
+                                               // make sure args are available (#8421)
+                                               args = args || [];
+                                               firing = 1;
+                                               try {
+                                                       while( callbacks[ 0 ] ) {
+                                                               callbacks.shift().apply( context, args );
+                                                       }
+                                               }
+                                               finally {
+                                                       fired = [ context, args ];
+                                                       firing = 0;
+                                               }
+                                       }
+                                       return this;
+                               },
+
+                               // resolve with this as context and given arguments
+                               resolve: function() {
+                                       deferred.resolveWith( this, arguments );
+                                       return this;
+                               },
+
+                               // Has this deferred been resolved?
+                               isResolved: function() {
+                                       return !!( firing || fired );
+                               },
+
+                               // Cancel
+                               cancel: function() {
+                                       cancelled = 1;
+                                       callbacks = [];
+                                       return this;
+                               }
+                       };
+
+               return deferred;
+       },
+
+       // Full fledged deferred (two callbacks list)
+       Deferred: function( func ) {
+               var deferred = jQuery._Deferred(),
+                       failDeferred = jQuery._Deferred(),
+                       promise;
+               // Add errorDeferred methods, then and promise
+               jQuery.extend( deferred, {
+                       then: function( doneCallbacks, failCallbacks ) {
+                               deferred.done( doneCallbacks ).fail( failCallbacks );
+                               return this;
+                       },
+                       always: function() {
+                               return deferred.done.apply( deferred, arguments ).fail.apply( this, arguments );
+                       },
+                       fail: failDeferred.done,
+                       rejectWith: failDeferred.resolveWith,
+                       reject: failDeferred.resolve,
+                       isRejected: failDeferred.isResolved,
+                       pipe: function( fnDone, fnFail ) {
+                               return jQuery.Deferred(function( newDefer ) {
+                                       jQuery.each( {
+                                               done: [ fnDone, "resolve" ],
+                                               fail: [ fnFail, "reject" ]
+                                       }, function( handler, data ) {
+                                               var fn = data[ 0 ],
+                                                       action = data[ 1 ],
+                                                       returned;
+                                               if ( jQuery.isFunction( fn ) ) {
+                                                       deferred[ handler ](function() {
+                                                               returned = fn.apply( this, arguments );
+                                                               if ( returned && jQuery.isFunction( returned.promise ) ) {
+                                                                       returned.promise().then( newDefer.resolve, newDefer.reject );
+                                                               } else {
+                                                                       newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] );
+                                                               }
+                                                       });
+                                               } else {
+                                                       deferred[ handler ]( newDefer[ action ] );
+                                               }
+                                       });
+                               }).promise();
+                       },
+                       // Get a promise for this deferred
+                       // If obj is provided, the promise aspect is added to the object
+                       promise: function( obj ) {
+                               if ( obj == null ) {
+                                       if ( promise ) {
+                                               return promise;
+                                       }
+                                       promise = obj = {};
+                               }
+                               var i = promiseMethods.length;
+                               while( i-- ) {
+                                       obj[ promiseMethods[i] ] = deferred[ promiseMethods[i] ];
+                               }
+                               return obj;
+                       }
+               });
+               // Make sure only one callback list will be used
+               deferred.done( failDeferred.cancel ).fail( deferred.cancel );
+               // Unexpose cancel
+               delete deferred.cancel;
+               // Call given func if any
+               if ( func ) {
+                       func.call( deferred, deferred );
+               }
+               return deferred;
+       },
+
+       // Deferred helper
+       when: function( firstParam ) {
+               var args = arguments,
+                       i = 0,
+                       length = args.length,
+                       count = length,
+                       deferred = length <= 1 && firstParam && jQuery.isFunction( firstParam.promise ) ?
+                               firstParam :
+                               jQuery.Deferred();
+               function resolveFunc( i ) {
+                       return function( value ) {
+                               args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
+                               if ( !( --count ) ) {
+                                       // Strange bug in FF4:
+                                       // Values changed onto the arguments object sometimes end up as undefined values
+                                       // outside the $.when method. Cloning the object into a fresh array solves the issue
+                                       deferred.resolveWith( deferred, sliceDeferred.call( args, 0 ) );
+                               }
+                       };
+               }
+               if ( length > 1 ) {
+                       for( ; i < length; i++ ) {
+                               if ( args[ i ] && jQuery.isFunction( args[ i ].promise ) ) {
+                                       args[ i ].promise().then( resolveFunc(i), deferred.reject );
+                               } else {
+                                       --count;
+                               }
+                       }
+                       if ( !count ) {
+                               deferred.resolveWith( deferred, args );
+                       }
+               } else if ( deferred !== firstParam ) {
+                       deferred.resolveWith( deferred, length ? [ firstParam ] : [] );
+               }
+               return deferred.promise();
+       }
+});
+
+
+
+jQuery.support = (function() {
+
+       var div = document.createElement( "div" ),
+               documentElement = document.documentElement,
+               all,
+               a,
+               select,
+               opt,
+               input,
+               marginDiv,
+               support,
+               fragment,
+               body,
+               testElementParent,
+               testElement,
+               testElementStyle,
+               tds,
+               events,
+               eventName,
+               i,
+               isSupported;
+
+       // Preliminary tests
+       div.setAttribute("className", "t");
+       div.innerHTML = "   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
+
+
+       all = div.getElementsByTagName( "*" );
+       a = div.getElementsByTagName( "a" )[ 0 ];
+
+       // Can't get basic test support
+       if ( !all || !all.length || !a ) {
+               return {};
+       }
+
+       // First batch of supports tests
+       select = document.createElement( "select" );
+       opt = select.appendChild( document.createElement("option") );
+       input = div.getElementsByTagName( "input" )[ 0 ];
+
+       support = {
+               // IE strips leading whitespace when .innerHTML is used
+               leadingWhitespace: ( div.firstChild.nodeType === 3 ),
+
+               // Make sure that tbody elements aren't automatically inserted
+               // IE will insert them into empty tables
+               tbody: !div.getElementsByTagName( "tbody" ).length,
+
+               // Make sure that link elements get serialized correctly by innerHTML
+               // This requires a wrapper element in IE
+               htmlSerialize: !!div.getElementsByTagName( "link" ).length,
+
+               // Get the style information from getAttribute
+               // (IE uses .cssText instead)
+               style: /top/.test( a.getAttribute("style") ),
+
+               // Make sure that URLs aren't manipulated
+               // (IE normalizes it by default)
+               hrefNormalized: ( a.getAttribute( "href" ) === "/a" ),
+
+               // Make sure that element opacity exists
+               // (IE uses filter instead)
+               // Use a regex to work around a WebKit issue. See #5145
+               opacity: /^0.55$/.test( a.style.opacity ),
+
+               // Verify style float existence
+               // (IE uses styleFloat instead of cssFloat)
+               cssFloat: !!a.style.cssFloat,
+
+               // Make sure that if no value is specified for a checkbox
+               // that it defaults to "on".
+               // (WebKit defaults to "" instead)
+               checkOn: ( input.value === "on" ),
+
+               // Make sure that a selected-by-default option has a working selected property.
+               // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
+               optSelected: opt.selected,
+
+               // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
+               getSetAttribute: div.className !== "t",
+
+               // Will be defined later
+               submitBubbles: true,
+               changeBubbles: true,
+               focusinBubbles: false,
+               deleteExpando: true,
+               noCloneEvent: true,
+               inlineBlockNeedsLayout: false,
+               shrinkWrapBlocks: false,
+               reliableMarginRight: true
+       };
+
+       // Make sure checked status is properly cloned
+       input.checked = true;
+       support.noCloneChecked = input.cloneNode( true ).checked;
+
+       // Make sure that the options inside disabled selects aren't marked as disabled
+       // (WebKit marks them as disabled)
+       select.disabled = true;
+       support.optDisabled = !opt.disabled;
+
+       // Test to see if it's possible to delete an expando from an element
+       // Fails in Internet Explorer
+       try {
+               delete div.test;
+       } catch( e ) {
+               support.deleteExpando = false;
+       }
+
+       if ( !div.addEventListener && div.attachEvent && div.fireEvent ) {
+               div.attachEvent( "onclick", function() {
+                       // Cloning a node shouldn't copy over any
+                       // bound event handlers (IE does this)
+                       support.noCloneEvent = false;
+               });
+               div.cloneNode( true ).fireEvent( "onclick" );
+       }
+
+       // Check if a radio maintains it's value
+       // after being appended to the DOM
+       input = document.createElement("input");
+       input.value = "t";
+       input.setAttribute("type", "radio");
+       support.radioValue = input.value === "t";
+
+       input.setAttribute("checked", "checked");
+       div.appendChild( input );
+       fragment = document.createDocumentFragment();
+       fragment.appendChild( div.firstChild );
+
+       // WebKit doesn't clone checked state correctly in fragments
+       support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;
+
+       div.innerHTML = "";
+
+       // Figure out if the W3C box model works as expected
+       div.style.width = div.style.paddingLeft = "1px";
+
+       body = document.getElementsByTagName( "body" )[ 0 ];
+       // We use our own, invisible, body unless the body is already present
+       // in which case we use a div (#9239)
+       testElement = document.createElement( body ? "div" : "body" );
+       testElementStyle = {
+               visibility: "hidden",
+               width: 0,
+               height: 0,
+               border: 0,
+               margin: 0,
+               background: "none"
+       };
+       if ( body ) {
+               jQuery.extend( testElementStyle, {
+                       position: "absolute",
+                       left: "-1000px",
+                       top: "-1000px"
+               });
+       }
+       for ( i in testElementStyle ) {
+               testElement.style[ i ] = testElementStyle[ i ];
+       }
+       testElement.appendChild( div );
+       testElementParent = body || documentElement;
+       testElementParent.insertBefore( testElement, testElementParent.firstChild );
+
+       // Check if a disconnected checkbox will retain its checked
+       // value of true after appended to the DOM (IE6/7)
+       support.appendChecked = input.checked;
+
+       support.boxModel = div.offsetWidth === 2;
+
+       if ( "zoom" in div.style ) {
+               // Check if natively block-level elements act like inline-block
+               // elements when setting their display to 'inline' and giving
+               // them layout
+               // (IE < 8 does this)
+               div.style.display = "inline";
+               div.style.zoom = 1;
+               support.inlineBlockNeedsLayout = ( div.offsetWidth === 2 );
+
+               // Check if elements with layout shrink-wrap their children
+               // (IE 6 does this)
+               div.style.display = "";
+               div.innerHTML = "<div style='width:4px;'></div>";
+               support.shrinkWrapBlocks = ( div.offsetWidth !== 2 );
+       }
+
+       div.innerHTML = "<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";
+       tds = div.getElementsByTagName( "td" );
+
+       // Check if table cells still have offsetWidth/Height when they are set
+       // to display:none and there are still other visible table cells in a
+       // table row; if so, offsetWidth/Height are not reliable for use when
+       // determining if an element has been hidden directly using
+       // display:none (it is still safe to use offsets if a parent element is
+       // hidden; don safety goggles and see bug #4512 for more information).
+       // (only IE 8 fails this test)
+       isSupported = ( tds[ 0 ].offsetHeight === 0 );
+
+       tds[ 0 ].style.display = "";
+       tds[ 1 ].style.display = "none";
+
+       // Check if empty table cells still have offsetWidth/Height
+       // (IE < 8 fail this test)
+       support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 );
+       div.innerHTML = "";
+
+       // Check if div with explicit width and no margin-right incorrectly
+       // gets computed margin-right based on width of container. For more
+       // info see bug #3333
+       // Fails in WebKit before Feb 2011 nightlies
+       // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
+       if ( document.defaultView && document.defaultView.getComputedStyle ) {
+               marginDiv = document.createElement( "div" );
+               marginDiv.style.width = "0";
+               marginDiv.style.marginRight = "0";
+               div.appendChild( marginDiv );
+               support.reliableMarginRight =
+                       ( parseInt( ( document.defaultView.getComputedStyle( marginDiv, null ) || { marginRight: 0 } ).marginRight, 10 ) || 0 ) === 0;
+       }
+
+       // Remove the body element we added
+       testElement.innerHTML = "";
+       testElementParent.removeChild( testElement );
+
+       // Technique from Juriy Zaytsev
+       // http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/
+       // We only care about the case where non-standard event systems
+       // are used, namely in IE. Short-circuiting here helps us to
+       // avoid an eval call (in setAttribute) which can cause CSP
+       // to go haywire. See: https://developer.mozilla.org/en/Security/CSP
+       if ( div.attachEvent ) {
+               for( i in {
+                       submit: 1,
+                       change: 1,
+                       focusin: 1
+               } ) {
+                       eventName = "on" + i;
+                       isSupported = ( eventName in div );
+                       if ( !isSupported ) {
+                               div.setAttribute( eventName, "return;" );
+                               isSupported = ( typeof div[ eventName ] === "function" );
+                       }
+                       support[ i + "Bubbles" ] = isSupported;
+               }
+       }
+
+       // Null connected elements to avoid leaks in IE
+       testElement = fragment = select = opt = body = marginDiv = div = input = null;
+
+       return support;
+})();
+
+// Keep track of boxModel
+jQuery.boxModel = jQuery.support.boxModel;
+
+
+
+
+var rbrace = /^(?:\{.*\}|\[.*\])$/,
+       rmultiDash = /([A-Z])/g;
+
+jQuery.extend({
+       cache: {},
+
+       // Please use with caution
+       uuid: 0,
+
+       // Unique for each copy of jQuery on the page
+       // Non-digits removed to match rinlinejQuery
+       expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ),
+
+       // The following elements throw uncatchable exceptions if you
+       // attempt to add expando properties to them.
+       noData: {
+               "embed": true,
+               // Ban all objects except for Flash (which handle expandos)
+               "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
+               "applet": true
+       },
+
+       hasData: function( elem ) {
+               elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];
+
+               return !!elem && !isEmptyDataObject( elem );
+       },
+
+       data: function( elem, name, data, pvt /* Internal Use Only */ ) {
+               if ( !jQuery.acceptData( elem ) ) {
+                       return;
+               }
+
+               var thisCache, ret,
+                       internalKey = jQuery.expando,
+                       getByName = typeof name === "string",
+
+                       // We have to handle DOM nodes and JS objects differently because IE6-7
+                       // can't GC object references properly across the DOM-JS boundary
+                       isNode = elem.nodeType,
+
+                       // Only DOM nodes need the global jQuery cache; JS object data is
+                       // attached directly to the object so GC can occur automatically
+                       cache = isNode ? jQuery.cache : elem,
+
+                       // Only defining an ID for JS objects if its cache already exists allows
+                       // the code to shortcut on the same path as a DOM node with no cache
+                       id = isNode ? elem[ jQuery.expando ] : elem[ jQuery.expando ] && jQuery.expando;
+
+               // Avoid doing any more work than we need to when trying to get data on an
+               // object that has no data at all
+               if ( (!id || (pvt && id && (cache[ id ] && !cache[ id ][ internalKey ]))) && getByName && data === undefined ) {
+                       return;
+               }
+
+               if ( !id ) {
+                       // Only DOM nodes need a new unique ID for each element since their data
+                       // ends up in the global cache
+                       if ( isNode ) {
+                               elem[ jQuery.expando ] = id = ++jQuery.uuid;
+                       } else {
+                               id = jQuery.expando;
+                       }
+               }
+
+               if ( !cache[ id ] ) {
+                       cache[ id ] = {};
+
+                       // TODO: This is a hack for 1.5 ONLY. Avoids exposing jQuery
+                       // metadata on plain JS objects when the object is serialized using
+                       // JSON.stringify
+                       if ( !isNode ) {
+                               cache[ id ].toJSON = jQuery.noop;
+                       }
+               }
+
+               // An object can be passed to jQuery.data instead of a key/value pair; this gets
+               // shallow copied over onto the existing cache
+               if ( typeof name === "object" || typeof name === "function" ) {
+                       if ( pvt ) {
+                               cache[ id ][ internalKey ] = jQuery.extend(cache[ id ][ internalKey ], name);
+                       } else {
+                               cache[ id ] = jQuery.extend(cache[ id ], name);
+                       }
+               }
+
+               thisCache = cache[ id ];
+
+               // Internal jQuery data is stored in a separate object inside the object's data
+               // cache in order to avoid key collisions between internal data and user-defined
+               // data
+               if ( pvt ) {
+                       if ( !thisCache[ internalKey ] ) {
+                               thisCache[ internalKey ] = {};
+                       }
+
+                       thisCache = thisCache[ internalKey ];
+               }
+
+               if ( data !== undefined ) {
+                       thisCache[ jQuery.camelCase( name ) ] = data;
+               }
+
+               // TODO: This is a hack for 1.5 ONLY. It will be removed in 1.6. Users should
+               // not attempt to inspect the internal events object using jQuery.data, as this
+               // internal data object is undocumented and subject to change.
+               if ( name === "events" && !thisCache[name] ) {
+                       return thisCache[ internalKey ] && thisCache[ internalKey ].events;
+               }
+
+               // Check for both converted-to-camel and non-converted data property names
+               // If a data property was specified
+               if ( getByName ) {
+
+                       // First Try to find as-is property data
+                       ret = thisCache[ name ];
+
+                       // Test for null|undefined property data
+                       if ( ret == null ) {
+
+                               // Try to find the camelCased property
+                               ret = thisCache[ jQuery.camelCase( name ) ];
+                       }
+               } else {
+                       ret = thisCache;
+               }
+
+               return ret;
+       },
+
+       removeData: function( elem, name, pvt /* Internal Use Only */ ) {
+               if ( !jQuery.acceptData( elem ) ) {
+                       return;
+               }
+
+               var thisCache,
+
+                       // Reference to internal data cache key
+                       internalKey = jQuery.expando,
+
+                       isNode = elem.nodeType,
+
+                       // See jQuery.data for more information
+                       cache = isNode ? jQuery.cache : elem,
+
+                       // See jQuery.data for more information
+                       id = isNode ? elem[ jQuery.expando ] : jQuery.expando;
+
+               // If there is already no cache entry for this object, there is no
+               // purpose in continuing
+               if ( !cache[ id ] ) {
+                       return;
+               }
+
+               if ( name ) {
+
+                       thisCache = pvt ? cache[ id ][ internalKey ] : cache[ id ];
+
+                       if ( thisCache ) {
+
+                               // Support interoperable removal of hyphenated or camelcased keys
+                               if ( !thisCache[ name ] ) {
+                                       name = jQuery.camelCase( name );
+                               }
+
+                               delete thisCache[ name ];
+
+                               // If there is no data left in the cache, we want to continue
+                               // and let the cache object itself get destroyed
+                               if ( !isEmptyDataObject(thisCache) ) {
+                                       return;
+                               }
+                       }
+               }
+
+               // See jQuery.data for more information
+               if ( pvt ) {
+                       delete cache[ id ][ internalKey ];
+
+                       // Don't destroy the parent cache unless the internal data object
+                       // had been the only thing left in it
+                       if ( !isEmptyDataObject(cache[ id ]) ) {
+                               return;
+                       }
+               }
+
+               var internalCache = cache[ id ][ internalKey ];
+
+               // Browsers that fail expando deletion also refuse to delete expandos on
+               // the window, but it will allow it on all other JS objects; other browsers
+               // don't care
+               // Ensure that `cache` is not a window object #10080
+               if ( jQuery.support.deleteExpando || !cache.setInterval ) {
+                       delete cache[ id ];
+               } else {
+                       cache[ id ] = null;
+               }
+
+               // We destroyed the entire user cache at once because it's faster than
+               // iterating through each key, but we need to continue to persist internal
+               // data if it existed
+               if ( internalCache ) {
+                       cache[ id ] = {};
+                       // TODO: This is a hack for 1.5 ONLY. Avoids exposing jQuery
+                       // metadata on plain JS objects when the object is serialized using
+                       // JSON.stringify
+                       if ( !isNode ) {
+                               cache[ id ].toJSON = jQuery.noop;
+                       }
+
+                       cache[ id ][ internalKey ] = internalCache;
+
+               // Otherwise, we need to eliminate the expando on the node to avoid
+               // false lookups in the cache for entries that no longer exist
+               } else if ( isNode ) {
+                       // IE does not allow us to delete expando properties from nodes,
+                       // nor does it have a removeAttribute function on Document nodes;
+                       // we must handle all of these cases
+                       if ( jQuery.support.deleteExpando ) {
+                               delete elem[ jQuery.expando ];
+                       } else if ( elem.removeAttribute ) {
+                               elem.removeAttribute( jQuery.expando );
+                       } else {
+                               elem[ jQuery.expando ] = null;
+                       }
+               }
+       },
+
+       // For internal use only.
+       _data: function( elem, name, data ) {
+               return jQuery.data( elem, name, data, true );
+       },
+
+       // A method for determining if a DOM node can handle the data expando
+       acceptData: function( elem ) {
+               if ( elem.nodeName ) {
+                       var match = jQuery.noData[ elem.nodeName.toLowerCase() ];
+
+                       if ( match ) {
+                               return !(match === true || elem.getAttribute("classid") !== match);
+                       }
+               }
+
+               return true;
+       }
+});
+
+jQuery.fn.extend({
+       data: function( key, value ) {
+               var data = null;
+
+               if ( typeof key === "undefined" ) {
+                       if ( this.length ) {
+                               data = jQuery.data( this[0] );
+
+                               if ( this[0].nodeType === 1 ) {
+                           var attr = this[0].attributes, name;
+                                       for ( var i = 0, l = attr.length; i < l; i++ ) {
+                                               name = attr[i].name;
+
+                                               if ( name.indexOf( "data-" ) === 0 ) {
+                                                       name = jQuery.camelCase( name.substring(5) );
+
+                                                       dataAttr( this[0], name, data[ name ] );
+                                               }
+                                       }
+                               }
+                       }
+
+                       return data;
+
+               } else if ( typeof key === "object" ) {
+                       return this.each(function() {
+                               jQuery.data( this, key );
+                       });
+               }
+
+               var parts = key.split(".");
+               parts[1] = parts[1] ? "." + parts[1] : "";
+
+               if ( value === undefined ) {
+                       data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
+
+                       // Try to fetch any internally stored data first
+                       if ( data === undefined && this.length ) {
+                               data = jQuery.data( this[0], key );
+                               data = dataAttr( this[0], key, data );
+                       }
+
+                       return data === undefined && parts[1] ?
+                               this.data( parts[0] ) :
+                               data;
+
+               } else {
+                       return this.each(function() {
+                               var $this = jQuery( this ),
+                                       args = [ parts[0], value ];
+
+                               $this.triggerHandler( "setData" + parts[1] + "!", args );
+                               jQuery.data( this, key, value );
+                               $this.triggerHandler( "changeData" + parts[1] + "!", args );
+                       });
+               }
+       },
+
+       removeData: function( key ) {
+               return this.each(function() {
+                       jQuery.removeData( this, key );
+               });
+       }
+});
+
+function dataAttr( elem, key, data ) {
+       // If nothing was found internally, try to fetch any
+       // data from the HTML5 data-* attribute
+       if ( data === undefined && elem.nodeType === 1 ) {
+
+               var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
+
+               data = elem.getAttribute( name );
+
+               if ( typeof data === "string" ) {
+                       try {
+                               data = data === "true" ? true :
+                               data === "false" ? false :
+                               data === "null" ? null :
+                               !jQuery.isNaN( data ) ? parseFloat( data ) :
+                                       rbrace.test( data ) ? jQuery.parseJSON( data ) :
+                                       data;
+                       } catch( e ) {}
+
+                       // Make sure we set the data so it isn't changed later
+                       jQuery.data( elem, key, data );
+
+               } else {
+                       data = undefined;
+               }
+       }
+
+       return data;
+}
+
+// TODO: This is a hack for 1.5 ONLY to allow objects with a single toJSON
+// property to be considered empty objects; this property always exists in
+// order to make sure JSON.stringify does not expose internal metadata
+function isEmptyDataObject( obj ) {
+       for ( var name in obj ) {
+               if ( name !== "toJSON" ) {
+                       return false;
+               }
+       }
+
+       return true;
+}
+
+
+
+
+function handleQueueMarkDefer( elem, type, src ) {
+       var deferDataKey = type + "defer",
+               queueDataKey = type + "queue",
+               markDataKey = type + "mark",
+               defer = jQuery.data( elem, deferDataKey, undefined, true );
+       if ( defer &&
+               ( src === "queue" || !jQuery.data( elem, queueDataKey, undefined, true ) ) &&
+               ( src === "mark" || !jQuery.data( elem, markDataKey, undefined, true ) ) ) {
+               // Give room for hard-coded callbacks to fire first
+               // and eventually mark/queue something else on the element
+               setTimeout( function() {
+                       if ( !jQuery.data( elem, queueDataKey, undefined, true ) &&
+                               !jQuery.data( elem, markDataKey, undefined, true ) ) {
+                               jQuery.removeData( elem, deferDataKey, true );
+                               defer.resolve();
+                       }
+               }, 0 );
+       }
+}
+
+jQuery.extend({
+
+       _mark: function( elem, type ) {
+               if ( elem ) {
+                       type = (type || "fx") + "mark";
+                       jQuery.data( elem, type, (jQuery.data(elem,type,undefined,true) || 0) + 1, true );
+               }
+       },
+
+       _unmark: function( force, elem, type ) {
+               if ( force !== true ) {
+                       type = elem;
+                       elem = force;
+                       force = false;
+               }
+               if ( elem ) {
+                       type = type || "fx";
+                       var key = type + "mark",
+                               count = force ? 0 : ( (jQuery.data( elem, key, undefined, true) || 1 ) - 1 );
+                       if ( count ) {
+                               jQuery.data( elem, key, count, true );
+                       } else {
+                               jQuery.removeData( elem, key, true );
+                               handleQueueMarkDefer( elem, type, "mark" );
+                       }
+               }
+       },
+
+       queue: function( elem, type, data ) {
+               if ( elem ) {
+                       type = (type || "fx") + "queue";
+                       var q = jQuery.data( elem, type, undefined, true );
+                       // Speed up dequeue by getting out quickly if this is just a lookup
+                       if ( data ) {
+                               if ( !q || jQuery.isArray(data) ) {
+                                       q = jQuery.data( elem, type, jQuery.makeArray(data), true );
+                               } else {
+                                       q.push( data );
+                               }
+                       }
+                       return q || [];
+               }
+       },
+
+       dequeue: function( elem, type ) {
+               type = type || "fx";
+
+               var queue = jQuery.queue( elem, type ),
+                       fn = queue.shift(),
+                       defer;
+
+               // If the fx queue is dequeued, always remove the progress sentinel
+               if ( fn === "inprogress" ) {
+                       fn = queue.shift();
+               }
+
+               if ( fn ) {
+                       // Add a progress sentinel to prevent the fx queue from being
+                       // automatically dequeued
+                       if ( type === "fx" ) {
+                               queue.unshift("inprogress");
+                       }
+
+                       fn.call(elem, function() {
+                               jQuery.dequeue(elem, type);
+                       });
+               }
+
+               if ( !queue.length ) {
+                       jQuery.removeData( elem, type + "queue", true );
+                       handleQueueMarkDefer( elem, type, "queue" );
+               }
+       }
+});
+
+jQuery.fn.extend({
+       queue: function( type, data ) {
+               if ( typeof type !== "string" ) {
+                       data = type;
+                       type = "fx";
+               }
+
+               if ( data === undefined ) {
+                       return jQuery.queue( this[0], type );
+               }
+               return this.each(function() {
+                       var queue = jQuery.queue( this, type, data );
+
+                       if ( type === "fx" && queue[0] !== "inprogress" ) {
+                               jQuery.dequeue( this, type );
+                       }
+               });
+       },
+       dequeue: function( type ) {
+               return this.each(function() {
+                       jQuery.dequeue( this, type );
+               });
+       },
+       // Based off of the plugin by Clint Helfers, with permission.
+       // http://blindsignals.com/index.php/2009/07/jquery-delay/
+       delay: function( time, type ) {
+               time = jQuery.fx ? jQuery.fx.speeds[time] || time : time;
+               type = type || "fx";
+
+               return this.queue( type, function() {
+                       var elem = this;
+                       setTimeout(function() {
+                               jQuery.dequeue( elem, type );
+                       }, time );
+               });
+       },
+       clearQueue: function( type ) {
+               return this.queue( type || "fx", [] );
+       },
+       // Get a promise resolved when queues of a certain type
+       // are emptied (fx is the type by default)
+       promise: function( type, object ) {
+               if ( typeof type !== "string" ) {
+                       object = type;
+                       type = undefined;
+               }
+               type = type || "fx";
+               var defer = jQuery.Deferred(),
+                       elements = this,
+                       i = elements.length,
+                       count = 1,
+                       deferDataKey = type + "defer",
+                       queueDataKey = type + "queue",
+                       markDataKey = type + "mark",
+                       tmp;
+               function resolve() {
+                       if ( !( --count ) ) {
+                               defer.resolveWith( elements, [ elements ] );
+                       }
+               }
+               while( i-- ) {
+                       if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) ||
+                                       ( jQuery.data( elements[ i ], queueDataKey, undefined, true ) ||
+                                               jQuery.data( elements[ i ], markDataKey, undefined, true ) ) &&
+                                       jQuery.data( elements[ i ], deferDataKey, jQuery._Deferred(), true ) )) {
+                               count++;
+                               tmp.done( resolve );
+                       }
+               }
+               resolve();
+               return defer.promise();
+       }
+});
+
+
+
+
+var rclass = /[\n\t\r]/g,
+       rspace = /\s+/,
+       rreturn = /\r/g,
+       rtype = /^(?:button|input)$/i,
+       rfocusable = /^(?:button|input|object|select|textarea)$/i,
+       rclickable = /^a(?:rea)?$/i,
+       rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
+       nodeHook, boolHook;
+
+jQuery.fn.extend({
+       attr: function( name, value ) {
+               return jQuery.access( this, name, value, true, jQuery.attr );
+       },
+
+       removeAttr: function( name ) {
+               return this.each(function() {
+                       jQuery.removeAttr( this, name );
+               });
+       },
+       
+       prop: function( name, value ) {
+               return jQuery.access( this, name, value, true, jQuery.prop );
+       },
+       
+       removeProp: function( name ) {
+               name = jQuery.propFix[ name ] || name;
+               return this.each(function() {
+                       // try/catch handles cases where IE balks (such as removing a property on window)
+                       try {
+                               this[ name ] = undefined;
+                               delete this[ name ];
+                       } catch( e ) {}
+               });
+       },
+
+       addClass: function( value ) {
+               var classNames, i, l, elem,
+                       setClass, c, cl;
+
+               if ( jQuery.isFunction( value ) ) {
+                       return this.each(function( j ) {
+                               jQuery( this ).addClass( value.call(this, j, this.className) );
+                       });
+               }
+
+               if ( value && typeof value === "string" ) {
+                       classNames = value.split( rspace );
+
+                       for ( i = 0, l = this.length; i < l; i++ ) {
+                               elem = this[ i ];
+
+                               if ( elem.nodeType === 1 ) {
+                                       if ( !elem.className && classNames.length === 1 ) {
+                                               elem.className = value;
+
+                                       } else {
+                                               setClass = " " + elem.className + " ";
+
+                                               for ( c = 0, cl = classNames.length; c < cl; c++ ) {
+                                                       if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) {
+                                                               setClass += classNames[ c ] + " ";
+                                                       }
+                                               }
+                                               elem.className = jQuery.trim( setClass );
+                                       }
+                               }
+                       }
+               }
+
+               return this;
+       },
+
+       removeClass: function( value ) {
+               var classNames, i, l, elem, className, c, cl;
+
+               if ( jQuery.isFunction( value ) ) {
+                       return this.each(function( j ) {
+                               jQuery( this ).removeClass( value.call(this, j, this.className) );
+                       });
+               }
+
+               if ( (value && typeof value === "string") || value === undefined ) {
+                       classNames = (value || "").split( rspace );
+
+                       for ( i = 0, l = this.length; i < l; i++ ) {
+                               elem = this[ i ];
+
+                               if ( elem.nodeType === 1 && elem.className ) {
+                                       if ( value ) {
+                                               className = (" " + elem.className + " ").replace( rclass, " " );
+                                               for ( c = 0, cl = classNames.length; c < cl; c++ ) {
+                                                       className = className.replace(" " + classNames[ c ] + " ", " ");
+                                               }
+                                               elem.className = jQuery.trim( className );
+
+                                       } else {
+                                               elem.className = "";
+                                       }
+                               }
+                       }
+               }
+
+               return this;
+       },
+
+       toggleClass: function( value, stateVal ) {
+               var type = typeof value,
+                       isBool = typeof stateVal === "boolean";
+
+               if ( jQuery.isFunction( value ) ) {
+                       return this.each(function( i ) {
+                               jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
+                       });
+               }
+
+               return this.each(function() {
+                       if ( type === "string" ) {
+                               // toggle individual class names
+                               var className,
+                                       i = 0,
+                                       self = jQuery( this ),
+                                       state = stateVal,
+                                       classNames = value.split( rspace );
+
+                               while ( (className = classNames[ i++ ]) ) {
+                                       // check each className given, space seperated list
+                                       state = isBool ? state : !self.hasClass( className );
+                                       self[ state ? "addClass" : "removeClass" ]( className );
+                               }
+
+                       } else if ( type === "undefined" || type === "boolean" ) {
+                               if ( this.className ) {
+                                       // store className if set
+                                       jQuery._data( this, "__className__", this.className );
+                               }
+
+                               // toggle whole className
+                               this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";
+                       }
+               });
+       },
+
+       hasClass: function( selector ) {
+               var className = " " + selector + " ";
+               for ( var i = 0, l = this.length; i < l; i++ ) {
+                       if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
+                               return true;
+                       }
+               }
+
+               return false;
+       },
+
+       val: function( value ) {
+               var hooks, ret,
+                       elem = this[0];
+               
+               if ( !arguments.length ) {
+                       if ( elem ) {
+                               hooks = jQuery.valHooks[ elem.nodeName.toLowerCase() ] || jQuery.valHooks[ elem.type ];
+
+                               if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
+                                       return ret;
+                               }
+
+                               ret = elem.value;
+
+                               return typeof ret === "string" ? 
+                                       // handle most common string cases
+                                       ret.replace(rreturn, "") : 
+                                       // handle cases where value is null/undef or number
+                                       ret == null ? "" : ret;
+                       }
+
+                       return undefined;
+               }
+
+               var isFunction = jQuery.isFunction( value );
+
+               return this.each(function( i ) {
+                       var self = jQuery(this), val;
+
+                       if ( this.nodeType !== 1 ) {
+                               return;
+                       }
+
+                       if ( isFunction ) {
+                               val = value.call( this, i, self.val() );
+                       } else {
+                               val = value;
+                       }
+
+                       // Treat null/undefined as ""; convert numbers to string
+                       if ( val == null ) {
+                               val = "";
+                       } else if ( typeof val === "number" ) {
+                               val += "";
+                       } else if ( jQuery.isArray( val ) ) {
+                               val = jQuery.map(val, function ( value ) {
+                                       return value == null ? "" : value + "";
+                               });
+                       }
+
+                       hooks = jQuery.valHooks[ this.nodeName.toLowerCase() ] || jQuery.valHooks[ this.type ];
+
+                       // If set returns undefined, fall back to normal setting
+                       if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
+                               this.value = val;
+                       }
+               });
+       }
+});
+
+jQuery.extend({
+       valHooks: {
+               option: {
+                       get: function( elem ) {
+                               // attributes.value is undefined in Blackberry 4.7 but
+                               // uses .value. See #6932
+                               var val = elem.attributes.value;
+                               return !val || val.specified ? elem.value : elem.text;
+                       }
+               },
+               select: {
+                       get: function( elem ) {
+                               var value,
+                                       index = elem.selectedIndex,
+                                       values = [],
+                                       options = elem.options,
+                                       one = elem.type === "select-one";
+
+                               // Nothing was selected
+                               if ( index < 0 ) {
+                                       return null;
+                               }
+
+                               // Loop through all the selected options
+                               for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {
+                                       var option = options[ i ];
+
+                                       // Don't return options that are disabled or in a disabled optgroup
+                                       if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) &&
+                                                       (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
+
+                                               // Get the specific value for the option
+                                               value = jQuery( option ).val();
+
+                                               // We don't need an array for one selects
+                                               if ( one ) {
+                                                       return value;
+                                               }
+
+                                               // Multi-Selects return an array
+                                               values.push( value );
+                                       }
+                               }
+
+                               // Fixes Bug #2551 -- select.val() broken in IE after form.reset()
+                               if ( one && !values.length && options.length ) {
+                                       return jQuery( options[ index ] ).val();
+                               }
+
+                               return values;
+                       },
+
+                       set: function( elem, value ) {
+                               var values = jQuery.makeArray( value );
+
+                               jQuery(elem).find("option").each(function() {
+                                       this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
+                               });
+
+                               if ( !values.length ) {
+                                       elem.selectedIndex = -1;
+                               }
+                               return values;
+                       }
+               }
+       },
+
+       attrFn: {
+               val: true,
+               css: true,
+               html: true,
+               text: true,
+               data: true,
+               width: true,
+               height: true,
+               offset: true
+       },
+       
+       attrFix: {
+               // Always normalize to ensure hook usage
+               tabindex: "tabIndex"
+       },
+       
+       attr: function( elem, name, value, pass ) {
+               var nType = elem.nodeType;
+               
+               // don't get/set attributes on text, comment and attribute nodes
+               if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
+                       return undefined;
+               }
+
+               if ( pass && name in jQuery.attrFn ) {
+                       return jQuery( elem )[ name ]( value );
+               }
+
+               // Fallback to prop when attributes are not supported
+               if ( !("getAttribute" in elem) ) {
+                       return jQuery.prop( elem, name, value );
+               }
+
+               var ret, hooks,
+                       notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
+
+               // Normalize the name if needed
+               if ( notxml ) {
+                       name = jQuery.attrFix[ name ] || name;
+
+                       hooks = jQuery.attrHooks[ name ];
+
+                       if ( !hooks ) {
+                               // Use boolHook for boolean attributes
+                               if ( rboolean.test( name ) ) {
+                                       hooks = boolHook;
+
+                               // Use nodeHook if available( IE6/7 )
+                               } else if ( nodeHook ) {
+                                       hooks = nodeHook;
+                               }
+                       }
+               }
+
+               if ( value !== undefined ) {
+
+                       if ( value === null ) {
+                               jQuery.removeAttr( elem, name );
+                               return undefined;
+
+                       } else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) {
+                               return ret;
+
+                       } else {
+                               elem.setAttribute( name, "" + value );
+                               return value;
+                       }
+
+               } else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) {
+                       return ret;
+
+               } else {
+
+                       ret = elem.getAttribute( name );
+
+                       // Non-existent attributes return null, we normalize to undefined
+                       return ret === null ?
+                               undefined :
+                               ret;
+               }
+       },
+
+       removeAttr: function( elem, name ) {
+               var propName;
+               if ( elem.nodeType === 1 ) {
+                       name = jQuery.attrFix[ name ] || name;
+
+                       jQuery.attr( elem, name, "" );
+                       elem.removeAttribute( name );
+
+                       // Set corresponding property to false for boolean attributes
+                       if ( rboolean.test( name ) && (propName = jQuery.propFix[ name ] || name) in elem ) {
+                               elem[ propName ] = false;
+                       }
+               }
+       },
+
+       attrHooks: {
+               type: {
+                       set: function( elem, value ) {
+                               // We can't allow the type property to be changed (since it causes problems in IE)
+                               if ( rtype.test( elem.nodeName ) && elem.parentNode ) {
+                                       jQuery.error( "type property can't be changed" );
+                               } else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
+                                       // Setting the type on a radio button after the value resets the value in IE6-9
+                                       // Reset value to it's default in case type is set after value
+                                       // This is for element creation
+                                       var val = elem.value;
+                                       elem.setAttribute( "type", value );
+                                       if ( val ) {
+                                               elem.value = val;
+                                       }
+                                       return value;
+                               }
+                       }
+               },
+               // Use the value property for back compat
+               // Use the nodeHook for button elements in IE6/7 (#1954)
+               value: {
+                       get: function( elem, name ) {
+                               if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
+                                       return nodeHook.get( elem, name );
+                               }
+                               return name in elem ?
+                                       elem.value :
+                                       null;
+                       },
+                       set: function( elem, value, name ) {
+                               if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
+                                       return nodeHook.set( elem, value, name );
+                               }
+                               // Does not return so that setAttribute is also used
+                               elem.value = value;
+                       }
+               }
+       },
+
+       propFix: {
+               tabindex: "tabIndex",
+               readonly: "readOnly",
+               "for": "htmlFor",
+               "class": "className",
+               maxlength: "maxLength",
+               cellspacing: "cellSpacing",
+               cellpadding: "cellPadding",
+               rowspan: "rowSpan",
+               colspan: "colSpan",
+               usemap: "useMap",
+               frameborder: "frameBorder",
+               contenteditable: "contentEditable"
+       },
+       
+       prop: function( elem, name, value ) {
+               var nType = elem.nodeType;
+
+               // don't get/set properties on text, comment and attribute nodes
+               if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
+                       return undefined;
+               }
+
+               var ret, hooks,
+                       notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
+
+               if ( notxml ) {
+                       // Fix name and attach hooks
+                       name = jQuery.propFix[ name ] || name;
+                       hooks = jQuery.propHooks[ name ];
+               }
+
+               if ( value !== undefined ) {
+                       if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
+                               return ret;
+
+                       } else {
+                               return (elem[ name ] = value);
+                       }
+
+               } else {
+                       if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
+                               return ret;
+
+                       } else {
+                               return elem[ name ];
+                       }
+               }
+       },
+       
+       propHooks: {
+               tabIndex: {
+                       get: function( elem ) {
+                               // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
+                               // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
+                               var attributeNode = elem.getAttributeNode("tabindex");
+
+                               return attributeNode && attributeNode.specified ?
+                                       parseInt( attributeNode.value, 10 ) :
+                                       rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
+                                               0 :
+                                               undefined;
+                       }
+               }
+       }
+});
+
+// Add the tabindex propHook to attrHooks for back-compat
+jQuery.attrHooks.tabIndex = jQuery.propHooks.tabIndex;
+
+// Hook for boolean attributes
+boolHook = {
+       get: function( elem, name ) {
+               // Align boolean attributes with corresponding properties
+               // Fall back to attribute presence where some booleans are not supported
+               var attrNode;
+               return jQuery.prop( elem, name ) === true || ( attrNode = elem.getAttributeNode( name ) ) && attrNode.nodeValue !== false ?
+                       name.toLowerCase() :
+                       undefined;
+       },
+       set: function( elem, value, name ) {
+               var propName;
+               if ( value === false ) {
+                       // Remove boolean attributes when set to false
+                       jQuery.removeAttr( elem, name );
+               } else {
+                       // value is true since we know at this point it's type boolean and not false
+                       // Set boolean attributes to the same name and set the DOM property
+                       propName = jQuery.propFix[ name ] || name;
+                       if ( propName in elem ) {
+                               // Only set the IDL specifically if it already exists on the element
+                               elem[ propName ] = true;
+                       }
+
+                       elem.setAttribute( name, name.toLowerCase() );
+               }
+               return name;
+       }
+};
+
+// IE6/7 do not support getting/setting some attributes with get/setAttribute
+if ( !jQuery.support.getSetAttribute ) {
+       
+       // Use this for any attribute in IE6/7
+       // This fixes almost every IE6/7 issue
+       nodeHook = jQuery.valHooks.button = {
+               get: function( elem, name ) {
+                       var ret;
+                       ret = elem.getAttributeNode( name );
+                       // Return undefined if nodeValue is empty string
+                       return ret && ret.nodeValue !== "" ?
+                               ret.nodeValue :
+                               undefined;
+               },
+               set: function( elem, value, name ) {
+                       // Set the existing or create a new attribute node
+                       var ret = elem.getAttributeNode( name );
+                       if ( !ret ) {
+                               ret = document.createAttribute( name );
+                               elem.setAttributeNode( ret );
+                       }
+                       return (ret.nodeValue = value + "");
+               }
+       };
+
+       // Set width and height to auto instead of 0 on empty string( Bug #8150 )
+       // This is for removals
+       jQuery.each([ "width", "height" ], function( i, name ) {
+               jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
+                       set: function( elem, value ) {
+                               if ( value === "" ) {
+                                       elem.setAttribute( name, "auto" );
+                                       return value;
+                               }
+                       }
+               });
+       });
+}
+
+
+// Some attributes require a special call on IE
+if ( !jQuery.support.hrefNormalized ) {
+       jQuery.each([ "href", "src", "width", "height" ], function( i, name ) {
+               jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
+                       get: function( elem ) {
+                               var ret = elem.getAttribute( name, 2 );
+                               return ret === null ? undefined : ret;
+                       }
+               });
+       });
+}
+
+if ( !jQuery.support.style ) {
+       jQuery.attrHooks.style = {
+               get: function( elem ) {
+                       // Return undefined in the case of empty string
+                       // Normalize to lowercase since IE uppercases css property names
+                       return elem.style.cssText.toLowerCase() || undefined;
+               },
+               set: function( elem, value ) {
+                       return (elem.style.cssText = "" + value);
+               }
+       };
+}
+
+// Safari mis-reports the default selected property of an option
+// Accessing the parent's selectedIndex property fixes it
+if ( !jQuery.support.optSelected ) {
+       jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {
+               get: function( elem ) {
+                       var parent = elem.parentNode;
+
+                       if ( parent ) {
+                               parent.selectedIndex;
+
+                               // Make sure that it also works with optgroups, see #5701
+                               if ( parent.parentNode ) {
+                                       parent.parentNode.selectedIndex;
+                               }
+                       }
+                       return null;
+               }
+       });
+}
+
+// Radios and checkboxes getter/setter
+if ( !jQuery.support.checkOn ) {
+       jQuery.each([ "radio", "checkbox" ], function() {
+               jQuery.valHooks[ this ] = {
+                       get: function( elem ) {
+                               // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
+                               return elem.getAttribute("value") === null ? "on" : elem.value;
+                       }
+               };
+       });
+}
+jQuery.each([ "radio", "checkbox" ], function() {
+       jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {
+               set: function( elem, value ) {
+                       if ( jQuery.isArray( value ) ) {
+                               return (elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0);
+                       }
+               }
+       });
+});
+
+
+
+
+var rnamespaces = /\.(.*)$/,
+       rformElems = /^(?:textarea|input|select)$/i,
+       rperiod = /\./g,
+       rspaces = / /g,
+       rescape = /[^\w\s.|`]/g,
+       fcleanup = function( nm ) {
+               return nm.replace(rescape, "\\$&");
+       };
+
+/*
+ * A number of helper functions used for managing events.
+ * Many of the ideas behind this code originated from
+ * Dean Edwards' addEvent library.
+ */
+jQuery.event = {
+
+       // Bind an event to an element
+       // Original by Dean Edwards
+       add: function( elem, types, handler, data ) {
+               if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
+                       return;
+               }
+
+               if ( handler === false ) {
+                       handler = returnFalse;
+               } else if ( !handler ) {
+                       // Fixes bug #7229. Fix recommended by jdalton
+                       return;
+               }
+
+               var handleObjIn, handleObj;
+
+               if ( handler.handler ) {
+                       handleObjIn = handler;
+                       handler = handleObjIn.handler;
+               }
+
+               // Make sure that the function being executed has a unique ID
+               if ( !handler.guid ) {
+                       handler.guid = jQuery.guid++;
+               }
+
+               // Init the element's event structure
+               var elemData = jQuery._data( elem );
+
+               // If no elemData is found then we must be trying to bind to one of the
+               // banned noData elements
+               if ( !elemData ) {
+                       return;
+               }
+
+               var events = elemData.events,
+                       eventHandle = elemData.handle;
+
+               if ( !events ) {
+                       elemData.events = events = {};
+               }
+
+               if ( !eventHandle ) {
+                       elemData.handle = eventHandle = function( e ) {
+                               // Discard the second event of a jQuery.event.trigger() and
+                               // when an event is called after a page has unloaded
+                               return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ?
+                                       jQuery.event.handle.apply( eventHandle.elem, arguments ) :
+                                       undefined;
+                       };
+               }
+
+               // Add elem as a property of the handle function
+               // This is to prevent a memory leak with non-native events in IE.
+               eventHandle.elem = elem;
+
+               // Handle multiple events separated by a space
+               // jQuery(...).bind("mouseover mouseout", fn);
+               types = types.split(" ");
+
+               var type, i = 0, namespaces;
+
+               while ( (type = types[ i++ ]) ) {
+                       handleObj = handleObjIn ?
+                               jQuery.extend({}, handleObjIn) :
+                               { handler: handler, data: data };
+
+                       // Namespaced event handlers
+                       if ( type.indexOf(".") > -1 ) {
+                               namespaces = type.split(".");
+                               type = namespaces.shift();
+                               handleObj.namespace = namespaces.slice(0).sort().join(".");
+
+                       } else {
+                               namespaces = [];
+                               handleObj.namespace = "";
+                       }
+
+                       handleObj.type = type;
+                       if ( !handleObj.guid ) {
+                               handleObj.guid = handler.guid;
+                       }
+
+                       // Get the current list of functions bound to this event
+                       var handlers = events[ type ],
+                               special = jQuery.event.special[ type ] || {};
+
+                       // Init the event handler queue
+                       if ( !handlers ) {
+                               handlers = events[ type ] = [];
+
+                               // Check for a special event handler
+                               // Only use addEventListener/attachEvent if the special
+                               // events handler returns false
+                               if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
+                                       // Bind the global event handler to the element
+                                       if ( elem.addEventListener ) {
+                                               elem.addEventListener( type, eventHandle, false );
+
+                                       } else if ( elem.attachEvent ) {
+                                               elem.attachEvent( "on" + type, eventHandle );
+                                       }
+                               }
+                       }
+
+                       if ( special.add ) {
+                               special.add.call( elem, handleObj );
+
+                               if ( !handleObj.handler.guid ) {
+                                       handleObj.handler.guid = handler.guid;
+                               }
+                       }
+
+                       // Add the function to the element's handler list
+                       handlers.push( handleObj );
+
+                       // Keep track of which events have been used, for event optimization
+                       jQuery.event.global[ type ] = true;
+               }
+
+               // Nullify elem to prevent memory leaks in IE
+               elem = null;
+       },
+
+       global: {},
+
+       // Detach an event or set of events from an element
+       remove: function( elem, types, handler, pos ) {
+               // don't do events on text and comment nodes
+               if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
+                       return;
+               }
+
+               if ( handler === false ) {
+                       handler = returnFalse;
+               }
+
+               var ret, type, fn, j, i = 0, all, namespaces, namespace, special, eventType, handleObj, origType,
+                       elemData = jQuery.hasData( elem ) && jQuery._data( elem ),
+                       events = elemData && elemData.events;
+
+               if ( !elemData || !events ) {
+                       return;
+               }
+
+               // types is actually an event object here
+               if ( types && types.type ) {
+                       handler = types.handler;
+                       types = types.type;
+               }
+
+               // Unbind all events for the element
+               if ( !types || typeof types === "string" && types.charAt(0) === "." ) {
+                       types = types || "";
+
+                       for ( type in events ) {
+                               jQuery.event.remove( elem, type + types );
+                       }
+
+                       return;
+               }
+
+               // Handle multiple events separated by a space
+               // jQuery(...).unbind("mouseover mouseout", fn);
+               types = types.split(" ");
+
+               while ( (type = types[ i++ ]) ) {
+                       origType = type;
+                       handleObj = null;
+                       all = type.indexOf(".") < 0;
+                       namespaces = [];
+
+                       if ( !all ) {
+                               // Namespaced event handlers
+                               namespaces = type.split(".");
+                               type = namespaces.shift();
+
+                               namespace = new RegExp("(^|\\.)" +
+                                       jQuery.map( namespaces.slice(0).sort(), fcleanup ).join("\\.(?:.*\\.)?") + "(\\.|$)");
+                       }
+
+                       eventType = events[ type ];
+
+                       if ( !eventType ) {
+                               continue;
+                       }
+
+                       if ( !handler ) {
+                               for ( j = 0; j < eventType.length; j++ ) {
+                                       handleObj = eventType[ j ];
+
+                                       if ( all || namespace.test( handleObj.namespace ) ) {
+                                               jQuery.event.remove( elem, origType, handleObj.handler, j );
+                                               eventType.splice( j--, 1 );
+                                       }
+                               }
+
+                               continue;
+                       }
+
+                       special = jQuery.event.special[ type ] || {};
+
+                       for ( j = pos || 0; j < eventType.length; j++ ) {
+                               handleObj = eventType[ j ];
+
+                               if ( handler.guid === handleObj.guid ) {
+                                       // remove the given handler for the given type
+                                       if ( all || namespace.test( handleObj.namespace ) ) {
+                                               if ( pos == null ) {
+                                                       eventType.splice( j--, 1 );
+                                               }
+
+                                               if ( special.remove ) {
+                                                       special.remove.call( elem, handleObj );
+                                               }
+                                       }
+
+                                       if ( pos != null ) {
+                                               break;
+                                       }
+                               }
+                       }
+
+                       // remove generic event handler if no more handlers exist
+                       if ( eventType.length === 0 || pos != null && eventType.length === 1 ) {
+                               if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {
+                                       jQuery.removeEvent( elem, type, elemData.handle );
+                               }
+
+                               ret = null;
+                               delete events[ type ];
+                       }
+               }
+
+               // Remove the expando if it's no longer used
+               if ( jQuery.isEmptyObject( events ) ) {
+                       var handle = elemData.handle;
+                       if ( handle ) {
+                               handle.elem = null;
+                       }
+
+                       delete elemData.events;
+                       delete elemData.handle;
+
+                       if ( jQuery.isEmptyObject( elemData ) ) {
+                               jQuery.removeData( elem, undefined, true );
+                       }
+               }
+       },
+       
+       // Events that are safe to short-circuit if no handlers are attached.
+       // Native DOM events should not be added, they may have inline handlers.
+       customEvent: {
+               "getData": true,
+               "setData": true,
+               "changeData": true
+       },
+
+       trigger: function( event, data, elem, onlyHandlers ) {
+               // Event object or event type
+               var type = event.type || event,
+                       namespaces = [],
+                       exclusive;
+
+               if ( type.indexOf("!") >= 0 ) {
+                       // Exclusive events trigger only for the exact event (no namespaces)
+                       type = type.slice(0, -1);
+                       exclusive = true;
+               }
+
+               if ( type.indexOf(".") >= 0 ) {
+                       // Namespaced trigger; create a regexp to match event type in handle()
+                       namespaces = type.split(".");
+                       type = namespaces.shift();
+                       namespaces.sort();
+               }
+
+               if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) {
+                       // No jQuery handlers for this event type, and it can't have inline handlers
+                       return;
+               }
+
+               // Caller can pass in an Event, Object, or just an event type string
+               event = typeof event === "object" ?
+                       // jQuery.Event object
+                       event[ jQuery.expando ] ? event :
+                       // Object literal
+                       new jQuery.Event( type, event ) :
+                       // Just the event type (string)
+                       new jQuery.Event( type );
+
+               event.type = type;
+               event.exclusive = exclusive;
+               event.namespace = namespaces.join(".");
+               event.namespace_re = new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)");
+               
+               // triggerHandler() and global events don't bubble or run the default action
+               if ( onlyHandlers || !elem ) {
+                       event.preventDefault();
+                       event.stopPropagation();
+               }
+
+               // Handle a global trigger
+               if ( !elem ) {
+                       // TODO: Stop taunting the data cache; remove global events and always attach to document
+                       jQuery.each( jQuery.cache, function() {
+                               // internalKey variable is just used to make it easier to find
+                               // and potentially change this stuff later; currently it just
+                               // points to jQuery.expando
+                               var internalKey = jQuery.expando,
+                                       internalCache = this[ internalKey ];
+                               if ( internalCache && internalCache.events && internalCache.events[ type ] ) {
+                                       jQuery.event.trigger( event, data, internalCache.handle.elem );
+                               }
+                       });
+                       return;
+               }
+
+               // Don't do events on text and comment nodes
+               if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
+                       return;
+               }
+
+               // Clean up the event in case it is being reused
+               event.result = undefined;
+               event.target = elem;
+
+               // Clone any incoming data and prepend the event, creating the handler arg list
+               data = data != null ? jQuery.makeArray( data ) : [];
+               data.unshift( event );
+
+               var cur = elem,
+                       // IE doesn't like method names with a colon (#3533, #8272)
+                       ontype = type.indexOf(":") < 0 ? "on" + type : "";
+
+               // Fire event on the current element, then bubble up the DOM tree
+               do {
+                       var handle = jQuery._data( cur, "handle" );
+
+                       event.currentTarget = cur;
+                       if ( handle ) {
+                               handle.apply( cur, data );
+                       }
+
+                       // Trigger an inline bound script
+                       if ( ontype && jQuery.acceptData( cur ) && cur[ ontype ] && cur[ ontype ].apply( cur, data ) === false ) {
+                               event.result = false;
+                               event.preventDefault();
+                       }
+
+                       // Bubble up to document, then to window
+                       cur = cur.parentNode || cur.ownerDocument || cur === event.target.ownerDocument && window;
+               } while ( cur && !event.isPropagationStopped() );
+
+               // If nobody prevented the default action, do it now
+               if ( !event.isDefaultPrevented() ) {
+                       var old,
+                               special = jQuery.event.special[ type ] || {};
+
+                       if ( (!special._default || special._default.call( elem.ownerDocument, event ) === false) &&
+                               !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) {
+
+                               // Call a native DOM method on the target with the same name name as the event.
+                               // Can't use an .isFunction)() check here because IE6/7 fails that test.
+                               // IE<9 dies on focus to hidden element (#1486), may want to revisit a try/catch.
+                               try {
+                                       if ( ontype && elem[ type ] ) {
+                                               // Don't re-trigger an onFOO event when we call its FOO() method
+                                               old = elem[ ontype ];
+
+                                               if ( old ) {
+                                                       elem[ ontype ] = null;
+                                               }
+
+                                               jQuery.event.triggered = type;
+                                               elem[ type ]();
+                                       }
+                               } catch ( ieError ) {}
+
+                               if ( old ) {
+                                       elem[ ontype ] = old;
+                               }
+
+                               jQuery.event.triggered = undefined;
+                       }
+               }
+               
+               return event.result;
+       },
+
+       handle: function( event ) {
+               event = jQuery.event.fix( event || window.event );
+               // Snapshot the handlers list since a called handler may add/remove events.
+               var handlers = ((jQuery._data( this, "events" ) || {})[ event.type ] || []).slice(0),
+                       run_all = !event.exclusive && !event.namespace,
+                       args = Array.prototype.slice.call( arguments, 0 );
+
+               // Use the fix-ed Event rather than the (read-only) native event
+               args[0] = event;
+               event.currentTarget = this;
+
+               for ( var j = 0, l = handlers.length; j < l; j++ ) {
+                       var handleObj = handlers[ j ];
+
+                       // Triggered event must 1) be non-exclusive and have no namespace, or
+                       // 2) have namespace(s) a subset or equal to those in the bound event.
+                       if ( run_all || event.namespace_re.test( handleObj.namespace ) ) {
+                               // Pass in a reference to the handler function itself
+                               // So that we can later remove it
+                               event.handler = handleObj.handler;
+                               event.data = handleObj.data;
+                               event.handleObj = handleObj;
+
+                               var ret = handleObj.handler.apply( this, args );
+
+                               if ( ret !== undefined ) {
+                                       event.result = ret;
+                                       if ( ret === false ) {
+                                               event.preventDefault();
+                                               event.stopPropagation();
+                                       }
+                               }
+
+                               if ( event.isImmediatePropagationStopped() ) {
+                                       break;
+                               }
+                       }
+               }
+               return event.result;
+       },
+
+       props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
+
+       fix: function( event ) {
+               if ( event[ jQuery.expando ] ) {
+                       return event;
+               }
+
+               // store a copy of the original event object
+               // and "clone" to set read-only properties
+               var originalEvent = event;
+               event = jQuery.Event( originalEvent );
+
+               for ( var i = this.props.length, prop; i; ) {
+                       prop = this.props[ --i ];
+                       event[ prop ] = originalEvent[ prop ];
+               }
+
+               // Fix target property, if necessary
+               if ( !event.target ) {
+                       // Fixes #1925 where srcElement might not be defined either
+                       event.target = event.srcElement || document;
+               }
+
+               // check if target is a textnode (safari)
+               if ( event.target.nodeType === 3 ) {
+                       event.target = event.target.parentNode;
+               }
+
+               // Add relatedTarget, if necessary
+               if ( !event.relatedTarget && event.fromElement ) {
+                       event.relatedTarget = event.fromElement === event.target ? event.toElement : event.fromElement;
+               }
+
+               // Calculate pageX/Y if missing and clientX/Y available
+               if ( event.pageX == null && event.clientX != null ) {
+                       var eventDocument = event.target.ownerDocument || document,
+                               doc = eventDocument.documentElement,
+                               body = eventDocument.body;
+
+                       event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
+                       event.pageY = event.clientY + (doc && doc.scrollTop  || body && body.scrollTop  || 0) - (doc && doc.clientTop  || body && body.clientTop  || 0);
+               }
+
+               // Add which for key events
+               if ( event.which == null && (event.charCode != null || event.keyCode != null) ) {
+                       event.which = event.charCode != null ? event.charCode : event.keyCode;
+               }
+
+               // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)
+               if ( !event.metaKey && event.ctrlKey ) {
+                       event.metaKey = event.ctrlKey;
+               }
+
+               // Add which for click: 1 === left; 2 === middle; 3 === right
+               // Note: button is not normalized, so don't use it
+               if ( !event.which && event.button !== undefined ) {
+                       event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
+               }
+
+               return event;
+       },
+
+       // Deprecated, use jQuery.guid instead
+       guid: 1E8,
+
+       // Deprecated, use jQuery.proxy instead
+       proxy: jQuery.proxy,
+
+       special: {
+               ready: {
+                       // Make sure the ready event is setup
+                       setup: jQuery.bindReady,
+                       teardown: jQuery.noop
+               },
+
+               live: {
+                       add: function( handleObj ) {
+                               jQuery.event.add( this,
+                                       liveConvert( handleObj.origType, handleObj.selector ),
+                                       jQuery.extend({}, handleObj, {handler: liveHandler, guid: handleObj.handler.guid}) );
+                       },
+
+                       remove: function( handleObj ) {
+                               jQuery.event.remove( this, liveConvert( handleObj.origType, handleObj.selector ), handleObj );
+                       }
+               },
+
+               beforeunload: {
+                       setup: function( data, namespaces, eventHandle ) {
+                               // We only want to do this special case on windows
+                               if ( jQuery.isWindow( this ) ) {
+                                       this.onbeforeunload = eventHandle;
+                               }
+                       },
+
+                       teardown: function( namespaces, eventHandle ) {
+                               if ( this.onbeforeunload === eventHandle ) {
+                                       this.onbeforeunload = null;
+                               }
+                       }
+               }
+       }
+};
+
+jQuery.removeEvent = document.removeEventListener ?
+       function( elem, type, handle ) {
+               if ( elem.removeEventListener ) {
+                       elem.removeEventListener( type, handle, false );
+               }
+       } :
+       function( elem, type, handle ) {
+               if ( elem.detachEvent ) {
+                       elem.detachEvent( "on" + type, handle );
+               }
+       };
+
+jQuery.Event = function( src, props ) {
+       // Allow instantiation without the 'new' keyword
+       if ( !this.preventDefault ) {
+               return new jQuery.Event( src, props );
+       }
+
+       // Event object
+       if ( src && src.type ) {
+               this.originalEvent = src;
+               this.type = src.type;
+
+               // Events bubbling up the document may have been marked as prevented
+               // by a handler lower down the tree; reflect the correct value.
+               this.isDefaultPrevented = (src.defaultPrevented || src.returnValue === false ||
+                       src.getPreventDefault && src.getPreventDefault()) ? returnTrue : returnFalse;
+
+       // Event type
+       } else {
+               this.type = src;
+       }
+
+       // Put explicitly provided properties onto the event object
+       if ( props ) {
+               jQuery.extend( this, props );
+       }
+
+       // timeStamp is buggy for some events on Firefox(#3843)
+       // So we won't rely on the native value
+       this.timeStamp = jQuery.now();
+
+       // Mark it as fixed
+       this[ jQuery.expando ] = true;
+};
+
+function returnFalse() {
+       return false;
+}
+function returnTrue() {
+       return true;
+}
+
+// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
+// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
+jQuery.Event.prototype = {
+       preventDefault: function() {
+               this.isDefaultPrevented = returnTrue;
+
+               var e = this.originalEvent;
+               if ( !e ) {
+                       return;
+               }
+
+               // if preventDefault exists run it on the original event
+               if ( e.preventDefault ) {
+                       e.preventDefault();
+
+               // otherwise set the returnValue property of the original event to false (IE)
+               } else {
+                       e.returnValue = false;
+               }
+       },
+       stopPropagation: function() {
+               this.isPropagationStopped = returnTrue;
+
+               var e = this.originalEvent;
+               if ( !e ) {
+                       return;
+               }
+               // if stopPropagation exists run it on the original event
+               if ( e.stopPropagation ) {
+                       e.stopPropagation();
+               }
+               // otherwise set the cancelBubble property of the original event to true (IE)
+               e.cancelBubble = true;
+       },
+       stopImmediatePropagation: function() {
+               this.isImmediatePropagationStopped = returnTrue;
+               this.stopPropagation();
+       },
+       isDefaultPrevented: returnFalse,
+       isPropagationStopped: returnFalse,
+       isImmediatePropagationStopped: returnFalse
+};
+
+// Checks if an event happened on an element within another element
+// Used in jQuery.event.special.mouseenter and mouseleave handlers
+var withinElement = function( event ) {
+
+       // Check if mouse(over|out) are still within the same parent element
+       var related = event.relatedTarget,
+               inside = false,
+               eventType = event.type;
+
+       event.type = event.data;
+
+       if ( related !== this ) {
+
+               if ( related ) {
+                       inside = jQuery.contains( this, related );
+               }
+
+               if ( !inside ) {
+
+                       jQuery.event.handle.apply( this, arguments );
+
+                       event.type = eventType;
+               }
+       }
+},
+
+// In case of event delegation, we only need to rename the event.type,
+// liveHandler will take care of the rest.
+delegate = function( event ) {
+       event.type = event.data;
+       jQuery.event.handle.apply( this, arguments );
+};
+
+// Create mouseenter and mouseleave events
+jQuery.each({
+       mouseenter: "mouseover",
+       mouseleave: "mouseout"
+}, function( orig, fix ) {
+       jQuery.event.special[ orig ] = {
+               setup: function( data ) {
+                       jQuery.event.add( this, fix, data && data.selector ? delegate : withinElement, orig );
+               },
+               teardown: function( data ) {
+                       jQuery.event.remove( this, fix, data && data.selector ? delegate : withinElement );
+               }
+       };
+});
+
+// submit delegation
+if ( !jQuery.support.submitBubbles ) {
+
+       jQuery.event.special.submit = {
+               setup: function( data, namespaces ) {
+                       if ( !jQuery.nodeName( this, "form" ) ) {
+                               jQuery.event.add(this, "click.specialSubmit", function( e ) {
+                                       // Avoid triggering error on non-existent type attribute in IE VML (#7071)
+                                       var elem = e.target,
+                                               type = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.type : "";
+
+                                       if ( (type === "submit" || type === "image") && jQuery( elem ).closest("form").length ) {
+                                               trigger( "submit", this, arguments );
+                                       }
+                               });
+
+                               jQuery.event.add(this, "keypress.specialSubmit", function( e ) {
+                                       var elem = e.target,
+                                               type = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.type : "";
+
+                                       if ( (type === "text" || type === "password") && jQuery( elem ).closest("form").length && e.keyCode === 13 ) {
+                                               trigger( "submit", this, arguments );
+                                       }
+                               });
+
+                       } else {
+                               return false;
+                       }
+               },
+
+               teardown: function( namespaces ) {
+                       jQuery.event.remove( this, ".specialSubmit" );
+               }
+       };
+
+}
+
+// change delegation, happens here so we have bind.
+if ( !jQuery.support.changeBubbles ) {
+
+       var changeFilters,
+
+       getVal = function( elem ) {
+               var type = jQuery.nodeName( elem, "input" ) ? elem.type : "",
+                       val = elem.value;
+
+               if ( type === "radio" || type === "checkbox" ) {
+                       val = elem.checked;
+
+               } else if ( type === "select-multiple" ) {
+                       val = elem.selectedIndex > -1 ?
+                               jQuery.map( elem.options, function( elem ) {
+                                       return elem.selected;
+                               }).join("-") :
+                               "";
+
+               } else if ( jQuery.nodeName( elem, "select" ) ) {
+                       val = elem.selectedIndex;
+               }
+
+               return val;
+       },
+
+       testChange = function testChange( e ) {
+               var elem = e.target, data, val;
+
+               if ( !rformElems.test( elem.nodeName ) || elem.readOnly ) {
+                       return;
+               }
+
+               data = jQuery._data( elem, "_change_data" );
+               val = getVal(elem);
+
+               // the current data will be also retrieved by beforeactivate
+               if ( e.type !== "focusout" || elem.type !== "radio" ) {
+                       jQuery._data( elem, "_change_data", val );
+               }
+
+               if ( data === undefined || val === data ) {
+                       return;
+               }
+
+               if ( data != null || val ) {
+                       e.type = "change";
+                       e.liveFired = undefined;
+                       jQuery.event.trigger( e, arguments[1], elem );
+               }
+       };
+
+       jQuery.event.special.change = {
+               filters: {
+                       focusout: testChange,
+
+                       beforedeactivate: testChange,
+
+                       click: function( e ) {
+                               var elem = e.target, type = jQuery.nodeName( elem, "input" ) ? elem.type : "";
+
+                               if ( type === "radio" || type === "checkbox" || jQuery.nodeName( elem, "select" ) ) {
+                                       testChange.call( this, e );
+                               }
+                       },
+
+                       // Change has to be called before submit
+                       // Keydown will be called before keypress, which is used in submit-event delegation
+                       keydown: function( e ) {
+                               var elem = e.target, type = jQuery.nodeName( elem, "input" ) ? elem.type : "";
+
+                               if ( (e.keyCode === 13 && !jQuery.nodeName( elem, "textarea" ) ) ||
+                                       (e.keyCode === 32 && (type === "checkbox" || type === "radio")) ||
+                                       type === "select-multiple" ) {
+                                       testChange.call( this, e );
+                               }
+                       },
+
+                       // Beforeactivate happens also before the previous element is blurred
+                       // with this event you can't trigger a change event, but you can store
+                       // information
+                       beforeactivate: function( e ) {
+                               var elem = e.target;
+                               jQuery._data( elem, "_change_data", getVal(elem) );
+                       }
+               },
+
+               setup: function( data, namespaces ) {
+                       if ( this.type === "file" ) {
+                               return false;
+                       }
+
+                       for ( var type in changeFilters ) {
+                               jQuery.event.add( this, type + ".specialChange", changeFilters[type] );
+                       }
+
+                       return rformElems.test( this.nodeName );
+               },
+
+               teardown: function( namespaces ) {
+                       jQuery.event.remove( this, ".specialChange" );
+
+                       return rformElems.test( this.nodeName );
+               }
+       };
+
+       changeFilters = jQuery.event.special.change.filters;
+
+       // Handle when the input is .focus()'d
+       changeFilters.focus = changeFilters.beforeactivate;
+}
+
+function trigger( type, elem, args ) {
+       // Piggyback on a donor event to simulate a different one.
+       // Fake originalEvent to avoid donor's stopPropagation, but if the
+       // simulated event prevents default then we do the same on the donor.
+       // Don't pass args or remember liveFired; they apply to the donor event.
+       var event = jQuery.extend( {}, args[ 0 ] );
+       event.type = type;
+       event.originalEvent = {};
+       event.liveFired = undefined;
+       jQuery.event.handle.call( elem, event );
+       if ( event.isDefaultPrevented() ) {
+               args[ 0 ].preventDefault();
+       }
+}
+
+// Create "bubbling" focus and blur events
+if ( !jQuery.support.focusinBubbles ) {
+       jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
+
+               // Attach a single capturing handler while someone wants focusin/focusout
+               var attaches = 0;
+
+               jQuery.event.special[ fix ] = {
+                       setup: function() {
+                               if ( attaches++ === 0 ) {
+                                       document.addEventListener( orig, handler, true );
+                               }
+                       },
+                       teardown: function() {
+                               if ( --attaches === 0 ) {
+                                       document.removeEventListener( orig, handler, true );
+                               }
+                       }
+               };
+
+               function handler( donor ) {
+                       // Donor event is always a native one; fix it and switch its type.
+                       // Let focusin/out handler cancel the donor focus/blur event.
+                       var e = jQuery.event.fix( donor );
+                       e.type = fix;
+                       e.originalEvent = {};
+                       jQuery.event.trigger( e, null, e.target );
+                       if ( e.isDefaultPrevented() ) {
+                               donor.preventDefault();
+                       }
+               }
+       });
+}
+
+jQuery.each(["bind", "one"], function( i, name ) {
+       jQuery.fn[ name ] = function( type, data, fn ) {
+               var handler;
+
+               // Handle object literals
+               if ( typeof type === "object" ) {
+                       for ( var key in type ) {
+                               this[ name ](key, data, type[key], fn);
+                       }
+                       return this;
+               }
+
+               if ( arguments.length === 2 || data === false ) {
+                       fn = data;
+                       data = undefined;
+               }
+
+               if ( name === "one" ) {
+                       handler = function( event ) {
+                               jQuery( this ).unbind( event, handler );
+                               return fn.apply( this, arguments );
+                       };
+                       handler.guid = fn.guid || jQuery.guid++;
+               } else {
+                       handler = fn;
+               }
+
+               if ( type === "unload" && name !== "one" ) {
+                       this.one( type, data, fn );
+
+               } else {
+                       for ( var i = 0, l = this.length; i < l; i++ ) {
+                               jQuery.event.add( this[i], type, handler, data );
+                       }
+               }
+
+               return this;
+       };
+});
+
+jQuery.fn.extend({
+       unbind: function( type, fn ) {
+               // Handle object literals
+               if ( typeof type === "object" && !type.preventDefault ) {
+                       for ( var key in type ) {
+                               this.unbind(key, type[key]);
+                       }
+
+               } else {
+                       for ( var i = 0, l = this.length; i < l; i++ ) {
+                               jQuery.event.remove( this[i], type, fn );
+                       }
+               }
+
+               return this;
+       },
+
+       delegate: function( selector, types, data, fn ) {
+               return this.live( types, data, fn, selector );
+       },
+
+       undelegate: function( selector, types, fn ) {
+               if ( arguments.length === 0 ) {
+                       return this.unbind( "live" );
+
+               } else {
+                       return this.die( types, null, fn, selector );
+               }
+       },
+
+       trigger: function( type, data ) {
+               return this.each(function() {
+                       jQuery.event.trigger( type, data, this );
+               });
+       },
+
+       triggerHandler: function( type, data ) {
+               if ( this[0] ) {
+                       return jQuery.event.trigger( type, data, this[0], true );
+               }
+       },
+
+       toggle: function( fn ) {
+               // Save reference to arguments for access in closure
+               var args = arguments,
+                       guid = fn.guid || jQuery.guid++,
+                       i = 0,
+                       toggler = function( event ) {
+                               // Figure out which function to execute
+                               var lastToggle = ( jQuery.data( this, "lastToggle" + fn.guid ) || 0 ) % i;
+                               jQuery.data( this, "lastToggle" + fn.guid, lastToggle + 1 );
+
+                               // Make sure that clicks stop
+                               event.preventDefault();
+
+                               // and execute the function
+                               return args[ lastToggle ].apply( this, arguments ) || false;
+                       };
+
+               // link all the functions, so any of them can unbind this click handler
+               toggler.guid = guid;
+               while ( i < args.length ) {
+                       args[ i++ ].guid = guid;
+               }
+
+               return this.click( toggler );
+       },
+
+       hover: function( fnOver, fnOut ) {
+               return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
+       }
+});
+
+var liveMap = {
+       focus: "focusin",
+       blur: "focusout",
+       mouseenter: "mouseover",
+       mouseleave: "mouseout"
+};
+
+jQuery.each(["live", "die"], function( i, name ) {
+       jQuery.fn[ name ] = function( types, data, fn, origSelector /* Internal Use Only */ ) {
+               var type, i = 0, match, namespaces, preType,
+                       selector = origSelector || this.selector,
+                       context = origSelector ? this : jQuery( this.context );
+
+               if ( typeof types === "object" && !types.preventDefault ) {
+                       for ( var key in types ) {
+                               context[ name ]( key, data, types[key], selector );
+                       }
+
+                       return this;
+               }
+
+               if ( name === "die" && !types &&
+                                       origSelector && origSelector.charAt(0) === "." ) {
+
+                       context.unbind( origSelector );
+
+                       return this;
+               }
+
+               if ( data === false || jQuery.isFunction( data ) ) {
+                       fn = data || returnFalse;
+                       data = undefined;
+               }
+
+               types = (types || "").split(" ");
+
+               while ( (type = types[ i++ ]) != null ) {
+                       match = rnamespaces.exec( type );
+                       namespaces = "";
+
+                       if ( match )  {
+                               namespaces = match[0];
+                               type = type.replace( rnamespaces, "" );
+                       }
+
+                       if ( type === "hover" ) {
+                               types.push( "mouseenter" + namespaces, "mouseleave" + namespaces );
+                               continue;
+                       }
+
+                       preType = type;
+
+                       if ( liveMap[ type ] ) {
+                               types.push( liveMap[ type ] + namespaces );
+                               type = type + namespaces;
+
+                       } else {
+                               type = (liveMap[ type ] || type) + namespaces;
+                       }
+
+                       if ( name === "live" ) {
+                               // bind live handler
+                               for ( var j = 0, l = context.length; j < l; j++ ) {
+                                       jQuery.event.add( context[j], "live." + liveConvert( type, selector ),
+                                               { data: data, selector: selector, handler: fn, origType: type, origHandler: fn, preType: preType } );
+                               }
+
+                       } else {
+                               // unbind live handler
+                               context.unbind( "live." + liveConvert( type, selector ), fn );
+                       }
+               }
+
+               return this;
+       };
+});
+
+function liveHandler( event ) {
+       var stop, maxLevel, related, match, handleObj, elem, j, i, l, data, close, namespace, ret,
+               elems = [],
+               selectors = [],
+               events = jQuery._data( this, "events" );
+
+       // Make sure we avoid non-left-click bubbling in Firefox (#3861) and disabled elements in IE (#6911)
+       if ( event.liveFired === this || !events || !events.live || event.target.disabled || event.button && event.type === "click" ) {
+               return;
+       }
+
+       if ( event.namespace ) {
+               namespace = new RegExp("(^|\\.)" + event.namespace.split(".").join("\\.(?:.*\\.)?") + "(\\.|$)");
+       }
+
+       event.liveFired = this;
+
+       var live = events.live.slice(0);
+
+       for ( j = 0; j < live.length; j++ ) {
+               handleObj = live[j];
+
+               if ( handleObj.origType.replace( rnamespaces, "" ) === event.type ) {
+                       selectors.push( handleObj.selector );
+
+               } else {
+                       live.splice( j--, 1 );
+               }
+       }
+
+       match = jQuery( event.target ).closest( selectors, event.currentTarget );
+
+       for ( i = 0, l = match.length; i < l; i++ ) {
+               close = match[i];
+
+               for ( j = 0; j < live.length; j++ ) {
+                       handleObj = live[j];
+
+                       if ( close.selector === handleObj.selector && (!namespace || namespace.test( handleObj.namespace )) && !close.elem.disabled ) {
+                               elem = close.elem;
+                               related = null;
+
+                               // Those two events require additional checking
+                               if ( handleObj.preType === "mouseenter" || handleObj.preType === "mouseleave" ) {
+                                       event.type = handleObj.preType;
+                                       related = jQuery( event.relatedTarget ).closest( handleObj.selector )[0];
+
+                                       // Make sure not to accidentally match a child element with the same selector
+                                       if ( related && jQuery.contains( elem, related ) ) {
+                                               related = elem;
+                                       }
+                               }
+
+                               if ( !related || related !== elem ) {
+                                       elems.push({ elem: elem, handleObj: handleObj, level: close.level });
+                               }
+                       }
+               }
+       }
+
+       for ( i = 0, l = elems.length; i < l; i++ ) {
+               match = elems[i];
+
+               if ( maxLevel && match.level > maxLevel ) {
+                       break;
+               }
+
+               event.currentTarget = match.elem;
+               event.data = match.handleObj.data;
+               event.handleObj = match.handleObj;
+
+               ret = match.handleObj.origHandler.apply( match.elem, arguments );
+
+               if ( ret === false || event.isPropagationStopped() ) {
+                       maxLevel = match.level;
+
+                       if ( ret === false ) {
+                               stop = false;
+                       }
+                       if ( event.isImmediatePropagationStopped() ) {
+                               break;
+                       }
+               }
+       }
+
+       return stop;
+}
+
+function liveConvert( type, selector ) {
+       return (type && type !== "*" ? type + "." : "") + selector.replace(rperiod, "`").replace(rspaces, "&");
+}
+
+jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
+       "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
+       "change select submit keydown keypress keyup error").split(" "), function( i, name ) {
+
+       // Handle event binding
+       jQuery.fn[ name ] = function( data, fn ) {
+               if ( fn == null ) {
+                       fn = data;
+                       data = null;
+               }
+
+               return arguments.length > 0 ?
+                       this.bind( name, data, fn ) :
+                       this.trigger( name );
+       };
+
+       if ( jQuery.attrFn ) {
+               jQuery.attrFn[ name ] = true;
+       }
+});
+
+
+
+/*!
+ * Sizzle CSS Selector Engine
+ *  Copyright 2011, The Dojo Foundation
+ *  Released under the MIT, BSD, and GPL Licenses.
+ *  More information: http://sizzlejs.com/
+ */
+(function(){
+
+var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
+       done = 0,
+       toString = Object.prototype.toString,
+       hasDuplicate = false,
+       baseHasDuplicate = true,
+       rBackslash = /\\/g,
+       rNonWord = /\W/;
+
+// Here we check if the JavaScript engine is using some sort of
+// optimization where it does not always call our comparision
+// function. If that is the case, discard the hasDuplicate value.
+//   Thus far that includes Google Chrome.
+[0, 0].sort(function() {
+       baseHasDuplicate = false;
+       return 0;
+});
+
+var Sizzle = function( selector, context, results, seed ) {
+       results = results || [];
+       context = context || document;
+
+       var origContext = context;
+
+       if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
+               return [];
+       }
+       
+       if ( !selector || typeof selector !== "string" ) {
+               return results;
+       }
+
+       var m, set, checkSet, extra, ret, cur, pop, i,
+               prune = true,
+               contextXML = Sizzle.isXML( context ),
+               parts = [],
+               soFar = selector;
+       
+       // Reset the position of the chunker regexp (start from head)
+       do {
+               chunker.exec( "" );
+               m = chunker.exec( soFar );
+
+               if ( m ) {
+                       soFar = m[3];
+               
+                       parts.push( m[1] );
+               
+                       if ( m[2] ) {
+                               extra = m[3];
+                               break;
+                       }
+               }
+       } while ( m );
+
+       if ( parts.length > 1 && origPOS.exec( selector ) ) {
+
+               if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
+                       set = posProcess( parts[0] + parts[1], context );
+
+               } else {
+                       set = Expr.relative[ parts[0] ] ?
+                               [ context ] :
+                               Sizzle( parts.shift(), context );
+
+                       while ( parts.length ) {
+                               selector = parts.shift();
+
+                               if ( Expr.relative[ selector ] ) {
+                                       selector += parts.shift();
+                               }
+                               
+                               set = posProcess( selector, set );
+                       }
+               }
+
+       } else {
+               // Take a shortcut and set the context if the root selector is an ID
+               // (but not if it'll be faster if the inner selector is an ID)
+               if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
+                               Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
+
+                       ret = Sizzle.find( parts.shift(), context, contextXML );
+                       context = ret.expr ?
+                               Sizzle.filter( ret.expr, ret.set )[0] :
+                               ret.set[0];
+               }
+
+               if ( context ) {
+                       ret = seed ?
+                               { expr: parts.pop(), set: makeArray(seed) } :
+                               Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );
+
+                       set = ret.expr ?
+                               Sizzle.filter( ret.expr, ret.set ) :
+                               ret.set;
+
+                       if ( parts.length > 0 ) {
+                               checkSet = makeArray( set );
+
+                       } else {
+                               prune = false;
+                       }
+
+                       while ( parts.length ) {
+                               cur = parts.pop();
+                               pop = cur;
+
+                               if ( !Expr.relative[ cur ] ) {
+                                       cur = "";
+                               } else {
+                                       pop = parts.pop();
+                               }
+
+                               if ( pop == null ) {
+                                       pop = context;
+                               }
+
+                               Expr.relative[ cur ]( checkSet, pop, contextXML );
+                       }
+
+               } else {
+                       checkSet = parts = [];
+               }
+       }
+
+       if ( !checkSet ) {
+               checkSet = set;
+       }
+
+       if ( !checkSet ) {
+               Sizzle.error( cur || selector );
+       }
+
+       if ( toString.call(checkSet) === "[object Array]" ) {
+               if ( !prune ) {
+                       results.push.apply( results, checkSet );
+
+               } else if ( context && context.nodeType === 1 ) {
+                       for ( i = 0; checkSet[i] != null; i++ ) {
+                               if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {
+                                       results.push( set[i] );
+                               }
+                       }
+
+               } else {
+                       for ( i = 0; checkSet[i] != null; i++ ) {
+                               if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
+                                       results.push( set[i] );
+                               }
+                       }
+               }
+
+       } else {
+               makeArray( checkSet, results );
+       }
+
+       if ( extra ) {
+               Sizzle( extra, origContext, results, seed );
+               Sizzle.uniqueSort( results );
+       }
+
+       return results;
+};
+
+Sizzle.uniqueSort = function( results ) {
+       if ( sortOrder ) {
+               hasDuplicate = baseHasDuplicate;
+               results.sort( sortOrder );
+
+               if ( hasDuplicate ) {
+                       for ( var i = 1; i < results.length; i++ ) {
+                               if ( results[i] === results[ i - 1 ] ) {
+                                       results.splice( i--, 1 );
+                               }
+                       }
+               }
+       }
+
+       return results;
+};
+
+Sizzle.matches = function( expr, set ) {
+       return Sizzle( expr, null, null, set );
+};
+
+Sizzle.matchesSelector = function( node, expr ) {
+       return Sizzle( expr, null, null, [node] ).length > 0;
+};
+
+Sizzle.find = function( expr, context, isXML ) {
+       var set;
+
+       if ( !expr ) {
+               return [];
+       }
+
+       for ( var i = 0, l = Expr.order.length; i < l; i++ ) {
+               var match,
+                       type = Expr.order[i];
+               
+               if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
+                       var left = match[1];
+                       match.splice( 1, 1 );
+
+                       if ( left.substr( left.length - 1 ) !== "\\" ) {
+                               match[1] = (match[1] || "").replace( rBackslash, "" );
+                               set = Expr.find[ type ]( match, context, isXML );
+
+                               if ( set != null ) {
+                                       expr = expr.replace( Expr.match[ type ], "" );
+                                       break;
+                               }
+                       }
+               }
+       }
+
+       if ( !set ) {
+               set = typeof context.getElementsByTagName !== "undefined" ?
+                       context.getElementsByTagName( "*" ) :
+                       [];
+       }
+
+       return { set: set, expr: expr };
+};
+
+Sizzle.filter = function( expr, set, inplace, not ) {
+       var match, anyFound,
+               old = expr,
+               result = [],
+               curLoop = set,
+               isXMLFilter = set && set[0] && Sizzle.isXML( set[0] );
+
+       while ( expr && set.length ) {
+               for ( var type in Expr.filter ) {
+                       if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
+                               var found, item,
+                                       filter = Expr.filter[ type ],
+                                       left = match[1];
+
+                               anyFound = false;
+
+                               match.splice(1,1);
+
+                               if ( left.substr( left.length - 1 ) === "\\" ) {
+                                       continue;
+                               }
+
+                               if ( curLoop === result ) {
+                                       result = [];
+                               }
+
+                               if ( Expr.preFilter[ type ] ) {
+                                       match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
+
+                                       if ( !match ) {
+                                               anyFound = found = true;
+
+                                       } else if ( match === true ) {
+                                               continue;
+                                       }
+                               }
+
+                               if ( match ) {
+                                       for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
+                                               if ( item ) {
+                                                       found = filter( item, match, i, curLoop );
+                                                       var pass = not ^ !!found;
+
+                                                       if ( inplace && found != null ) {
+                                                               if ( pass ) {
+                                                                       anyFound = true;
+
+                                                               } else {
+                                                                       curLoop[i] = false;
+                                                               }
+
+                                                       } else if ( pass ) {
+                                                               result.push( item );
+                                                               anyFound = true;
+                                                       }
+                                               }
+                                       }
+                               }
+
+                               if ( found !== undefined ) {
+                                       if ( !inplace ) {
+                                               curLoop = result;
+                                       }
+
+                                       expr = expr.replace( Expr.match[ type ], "" );
+
+                                       if ( !anyFound ) {
+                                               return [];
+                                       }
+
+                                       break;
+                               }
+                       }
+               }
+
+               // Improper expression
+               if ( expr === old ) {
+                       if ( anyFound == null ) {
+                               Sizzle.error( expr );
+
+                       } else {
+                               break;
+                       }
+               }
+
+               old = expr;
+       }
+
+       return curLoop;
+};
+
+Sizzle.error = function( msg ) {
+       throw "Syntax error, unrecognized expression: " + msg;
+};
+
+var Expr = Sizzle.selectors = {
+       order: [ "ID", "NAME", "TAG" ],
+
+       match: {
+               ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
+               CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
+               NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
+               ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
+               TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,
+               CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,
+               POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,
+               PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
+       },
+
+       leftMatch: {},
+
+       attrMap: {
+               "class": "className",
+               "for": "htmlFor"
+       },
+
+       attrHandle: {
+               href: function( elem ) {
+                       return elem.getAttribute( "href" );
+               },
+               type: function( elem ) {
+                       return elem.getAttribute( "type" );
+               }
+       },
+
+       relative: {
+               "+": function(checkSet, part){
+                       var isPartStr = typeof part === "string",
+                               isTag = isPartStr && !rNonWord.test( part ),
+                               isPartStrNotTag = isPartStr && !isTag;
+
+                       if ( isTag ) {
+                               part = part.toLowerCase();
+                       }
+
+                       for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
+                               if ( (elem = checkSet[i]) ) {
+                                       while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
+
+                                       checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?
+                                               elem || false :
+                                               elem === part;
+                               }
+                       }
+
+                       if ( isPartStrNotTag ) {
+                               Sizzle.filter( part, checkSet, true );
+                       }
+               },
+
+               ">": function( checkSet, part ) {
+                       var elem,
+                               isPartStr = typeof part === "string",
+                               i = 0,
+                               l = checkSet.length;
+
+                       if ( isPartStr && !rNonWord.test( part ) ) {
+                               part = part.toLowerCase();
+
+                               for ( ; i < l; i++ ) {
+                                       elem = checkSet[i];
+
+                                       if ( elem ) {
+                                               var parent = elem.parentNode;
+                                               checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
+                                       }
+                               }
+
+                       } else {
+                               for ( ; i < l; i++ ) {
+                                       elem = checkSet[i];
+
+                                       if ( elem ) {
+                                               checkSet[i] = isPartStr ?
+                                                       elem.parentNode :
+                                                       elem.parentNode === part;
+                                       }
+                               }
+
+                               if ( isPartStr ) {
+                                       Sizzle.filter( part, checkSet, true );
+                               }
+                       }
+               },
+
+               "": function(checkSet, part, isXML){
+                       var nodeCheck,
+                               doneName = done++,
+                               checkFn = dirCheck;
+
+                       if ( typeof part === "string" && !rNonWord.test( part ) ) {
+                               part = part.toLowerCase();
+                               nodeCheck = part;
+                               checkFn = dirNodeCheck;
+                       }
+
+                       checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML );
+               },
+
+               "~": function( checkSet, part, isXML ) {
+                       var nodeCheck,
+                               doneName = done++,
+                               checkFn = dirCheck;
+
+                       if ( typeof part === "string" && !rNonWord.test( part ) ) {
+                               part = part.toLowerCase();
+                               nodeCheck = part;
+                               checkFn = dirNodeCheck;
+                       }
+
+                       checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML );
+               }
+       },
+
+       find: {
+               ID: function( match, context, isXML ) {
+                       if ( typeof context.getElementById !== "undefined" && !isXML ) {
+                               var m = context.getElementById(match[1]);
+                               // Check parentNode to catch when Blackberry 4.6 returns
+                               // nodes that are no longer in the document #6963
+                               return m && m.parentNode ? [m] : [];
+                       }
+               },
+
+               NAME: function( match, context ) {
+                       if ( typeof context.getElementsByName !== "undefined" ) {
+                               var ret = [],
+                                       results = context.getElementsByName( match[1] );
+
+                               for ( var i = 0, l = results.length; i < l; i++ ) {
+                                       if ( results[i].getAttribute("name") === match[1] ) {
+                                               ret.push( results[i] );
+                                       }
+                               }
+
+                               return ret.length === 0 ? null : ret;
+                       }
+               },
+
+               TAG: function( match, context ) {
+                       if ( typeof context.getElementsByTagName !== "undefined" ) {
+                               return context.getElementsByTagName( match[1] );
+                       }
+               }
+       },
+       preFilter: {
+               CLASS: function( match, curLoop, inplace, result, not, isXML ) {
+                       match = " " + match[1].replace( rBackslash, "" ) + " ";
+
+                       if ( isXML ) {
+                               return match;
+                       }
+
+                       for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
+                               if ( elem ) {
+                                       if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) {
+                                               if ( !inplace ) {
+                                                       result.push( elem );
+                                               }
+
+                                       } else if ( inplace ) {
+                                               curLoop[i] = false;
+                                       }
+                               }
+                       }
+
+                       return false;
+               },
+
+               ID: function( match ) {
+                       return match[1].replace( rBackslash, "" );
+               },
+
+               TAG: function( match, curLoop ) {
+                       return match[1].replace( rBackslash, "" ).toLowerCase();
+               },
+
+               CHILD: function( match ) {
+                       if ( match[1] === "nth" ) {
+                               if ( !match[2] ) {
+                                       Sizzle.error( match[0] );
+                               }
+
+                               match[2] = match[2].replace(/^\+|\s*/g, '');
+
+                               // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
+                               var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec(
+                                       match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
+                                       !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
+
+                               // calculate the numbers (first)n+(last) including if they are negative
+                               match[2] = (test[1] + (test[2] || 1)) - 0;
+                               match[3] = test[3] - 0;
+                       }
+                       else if ( match[2] ) {
+                               Sizzle.error( match[0] );
+                       }
+
+                       // TODO: Move to normal caching system
+                       match[0] = done++;
+
+                       return match;
+               },
+
+               ATTR: function( match, curLoop, inplace, result, not, isXML ) {
+                       var name = match[1] = match[1].replace( rBackslash, "" );
+                       
+                       if ( !isXML && Expr.attrMap[name] ) {
+                               match[1] = Expr.attrMap[name];
+                       }
+
+                       // Handle if an un-quoted value was used
+                       match[4] = ( match[4] || match[5] || "" ).replace( rBackslash, "" );
+
+                       if ( match[2] === "~=" ) {
+                               match[4] = " " + match[4] + " ";
+                       }
+
+                       return match;
+               },
+
+               PSEUDO: function( match, curLoop, inplace, result, not ) {
+                       if ( match[1] === "not" ) {
+                               // If we're dealing with a complex expression, or a simple one
+                               if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
+                                       match[3] = Sizzle(match[3], null, null, curLoop);
+
+                               } else {
+                                       var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
+
+                                       if ( !inplace ) {
+                                               result.push.apply( result, ret );
+                                       }
+
+                                       return false;
+                               }
+
+                       } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
+                               return true;
+                       }
+                       
+                       return match;
+               },
+
+               POS: function( match ) {
+                       match.unshift( true );
+
+                       return match;
+               }
+       },
+       
+       filters: {
+               enabled: function( elem ) {
+                       return elem.disabled === false && elem.type !== "hidden";
+               },
+
+               disabled: function( elem ) {
+                       return elem.disabled === true;
+               },
+
+               checked: function( elem ) {
+                       return elem.checked === true;
+               },
+               
+               selected: function( elem ) {
+                       // Accessing this property makes selected-by-default
+                       // options in Safari work properly
+                       if ( elem.parentNode ) {
+                               elem.parentNode.selectedIndex;
+                       }
+                       
+                       return elem.selected === true;
+               },
+
+               parent: function( elem ) {
+                       return !!elem.firstChild;
+               },
+
+               empty: function( elem ) {
+                       return !elem.firstChild;
+               },
+
+               has: function( elem, i, match ) {
+                       return !!Sizzle( match[3], elem ).length;
+               },
+
+               header: function( elem ) {
+                       return (/h\d/i).test( elem.nodeName );
+               },
+
+               text: function( elem ) {
+                       var attr = elem.getAttribute( "type" ), type = elem.type;
+                       // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) 
+                       // use getAttribute instead to test this case
+                       return elem.nodeName.toLowerCase() === "input" && "text" === type && ( attr === type || attr === null );
+               },
+
+               radio: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "radio" === elem.type;
+               },
+
+               checkbox: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "checkbox" === elem.type;
+               },
+
+               file: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "file" === elem.type;
+               },
+
+               password: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "password" === elem.type;
+               },
+
+               submit: function( elem ) {
+                       var name = elem.nodeName.toLowerCase();
+                       return (name === "input" || name === "button") && "submit" === elem.type;
+               },
+
+               image: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "image" === elem.type;
+               },
+
+               reset: function( elem ) {
+                       var name = elem.nodeName.toLowerCase();
+                       return (name === "input" || name === "button") && "reset" === elem.type;
+               },
+
+               button: function( elem ) {
+                       var name = elem.nodeName.toLowerCase();
+                       return name === "input" && "button" === elem.type || name === "button";
+               },
+
+               input: function( elem ) {
+                       return (/input|select|textarea|button/i).test( elem.nodeName );
+               },
+
+               focus: function( elem ) {
+                       return elem === elem.ownerDocument.activeElement;
+               }
+       },
+       setFilters: {
+               first: function( elem, i ) {
+                       return i === 0;
+               },
+
+               last: function( elem, i, match, array ) {
+                       return i === array.length - 1;
+               },
+
+               even: function( elem, i ) {
+                       return i % 2 === 0;
+               },
+
+               odd: function( elem, i ) {
+                       return i % 2 === 1;
+               },
+
+               lt: function( elem, i, match ) {
+                       return i < match[3] - 0;
+               },
+
+               gt: function( elem, i, match ) {
+                       return i > match[3] - 0;
+               },
+
+               nth: function( elem, i, match ) {
+                       return match[3] - 0 === i;
+               },
+
+               eq: function( elem, i, match ) {
+                       return match[3] - 0 === i;
+               }
+       },
+       filter: {
+               PSEUDO: function( elem, match, i, array ) {
+                       var name = match[1],
+                               filter = Expr.filters[ name ];
+
+                       if ( filter ) {
+                               return filter( elem, i, match, array );
+
+                       } else if ( name === "contains" ) {
+                               return (elem.textContent || elem.innerText || Sizzle.getText([ elem ]) || "").indexOf(match[3]) >= 0;
+
+                       } else if ( name === "not" ) {
+                               var not = match[3];
+
+                               for ( var j = 0, l = not.length; j < l; j++ ) {
+                                       if ( not[j] === elem ) {
+                                               return false;
+                                       }
+                               }
+
+                               return true;
+
+                       } else {
+                               Sizzle.error( name );
+                       }
+               },
+
+               CHILD: function( elem, match ) {
+                       var type = match[1],
+                               node = elem;
+
+                       switch ( type ) {
+                               case "only":
+                               case "first":
+                                       while ( (node = node.previousSibling) )  {
+                                               if ( node.nodeType === 1 ) { 
+                                                       return false; 
+                                               }
+                                       }
+
+                                       if ( type === "first" ) { 
+                                               return true; 
+                                       }
+
+                                       node = elem;
+
+                               case "last":
+                                       while ( (node = node.nextSibling) )      {
+                                               if ( node.nodeType === 1 ) { 
+                                                       return false; 
+                                               }
+                                       }
+
+                                       return true;
+
+                               case "nth":
+                                       var first = match[2],
+                                               last = match[3];
+
+                                       if ( first === 1 && last === 0 ) {
+                                               return true;
+                                       }
+                                       
+                                       var doneName = match[0],
+                                               parent = elem.parentNode;
+       
+                                       if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) {
+                                               var count = 0;
+                                               
+                                               for ( node = parent.firstChild; node; node = node.nextSibling ) {
+                                                       if ( node.nodeType === 1 ) {
+                                                               node.nodeIndex = ++count;
+                                                       }
+                                               } 
+
+                                               parent.sizcache = doneName;
+                                       }
+                                       
+                                       var diff = elem.nodeIndex - last;
+
+                                       if ( first === 0 ) {
+                                               return diff === 0;
+
+                                       } else {
+                                               return ( diff % first === 0 && diff / first >= 0 );
+                                       }
+                       }
+               },
+
+               ID: function( elem, match ) {
+                       return elem.nodeType === 1 && elem.getAttribute("id") === match;
+               },
+
+               TAG: function( elem, match ) {
+                       return (match === "*" && elem.nodeType === 1) || elem.nodeName.toLowerCase() === match;
+               },
+               
+               CLASS: function( elem, match ) {
+                       return (" " + (elem.className || elem.getAttribute("class")) + " ")
+                               .indexOf( match ) > -1;
+               },
+
+               ATTR: function( elem, match ) {
+                       var name = match[1],
+                               result = Expr.attrHandle[ name ] ?
+                                       Expr.attrHandle[ name ]( elem ) :
+                                       elem[ name ] != null ?
+                                               elem[ name ] :
+                                               elem.getAttribute( name ),
+                               value = result + "",
+                               type = match[2],
+                               check = match[4];
+
+                       return result == null ?
+                               type === "!=" :
+                               type === "=" ?
+                               value === check :
+                               type === "*=" ?
+                               value.indexOf(check) >= 0 :
+                               type === "~=" ?
+                               (" " + value + " ").indexOf(check) >= 0 :
+                               !check ?
+                               value && result !== false :
+                               type === "!=" ?
+                               value !== check :
+                               type === "^=" ?
+                               value.indexOf(check) === 0 :
+                               type === "$=" ?
+                               value.substr(value.length - check.length) === check :
+                               type === "|=" ?
+                               value === check || value.substr(0, check.length + 1) === check + "-" :
+                               false;
+               },
+
+               POS: function( elem, match, i, array ) {
+                       var name = match[2],
+                               filter = Expr.setFilters[ name ];
+
+                       if ( filter ) {
+                               return filter( elem, i, match, array );
+                       }
+               }
+       }
+};
+
+var origPOS = Expr.match.POS,
+       fescape = function(all, num){
+               return "\\" + (num - 0 + 1);
+       };
+
+for ( var type in Expr.match ) {
+       Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) );
+       Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) );
+}
+
+var makeArray = function( array, results ) {
+       array = Array.prototype.slice.call( array, 0 );
+
+       if ( results ) {
+               results.push.apply( results, array );
+               return results;
+       }
+       
+       return array;
+};
+
+// Perform a simple check to determine if the browser is capable of
+// converting a NodeList to an array using builtin methods.
+// Also verifies that the returned array holds DOM nodes
+// (which is not the case in the Blackberry browser)
+try {
+       Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;
+
+// Provide a fallback method if it does not work
+} catch( e ) {
+       makeArray = function( array, results ) {
+               var i = 0,
+                       ret = results || [];
+
+               if ( toString.call(array) === "[object Array]" ) {
+                       Array.prototype.push.apply( ret, array );
+
+               } else {
+                       if ( typeof array.length === "number" ) {
+                               for ( var l = array.length; i < l; i++ ) {
+                                       ret.push( array[i] );
+                               }
+
+                       } else {
+                               for ( ; array[i]; i++ ) {
+                                       ret.push( array[i] );
+                               }
+                       }
+               }
+
+               return ret;
+       };
+}
+
+var sortOrder, siblingCheck;
+
+if ( document.documentElement.compareDocumentPosition ) {
+       sortOrder = function( a, b ) {
+               if ( a === b ) {
+                       hasDuplicate = true;
+                       return 0;
+               }
+
+               if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
+                       return a.compareDocumentPosition ? -1 : 1;
+               }
+
+               return a.compareDocumentPosition(b) & 4 ? -1 : 1;
+       };
+
+} else {
+       sortOrder = function( a, b ) {
+               // The nodes are identical, we can exit early
+               if ( a === b ) {
+                       hasDuplicate = true;
+                       return 0;
+
+               // Fallback to using sourceIndex (in IE) if it's available on both nodes
+               } else if ( a.sourceIndex && b.sourceIndex ) {
+                       return a.sourceIndex - b.sourceIndex;
+               }
+
+               var al, bl,
+                       ap = [],
+                       bp = [],
+                       aup = a.parentNode,
+                       bup = b.parentNode,
+                       cur = aup;
+
+               // If the nodes are siblings (or identical) we can do a quick check
+               if ( aup === bup ) {
+                       return siblingCheck( a, b );
+
+               // If no parents were found then the nodes are disconnected
+               } else if ( !aup ) {
+                       return -1;
+
+               } else if ( !bup ) {
+                       return 1;
+               }
+
+               // Otherwise they're somewhere else in the tree so we need
+               // to build up a full list of the parentNodes for comparison
+               while ( cur ) {
+                       ap.unshift( cur );
+                       cur = cur.parentNode;
+               }
+
+               cur = bup;
+
+               while ( cur ) {
+                       bp.unshift( cur );
+                       cur = cur.parentNode;
+               }
+
+               al = ap.length;
+               bl = bp.length;
+
+               // Start walking down the tree looking for a discrepancy
+               for ( var i = 0; i < al && i < bl; i++ ) {
+                       if ( ap[i] !== bp[i] ) {
+                               return siblingCheck( ap[i], bp[i] );
+                       }
+               }
+
+               // We ended someplace up the tree so do a sibling check
+               return i === al ?
+                       siblingCheck( a, bp[i], -1 ) :
+                       siblingCheck( ap[i], b, 1 );
+       };
+
+       siblingCheck = function( a, b, ret ) {
+               if ( a === b ) {
+                       return ret;
+               }
+
+               var cur = a.nextSibling;
+
+               while ( cur ) {
+                       if ( cur === b ) {
+                               return -1;
+                       }
+
+                       cur = cur.nextSibling;
+               }
+
+               return 1;
+       };
+}
+
+// Utility function for retreiving the text value of an array of DOM nodes
+Sizzle.getText = function( elems ) {
+       var ret = "", elem;
+
+       for ( var i = 0; elems[i]; i++ ) {
+               elem = elems[i];
+
+               // Get the text from text nodes and CDATA nodes
+               if ( elem.nodeType === 3 || elem.nodeType === 4 ) {
+                       ret += elem.nodeValue;
+
+               // Traverse everything else, except comment nodes
+               } else if ( elem.nodeType !== 8 ) {
+                       ret += Sizzle.getText( elem.childNodes );
+               }
+       }
+
+       return ret;
+};
+
+// Check to see if the browser returns elements by name when
+// querying by getElementById (and provide a workaround)
+(function(){
+       // We're going to inject a fake input element with a specified name
+       var form = document.createElement("div"),
+               id = "script" + (new Date()).getTime(),
+               root = document.documentElement;
+
+       form.innerHTML = "<a name='" + id + "'/>";
+
+       // Inject it into the root element, check its status, and remove it quickly
+       root.insertBefore( form, root.firstChild );
+
+       // The workaround has to do additional checks after a getElementById
+       // Which slows things down for other browsers (hence the branching)
+       if ( document.getElementById( id ) ) {
+               Expr.find.ID = function( match, context, isXML ) {
+                       if ( typeof context.getElementById !== "undefined" && !isXML ) {
+                               var m = context.getElementById(match[1]);
+
+                               return m ?
+                                       m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ?
+                                               [m] :
+                                               undefined :
+                                       [];
+                       }
+               };
+
+               Expr.filter.ID = function( elem, match ) {
+                       var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
+
+                       return elem.nodeType === 1 && node && node.nodeValue === match;
+               };
+       }
+
+       root.removeChild( form );
+
+       // release memory in IE
+       root = form = null;
+})();
+
+(function(){
+       // Check to see if the browser returns only elements
+       // when doing getElementsByTagName("*")
+
+       // Create a fake element
+       var div = document.createElement("div");
+       div.appendChild( document.createComment("") );
+
+       // Make sure no comments are found
+       if ( div.getElementsByTagName("*").length > 0 ) {
+               Expr.find.TAG = function( match, context ) {
+                       var results = context.getElementsByTagName( match[1] );
+
+                       // Filter out possible comments
+                       if ( match[1] === "*" ) {
+                               var tmp = [];
+
+                               for ( var i = 0; results[i]; i++ ) {
+                                       if ( results[i].nodeType === 1 ) {
+                                               tmp.push( results[i] );
+                                       }
+                               }
+
+                               results = tmp;
+                       }
+
+                       return results;
+               };
+       }
+
+       // Check to see if an attribute returns normalized href attributes
+       div.innerHTML = "<a href='#'></a>";
+
+       if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
+                       div.firstChild.getAttribute("href") !== "#" ) {
+
+               Expr.attrHandle.href = function( elem ) {
+                       return elem.getAttribute( "href", 2 );
+               };
+       }
+
+       // release memory in IE
+       div = null;
+})();
+
+if ( document.querySelectorAll ) {
+       (function(){
+               var oldSizzle = Sizzle,
+                       div = document.createElement("div"),
+                       id = "__sizzle__";
+
+               div.innerHTML = "<p class='TEST'></p>";
+
+               // Safari can't handle uppercase or unicode characters when
+               // in quirks mode.
+               if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
+                       return;
+               }
+       
+               Sizzle = function( query, context, extra, seed ) {
+                       context = context || document;
+
+                       // Only use querySelectorAll on non-XML documents
+                       // (ID selectors don't work in non-HTML documents)
+                       if ( !seed && !Sizzle.isXML(context) ) {
+                               // See if we find a selector to speed up
+                               var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query );
+                               
+                               if ( match && (context.nodeType === 1 || context.nodeType === 9) ) {
+                                       // Speed-up: Sizzle("TAG")
+                                       if ( match[1] ) {
+                                               return makeArray( context.getElementsByTagName( query ), extra );
+                                       
+                                       // Speed-up: Sizzle(".CLASS")
+                                       } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) {
+                                               return makeArray( context.getElementsByClassName( match[2] ), extra );
+                                       }
+                               }
+                               
+                               if ( context.nodeType === 9 ) {
+                                       // Speed-up: Sizzle("body")
+                                       // The body element only exists once, optimize finding it
+                                       if ( query === "body" && context.body ) {
+                                               return makeArray( [ context.body ], extra );
+                                               
+                                       // Speed-up: Sizzle("#ID")
+                                       } else if ( match && match[3] ) {
+                                               var elem = context.getElementById( match[3] );
+
+                                               // Check parentNode to catch when Blackberry 4.6 returns
+                                               // nodes that are no longer in the document #6963
+                                               if ( elem && elem.parentNode ) {
+                                                       // Handle the case where IE and Opera return items
+                                                       // by name instead of ID
+                                                       if ( elem.id === match[3] ) {
+                                                               return makeArray( [ elem ], extra );
+                                                       }
+                                                       
+                                               } else {
+                                                       return makeArray( [], extra );
+                                               }
+                                       }
+                                       
+                                       try {
+                                               return makeArray( context.querySelectorAll(query), extra );
+                                       } catch(qsaError) {}
+
+                               // qSA works strangely on Element-rooted queries
+                               // We can work around this by specifying an extra ID on the root
+                               // and working up from there (Thanks to Andrew Dupont for the technique)
+                               // IE 8 doesn't work on object elements
+                               } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
+                                       var oldContext = context,
+                                               old = context.getAttribute( "id" ),
+                                               nid = old || id,
+                                               hasParent = context.parentNode,
+                                               relativeHierarchySelector = /^\s*[+~]/.test( query );
+
+                                       if ( !old ) {
+                                               context.setAttribute( "id", nid );
+                                       } else {
+                                               nid = nid.replace( /'/g, "\\$&" );
+                                       }
+                                       if ( relativeHierarchySelector && hasParent ) {
+                                               context = context.parentNode;
+                                       }
+
+                                       try {
+                                               if ( !relativeHierarchySelector || hasParent ) {
+                                                       return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
+                                               }
+
+                                       } catch(pseudoError) {
+                                       } finally {
+                                               if ( !old ) {
+                                                       oldContext.removeAttribute( "id" );
+                                               }
+                                       }
+                               }
+                       }
+               
+                       return oldSizzle(query, context, extra, seed);
+               };
+
+               for ( var prop in oldSizzle ) {
+                       Sizzle[ prop ] = oldSizzle[ prop ];
+               }
+
+               // release memory in IE
+               div = null;
+       })();
+}
+
+(function(){
+       var html = document.documentElement,
+               matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector;
+
+       if ( matches ) {
+               // Check to see if it's possible to do matchesSelector
+               // on a disconnected node (IE 9 fails this)
+               var disconnectedMatch = !matches.call( document.createElement( "div" ), "div" ),
+                       pseudoWorks = false;
+
+               try {
+                       // This should fail with an exception
+                       // Gecko does not error, returns false instead
+                       matches.call( document.documentElement, "[test!='']:sizzle" );
+       
+               } catch( pseudoError ) {
+                       pseudoWorks = true;
+               }
+
+               Sizzle.matchesSelector = function( node, expr ) {
+                       // Make sure that attribute selectors are quoted
+                       expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']");
+
+                       if ( !Sizzle.isXML( node ) ) {
+                               try { 
+                                       if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) {
+                                               var ret = matches.call( node, expr );
+
+                                               // IE 9's matchesSelector returns false on disconnected nodes
+                                               if ( ret || !disconnectedMatch ||
+                                                               // As well, disconnected nodes are said to be in a document
+                                                               // fragment in IE 9, so check for that
+                                                               node.document && node.document.nodeType !== 11 ) {
+                                                       return ret;
+                                               }
+                                       }
+                               } catch(e) {}
+                       }
+
+                       return Sizzle(expr, null, null, [node]).length > 0;
+               };
+       }
+})();
+
+(function(){
+       var div = document.createElement("div");
+
+       div.innerHTML = "<div class='test e'></div><div class='test'></div>";
+
+       // Opera can't find a second classname (in 9.6)
+       // Also, make sure that getElementsByClassName actually exists
+       if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
+               return;
+       }
+
+       // Safari caches class attributes, doesn't catch changes (in 3.2)
+       div.lastChild.className = "e";
+
+       if ( div.getElementsByClassName("e").length === 1 ) {
+               return;
+       }
+       
+       Expr.order.splice(1, 0, "CLASS");
+       Expr.find.CLASS = function( match, context, isXML ) {
+               if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
+                       return context.getElementsByClassName(match[1]);
+               }
+       };
+
+       // release memory in IE
+       div = null;
+})();
+
+function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
+       for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+               var elem = checkSet[i];
+
+               if ( elem ) {
+                       var match = false;
+
+                       elem = elem[dir];
+
+                       while ( elem ) {
+                               if ( elem.sizcache === doneName ) {
+                                       match = checkSet[elem.sizset];
+                                       break;
+                               }
+
+                               if ( elem.nodeType === 1 && !isXML ){
+                                       elem.sizcache = doneName;
+                                       elem.sizset = i;
+                               }
+
+                               if ( elem.nodeName.toLowerCase() === cur ) {
+                                       match = elem;
+                                       break;
+                               }
+
+                               elem = elem[dir];
+                       }
+
+                       checkSet[i] = match;
+               }
+       }
+}
+
+function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
+       for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+               var elem = checkSet[i];
+
+               if ( elem ) {
+                       var match = false;
+                       
+                       elem = elem[dir];
+
+                       while ( elem ) {
+                               if ( elem.sizcache === doneName ) {
+                                       match = checkSet[elem.sizset];
+                                       break;
+                               }
+
+                               if ( elem.nodeType === 1 ) {
+                                       if ( !isXML ) {
+                                               elem.sizcache = doneName;
+                                               elem.sizset = i;
+                                       }
+
+                                       if ( typeof cur !== "string" ) {
+                                               if ( elem === cur ) {
+                                                       match = true;
+                                                       break;
+                                               }
+
+                                       } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
+                                               match = elem;
+                                               break;
+                                       }
+                               }
+
+                               elem = elem[dir];
+                       }
+
+                       checkSet[i] = match;
+               }
+       }
+}
+
+if ( document.documentElement.contains ) {
+       Sizzle.contains = function( a, b ) {
+               return a !== b && (a.contains ? a.contains(b) : true);
+       };
+
+} else if ( document.documentElement.compareDocumentPosition ) {
+       Sizzle.contains = function( a, b ) {
+               return !!(a.compareDocumentPosition(b) & 16);
+       };
+
+} else {
+       Sizzle.contains = function() {
+               return false;
+       };
+}
+
+Sizzle.isXML = function( elem ) {
+       // documentElement is verified for cases where it doesn't yet exist
+       // (such as loading iframes in IE - #4833) 
+       var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
+
+       return documentElement ? documentElement.nodeName !== "HTML" : false;
+};
+
+var posProcess = function( selector, context ) {
+       var match,
+               tmpSet = [],
+               later = "",
+               root = context.nodeType ? [context] : context;
+
+       // Position selectors must be done after the filter
+       // And so must :not(positional) so we move all PSEUDOs to the end
+       while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
+               later += match[0];
+               selector = selector.replace( Expr.match.PSEUDO, "" );
+       }
+
+       selector = Expr.relative[selector] ? selector + "*" : selector;
+
+       for ( var i = 0, l = root.length; i < l; i++ ) {
+               Sizzle( selector, root[i], tmpSet );
+       }
+
+       return Sizzle.filter( later, tmpSet );
+};
+
+// EXPOSE
+jQuery.find = Sizzle;
+jQuery.expr = Sizzle.selectors;
+jQuery.expr[":"] = jQuery.expr.filters;
+jQuery.unique = Sizzle.uniqueSort;
+jQuery.text = Sizzle.getText;
+jQuery.isXMLDoc = Sizzle.isXML;
+jQuery.contains = Sizzle.contains;
+
+
+})();
+
+
+var runtil = /Until$/,
+       rparentsprev = /^(?:parents|prevUntil|prevAll)/,
+       // Note: This RegExp should be improved, or likely pulled from Sizzle
+       rmultiselector = /,/,
+       isSimple = /^.[^:#\[\.,]*$/,
+       slice = Array.prototype.slice,
+       POS = jQuery.expr.match.POS,
+       // methods guaranteed to produce a unique set when starting from a unique set
+       guaranteedUnique = {
+               children: true,
+               contents: true,
+               next: true,
+               prev: true
+       };
+
+jQuery.fn.extend({
+       find: function( selector ) {
+               var self = this,
+                       i, l;
+
+               if ( typeof selector !== "string" ) {
+                       return jQuery( selector ).filter(function() {
+                               for ( i = 0, l = self.length; i < l; i++ ) {
+                                       if ( jQuery.contains( self[ i ], this ) ) {
+                                               return true;
+                                       }
+                               }
+                       });
+               }
+
+               var ret = this.pushStack( "", "find", selector ),
+                       length, n, r;
+
+               for ( i = 0, l = this.length; i < l; i++ ) {
+                       length = ret.length;
+                       jQuery.find( selector, this[i], ret );
+
+                       if ( i > 0 ) {
+                               // Make sure that the results are unique
+                               for ( n = length; n < ret.length; n++ ) {
+                                       for ( r = 0; r < length; r++ ) {
+                                               if ( ret[r] === ret[n] ) {
+                                                       ret.splice(n--, 1);
+                                                       break;
+                                               }
+                                       }
+                               }
+                       }
+               }
+
+               return ret;
+       },
+
+       has: function( target ) {
+               var targets = jQuery( target );
+               return this.filter(function() {
+                       for ( var i = 0, l = targets.length; i < l; i++ ) {
+                               if ( jQuery.contains( this, targets[i] ) ) {
+                                       return true;
+                               }
+                       }
+               });
+       },
+
+       not: function( selector ) {
+               return this.pushStack( winnow(this, selector, false), "not", selector);
+       },
+
+       filter: function( selector ) {
+               return this.pushStack( winnow(this, selector, true), "filter", selector );
+       },
+
+       is: function( selector ) {
+               return !!selector && ( typeof selector === "string" ?
+                       jQuery.filter( selector, this ).length > 0 :
+                       this.filter( selector ).length > 0 );
+       },
+
+       closest: function( selectors, context ) {
+               var ret = [], i, l, cur = this[0];
+               
+               // Array
+               if ( jQuery.isArray( selectors ) ) {
+                       var match, selector,
+                               matches = {},
+                               level = 1;
+
+                       if ( cur && selectors.length ) {
+                               for ( i = 0, l = selectors.length; i < l; i++ ) {
+                                       selector = selectors[i];
+
+                                       if ( !matches[ selector ] ) {
+                                               matches[ selector ] = POS.test( selector ) ?
+                                                       jQuery( selector, context || this.context ) :
+                                                       selector;
+                                       }
+                               }
+
+                               while ( cur && cur.ownerDocument && cur !== context ) {
+                                       for ( selector in matches ) {
+                                               match = matches[ selector ];
+
+                                               if ( match.jquery ? match.index( cur ) > -1 : jQuery( cur ).is( match ) ) {
+                                                       ret.push({ selector: selector, elem: cur, level: level });
+                                               }
+                                       }
+
+                                       cur = cur.parentNode;
+                                       level++;
+                               }
+                       }
+
+                       return ret;
+               }
+
+               // String
+               var pos = POS.test( selectors ) || typeof selectors !== "string" ?
+                               jQuery( selectors, context || this.context ) :
+                               0;
+
+               for ( i = 0, l = this.length; i < l; i++ ) {
+                       cur = this[i];
+
+                       while ( cur ) {
+                               if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {
+                                       ret.push( cur );
+                                       break;
+
+                               } else {
+                                       cur = cur.parentNode;
+                                       if ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) {
+                                               break;
+                                       }
+                               }
+                       }
+               }
+
+               ret = ret.length > 1 ? jQuery.unique( ret ) : ret;
+
+               return this.pushStack( ret, "closest", selectors );
+       },
+
+       // Determine the position of an element within
+       // the matched set of elements
+       index: function( elem ) {
+
+               // No argument, return index in parent
+               if ( !elem ) {
+                       return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1;
+               }
+
+               // index in selector
+               if ( typeof elem === "string" ) {
+                       return jQuery.inArray( this[0], jQuery( elem ) );
+               }
+
+               // Locate the position of the desired element
+               return jQuery.inArray(
+                       // If it receives a jQuery object, the first element is used
+                       elem.jquery ? elem[0] : elem, this );
+       },
+
+       add: function( selector, context ) {
+               var set = typeof selector === "string" ?
+                               jQuery( selector, context ) :
+                               jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),
+                       all = jQuery.merge( this.get(), set );
+
+               return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?
+                       all :
+                       jQuery.unique( all ) );
+       },
+
+       andSelf: function() {
+               return this.add( this.prevObject );
+       }
+});
+
+// A painfully simple check to see if an element is disconnected
+// from a document (should be improved, where feasible).
+function isDisconnected( node ) {
+       return !node || !node.parentNode || node.parentNode.nodeType === 11;
+}
+
+jQuery.each({
+       parent: function( elem ) {
+               var parent = elem.parentNode;
+               return parent && parent.nodeType !== 11 ? parent : null;
+       },
+       parents: function( elem ) {
+               return jQuery.dir( elem, "parentNode" );
+       },
+       parentsUntil: function( elem, i, until ) {
+               return jQuery.dir( elem, "parentNode", until );
+       },
+       next: function( elem ) {
+               return jQuery.nth( elem, 2, "nextSibling" );
+       },
+       prev: function( elem ) {
+               return jQuery.nth( elem, 2, "previousSibling" );
+       },
+       nextAll: function( elem ) {
+               return jQuery.dir( elem, "nextSibling" );
+       },
+       prevAll: function( elem ) {
+               return jQuery.dir( elem, "previousSibling" );
+       },
+       nextUntil: function( elem, i, until ) {
+               return jQuery.dir( elem, "nextSibling", until );
+       },
+       prevUntil: function( elem, i, until ) {
+               return jQuery.dir( elem, "previousSibling", until );
+       },
+       siblings: function( elem ) {
+               return jQuery.sibling( elem.parentNode.firstChild, elem );
+       },
+       children: function( elem ) {
+               return jQuery.sibling( elem.firstChild );
+       },
+       contents: function( elem ) {
+               return jQuery.nodeName( elem, "iframe" ) ?
+                       elem.contentDocument || elem.contentWindow.document :
+                       jQuery.makeArray( elem.childNodes );
+       }
+}, function( name, fn ) {
+       jQuery.fn[ name ] = function( until, selector ) {
+               var ret = jQuery.map( this, fn, until ),
+                       // The variable 'args' was introduced in
+                       // https://github.com/jquery/jquery/commit/52a0238
+                       // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed.
+                       // http://code.google.com/p/v8/issues/detail?id=1050
+                       args = slice.call(arguments);
+
+               if ( !runtil.test( name ) ) {
+                       selector = until;
+               }
+
+               if ( selector && typeof selector === "string" ) {
+                       ret = jQuery.filter( selector, ret );
+               }
+
+               ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;
+
+               if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {
+                       ret = ret.reverse();
+               }
+
+               return this.pushStack( ret, name, args.join(",") );
+       };
+});
+
+jQuery.extend({
+       filter: function( expr, elems, not ) {
+               if ( not ) {
+                       expr = ":not(" + expr + ")";
+               }
+
+               return elems.length === 1 ?
+                       jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :
+                       jQuery.find.matches(expr, elems);
+       },
+
+       dir: function( elem, dir, until ) {
+               var matched = [],
+                       cur = elem[ dir ];
+
+               while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
+                       if ( cur.nodeType === 1 ) {
+                               matched.push( cur );
+                       }
+                       cur = cur[dir];
+               }
+               return matched;
+       },
+
+       nth: function( cur, result, dir, elem ) {
+               result = result || 1;
+               var num = 0;
+
+               for ( ; cur; cur = cur[dir] ) {
+                       if ( cur.nodeType === 1 && ++num === result ) {
+                               break;
+                       }
+               }
+
+               return cur;
+       },
+
+       sibling: function( n, elem ) {
+               var r = [];
+
+               for ( ; n; n = n.nextSibling ) {
+                       if ( n.nodeType === 1 && n !== elem ) {
+                               r.push( n );
+                       }
+               }
+
+               return r;
+       }
+});
+
+// Implement the identical functionality for filter and not
+function winnow( elements, qualifier, keep ) {
+
+       // Can't pass null or undefined to indexOf in Firefox 4
+       // Set to 0 to skip string check
+       qualifier = qualifier || 0;
+
+       if ( jQuery.isFunction( qualifier ) ) {
+               return jQuery.grep(elements, function( elem, i ) {
+                       var retVal = !!qualifier.call( elem, i, elem );
+                       return retVal === keep;
+               });
+
+       } else if ( qualifier.nodeType ) {
+               return jQuery.grep(elements, function( elem, i ) {
+                       return (elem === qualifier) === keep;
+               });
+
+       } else if ( typeof qualifier === "string" ) {
+               var filtered = jQuery.grep(elements, function( elem ) {
+                       return elem.nodeType === 1;
+               });
+
+               if ( isSimple.test( qualifier ) ) {
+                       return jQuery.filter(qualifier, filtered, !keep);
+               } else {
+                       qualifier = jQuery.filter( qualifier, filtered );
+               }
+       }
+
+       return jQuery.grep(elements, function( elem, i ) {
+               return (jQuery.inArray( elem, qualifier ) >= 0) === keep;
+       });
+}
+
+
+
+
+var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
+       rleadingWhitespace = /^\s+/,
+       rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,
+       rtagName = /<([\w:]+)/,
+       rtbody = /<tbody/i,
+       rhtml = /<|&#?\w+;/,
+       rnocache = /<(?:script|object|embed|option|style)/i,
+       // checked="checked" or checked
+       rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
+       rscriptType = /\/(java|ecma)script/i,
+       rcleanScript = /^\s*<!(?:\[CDATA\[|\-\-)/,
+       wrapMap = {
+               option: [ 1, "<select multiple='multiple'>", "</select>" ],
+               legend: [ 1, "<fieldset>", "</fieldset>" ],
+               thead: [ 1, "<table>", "</table>" ],
+               tr: [ 2, "<table><tbody>", "</tbody></table>" ],
+               td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
+               col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
+               area: [ 1, "<map>", "</map>" ],
+               _default: [ 0, "", "" ]
+       };
+
+wrapMap.optgroup = wrapMap.option;
+wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
+wrapMap.th = wrapMap.td;
+
+// IE can't serialize <link> and <script> tags normally
+if ( !jQuery.support.htmlSerialize ) {
+       wrapMap._default = [ 1, "div<div>", "</div>" ];
+}
+
+jQuery.fn.extend({
+       text: function( text ) {
+               if ( jQuery.isFunction(text) ) {
+                       return this.each(function(i) {
+                               var self = jQuery( this );
+
+                               self.text( text.call(this, i, self.text()) );
+                       });
+               }
+
+               if ( typeof text !== "object" && text !== undefined ) {
+                       return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
+               }
+
+               return jQuery.text( this );
+       },
+
+       wrapAll: function( html ) {
+               if ( jQuery.isFunction( html ) ) {
+                       return this.each(function(i) {
+                               jQuery(this).wrapAll( html.call(this, i) );
+                       });
+               }
+
+               if ( this[0] ) {
+                       // The elements to wrap the target around
+                       var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
+
+                       if ( this[0].parentNode ) {
+                               wrap.insertBefore( this[0] );
+                       }
+
+                       wrap.map(function() {
+                               var elem = this;
+
+                               while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
+                                       elem = elem.firstChild;
+                               }
+
+                               return elem;
+                       }).append( this );
+               }
+
+               return this;
+       },
+
+       wrapInner: function( html ) {
+               if ( jQuery.isFunction( html ) ) {
+                       return this.each(function(i) {
+                               jQuery(this).wrapInner( html.call(this, i) );
+                       });
+               }
+
+               return this.each(function() {
+                       var self = jQuery( this ),
+                               contents = self.contents();
+
+                       if ( contents.length ) {
+                               contents.wrapAll( html );
+
+                       } else {
+                               self.append( html );
+                       }
+               });
+       },
+
+       wrap: function( html ) {
+               return this.each(function() {
+                       jQuery( this ).wrapAll( html );
+               });
+       },
+
+       unwrap: function() {
+               return this.parent().each(function() {
+                       if ( !jQuery.nodeName( this, "body" ) ) {
+                               jQuery( this ).replaceWith( this.childNodes );
+                       }
+               }).end();
+       },
+
+       append: function() {
+               return this.domManip(arguments, true, function( elem ) {
+                       if ( this.nodeType === 1 ) {
+                               this.appendChild( elem );
+                       }
+               });
+       },
+
+       prepend: function() {
+               return this.domManip(arguments, true, function( elem ) {
+                       if ( this.nodeType === 1 ) {
+                               this.insertBefore( elem, this.firstChild );
+                       }
+               });
+       },
+
+       before: function() {
+               if ( this[0] && this[0].parentNode ) {
+                       return this.domManip(arguments, false, function( elem ) {
+                               this.parentNode.insertBefore( elem, this );
+                       });
+               } else if ( arguments.length ) {
+                       var set = jQuery(arguments[0]);
+                       set.push.apply( set, this.toArray() );
+                       return this.pushStack( set, "before", arguments );
+               }
+       },
+
+       after: function() {
+               if ( this[0] && this[0].parentNode ) {
+                       return this.domManip(arguments, false, function( elem ) {
+                               this.parentNode.insertBefore( elem, this.nextSibling );
+                       });
+               } else if ( arguments.length ) {
+                       var set = this.pushStack( this, "after", arguments );
+                       set.push.apply( set, jQuery(arguments[0]).toArray() );
+                       return set;
+               }
+       },
+
+       // keepData is for internal use only--do not document
+       remove: function( selector, keepData ) {
+               for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
+                       if ( !selector || jQuery.filter( selector, [ elem ] ).length ) {
+                               if ( !keepData && elem.nodeType === 1 ) {
+                                       jQuery.cleanData( elem.getElementsByTagName("*") );
+                                       jQuery.cleanData( [ elem ] );
+                               }
+
+                               if ( elem.parentNode ) {
+                                       elem.parentNode.removeChild( elem );
+                               }
+                       }
+               }
+
+               return this;
+       },
+
+       empty: function() {
+               for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
+                       // Remove element nodes and prevent memory leaks
+                       if ( elem.nodeType === 1 ) {
+                               jQuery.cleanData( elem.getElementsByTagName("*") );
+                       }
+
+                       // Remove any remaining nodes
+                       while ( elem.firstChild ) {
+                               elem.removeChild( elem.firstChild );
+                       }
+               }
+
+               return this;
+       },
+
+       clone: function( dataAndEvents, deepDataAndEvents ) {
+               dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
+               deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
+
+               return this.map( function () {
+                       return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
+               });
+       },
+
+       html: function( value ) {
+               if ( value === undefined ) {
+                       return this[0] && this[0].nodeType === 1 ?
+                               this[0].innerHTML.replace(rinlinejQuery, "") :
+                               null;
+
+               // See if we can take a shortcut and just use innerHTML
+               } else if ( typeof value === "string" && !rnocache.test( value ) &&
+                       (jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
+                       !wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {
+
+                       value = value.replace(rxhtmlTag, "<$1></$2>");
+
+                       try {
+                               for ( var i = 0, l = this.length; i < l; i++ ) {
+                                       // Remove element nodes and prevent memory leaks
+                                       if ( this[i].nodeType === 1 ) {
+                                               jQuery.cleanData( this[i].getElementsByTagName("*") );
+                                               this[i].innerHTML = value;
+                                       }
+                               }
+
+                       // If using innerHTML throws an exception, use the fallback method
+                       } catch(e) {
+                               this.empty().append( value );
+                       }
+
+               } else if ( jQuery.isFunction( value ) ) {
+                       this.each(function(i){
+                               var self = jQuery( this );
+
+                               self.html( value.call(this, i, self.html()) );
+                       });
+
+               } else {
+                       this.empty().append( value );
+               }
+
+               return this;
+       },
+
+       replaceWith: function( value ) {
+               if ( this[0] && this[0].parentNode ) {
+                       // Make sure that the elements are removed from the DOM before they are inserted
+                       // this can help fix replacing a parent with child elements
+                       if ( jQuery.isFunction( value ) ) {
+                               return this.each(function(i) {
+                                       var self = jQuery(this), old = self.html();
+                                       self.replaceWith( value.call( this, i, old ) );
+                               });
+                       }
+
+                       if ( typeof value !== "string" ) {
+                               value = jQuery( value ).detach();
+                       }
+
+                       return this.each(function() {
+                               var next = this.nextSibling,
+                                       parent = this.parentNode;
+
+                               jQuery( this ).remove();
+
+                               if ( next ) {
+                                       jQuery(next).before( value );
+                               } else {
+                                       jQuery(parent).append( value );
+                               }
+                       });
+               } else {
+                       return this.length ?
+                               this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value ) :
+                               this;
+               }
+       },
+
+       detach: function( selector ) {
+               return this.remove( selector, true );
+       },
+
+       domManip: function( args, table, callback ) {
+               var results, first, fragment, parent,
+                       value = args[0],
+                       scripts = [];
+
+               // We can't cloneNode fragments that contain checked, in WebKit
+               if ( !jQuery.support.checkClone && arguments.length === 3 && typeof value === "string" && rchecked.test( value ) ) {
+                       return this.each(function() {
+                               jQuery(this).domManip( args, table, callback, true );
+                       });
+               }
+
+               if ( jQuery.isFunction(value) ) {
+                       return this.each(function(i) {
+                               var self = jQuery(this);
+                               args[0] = value.call(this, i, table ? self.html() : undefined);
+                               self.domManip( args, table, callback );
+                       });
+               }
+
+               if ( this[0] ) {
+                       parent = value && value.parentNode;
+
+                       // If we're in a fragment, just use that instead of building a new one
+                       if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
+                               results = { fragment: parent };
+
+                       } else {
+                               results = jQuery.buildFragment( args, this, scripts );
+                       }
+
+                       fragment = results.fragment;
+
+                       if ( fragment.childNodes.length === 1 ) {
+                               first = fragment = fragment.firstChild;
+                       } else {
+                               first = fragment.firstChild;
+                       }
+
+                       if ( first ) {
+                               table = table && jQuery.nodeName( first, "tr" );
+
+                               for ( var i = 0, l = this.length, lastIndex = l - 1; i < l; i++ ) {
+                                       callback.call(
+                                               table ?
+                                                       root(this[i], first) :
+                                                       this[i],
+                                               // Make sure that we do not leak memory by inadvertently discarding
+                                               // the original fragment (which might have attached data) instead of
+                                               // using it; in addition, use the original fragment object for the last
+                                               // item instead of first because it can end up being emptied incorrectly
+                                               // in certain situations (Bug #8070).
+                                               // Fragments from the fragment cache must always be cloned and never used
+                                               // in place.
+                                               results.cacheable || (l > 1 && i < lastIndex) ?
+                                                       jQuery.clone( fragment, true, true ) :
+                                                       fragment
+                                       );
+                               }
+                       }
+
+                       if ( scripts.length ) {
+                               jQuery.each( scripts, evalScript );
+                       }
+               }
+
+               return this;
+       }
+});
+
+function root( elem, cur ) {
+       return jQuery.nodeName(elem, "table") ?
+               (elem.getElementsByTagName("tbody")[0] ||
+               elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
+               elem;
+}
+
+function cloneCopyEvent( src, dest ) {
+
+       if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {
+               return;
+       }
+
+       var internalKey = jQuery.expando,
+               oldData = jQuery.data( src ),
+               curData = jQuery.data( dest, oldData );
+
+       // Switch to use the internal data object, if it exists, for the next
+       // stage of data copying
+       if ( (oldData = oldData[ internalKey ]) ) {
+               var events = oldData.events;
+                               curData = curData[ internalKey ] = jQuery.extend({}, oldData);
+
+               if ( events ) {
+                       delete curData.handle;
+                       curData.events = {};
+
+                       for ( var type in events ) {
+                               for ( var i = 0, l = events[ type ].length; i < l; i++ ) {
+                                       jQuery.event.add( dest, type + ( events[ type ][ i ].namespace ? "." : "" ) + events[ type ][ i ].namespace, events[ type ][ i ], events[ type ][ i ].data );
+                               }
+                       }
+               }
+       }
+}
+
+function cloneFixAttributes( src, dest ) {
+       var nodeName;
+
+       // We do not need to do anything for non-Elements
+       if ( dest.nodeType !== 1 ) {
+               return;
+       }
+
+       // clearAttributes removes the attributes, which we don't want,
+       // but also removes the attachEvent events, which we *do* want
+       if ( dest.clearAttributes ) {
+               dest.clearAttributes();
+       }
+
+       // mergeAttributes, in contrast, only merges back on the
+       // original attributes, not the events
+       if ( dest.mergeAttributes ) {
+               dest.mergeAttributes( src );
+       }
+
+       nodeName = dest.nodeName.toLowerCase();
+
+       // IE6-8 fail to clone children inside object elements that use
+       // the proprietary classid attribute value (rather than the type
+       // attribute) to identify the type of content to display
+       if ( nodeName === "object" ) {
+               dest.outerHTML = src.outerHTML;
+
+       } else if ( nodeName === "input" && (src.type === "checkbox" || src.type === "radio") ) {
+               // IE6-8 fails to persist the checked state of a cloned checkbox
+               // or radio button. Worse, IE6-7 fail to give the cloned element
+               // a checked appearance if the defaultChecked value isn't also set
+               if ( src.checked ) {
+                       dest.defaultChecked = dest.checked = src.checked;
+               }
+
+               // IE6-7 get confused and end up setting the value of a cloned
+               // checkbox/radio button to an empty string instead of "on"
+               if ( dest.value !== src.value ) {
+                       dest.value = src.value;
+               }
+
+       // IE6-8 fails to return the selected option to the default selected
+       // state when cloning options
+       } else if ( nodeName === "option" ) {
+               dest.selected = src.defaultSelected;
+
+       // IE6-8 fails to set the defaultValue to the correct value when
+       // cloning other types of input fields
+       } else if ( nodeName === "input" || nodeName === "textarea" ) {
+               dest.defaultValue = src.defaultValue;
+       }
+
+       // Event data gets referenced instead of copied if the expando
+       // gets copied too
+       dest.removeAttribute( jQuery.expando );
+}
+
+jQuery.buildFragment = function( args, nodes, scripts ) {
+       var fragment, cacheable, cacheresults, doc;
+
+  // nodes may contain either an explicit document object,
+  // a jQuery collection or context object.
+  // If nodes[0] contains a valid object to assign to doc
+  if ( nodes && nodes[0] ) {
+    doc = nodes[0].ownerDocument || nodes[0];
+  }
+
+  // Ensure that an attr object doesn't incorrectly stand in as a document object
+       // Chrome and Firefox seem to allow this to occur and will throw exception
+       // Fixes #8950
+       if ( !doc.createDocumentFragment ) {
+               doc = document;
+       }
+
+       // Only cache "small" (1/2 KB) HTML strings that are associated with the main document
+       // Cloning options loses the selected state, so don't cache them
+       // IE 6 doesn't like it when you put <object> or <embed> elements in a fragment
+       // Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache
+       if ( args.length === 1 && typeof args[0] === "string" && args[0].length < 512 && doc === document &&
+               args[0].charAt(0) === "<" && !rnocache.test( args[0] ) && (jQuery.support.checkClone || !rchecked.test( args[0] )) ) {
+
+               cacheable = true;
+
+               cacheresults = jQuery.fragments[ args[0] ];
+               if ( cacheresults && cacheresults !== 1 ) {
+                       fragment = cacheresults;
+               }
+       }
+
+       if ( !fragment ) {
+               fragment = doc.createDocumentFragment();
+               jQuery.clean( args, doc, fragment, scripts );
+       }
+
+       if ( cacheable ) {
+               jQuery.fragments[ args[0] ] = cacheresults ? fragment : 1;
+       }
+
+       return { fragment: fragment, cacheable: cacheable };
+};
+
+jQuery.fragments = {};
+
+jQuery.each({
+       appendTo: "append",
+       prependTo: "prepend",
+       insertBefore: "before",
+       insertAfter: "after",
+       replaceAll: "replaceWith"
+}, function( name, original ) {
+       jQuery.fn[ name ] = function( selector ) {
+               var ret = [],
+                       insert = jQuery( selector ),
+                       parent = this.length === 1 && this[0].parentNode;
+
+               if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {
+                       insert[ original ]( this[0] );
+                       return this;
+
+               } else {
+                       for ( var i = 0, l = insert.length; i < l; i++ ) {
+                               var elems = (i > 0 ? this.clone(true) : this).get();
+                               jQuery( insert[i] )[ original ]( elems );
+                               ret = ret.concat( elems );
+                       }
+
+                       return this.pushStack( ret, name, insert.selector );
+               }
+       };
+});
+
+function getAll( elem ) {
+       if ( "getElementsByTagName" in elem ) {
+               return elem.getElementsByTagName( "*" );
+
+       } else if ( "querySelectorAll" in elem ) {
+               return elem.querySelectorAll( "*" );
+
+       } else {
+               return [];
+       }
+}
+
+// Used in clean, fixes the defaultChecked property
+function fixDefaultChecked( elem ) {
+       if ( elem.type === "checkbox" || elem.type === "radio" ) {
+               elem.defaultChecked = elem.checked;
+       }
+}
+// Finds all inputs and passes them to fixDefaultChecked
+function findInputs( elem ) {
+       if ( jQuery.nodeName( elem, "input" ) ) {
+               fixDefaultChecked( elem );
+       } else if ( "getElementsByTagName" in elem ) {
+               jQuery.grep( elem.getElementsByTagName("input"), fixDefaultChecked );
+       }
+}
+
+jQuery.extend({
+       clone: function( elem, dataAndEvents, deepDataAndEvents ) {
+               var clone = elem.cloneNode(true),
+                               srcElements,
+                               destElements,
+                               i;
+
+               if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) &&
+                               (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {
+                       // IE copies events bound via attachEvent when using cloneNode.
+                       // Calling detachEvent on the clone will also remove the events
+                       // from the original. In order to get around this, we use some
+                       // proprietary methods to clear the events. Thanks to MooTools
+                       // guys for this hotness.
+
+                       cloneFixAttributes( elem, clone );
+
+                       // Using Sizzle here is crazy slow, so we use getElementsByTagName
+                       // instead
+                       srcElements = getAll( elem );
+                       destElements = getAll( clone );
+
+                       // Weird iteration because IE will replace the length property
+                       // with an element if you are cloning the body and one of the
+                       // elements on the page has a name or id of "length"
+                       for ( i = 0; srcElements[i]; ++i ) {
+                               // Ensure that the destination node is not null; Fixes #9587
+                               if ( destElements[i] ) {
+                                       cloneFixAttributes( srcElements[i], destElements[i] );
+                               }
+                       }
+               }
+
+               // Copy the events from the original to the clone
+               if ( dataAndEvents ) {
+                       cloneCopyEvent( elem, clone );
+
+                       if ( deepDataAndEvents ) {
+                               srcElements = getAll( elem );
+                               destElements = getAll( clone );
+
+                               for ( i = 0; srcElements[i]; ++i ) {
+                                       cloneCopyEvent( srcElements[i], destElements[i] );
+                               }
+                       }
+               }
+
+               srcElements = destElements = null;
+
+               // Return the cloned set
+               return clone;
+       },
+
+       clean: function( elems, context, fragment, scripts ) {
+               var checkScriptType;
+
+               context = context || document;
+
+               // !context.createElement fails in IE with an error but returns typeof 'object'
+               if ( typeof context.createElement === "undefined" ) {
+                       context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
+               }
+
+               var ret = [], j;
+
+               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
+                       if ( typeof elem === "number" ) {
+                               elem += "";
+                       }
+
+                       if ( !elem ) {
+                               continue;
+                       }
+
+                       // Convert html string into DOM nodes
+                       if ( typeof elem === "string" ) {
+                               if ( !rhtml.test( elem ) ) {
+                                       elem = context.createTextNode( elem );
+                               } else {
+                                       // Fix "XHTML"-style tags in all browsers
+                                       elem = elem.replace(rxhtmlTag, "<$1></$2>");
+
+                                       // Trim whitespace, otherwise indexOf won't work as expected
+                                       var tag = (rtagName.exec( elem ) || ["", ""])[1].toLowerCase(),
+                                               wrap = wrapMap[ tag ] || wrapMap._default,
+                                               depth = wrap[0],
+                                               div = context.createElement("div");
+
+                                       // Go to html and back, then peel off extra wrappers
+                                       div.innerHTML = wrap[1] + elem + wrap[2];
+
+                                       // Move to the right depth
+                                       while ( depth-- ) {
+                                               div = div.lastChild;
+                                       }
+
+                                       // Remove IE's autoinserted <tbody> from table fragments
+                                       if ( !jQuery.support.tbody ) {
+
+                                               // String was a <table>, *may* have spurious <tbody>
+                                               var hasBody = rtbody.test(elem),
+                                                       tbody = tag === "table" && !hasBody ?
+                                                               div.firstChild && div.firstChild.childNodes :
+
+                                                               // String was a bare <thead> or <tfoot>
+                                                               wrap[1] === "<table>" && !hasBody ?
+                                                                       div.childNodes :
+                                                                       [];
+
+                                               for ( j = tbody.length - 1; j >= 0 ; --j ) {
+                                                       if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
+                                                               tbody[ j ].parentNode.removeChild( tbody[ j ] );
+                                                       }
+                                               }
+                                       }
+
+                                       // IE completely kills leading whitespace when innerHTML is used
+                                       if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
+                                               div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );
+                                       }
+
+                                       elem = div.childNodes;
+                               }
+                       }
+
+                       // Resets defaultChecked for any radios and checkboxes
+                       // about to be appended to the DOM in IE 6/7 (#8060)
+                       var len;
+                       if ( !jQuery.support.appendChecked ) {
+                               if ( elem[0] && typeof (len = elem.length) === "number" ) {
+                                       for ( j = 0; j < len; j++ ) {
+                                               findInputs( elem[j] );
+                                       }
+                               } else {
+                                       findInputs( elem );
+                               }
+                       }
+
+                       if ( elem.nodeType ) {
+                               ret.push( elem );
+                       } else {
+                               ret = jQuery.merge( ret, elem );
+                       }
+               }
+
+               if ( fragment ) {
+                       checkScriptType = function( elem ) {
+                               return !elem.type || rscriptType.test( elem.type );
+                       };
+                       for ( i = 0; ret[i]; i++ ) {
+                               if ( scripts && jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
+                                       scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
+
+                               } else {
+                                       if ( ret[i].nodeType === 1 ) {
+                                               var jsTags = jQuery.grep( ret[i].getElementsByTagName( "script" ), checkScriptType );
+
+                                               ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) );
+                                       }
+                                       fragment.appendChild( ret[i] );
+                               }
+                       }
+               }
+
+               return ret;
+       },
+
+       cleanData: function( elems ) {
+               var data, id, cache = jQuery.cache, internalKey = jQuery.expando, special = jQuery.event.special,
+                       deleteExpando = jQuery.support.deleteExpando;
+
+               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
+                       if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
+                               continue;
+                       }
+
+                       id = elem[ jQuery.expando ];
+
+                       if ( id ) {
+                               data = cache[ id ] && cache[ id ][ internalKey ];
+
+                               if ( data && data.events ) {
+                                       for ( var type in data.events ) {
+                                               if ( special[ type ] ) {
+                                                       jQuery.event.remove( elem, type );
+
+                                               // This is a shortcut to avoid jQuery.event.remove's overhead
+                                               } else {
+                                                       jQuery.removeEvent( elem, type, data.handle );
+                                               }
+                                       }
+
+                                       // Null the DOM reference to avoid IE6/7/8 leak (#7054)
+                                       if ( data.handle ) {
+                                               data.handle.elem = null;
+                                       }
+                               }
+
+                               if ( deleteExpando ) {
+                                       delete elem[ jQuery.expando ];
+
+                               } else if ( elem.removeAttribute ) {
+                                       elem.removeAttribute( jQuery.expando );
+                               }
+
+                               delete cache[ id ];
+                       }
+               }
+       }
+});
+
+function evalScript( i, elem ) {
+       if ( elem.src ) {
+               jQuery.ajax({
+                       url: elem.src,
+                       async: false,
+                       dataType: "script"
+               });
+       } else {
+               jQuery.globalEval( ( elem.text || elem.textContent || elem.innerHTML || "" ).replace( rcleanScript, "/*$0*/" ) );
+       }
+
+       if ( elem.parentNode ) {
+               elem.parentNode.removeChild( elem );
+       }
+}
+
+
+
+
+var ralpha = /alpha\([^)]*\)/i,
+       ropacity = /opacity=([^)]*)/,
+       // fixed for IE9, see #8346
+       rupper = /([A-Z]|^ms)/g,
+       rnumpx = /^-?\d+(?:px)?$/i,
+       rnum = /^-?\d/,
+       rrelNum = /^([\-+])=([\-+.\de]+)/,
+
+       cssShow = { position: "absolute", visibility: "hidden", display: "block" },
+       cssWidth = [ "Left", "Right" ],
+       cssHeight = [ "Top", "Bottom" ],
+       curCSS,
+
+       getComputedStyle,
+       currentStyle;
+
+jQuery.fn.css = function( name, value ) {
+       // Setting 'undefined' is a no-op
+       if ( arguments.length === 2 && value === undefined ) {
+               return this;
+       }
+
+       return jQuery.access( this, name, value, true, function( elem, name, value ) {
+               return value !== undefined ?
+                       jQuery.style( elem, name, value ) :
+                       jQuery.css( elem, name );
+       });
+};
+
+jQuery.extend({
+       // Add in style property hooks for overriding the default
+       // behavior of getting and setting a style property
+       cssHooks: {
+               opacity: {
+                       get: function( elem, computed ) {
+                               if ( computed ) {
+                                       // We should always get a number back from opacity
+                                       var ret = curCSS( elem, "opacity", "opacity" );
+                                       return ret === "" ? "1" : ret;
+
+                               } else {
+                                       return elem.style.opacity;
+                               }
+                       }
+               }
+       },
+
+       // Exclude the following css properties to add px
+       cssNumber: {
+               "fillOpacity": true,
+               "fontWeight": true,
+               "lineHeight": true,
+               "opacity": true,
+               "orphans": true,
+               "widows": true,
+               "zIndex": true,
+               "zoom": true
+       },
+
+       // Add in properties whose names you wish to fix before
+       // setting or getting the value
+       cssProps: {
+               // normalize float css property
+               "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat"
+       },
+
+       // Get and set the style property on a DOM Node
+       style: function( elem, name, value, extra ) {
+               // Don't set styles on text and comment nodes
+               if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
+                       return;
+               }
+
+               // Make sure that we're working with the right name
+               var ret, type, origName = jQuery.camelCase( name ),
+                       style = elem.style, hooks = jQuery.cssHooks[ origName ];
+
+               name = jQuery.cssProps[ origName ] || origName;
+
+               // Check if we're setting a value
+               if ( value !== undefined ) {
+                       type = typeof value;
+
+                       // convert relative number strings (+= or -=) to relative numbers. #7345
+                       if ( type === "string" && (ret = rrelNum.exec( value )) ) {
+                               value = ( +( ret[1] + 1) * +ret[2] ) + parseFloat( jQuery.css( elem, name ) );
+                               // Fixes bug #9237
+                               type = "number";
+                       }
+
+                       // Make sure that NaN and null values aren't set. See: #7116
+                       if ( value == null || type === "number" && isNaN( value ) ) {
+                               return;
+                       }
+
+                       // If a number was passed in, add 'px' to the (except for certain CSS properties)
+                       if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
+                               value += "px";
+                       }
+
+                       // If a hook was provided, use that value, otherwise just set the specified value
+                       if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value )) !== undefined ) {
+                               // Wrapped to prevent IE from throwing errors when 'invalid' values are provided
+                               // Fixes bug #5509
+                               try {
+                                       style[ name ] = value;
+                               } catch(e) {}
+                       }
+
+               } else {
+                       // If a hook was provided get the non-computed value from there
+                       if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
+                               return ret;
+                       }
+
+                       // Otherwise just get the value from the style object
+                       return style[ name ];
+               }
+       },
+
+       css: function( elem, name, extra ) {
+               var ret, hooks;
+
+               // Make sure that we're working with the right name
+               name = jQuery.camelCase( name );
+               hooks = jQuery.cssHooks[ name ];
+               name = jQuery.cssProps[ name ] || name;
+
+               // cssFloat needs a special treatment
+               if ( name === "cssFloat" ) {
+                       name = "float";
+               }
+
+               // If a hook was provided get the computed value from there
+               if ( hooks && "get" in hooks && (ret = hooks.get( elem, true, extra )) !== undefined ) {
+                       return ret;
+
+               // Otherwise, if a way to get the computed value exists, use that
+               } else if ( curCSS ) {
+                       return curCSS( elem, name );
+               }
+       },
+
+       // A method for quickly swapping in/out CSS properties to get correct calculations
+       swap: function( elem, options, callback ) {
+               var old = {};
+
+               // Remember the old values, and insert the new ones
+               for ( var name in options ) {
+                       old[ name ] = elem.style[ name ];
+                       elem.style[ name ] = options[ name ];
+               }
+
+               callback.call( elem );
+
+               // Revert the old values
+               for ( name in options ) {
+                       elem.style[ name ] = old[ name ];
+               }
+       }
+});
+
+// DEPRECATED, Use jQuery.css() instead
+jQuery.curCSS = jQuery.css;
+
+jQuery.each(["height", "width"], function( i, name ) {
+       jQuery.cssHooks[ name ] = {
+               get: function( elem, computed, extra ) {
+                       var val;
+
+                       if ( computed ) {
+                               if ( elem.offsetWidth !== 0 ) {
+                                       return getWH( elem, name, extra );
+                               } else {
+                                       jQuery.swap( elem, cssShow, function() {
+                                               val = getWH( elem, name, extra );
+                                       });
+                               }
+
+                               return val;
+                       }
+               },
+
+               set: function( elem, value ) {
+                       if ( rnumpx.test( value ) ) {
+                               // ignore negative width and height values #1599
+                               value = parseFloat( value );
+
+                               if ( value >= 0 ) {
+                                       return value + "px";
+                               }
+
+                       } else {
+                               return value;
+                       }
+               }
+       };
+});
+
+if ( !jQuery.support.opacity ) {
+       jQuery.cssHooks.opacity = {
+               get: function( elem, computed ) {
+                       // IE uses filters for opacity
+                       return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
+                               ( parseFloat( RegExp.$1 ) / 100 ) + "" :
+                               computed ? "1" : "";
+               },
+
+               set: function( elem, value ) {
+                       var style = elem.style,
+                               currentStyle = elem.currentStyle,
+                               opacity = jQuery.isNaN( value ) ? "" : "alpha(opacity=" + value * 100 + ")",
+                               filter = currentStyle && currentStyle.filter || style.filter || "";
+
+                       // IE has trouble with opacity if it does not have layout
+                       // Force it by setting the zoom level
+                       style.zoom = 1;
+
+                       // if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
+                       if ( value >= 1 && jQuery.trim( filter.replace( ralpha, "" ) ) === "" ) {
+
+                               // Setting style.filter to null, "" & " " still leave "filter:" in the cssText
+                               // if "filter:" is present at all, clearType is disabled, we want to avoid this
+                               // style.removeAttribute is IE Only, but so apparently is this code path...
+                               style.removeAttribute( "filter" );
+
+                               // if there there is no filter style applied in a css rule, we are done
+                               if ( currentStyle && !currentStyle.filter ) {
+                                       return;
+                               }
+                       }
+
+                       // otherwise, set new filter values
+                       style.filter = ralpha.test( filter ) ?
+                               filter.replace( ralpha, opacity ) :
+                               filter + " " + opacity;
+               }
+       };
+}
+
+jQuery(function() {
+       // This hook cannot be added until DOM ready because the support test
+       // for it is not run until after DOM ready
+       if ( !jQuery.support.reliableMarginRight ) {
+               jQuery.cssHooks.marginRight = {
+                       get: function( elem, computed ) {
+                               // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
+                               // Work around by temporarily setting element display to inline-block
+                               var ret;
+                               jQuery.swap( elem, { "display": "inline-block" }, function() {
+                                       if ( computed ) {
+                                               ret = curCSS( elem, "margin-right", "marginRight" );
+                                       } else {
+                                               ret = elem.style.marginRight;
+                                       }
+                               });
+                               return ret;
+                       }
+               };
+       }
+});
+
+if ( document.defaultView && document.defaultView.getComputedStyle ) {
+       getComputedStyle = function( elem, name ) {
+               var ret, defaultView, computedStyle;
+
+               name = name.replace( rupper, "-$1" ).toLowerCase();
+
+               if ( !(defaultView = elem.ownerDocument.defaultView) ) {
+                       return undefined;
+               }
+
+               if ( (computedStyle = defaultView.getComputedStyle( elem, null )) ) {
+                       ret = computedStyle.getPropertyValue( name );
+                       if ( ret === "" && !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) {
+                               ret = jQuery.style( elem, name );
+                       }
+               }
+
+               return ret;
+       };
+}
+
+if ( document.documentElement.currentStyle ) {
+       currentStyle = function( elem, name ) {
+               var left,
+                       ret = elem.currentStyle && elem.currentStyle[ name ],
+                       rsLeft = elem.runtimeStyle && elem.runtimeStyle[ name ],
+                       style = elem.style;
+
+               // From the awesome hack by Dean Edwards
+               // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
+
+               // If we're not dealing with a regular pixel number
+               // but a number that has a weird ending, we need to convert it to pixels
+               if ( !rnumpx.test( ret ) && rnum.test( ret ) ) {
+                       // Remember the original values
+                       left = style.left;
+
+                       // Put in the new values to get a computed value out
+                       if ( rsLeft ) {
+                               elem.runtimeStyle.left = elem.currentStyle.left;
+                       }
+                       style.left = name === "fontSize" ? "1em" : (ret || 0);
+                       ret = style.pixelLeft + "px";
+
+                       // Revert the changed values
+                       style.left = left;
+                       if ( rsLeft ) {
+                               elem.runtimeStyle.left = rsLeft;
+                       }
+               }
+
+               return ret === "" ? "auto" : ret;
+       };
+}
+
+curCSS = getComputedStyle || currentStyle;
+
+function getWH( elem, name, extra ) {
+
+       // Start with offset property
+       var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
+               which = name === "width" ? cssWidth : cssHeight;
+
+       if ( val > 0 ) {
+               if ( extra !== "border" ) {
+                       jQuery.each( which, function() {
+                               if ( !extra ) {
+                                       val -= parseFloat( jQuery.css( elem, "padding" + this ) ) || 0;
+                               }
+                               if ( extra === "margin" ) {
+                                       val += parseFloat( jQuery.css( elem, extra + this ) ) || 0;
+                               } else {
+                                       val -= parseFloat( jQuery.css( elem, "border" + this + "Width" ) ) || 0;
+                               }
+                       });
+               }
+
+               return val + "px";
+       }
+
+       // Fall back to computed then uncomputed css if necessary
+       val = curCSS( elem, name, name );
+       if ( val < 0 || val == null ) {
+               val = elem.style[ name ] || 0;
+       }
+       // Normalize "", auto, and prepare for extra
+       val = parseFloat( val ) || 0;
+
+       // Add padding, border, margin
+       if ( extra ) {
+               jQuery.each( which, function() {
+                       val += parseFloat( jQuery.css( elem, "padding" + this ) ) || 0;
+                       if ( extra !== "padding" ) {
+                               val += parseFloat( jQuery.css( elem, "border" + this + "Width" ) ) || 0;
+                       }
+                       if ( extra === "margin" ) {
+                               val += parseFloat( jQuery.css( elem, extra + this ) ) || 0;
+                       }
+               });
+       }
+
+       return val + "px";
+}
+
+if ( jQuery.expr && jQuery.expr.filters ) {
+       jQuery.expr.filters.hidden = function( elem ) {
+               var width = elem.offsetWidth,
+                       height = elem.offsetHeight;
+
+               return (width === 0 && height === 0) || (!jQuery.support.reliableHiddenOffsets && (elem.style.display || jQuery.css( elem, "display" )) === "none");
+       };
+
+       jQuery.expr.filters.visible = function( elem ) {
+               return !jQuery.expr.filters.hidden( elem );
+       };
+}
+
+
+
+
+var r20 = /%20/g,
+       rbracket = /\[\]$/,
+       rCRLF = /\r?\n/g,
+       rhash = /#.*$/,
+       rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
+       rinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
+       // #7653, #8125, #8152: local protocol detection
+       rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,
+       rnoContent = /^(?:GET|HEAD)$/,
+       rprotocol = /^\/\//,
+       rquery = /\?/,
+       rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
+       rselectTextarea = /^(?:select|textarea)/i,
+       rspacesAjax = /\s+/,
+       rts = /([?&])_=[^&]*/,
+       rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,
+
+       // Keep a copy of the old load method
+       _load = jQuery.fn.load,
+
+       /* Prefilters
+        * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
+        * 2) These are called:
+        *    - BEFORE asking for a transport
+        *    - AFTER param serialization (s.data is a string if s.processData is true)
+        * 3) key is the dataType
+        * 4) the catchall symbol "*" can be used
+        * 5) execution will start with transport dataType and THEN continue down to "*" if needed
+        */
+       prefilters = {},
+
+       /* Transports bindings
+        * 1) key is the dataType
+        * 2) the catchall symbol "*" can be used
+        * 3) selection will start with transport dataType and THEN go to "*" if needed
+        */
+       transports = {},
+
+       // Document location
+       ajaxLocation,
+
+       // Document location segments
+       ajaxLocParts,
+       
+       // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
+       allTypes = ["*/"] + ["*"];
+
+// #8138, IE may throw an exception when accessing
+// a field from window.location if document.domain has been set
+try {
+       ajaxLocation = location.href;
+} catch( e ) {
+       // Use the href attribute of an A element
+       // since IE will modify it given document.location
+       ajaxLocation = document.createElement( "a" );
+       ajaxLocation.href = "";
+       ajaxLocation = ajaxLocation.href;
+}
+
+// Segment location into parts
+ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
+
+// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
+function addToPrefiltersOrTransports( structure ) {
+
+       // dataTypeExpression is optional and defaults to "*"
+       return function( dataTypeExpression, func ) {
+
+               if ( typeof dataTypeExpression !== "string" ) {
+                       func = dataTypeExpression;
+                       dataTypeExpression = "*";
+               }
+
+               if ( jQuery.isFunction( func ) ) {
+                       var dataTypes = dataTypeExpression.toLowerCase().split( rspacesAjax ),
+                               i = 0,
+                               length = dataTypes.length,
+                               dataType,
+                               list,
+                               placeBefore;
+
+                       // For each dataType in the dataTypeExpression
+                       for(; i < length; i++ ) {
+                               dataType = dataTypes[ i ];
+                               // We control if we're asked to add before
+                               // any existing element
+                               placeBefore = /^\+/.test( dataType );
+                               if ( placeBefore ) {
+                                       dataType = dataType.substr( 1 ) || "*";
+                               }
+                               list = structure[ dataType ] = structure[ dataType ] || [];
+                               // then we add to the structure accordingly
+                               list[ placeBefore ? "unshift" : "push" ]( func );
+                       }
+               }
+       };
+}
+
+// Base inspection function for prefilters and transports
+function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR,
+               dataType /* internal */, inspected /* internal */ ) {
+
+       dataType = dataType || options.dataTypes[ 0 ];
+       inspected = inspected || {};
+
+       inspected[ dataType ] = true;
+
+       var list = structure[ dataType ],
+               i = 0,
+               length = list ? list.length : 0,
+               executeOnly = ( structure === prefilters ),
+               selection;
+
+       for(; i < length && ( executeOnly || !selection ); i++ ) {
+               selection = list[ i ]( options, originalOptions, jqXHR );
+               // If we got redirected to another dataType
+               // we try there if executing only and not done already
+               if ( typeof selection === "string" ) {
+                       if ( !executeOnly || inspected[ selection ] ) {
+                               selection = undefined;
+                       } else {
+                               options.dataTypes.unshift( selection );
+                               selection = inspectPrefiltersOrTransports(
+                                               structure, options, originalOptions, jqXHR, selection, inspected );
+                       }
+               }
+       }
+       // If we're only executing or nothing was selected
+       // we try the catchall dataType if not done already
+       if ( ( executeOnly || !selection ) && !inspected[ "*" ] ) {
+               selection = inspectPrefiltersOrTransports(
+                               structure, options, originalOptions, jqXHR, "*", inspected );
+       }
+       // unnecessary when only executing (prefilters)
+       // but it'll be ignored by the caller in that case
+       return selection;
+}
+
+// A special extend for ajax options
+// that takes "flat" options (not to be deep extended)
+// Fixes #9887
+function ajaxExtend( target, src ) {
+       var key, deep,
+               flatOptions = jQuery.ajaxSettings.flatOptions || {};
+       for( key in src ) {
+               if ( src[ key ] !== undefined ) {
+                       ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
+               }
+       }
+       if ( deep ) {
+               jQuery.extend( true, target, deep );
+       }
+}
+
+jQuery.fn.extend({
+       load: function( url, params, callback ) {
+               if ( typeof url !== "string" && _load ) {
+                       return _load.apply( this, arguments );
+
+               // Don't do a request if no elements are being requested
+               } else if ( !this.length ) {
+                       return this;
+               }
+
+               var off = url.indexOf( " " );
+               if ( off >= 0 ) {
+                       var selector = url.slice( off, url.length );
+                       url = url.slice( 0, off );
+               }
+
+               // Default to a GET request
+               var type = "GET";
+
+               // If the second parameter was provided
+               if ( params ) {
+                       // If it's a function
+                       if ( jQuery.isFunction( params ) ) {
+                               // We assume that it's the callback
+                               callback = params;
+                               params = undefined;
+
+                       // Otherwise, build a param string
+                       } else if ( typeof params === "object" ) {
+                               params = jQuery.param( params, jQuery.ajaxSettings.traditional );
+                               type = "POST";
+                       }
+               }
+
+               var self = this;
+
+               // Request the remote document
+               jQuery.ajax({
+                       url: url,
+                       type: type,
+                       dataType: "html",
+                       data: params,
+                       // Complete callback (responseText is used internally)
+                       complete: function( jqXHR, status, responseText ) {
+                               // Store the response as specified by the jqXHR object
+                               responseText = jqXHR.responseText;
+                               // If successful, inject the HTML into all the matched elements
+                               if ( jqXHR.isResolved() ) {
+                                       // #4825: Get the actual response in case
+                                       // a dataFilter is present in ajaxSettings
+                                       jqXHR.done(function( r ) {
+                                               responseText = r;
+                                       });
+                                       // See if a selector was specified
+                                       self.html( selector ?
+                                               // Create a dummy div to hold the results
+                                               jQuery("<div>")
+                                                       // inject the contents of the document in, removing the scripts
+                                                       // to avoid any 'Permission Denied' errors in IE
+                                                       .append(responseText.replace(rscript, ""))
+
+                                                       // Locate the specified elements
+                                                       .find(selector) :
+
+                                               // If not, just inject the full result
+                                               responseText );
+                               }
+
+                               if ( callback ) {
+                                       self.each( callback, [ responseText, status, jqXHR ] );
+                               }
+                       }
+               });
+
+               return this;
+       },
+
+       serialize: function() {
+               return jQuery.param( this.serializeArray() );
+       },
+
+       serializeArray: function() {
+               return this.map(function(){
+                       return this.elements ? jQuery.makeArray( this.elements ) : this;
+               })
+               .filter(function(){
+                       return this.name && !this.disabled &&
+                               ( this.checked || rselectTextarea.test( this.nodeName ) ||
+                                       rinput.test( this.type ) );
+               })
+               .map(function( i, elem ){
+                       var val = jQuery( this ).val();
+
+                       return val == null ?
+                               null :
+                               jQuery.isArray( val ) ?
+                                       jQuery.map( val, function( val, i ){
+                                               return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
+                                       }) :
+                                       { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
+               }).get();
+       }
+});
+
+// Attach a bunch of functions for handling common AJAX events
+jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split( " " ), function( i, o ){
+       jQuery.fn[ o ] = function( f ){
+               return this.bind( o, f );
+       };
+});
+
+jQuery.each( [ "get", "post" ], function( i, method ) {
+       jQuery[ method ] = function( url, data, callback, type ) {
+               // shift arguments if data argument was omitted
+               if ( jQuery.isFunction( data ) ) {
+                       type = type || callback;
+                       callback = data;
+                       data = undefined;
+               }
+
+               return jQuery.ajax({
+                       type: method,
+                       url: url,
+                       data: data,
+                       success: callback,
+                       dataType: type
+               });
+       };
+});
+
+jQuery.extend({
+
+       getScript: function( url, callback ) {
+               return jQuery.get( url, undefined, callback, "script" );
+       },
+
+       getJSON: function( url, data, callback ) {
+               return jQuery.get( url, data, callback, "json" );
+       },
+
+       // Creates a full fledged settings object into target
+       // with both ajaxSettings and settings fields.
+       // If target is omitted, writes into ajaxSettings.
+       ajaxSetup: function( target, settings ) {
+               if ( settings ) {
+                       // Building a settings object
+                       ajaxExtend( target, jQuery.ajaxSettings );
+               } else {
+                       // Extending ajaxSettings
+                       settings = target;
+                       target = jQuery.ajaxSettings;
+               }
+               ajaxExtend( target, settings );
+               return target;
+       },
+
+       ajaxSettings: {
+               url: ajaxLocation,
+               isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
+               global: true,
+               type: "GET",
+               contentType: "application/x-www-form-urlencoded",
+               processData: true,
+               async: true,
+               /*
+               timeout: 0,
+               data: null,
+               dataType: null,
+               username: null,
+               password: null,
+               cache: null,
+               traditional: false,
+               headers: {},
+               */
+
+               accepts: {
+                       xml: "application/xml, text/xml",
+                       html: "text/html",
+                       text: "text/plain",
+                       json: "application/json, text/javascript",
+                       "*": allTypes
+               },
+
+               contents: {
+                       xml: /xml/,
+                       html: /html/,
+                       json: /json/
+               },
+
+               responseFields: {
+                       xml: "responseXML",
+                       text: "responseText"
+               },
+
+               // List of data converters
+               // 1) key format is "source_type destination_type" (a single space in-between)
+               // 2) the catchall symbol "*" can be used for source_type
+               converters: {
+
+                       // Convert anything to text
+                       "* text": window.String,
+
+                       // Text to html (true = no transformation)
+                       "text html": true,
+
+                       // Evaluate text as a json expression
+                       "text json": jQuery.parseJSON,
+
+                       // Parse text as xml
+                       "text xml": jQuery.parseXML
+               },
+
+               // For options that shouldn't be deep extended:
+               // you can add your own custom options here if
+               // and when you create one that shouldn't be
+               // deep extended (see ajaxExtend)
+               flatOptions: {
+                       context: true,
+                       url: true
+               }
+       },
+
+       ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
+       ajaxTransport: addToPrefiltersOrTransports( transports ),
+
+       // Main method
+       ajax: function( url, options ) {
+
+               // If url is an object, simulate pre-1.5 signature
+               if ( typeof url === "object" ) {
+                       options = url;
+                       url = undefined;
+               }
+
+               // Force options to be an object
+               options = options || {};
+
+               var // Create the final options object
+                       s = jQuery.ajaxSetup( {}, options ),
+                       // Callbacks context
+                       callbackContext = s.context || s,
+                       // Context for global events
+                       // It's the callbackContext if one was provided in the options
+                       // and if it's a DOM node or a jQuery collection
+                       globalEventContext = callbackContext !== s &&
+                               ( callbackContext.nodeType || callbackContext instanceof jQuery ) ?
+                                               jQuery( callbackContext ) : jQuery.event,
+                       // Deferreds
+                       deferred = jQuery.Deferred(),
+                       completeDeferred = jQuery._Deferred(),
+                       // Status-dependent callbacks
+                       statusCode = s.statusCode || {},
+                       // ifModified key
+                       ifModifiedKey,
+                       // Headers (they are sent all at once)
+                       requestHeaders = {},
+                       requestHeadersNames = {},
+                       // Response headers
+                       responseHeadersString,
+                       responseHeaders,
+                       // transport
+                       transport,
+                       // timeout handle
+                       timeoutTimer,
+                       // Cross-domain detection vars
+                       parts,
+                       // The jqXHR state
+                       state = 0,
+                       // To know if global events are to be dispatched
+                       fireGlobals,
+                       // Loop variable
+                       i,
+                       // Fake xhr
+                       jqXHR = {
+
+                               readyState: 0,
+
+                               // Caches the header
+                               setRequestHeader: function( name, value ) {
+                                       if ( !state ) {
+                                               var lname = name.toLowerCase();
+                                               name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
+                                               requestHeaders[ name ] = value;
+                                       }
+                                       return this;
+                               },
+
+                               // Raw string
+                               getAllResponseHeaders: function() {
+                                       return state === 2 ? responseHeadersString : null;
+                               },
+
+                               // Builds headers hashtable if needed
+                               getResponseHeader: function( key ) {
+                                       var match;
+                                       if ( state === 2 ) {
+                                               if ( !responseHeaders ) {
+                                                       responseHeaders = {};
+                                                       while( ( match = rheaders.exec( responseHeadersString ) ) ) {
+                                                               responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
+                                                       }
+                                               }
+                                               match = responseHeaders[ key.toLowerCase() ];
+                                       }
+                                       return match === undefined ? null : match;
+                               },
+
+                               // Overrides response content-type header
+                               overrideMimeType: function( type ) {
+                                       if ( !state ) {
+                                               s.mimeType = type;
+                                       }
+                                       return this;
+                               },
+
+                               // Cancel the request
+                               abort: function( statusText ) {
+                                       statusText = statusText || "abort";
+                                       if ( transport ) {
+                                               transport.abort( statusText );
+                                       }
+                                       done( 0, statusText );
+                                       return this;
+                               }
+                       };
+
+               // Callback for when everything is done
+               // It is defined here because jslint complains if it is declared
+               // at the end of the function (which would be more logical and readable)
+               function done( status, nativeStatusText, responses, headers ) {
+
+                       // Called once
+                       if ( state === 2 ) {
+                               return;
+                       }
+
+                       // State is "done" now
+                       state = 2;
+
+                       // Clear timeout if it exists
+                       if ( timeoutTimer ) {
+                               clearTimeout( timeoutTimer );
+                       }
+
+                       // Dereference transport for early garbage collection
+                       // (no matter how long the jqXHR object will be used)
+                       transport = undefined;
+
+                       // Cache response headers
+                       responseHeadersString = headers || "";
+
+                       // Set readyState
+                       jqXHR.readyState = status > 0 ? 4 : 0;
+
+                       var isSuccess,
+                               success,
+                               error,
+                               statusText = nativeStatusText,
+                               response = responses ? ajaxHandleResponses( s, jqXHR, responses ) : undefined,
+                               lastModified,
+                               etag;
+
+                       // If successful, handle type chaining
+                       if ( status >= 200 && status < 300 || status === 304 ) {
+
+                               // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
+                               if ( s.ifModified ) {
+
+                                       if ( ( lastModified = jqXHR.getResponseHeader( "Last-Modified" ) ) ) {
+                                               jQuery.lastModified[ ifModifiedKey ] = lastModified;
+                                       }
+                                       if ( ( etag = jqXHR.getResponseHeader( "Etag" ) ) ) {
+                                               jQuery.etag[ ifModifiedKey ] = etag;
+                                       }
+                               }
+
+                               // If not modified
+                               if ( status === 304 ) {
+
+                                       statusText = "notmodified";
+                                       isSuccess = true;
+
+                               // If we have data
+                               } else {
+
+                                       try {
+                                               success = ajaxConvert( s, response );
+                                               statusText = "success";
+                                               isSuccess = true;
+                                       } catch(e) {
+                                               // We have a parsererror
+                                               statusText = "parsererror";
+                                               error = e;
+                                       }
+                               }
+                       } else {
+                               // We extract error from statusText
+                               // then normalize statusText and status for non-aborts
+                               error = statusText;
+                               if( !statusText || status ) {
+                                       statusText = "error";
+                                       if ( status < 0 ) {
+                                               status = 0;
+                                       }
+                               }
+                       }
+
+                       // Set data for the fake xhr object
+                       jqXHR.status = status;
+                       jqXHR.statusText = "" + ( nativeStatusText || statusText );
+
+                       // Success/Error
+                       if ( isSuccess ) {
+                               deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
+                       } else {
+                               deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
+                       }
+
+                       // Status-dependent callbacks
+                       jqXHR.statusCode( statusCode );
+                       statusCode = undefined;
+
+                       if ( fireGlobals ) {
+                               globalEventContext.trigger( "ajax" + ( isSuccess ? "Success" : "Error" ),
+                                               [ jqXHR, s, isSuccess ? success : error ] );
+                       }
+
+                       // Complete
+                       completeDeferred.resolveWith( callbackContext, [ jqXHR, statusText ] );
+
+                       if ( fireGlobals ) {
+                               globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
+                               // Handle the global AJAX counter
+                               if ( !( --jQuery.active ) ) {
+                                       jQuery.event.trigger( "ajaxStop" );
+                               }
+                       }
+               }
+
+               // Attach deferreds
+               deferred.promise( jqXHR );
+               jqXHR.success = jqXHR.done;
+               jqXHR.error = jqXHR.fail;
+               jqXHR.complete = completeDeferred.done;
+
+               // Status-dependent callbacks
+               jqXHR.statusCode = function( map ) {
+                       if ( map ) {
+                               var tmp;
+                               if ( state < 2 ) {
+                                       for( tmp in map ) {
+                                               statusCode[ tmp ] = [ statusCode[tmp], map[tmp] ];
+                                       }
+                               } else {
+                                       tmp = map[ jqXHR.status ];
+                                       jqXHR.then( tmp, tmp );
+                               }
+                       }
+                       return this;
+               };
+
+               // Remove hash character (#7531: and string promotion)
+               // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
+               // We also use the url parameter if available
+               s.url = ( ( url || s.url ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
+
+               // Extract dataTypes list
+               s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( rspacesAjax );
+
+               // Determine if a cross-domain request is in order
+               if ( s.crossDomain == null ) {
+                       parts = rurl.exec( s.url.toLowerCase() );
+                       s.crossDomain = !!( parts &&
+                               ( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||
+                                       ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
+                                               ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) )
+                       );
+               }
+
+               // Convert data if not already a string
+               if ( s.data && s.processData && typeof s.data !== "string" ) {
+                       s.data = jQuery.param( s.data, s.traditional );
+               }
+
+               // Apply prefilters
+               inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
+
+               // If request was aborted inside a prefiler, stop there
+               if ( state === 2 ) {
+                       return false;
+               }
+
+               // We can fire global events as of now if asked to
+               fireGlobals = s.global;
+
+               // Uppercase the type
+               s.type = s.type.toUpperCase();
+
+               // Determine if request has content
+               s.hasContent = !rnoContent.test( s.type );
+
+               // Watch for a new set of requests
+               if ( fireGlobals && jQuery.active++ === 0 ) {
+                       jQuery.event.trigger( "ajaxStart" );
+               }
+
+               // More options handling for requests with no content
+               if ( !s.hasContent ) {
+
+                       // If data is available, append data to url
+                       if ( s.data ) {
+                               s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.data;
+                               // #9682: remove data so that it's not used in an eventual retry
+                               delete s.data;
+                       }
+
+                       // Get ifModifiedKey before adding the anti-cache parameter
+                       ifModifiedKey = s.url;
+
+                       // Add anti-cache in url if needed
+                       if ( s.cache === false ) {
+
+                               var ts = jQuery.now(),
+                                       // try replacing _= if it is there
+                                       ret = s.url.replace( rts, "$1_=" + ts );
+
+                               // if nothing was replaced, add timestamp to the end
+                               s.url = ret + ( (ret === s.url ) ? ( rquery.test( s.url ) ? "&" : "?" ) + "_=" + ts : "" );
+                       }
+               }
+
+               // Set the correct header, if data is being sent
+               if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
+                       jqXHR.setRequestHeader( "Content-Type", s.contentType );
+               }
+
+               // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
+               if ( s.ifModified ) {
+                       ifModifiedKey = ifModifiedKey || s.url;
+                       if ( jQuery.lastModified[ ifModifiedKey ] ) {
+                               jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ ifModifiedKey ] );
+                       }
+                       if ( jQuery.etag[ ifModifiedKey ] ) {
+                               jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ ifModifiedKey ] );
+                       }
+               }
+
+               // Set the Accepts header for the server, depending on the dataType
+               jqXHR.setRequestHeader(
+                       "Accept",
+                       s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
+                               s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
+                               s.accepts[ "*" ]
+               );
+
+               // Check for headers option
+               for ( i in s.headers ) {
+                       jqXHR.setRequestHeader( i, s.headers[ i ] );
+               }
+
+               // Allow custom headers/mimetypes and early abort
+               if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
+                               // Abort if not done already
+                               jqXHR.abort();
+                               return false;
+
+               }
+
+               // Install callbacks on deferreds
+               for ( i in { success: 1, error: 1, complete: 1 } ) {
+                       jqXHR[ i ]( s[ i ] );
+               }
+
+               // Get transport
+               transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
+
+               // If no transport, we auto-abort
+               if ( !transport ) {
+                       done( -1, "No Transport" );
+               } else {
+                       jqXHR.readyState = 1;
+                       // Send global event
+                       if ( fireGlobals ) {
+                               globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
+                       }
+                       // Timeout
+                       if ( s.async && s.timeout > 0 ) {
+                               timeoutTimer = setTimeout( function(){
+                                       jqXHR.abort( "timeout" );
+                               }, s.timeout );
+                       }
+
+                       try {
+                               state = 1;
+                               transport.send( requestHeaders, done );
+                       } catch (e) {
+                               // Propagate exception as error if not done
+                               if ( state < 2 ) {
+                                       done( -1, e );
+                               // Simply rethrow otherwise
+                               } else {
+                                       jQuery.error( e );
+                               }
+                       }
+               }
+
+               return jqXHR;
+       },
+
+       // Serialize an array of form elements or a set of
+       // key/values into a query string
+       param: function( a, traditional ) {
+               var s = [],
+                       add = function( key, value ) {
+                               // If value is a function, invoke it and return its value
+                               value = jQuery.isFunction( value ) ? value() : value;
+                               s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
+                       };
+
+               // Set traditional to true for jQuery <= 1.3.2 behavior.
+               if ( traditional === undefined ) {
+                       traditional = jQuery.ajaxSettings.traditional;
+               }
+
+               // If an array was passed in, assume that it is an array of form elements.
+               if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
+                       // Serialize the form elements
+                       jQuery.each( a, function() {
+                               add( this.name, this.value );
+                       });
+
+               } else {
+                       // If traditional, encode the "old" way (the way 1.3.2 or older
+                       // did it), otherwise encode params recursively.
+                       for ( var prefix in a ) {
+                               buildParams( prefix, a[ prefix ], traditional, add );
+                       }
+               }
+
+               // Return the resulting serialization
+               return s.join( "&" ).replace( r20, "+" );
+       }
+});
+
+function buildParams( prefix, obj, traditional, add ) {
+       if ( jQuery.isArray( obj ) ) {
+               // Serialize array item.
+               jQuery.each( obj, function( i, v ) {
+                       if ( traditional || rbracket.test( prefix ) ) {
+                               // Treat each array item as a scalar.
+                               add( prefix, v );
+
+                       } else {
+                               // If array item is non-scalar (array or object), encode its
+                               // numeric index to resolve deserialization ambiguity issues.
+                               // Note that rack (as of 1.0.0) can't currently deserialize
+                               // nested arrays properly, and attempting to do so may cause
+                               // a server error. Possible fixes are to modify rack's
+                               // deserialization algorithm or to provide an option or flag
+                               // to force array serialization to be shallow.
+                               buildParams( prefix + "[" + ( typeof v === "object" || jQuery.isArray(v) ? i : "" ) + "]", v, traditional, add );
+                       }
+               });
+
+       } else if ( !traditional && obj != null && typeof obj === "object" ) {
+               // Serialize object item.
+               for ( var name in obj ) {
+                       buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
+               }
+
+       } else {
+               // Serialize scalar item.
+               add( prefix, obj );
+       }
+}
+
+// This is still on the jQuery object... for now
+// Want to move this to jQuery.ajax some day
+jQuery.extend({
+
+       // Counter for holding the number of active queries
+       active: 0,
+
+       // Last-Modified header cache for next request
+       lastModified: {},
+       etag: {}
+
+});
+
+/* Handles responses to an ajax request:
+ * - sets all responseXXX fields accordingly
+ * - finds the right dataType (mediates between content-type and expected dataType)
+ * - returns the corresponding response
+ */
+function ajaxHandleResponses( s, jqXHR, responses ) {
+
+       var contents = s.contents,
+               dataTypes = s.dataTypes,
+               responseFields = s.responseFields,
+               ct,
+               type,
+               finalDataType,
+               firstDataType;
+
+       // Fill responseXXX fields
+       for( type in responseFields ) {
+               if ( type in responses ) {
+                       jqXHR[ responseFields[type] ] = responses[ type ];
+               }
+       }
+
+       // Remove auto dataType and get content-type in the process
+       while( dataTypes[ 0 ] === "*" ) {
+               dataTypes.shift();
+               if ( ct === undefined ) {
+                       ct = s.mimeType || jqXHR.getResponseHeader( "content-type" );
+               }
+       }
+
+       // Check if we're dealing with a known content-type
+       if ( ct ) {
+               for ( type in contents ) {
+                       if ( contents[ type ] && contents[ type ].test( ct ) ) {
+                               dataTypes.unshift( type );
+                               break;
+                       }
+               }
+       }
+
+       // Check to see if we have a response for the expected dataType
+       if ( dataTypes[ 0 ] in responses ) {
+               finalDataType = dataTypes[ 0 ];
+       } else {
+               // Try convertible dataTypes
+               for ( type in responses ) {
+                       if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
+                               finalDataType = type;
+                               break;
+                       }
+                       if ( !firstDataType ) {
+                               firstDataType = type;
+                       }
+               }
+               // Or just use first one
+               finalDataType = finalDataType || firstDataType;
+       }
+
+       // If we found a dataType
+       // We add the dataType to the list if needed
+       // and return the corresponding response
+       if ( finalDataType ) {
+               if ( finalDataType !== dataTypes[ 0 ] ) {
+                       dataTypes.unshift( finalDataType );
+               }
+               return responses[ finalDataType ];
+       }
+}
+
+// Chain conversions given the request and the original response
+function ajaxConvert( s, response ) {
+
+       // Apply the dataFilter if provided
+       if ( s.dataFilter ) {
+               response = s.dataFilter( response, s.dataType );
+       }
+
+       var dataTypes = s.dataTypes,
+               converters = {},
+               i,
+               key,
+               length = dataTypes.length,
+               tmp,
+               // Current and previous dataTypes
+               current = dataTypes[ 0 ],
+               prev,
+               // Conversion expression
+               conversion,
+               // Conversion function
+               conv,
+               // Conversion functions (transitive conversion)
+               conv1,
+               conv2;
+
+       // For each dataType in the chain
+       for( i = 1; i < length; i++ ) {
+
+               // Create converters map
+               // with lowercased keys
+               if ( i === 1 ) {
+                       for( key in s.converters ) {
+                               if( typeof key === "string" ) {
+                                       converters[ key.toLowerCase() ] = s.converters[ key ];
+                               }
+                       }
+               }
+
+               // Get the dataTypes
+               prev = current;
+               current = dataTypes[ i ];
+
+               // If current is auto dataType, update it to prev
+               if( current === "*" ) {
+                       current = prev;
+               // If no auto and dataTypes are actually different
+               } else if ( prev !== "*" && prev !== current ) {
+
+                       // Get the converter
+                       conversion = prev + " " + current;
+                       conv = converters[ conversion ] || converters[ "* " + current ];
+
+                       // If there is no direct converter, search transitively
+                       if ( !conv ) {
+                               conv2 = undefined;
+                               for( conv1 in converters ) {
+                                       tmp = conv1.split( " " );
+                                       if ( tmp[ 0 ] === prev || tmp[ 0 ] === "*" ) {
+                                               conv2 = converters[ tmp[1] + " " + current ];
+                                               if ( conv2 ) {
+                                                       conv1 = converters[ conv1 ];
+                                                       if ( conv1 === true ) {
+                                                               conv = conv2;
+                                                       } else if ( conv2 === true ) {
+                                                               conv = conv1;
+                                                       }
+                                                       break;
+                                               }
+                                       }
+                               }
+                       }
+                       // If we found no converter, dispatch an error
+                       if ( !( conv || conv2 ) ) {
+                               jQuery.error( "No conversion from " + conversion.replace(" "," to ") );
+                       }
+                       // If found converter is not an equivalence
+                       if ( conv !== true ) {
+                               // Convert with 1 or 2 converters accordingly
+                               response = conv ? conv( response ) : conv2( conv1(response) );
+                       }
+               }
+       }
+       return response;
+}
+
+
+
+
+var jsc = jQuery.now(),
+       jsre = /(\=)\?(&|$)|\?\?/i;
+
+// Default jsonp settings
+jQuery.ajaxSetup({
+       jsonp: "callback",
+       jsonpCallback: function() {
+               return jQuery.expando + "_" + ( jsc++ );
+       }
+});
+
+// Detect, normalize options and install callbacks for jsonp requests
+jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
+
+       var inspectData = s.contentType === "application/x-www-form-urlencoded" &&
+               ( typeof s.data === "string" );
+
+       if ( s.dataTypes[ 0 ] === "jsonp" ||
+               s.jsonp !== false && ( jsre.test( s.url ) ||
+                               inspectData && jsre.test( s.data ) ) ) {
+
+               var responseContainer,
+                       jsonpCallback = s.jsonpCallback =
+                               jQuery.isFunction( s.jsonpCallback ) ? s.jsonpCallback() : s.jsonpCallback,
+                       previous = window[ jsonpCallback ],
+                       url = s.url,
+                       data = s.data,
+                       replace = "$1" + jsonpCallback + "$2";
+
+               if ( s.jsonp !== false ) {
+                       url = url.replace( jsre, replace );
+                       if ( s.url === url ) {
+                               if ( inspectData ) {
+                                       data = data.replace( jsre, replace );
+                               }
+                               if ( s.data === data ) {
+                                       // Add callback manually
+                                       url += (/\?/.test( url ) ? "&" : "?") + s.jsonp + "=" + jsonpCallback;
+                               }
+                       }
+               }
+
+               s.url = url;
+               s.data = data;
+
+               // Install callback
+               window[ jsonpCallback ] = function( response ) {
+                       responseContainer = [ response ];
+               };
+
+               // Clean-up function
+               jqXHR.always(function() {
+                       // Set callback back to previous value
+                       window[ jsonpCallback ] = previous;
+                       // Call if it was a function and we have a response
+                       if ( responseContainer && jQuery.isFunction( previous ) ) {
+                               window[ jsonpCallback ]( responseContainer[ 0 ] );
+                       }
+               });
+
+               // Use data converter to retrieve json after script execution
+               s.converters["script json"] = function() {
+                       if ( !responseContainer ) {
+                               jQuery.error( jsonpCallback + " was not called" );
+                       }
+                       return responseContainer[ 0 ];
+               };
+
+               // force json dataType
+               s.dataTypes[ 0 ] = "json";
+
+               // Delegate to script
+               return "script";
+       }
+});
+
+
+
+
+// Install script dataType
+jQuery.ajaxSetup({
+       accepts: {
+               script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
+       },
+       contents: {
+               script: /javascript|ecmascript/
+       },
+       converters: {
+               "text script": function( text ) {
+                       jQuery.globalEval( text );
+                       return text;
+               }
+       }
+});
+
+// Handle cache's special case and global
+jQuery.ajaxPrefilter( "script", function( s ) {
+       if ( s.cache === undefined ) {
+               s.cache = false;
+       }
+       if ( s.crossDomain ) {
+               s.type = "GET";
+               s.global = false;
+       }
+});
+
+// Bind script tag hack transport
+jQuery.ajaxTransport( "script", function(s) {
+
+       // This transport only deals with cross domain requests
+       if ( s.crossDomain ) {
+
+               var script,
+                       head = document.head || document.getElementsByTagName( "head" )[0] || document.documentElement;
+
+               return {
+
+                       send: function( _, callback ) {
+
+                               script = document.createElement( "script" );
+
+                               script.async = "async";
+
+                               if ( s.scriptCharset ) {
+                                       script.charset = s.scriptCharset;
+                               }
+
+                               script.src = s.url;
+
+                               // Attach handlers for all browsers
+                               script.onload = script.onreadystatechange = function( _, isAbort ) {
+
+                                       if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {
+
+                                               // Handle memory leak in IE
+                                               script.onload = script.onreadystatechange = null;
+
+                                               // Remove the script
+                                               if ( head && script.parentNode ) {
+                                                       head.removeChild( script );
+                                               }
+
+                                               // Dereference the script
+                                               script = undefined;
+
+                                               // Callback if not abort
+                                               if ( !isAbort ) {
+                                                       callback( 200, "success" );
+                                               }
+                                       }
+                               };
+                               // Use insertBefore instead of appendChild  to circumvent an IE6 bug.
+                               // This arises when a base node is used (#2709 and #4378).
+                               head.insertBefore( script, head.firstChild );
+                       },
+
+                       abort: function() {
+                               if ( script ) {
+                                       script.onload( 0, 1 );
+                               }
+                       }
+               };
+       }
+});
+
+
+
+
+var // #5280: Internet Explorer will keep connections alive if we don't abort on unload
+       xhrOnUnloadAbort = window.ActiveXObject ? function() {
+               // Abort all pending requests
+               for ( var key in xhrCallbacks ) {
+                       xhrCallbacks[ key ]( 0, 1 );
+               }
+       } : false,
+       xhrId = 0,
+       xhrCallbacks;
+
+// Functions to create xhrs
+function createStandardXHR() {
+       try {
+               return new window.XMLHttpRequest();
+       } catch( e ) {}
+}
+
+function createActiveXHR() {
+       try {
+               return new window.ActiveXObject( "Microsoft.XMLHTTP" );
+       } catch( e ) {}
+}
+
+// Create the request object
+// (This is still attached to ajaxSettings for backward compatibility)
+jQuery.ajaxSettings.xhr = window.ActiveXObject ?
+       /* Microsoft failed to properly
+        * implement the XMLHttpRequest in IE7 (can't request local files),
+        * so we use the ActiveXObject when it is available
+        * Additionally XMLHttpRequest can be disabled in IE7/IE8 so
+        * we need a fallback.
+        */
+       function() {
+               return !this.isLocal && createStandardXHR() || createActiveXHR();
+       } :
+       // For all other browsers, use the standard XMLHttpRequest object
+       createStandardXHR;
+
+// Determine support properties
+(function( xhr ) {
+       jQuery.extend( jQuery.support, {
+               ajax: !!xhr,
+               cors: !!xhr && ( "withCredentials" in xhr )
+       });
+})( jQuery.ajaxSettings.xhr() );
+
+// Create transport if the browser can provide an xhr
+if ( jQuery.support.ajax ) {
+
+       jQuery.ajaxTransport(function( s ) {
+               // Cross domain only allowed if supported through XMLHttpRequest
+               if ( !s.crossDomain || jQuery.support.cors ) {
+
+                       var callback;
+
+                       return {
+                               send: function( headers, complete ) {
+
+                                       // Get a new xhr
+                                       var xhr = s.xhr(),
+                                               handle,
+                                               i;
+
+                                       // Open the socket
+                                       // Passing null username, generates a login popup on Opera (#2865)
+                                       if ( s.username ) {
+                                               xhr.open( s.type, s.url, s.async, s.username, s.password );
+                                       } else {
+                                               xhr.open( s.type, s.url, s.async );
+                                       }
+
+                                       // Apply custom fields if provided
+                                       if ( s.xhrFields ) {
+                                               for ( i in s.xhrFields ) {
+                                                       xhr[ i ] = s.xhrFields[ i ];
+                                               }
+                                       }
+
+                                       // Override mime type if needed
+                                       if ( s.mimeType && xhr.overrideMimeType ) {
+                                               xhr.overrideMimeType( s.mimeType );
+                                       }
+
+                                       // X-Requested-With header
+                                       // For cross-domain requests, seeing as conditions for a preflight are
+                                       // akin to a jigsaw puzzle, we simply never set it to be sure.
+                                       // (it can always be set on a per-request basis or even using ajaxSetup)
+                                       // For same-domain requests, won't change header if already provided.
+                                       if ( !s.crossDomain && !headers["X-Requested-With"] ) {
+                                               headers[ "X-Requested-With" ] = "XMLHttpRequest";
+                                       }
+
+                                       // Need an extra try/catch for cross domain requests in Firefox 3
+                                       try {
+                                               for ( i in headers ) {
+                                                       xhr.setRequestHeader( i, headers[ i ] );
+                                               }
+                                       } catch( _ ) {}
+
+                                       // Do send the request
+                                       // This may raise an exception which is actually
+                                       // handled in jQuery.ajax (so no try/catch here)
+                                       xhr.send( ( s.hasContent && s.data ) || null );
+
+                                       // Listener
+                                       callback = function( _, isAbort ) {
+
+                                               var status,
+                                                       statusText,
+                                                       responseHeaders,
+                                                       responses,
+                                                       xml;
+
+                                               // Firefox throws exceptions when accessing properties
+                                               // of an xhr when a network error occured
+                                               // http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
+                                               try {
+
+                                                       // Was never called and is aborted or complete
+                                                       if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
+
+                                                               // Only called once
+                                                               callback = undefined;
+
+                                                               // Do not keep as active anymore
+                                                               if ( handle ) {
+                                                                       xhr.onreadystatechange = jQuery.noop;
+                                                                       if ( xhrOnUnloadAbort ) {
+                                                                               delete xhrCallbacks[ handle ];
+                                                                       }
+                                                               }
+
+                                                               // If it's an abort
+                                                               if ( isAbort ) {
+                                                                       // Abort it manually if needed
+                                                                       if ( xhr.readyState !== 4 ) {
+                                                                               xhr.abort();
+                                                                       }
+                                                               } else {
+                                                                       status = xhr.status;
+                                                                       responseHeaders = xhr.getAllResponseHeaders();
+                                                                       responses = {};
+                                                                       xml = xhr.responseXML;
+
+                                                                       // Construct response list
+                                                                       if ( xml && xml.documentElement /* #4958 */ ) {
+                                                                               responses.xml = xml;
+                                                                       }
+                                                                       responses.text = xhr.responseText;
+
+                                                                       // Firefox throws an exception when accessing
+                                                                       // statusText for faulty cross-domain requests
+                                                                       try {
+                                                                               statusText = xhr.statusText;
+                                                                       } catch( e ) {
+                                                                               // We normalize with Webkit giving an empty statusText
+                                                                               statusText = "";
+                                                                       }
+
+                                                                       // Filter status for non standard behaviors
+
+                                                                       // If the request is local and we have data: assume a success
+                                                                       // (success with no data won't get notified, that's the best we
+                                                                       // can do given current implementations)
+                                                                       if ( !status && s.isLocal && !s.crossDomain ) {
+                                                                               status = responses.text ? 200 : 404;
+                                                                       // IE - #1450: sometimes returns 1223 when it should be 204
+                                                                       } else if ( status === 1223 ) {
+                                                                               status = 204;
+                                                                       }
+                                                               }
+                                                       }
+                                               } catch( firefoxAccessException ) {
+                                                       if ( !isAbort ) {
+                                                               complete( -1, firefoxAccessException );
+                                                       }
+                                               }
+
+                                               // Call complete if needed
+                                               if ( responses ) {
+                                                       complete( status, statusText, responses, responseHeaders );
+                                               }
+                                       };
+
+                                       // if we're in sync mode or it's in cache
+                                       // and has been retrieved directly (IE6 & IE7)
+                                       // we need to manually fire the callback
+                                       if ( !s.async || xhr.readyState === 4 ) {
+                                               callback();
+                                       } else {
+                                               handle = ++xhrId;
+                                               if ( xhrOnUnloadAbort ) {
+                                                       // Create the active xhrs callbacks list if needed
+                                                       // and attach the unload handler
+                                                       if ( !xhrCallbacks ) {
+                                                               xhrCallbacks = {};
+                                                               jQuery( window ).unload( xhrOnUnloadAbort );
+                                                       }
+                                                       // Add to list of active xhrs callbacks
+                                                       xhrCallbacks[ handle ] = callback;
+                                               }
+                                               xhr.onreadystatechange = callback;
+                                       }
+                               },
+
+                               abort: function() {
+                                       if ( callback ) {
+                                               callback(0,1);
+                                       }
+                               }
+                       };
+               }
+       });
+}
+
+
+
+
+var elemdisplay = {},
+       iframe, iframeDoc,
+       rfxtypes = /^(?:toggle|show|hide)$/,
+       rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
+       timerId,
+       fxAttrs = [
+               // height animations
+               [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
+               // width animations
+               [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
+               // opacity animations
+               [ "opacity" ]
+       ],
+       fxNow;
+
+jQuery.fn.extend({
+       show: function( speed, easing, callback ) {
+               var elem, display;
+
+               if ( speed || speed === 0 ) {
+                       return this.animate( genFx("show", 3), speed, easing, callback);
+
+               } else {
+                       for ( var i = 0, j = this.length; i < j; i++ ) {
+                               elem = this[i];
+
+                               if ( elem.style ) {
+                                       display = elem.style.display;
+
+                                       // Reset the inline display of this element to learn if it is
+                                       // being hidden by cascaded rules or not
+                                       if ( !jQuery._data(elem, "olddisplay") && display === "none" ) {
+                                               display = elem.style.display = "";
+                                       }
+
+                                       // Set elements which have been overridden with display: none
+                                       // in a stylesheet to whatever the default browser style is
+                                       // for such an element
+                                       if ( display === "" && jQuery.css( elem, "display" ) === "none" ) {
+                                               jQuery._data(elem, "olddisplay", defaultDisplay(elem.nodeName));
+                                       }
+                               }
+                       }
+
+                       // Set the display of most of the elements in a second loop
+                       // to avoid the constant reflow
+                       for ( i = 0; i < j; i++ ) {
+                               elem = this[i];
+
+                               if ( elem.style ) {
+                                       display = elem.style.display;
+
+                                       if ( display === "" || display === "none" ) {
+                                               elem.style.display = jQuery._data(elem, "olddisplay") || "";
+                                       }
+                               }
+                       }
+
+                       return this;
+               }
+       },
+
+       hide: function( speed, easing, callback ) {
+               if ( speed || speed === 0 ) {
+                       return this.animate( genFx("hide", 3), speed, easing, callback);
+
+               } else {
+                       for ( var i = 0, j = this.length; i < j; i++ ) {
+                               if ( this[i].style ) {
+                                       var display = jQuery.css( this[i], "display" );
+
+                                       if ( display !== "none" && !jQuery._data( this[i], "olddisplay" ) ) {
+                                               jQuery._data( this[i], "olddisplay", display );
+                                       }
+                               }
+                       }
+
+                       // Set the display of the elements in a second loop
+                       // to avoid the constant reflow
+                       for ( i = 0; i < j; i++ ) {
+                               if ( this[i].style ) {
+                                       this[i].style.display = "none";
+                               }
+                       }
+
+                       return this;
+               }
+       },
+
+       // Save the old toggle function
+       _toggle: jQuery.fn.toggle,
+
+       toggle: function( fn, fn2, callback ) {
+               var bool = typeof fn === "boolean";
+
+               if ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) {
+                       this._toggle.apply( this, arguments );
+
+               } else if ( fn == null || bool ) {
+                       this.each(function() {
+                               var state = bool ? fn : jQuery(this).is(":hidden");
+                               jQuery(this)[ state ? "show" : "hide" ]();
+                       });
+
+               } else {
+                       this.animate(genFx("toggle", 3), fn, fn2, callback);
+               }
+
+               return this;
+       },
+
+       fadeTo: function( speed, to, easing, callback ) {
+               return this.filter(":hidden").css("opacity", 0).show().end()
+                                       .animate({opacity: to}, speed, easing, callback);
+       },
+
+       animate: function( prop, speed, easing, callback ) {
+               var optall = jQuery.speed(speed, easing, callback);
+
+               if ( jQuery.isEmptyObject( prop ) ) {
+                       return this.each( optall.complete, [ false ] );
+               }
+
+               // Do not change referenced properties as per-property easing will be lost
+               prop = jQuery.extend( {}, prop );
+
+               return this[ optall.queue === false ? "each" : "queue" ](function() {
+                       // XXX 'this' does not always have a nodeName when running the
+                       // test suite
+
+                       if ( optall.queue === false ) {
+                               jQuery._mark( this );
+                       }
+
+                       var opt = jQuery.extend( {}, optall ),
+                               isElement = this.nodeType === 1,
+                               hidden = isElement && jQuery(this).is(":hidden"),
+                               name, val, p,
+                               display, e,
+                               parts, start, end, unit;
+
+                       // will store per property easing and be used to determine when an animation is complete
+                       opt.animatedProperties = {};
+
+                       for ( p in prop ) {
+
+                               // property name normalization
+                               name = jQuery.camelCase( p );
+                               if ( p !== name ) {
+                                       prop[ name ] = prop[ p ];
+                                       delete prop[ p ];
+                               }
+
+                               val = prop[ name ];
+
+                               // easing resolution: per property > opt.specialEasing > opt.easing > 'swing' (default)
+                               if ( jQuery.isArray( val ) ) {
+                                       opt.animatedProperties[ name ] = val[ 1 ];
+                                       val = prop[ name ] = val[ 0 ];
+                               } else {
+                                       opt.animatedProperties[ name ] = opt.specialEasing && opt.specialEasing[ name ] || opt.easing || 'swing';
+                               }
+
+                               if ( val === "hide" && hidden || val === "show" && !hidden ) {
+                                       return opt.complete.call( this );
+                               }
+
+                               if ( isElement && ( name === "height" || name === "width" ) ) {
+                                       // Make sure that nothing sneaks out
+                                       // Record all 3 overflow attributes because IE does not
+                                       // change the overflow attribute when overflowX and
+                                       // overflowY are set to the same value
+                                       opt.overflow = [ this.style.overflow, this.style.overflowX, this.style.overflowY ];
+
+                                       // Set display property to inline-block for height/width
+                                       // animations on inline elements that are having width/height
+                                       // animated
+                                       if ( jQuery.css( this, "display" ) === "inline" &&
+                                                       jQuery.css( this, "float" ) === "none" ) {
+                                               if ( !jQuery.support.inlineBlockNeedsLayout ) {
+                                                       this.style.display = "inline-block";
+
+                                               } else {
+                                                       display = defaultDisplay( this.nodeName );
+
+                                                       // inline-level elements accept inline-block;
+                                                       // block-level elements need to be inline with layout
+                                                       if ( display === "inline" ) {
+                                                               this.style.display = "inline-block";
+
+                                                       } else {
+                                                               this.style.display = "inline";
+                                                               this.style.zoom = 1;
+                                                       }
+                                               }
+                                       }
+                               }
+                       }
+
+                       if ( opt.overflow != null ) {
+                               this.style.overflow = "hidden";
+                       }
+
+                       for ( p in prop ) {
+                               e = new jQuery.fx( this, opt, p );
+                               val = prop[ p ];
+
+                               if ( rfxtypes.test(val) ) {
+                                       e[ val === "toggle" ? hidden ? "show" : "hide" : val ]();
+
+                               } else {
+                                       parts = rfxnum.exec( val );
+                                       start = e.cur();
+
+                                       if ( parts ) {
+                                               end = parseFloat( parts[2] );
+                                               unit = parts[3] || ( jQuery.cssNumber[ p ] ? "" : "px" );
+
+                                               // We need to compute starting value
+                                               if ( unit !== "px" ) {
+                                                       jQuery.style( this, p, (end || 1) + unit);
+                                                       start = ((end || 1) / e.cur()) * start;
+                                                       jQuery.style( this, p, start + unit);
+                                               }
+
+                                               // If a +=/-= token was provided, we're doing a relative animation
+                                               if ( parts[1] ) {
+                                                       end = ( (parts[ 1 ] === "-=" ? -1 : 1) * end ) + start;
+                                               }
+
+                                               e.custom( start, end, unit );
+
+                                       } else {
+                                               e.custom( start, val, "" );
+                                       }
+                               }
+                       }
+
+                       // For JS strict compliance
+                       return true;
+               });
+       },
+
+       stop: function( clearQueue, gotoEnd ) {
+               if ( clearQueue ) {
+                       this.queue([]);
+               }
+
+               this.each(function() {
+                       var timers = jQuery.timers,
+                               i = timers.length;
+                       // clear marker counters if we know they won't be
+                       if ( !gotoEnd ) {
+                               jQuery._unmark( true, this );
+                       }
+                       while ( i-- ) {
+                               if ( timers[i].elem === this ) {
+                                       if (gotoEnd) {
+                                               // force the next step to be the last
+                                               timers[i](true);
+                                       }
+
+                                       timers.splice(i, 1);
+                               }
+                       }
+               });
+
+               // start the next in the queue if the last step wasn't forced
+               if ( !gotoEnd ) {
+                       this.dequeue();
+               }
+
+               return this;
+       }
+
+});
+
+// Animations created synchronously will run synchronously
+function createFxNow() {
+       setTimeout( clearFxNow, 0 );
+       return ( fxNow = jQuery.now() );
+}
+
+function clearFxNow() {
+       fxNow = undefined;
+}
+
+// Generate parameters to create a standard animation
+function genFx( type, num ) {
+       var obj = {};
+
+       jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice(0,num)), function() {
+               obj[ this ] = type;
+       });
+
+       return obj;
+}
+
+// Generate shortcuts for custom animations
+jQuery.each({
+       slideDown: genFx("show", 1),
+       slideUp: genFx("hide", 1),
+       slideToggle: genFx("toggle", 1),
+       fadeIn: { opacity: "show" },
+       fadeOut: { opacity: "hide" },
+       fadeToggle: { opacity: "toggle" }
+}, function( name, props ) {
+       jQuery.fn[ name ] = function( speed, easing, callback ) {
+               return this.animate( props, speed, easing, callback );
+       };
+});
+
+jQuery.extend({
+       speed: function( speed, easing, fn ) {
+               var opt = speed && typeof speed === "object" ? jQuery.extend({}, speed) : {
+                       complete: fn || !fn && easing ||
+                               jQuery.isFunction( speed ) && speed,
+                       duration: speed,
+                       easing: fn && easing || easing && !jQuery.isFunction(easing) && easing
+               };
+
+               opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
+                       opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[opt.duration] : jQuery.fx.speeds._default;
+
+               // Queueing
+               opt.old = opt.complete;
+               opt.complete = function( noUnmark ) {
+                       if ( jQuery.isFunction( opt.old ) ) {
+                               opt.old.call( this );
+                       }
+
+                       if ( opt.queue !== false ) {
+                               jQuery.dequeue( this );
+                       } else if ( noUnmark !== false ) {
+                               jQuery._unmark( this );
+                       }
+               };
+
+               return opt;
+       },
+
+       easing: {
+               linear: function( p, n, firstNum, diff ) {
+                       return firstNum + diff * p;
+               },
+               swing: function( p, n, firstNum, diff ) {
+                       return ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum;
+               }
+       },
+
+       timers: [],
+
+       fx: function( elem, options, prop ) {
+               this.options = options;
+               this.elem = elem;
+               this.prop = prop;
+
+               options.orig = options.orig || {};
+       }
+
+});
+
+jQuery.fx.prototype = {
+       // Simple function for setting a style value
+       update: function() {
+               if ( this.options.step ) {
+                       this.options.step.call( this.elem, this.now, this );
+               }
+
+               (jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this );
+       },
+
+       // Get the current size
+       cur: function() {
+               if ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) ) {
+                       return this.elem[ this.prop ];
+               }
+
+               var parsed,
+                       r = jQuery.css( this.elem, this.prop );
+               // Empty strings, null, undefined and "auto" are converted to 0,
+               // complex values such as "rotate(1rad)" are returned as is,
+               // simple values such as "10px" are parsed to Float.
+               return isNaN( parsed = parseFloat( r ) ) ? !r || r === "auto" ? 0 : r : parsed;
+       },
+
+       // Start an animation from one number to another
+       custom: function( from, to, unit ) {
+               var self = this,
+                       fx = jQuery.fx;
+
+               this.startTime = fxNow || createFxNow();
+               this.start = from;
+               this.end = to;
+               this.unit = unit || this.unit || ( jQuery.cssNumber[ this.prop ] ? "" : "px" );
+               this.now = this.start;
+               this.pos = this.state = 0;
+
+               function t( gotoEnd ) {
+                       return self.step(gotoEnd);
+               }
+
+               t.elem = this.elem;
+
+               if ( t() && jQuery.timers.push(t) && !timerId ) {
+                       timerId = setInterval( fx.tick, fx.interval );
+               }
+       },
+
+       // Simple 'show' function
+       show: function() {
+               // Remember where we started, so that we can go back to it later
+               this.options.orig[this.prop] = jQuery.style( this.elem, this.prop );
+               this.options.show = true;
+
+               // Begin the animation
+               // Make sure that we start at a small width/height to avoid any
+               // flash of content
+               this.custom(this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur());
+
+               // Start by showing the element
+               jQuery( this.elem ).show();
+       },
+
+       // Simple 'hide' function
+       hide: function() {
+               // Remember where we started, so that we can go back to it later
+               this.options.orig[this.prop] = jQuery.style( this.elem, this.prop );
+               this.options.hide = true;
+
+               // Begin the animation
+               this.custom(this.cur(), 0);
+       },
+
+       // Each step of an animation
+       step: function( gotoEnd ) {
+               var t = fxNow || createFxNow(),
+                       done = true,
+                       elem = this.elem,
+                       options = this.options,
+                       i, n;
+
+               if ( gotoEnd || t >= options.duration + this.startTime ) {
+                       this.now = this.end;
+                       this.pos = this.state = 1;
+                       this.update();
+
+                       options.animatedProperties[ this.prop ] = true;
+
+                       for ( i in options.animatedProperties ) {
+                               if ( options.animatedProperties[i] !== true ) {
+                                       done = false;
+                               }
+                       }
+
+                       if ( done ) {
+                               // Reset the overflow
+                               if ( options.overflow != null && !jQuery.support.shrinkWrapBlocks ) {
+
+                                       jQuery.each( [ "", "X", "Y" ], function (index, value) {
+                                               elem.style[ "overflow" + value ] = options.overflow[index];
+                                       });
+                               }
+
+                               // Hide the element if the "hide" operation was done
+                               if ( options.hide ) {
+                                       jQuery(elem).hide();
+                               }
+
+                               // Reset the properties, if the item has been hidden or shown
+                               if ( options.hide || options.show ) {
+                                       for ( var p in options.animatedProperties ) {
+                                               jQuery.style( elem, p, options.orig[p] );
+                                       }
+                               }
+
+                               // Execute the complete function
+                               options.complete.call( elem );
+                       }
+
+                       return false;
+
+               } else {
+                       // classical easing cannot be used with an Infinity duration
+                       if ( options.duration == Infinity ) {
+                               this.now = t;
+                       } else {
+                               n = t - this.startTime;
+                               this.state = n / options.duration;
+
+                               // Perform the easing function, defaults to swing
+                               this.pos = jQuery.easing[ options.animatedProperties[ this.prop ] ]( this.state, n, 0, 1, options.duration );
+                               this.now = this.start + ((this.end - this.start) * this.pos);
+                       }
+                       // Perform the next step of the animation
+                       this.update();
+               }
+
+               return true;
+       }
+};
+
+jQuery.extend( jQuery.fx, {
+       tick: function() {
+               for ( var timers = jQuery.timers, i = 0 ; i < timers.length ; ++i ) {
+                       if ( !timers[i]() ) {
+                               timers.splice(i--, 1);
+                       }
+               }
+
+               if ( !timers.length ) {
+                       jQuery.fx.stop();
+               }
+       },
+
+       interval: 13,
+
+       stop: function() {
+               clearInterval( timerId );
+               timerId = null;
+       },
+
+       speeds: {
+               slow: 600,
+               fast: 200,
+               // Default speed
+               _default: 400
+       },
+
+       step: {
+               opacity: function( fx ) {
+                       jQuery.style( fx.elem, "opacity", fx.now );
+               },
+
+               _default: function( fx ) {
+                       if ( fx.elem.style && fx.elem.style[ fx.prop ] != null ) {
+                               fx.elem.style[ fx.prop ] = (fx.prop === "width" || fx.prop === "height" ? Math.max(0, fx.now) : fx.now) + fx.unit;
+                       } else {
+                               fx.elem[ fx.prop ] = fx.now;
+                       }
+               }
+       }
+});
+
+if ( jQuery.expr && jQuery.expr.filters ) {
+       jQuery.expr.filters.animated = function( elem ) {
+               return jQuery.grep(jQuery.timers, function( fn ) {
+                       return elem === fn.elem;
+               }).length;
+       };
+}
+
+// Try to restore the default display value of an element
+function defaultDisplay( nodeName ) {
+
+       if ( !elemdisplay[ nodeName ] ) {
+
+               var body = document.body,
+                       elem = jQuery( "<" + nodeName + ">" ).appendTo( body ),
+                       display = elem.css( "display" );
+
+               elem.remove();
+
+               // If the simple way fails,
+               // get element's real default display by attaching it to a temp iframe
+               if ( display === "none" || display === "" ) {
+                       // No iframe to use yet, so create it
+                       if ( !iframe ) {
+                               iframe = document.createElement( "iframe" );
+                               iframe.frameBorder = iframe.width = iframe.height = 0;
+                       }
+
+                       body.appendChild( iframe );
+
+                       // Create a cacheable copy of the iframe document on first call.
+                       // IE and Opera will allow us to reuse the iframeDoc without re-writing the fake HTML
+                       // document to it; WebKit & Firefox won't allow reusing the iframe document.
+                       if ( !iframeDoc || !iframe.createElement ) {
+                               iframeDoc = ( iframe.contentWindow || iframe.contentDocument ).document;
+                               iframeDoc.write( ( document.compatMode === "CSS1Compat" ? "<!doctype html>" : "" ) + "<html><body>" );
+                               iframeDoc.close();
+                       }
+
+                       elem = iframeDoc.createElement( nodeName );
+
+                       iframeDoc.body.appendChild( elem );
+
+                       display = jQuery.css( elem, "display" );
+
+                       body.removeChild( iframe );
+               }
+
+               // Store the correct default display
+               elemdisplay[ nodeName ] = display;
+       }
+
+       return elemdisplay[ nodeName ];
+}
+
+
+
+
+var rtable = /^t(?:able|d|h)$/i,
+       rroot = /^(?:body|html)$/i;
+
+if ( "getBoundingClientRect" in document.documentElement ) {
+       jQuery.fn.offset = function( options ) {
+               var elem = this[0], box;
+
+               if ( options ) {
+                       return this.each(function( i ) {
+                               jQuery.offset.setOffset( this, options, i );
+                       });
+               }
+
+               if ( !elem || !elem.ownerDocument ) {
+                       return null;
+               }
+
+               if ( elem === elem.ownerDocument.body ) {
+                       return jQuery.offset.bodyOffset( elem );
+               }
+
+               try {
+                       box = elem.getBoundingClientRect();
+               } catch(e) {}
+
+               var doc = elem.ownerDocument,
+                       docElem = doc.documentElement;
+
+               // Make sure we're not dealing with a disconnected DOM node
+               if ( !box || !jQuery.contains( docElem, elem ) ) {
+                       return box ? { top: box.top, left: box.left } : { top: 0, left: 0 };
+               }
+
+               var body = doc.body,
+                       win = getWindow(doc),
+                       clientTop  = docElem.clientTop  || body.clientTop  || 0,
+                       clientLeft = docElem.clientLeft || body.clientLeft || 0,
+                       scrollTop  = win.pageYOffset || jQuery.support.boxModel && docElem.scrollTop  || body.scrollTop,
+                       scrollLeft = win.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft,
+                       top  = box.top  + scrollTop  - clientTop,
+                       left = box.left + scrollLeft - clientLeft;
+
+               return { top: top, left: left };
+       };
+
+} else {
+       jQuery.fn.offset = function( options ) {
+               var elem = this[0];
+
+               if ( options ) {
+                       return this.each(function( i ) {
+                               jQuery.offset.setOffset( this, options, i );
+                       });
+               }
+
+               if ( !elem || !elem.ownerDocument ) {
+                       return null;
+               }
+
+               if ( elem === elem.ownerDocument.body ) {
+                       return jQuery.offset.bodyOffset( elem );
+               }
+
+               jQuery.offset.initialize();
+
+               var computedStyle,
+                       offsetParent = elem.offsetParent,
+                       prevOffsetParent = elem,
+                       doc = elem.ownerDocument,
+                       docElem = doc.documentElement,
+                       body = doc.body,
+                       defaultView = doc.defaultView,
+                       prevComputedStyle = defaultView ? defaultView.getComputedStyle( elem, null ) : elem.currentStyle,
+                       top = elem.offsetTop,
+                       left = elem.offsetLeft;
+
+               while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
+                       if ( jQuery.offset.supportsFixedPosition && prevComputedStyle.position === "fixed" ) {
+                               break;
+                       }
+
+                       computedStyle = defaultView ? defaultView.getComputedStyle(elem, null) : elem.currentStyle;
+                       top  -= elem.scrollTop;
+                       left -= elem.scrollLeft;
+
+                       if ( elem === offsetParent ) {
+                               top  += elem.offsetTop;
+                               left += elem.offsetLeft;
+
+                               if ( jQuery.offset.doesNotAddBorder && !(jQuery.offset.doesAddBorderForTableAndCells && rtable.test(elem.nodeName)) ) {
+                                       top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
+                                       left += parseFloat( computedStyle.borderLeftWidth ) || 0;
+                               }
+
+                               prevOffsetParent = offsetParent;
+                               offsetParent = elem.offsetParent;
+                       }
+
+                       if ( jQuery.offset.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" ) {
+                               top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
+                               left += parseFloat( computedStyle.borderLeftWidth ) || 0;
+                       }
+
+                       prevComputedStyle = computedStyle;
+               }
+
+               if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" ) {
+                       top  += body.offsetTop;
+                       left += body.offsetLeft;
+               }
+
+               if ( jQuery.offset.supportsFixedPosition && prevComputedStyle.position === "fixed" ) {
+                       top  += Math.max( docElem.scrollTop, body.scrollTop );
+                       left += Math.max( docElem.scrollLeft, body.scrollLeft );
+               }
+
+               return { top: top, left: left };
+       };
+}
+
+jQuery.offset = {
+       initialize: function() {
+               var body = document.body, container = document.createElement("div"), innerDiv, checkDiv, table, td, bodyMarginTop = parseFloat( jQuery.css(body, "marginTop") ) || 0,
+                       html = "<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
+
+               jQuery.extend( container.style, { position: "absolute", top: 0, left: 0, margin: 0, border: 0, width: "1px", height: "1px", visibility: "hidden" } );
+
+               container.innerHTML = html;
+               body.insertBefore( container, body.firstChild );
+               innerDiv = container.firstChild;
+               checkDiv = innerDiv.firstChild;
+               td = innerDiv.nextSibling.firstChild.firstChild;
+
+               this.doesNotAddBorder = (checkDiv.offsetTop !== 5);
+               this.doesAddBorderForTableAndCells = (td.offsetTop === 5);
+
+               checkDiv.style.position = "fixed";
+               checkDiv.style.top = "20px";
+
+               // safari subtracts parent border width here which is 5px
+               this.supportsFixedPosition = (checkDiv.offsetTop === 20 || checkDiv.offsetTop === 15);
+               checkDiv.style.position = checkDiv.style.top = "";
+
+               innerDiv.style.overflow = "hidden";
+               innerDiv.style.position = "relative";
+
+               this.subtractsBorderForOverflowNotVisible = (checkDiv.offsetTop === -5);
+
+               this.doesNotIncludeMarginInBodyOffset = (body.offsetTop !== bodyMarginTop);
+
+               body.removeChild( container );
+               jQuery.offset.initialize = jQuery.noop;
+       },
+
+       bodyOffset: function( body ) {
+               var top = body.offsetTop,
+                       left = body.offsetLeft;
+
+               jQuery.offset.initialize();
+
+               if ( jQuery.offset.doesNotIncludeMarginInBodyOffset ) {
+                       top  += parseFloat( jQuery.css(body, "marginTop") ) || 0;
+                       left += parseFloat( jQuery.css(body, "marginLeft") ) || 0;
+               }
+
+               return { top: top, left: left };
+       },
+
+       setOffset: function( elem, options, i ) {
+               var position = jQuery.css( elem, "position" );
+
+               // set position first, in-case top/left are set even on static elem
+               if ( position === "static" ) {
+                       elem.style.position = "relative";
+               }
+
+               var curElem = jQuery( elem ),
+                       curOffset = curElem.offset(),
+                       curCSSTop = jQuery.css( elem, "top" ),
+                       curCSSLeft = jQuery.css( elem, "left" ),
+                       calculatePosition = (position === "absolute" || position === "fixed") && jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1,
+                       props = {}, curPosition = {}, curTop, curLeft;
+
+               // need to be able to calculate position if either top or left is auto and position is either absolute or fixed
+               if ( calculatePosition ) {
+                       curPosition = curElem.position();
+                       curTop = curPosition.top;
+                       curLeft = curPosition.left;
+               } else {
+                       curTop = parseFloat( curCSSTop ) || 0;
+                       curLeft = parseFloat( curCSSLeft ) || 0;
+               }
+
+               if ( jQuery.isFunction( options ) ) {
+                       options = options.call( elem, i, curOffset );
+               }
+
+               if (options.top != null) {
+                       props.top = (options.top - curOffset.top) + curTop;
+               }
+               if (options.left != null) {
+                       props.left = (options.left - curOffset.left) + curLeft;
+               }
+
+               if ( "using" in options ) {
+                       options.using.call( elem, props );
+               } else {
+                       curElem.css( props );
+               }
+       }
+};
+
+
+jQuery.fn.extend({
+       position: function() {
+               if ( !this[0] ) {
+                       return null;
+               }
+
+               var elem = this[0],
+
+               // Get *real* offsetParent
+               offsetParent = this.offsetParent(),
+
+               // Get correct offsets
+               offset       = this.offset(),
+               parentOffset = rroot.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset();
+
+               // Subtract element margins
+               // note: when an element has margin: auto the offsetLeft and marginLeft
+               // are the same in Safari causing offset.left to incorrectly be 0
+               offset.top  -= parseFloat( jQuery.css(elem, "marginTop") ) || 0;
+               offset.left -= parseFloat( jQuery.css(elem, "marginLeft") ) || 0;
+
+               // Add offsetParent borders
+               parentOffset.top  += parseFloat( jQuery.css(offsetParent[0], "borderTopWidth") ) || 0;
+               parentOffset.left += parseFloat( jQuery.css(offsetParent[0], "borderLeftWidth") ) || 0;
+
+               // Subtract the two offsets
+               return {
+                       top:  offset.top  - parentOffset.top,
+                       left: offset.left - parentOffset.left
+               };
+       },
+
+       offsetParent: function() {
+               return this.map(function() {
+                       var offsetParent = this.offsetParent || document.body;
+                       while ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) {
+                               offsetParent = offsetParent.offsetParent;
+                       }
+                       return offsetParent;
+               });
+       }
+});
+
+
+// Create scrollLeft and scrollTop methods
+jQuery.each( ["Left", "Top"], function( i, name ) {
+       var method = "scroll" + name;
+
+       jQuery.fn[ method ] = function( val ) {
+               var elem, win;
+
+               if ( val === undefined ) {
+                       elem = this[ 0 ];
+
+                       if ( !elem ) {
+                               return null;
+                       }
+
+                       win = getWindow( elem );
+
+                       // Return the scroll offset
+                       return win ? ("pageXOffset" in win) ? win[ i ? "pageYOffset" : "pageXOffset" ] :
+                               jQuery.support.boxModel && win.document.documentElement[ method ] ||
+                                       win.document.body[ method ] :
+                               elem[ method ];
+               }
+
+               // Set the scroll offset
+               return this.each(function() {
+                       win = getWindow( this );
+
+                       if ( win ) {
+                               win.scrollTo(
+                                       !i ? val : jQuery( win ).scrollLeft(),
+                                        i ? val : jQuery( win ).scrollTop()
+                               );
+
+                       } else {
+                               this[ method ] = val;
+                       }
+               });
+       };
+});
+
+function getWindow( elem ) {
+       return jQuery.isWindow( elem ) ?
+               elem :
+               elem.nodeType === 9 ?
+                       elem.defaultView || elem.parentWindow :
+                       false;
+}
+
+
+
+
+// Create width, height, innerHeight, innerWidth, outerHeight and outerWidth methods
+jQuery.each([ "Height", "Width" ], function( i, name ) {
+
+       var type = name.toLowerCase();
+
+       // innerHeight and innerWidth
+       jQuery.fn[ "inner" + name ] = function() {
+               var elem = this[0];
+               return elem && elem.style ?
+                       parseFloat( jQuery.css( elem, type, "padding" ) ) :
+                       null;
+       };
+
+       // outerHeight and outerWidth
+       jQuery.fn[ "outer" + name ] = function( margin ) {
+               var elem = this[0];
+               return elem && elem.style ?
+                       parseFloat( jQuery.css( elem, type, margin ? "margin" : "border" ) ) :
+                       null;
+       };
+
+       jQuery.fn[ type ] = function( size ) {
+               // Get window width or height
+               var elem = this[0];
+               if ( !elem ) {
+                       return size == null ? null : this;
+               }
+
+               if ( jQuery.isFunction( size ) ) {
+                       return this.each(function( i ) {
+                               var self = jQuery( this );
+                               self[ type ]( size.call( this, i, self[ type ]() ) );
+                       });
+               }
+
+               if ( jQuery.isWindow( elem ) ) {
+                       // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
+                       // 3rd condition allows Nokia support, as it supports the docElem prop but not CSS1Compat
+                       var docElemProp = elem.document.documentElement[ "client" + name ],
+                               body = elem.document.body;
+                       return elem.document.compatMode === "CSS1Compat" && docElemProp ||
+                               body && body[ "client" + name ] || docElemProp;
+
+               // Get document width or height
+               } else if ( elem.nodeType === 9 ) {
+                       // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
+                       return Math.max(
+                               elem.documentElement["client" + name],
+                               elem.body["scroll" + name], elem.documentElement["scroll" + name],
+                               elem.body["offset" + name], elem.documentElement["offset" + name]
+                       );
+
+               // Get or set width or height on the element
+               } else if ( size === undefined ) {
+                       var orig = jQuery.css( elem, type ),
+                               ret = parseFloat( orig );
+
+                       return jQuery.isNaN( ret ) ? orig : ret;
+
+               // Set the width or height on the element (default to pixels if value is unitless)
+               } else {
+                       return this.css( type, typeof size === "string" ? size : size + "px" );
+               }
+       };
+
+});
+
+
+// Expose jQuery to the global object
+window.jQuery = window.$ = jQuery;
+})(window);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery-1.7.1.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery-1.7.1.js
new file mode 100644 (file)
index 0000000..8ccd0ea
--- /dev/null
@@ -0,0 +1,9266 @@
+/*!
+ * jQuery JavaScript Library v1.7.1
+ * http://jquery.com/
+ *
+ * Copyright 2011, John Resig
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * Includes Sizzle.js
+ * http://sizzlejs.com/
+ * Copyright 2011, The Dojo Foundation
+ * Released under the MIT, BSD, and GPL Licenses.
+ *
+ * Date: Mon Nov 21 21:11:03 2011 -0500
+ */
+(function( window, undefined ) {
+
+// Use the correct document accordingly with window argument (sandbox)
+var document = window.document,
+       navigator = window.navigator,
+       location = window.location;
+var jQuery = (function() {
+
+// Define a local copy of jQuery
+var jQuery = function( selector, context ) {
+               // The jQuery object is actually just the init constructor 'enhanced'
+               return new jQuery.fn.init( selector, context, rootjQuery );
+       },
+
+       // Map over jQuery in case of overwrite
+       _jQuery = window.jQuery,
+
+       // Map over the $ in case of overwrite
+       _$ = window.$,
+
+       // A central reference to the root jQuery(document)
+       rootjQuery,
+
+       // A simple way to check for HTML strings or ID strings
+       // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
+       quickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
+
+       // Check if a string has a non-whitespace character in it
+       rnotwhite = /\S/,
+
+       // Used for trimming whitespace
+       trimLeft = /^\s+/,
+       trimRight = /\s+$/,
+
+       // Match a standalone tag
+       rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
+
+       // JSON RegExp
+       rvalidchars = /^[\],:{}\s]*$/,
+       rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
+       rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
+       rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
+
+       // Useragent RegExp
+       rwebkit = /(webkit)[ \/]([\w.]+)/,
+       ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,
+       rmsie = /(msie) ([\w.]+)/,
+       rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
+
+       // Matches dashed string for camelizing
+       rdashAlpha = /-([a-z]|[0-9])/ig,
+       rmsPrefix = /^-ms-/,
+
+       // Used by jQuery.camelCase as callback to replace()
+       fcamelCase = function( all, letter ) {
+               return ( letter + "" ).toUpperCase();
+       },
+
+       // Keep a UserAgent string for use with jQuery.browser
+       userAgent = navigator.userAgent,
+
+       // For matching the engine and version of the browser
+       browserMatch,
+
+       // The deferred used on DOM ready
+       readyList,
+
+       // The ready event handler
+       DOMContentLoaded,
+
+       // Save a reference to some core methods
+       toString = Object.prototype.toString,
+       hasOwn = Object.prototype.hasOwnProperty,
+       push = Array.prototype.push,
+       slice = Array.prototype.slice,
+       trim = String.prototype.trim,
+       indexOf = Array.prototype.indexOf,
+
+       // [[Class]] -> type pairs
+       class2type = {};
+
+jQuery.fn = jQuery.prototype = {
+       constructor: jQuery,
+       init: function( selector, context, rootjQuery ) {
+               var match, elem, ret, doc;
+
+               // Handle $(""), $(null), or $(undefined)
+               if ( !selector ) {
+                       return this;
+               }
+
+               // Handle $(DOMElement)
+               if ( selector.nodeType ) {
+                       this.context = this[0] = selector;
+                       this.length = 1;
+                       return this;
+               }
+
+               // The body element only exists once, optimize finding it
+               if ( selector === "body" && !context && document.body ) {
+                       this.context = document;
+                       this[0] = document.body;
+                       this.selector = selector;
+                       this.length = 1;
+                       return this;
+               }
+
+               // Handle HTML strings
+               if ( typeof selector === "string" ) {
+                       // Are we dealing with HTML string or an ID?
+                       if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
+                               // Assume that strings that start and end with <> are HTML and skip the regex check
+                               match = [ null, selector, null ];
+
+                       } else {
+                               match = quickExpr.exec( selector );
+                       }
+
+                       // Verify a match, and that no context was specified for #id
+                       if ( match && (match[1] || !context) ) {
+
+                               // HANDLE: $(html) -> $(array)
+                               if ( match[1] ) {
+                                       context = context instanceof jQuery ? context[0] : context;
+                                       doc = ( context ? context.ownerDocument || context : document );
+
+                                       // If a single string is passed in and it's a single tag
+                                       // just do a createElement and skip the rest
+                                       ret = rsingleTag.exec( selector );
+
+                                       if ( ret ) {
+                                               if ( jQuery.isPlainObject( context ) ) {
+                                                       selector = [ document.createElement( ret[1] ) ];
+                                                       jQuery.fn.attr.call( selector, context, true );
+
+                                               } else {
+                                                       selector = [ doc.createElement( ret[1] ) ];
+                                               }
+
+                                       } else {
+                                               ret = jQuery.buildFragment( [ match[1] ], [ doc ] );
+                                               selector = ( ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment ).childNodes;
+                                       }
+
+                                       return jQuery.merge( this, selector );
+
+                               // HANDLE: $("#id")
+                               } else {
+                                       elem = document.getElementById( match[2] );
+
+                                       // Check parentNode to catch when Blackberry 4.6 returns
+                                       // nodes that are no longer in the document #6963
+                                       if ( elem && elem.parentNode ) {
+                                               // Handle the case where IE and Opera return items
+                                               // by name instead of ID
+                                               if ( elem.id !== match[2] ) {
+                                                       return rootjQuery.find( selector );
+                                               }
+
+                                               // Otherwise, we inject the element directly into the jQuery object
+                                               this.length = 1;
+                                               this[0] = elem;
+                                       }
+
+                                       this.context = document;
+                                       this.selector = selector;
+                                       return this;
+                               }
+
+                       // HANDLE: $(expr, $(...))
+                       } else if ( !context || context.jquery ) {
+                               return ( context || rootjQuery ).find( selector );
+
+                       // HANDLE: $(expr, context)
+                       // (which is just equivalent to: $(context).find(expr)
+                       } else {
+                               return this.constructor( context ).find( selector );
+                       }
+
+               // HANDLE: $(function)
+               // Shortcut for document ready
+               } else if ( jQuery.isFunction( selector ) ) {
+                       return rootjQuery.ready( selector );
+               }
+
+               if ( selector.selector !== undefined ) {
+                       this.selector = selector.selector;
+                       this.context = selector.context;
+               }
+
+               return jQuery.makeArray( selector, this );
+       },
+
+       // Start with an empty selector
+       selector: "",
+
+       // The current version of jQuery being used
+       jquery: "1.7.1",
+
+       // The default length of a jQuery object is 0
+       length: 0,
+
+       // The number of elements contained in the matched element set
+       size: function() {
+               return this.length;
+       },
+
+       toArray: function() {
+               return slice.call( this, 0 );
+       },
+
+       // Get the Nth element in the matched element set OR
+       // Get the whole matched element set as a clean array
+       get: function( num ) {
+               return num == null ?
+
+                       // Return a 'clean' array
+                       this.toArray() :
+
+                       // Return just the object
+                       ( num < 0 ? this[ this.length + num ] : this[ num ] );
+       },
+
+       // Take an array of elements and push it onto the stack
+       // (returning the new matched element set)
+       pushStack: function( elems, name, selector ) {
+               // Build a new jQuery matched element set
+               var ret = this.constructor();
+
+               if ( jQuery.isArray( elems ) ) {
+                       push.apply( ret, elems );
+
+               } else {
+                       jQuery.merge( ret, elems );
+               }
+
+               // Add the old object onto the stack (as a reference)
+               ret.prevObject = this;
+
+               ret.context = this.context;
+
+               if ( name === "find" ) {
+                       ret.selector = this.selector + ( this.selector ? " " : "" ) + selector;
+               } else if ( name ) {
+                       ret.selector = this.selector + "." + name + "(" + selector + ")";
+               }
+
+               // Return the newly-formed element set
+               return ret;
+       },
+
+       // Execute a callback for every element in the matched set.
+       // (You can seed the arguments with an array of args, but this is
+       // only used internally.)
+       each: function( callback, args ) {
+               return jQuery.each( this, callback, args );
+       },
+
+       ready: function( fn ) {
+               // Attach the listeners
+               jQuery.bindReady();
+
+               // Add the callback
+               readyList.add( fn );
+
+               return this;
+       },
+
+       eq: function( i ) {
+               i = +i;
+               return i === -1 ?
+                       this.slice( i ) :
+                       this.slice( i, i + 1 );
+       },
+
+       first: function() {
+               return this.eq( 0 );
+       },
+
+       last: function() {
+               return this.eq( -1 );
+       },
+
+       slice: function() {
+               return this.pushStack( slice.apply( this, arguments ),
+                       "slice", slice.call(arguments).join(",") );
+       },
+
+       map: function( callback ) {
+               return this.pushStack( jQuery.map(this, function( elem, i ) {
+                       return callback.call( elem, i, elem );
+               }));
+       },
+
+       end: function() {
+               return this.prevObject || this.constructor(null);
+       },
+
+       // For internal use only.
+       // Behaves like an Array's method, not like a jQuery method.
+       push: push,
+       sort: [].sort,
+       splice: [].splice
+};
+
+// Give the init function the jQuery prototype for later instantiation
+jQuery.fn.init.prototype = jQuery.fn;
+
+jQuery.extend = jQuery.fn.extend = function() {
+       var options, name, src, copy, copyIsArray, clone,
+               target = arguments[0] || {},
+               i = 1,
+               length = arguments.length,
+               deep = false;
+
+       // Handle a deep copy situation
+       if ( typeof target === "boolean" ) {
+               deep = target;
+               target = arguments[1] || {};
+               // skip the boolean and the target
+               i = 2;
+       }
+
+       // Handle case when target is a string or something (possible in deep copy)
+       if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
+               target = {};
+       }
+
+       // extend jQuery itself if only one argument is passed
+       if ( length === i ) {
+               target = this;
+               --i;
+       }
+
+       for ( ; i < length; i++ ) {
+               // Only deal with non-null/undefined values
+               if ( (options = arguments[ i ]) != null ) {
+                       // Extend the base object
+                       for ( name in options ) {
+                               src = target[ name ];
+                               copy = options[ name ];
+
+                               // Prevent never-ending loop
+                               if ( target === copy ) {
+                                       continue;
+                               }
+
+                               // Recurse if we're merging plain objects or arrays
+                               if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
+                                       if ( copyIsArray ) {
+                                               copyIsArray = false;
+                                               clone = src && jQuery.isArray(src) ? src : [];
+
+                                       } else {
+                                               clone = src && jQuery.isPlainObject(src) ? src : {};
+                                       }
+
+                                       // Never move original objects, clone them
+                                       target[ name ] = jQuery.extend( deep, clone, copy );
+
+                               // Don't bring in undefined values
+                               } else if ( copy !== undefined ) {
+                                       target[ name ] = copy;
+                               }
+                       }
+               }
+       }
+
+       // Return the modified object
+       return target;
+};
+
+jQuery.extend({
+       noConflict: function( deep ) {
+               if ( window.$ === jQuery ) {
+                       window.$ = _$;
+               }
+
+               if ( deep && window.jQuery === jQuery ) {
+                       window.jQuery = _jQuery;
+               }
+
+               return jQuery;
+       },
+
+       // Is the DOM ready to be used? Set to true once it occurs.
+       isReady: false,
+
+       // A counter to track how many items to wait for before
+       // the ready event fires. See #6781
+       readyWait: 1,
+
+       // Hold (or release) the ready event
+       holdReady: function( hold ) {
+               if ( hold ) {
+                       jQuery.readyWait++;
+               } else {
+                       jQuery.ready( true );
+               }
+       },
+
+       // Handle when the DOM is ready
+       ready: function( wait ) {
+               // Either a released hold or an DOMready/load event and not yet ready
+               if ( (wait === true && !--jQuery.readyWait) || (wait !== true && !jQuery.isReady) ) {
+                       // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
+                       if ( !document.body ) {
+                               return setTimeout( jQuery.ready, 1 );
+                       }
+
+                       // Remember that the DOM is ready
+                       jQuery.isReady = true;
+
+                       // If a normal DOM Ready event fired, decrement, and wait if need be
+                       if ( wait !== true && --jQuery.readyWait > 0 ) {
+                               return;
+                       }
+
+                       // If there are functions bound, to execute
+                       readyList.fireWith( document, [ jQuery ] );
+
+                       // Trigger any bound ready events
+                       if ( jQuery.fn.trigger ) {
+                               jQuery( document ).trigger( "ready" ).off( "ready" );
+                       }
+               }
+       },
+
+       bindReady: function() {
+               if ( readyList ) {
+                       return;
+               }
+
+               readyList = jQuery.Callbacks( "once memory" );
+
+               // Catch cases where $(document).ready() is called after the
+               // browser event has already occurred.
+               if ( document.readyState === "complete" ) {
+                       // Handle it asynchronously to allow scripts the opportunity to delay ready
+                       return setTimeout( jQuery.ready, 1 );
+               }
+
+               // Mozilla, Opera and webkit nightlies currently support this event
+               if ( document.addEventListener ) {
+                       // Use the handy event callback
+                       document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
+
+                       // A fallback to window.onload, that will always work
+                       window.addEventListener( "load", jQuery.ready, false );
+
+               // If IE event model is used
+               } else if ( document.attachEvent ) {
+                       // ensure firing before onload,
+                       // maybe late but safe also for iframes
+                       document.attachEvent( "onreadystatechange", DOMContentLoaded );
+
+                       // A fallback to window.onload, that will always work
+                       window.attachEvent( "onload", jQuery.ready );
+
+                       // If IE and not a frame
+                       // continually check to see if the document is ready
+                       var toplevel = false;
+
+                       try {
+                               toplevel = window.frameElement == null;
+                       } catch(e) {}
+
+                       if ( document.documentElement.doScroll && toplevel ) {
+                               doScrollCheck();
+                       }
+               }
+       },
+
+       // See test/unit/core.js for details concerning isFunction.
+       // Since version 1.3, DOM methods and functions like alert
+       // aren't supported. They return false on IE (#2968).
+       isFunction: function( obj ) {
+               return jQuery.type(obj) === "function";
+       },
+
+       isArray: Array.isArray || function( obj ) {
+               return jQuery.type(obj) === "array";
+       },
+
+       // A crude way of determining if an object is a window
+       isWindow: function( obj ) {
+               return obj && typeof obj === "object" && "setInterval" in obj;
+       },
+
+       isNumeric: function( obj ) {
+               return !isNaN( parseFloat(obj) ) && isFinite( obj );
+       },
+
+       type: function( obj ) {
+               return obj == null ?
+                       String( obj ) :
+                       class2type[ toString.call(obj) ] || "object";
+       },
+
+       isPlainObject: function( obj ) {
+               // Must be an Object.
+               // Because of IE, we also have to check the presence of the constructor property.
+               // Make sure that DOM nodes and window objects don't pass through, as well
+               if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
+                       return false;
+               }
+
+               try {
+                       // Not own constructor property must be Object
+                       if ( obj.constructor &&
+                               !hasOwn.call(obj, "constructor") &&
+                               !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
+                               return false;
+                       }
+               } catch ( e ) {
+                       // IE8,9 Will throw exceptions on certain host objects #9897
+                       return false;
+               }
+
+               // Own properties are enumerated firstly, so to speed up,
+               // if last one is own, then all properties are own.
+
+               var key;
+               for ( key in obj ) {}
+
+               return key === undefined || hasOwn.call( obj, key );
+       },
+
+       isEmptyObject: function( obj ) {
+               for ( var name in obj ) {
+                       return false;
+               }
+               return true;
+       },
+
+       error: function( msg ) {
+               throw new Error( msg );
+       },
+
+       parseJSON: function( data ) {
+               if ( typeof data !== "string" || !data ) {
+                       return null;
+               }
+
+               // Make sure leading/trailing whitespace is removed (IE can't handle it)
+               data = jQuery.trim( data );
+
+               // Attempt to parse using the native JSON parser first
+               if ( window.JSON && window.JSON.parse ) {
+                       return window.JSON.parse( data );
+               }
+
+               // Make sure the incoming data is actual JSON
+               // Logic borrowed from http://json.org/json2.js
+               if ( rvalidchars.test( data.replace( rvalidescape, "@" )
+                       .replace( rvalidtokens, "]" )
+                       .replace( rvalidbraces, "")) ) {
+
+                       return ( new Function( "return " + data ) )();
+
+               }
+               jQuery.error( "Invalid JSON: " + data );
+       },
+
+       // Cross-browser xml parsing
+       parseXML: function( data ) {
+               var xml, tmp;
+               try {
+                       if ( window.DOMParser ) { // Standard
+                               tmp = new DOMParser();
+                               xml = tmp.parseFromString( data , "text/xml" );
+                       } else { // IE
+                               xml = new ActiveXObject( "Microsoft.XMLDOM" );
+                               xml.async = "false";
+                               xml.loadXML( data );
+                       }
+               } catch( e ) {
+                       xml = undefined;
+               }
+               if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
+                       jQuery.error( "Invalid XML: " + data );
+               }
+               return xml;
+       },
+
+       noop: function() {},
+
+       // Evaluates a script in a global context
+       // Workarounds based on findings by Jim Driscoll
+       // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
+       globalEval: function( data ) {
+               if ( data && rnotwhite.test( data ) ) {
+                       // We use execScript on Internet Explorer
+                       // We use an anonymous function so that context is window
+                       // rather than jQuery in Firefox
+                       ( window.execScript || function( data ) {
+                               window[ "eval" ].call( window, data );
+                       } )( data );
+               }
+       },
+
+       // Convert dashed to camelCase; used by the css and data modules
+       // Microsoft forgot to hump their vendor prefix (#9572)
+       camelCase: function( string ) {
+               return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
+       },
+
+       nodeName: function( elem, name ) {
+               return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
+       },
+
+       // args is for internal usage only
+       each: function( object, callback, args ) {
+               var name, i = 0,
+                       length = object.length,
+                       isObj = length === undefined || jQuery.isFunction( object );
+
+               if ( args ) {
+                       if ( isObj ) {
+                               for ( name in object ) {
+                                       if ( callback.apply( object[ name ], args ) === false ) {
+                                               break;
+                                       }
+                               }
+                       } else {
+                               for ( ; i < length; ) {
+                                       if ( callback.apply( object[ i++ ], args ) === false ) {
+                                               break;
+                                       }
+                               }
+                       }
+
+               // A special, fast, case for the most common use of each
+               } else {
+                       if ( isObj ) {
+                               for ( name in object ) {
+                                       if ( callback.call( object[ name ], name, object[ name ] ) === false ) {
+                                               break;
+                                       }
+                               }
+                       } else {
+                               for ( ; i < length; ) {
+                                       if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) {
+                                               break;
+                                       }
+                               }
+                       }
+               }
+
+               return object;
+       },
+
+       // Use native String.trim function wherever possible
+       trim: trim ?
+               function( text ) {
+                       return text == null ?
+                               "" :
+                               trim.call( text );
+               } :
+
+               // Otherwise use our own trimming functionality
+               function( text ) {
+                       return text == null ?
+                               "" :
+                               text.toString().replace( trimLeft, "" ).replace( trimRight, "" );
+               },
+
+       // results is for internal usage only
+       makeArray: function( array, results ) {
+               var ret = results || [];
+
+               if ( array != null ) {
+                       // The window, strings (and functions) also have 'length'
+                       // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
+                       var type = jQuery.type( array );
+
+                       if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) {
+                               push.call( ret, array );
+                       } else {
+                               jQuery.merge( ret, array );
+                       }
+               }
+
+               return ret;
+       },
+
+       inArray: function( elem, array, i ) {
+               var len;
+
+               if ( array ) {
+                       if ( indexOf ) {
+                               return indexOf.call( array, elem, i );
+                       }
+
+                       len = array.length;
+                       i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;
+
+                       for ( ; i < len; i++ ) {
+                               // Skip accessing in sparse arrays
+                               if ( i in array && array[ i ] === elem ) {
+                                       return i;
+                               }
+                       }
+               }
+
+               return -1;
+       },
+
+       merge: function( first, second ) {
+               var i = first.length,
+                       j = 0;
+
+               if ( typeof second.length === "number" ) {
+                       for ( var l = second.length; j < l; j++ ) {
+                               first[ i++ ] = second[ j ];
+                       }
+
+               } else {
+                       while ( second[j] !== undefined ) {
+                               first[ i++ ] = second[ j++ ];
+                       }
+               }
+
+               first.length = i;
+
+               return first;
+       },
+
+       grep: function( elems, callback, inv ) {
+               var ret = [], retVal;
+               inv = !!inv;
+
+               // Go through the array, only saving the items
+               // that pass the validator function
+               for ( var i = 0, length = elems.length; i < length; i++ ) {
+                       retVal = !!callback( elems[ i ], i );
+                       if ( inv !== retVal ) {
+                               ret.push( elems[ i ] );
+                       }
+               }
+
+               return ret;
+       },
+
+       // arg is for internal usage only
+       map: function( elems, callback, arg ) {
+               var value, key, ret = [],
+                       i = 0,
+                       length = elems.length,
+                       // jquery objects are treated as arrays
+                       isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ;
+
+               // Go through the array, translating each of the items to their
+               if ( isArray ) {
+                       for ( ; i < length; i++ ) {
+                               value = callback( elems[ i ], i, arg );
+
+                               if ( value != null ) {
+                                       ret[ ret.length ] = value;
+                               }
+                       }
+
+               // Go through every key on the object,
+               } else {
+                       for ( key in elems ) {
+                               value = callback( elems[ key ], key, arg );
+
+                               if ( value != null ) {
+                                       ret[ ret.length ] = value;
+                               }
+                       }
+               }
+
+               // Flatten any nested arrays
+               return ret.concat.apply( [], ret );
+       },
+
+       // A global GUID counter for objects
+       guid: 1,
+
+       // Bind a function to a context, optionally partially applying any
+       // arguments.
+       proxy: function( fn, context ) {
+               if ( typeof context === "string" ) {
+                       var tmp = fn[ context ];
+                       context = fn;
+                       fn = tmp;
+               }
+
+               // Quick check to determine if target is callable, in the spec
+               // this throws a TypeError, but we will just return undefined.
+               if ( !jQuery.isFunction( fn ) ) {
+                       return undefined;
+               }
+
+               // Simulated bind
+               var args = slice.call( arguments, 2 ),
+                       proxy = function() {
+                               return fn.apply( context, args.concat( slice.call( arguments ) ) );
+                       };
+
+               // Set the guid of unique handler to the same of original handler, so it can be removed
+               proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;
+
+               return proxy;
+       },
+
+       // Mutifunctional method to get and set values to a collection
+       // The value/s can optionally be executed if it's a function
+       access: function( elems, key, value, exec, fn, pass ) {
+               var length = elems.length;
+
+               // Setting many attributes
+               if ( typeof key === "object" ) {
+                       for ( var k in key ) {
+                               jQuery.access( elems, k, key[k], exec, fn, value );
+                       }
+                       return elems;
+               }
+
+               // Setting one attribute
+               if ( value !== undefined ) {
+                       // Optionally, function values get executed if exec is true
+                       exec = !pass && exec && jQuery.isFunction(value);
+
+                       for ( var i = 0; i < length; i++ ) {
+                               fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
+                       }
+
+                       return elems;
+               }
+
+               // Getting an attribute
+               return length ? fn( elems[0], key ) : undefined;
+       },
+
+       now: function() {
+               return ( new Date() ).getTime();
+       },
+
+       // Use of jQuery.browser is frowned upon.
+       // More details: http://docs.jquery.com/Utilities/jQuery.browser
+       uaMatch: function( ua ) {
+               ua = ua.toLowerCase();
+
+               var match = rwebkit.exec( ua ) ||
+                       ropera.exec( ua ) ||
+                       rmsie.exec( ua ) ||
+                       ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||
+                       [];
+
+               return { browser: match[1] || "", version: match[2] || "0" };
+       },
+
+       sub: function() {
+               function jQuerySub( selector, context ) {
+                       return new jQuerySub.fn.init( selector, context );
+               }
+               jQuery.extend( true, jQuerySub, this );
+               jQuerySub.superclass = this;
+               jQuerySub.fn = jQuerySub.prototype = this();
+               jQuerySub.fn.constructor = jQuerySub;
+               jQuerySub.sub = this.sub;
+               jQuerySub.fn.init = function init( selector, context ) {
+                       if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {
+                               context = jQuerySub( context );
+                       }
+
+                       return jQuery.fn.init.call( this, selector, context, rootjQuerySub );
+               };
+               jQuerySub.fn.init.prototype = jQuerySub.fn;
+               var rootjQuerySub = jQuerySub(document);
+               return jQuerySub;
+       },
+
+       browser: {}
+});
+
+// Populate the class2type map
+jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {
+       class2type[ "[object " + name + "]" ] = name.toLowerCase();
+});
+
+browserMatch = jQuery.uaMatch( userAgent );
+if ( browserMatch.browser ) {
+       jQuery.browser[ browserMatch.browser ] = true;
+       jQuery.browser.version = browserMatch.version;
+}
+
+// Deprecated, use jQuery.browser.webkit instead
+if ( jQuery.browser.webkit ) {
+       jQuery.browser.safari = true;
+}
+
+// IE doesn't match non-breaking spaces with \s
+if ( rnotwhite.test( "\xA0" ) ) {
+       trimLeft = /^[\s\xA0]+/;
+       trimRight = /[\s\xA0]+$/;
+}
+
+// All jQuery objects should point back to these
+rootjQuery = jQuery(document);
+
+// Cleanup functions for the document ready method
+if ( document.addEventListener ) {
+       DOMContentLoaded = function() {
+               document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
+               jQuery.ready();
+       };
+
+} else if ( document.attachEvent ) {
+       DOMContentLoaded = function() {
+               // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
+               if ( document.readyState === "complete" ) {
+                       document.detachEvent( "onreadystatechange", DOMContentLoaded );
+                       jQuery.ready();
+               }
+       };
+}
+
+// The DOM ready check for Internet Explorer
+function doScrollCheck() {
+       if ( jQuery.isReady ) {
+               return;
+       }
+
+       try {
+               // If IE is used, use the trick by Diego Perini
+               // http://javascript.nwbox.com/IEContentLoaded/
+               document.documentElement.doScroll("left");
+       } catch(e) {
+               setTimeout( doScrollCheck, 1 );
+               return;
+       }
+
+       // and execute any waiting functions
+       jQuery.ready();
+}
+
+return jQuery;
+
+})();
+
+
+// String to Object flags format cache
+var flagsCache = {};
+
+// Convert String-formatted flags into Object-formatted ones and store in cache
+function createFlags( flags ) {
+       var object = flagsCache[ flags ] = {},
+               i, length;
+       flags = flags.split( /\s+/ );
+       for ( i = 0, length = flags.length; i < length; i++ ) {
+               object[ flags[i] ] = true;
+       }
+       return object;
+}
+
+/*
+ * Create a callback list using the following parameters:
+ *
+ *     flags:  an optional list of space-separated flags that will change how
+ *                     the callback list behaves
+ *
+ * By default a callback list will act like an event callback list and can be
+ * "fired" multiple times.
+ *
+ * Possible flags:
+ *
+ *     once:                   will ensure the callback list can only be fired once (like a Deferred)
+ *
+ *     memory:                 will keep track of previous values and will call any callback added
+ *                                     after the list has been fired right away with the latest "memorized"
+ *                                     values (like a Deferred)
+ *
+ *     unique:                 will ensure a callback can only be added once (no duplicate in the list)
+ *
+ *     stopOnFalse:    interrupt callings when a callback returns false
+ *
+ */
+jQuery.Callbacks = function( flags ) {
+
+       // Convert flags from String-formatted to Object-formatted
+       // (we check in cache first)
+       flags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {};
+
+       var // Actual callback list
+               list = [],
+               // Stack of fire calls for repeatable lists
+               stack = [],
+               // Last fire value (for non-forgettable lists)
+               memory,
+               // Flag to know if list is currently firing
+               firing,
+               // First callback to fire (used internally by add and fireWith)
+               firingStart,
+               // End of the loop when firing
+               firingLength,
+               // Index of currently firing callback (modified by remove if needed)
+               firingIndex,
+               // Add one or several callbacks to the list
+               add = function( args ) {
+                       var i,
+                               length,
+                               elem,
+                               type,
+                               actual;
+                       for ( i = 0, length = args.length; i < length; i++ ) {
+                               elem = args[ i ];
+                               type = jQuery.type( elem );
+                               if ( type === "array" ) {
+                                       // Inspect recursively
+                                       add( elem );
+                               } else if ( type === "function" ) {
+                                       // Add if not in unique mode and callback is not in
+                                       if ( !flags.unique || !self.has( elem ) ) {
+                                               list.push( elem );
+                                       }
+                               }
+                       }
+               },
+               // Fire callbacks
+               fire = function( context, args ) {
+                       args = args || [];
+                       memory = !flags.memory || [ context, args ];
+                       firing = true;
+                       firingIndex = firingStart || 0;
+                       firingStart = 0;
+                       firingLength = list.length;
+                       for ( ; list && firingIndex < firingLength; firingIndex++ ) {
+                               if ( list[ firingIndex ].apply( context, args ) === false && flags.stopOnFalse ) {
+                                       memory = true; // Mark as halted
+                                       break;
+                               }
+                       }
+                       firing = false;
+                       if ( list ) {
+                               if ( !flags.once ) {
+                                       if ( stack && stack.length ) {
+                                               memory = stack.shift();
+                                               self.fireWith( memory[ 0 ], memory[ 1 ] );
+                                       }
+                               } else if ( memory === true ) {
+                                       self.disable();
+                               } else {
+                                       list = [];
+                               }
+                       }
+               },
+               // Actual Callbacks object
+               self = {
+                       // Add a callback or a collection of callbacks to the list
+                       add: function() {
+                               if ( list ) {
+                                       var length = list.length;
+                                       add( arguments );
+                                       // Do we need to add the callbacks to the
+                                       // current firing batch?
+                                       if ( firing ) {
+                                               firingLength = list.length;
+                                       // With memory, if we're not firing then
+                                       // we should call right away, unless previous
+                                       // firing was halted (stopOnFalse)
+                                       } else if ( memory && memory !== true ) {
+                                               firingStart = length;
+                                               fire( memory[ 0 ], memory[ 1 ] );
+                                       }
+                               }
+                               return this;
+                       },
+                       // Remove a callback from the list
+                       remove: function() {
+                               if ( list ) {
+                                       var args = arguments,
+                                               argIndex = 0,
+                                               argLength = args.length;
+                                       for ( ; argIndex < argLength ; argIndex++ ) {
+                                               for ( var i = 0; i < list.length; i++ ) {
+                                                       if ( args[ argIndex ] === list[ i ] ) {
+                                                               // Handle firingIndex and firingLength
+                                                               if ( firing ) {
+                                                                       if ( i <= firingLength ) {
+                                                                               firingLength--;
+                                                                               if ( i <= firingIndex ) {
+                                                                                       firingIndex--;
+                                                                               }
+                                                                       }
+                                                               }
+                                                               // Remove the element
+                                                               list.splice( i--, 1 );
+                                                               // If we have some unicity property then
+                                                               // we only need to do this once
+                                                               if ( flags.unique ) {
+                                                                       break;
+                                                               }
+                                                       }
+                                               }
+                                       }
+                               }
+                               return this;
+                       },
+                       // Control if a given callback is in the list
+                       has: function( fn ) {
+                               if ( list ) {
+                                       var i = 0,
+                                               length = list.length;
+                                       for ( ; i < length; i++ ) {
+                                               if ( fn === list[ i ] ) {
+                                                       return true;
+                                               }
+                                       }
+                               }
+                               return false;
+                       },
+                       // Remove all callbacks from the list
+                       empty: function() {
+                               list = [];
+                               return this;
+                       },
+                       // Have the list do nothing anymore
+                       disable: function() {
+                               list = stack = memory = undefined;
+                               return this;
+                       },
+                       // Is it disabled?
+                       disabled: function() {
+                               return !list;
+                       },
+                       // Lock the list in its current state
+                       lock: function() {
+                               stack = undefined;
+                               if ( !memory || memory === true ) {
+                                       self.disable();
+                               }
+                               return this;
+                       },
+                       // Is it locked?
+                       locked: function() {
+                               return !stack;
+                       },
+                       // Call all callbacks with the given context and arguments
+                       fireWith: function( context, args ) {
+                               if ( stack ) {
+                                       if ( firing ) {
+                                               if ( !flags.once ) {
+                                                       stack.push( [ context, args ] );
+                                               }
+                                       } else if ( !( flags.once && memory ) ) {
+                                               fire( context, args );
+                                       }
+                               }
+                               return this;
+                       },
+                       // Call all the callbacks with the given arguments
+                       fire: function() {
+                               self.fireWith( this, arguments );
+                               return this;
+                       },
+                       // To know if the callbacks have already been called at least once
+                       fired: function() {
+                               return !!memory;
+                       }
+               };
+
+       return self;
+};
+
+
+
+
+var // Static reference to slice
+       sliceDeferred = [].slice;
+
+jQuery.extend({
+
+       Deferred: function( func ) {
+               var doneList = jQuery.Callbacks( "once memory" ),
+                       failList = jQuery.Callbacks( "once memory" ),
+                       progressList = jQuery.Callbacks( "memory" ),
+                       state = "pending",
+                       lists = {
+                               resolve: doneList,
+                               reject: failList,
+                               notify: progressList
+                       },
+                       promise = {
+                               done: doneList.add,
+                               fail: failList.add,
+                               progress: progressList.add,
+
+                               state: function() {
+                                       return state;
+                               },
+
+                               // Deprecated
+                               isResolved: doneList.fired,
+                               isRejected: failList.fired,
+
+                               then: function( doneCallbacks, failCallbacks, progressCallbacks ) {
+                                       deferred.done( doneCallbacks ).fail( failCallbacks ).progress( progressCallbacks );
+                                       return this;
+                               },
+                               always: function() {
+                                       deferred.done.apply( deferred, arguments ).fail.apply( deferred, arguments );
+                                       return this;
+                               },
+                               pipe: function( fnDone, fnFail, fnProgress ) {
+                                       return jQuery.Deferred(function( newDefer ) {
+                                               jQuery.each( {
+                                                       done: [ fnDone, "resolve" ],
+                                                       fail: [ fnFail, "reject" ],
+                                                       progress: [ fnProgress, "notify" ]
+                                               }, function( handler, data ) {
+                                                       var fn = data[ 0 ],
+                                                               action = data[ 1 ],
+                                                               returned;
+                                                       if ( jQuery.isFunction( fn ) ) {
+                                                               deferred[ handler ](function() {
+                                                                       returned = fn.apply( this, arguments );
+                                                                       if ( returned && jQuery.isFunction( returned.promise ) ) {
+                                                                               returned.promise().then( newDefer.resolve, newDefer.reject, newDefer.notify );
+                                                                       } else {
+                                                                               newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] );
+                                                                       }
+                                                               });
+                                                       } else {
+                                                               deferred[ handler ]( newDefer[ action ] );
+                                                       }
+                                               });
+                                       }).promise();
+                               },
+                               // Get a promise for this deferred
+                               // If obj is provided, the promise aspect is added to the object
+                               promise: function( obj ) {
+                                       if ( obj == null ) {
+                                               obj = promise;
+                                       } else {
+                                               for ( var key in promise ) {
+                                                       obj[ key ] = promise[ key ];
+                                               }
+                                       }
+                                       return obj;
+                               }
+                       },
+                       deferred = promise.promise({}),
+                       key;
+
+               for ( key in lists ) {
+                       deferred[ key ] = lists[ key ].fire;
+                       deferred[ key + "With" ] = lists[ key ].fireWith;
+               }
+
+               // Handle state
+               deferred.done( function() {
+                       state = "resolved";
+               }, failList.disable, progressList.lock ).fail( function() {
+                       state = "rejected";
+               }, doneList.disable, progressList.lock );
+
+               // Call given func if any
+               if ( func ) {
+                       func.call( deferred, deferred );
+               }
+
+               // All done!
+               return deferred;
+       },
+
+       // Deferred helper
+       when: function( firstParam ) {
+               var args = sliceDeferred.call( arguments, 0 ),
+                       i = 0,
+                       length = args.length,
+                       pValues = new Array( length ),
+                       count = length,
+                       pCount = length,
+                       deferred = length <= 1 && firstParam && jQuery.isFunction( firstParam.promise ) ?
+                               firstParam :
+                               jQuery.Deferred(),
+                       promise = deferred.promise();
+               function resolveFunc( i ) {
+                       return function( value ) {
+                               args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
+                               if ( !( --count ) ) {
+                                       deferred.resolveWith( deferred, args );
+                               }
+                       };
+               }
+               function progressFunc( i ) {
+                       return function( value ) {
+                               pValues[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
+                               deferred.notifyWith( promise, pValues );
+                       };
+               }
+               if ( length > 1 ) {
+                       for ( ; i < length; i++ ) {
+                               if ( args[ i ] && args[ i ].promise && jQuery.isFunction( args[ i ].promise ) ) {
+                                       args[ i ].promise().then( resolveFunc(i), deferred.reject, progressFunc(i) );
+                               } else {
+                                       --count;
+                               }
+                       }
+                       if ( !count ) {
+                               deferred.resolveWith( deferred, args );
+                       }
+               } else if ( deferred !== firstParam ) {
+                       deferred.resolveWith( deferred, length ? [ firstParam ] : [] );
+               }
+               return promise;
+       }
+});
+
+
+
+
+jQuery.support = (function() {
+
+       var support,
+               all,
+               a,
+               select,
+               opt,
+               input,
+               marginDiv,
+               fragment,
+               tds,
+               events,
+               eventName,
+               i,
+               isSupported,
+               div = document.createElement( "div" ),
+               documentElement = document.documentElement;
+
+       // Preliminary tests
+       div.setAttribute("className", "t");
+       div.innerHTML = "   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
+
+       all = div.getElementsByTagName( "*" );
+       a = div.getElementsByTagName( "a" )[ 0 ];
+
+       // Can't get basic test support
+       if ( !all || !all.length || !a ) {
+               return {};
+       }
+
+       // First batch of supports tests
+       select = document.createElement( "select" );
+       opt = select.appendChild( document.createElement("option") );
+       input = div.getElementsByTagName( "input" )[ 0 ];
+
+       support = {
+               // IE strips leading whitespace when .innerHTML is used
+               leadingWhitespace: ( div.firstChild.nodeType === 3 ),
+
+               // Make sure that tbody elements aren't automatically inserted
+               // IE will insert them into empty tables
+               tbody: !div.getElementsByTagName("tbody").length,
+
+               // Make sure that link elements get serialized correctly by innerHTML
+               // This requires a wrapper element in IE
+               htmlSerialize: !!div.getElementsByTagName("link").length,
+
+               // Get the style information from getAttribute
+               // (IE uses .cssText instead)
+               style: /top/.test( a.getAttribute("style") ),
+
+               // Make sure that URLs aren't manipulated
+               // (IE normalizes it by default)
+               hrefNormalized: ( a.getAttribute("href") === "/a" ),
+
+               // Make sure that element opacity exists
+               // (IE uses filter instead)
+               // Use a regex to work around a WebKit issue. See #5145
+               opacity: /^0.55/.test( a.style.opacity ),
+
+               // Verify style float existence
+               // (IE uses styleFloat instead of cssFloat)
+               cssFloat: !!a.style.cssFloat,
+
+               // Make sure that if no value is specified for a checkbox
+               // that it defaults to "on".
+               // (WebKit defaults to "" instead)
+               checkOn: ( input.value === "on" ),
+
+               // Make sure that a selected-by-default option has a working selected property.
+               // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
+               optSelected: opt.selected,
+
+               // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
+               getSetAttribute: div.className !== "t",
+
+               // Tests for enctype support on a form(#6743)
+               enctype: !!document.createElement("form").enctype,
+
+               // Makes sure cloning an html5 element does not cause problems
+               // Where outerHTML is undefined, this still works
+               html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav></:nav>",
+
+               // Will be defined later
+               submitBubbles: true,
+               changeBubbles: true,
+               focusinBubbles: false,
+               deleteExpando: true,
+               noCloneEvent: true,
+               inlineBlockNeedsLayout: false,
+               shrinkWrapBlocks: false,
+               reliableMarginRight: true
+       };
+
+       // Make sure checked status is properly cloned
+       input.checked = true;
+       support.noCloneChecked = input.cloneNode( true ).checked;
+
+       // Make sure that the options inside disabled selects aren't marked as disabled
+       // (WebKit marks them as disabled)
+       select.disabled = true;
+       support.optDisabled = !opt.disabled;
+
+       // Test to see if it's possible to delete an expando from an element
+       // Fails in Internet Explorer
+       try {
+               delete div.test;
+       } catch( e ) {
+               support.deleteExpando = false;
+       }
+
+       if ( !div.addEventListener && div.attachEvent && div.fireEvent ) {
+               div.attachEvent( "onclick", function() {
+                       // Cloning a node shouldn't copy over any
+                       // bound event handlers (IE does this)
+                       support.noCloneEvent = false;
+               });
+               div.cloneNode( true ).fireEvent( "onclick" );
+       }
+
+       // Check if a radio maintains its value
+       // after being appended to the DOM
+       input = document.createElement("input");
+       input.value = "t";
+       input.setAttribute("type", "radio");
+       support.radioValue = input.value === "t";
+
+       input.setAttribute("checked", "checked");
+       div.appendChild( input );
+       fragment = document.createDocumentFragment();
+       fragment.appendChild( div.lastChild );
+
+       // WebKit doesn't clone checked state correctly in fragments
+       support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;
+
+       // Check if a disconnected checkbox will retain its checked
+       // value of true after appended to the DOM (IE6/7)
+       support.appendChecked = input.checked;
+
+       fragment.removeChild( input );
+       fragment.appendChild( div );
+
+       div.innerHTML = "";
+
+       // Check if div with explicit width and no margin-right incorrectly
+       // gets computed margin-right based on width of container. For more
+       // info see bug #3333
+       // Fails in WebKit before Feb 2011 nightlies
+       // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
+       if ( window.getComputedStyle ) {
+               marginDiv = document.createElement( "div" );
+               marginDiv.style.width = "0";
+               marginDiv.style.marginRight = "0";
+               div.style.width = "2px";
+               div.appendChild( marginDiv );
+               support.reliableMarginRight =
+                       ( parseInt( ( window.getComputedStyle( marginDiv, null ) || { marginRight: 0 } ).marginRight, 10 ) || 0 ) === 0;
+       }
+
+       // Technique from Juriy Zaytsev
+       // http://perfectionkills.com/detecting-event-support-without-browser-sniffing/
+       // We only care about the case where non-standard event systems
+       // are used, namely in IE. Short-circuiting here helps us to
+       // avoid an eval call (in setAttribute) which can cause CSP
+       // to go haywire. See: https://developer.mozilla.org/en/Security/CSP
+       if ( div.attachEvent ) {
+               for( i in {
+                       submit: 1,
+                       change: 1,
+                       focusin: 1
+               }) {
+                       eventName = "on" + i;
+                       isSupported = ( eventName in div );
+                       if ( !isSupported ) {
+                               div.setAttribute( eventName, "return;" );
+                               isSupported = ( typeof div[ eventName ] === "function" );
+                       }
+                       support[ i + "Bubbles" ] = isSupported;
+               }
+       }
+
+       fragment.removeChild( div );
+
+       // Null elements to avoid leaks in IE
+       fragment = select = opt = marginDiv = div = input = null;
+
+       // Run tests that need a body at doc ready
+       jQuery(function() {
+               var container, outer, inner, table, td, offsetSupport,
+                       conMarginTop, ptlm, vb, style, html,
+                       body = document.getElementsByTagName("body")[0];
+
+               if ( !body ) {
+                       // Return for frameset docs that don't have a body
+                       return;
+               }
+
+               conMarginTop = 1;
+               ptlm = "position:absolute;top:0;left:0;width:1px;height:1px;margin:0;";
+               vb = "visibility:hidden;border:0;";
+               style = "style='" + ptlm + "border:5px solid #000;padding:0;'";
+               html = "<div " + style + "><div></div></div>" +
+                       "<table " + style + " cellpadding='0' cellspacing='0'>" +
+                       "<tr><td></td></tr></table>";
+
+               container = document.createElement("div");
+               container.style.cssText = vb + "width:0;height:0;position:static;top:0;margin-top:" + conMarginTop + "px";
+               body.insertBefore( container, body.firstChild );
+
+               // Construct the test element
+               div = document.createElement("div");
+               container.appendChild( div );
+
+               // Check if table cells still have offsetWidth/Height when they are set
+               // to display:none and there are still other visible table cells in a
+               // table row; if so, offsetWidth/Height are not reliable for use when
+               // determining if an element has been hidden directly using
+               // display:none (it is still safe to use offsets if a parent element is
+               // hidden; don safety goggles and see bug #4512 for more information).
+               // (only IE 8 fails this test)
+               div.innerHTML = "<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";
+               tds = div.getElementsByTagName( "td" );
+               isSupported = ( tds[ 0 ].offsetHeight === 0 );
+
+               tds[ 0 ].style.display = "";
+               tds[ 1 ].style.display = "none";
+
+               // Check if empty table cells still have offsetWidth/Height
+               // (IE <= 8 fail this test)
+               support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 );
+
+               // Figure out if the W3C box model works as expected
+               div.innerHTML = "";
+               div.style.width = div.style.paddingLeft = "1px";
+               jQuery.boxModel = support.boxModel = div.offsetWidth === 2;
+
+               if ( typeof div.style.zoom !== "undefined" ) {
+                       // Check if natively block-level elements act like inline-block
+                       // elements when setting their display to 'inline' and giving
+                       // them layout
+                       // (IE < 8 does this)
+                       div.style.display = "inline";
+                       div.style.zoom = 1;
+                       support.inlineBlockNeedsLayout = ( div.offsetWidth === 2 );
+
+                       // Check if elements with layout shrink-wrap their children
+                       // (IE 6 does this)
+                       div.style.display = "";
+                       div.innerHTML = "<div style='width:4px;'></div>";
+                       support.shrinkWrapBlocks = ( div.offsetWidth !== 2 );
+               }
+
+               div.style.cssText = ptlm + vb;
+               div.innerHTML = html;
+
+               outer = div.firstChild;
+               inner = outer.firstChild;
+               td = outer.nextSibling.firstChild.firstChild;
+
+               offsetSupport = {
+                       doesNotAddBorder: ( inner.offsetTop !== 5 ),
+                       doesAddBorderForTableAndCells: ( td.offsetTop === 5 )
+               };
+
+               inner.style.position = "fixed";
+               inner.style.top = "20px";
+
+               // safari subtracts parent border width here which is 5px
+               offsetSupport.fixedPosition = ( inner.offsetTop === 20 || inner.offsetTop === 15 );
+               inner.style.position = inner.style.top = "";
+
+               outer.style.overflow = "hidden";
+               outer.style.position = "relative";
+
+               offsetSupport.subtractsBorderForOverflowNotVisible = ( inner.offsetTop === -5 );
+               offsetSupport.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== conMarginTop );
+
+               body.removeChild( container );
+               div  = container = null;
+
+               jQuery.extend( support, offsetSupport );
+       });
+
+       return support;
+})();
+
+
+
+
+var rbrace = /^(?:\{.*\}|\[.*\])$/,
+       rmultiDash = /([A-Z])/g;
+
+jQuery.extend({
+       cache: {},
+
+       // Please use with caution
+       uuid: 0,
+
+       // Unique for each copy of jQuery on the page
+       // Non-digits removed to match rinlinejQuery
+       expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ),
+
+       // The following elements throw uncatchable exceptions if you
+       // attempt to add expando properties to them.
+       noData: {
+               "embed": true,
+               // Ban all objects except for Flash (which handle expandos)
+               "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
+               "applet": true
+       },
+
+       hasData: function( elem ) {
+               elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];
+               return !!elem && !isEmptyDataObject( elem );
+       },
+
+       data: function( elem, name, data, pvt /* Internal Use Only */ ) {
+               if ( !jQuery.acceptData( elem ) ) {
+                       return;
+               }
+
+               var privateCache, thisCache, ret,
+                       internalKey = jQuery.expando,
+                       getByName = typeof name === "string",
+
+                       // We have to handle DOM nodes and JS objects differently because IE6-7
+                       // can't GC object references properly across the DOM-JS boundary
+                       isNode = elem.nodeType,
+
+                       // Only DOM nodes need the global jQuery cache; JS object data is
+                       // attached directly to the object so GC can occur automatically
+                       cache = isNode ? jQuery.cache : elem,
+
+                       // Only defining an ID for JS objects if its cache already exists allows
+                       // the code to shortcut on the same path as a DOM node with no cache
+                       id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey,
+                       isEvents = name === "events";
+
+               // Avoid doing any more work than we need to when trying to get data on an
+               // object that has no data at all
+               if ( (!id || !cache[id] || (!isEvents && !pvt && !cache[id].data)) && getByName && data === undefined ) {
+                       return;
+               }
+
+               if ( !id ) {
+                       // Only DOM nodes need a new unique ID for each element since their data
+                       // ends up in the global cache
+                       if ( isNode ) {
+                               elem[ internalKey ] = id = ++jQuery.uuid;
+                       } else {
+                               id = internalKey;
+                       }
+               }
+
+               if ( !cache[ id ] ) {
+                       cache[ id ] = {};
+
+                       // Avoids exposing jQuery metadata on plain JS objects when the object
+                       // is serialized using JSON.stringify
+                       if ( !isNode ) {
+                               cache[ id ].toJSON = jQuery.noop;
+                       }
+               }
+
+               // An object can be passed to jQuery.data instead of a key/value pair; this gets
+               // shallow copied over onto the existing cache
+               if ( typeof name === "object" || typeof name === "function" ) {
+                       if ( pvt ) {
+                               cache[ id ] = jQuery.extend( cache[ id ], name );
+                       } else {
+                               cache[ id ].data = jQuery.extend( cache[ id ].data, name );
+                       }
+               }
+
+               privateCache = thisCache = cache[ id ];
+
+               // jQuery data() is stored in a separate object inside the object's internal data
+               // cache in order to avoid key collisions between internal data and user-defined
+               // data.
+               if ( !pvt ) {
+                       if ( !thisCache.data ) {
+                               thisCache.data = {};
+                       }
+
+                       thisCache = thisCache.data;
+               }
+
+               if ( data !== undefined ) {
+                       thisCache[ jQuery.camelCase( name ) ] = data;
+               }
+
+               // Users should not attempt to inspect the internal events object using jQuery.data,
+               // it is undocumented and subject to change. But does anyone listen? No.
+               if ( isEvents && !thisCache[ name ] ) {
+                       return privateCache.events;
+               }
+
+               // Check for both converted-to-camel and non-converted data property names
+               // If a data property was specified
+               if ( getByName ) {
+
+                       // First Try to find as-is property data
+                       ret = thisCache[ name ];
+
+                       // Test for null|undefined property data
+                       if ( ret == null ) {
+
+                               // Try to find the camelCased property
+                               ret = thisCache[ jQuery.camelCase( name ) ];
+                       }
+               } else {
+                       ret = thisCache;
+               }
+
+               return ret;
+       },
+
+       removeData: function( elem, name, pvt /* Internal Use Only */ ) {
+               if ( !jQuery.acceptData( elem ) ) {
+                       return;
+               }
+
+               var thisCache, i, l,
+
+                       // Reference to internal data cache key
+                       internalKey = jQuery.expando,
+
+                       isNode = elem.nodeType,
+
+                       // See jQuery.data for more information
+                       cache = isNode ? jQuery.cache : elem,
+
+                       // See jQuery.data for more information
+                       id = isNode ? elem[ internalKey ] : internalKey;
+
+               // If there is already no cache entry for this object, there is no
+               // purpose in continuing
+               if ( !cache[ id ] ) {
+                       return;
+               }
+
+               if ( name ) {
+
+                       thisCache = pvt ? cache[ id ] : cache[ id ].data;
+
+                       if ( thisCache ) {
+
+                               // Support array or space separated string names for data keys
+                               if ( !jQuery.isArray( name ) ) {
+
+                                       // try the string as a key before any manipulation
+                                       if ( name in thisCache ) {
+                                               name = [ name ];
+                                       } else {
+
+                                               // split the camel cased version by spaces unless a key with the spaces exists
+                                               name = jQuery.camelCase( name );
+                                               if ( name in thisCache ) {
+                                                       name = [ name ];
+                                               } else {
+                                                       name = name.split( " " );
+                                               }
+                                       }
+                               }
+
+                               for ( i = 0, l = name.length; i < l; i++ ) {
+                                       delete thisCache[ name[i] ];
+                               }
+
+                               // If there is no data left in the cache, we want to continue
+                               // and let the cache object itself get destroyed
+                               if ( !( pvt ? isEmptyDataObject : jQuery.isEmptyObject )( thisCache ) ) {
+                                       return;
+                               }
+                       }
+               }
+
+               // See jQuery.data for more information
+               if ( !pvt ) {
+                       delete cache[ id ].data;
+
+                       // Don't destroy the parent cache unless the internal data object
+                       // had been the only thing left in it
+                       if ( !isEmptyDataObject(cache[ id ]) ) {
+                               return;
+                       }
+               }
+
+               // Browsers that fail expando deletion also refuse to delete expandos on
+               // the window, but it will allow it on all other JS objects; other browsers
+               // don't care
+               // Ensure that `cache` is not a window object #10080
+               if ( jQuery.support.deleteExpando || !cache.setInterval ) {
+                       delete cache[ id ];
+               } else {
+                       cache[ id ] = null;
+               }
+
+               // We destroyed the cache and need to eliminate the expando on the node to avoid
+               // false lookups in the cache for entries that no longer exist
+               if ( isNode ) {
+                       // IE does not allow us to delete expando properties from nodes,
+                       // nor does it have a removeAttribute function on Document nodes;
+                       // we must handle all of these cases
+                       if ( jQuery.support.deleteExpando ) {
+                               delete elem[ internalKey ];
+                       } else if ( elem.removeAttribute ) {
+                               elem.removeAttribute( internalKey );
+                       } else {
+                               elem[ internalKey ] = null;
+                       }
+               }
+       },
+
+       // For internal use only.
+       _data: function( elem, name, data ) {
+               return jQuery.data( elem, name, data, true );
+       },
+
+       // A method for determining if a DOM node can handle the data expando
+       acceptData: function( elem ) {
+               if ( elem.nodeName ) {
+                       var match = jQuery.noData[ elem.nodeName.toLowerCase() ];
+
+                       if ( match ) {
+                               return !(match === true || elem.getAttribute("classid") !== match);
+                       }
+               }
+
+               return true;
+       }
+});
+
+jQuery.fn.extend({
+       data: function( key, value ) {
+               var parts, attr, name,
+                       data = null;
+
+               if ( typeof key === "undefined" ) {
+                       if ( this.length ) {
+                               data = jQuery.data( this[0] );
+
+                               if ( this[0].nodeType === 1 && !jQuery._data( this[0], "parsedAttrs" ) ) {
+                                       attr = this[0].attributes;
+                                       for ( var i = 0, l = attr.length; i < l; i++ ) {
+                                               name = attr[i].name;
+
+                                               if ( name.indexOf( "data-" ) === 0 ) {
+                                                       name = jQuery.camelCase( name.substring(5) );
+
+                                                       dataAttr( this[0], name, data[ name ] );
+                                               }
+                                       }
+                                       jQuery._data( this[0], "parsedAttrs", true );
+                               }
+                       }
+
+                       return data;
+
+               } else if ( typeof key === "object" ) {
+                       return this.each(function() {
+                               jQuery.data( this, key );
+                       });
+               }
+
+               parts = key.split(".");
+               parts[1] = parts[1] ? "." + parts[1] : "";
+
+               if ( value === undefined ) {
+                       data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
+
+                       // Try to fetch any internally stored data first
+                       if ( data === undefined && this.length ) {
+                               data = jQuery.data( this[0], key );
+                               data = dataAttr( this[0], key, data );
+                       }
+
+                       return data === undefined && parts[1] ?
+                               this.data( parts[0] ) :
+                               data;
+
+               } else {
+                       return this.each(function() {
+                               var self = jQuery( this ),
+                                       args = [ parts[0], value ];
+
+                               self.triggerHandler( "setData" + parts[1] + "!", args );
+                               jQuery.data( this, key, value );
+                               self.triggerHandler( "changeData" + parts[1] + "!", args );
+                       });
+               }
+       },
+
+       removeData: function( key ) {
+               return this.each(function() {
+                       jQuery.removeData( this, key );
+               });
+       }
+});
+
+function dataAttr( elem, key, data ) {
+       // If nothing was found internally, try to fetch any
+       // data from the HTML5 data-* attribute
+       if ( data === undefined && elem.nodeType === 1 ) {
+
+               var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
+
+               data = elem.getAttribute( name );
+
+               if ( typeof data === "string" ) {
+                       try {
+                               data = data === "true" ? true :
+                               data === "false" ? false :
+                               data === "null" ? null :
+                               jQuery.isNumeric( data ) ? parseFloat( data ) :
+                                       rbrace.test( data ) ? jQuery.parseJSON( data ) :
+                                       data;
+                       } catch( e ) {}
+
+                       // Make sure we set the data so it isn't changed later
+                       jQuery.data( elem, key, data );
+
+               } else {
+                       data = undefined;
+               }
+       }
+
+       return data;
+}
+
+// checks a cache object for emptiness
+function isEmptyDataObject( obj ) {
+       for ( var name in obj ) {
+
+               // if the public data object is empty, the private is still empty
+               if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {
+                       continue;
+               }
+               if ( name !== "toJSON" ) {
+                       return false;
+               }
+       }
+
+       return true;
+}
+
+
+
+
+function handleQueueMarkDefer( elem, type, src ) {
+       var deferDataKey = type + "defer",
+               queueDataKey = type + "queue",
+               markDataKey = type + "mark",
+               defer = jQuery._data( elem, deferDataKey );
+       if ( defer &&
+               ( src === "queue" || !jQuery._data(elem, queueDataKey) ) &&
+               ( src === "mark" || !jQuery._data(elem, markDataKey) ) ) {
+               // Give room for hard-coded callbacks to fire first
+               // and eventually mark/queue something else on the element
+               setTimeout( function() {
+                       if ( !jQuery._data( elem, queueDataKey ) &&
+                               !jQuery._data( elem, markDataKey ) ) {
+                               jQuery.removeData( elem, deferDataKey, true );
+                               defer.fire();
+                       }
+               }, 0 );
+       }
+}
+
+jQuery.extend({
+
+       _mark: function( elem, type ) {
+               if ( elem ) {
+                       type = ( type || "fx" ) + "mark";
+                       jQuery._data( elem, type, (jQuery._data( elem, type ) || 0) + 1 );
+               }
+       },
+
+       _unmark: function( force, elem, type ) {
+               if ( force !== true ) {
+                       type = elem;
+                       elem = force;
+                       force = false;
+               }
+               if ( elem ) {
+                       type = type || "fx";
+                       var key = type + "mark",
+                               count = force ? 0 : ( (jQuery._data( elem, key ) || 1) - 1 );
+                       if ( count ) {
+                               jQuery._data( elem, key, count );
+                       } else {
+                               jQuery.removeData( elem, key, true );
+                               handleQueueMarkDefer( elem, type, "mark" );
+                       }
+               }
+       },
+
+       queue: function( elem, type, data ) {
+               var q;
+               if ( elem ) {
+                       type = ( type || "fx" ) + "queue";
+                       q = jQuery._data( elem, type );
+
+                       // Speed up dequeue by getting out quickly if this is just a lookup
+                       if ( data ) {
+                               if ( !q || jQuery.isArray(data) ) {
+                                       q = jQuery._data( elem, type, jQuery.makeArray(data) );
+                               } else {
+                                       q.push( data );
+                               }
+                       }
+                       return q || [];
+               }
+       },
+
+       dequeue: function( elem, type ) {
+               type = type || "fx";
+
+               var queue = jQuery.queue( elem, type ),
+                       fn = queue.shift(),
+                       hooks = {};
+
+               // If the fx queue is dequeued, always remove the progress sentinel
+               if ( fn === "inprogress" ) {
+                       fn = queue.shift();
+               }
+
+               if ( fn ) {
+                       // Add a progress sentinel to prevent the fx queue from being
+                       // automatically dequeued
+                       if ( type === "fx" ) {
+                               queue.unshift( "inprogress" );
+                       }
+
+                       jQuery._data( elem, type + ".run", hooks );
+                       fn.call( elem, function() {
+                               jQuery.dequeue( elem, type );
+                       }, hooks );
+               }
+
+               if ( !queue.length ) {
+                       jQuery.removeData( elem, type + "queue " + type + ".run", true );
+                       handleQueueMarkDefer( elem, type, "queue" );
+               }
+       }
+});
+
+jQuery.fn.extend({
+       queue: function( type, data ) {
+               if ( typeof type !== "string" ) {
+                       data = type;
+                       type = "fx";
+               }
+
+               if ( data === undefined ) {
+                       return jQuery.queue( this[0], type );
+               }
+               return this.each(function() {
+                       var queue = jQuery.queue( this, type, data );
+
+                       if ( type === "fx" && queue[0] !== "inprogress" ) {
+                               jQuery.dequeue( this, type );
+                       }
+               });
+       },
+       dequeue: function( type ) {
+               return this.each(function() {
+                       jQuery.dequeue( this, type );
+               });
+       },
+       // Based off of the plugin by Clint Helfers, with permission.
+       // http://blindsignals.com/index.php/2009/07/jquery-delay/
+       delay: function( time, type ) {
+               time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
+               type = type || "fx";
+
+               return this.queue( type, function( next, hooks ) {
+                       var timeout = setTimeout( next, time );
+                       hooks.stop = function() {
+                               clearTimeout( timeout );
+                       };
+               });
+       },
+       clearQueue: function( type ) {
+               return this.queue( type || "fx", [] );
+       },
+       // Get a promise resolved when queues of a certain type
+       // are emptied (fx is the type by default)
+       promise: function( type, object ) {
+               if ( typeof type !== "string" ) {
+                       object = type;
+                       type = undefined;
+               }
+               type = type || "fx";
+               var defer = jQuery.Deferred(),
+                       elements = this,
+                       i = elements.length,
+                       count = 1,
+                       deferDataKey = type + "defer",
+                       queueDataKey = type + "queue",
+                       markDataKey = type + "mark",
+                       tmp;
+               function resolve() {
+                       if ( !( --count ) ) {
+                               defer.resolveWith( elements, [ elements ] );
+                       }
+               }
+               while( i-- ) {
+                       if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) ||
+                                       ( jQuery.data( elements[ i ], queueDataKey, undefined, true ) ||
+                                               jQuery.data( elements[ i ], markDataKey, undefined, true ) ) &&
+                                       jQuery.data( elements[ i ], deferDataKey, jQuery.Callbacks( "once memory" ), true ) )) {
+                               count++;
+                               tmp.add( resolve );
+                       }
+               }
+               resolve();
+               return defer.promise();
+       }
+});
+
+
+
+
+var rclass = /[\n\t\r]/g,
+       rspace = /\s+/,
+       rreturn = /\r/g,
+       rtype = /^(?:button|input)$/i,
+       rfocusable = /^(?:button|input|object|select|textarea)$/i,
+       rclickable = /^a(?:rea)?$/i,
+       rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
+       getSetAttribute = jQuery.support.getSetAttribute,
+       nodeHook, boolHook, fixSpecified;
+
+jQuery.fn.extend({
+       attr: function( name, value ) {
+               return jQuery.access( this, name, value, true, jQuery.attr );
+       },
+
+       removeAttr: function( name ) {
+               return this.each(function() {
+                       jQuery.removeAttr( this, name );
+               });
+       },
+
+       prop: function( name, value ) {
+               return jQuery.access( this, name, value, true, jQuery.prop );
+       },
+
+       removeProp: function( name ) {
+               name = jQuery.propFix[ name ] || name;
+               return this.each(function() {
+                       // try/catch handles cases where IE balks (such as removing a property on window)
+                       try {
+                               this[ name ] = undefined;
+                               delete this[ name ];
+                       } catch( e ) {}
+               });
+       },
+
+       addClass: function( value ) {
+               var classNames, i, l, elem,
+                       setClass, c, cl;
+
+               if ( jQuery.isFunction( value ) ) {
+                       return this.each(function( j ) {
+                               jQuery( this ).addClass( value.call(this, j, this.className) );
+                       });
+               }
+
+               if ( value && typeof value === "string" ) {
+                       classNames = value.split( rspace );
+
+                       for ( i = 0, l = this.length; i < l; i++ ) {
+                               elem = this[ i ];
+
+                               if ( elem.nodeType === 1 ) {
+                                       if ( !elem.className && classNames.length === 1 ) {
+                                               elem.className = value;
+
+                                       } else {
+                                               setClass = " " + elem.className + " ";
+
+                                               for ( c = 0, cl = classNames.length; c < cl; c++ ) {
+                                                       if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) {
+                                                               setClass += classNames[ c ] + " ";
+                                                       }
+                                               }
+                                               elem.className = jQuery.trim( setClass );
+                                       }
+                               }
+                       }
+               }
+
+               return this;
+       },
+
+       removeClass: function( value ) {
+               var classNames, i, l, elem, className, c, cl;
+
+               if ( jQuery.isFunction( value ) ) {
+                       return this.each(function( j ) {
+                               jQuery( this ).removeClass( value.call(this, j, this.className) );
+                       });
+               }
+
+               if ( (value && typeof value === "string") || value === undefined ) {
+                       classNames = ( value || "" ).split( rspace );
+
+                       for ( i = 0, l = this.length; i < l; i++ ) {
+                               elem = this[ i ];
+
+                               if ( elem.nodeType === 1 && elem.className ) {
+                                       if ( value ) {
+                                               className = (" " + elem.className + " ").replace( rclass, " " );
+                                               for ( c = 0, cl = classNames.length; c < cl; c++ ) {
+                                                       className = className.replace(" " + classNames[ c ] + " ", " ");
+                                               }
+                                               elem.className = jQuery.trim( className );
+
+                                       } else {
+                                               elem.className = "";
+                                       }
+                               }
+                       }
+               }
+
+               return this;
+       },
+
+       toggleClass: function( value, stateVal ) {
+               var type = typeof value,
+                       isBool = typeof stateVal === "boolean";
+
+               if ( jQuery.isFunction( value ) ) {
+                       return this.each(function( i ) {
+                               jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
+                       });
+               }
+
+               return this.each(function() {
+                       if ( type === "string" ) {
+                               // toggle individual class names
+                               var className,
+                                       i = 0,
+                                       self = jQuery( this ),
+                                       state = stateVal,
+                                       classNames = value.split( rspace );
+
+                               while ( (className = classNames[ i++ ]) ) {
+                                       // check each className given, space seperated list
+                                       state = isBool ? state : !self.hasClass( className );
+                                       self[ state ? "addClass" : "removeClass" ]( className );
+                               }
+
+                       } else if ( type === "undefined" || type === "boolean" ) {
+                               if ( this.className ) {
+                                       // store className if set
+                                       jQuery._data( this, "__className__", this.className );
+                               }
+
+                               // toggle whole className
+                               this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";
+                       }
+               });
+       },
+
+       hasClass: function( selector ) {
+               var className = " " + selector + " ",
+                       i = 0,
+                       l = this.length;
+               for ( ; i < l; i++ ) {
+                       if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
+                               return true;
+                       }
+               }
+
+               return false;
+       },
+
+       val: function( value ) {
+               var hooks, ret, isFunction,
+                       elem = this[0];
+
+               if ( !arguments.length ) {
+                       if ( elem ) {
+                               hooks = jQuery.valHooks[ elem.nodeName.toLowerCase() ] || jQuery.valHooks[ elem.type ];
+
+                               if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
+                                       return ret;
+                               }
+
+                               ret = elem.value;
+
+                               return typeof ret === "string" ?
+                                       // handle most common string cases
+                                       ret.replace(rreturn, "") :
+                                       // handle cases where value is null/undef or number
+                                       ret == null ? "" : ret;
+                       }
+
+                       return;
+               }
+
+               isFunction = jQuery.isFunction( value );
+
+               return this.each(function( i ) {
+                       var self = jQuery(this), val;
+
+                       if ( this.nodeType !== 1 ) {
+                               return;
+                       }
+
+                       if ( isFunction ) {
+                               val = value.call( this, i, self.val() );
+                       } else {
+                               val = value;
+                       }
+
+                       // Treat null/undefined as ""; convert numbers to string
+                       if ( val == null ) {
+                               val = "";
+                       } else if ( typeof val === "number" ) {
+                               val += "";
+                       } else if ( jQuery.isArray( val ) ) {
+                               val = jQuery.map(val, function ( value ) {
+                                       return value == null ? "" : value + "";
+                               });
+                       }
+
+                       hooks = jQuery.valHooks[ this.nodeName.toLowerCase() ] || jQuery.valHooks[ this.type ];
+
+                       // If set returns undefined, fall back to normal setting
+                       if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
+                               this.value = val;
+                       }
+               });
+       }
+});
+
+jQuery.extend({
+       valHooks: {
+               option: {
+                       get: function( elem ) {
+                               // attributes.value is undefined in Blackberry 4.7 but
+                               // uses .value. See #6932
+                               var val = elem.attributes.value;
+                               return !val || val.specified ? elem.value : elem.text;
+                       }
+               },
+               select: {
+                       get: function( elem ) {
+                               var value, i, max, option,
+                                       index = elem.selectedIndex,
+                                       values = [],
+                                       options = elem.options,
+                                       one = elem.type === "select-one";
+
+                               // Nothing was selected
+                               if ( index < 0 ) {
+                                       return null;
+                               }
+
+                               // Loop through all the selected options
+                               i = one ? index : 0;
+                               max = one ? index + 1 : options.length;
+                               for ( ; i < max; i++ ) {
+                                       option = options[ i ];
+
+                                       // Don't return options that are disabled or in a disabled optgroup
+                                       if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) &&
+                                                       (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
+
+                                               // Get the specific value for the option
+                                               value = jQuery( option ).val();
+
+                                               // We don't need an array for one selects
+                                               if ( one ) {
+                                                       return value;
+                                               }
+
+                                               // Multi-Selects return an array
+                                               values.push( value );
+                                       }
+                               }
+
+                               // Fixes Bug #2551 -- select.val() broken in IE after form.reset()
+                               if ( one && !values.length && options.length ) {
+                                       return jQuery( options[ index ] ).val();
+                               }
+
+                               return values;
+                       },
+
+                       set: function( elem, value ) {
+                               var values = jQuery.makeArray( value );
+
+                               jQuery(elem).find("option").each(function() {
+                                       this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
+                               });
+
+                               if ( !values.length ) {
+                                       elem.selectedIndex = -1;
+                               }
+                               return values;
+                       }
+               }
+       },
+
+       attrFn: {
+               val: true,
+               css: true,
+               html: true,
+               text: true,
+               data: true,
+               width: true,
+               height: true,
+               offset: true
+       },
+
+       attr: function( elem, name, value, pass ) {
+               var ret, hooks, notxml,
+                       nType = elem.nodeType;
+
+               // don't get/set attributes on text, comment and attribute nodes
+               if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
+                       return;
+               }
+
+               if ( pass && name in jQuery.attrFn ) {
+                       return jQuery( elem )[ name ]( value );
+               }
+
+               // Fallback to prop when attributes are not supported
+               if ( typeof elem.getAttribute === "undefined" ) {
+                       return jQuery.prop( elem, name, value );
+               }
+
+               notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
+
+               // All attributes are lowercase
+               // Grab necessary hook if one is defined
+               if ( notxml ) {
+                       name = name.toLowerCase();
+                       hooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook );
+               }
+
+               if ( value !== undefined ) {
+
+                       if ( value === null ) {
+                               jQuery.removeAttr( elem, name );
+                               return;
+
+                       } else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) {
+                               return ret;
+
+                       } else {
+                               elem.setAttribute( name, "" + value );
+                               return value;
+                       }
+
+               } else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) {
+                       return ret;
+
+               } else {
+
+                       ret = elem.getAttribute( name );
+
+                       // Non-existent attributes return null, we normalize to undefined
+                       return ret === null ?
+                               undefined :
+                               ret;
+               }
+       },
+
+       removeAttr: function( elem, value ) {
+               var propName, attrNames, name, l,
+                       i = 0;
+
+               if ( value && elem.nodeType === 1 ) {
+                       attrNames = value.toLowerCase().split( rspace );
+                       l = attrNames.length;
+
+                       for ( ; i < l; i++ ) {
+                               name = attrNames[ i ];
+
+                               if ( name ) {
+                                       propName = jQuery.propFix[ name ] || name;
+
+                                       // See #9699 for explanation of this approach (setting first, then removal)
+                                       jQuery.attr( elem, name, "" );
+                                       elem.removeAttribute( getSetAttribute ? name : propName );
+
+                                       // Set corresponding property to false for boolean attributes
+                                       if ( rboolean.test( name ) && propName in elem ) {
+                                               elem[ propName ] = false;
+                                       }
+                               }
+                       }
+               }
+       },
+
+       attrHooks: {
+               type: {
+                       set: function( elem, value ) {
+                               // We can't allow the type property to be changed (since it causes problems in IE)
+                               if ( rtype.test( elem.nodeName ) && elem.parentNode ) {
+                                       jQuery.error( "type property can't be changed" );
+                               } else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
+                                       // Setting the type on a radio button after the value resets the value in IE6-9
+                                       // Reset value to it's default in case type is set after value
+                                       // This is for element creation
+                                       var val = elem.value;
+                                       elem.setAttribute( "type", value );
+                                       if ( val ) {
+                                               elem.value = val;
+                                       }
+                                       return value;
+                               }
+                       }
+               },
+               // Use the value property for back compat
+               // Use the nodeHook for button elements in IE6/7 (#1954)
+               value: {
+                       get: function( elem, name ) {
+                               if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
+                                       return nodeHook.get( elem, name );
+                               }
+                               return name in elem ?
+                                       elem.value :
+                                       null;
+                       },
+                       set: function( elem, value, name ) {
+                               if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
+                                       return nodeHook.set( elem, value, name );
+                               }
+                               // Does not return so that setAttribute is also used
+                               elem.value = value;
+                       }
+               }
+       },
+
+       propFix: {
+               tabindex: "tabIndex",
+               readonly: "readOnly",
+               "for": "htmlFor",
+               "class": "className",
+               maxlength: "maxLength",
+               cellspacing: "cellSpacing",
+               cellpadding: "cellPadding",
+               rowspan: "rowSpan",
+               colspan: "colSpan",
+               usemap: "useMap",
+               frameborder: "frameBorder",
+               contenteditable: "contentEditable"
+       },
+
+       prop: function( elem, name, value ) {
+               var ret, hooks, notxml,
+                       nType = elem.nodeType;
+
+               // don't get/set properties on text, comment and attribute nodes
+               if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
+                       return;
+               }
+
+               notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
+
+               if ( notxml ) {
+                       // Fix name and attach hooks
+                       name = jQuery.propFix[ name ] || name;
+                       hooks = jQuery.propHooks[ name ];
+               }
+
+               if ( value !== undefined ) {
+                       if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
+                               return ret;
+
+                       } else {
+                               return ( elem[ name ] = value );
+                       }
+
+               } else {
+                       if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
+                               return ret;
+
+                       } else {
+                               return elem[ name ];
+                       }
+               }
+       },
+
+       propHooks: {
+               tabIndex: {
+                       get: function( elem ) {
+                               // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
+                               // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
+                               var attributeNode = elem.getAttributeNode("tabindex");
+
+                               return attributeNode && attributeNode.specified ?
+                                       parseInt( attributeNode.value, 10 ) :
+                                       rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
+                                               0 :
+                                               undefined;
+                       }
+               }
+       }
+});
+
+// Add the tabIndex propHook to attrHooks for back-compat (different case is intentional)
+jQuery.attrHooks.tabindex = jQuery.propHooks.tabIndex;
+
+// Hook for boolean attributes
+boolHook = {
+       get: function( elem, name ) {
+               // Align boolean attributes with corresponding properties
+               // Fall back to attribute presence where some booleans are not supported
+               var attrNode,
+                       property = jQuery.prop( elem, name );
+               return property === true || typeof property !== "boolean" && ( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ?
+                       name.toLowerCase() :
+                       undefined;
+       },
+       set: function( elem, value, name ) {
+               var propName;
+               if ( value === false ) {
+                       // Remove boolean attributes when set to false
+                       jQuery.removeAttr( elem, name );
+               } else {
+                       // value is true since we know at this point it's type boolean and not false
+                       // Set boolean attributes to the same name and set the DOM property
+                       propName = jQuery.propFix[ name ] || name;
+                       if ( propName in elem ) {
+                               // Only set the IDL specifically if it already exists on the element
+                               elem[ propName ] = true;
+                       }
+
+                       elem.setAttribute( name, name.toLowerCase() );
+               }
+               return name;
+       }
+};
+
+// IE6/7 do not support getting/setting some attributes with get/setAttribute
+if ( !getSetAttribute ) {
+
+       fixSpecified = {
+               name: true,
+               id: true
+       };
+
+       // Use this for any attribute in IE6/7
+       // This fixes almost every IE6/7 issue
+       nodeHook = jQuery.valHooks.button = {
+               get: function( elem, name ) {
+                       var ret;
+                       ret = elem.getAttributeNode( name );
+                       return ret && ( fixSpecified[ name ] ? ret.nodeValue !== "" : ret.specified ) ?
+                               ret.nodeValue :
+                               undefined;
+               },
+               set: function( elem, value, name ) {
+                       // Set the existing or create a new attribute node
+                       var ret = elem.getAttributeNode( name );
+                       if ( !ret ) {
+                               ret = document.createAttribute( name );
+                               elem.setAttributeNode( ret );
+                       }
+                       return ( ret.nodeValue = value + "" );
+               }
+       };
+
+       // Apply the nodeHook to tabindex
+       jQuery.attrHooks.tabindex.set = nodeHook.set;
+
+       // Set width and height to auto instead of 0 on empty string( Bug #8150 )
+       // This is for removals
+       jQuery.each([ "width", "height" ], function( i, name ) {
+               jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
+                       set: function( elem, value ) {
+                               if ( value === "" ) {
+                                       elem.setAttribute( name, "auto" );
+                                       return value;
+                               }
+                       }
+               });
+       });
+
+       // Set contenteditable to false on removals(#10429)
+       // Setting to empty string throws an error as an invalid value
+       jQuery.attrHooks.contenteditable = {
+               get: nodeHook.get,
+               set: function( elem, value, name ) {
+                       if ( value === "" ) {
+                               value = "false";
+                       }
+                       nodeHook.set( elem, value, name );
+               }
+       };
+}
+
+
+// Some attributes require a special call on IE
+if ( !jQuery.support.hrefNormalized ) {
+       jQuery.each([ "href", "src", "width", "height" ], function( i, name ) {
+               jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
+                       get: function( elem ) {
+                               var ret = elem.getAttribute( name, 2 );
+                               return ret === null ? undefined : ret;
+                       }
+               });
+       });
+}
+
+if ( !jQuery.support.style ) {
+       jQuery.attrHooks.style = {
+               get: function( elem ) {
+                       // Return undefined in the case of empty string
+                       // Normalize to lowercase since IE uppercases css property names
+                       return elem.style.cssText.toLowerCase() || undefined;
+               },
+               set: function( elem, value ) {
+                       return ( elem.style.cssText = "" + value );
+               }
+       };
+}
+
+// Safari mis-reports the default selected property of an option
+// Accessing the parent's selectedIndex property fixes it
+if ( !jQuery.support.optSelected ) {
+       jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {
+               get: function( elem ) {
+                       var parent = elem.parentNode;
+
+                       if ( parent ) {
+                               parent.selectedIndex;
+
+                               // Make sure that it also works with optgroups, see #5701
+                               if ( parent.parentNode ) {
+                                       parent.parentNode.selectedIndex;
+                               }
+                       }
+                       return null;
+               }
+       });
+}
+
+// IE6/7 call enctype encoding
+if ( !jQuery.support.enctype ) {
+       jQuery.propFix.enctype = "encoding";
+}
+
+// Radios and checkboxes getter/setter
+if ( !jQuery.support.checkOn ) {
+       jQuery.each([ "radio", "checkbox" ], function() {
+               jQuery.valHooks[ this ] = {
+                       get: function( elem ) {
+                               // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
+                               return elem.getAttribute("value") === null ? "on" : elem.value;
+                       }
+               };
+       });
+}
+jQuery.each([ "radio", "checkbox" ], function() {
+       jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {
+               set: function( elem, value ) {
+                       if ( jQuery.isArray( value ) ) {
+                               return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
+                       }
+               }
+       });
+});
+
+
+
+
+var rformElems = /^(?:textarea|input|select)$/i,
+       rtypenamespace = /^([^\.]*)?(?:\.(.+))?$/,
+       rhoverHack = /\bhover(\.\S+)?\b/,
+       rkeyEvent = /^key/,
+       rmouseEvent = /^(?:mouse|contextmenu)|click/,
+       rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
+       rquickIs = /^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,
+       quickParse = function( selector ) {
+               var quick = rquickIs.exec( selector );
+               if ( quick ) {
+                       //   0  1    2   3
+                       // [ _, tag, id, class ]
+                       quick[1] = ( quick[1] || "" ).toLowerCase();
+                       quick[3] = quick[3] && new RegExp( "(?:^|\\s)" + quick[3] + "(?:\\s|$)" );
+               }
+               return quick;
+       },
+       quickIs = function( elem, m ) {
+               var attrs = elem.attributes || {};
+               return (
+                       (!m[1] || elem.nodeName.toLowerCase() === m[1]) &&
+                       (!m[2] || (attrs.id || {}).value === m[2]) &&
+                       (!m[3] || m[3].test( (attrs[ "class" ] || {}).value ))
+               );
+       },
+       hoverHack = function( events ) {
+               return jQuery.event.special.hover ? events : events.replace( rhoverHack, "mouseenter$1 mouseleave$1" );
+       };
+
+/*
+ * Helper functions for managing events -- not part of the public interface.
+ * Props to Dean Edwards' addEvent library for many of the ideas.
+ */
+jQuery.event = {
+
+       add: function( elem, types, handler, data, selector ) {
+
+               var elemData, eventHandle, events,
+                       t, tns, type, namespaces, handleObj,
+                       handleObjIn, quick, handlers, special;
+
+               // Don't attach events to noData or text/comment nodes (allow plain objects tho)
+               if ( elem.nodeType === 3 || elem.nodeType === 8 || !types || !handler || !(elemData = jQuery._data( elem )) ) {
+                       return;
+               }
+
+               // Caller can pass in an object of custom data in lieu of the handler
+               if ( handler.handler ) {
+                       handleObjIn = handler;
+                       handler = handleObjIn.handler;
+               }
+
+               // Make sure that the handler has a unique ID, used to find/remove it later
+               if ( !handler.guid ) {
+                       handler.guid = jQuery.guid++;
+               }
+
+               // Init the element's event structure and main handler, if this is the first
+               events = elemData.events;
+               if ( !events ) {
+                       elemData.events = events = {};
+               }
+               eventHandle = elemData.handle;
+               if ( !eventHandle ) {
+                       elemData.handle = eventHandle = function( e ) {
+                               // Discard the second event of a jQuery.event.trigger() and
+                               // when an event is called after a page has unloaded
+                               return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ?
+                                       jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
+                                       undefined;
+                       };
+                       // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events
+                       eventHandle.elem = elem;
+               }
+
+               // Handle multiple events separated by a space
+               // jQuery(...).bind("mouseover mouseout", fn);
+               types = jQuery.trim( hoverHack(types) ).split( " " );
+               for ( t = 0; t < types.length; t++ ) {
+
+                       tns = rtypenamespace.exec( types[t] ) || [];
+                       type = tns[1];
+                       namespaces = ( tns[2] || "" ).split( "." ).sort();
+
+                       // If event changes its type, use the special event handlers for the changed type
+                       special = jQuery.event.special[ type ] || {};
+
+                       // If selector defined, determine special event api type, otherwise given type
+                       type = ( selector ? special.delegateType : special.bindType ) || type;
+
+                       // Update special based on newly reset type
+                       special = jQuery.event.special[ type ] || {};
+
+                       // handleObj is passed to all event handlers
+                       handleObj = jQuery.extend({
+                               type: type,
+                               origType: tns[1],
+                               data: data,
+                               handler: handler,
+                               guid: handler.guid,
+                               selector: selector,
+                               quick: quickParse( selector ),
+                               namespace: namespaces.join(".")
+                       }, handleObjIn );
+
+                       // Init the event handler queue if we're the first
+                       handlers = events[ type ];
+                       if ( !handlers ) {
+                               handlers = events[ type ] = [];
+                               handlers.delegateCount = 0;
+
+                               // Only use addEventListener/attachEvent if the special events handler returns false
+                               if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
+                                       // Bind the global event handler to the element
+                                       if ( elem.addEventListener ) {
+                                               elem.addEventListener( type, eventHandle, false );
+
+                                       } else if ( elem.attachEvent ) {
+                                               elem.attachEvent( "on" + type, eventHandle );
+                                       }
+                               }
+                       }
+
+                       if ( special.add ) {
+                               special.add.call( elem, handleObj );
+
+                               if ( !handleObj.handler.guid ) {
+                                       handleObj.handler.guid = handler.guid;
+                               }
+                       }
+
+                       // Add to the element's handler list, delegates in front
+                       if ( selector ) {
+                               handlers.splice( handlers.delegateCount++, 0, handleObj );
+                       } else {
+                               handlers.push( handleObj );
+                       }
+
+                       // Keep track of which events have ever been used, for event optimization
+                       jQuery.event.global[ type ] = true;
+               }
+
+               // Nullify elem to prevent memory leaks in IE
+               elem = null;
+       },
+
+       global: {},
+
+       // Detach an event or set of events from an element
+       remove: function( elem, types, handler, selector, mappedTypes ) {
+
+               var elemData = jQuery.hasData( elem ) && jQuery._data( elem ),
+                       t, tns, type, origType, namespaces, origCount,
+                       j, events, special, handle, eventType, handleObj;
+
+               if ( !elemData || !(events = elemData.events) ) {
+                       return;
+               }
+
+               // Once for each type.namespace in types; type may be omitted
+               types = jQuery.trim( hoverHack( types || "" ) ).split(" ");
+               for ( t = 0; t < types.length; t++ ) {
+                       tns = rtypenamespace.exec( types[t] ) || [];
+                       type = origType = tns[1];
+                       namespaces = tns[2];
+
+                       // Unbind all events (on this namespace, if provided) for the element
+                       if ( !type ) {
+                               for ( type in events ) {
+                                       jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
+                               }
+                               continue;
+                       }
+
+                       special = jQuery.event.special[ type ] || {};
+                       type = ( selector? special.delegateType : special.bindType ) || type;
+                       eventType = events[ type ] || [];
+                       origCount = eventType.length;
+                       namespaces = namespaces ? new RegExp("(^|\\.)" + namespaces.split(".").sort().join("\\.(?:.*\\.)?") + "(\\.|$)") : null;
+
+                       // Remove matching events
+                       for ( j = 0; j < eventType.length; j++ ) {
+                               handleObj = eventType[ j ];
+
+                               if ( ( mappedTypes || origType === handleObj.origType ) &&
+                                        ( !handler || handler.guid === handleObj.guid ) &&
+                                        ( !namespaces || namespaces.test( handleObj.namespace ) ) &&
+                                        ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
+                                       eventType.splice( j--, 1 );
+
+                                       if ( handleObj.selector ) {
+                                               eventType.delegateCount--;
+                                       }
+                                       if ( special.remove ) {
+                                               special.remove.call( elem, handleObj );
+                                       }
+                               }
+                       }
+
+                       // Remove generic event handler if we removed something and no more handlers exist
+                       // (avoids potential for endless recursion during removal of special event handlers)
+                       if ( eventType.length === 0 && origCount !== eventType.length ) {
+                               if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {
+                                       jQuery.removeEvent( elem, type, elemData.handle );
+                               }
+
+                               delete events[ type ];
+                       }
+               }
+
+               // Remove the expando if it's no longer used
+               if ( jQuery.isEmptyObject( events ) ) {
+                       handle = elemData.handle;
+                       if ( handle ) {
+                               handle.elem = null;
+                       }
+
+                       // removeData also checks for emptiness and clears the expando if empty
+                       // so use it instead of delete
+                       jQuery.removeData( elem, [ "events", "handle" ], true );
+               }
+       },
+
+       // Events that are safe to short-circuit if no handlers are attached.
+       // Native DOM events should not be added, they may have inline handlers.
+       customEvent: {
+               "getData": true,
+               "setData": true,
+               "changeData": true
+       },
+
+       trigger: function( event, data, elem, onlyHandlers ) {
+               // Don't do events on text and comment nodes
+               if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {
+                       return;
+               }
+
+               // Event object or event type
+               var type = event.type || event,
+                       namespaces = [],
+                       cache, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType;
+
+               // focus/blur morphs to focusin/out; ensure we're not firing them right now
+               if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
+                       return;
+               }
+
+               if ( type.indexOf( "!" ) >= 0 ) {
+                       // Exclusive events trigger only for the exact event (no namespaces)
+                       type = type.slice(0, -1);
+                       exclusive = true;
+               }
+
+               if ( type.indexOf( "." ) >= 0 ) {
+                       // Namespaced trigger; create a regexp to match event type in handle()
+                       namespaces = type.split(".");
+                       type = namespaces.shift();
+                       namespaces.sort();
+               }
+
+               if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) {
+                       // No jQuery handlers for this event type, and it can't have inline handlers
+                       return;
+               }
+
+               // Caller can pass in an Event, Object, or just an event type string
+               event = typeof event === "object" ?
+                       // jQuery.Event object
+                       event[ jQuery.expando ] ? event :
+                       // Object literal
+                       new jQuery.Event( type, event ) :
+                       // Just the event type (string)
+                       new jQuery.Event( type );
+
+               event.type = type;
+               event.isTrigger = true;
+               event.exclusive = exclusive;
+               event.namespace = namespaces.join( "." );
+               event.namespace_re = event.namespace? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)") : null;
+               ontype = type.indexOf( ":" ) < 0 ? "on" + type : "";
+
+               // Handle a global trigger
+               if ( !elem ) {
+
+                       // TODO: Stop taunting the data cache; remove global events and always attach to document
+                       cache = jQuery.cache;
+                       for ( i in cache ) {
+                               if ( cache[ i ].events && cache[ i ].events[ type ] ) {
+                                       jQuery.event.trigger( event, data, cache[ i ].handle.elem, true );
+                               }
+                       }
+                       return;
+               }
+
+               // Clean up the event in case it is being reused
+               event.result = undefined;
+               if ( !event.target ) {
+                       event.target = elem;
+               }
+
+               // Clone any incoming data and prepend the event, creating the handler arg list
+               data = data != null ? jQuery.makeArray( data ) : [];
+               data.unshift( event );
+
+               // Allow special events to draw outside the lines
+               special = jQuery.event.special[ type ] || {};
+               if ( special.trigger && special.trigger.apply( elem, data ) === false ) {
+                       return;
+               }
+
+               // Determine event propagation path in advance, per W3C events spec (#9951)
+               // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
+               eventPath = [[ elem, special.bindType || type ]];
+               if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
+
+                       bubbleType = special.delegateType || type;
+                       cur = rfocusMorph.test( bubbleType + type ) ? elem : elem.parentNode;
+                       old = null;
+                       for ( ; cur; cur = cur.parentNode ) {
+                               eventPath.push([ cur, bubbleType ]);
+                               old = cur;
+                       }
+
+                       // Only add window if we got to document (e.g., not plain obj or detached DOM)
+                       if ( old && old === elem.ownerDocument ) {
+                               eventPath.push([ old.defaultView || old.parentWindow || window, bubbleType ]);
+                       }
+               }
+
+               // Fire handlers on the event path
+               for ( i = 0; i < eventPath.length && !event.isPropagationStopped(); i++ ) {
+
+                       cur = eventPath[i][0];
+                       event.type = eventPath[i][1];
+
+                       handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" );
+                       if ( handle ) {
+                               handle.apply( cur, data );
+                       }
+                       // Note that this is a bare JS function and not a jQuery handler
+                       handle = ontype && cur[ ontype ];
+                       if ( handle && jQuery.acceptData( cur ) && handle.apply( cur, data ) === false ) {
+                               event.preventDefault();
+                       }
+               }
+               event.type = type;
+
+               // If nobody prevented the default action, do it now
+               if ( !onlyHandlers && !event.isDefaultPrevented() ) {
+
+                       if ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) &&
+                               !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) {
+
+                               // Call a native DOM method on the target with the same name name as the event.
+                               // Can't use an .isFunction() check here because IE6/7 fails that test.
+                               // Don't do default actions on window, that's where global variables be (#6170)
+                               // IE<9 dies on focus/blur to hidden element (#1486)
+                               if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {
+
+                                       // Don't re-trigger an onFOO event when we call its FOO() method
+                                       old = elem[ ontype ];
+
+                                       if ( old ) {
+                                               elem[ ontype ] = null;
+                                       }
+
+                                       // Prevent re-triggering of the same event, since we already bubbled it above
+                                       jQuery.event.triggered = type;
+                                       elem[ type ]();
+                                       jQuery.event.triggered = undefined;
+
+                                       if ( old ) {
+                                               elem[ ontype ] = old;
+                                       }
+                               }
+                       }
+               }
+
+               return event.result;
+       },
+
+       dispatch: function( event ) {
+
+               // Make a writable jQuery.Event from the native event object
+               event = jQuery.event.fix( event || window.event );
+
+               var handlers = ( (jQuery._data( this, "events" ) || {} )[ event.type ] || []),
+                       delegateCount = handlers.delegateCount,
+                       args = [].slice.call( arguments, 0 ),
+                       run_all = !event.exclusive && !event.namespace,
+                       handlerQueue = [],
+                       i, j, cur, jqcur, ret, selMatch, matched, matches, handleObj, sel, related;
+
+               // Use the fix-ed jQuery.Event rather than the (read-only) native event
+               args[0] = event;
+               event.delegateTarget = this;
+
+               // Determine handlers that should run if there are delegated events
+               // Avoid disabled elements in IE (#6911) and non-left-click bubbling in Firefox (#3861)
+               if ( delegateCount && !event.target.disabled && !(event.button && event.type === "click") ) {
+
+                       // Pregenerate a single jQuery object for reuse with .is()
+                       jqcur = jQuery(this);
+                       jqcur.context = this.ownerDocument || this;
+
+                       for ( cur = event.target; cur != this; cur = cur.parentNode || this ) {
+                               selMatch = {};
+                               matches = [];
+                               jqcur[0] = cur;
+                               for ( i = 0; i < delegateCount; i++ ) {
+                                       handleObj = handlers[ i ];
+                                       sel = handleObj.selector;
+
+                                       if ( selMatch[ sel ] === undefined ) {
+                                               selMatch[ sel ] = (
+                                                       handleObj.quick ? quickIs( cur, handleObj.quick ) : jqcur.is( sel )
+                                               );
+                                       }
+                                       if ( selMatch[ sel ] ) {
+                                               matches.push( handleObj );
+                                       }
+                               }
+                               if ( matches.length ) {
+                                       handlerQueue.push({ elem: cur, matches: matches });
+                               }
+                       }
+               }
+
+               // Add the remaining (directly-bound) handlers
+               if ( handlers.length > delegateCount ) {
+                       handlerQueue.push({ elem: this, matches: handlers.slice( delegateCount ) });
+               }
+
+               // Run delegates first; they may want to stop propagation beneath us
+               for ( i = 0; i < handlerQueue.length && !event.isPropagationStopped(); i++ ) {
+                       matched = handlerQueue[ i ];
+                       event.currentTarget = matched.elem;
+
+                       for ( j = 0; j < matched.matches.length && !event.isImmediatePropagationStopped(); j++ ) {
+                               handleObj = matched.matches[ j ];
+
+                               // Triggered event must either 1) be non-exclusive and have no namespace, or
+                               // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).
+                               if ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) {
+
+                                       event.data = handleObj.data;
+                                       event.handleObj = handleObj;
+
+                                       ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )
+                                                       .apply( matched.elem, args );
+
+                                       if ( ret !== undefined ) {
+                                               event.result = ret;
+                                               if ( ret === false ) {
+                                                       event.preventDefault();
+                                                       event.stopPropagation();
+                                               }
+                                       }
+                               }
+                       }
+               }
+
+               return event.result;
+       },
+
+       // Includes some event props shared by KeyEvent and MouseEvent
+       // *** attrChange attrName relatedNode srcElement  are not normalized, non-W3C, deprecated, will be removed in 1.8 ***
+       props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
+
+       fixHooks: {},
+
+       keyHooks: {
+               props: "char charCode key keyCode".split(" "),
+               filter: function( event, original ) {
+
+                       // Add which for key events
+                       if ( event.which == null ) {
+                               event.which = original.charCode != null ? original.charCode : original.keyCode;
+                       }
+
+                       return event;
+               }
+       },
+
+       mouseHooks: {
+               props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
+               filter: function( event, original ) {
+                       var eventDoc, doc, body,
+                               button = original.button,
+                               fromElement = original.fromElement;
+
+                       // Calculate pageX/Y if missing and clientX/Y available
+                       if ( event.pageX == null && original.clientX != null ) {
+                               eventDoc = event.target.ownerDocument || document;
+                               doc = eventDoc.documentElement;
+                               body = eventDoc.body;
+
+                               event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
+                               event.pageY = original.clientY + ( doc && doc.scrollTop  || body && body.scrollTop  || 0 ) - ( doc && doc.clientTop  || body && body.clientTop  || 0 );
+                       }
+
+                       // Add relatedTarget, if necessary
+                       if ( !event.relatedTarget && fromElement ) {
+                               event.relatedTarget = fromElement === event.target ? original.toElement : fromElement;
+                       }
+
+                       // Add which for click: 1 === left; 2 === middle; 3 === right
+                       // Note: button is not normalized, so don't use it
+                       if ( !event.which && button !== undefined ) {
+                               event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
+                       }
+
+                       return event;
+               }
+       },
+
+       fix: function( event ) {
+               if ( event[ jQuery.expando ] ) {
+                       return event;
+               }
+
+               // Create a writable copy of the event object and normalize some properties
+               var i, prop,
+                       originalEvent = event,
+                       fixHook = jQuery.event.fixHooks[ event.type ] || {},
+                       copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
+
+               event = jQuery.Event( originalEvent );
+
+               for ( i = copy.length; i; ) {
+                       prop = copy[ --i ];
+                       event[ prop ] = originalEvent[ prop ];
+               }
+
+               // Fix target property, if necessary (#1925, IE 6/7/8 & Safari2)
+               if ( !event.target ) {
+                       event.target = originalEvent.srcElement || document;
+               }
+
+               // Target should not be a text node (#504, Safari)
+               if ( event.target.nodeType === 3 ) {
+                       event.target = event.target.parentNode;
+               }
+
+               // For mouse/key events; add metaKey if it's not there (#3368, IE6/7/8)
+               if ( event.metaKey === undefined ) {
+                       event.metaKey = event.ctrlKey;
+               }
+
+               return fixHook.filter? fixHook.filter( event, originalEvent ) : event;
+       },
+
+       special: {
+               ready: {
+                       // Make sure the ready event is setup
+                       setup: jQuery.bindReady
+               },
+
+               load: {
+                       // Prevent triggered image.load events from bubbling to window.load
+                       noBubble: true
+               },
+
+               focus: {
+                       delegateType: "focusin"
+               },
+               blur: {
+                       delegateType: "focusout"
+               },
+
+               beforeunload: {
+                       setup: function( data, namespaces, eventHandle ) {
+                               // We only want to do this special case on windows
+                               if ( jQuery.isWindow( this ) ) {
+                                       this.onbeforeunload = eventHandle;
+                               }
+                       },
+
+                       teardown: function( namespaces, eventHandle ) {
+                               if ( this.onbeforeunload === eventHandle ) {
+                                       this.onbeforeunload = null;
+                               }
+                       }
+               }
+       },
+
+       simulate: function( type, elem, event, bubble ) {
+               // Piggyback on a donor event to simulate a different one.
+               // Fake originalEvent to avoid donor's stopPropagation, but if the
+               // simulated event prevents default then we do the same on the donor.
+               var e = jQuery.extend(
+                       new jQuery.Event(),
+                       event,
+                       { type: type,
+                               isSimulated: true,
+                               originalEvent: {}
+                       }
+               );
+               if ( bubble ) {
+                       jQuery.event.trigger( e, null, elem );
+               } else {
+                       jQuery.event.dispatch.call( elem, e );
+               }
+               if ( e.isDefaultPrevented() ) {
+                       event.preventDefault();
+               }
+       }
+};
+
+// Some plugins are using, but it's undocumented/deprecated and will be removed.
+// The 1.7 special event interface should provide all the hooks needed now.
+jQuery.event.handle = jQuery.event.dispatch;
+
+jQuery.removeEvent = document.removeEventListener ?
+       function( elem, type, handle ) {
+               if ( elem.removeEventListener ) {
+                       elem.removeEventListener( type, handle, false );
+               }
+       } :
+       function( elem, type, handle ) {
+               if ( elem.detachEvent ) {
+                       elem.detachEvent( "on" + type, handle );
+               }
+       };
+
+jQuery.Event = function( src, props ) {
+       // Allow instantiation without the 'new' keyword
+       if ( !(this instanceof jQuery.Event) ) {
+               return new jQuery.Event( src, props );
+       }
+
+       // Event object
+       if ( src && src.type ) {
+               this.originalEvent = src;
+               this.type = src.type;
+
+               // Events bubbling up the document may have been marked as prevented
+               // by a handler lower down the tree; reflect the correct value.
+               this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false ||
+                       src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;
+
+       // Event type
+       } else {
+               this.type = src;
+       }
+
+       // Put explicitly provided properties onto the event object
+       if ( props ) {
+               jQuery.extend( this, props );
+       }
+
+       // Create a timestamp if incoming event doesn't have one
+       this.timeStamp = src && src.timeStamp || jQuery.now();
+
+       // Mark it as fixed
+       this[ jQuery.expando ] = true;
+};
+
+function returnFalse() {
+       return false;
+}
+function returnTrue() {
+       return true;
+}
+
+// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
+// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
+jQuery.Event.prototype = {
+       preventDefault: function() {
+               this.isDefaultPrevented = returnTrue;
+
+               var e = this.originalEvent;
+               if ( !e ) {
+                       return;
+               }
+
+               // if preventDefault exists run it on the original event
+               if ( e.preventDefault ) {
+                       e.preventDefault();
+
+               // otherwise set the returnValue property of the original event to false (IE)
+               } else {
+                       e.returnValue = false;
+               }
+       },
+       stopPropagation: function() {
+               this.isPropagationStopped = returnTrue;
+
+               var e = this.originalEvent;
+               if ( !e ) {
+                       return;
+               }
+               // if stopPropagation exists run it on the original event
+               if ( e.stopPropagation ) {
+                       e.stopPropagation();
+               }
+               // otherwise set the cancelBubble property of the original event to true (IE)
+               e.cancelBubble = true;
+       },
+       stopImmediatePropagation: function() {
+               this.isImmediatePropagationStopped = returnTrue;
+               this.stopPropagation();
+       },
+       isDefaultPrevented: returnFalse,
+       isPropagationStopped: returnFalse,
+       isImmediatePropagationStopped: returnFalse
+};
+
+// Create mouseenter/leave events using mouseover/out and event-time checks
+jQuery.each({
+       mouseenter: "mouseover",
+       mouseleave: "mouseout"
+}, function( orig, fix ) {
+       jQuery.event.special[ orig ] = {
+               delegateType: fix,
+               bindType: fix,
+
+               handle: function( event ) {
+                       var target = this,
+                               related = event.relatedTarget,
+                               handleObj = event.handleObj,
+                               selector = handleObj.selector,
+                               ret;
+
+                       // For mousenter/leave call the handler if related is outside the target.
+                       // NB: No relatedTarget if the mouse left/entered the browser window
+                       if ( !related || (related !== target && !jQuery.contains( target, related )) ) {
+                               event.type = handleObj.origType;
+                               ret = handleObj.handler.apply( this, arguments );
+                               event.type = fix;
+                       }
+                       return ret;
+               }
+       };
+});
+
+// IE submit delegation
+if ( !jQuery.support.submitBubbles ) {
+
+       jQuery.event.special.submit = {
+               setup: function() {
+                       // Only need this for delegated form submit events
+                       if ( jQuery.nodeName( this, "form" ) ) {
+                               return false;
+                       }
+
+                       // Lazy-add a submit handler when a descendant form may potentially be submitted
+                       jQuery.event.add( this, "click._submit keypress._submit", function( e ) {
+                               // Node name check avoids a VML-related crash in IE (#9807)
+                               var elem = e.target,
+                                       form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined;
+                               if ( form && !form._submit_attached ) {
+                                       jQuery.event.add( form, "submit._submit", function( event ) {
+                                               // If form was submitted by the user, bubble the event up the tree
+                                               if ( this.parentNode && !event.isTrigger ) {
+                                                       jQuery.event.simulate( "submit", this.parentNode, event, true );
+                                               }
+                                       });
+                                       form._submit_attached = true;
+                               }
+                       });
+                       // return undefined since we don't need an event listener
+               },
+
+               teardown: function() {
+                       // Only need this for delegated form submit events
+                       if ( jQuery.nodeName( this, "form" ) ) {
+                               return false;
+                       }
+
+                       // Remove delegated handlers; cleanData eventually reaps submit handlers attached above
+                       jQuery.event.remove( this, "._submit" );
+               }
+       };
+}
+
+// IE change delegation and checkbox/radio fix
+if ( !jQuery.support.changeBubbles ) {
+
+       jQuery.event.special.change = {
+
+               setup: function() {
+
+                       if ( rformElems.test( this.nodeName ) ) {
+                               // IE doesn't fire change on a check/radio until blur; trigger it on click
+                               // after a propertychange. Eat the blur-change in special.change.handle.
+                               // This still fires onchange a second time for check/radio after blur.
+                               if ( this.type === "checkbox" || this.type === "radio" ) {
+                                       jQuery.event.add( this, "propertychange._change", function( event ) {
+                                               if ( event.originalEvent.propertyName === "checked" ) {
+                                                       this._just_changed = true;
+                                               }
+                                       });
+                                       jQuery.event.add( this, "click._change", function( event ) {
+                                               if ( this._just_changed && !event.isTrigger ) {
+                                                       this._just_changed = false;
+                                                       jQuery.event.simulate( "change", this, event, true );
+                                               }
+                                       });
+                               }
+                               return false;
+                       }
+                       // Delegated event; lazy-add a change handler on descendant inputs
+                       jQuery.event.add( this, "beforeactivate._change", function( e ) {
+                               var elem = e.target;
+
+                               if ( rformElems.test( elem.nodeName ) && !elem._change_attached ) {
+                                       jQuery.event.add( elem, "change._change", function( event ) {
+                                               if ( this.parentNode && !event.isSimulated && !event.isTrigger ) {
+                                                       jQuery.event.simulate( "change", this.parentNode, event, true );
+                                               }
+                                       });
+                                       elem._change_attached = true;
+                               }
+                       });
+               },
+
+               handle: function( event ) {
+                       var elem = event.target;
+
+                       // Swallow native change events from checkbox/radio, we already triggered them above
+                       if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) {
+                               return event.handleObj.handler.apply( this, arguments );
+                       }
+               },
+
+               teardown: function() {
+                       jQuery.event.remove( this, "._change" );
+
+                       return rformElems.test( this.nodeName );
+               }
+       };
+}
+
+// Create "bubbling" focus and blur events
+if ( !jQuery.support.focusinBubbles ) {
+       jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
+
+               // Attach a single capturing handler while someone wants focusin/focusout
+               var attaches = 0,
+                       handler = function( event ) {
+                               jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
+                       };
+
+               jQuery.event.special[ fix ] = {
+                       setup: function() {
+                               if ( attaches++ === 0 ) {
+                                       document.addEventListener( orig, handler, true );
+                               }
+                       },
+                       teardown: function() {
+                               if ( --attaches === 0 ) {
+                                       document.removeEventListener( orig, handler, true );
+                               }
+                       }
+               };
+       });
+}
+
+jQuery.fn.extend({
+
+       on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
+               var origFn, type;
+
+               // Types can be a map of types/handlers
+               if ( typeof types === "object" ) {
+                       // ( types-Object, selector, data )
+                       if ( typeof selector !== "string" ) {
+                               // ( types-Object, data )
+                               data = selector;
+                               selector = undefined;
+                       }
+                       for ( type in types ) {
+                               this.on( type, selector, data, types[ type ], one );
+                       }
+                       return this;
+               }
+
+               if ( data == null && fn == null ) {
+                       // ( types, fn )
+                       fn = selector;
+                       data = selector = undefined;
+               } else if ( fn == null ) {
+                       if ( typeof selector === "string" ) {
+                               // ( types, selector, fn )
+                               fn = data;
+                               data = undefined;
+                       } else {
+                               // ( types, data, fn )
+                               fn = data;
+                               data = selector;
+                               selector = undefined;
+                       }
+               }
+               if ( fn === false ) {
+                       fn = returnFalse;
+               } else if ( !fn ) {
+                       return this;
+               }
+
+               if ( one === 1 ) {
+                       origFn = fn;
+                       fn = function( event ) {
+                               // Can use an empty set, since event contains the info
+                               jQuery().off( event );
+                               return origFn.apply( this, arguments );
+                       };
+                       // Use same guid so caller can remove using origFn
+                       fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
+               }
+               return this.each( function() {
+                       jQuery.event.add( this, types, fn, data, selector );
+               });
+       },
+       one: function( types, selector, data, fn ) {
+               return this.on.call( this, types, selector, data, fn, 1 );
+       },
+       off: function( types, selector, fn ) {
+               if ( types && types.preventDefault && types.handleObj ) {
+                       // ( event )  dispatched jQuery.Event
+                       var handleObj = types.handleObj;
+                       jQuery( types.delegateTarget ).off(
+                               handleObj.namespace? handleObj.type + "." + handleObj.namespace : handleObj.type,
+                               handleObj.selector,
+                               handleObj.handler
+                       );
+                       return this;
+               }
+               if ( typeof types === "object" ) {
+                       // ( types-object [, selector] )
+                       for ( var type in types ) {
+                               this.off( type, selector, types[ type ] );
+                       }
+                       return this;
+               }
+               if ( selector === false || typeof selector === "function" ) {
+                       // ( types [, fn] )
+                       fn = selector;
+                       selector = undefined;
+               }
+               if ( fn === false ) {
+                       fn = returnFalse;
+               }
+               return this.each(function() {
+                       jQuery.event.remove( this, types, fn, selector );
+               });
+       },
+
+       bind: function( types, data, fn ) {
+               return this.on( types, null, data, fn );
+       },
+       unbind: function( types, fn ) {
+               return this.off( types, null, fn );
+       },
+
+       live: function( types, data, fn ) {
+               jQuery( this.context ).on( types, this.selector, data, fn );
+               return this;
+       },
+       die: function( types, fn ) {
+               jQuery( this.context ).off( types, this.selector || "**", fn );
+               return this;
+       },
+
+       delegate: function( selector, types, data, fn ) {
+               return this.on( types, selector, data, fn );
+       },
+       undelegate: function( selector, types, fn ) {
+               // ( namespace ) or ( selector, types [, fn] )
+               return arguments.length == 1? this.off( selector, "**" ) : this.off( types, selector, fn );
+       },
+
+       trigger: function( type, data ) {
+               return this.each(function() {
+                       jQuery.event.trigger( type, data, this );
+               });
+       },
+       triggerHandler: function( type, data ) {
+               if ( this[0] ) {
+                       return jQuery.event.trigger( type, data, this[0], true );
+               }
+       },
+
+       toggle: function( fn ) {
+               // Save reference to arguments for access in closure
+               var args = arguments,
+                       guid = fn.guid || jQuery.guid++,
+                       i = 0,
+                       toggler = function( event ) {
+                               // Figure out which function to execute
+                               var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i;
+                               jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 );
+
+                               // Make sure that clicks stop
+                               event.preventDefault();
+
+                               // and execute the function
+                               return args[ lastToggle ].apply( this, arguments ) || false;
+                       };
+
+               // link all the functions, so any of them can unbind this click handler
+               toggler.guid = guid;
+               while ( i < args.length ) {
+                       args[ i++ ].guid = guid;
+               }
+
+               return this.click( toggler );
+       },
+
+       hover: function( fnOver, fnOut ) {
+               return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
+       }
+});
+
+jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
+       "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
+       "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {
+
+       // Handle event binding
+       jQuery.fn[ name ] = function( data, fn ) {
+               if ( fn == null ) {
+                       fn = data;
+                       data = null;
+               }
+
+               return arguments.length > 0 ?
+                       this.on( name, null, data, fn ) :
+                       this.trigger( name );
+       };
+
+       if ( jQuery.attrFn ) {
+               jQuery.attrFn[ name ] = true;
+       }
+
+       if ( rkeyEvent.test( name ) ) {
+               jQuery.event.fixHooks[ name ] = jQuery.event.keyHooks;
+       }
+
+       if ( rmouseEvent.test( name ) ) {
+               jQuery.event.fixHooks[ name ] = jQuery.event.mouseHooks;
+       }
+});
+
+
+
+/*!
+ * Sizzle CSS Selector Engine
+ *  Copyright 2011, The Dojo Foundation
+ *  Released under the MIT, BSD, and GPL Licenses.
+ *  More information: http://sizzlejs.com/
+ */
+(function(){
+
+var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
+       expando = "sizcache" + (Math.random() + '').replace('.', ''),
+       done = 0,
+       toString = Object.prototype.toString,
+       hasDuplicate = false,
+       baseHasDuplicate = true,
+       rBackslash = /\\/g,
+       rReturn = /\r\n/g,
+       rNonWord = /\W/;
+
+// Here we check if the JavaScript engine is using some sort of
+// optimization where it does not always call our comparision
+// function. If that is the case, discard the hasDuplicate value.
+//   Thus far that includes Google Chrome.
+[0, 0].sort(function() {
+       baseHasDuplicate = false;
+       return 0;
+});
+
+var Sizzle = function( selector, context, results, seed ) {
+       results = results || [];
+       context = context || document;
+
+       var origContext = context;
+
+       if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
+               return [];
+       }
+       
+       if ( !selector || typeof selector !== "string" ) {
+               return results;
+       }
+
+       var m, set, checkSet, extra, ret, cur, pop, i,
+               prune = true,
+               contextXML = Sizzle.isXML( context ),
+               parts = [],
+               soFar = selector;
+       
+       // Reset the position of the chunker regexp (start from head)
+       do {
+               chunker.exec( "" );
+               m = chunker.exec( soFar );
+
+               if ( m ) {
+                       soFar = m[3];
+               
+                       parts.push( m[1] );
+               
+                       if ( m[2] ) {
+                               extra = m[3];
+                               break;
+                       }
+               }
+       } while ( m );
+
+       if ( parts.length > 1 && origPOS.exec( selector ) ) {
+
+               if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
+                       set = posProcess( parts[0] + parts[1], context, seed );
+
+               } else {
+                       set = Expr.relative[ parts[0] ] ?
+                               [ context ] :
+                               Sizzle( parts.shift(), context );
+
+                       while ( parts.length ) {
+                               selector = parts.shift();
+
+                               if ( Expr.relative[ selector ] ) {
+                                       selector += parts.shift();
+                               }
+                               
+                               set = posProcess( selector, set, seed );
+                       }
+               }
+
+       } else {
+               // Take a shortcut and set the context if the root selector is an ID
+               // (but not if it'll be faster if the inner selector is an ID)
+               if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
+                               Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
+
+                       ret = Sizzle.find( parts.shift(), context, contextXML );
+                       context = ret.expr ?
+                               Sizzle.filter( ret.expr, ret.set )[0] :
+                               ret.set[0];
+               }
+
+               if ( context ) {
+                       ret = seed ?
+                               { expr: parts.pop(), set: makeArray(seed) } :
+                               Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );
+
+                       set = ret.expr ?
+                               Sizzle.filter( ret.expr, ret.set ) :
+                               ret.set;
+
+                       if ( parts.length > 0 ) {
+                               checkSet = makeArray( set );
+
+                       } else {
+                               prune = false;
+                       }
+
+                       while ( parts.length ) {
+                               cur = parts.pop();
+                               pop = cur;
+
+                               if ( !Expr.relative[ cur ] ) {
+                                       cur = "";
+                               } else {
+                                       pop = parts.pop();
+                               }
+
+                               if ( pop == null ) {
+                                       pop = context;
+                               }
+
+                               Expr.relative[ cur ]( checkSet, pop, contextXML );
+                       }
+
+               } else {
+                       checkSet = parts = [];
+               }
+       }
+
+       if ( !checkSet ) {
+               checkSet = set;
+       }
+
+       if ( !checkSet ) {
+               Sizzle.error( cur || selector );
+       }
+
+       if ( toString.call(checkSet) === "[object Array]" ) {
+               if ( !prune ) {
+                       results.push.apply( results, checkSet );
+
+               } else if ( context && context.nodeType === 1 ) {
+                       for ( i = 0; checkSet[i] != null; i++ ) {
+                               if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {
+                                       results.push( set[i] );
+                               }
+                       }
+
+               } else {
+                       for ( i = 0; checkSet[i] != null; i++ ) {
+                               if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
+                                       results.push( set[i] );
+                               }
+                       }
+               }
+
+       } else {
+               makeArray( checkSet, results );
+       }
+
+       if ( extra ) {
+               Sizzle( extra, origContext, results, seed );
+               Sizzle.uniqueSort( results );
+       }
+
+       return results;
+};
+
+Sizzle.uniqueSort = function( results ) {
+       if ( sortOrder ) {
+               hasDuplicate = baseHasDuplicate;
+               results.sort( sortOrder );
+
+               if ( hasDuplicate ) {
+                       for ( var i = 1; i < results.length; i++ ) {
+                               if ( results[i] === results[ i - 1 ] ) {
+                                       results.splice( i--, 1 );
+                               }
+                       }
+               }
+       }
+
+       return results;
+};
+
+Sizzle.matches = function( expr, set ) {
+       return Sizzle( expr, null, null, set );
+};
+
+Sizzle.matchesSelector = function( node, expr ) {
+       return Sizzle( expr, null, null, [node] ).length > 0;
+};
+
+Sizzle.find = function( expr, context, isXML ) {
+       var set, i, len, match, type, left;
+
+       if ( !expr ) {
+               return [];
+       }
+
+       for ( i = 0, len = Expr.order.length; i < len; i++ ) {
+               type = Expr.order[i];
+               
+               if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
+                       left = match[1];
+                       match.splice( 1, 1 );
+
+                       if ( left.substr( left.length - 1 ) !== "\\" ) {
+                               match[1] = (match[1] || "").replace( rBackslash, "" );
+                               set = Expr.find[ type ]( match, context, isXML );
+
+                               if ( set != null ) {
+                                       expr = expr.replace( Expr.match[ type ], "" );
+                                       break;
+                               }
+                       }
+               }
+       }
+
+       if ( !set ) {
+               set = typeof context.getElementsByTagName !== "undefined" ?
+                       context.getElementsByTagName( "*" ) :
+                       [];
+       }
+
+       return { set: set, expr: expr };
+};
+
+Sizzle.filter = function( expr, set, inplace, not ) {
+       var match, anyFound,
+               type, found, item, filter, left,
+               i, pass,
+               old = expr,
+               result = [],
+               curLoop = set,
+               isXMLFilter = set && set[0] && Sizzle.isXML( set[0] );
+
+       while ( expr && set.length ) {
+               for ( type in Expr.filter ) {
+                       if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
+                               filter = Expr.filter[ type ];
+                               left = match[1];
+
+                               anyFound = false;
+
+                               match.splice(1,1);
+
+                               if ( left.substr( left.length - 1 ) === "\\" ) {
+                                       continue;
+                               }
+
+                               if ( curLoop === result ) {
+                                       result = [];
+                               }
+
+                               if ( Expr.preFilter[ type ] ) {
+                                       match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
+
+                                       if ( !match ) {
+                                               anyFound = found = true;
+
+                                       } else if ( match === true ) {
+                                               continue;
+                                       }
+                               }
+
+                               if ( match ) {
+                                       for ( i = 0; (item = curLoop[i]) != null; i++ ) {
+                                               if ( item ) {
+                                                       found = filter( item, match, i, curLoop );
+                                                       pass = not ^ found;
+
+                                                       if ( inplace && found != null ) {
+                                                               if ( pass ) {
+                                                                       anyFound = true;
+
+                                                               } else {
+                                                                       curLoop[i] = false;
+                                                               }
+
+                                                       } else if ( pass ) {
+                                                               result.push( item );
+                                                               anyFound = true;
+                                                       }
+                                               }
+                                       }
+                               }
+
+                               if ( found !== undefined ) {
+                                       if ( !inplace ) {
+                                               curLoop = result;
+                                       }
+
+                                       expr = expr.replace( Expr.match[ type ], "" );
+
+                                       if ( !anyFound ) {
+                                               return [];
+                                       }
+
+                                       break;
+                               }
+                       }
+               }
+
+               // Improper expression
+               if ( expr === old ) {
+                       if ( anyFound == null ) {
+                               Sizzle.error( expr );
+
+                       } else {
+                               break;
+                       }
+               }
+
+               old = expr;
+       }
+
+       return curLoop;
+};
+
+Sizzle.error = function( msg ) {
+       throw new Error( "Syntax error, unrecognized expression: " + msg );
+};
+
+/**
+ * Utility function for retreiving the text value of an array of DOM nodes
+ * @param {Array|Element} elem
+ */
+var getText = Sizzle.getText = function( elem ) {
+    var i, node,
+               nodeType = elem.nodeType,
+               ret = "";
+
+       if ( nodeType ) {
+               if ( nodeType === 1 || nodeType === 9 ) {
+                       // Use textContent || innerText for elements
+                       if ( typeof elem.textContent === 'string' ) {
+                               return elem.textContent;
+                       } else if ( typeof elem.innerText === 'string' ) {
+                               // Replace IE's carriage returns
+                               return elem.innerText.replace( rReturn, '' );
+                       } else {
+                               // Traverse it's children
+                               for ( elem = elem.firstChild; elem; elem = elem.nextSibling) {
+                                       ret += getText( elem );
+                               }
+                       }
+               } else if ( nodeType === 3 || nodeType === 4 ) {
+                       return elem.nodeValue;
+               }
+       } else {
+
+               // If no nodeType, this is expected to be an array
+               for ( i = 0; (node = elem[i]); i++ ) {
+                       // Do not traverse comment nodes
+                       if ( node.nodeType !== 8 ) {
+                               ret += getText( node );
+                       }
+               }
+       }
+       return ret;
+};
+
+var Expr = Sizzle.selectors = {
+       order: [ "ID", "NAME", "TAG" ],
+
+       match: {
+               ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
+               CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
+               NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
+               ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
+               TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,
+               CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,
+               POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,
+               PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
+       },
+
+       leftMatch: {},
+
+       attrMap: {
+               "class": "className",
+               "for": "htmlFor"
+       },
+
+       attrHandle: {
+               href: function( elem ) {
+                       return elem.getAttribute( "href" );
+               },
+               type: function( elem ) {
+                       return elem.getAttribute( "type" );
+               }
+       },
+
+       relative: {
+               "+": function(checkSet, part){
+                       var isPartStr = typeof part === "string",
+                               isTag = isPartStr && !rNonWord.test( part ),
+                               isPartStrNotTag = isPartStr && !isTag;
+
+                       if ( isTag ) {
+                               part = part.toLowerCase();
+                       }
+
+                       for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
+                               if ( (elem = checkSet[i]) ) {
+                                       while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
+
+                                       checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?
+                                               elem || false :
+                                               elem === part;
+                               }
+                       }
+
+                       if ( isPartStrNotTag ) {
+                               Sizzle.filter( part, checkSet, true );
+                       }
+               },
+
+               ">": function( checkSet, part ) {
+                       var elem,
+                               isPartStr = typeof part === "string",
+                               i = 0,
+                               l = checkSet.length;
+
+                       if ( isPartStr && !rNonWord.test( part ) ) {
+                               part = part.toLowerCase();
+
+                               for ( ; i < l; i++ ) {
+                                       elem = checkSet[i];
+
+                                       if ( elem ) {
+                                               var parent = elem.parentNode;
+                                               checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
+                                       }
+                               }
+
+                       } else {
+                               for ( ; i < l; i++ ) {
+                                       elem = checkSet[i];
+
+                                       if ( elem ) {
+                                               checkSet[i] = isPartStr ?
+                                                       elem.parentNode :
+                                                       elem.parentNode === part;
+                                       }
+                               }
+
+                               if ( isPartStr ) {
+                                       Sizzle.filter( part, checkSet, true );
+                               }
+                       }
+               },
+
+               "": function(checkSet, part, isXML){
+                       var nodeCheck,
+                               doneName = done++,
+                               checkFn = dirCheck;
+
+                       if ( typeof part === "string" && !rNonWord.test( part ) ) {
+                               part = part.toLowerCase();
+                               nodeCheck = part;
+                               checkFn = dirNodeCheck;
+                       }
+
+                       checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML );
+               },
+
+               "~": function( checkSet, part, isXML ) {
+                       var nodeCheck,
+                               doneName = done++,
+                               checkFn = dirCheck;
+
+                       if ( typeof part === "string" && !rNonWord.test( part ) ) {
+                               part = part.toLowerCase();
+                               nodeCheck = part;
+                               checkFn = dirNodeCheck;
+                       }
+
+                       checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML );
+               }
+       },
+
+       find: {
+               ID: function( match, context, isXML ) {
+                       if ( typeof context.getElementById !== "undefined" && !isXML ) {
+                               var m = context.getElementById(match[1]);
+                               // Check parentNode to catch when Blackberry 4.6 returns
+                               // nodes that are no longer in the document #6963
+                               return m && m.parentNode ? [m] : [];
+                       }
+               },
+
+               NAME: function( match, context ) {
+                       if ( typeof context.getElementsByName !== "undefined" ) {
+                               var ret = [],
+                                       results = context.getElementsByName( match[1] );
+
+                               for ( var i = 0, l = results.length; i < l; i++ ) {
+                                       if ( results[i].getAttribute("name") === match[1] ) {
+                                               ret.push( results[i] );
+                                       }
+                               }
+
+                               return ret.length === 0 ? null : ret;
+                       }
+               },
+
+               TAG: function( match, context ) {
+                       if ( typeof context.getElementsByTagName !== "undefined" ) {
+                               return context.getElementsByTagName( match[1] );
+                       }
+               }
+       },
+       preFilter: {
+               CLASS: function( match, curLoop, inplace, result, not, isXML ) {
+                       match = " " + match[1].replace( rBackslash, "" ) + " ";
+
+                       if ( isXML ) {
+                               return match;
+                       }
+
+                       for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
+                               if ( elem ) {
+                                       if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) {
+                                               if ( !inplace ) {
+                                                       result.push( elem );
+                                               }
+
+                                       } else if ( inplace ) {
+                                               curLoop[i] = false;
+                                       }
+                               }
+                       }
+
+                       return false;
+               },
+
+               ID: function( match ) {
+                       return match[1].replace( rBackslash, "" );
+               },
+
+               TAG: function( match, curLoop ) {
+                       return match[1].replace( rBackslash, "" ).toLowerCase();
+               },
+
+               CHILD: function( match ) {
+                       if ( match[1] === "nth" ) {
+                               if ( !match[2] ) {
+                                       Sizzle.error( match[0] );
+                               }
+
+                               match[2] = match[2].replace(/^\+|\s*/g, '');
+
+                               // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
+                               var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec(
+                                       match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
+                                       !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
+
+                               // calculate the numbers (first)n+(last) including if they are negative
+                               match[2] = (test[1] + (test[2] || 1)) - 0;
+                               match[3] = test[3] - 0;
+                       }
+                       else if ( match[2] ) {
+                               Sizzle.error( match[0] );
+                       }
+
+                       // TODO: Move to normal caching system
+                       match[0] = done++;
+
+                       return match;
+               },
+
+               ATTR: function( match, curLoop, inplace, result, not, isXML ) {
+                       var name = match[1] = match[1].replace( rBackslash, "" );
+                       
+                       if ( !isXML && Expr.attrMap[name] ) {
+                               match[1] = Expr.attrMap[name];
+                       }
+
+                       // Handle if an un-quoted value was used
+                       match[4] = ( match[4] || match[5] || "" ).replace( rBackslash, "" );
+
+                       if ( match[2] === "~=" ) {
+                               match[4] = " " + match[4] + " ";
+                       }
+
+                       return match;
+               },
+
+               PSEUDO: function( match, curLoop, inplace, result, not ) {
+                       if ( match[1] === "not" ) {
+                               // If we're dealing with a complex expression, or a simple one
+                               if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
+                                       match[3] = Sizzle(match[3], null, null, curLoop);
+
+                               } else {
+                                       var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
+
+                                       if ( !inplace ) {
+                                               result.push.apply( result, ret );
+                                       }
+
+                                       return false;
+                               }
+
+                       } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
+                               return true;
+                       }
+                       
+                       return match;
+               },
+
+               POS: function( match ) {
+                       match.unshift( true );
+
+                       return match;
+               }
+       },
+       
+       filters: {
+               enabled: function( elem ) {
+                       return elem.disabled === false && elem.type !== "hidden";
+               },
+
+               disabled: function( elem ) {
+                       return elem.disabled === true;
+               },
+
+               checked: function( elem ) {
+                       return elem.checked === true;
+               },
+               
+               selected: function( elem ) {
+                       // Accessing this property makes selected-by-default
+                       // options in Safari work properly
+                       if ( elem.parentNode ) {
+                               elem.parentNode.selectedIndex;
+                       }
+                       
+                       return elem.selected === true;
+               },
+
+               parent: function( elem ) {
+                       return !!elem.firstChild;
+               },
+
+               empty: function( elem ) {
+                       return !elem.firstChild;
+               },
+
+               has: function( elem, i, match ) {
+                       return !!Sizzle( match[3], elem ).length;
+               },
+
+               header: function( elem ) {
+                       return (/h\d/i).test( elem.nodeName );
+               },
+
+               text: function( elem ) {
+                       var attr = elem.getAttribute( "type" ), type = elem.type;
+                       // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) 
+                       // use getAttribute instead to test this case
+                       return elem.nodeName.toLowerCase() === "input" && "text" === type && ( attr === type || attr === null );
+               },
+
+               radio: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "radio" === elem.type;
+               },
+
+               checkbox: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "checkbox" === elem.type;
+               },
+
+               file: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "file" === elem.type;
+               },
+
+               password: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "password" === elem.type;
+               },
+
+               submit: function( elem ) {
+                       var name = elem.nodeName.toLowerCase();
+                       return (name === "input" || name === "button") && "submit" === elem.type;
+               },
+
+               image: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "image" === elem.type;
+               },
+
+               reset: function( elem ) {
+                       var name = elem.nodeName.toLowerCase();
+                       return (name === "input" || name === "button") && "reset" === elem.type;
+               },
+
+               button: function( elem ) {
+                       var name = elem.nodeName.toLowerCase();
+                       return name === "input" && "button" === elem.type || name === "button";
+               },
+
+               input: function( elem ) {
+                       return (/input|select|textarea|button/i).test( elem.nodeName );
+               },
+
+               focus: function( elem ) {
+                       return elem === elem.ownerDocument.activeElement;
+               }
+       },
+       setFilters: {
+               first: function( elem, i ) {
+                       return i === 0;
+               },
+
+               last: function( elem, i, match, array ) {
+                       return i === array.length - 1;
+               },
+
+               even: function( elem, i ) {
+                       return i % 2 === 0;
+               },
+
+               odd: function( elem, i ) {
+                       return i % 2 === 1;
+               },
+
+               lt: function( elem, i, match ) {
+                       return i < match[3] - 0;
+               },
+
+               gt: function( elem, i, match ) {
+                       return i > match[3] - 0;
+               },
+
+               nth: function( elem, i, match ) {
+                       return match[3] - 0 === i;
+               },
+
+               eq: function( elem, i, match ) {
+                       return match[3] - 0 === i;
+               }
+       },
+       filter: {
+               PSEUDO: function( elem, match, i, array ) {
+                       var name = match[1],
+                               filter = Expr.filters[ name ];
+
+                       if ( filter ) {
+                               return filter( elem, i, match, array );
+
+                       } else if ( name === "contains" ) {
+                               return (elem.textContent || elem.innerText || getText([ elem ]) || "").indexOf(match[3]) >= 0;
+
+                       } else if ( name === "not" ) {
+                               var not = match[3];
+
+                               for ( var j = 0, l = not.length; j < l; j++ ) {
+                                       if ( not[j] === elem ) {
+                                               return false;
+                                       }
+                               }
+
+                               return true;
+
+                       } else {
+                               Sizzle.error( name );
+                       }
+               },
+
+               CHILD: function( elem, match ) {
+                       var first, last,
+                               doneName, parent, cache,
+                               count, diff,
+                               type = match[1],
+                               node = elem;
+
+                       switch ( type ) {
+                               case "only":
+                               case "first":
+                                       while ( (node = node.previousSibling) )  {
+                                               if ( node.nodeType === 1 ) { 
+                                                       return false; 
+                                               }
+                                       }
+
+                                       if ( type === "first" ) { 
+                                               return true; 
+                                       }
+
+                                       node = elem;
+
+                               case "last":
+                                       while ( (node = node.nextSibling) )      {
+                                               if ( node.nodeType === 1 ) { 
+                                                       return false; 
+                                               }
+                                       }
+
+                                       return true;
+
+                               case "nth":
+                                       first = match[2];
+                                       last = match[3];
+
+                                       if ( first === 1 && last === 0 ) {
+                                               return true;
+                                       }
+                                       
+                                       doneName = match[0];
+                                       parent = elem.parentNode;
+       
+                                       if ( parent && (parent[ expando ] !== doneName || !elem.nodeIndex) ) {
+                                               count = 0;
+                                               
+                                               for ( node = parent.firstChild; node; node = node.nextSibling ) {
+                                                       if ( node.nodeType === 1 ) {
+                                                               node.nodeIndex = ++count;
+                                                       }
+                                               } 
+
+                                               parent[ expando ] = doneName;
+                                       }
+                                       
+                                       diff = elem.nodeIndex - last;
+
+                                       if ( first === 0 ) {
+                                               return diff === 0;
+
+                                       } else {
+                                               return ( diff % first === 0 && diff / first >= 0 );
+                                       }
+                       }
+               },
+
+               ID: function( elem, match ) {
+                       return elem.nodeType === 1 && elem.getAttribute("id") === match;
+               },
+
+               TAG: function( elem, match ) {
+                       return (match === "*" && elem.nodeType === 1) || !!elem.nodeName && elem.nodeName.toLowerCase() === match;
+               },
+               
+               CLASS: function( elem, match ) {
+                       return (" " + (elem.className || elem.getAttribute("class")) + " ")
+                               .indexOf( match ) > -1;
+               },
+
+               ATTR: function( elem, match ) {
+                       var name = match[1],
+                               result = Sizzle.attr ?
+                                       Sizzle.attr( elem, name ) :
+                                       Expr.attrHandle[ name ] ?
+                                       Expr.attrHandle[ name ]( elem ) :
+                                       elem[ name ] != null ?
+                                               elem[ name ] :
+                                               elem.getAttribute( name ),
+                               value = result + "",
+                               type = match[2],
+                               check = match[4];
+
+                       return result == null ?
+                               type === "!=" :
+                               !type && Sizzle.attr ?
+                               result != null :
+                               type === "=" ?
+                               value === check :
+                               type === "*=" ?
+                               value.indexOf(check) >= 0 :
+                               type === "~=" ?
+                               (" " + value + " ").indexOf(check) >= 0 :
+                               !check ?
+                               value && result !== false :
+                               type === "!=" ?
+                               value !== check :
+                               type === "^=" ?
+                               value.indexOf(check) === 0 :
+                               type === "$=" ?
+                               value.substr(value.length - check.length) === check :
+                               type === "|=" ?
+                               value === check || value.substr(0, check.length + 1) === check + "-" :
+                               false;
+               },
+
+               POS: function( elem, match, i, array ) {
+                       var name = match[2],
+                               filter = Expr.setFilters[ name ];
+
+                       if ( filter ) {
+                               return filter( elem, i, match, array );
+                       }
+               }
+       }
+};
+
+var origPOS = Expr.match.POS,
+       fescape = function(all, num){
+               return "\\" + (num - 0 + 1);
+       };
+
+for ( var type in Expr.match ) {
+       Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) );
+       Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) );
+}
+
+var makeArray = function( array, results ) {
+       array = Array.prototype.slice.call( array, 0 );
+
+       if ( results ) {
+               results.push.apply( results, array );
+               return results;
+       }
+       
+       return array;
+};
+
+// Perform a simple check to determine if the browser is capable of
+// converting a NodeList to an array using builtin methods.
+// Also verifies that the returned array holds DOM nodes
+// (which is not the case in the Blackberry browser)
+try {
+       Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;
+
+// Provide a fallback method if it does not work
+} catch( e ) {
+       makeArray = function( array, results ) {
+               var i = 0,
+                       ret = results || [];
+
+               if ( toString.call(array) === "[object Array]" ) {
+                       Array.prototype.push.apply( ret, array );
+
+               } else {
+                       if ( typeof array.length === "number" ) {
+                               for ( var l = array.length; i < l; i++ ) {
+                                       ret.push( array[i] );
+                               }
+
+                       } else {
+                               for ( ; array[i]; i++ ) {
+                                       ret.push( array[i] );
+                               }
+                       }
+               }
+
+               return ret;
+       };
+}
+
+var sortOrder, siblingCheck;
+
+if ( document.documentElement.compareDocumentPosition ) {
+       sortOrder = function( a, b ) {
+               if ( a === b ) {
+                       hasDuplicate = true;
+                       return 0;
+               }
+
+               if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
+                       return a.compareDocumentPosition ? -1 : 1;
+               }
+
+               return a.compareDocumentPosition(b) & 4 ? -1 : 1;
+       };
+
+} else {
+       sortOrder = function( a, b ) {
+               // The nodes are identical, we can exit early
+               if ( a === b ) {
+                       hasDuplicate = true;
+                       return 0;
+
+               // Fallback to using sourceIndex (in IE) if it's available on both nodes
+               } else if ( a.sourceIndex && b.sourceIndex ) {
+                       return a.sourceIndex - b.sourceIndex;
+               }
+
+               var al, bl,
+                       ap = [],
+                       bp = [],
+                       aup = a.parentNode,
+                       bup = b.parentNode,
+                       cur = aup;
+
+               // If the nodes are siblings (or identical) we can do a quick check
+               if ( aup === bup ) {
+                       return siblingCheck( a, b );
+
+               // If no parents were found then the nodes are disconnected
+               } else if ( !aup ) {
+                       return -1;
+
+               } else if ( !bup ) {
+                       return 1;
+               }
+
+               // Otherwise they're somewhere else in the tree so we need
+               // to build up a full list of the parentNodes for comparison
+               while ( cur ) {
+                       ap.unshift( cur );
+                       cur = cur.parentNode;
+               }
+
+               cur = bup;
+
+               while ( cur ) {
+                       bp.unshift( cur );
+                       cur = cur.parentNode;
+               }
+
+               al = ap.length;
+               bl = bp.length;
+
+               // Start walking down the tree looking for a discrepancy
+               for ( var i = 0; i < al && i < bl; i++ ) {
+                       if ( ap[i] !== bp[i] ) {
+                               return siblingCheck( ap[i], bp[i] );
+                       }
+               }
+
+               // We ended someplace up the tree so do a sibling check
+               return i === al ?
+                       siblingCheck( a, bp[i], -1 ) :
+                       siblingCheck( ap[i], b, 1 );
+       };
+
+       siblingCheck = function( a, b, ret ) {
+               if ( a === b ) {
+                       return ret;
+               }
+
+               var cur = a.nextSibling;
+
+               while ( cur ) {
+                       if ( cur === b ) {
+                               return -1;
+                       }
+
+                       cur = cur.nextSibling;
+               }
+
+               return 1;
+       };
+}
+
+// Check to see if the browser returns elements by name when
+// querying by getElementById (and provide a workaround)
+(function(){
+       // We're going to inject a fake input element with a specified name
+       var form = document.createElement("div"),
+               id = "script" + (new Date()).getTime(),
+               root = document.documentElement;
+
+       form.innerHTML = "<a name='" + id + "'/>";
+
+       // Inject it into the root element, check its status, and remove it quickly
+       root.insertBefore( form, root.firstChild );
+
+       // The workaround has to do additional checks after a getElementById
+       // Which slows things down for other browsers (hence the branching)
+       if ( document.getElementById( id ) ) {
+               Expr.find.ID = function( match, context, isXML ) {
+                       if ( typeof context.getElementById !== "undefined" && !isXML ) {
+                               var m = context.getElementById(match[1]);
+
+                               return m ?
+                                       m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ?
+                                               [m] :
+                                               undefined :
+                                       [];
+                       }
+               };
+
+               Expr.filter.ID = function( elem, match ) {
+                       var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
+
+                       return elem.nodeType === 1 && node && node.nodeValue === match;
+               };
+       }
+
+       root.removeChild( form );
+
+       // release memory in IE
+       root = form = null;
+})();
+
+(function(){
+       // Check to see if the browser returns only elements
+       // when doing getElementsByTagName("*")
+
+       // Create a fake element
+       var div = document.createElement("div");
+       div.appendChild( document.createComment("") );
+
+       // Make sure no comments are found
+       if ( div.getElementsByTagName("*").length > 0 ) {
+               Expr.find.TAG = function( match, context ) {
+                       var results = context.getElementsByTagName( match[1] );
+
+                       // Filter out possible comments
+                       if ( match[1] === "*" ) {
+                               var tmp = [];
+
+                               for ( var i = 0; results[i]; i++ ) {
+                                       if ( results[i].nodeType === 1 ) {
+                                               tmp.push( results[i] );
+                                       }
+                               }
+
+                               results = tmp;
+                       }
+
+                       return results;
+               };
+       }
+
+       // Check to see if an attribute returns normalized href attributes
+       div.innerHTML = "<a href='#'></a>";
+
+       if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
+                       div.firstChild.getAttribute("href") !== "#" ) {
+
+               Expr.attrHandle.href = function( elem ) {
+                       return elem.getAttribute( "href", 2 );
+               };
+       }
+
+       // release memory in IE
+       div = null;
+})();
+
+if ( document.querySelectorAll ) {
+       (function(){
+               var oldSizzle = Sizzle,
+                       div = document.createElement("div"),
+                       id = "__sizzle__";
+
+               div.innerHTML = "<p class='TEST'></p>";
+
+               // Safari can't handle uppercase or unicode characters when
+               // in quirks mode.
+               if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
+                       return;
+               }
+       
+               Sizzle = function( query, context, extra, seed ) {
+                       context = context || document;
+
+                       // Only use querySelectorAll on non-XML documents
+                       // (ID selectors don't work in non-HTML documents)
+                       if ( !seed && !Sizzle.isXML(context) ) {
+                               // See if we find a selector to speed up
+                               var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query );
+                               
+                               if ( match && (context.nodeType === 1 || context.nodeType === 9) ) {
+                                       // Speed-up: Sizzle("TAG")
+                                       if ( match[1] ) {
+                                               return makeArray( context.getElementsByTagName( query ), extra );
+                                       
+                                       // Speed-up: Sizzle(".CLASS")
+                                       } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) {
+                                               return makeArray( context.getElementsByClassName( match[2] ), extra );
+                                       }
+                               }
+                               
+                               if ( context.nodeType === 9 ) {
+                                       // Speed-up: Sizzle("body")
+                                       // The body element only exists once, optimize finding it
+                                       if ( query === "body" && context.body ) {
+                                               return makeArray( [ context.body ], extra );
+                                               
+                                       // Speed-up: Sizzle("#ID")
+                                       } else if ( match && match[3] ) {
+                                               var elem = context.getElementById( match[3] );
+
+                                               // Check parentNode to catch when Blackberry 4.6 returns
+                                               // nodes that are no longer in the document #6963
+                                               if ( elem && elem.parentNode ) {
+                                                       // Handle the case where IE and Opera return items
+                                                       // by name instead of ID
+                                                       if ( elem.id === match[3] ) {
+                                                               return makeArray( [ elem ], extra );
+                                                       }
+                                                       
+                                               } else {
+                                                       return makeArray( [], extra );
+                                               }
+                                       }
+                                       
+                                       try {
+                                               return makeArray( context.querySelectorAll(query), extra );
+                                       } catch(qsaError) {}
+
+                               // qSA works strangely on Element-rooted queries
+                               // We can work around this by specifying an extra ID on the root
+                               // and working up from there (Thanks to Andrew Dupont for the technique)
+                               // IE 8 doesn't work on object elements
+                               } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
+                                       var oldContext = context,
+                                               old = context.getAttribute( "id" ),
+                                               nid = old || id,
+                                               hasParent = context.parentNode,
+                                               relativeHierarchySelector = /^\s*[+~]/.test( query );
+
+                                       if ( !old ) {
+                                               context.setAttribute( "id", nid );
+                                       } else {
+                                               nid = nid.replace( /'/g, "\\$&" );
+                                       }
+                                       if ( relativeHierarchySelector && hasParent ) {
+                                               context = context.parentNode;
+                                       }
+
+                                       try {
+                                               if ( !relativeHierarchySelector || hasParent ) {
+                                                       return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
+                                               }
+
+                                       } catch(pseudoError) {
+                                       } finally {
+                                               if ( !old ) {
+                                                       oldContext.removeAttribute( "id" );
+                                               }
+                                       }
+                               }
+                       }
+               
+                       return oldSizzle(query, context, extra, seed);
+               };
+
+               for ( var prop in oldSizzle ) {
+                       Sizzle[ prop ] = oldSizzle[ prop ];
+               }
+
+               // release memory in IE
+               div = null;
+       })();
+}
+
+(function(){
+       var html = document.documentElement,
+               matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector;
+
+       if ( matches ) {
+               // Check to see if it's possible to do matchesSelector
+               // on a disconnected node (IE 9 fails this)
+               var disconnectedMatch = !matches.call( document.createElement( "div" ), "div" ),
+                       pseudoWorks = false;
+
+               try {
+                       // This should fail with an exception
+                       // Gecko does not error, returns false instead
+                       matches.call( document.documentElement, "[test!='']:sizzle" );
+       
+               } catch( pseudoError ) {
+                       pseudoWorks = true;
+               }
+
+               Sizzle.matchesSelector = function( node, expr ) {
+                       // Make sure that attribute selectors are quoted
+                       expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']");
+
+                       if ( !Sizzle.isXML( node ) ) {
+                               try { 
+                                       if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) {
+                                               var ret = matches.call( node, expr );
+
+                                               // IE 9's matchesSelector returns false on disconnected nodes
+                                               if ( ret || !disconnectedMatch ||
+                                                               // As well, disconnected nodes are said to be in a document
+                                                               // fragment in IE 9, so check for that
+                                                               node.document && node.document.nodeType !== 11 ) {
+                                                       return ret;
+                                               }
+                                       }
+                               } catch(e) {}
+                       }
+
+                       return Sizzle(expr, null, null, [node]).length > 0;
+               };
+       }
+})();
+
+(function(){
+       var div = document.createElement("div");
+
+       div.innerHTML = "<div class='test e'></div><div class='test'></div>";
+
+       // Opera can't find a second classname (in 9.6)
+       // Also, make sure that getElementsByClassName actually exists
+       if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
+               return;
+       }
+
+       // Safari caches class attributes, doesn't catch changes (in 3.2)
+       div.lastChild.className = "e";
+
+       if ( div.getElementsByClassName("e").length === 1 ) {
+               return;
+       }
+       
+       Expr.order.splice(1, 0, "CLASS");
+       Expr.find.CLASS = function( match, context, isXML ) {
+               if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
+                       return context.getElementsByClassName(match[1]);
+               }
+       };
+
+       // release memory in IE
+       div = null;
+})();
+
+function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
+       for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+               var elem = checkSet[i];
+
+               if ( elem ) {
+                       var match = false;
+
+                       elem = elem[dir];
+
+                       while ( elem ) {
+                               if ( elem[ expando ] === doneName ) {
+                                       match = checkSet[elem.sizset];
+                                       break;
+                               }
+
+                               if ( elem.nodeType === 1 && !isXML ){
+                                       elem[ expando ] = doneName;
+                                       elem.sizset = i;
+                               }
+
+                               if ( elem.nodeName.toLowerCase() === cur ) {
+                                       match = elem;
+                                       break;
+                               }
+
+                               elem = elem[dir];
+                       }
+
+                       checkSet[i] = match;
+               }
+       }
+}
+
+function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
+       for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+               var elem = checkSet[i];
+
+               if ( elem ) {
+                       var match = false;
+                       
+                       elem = elem[dir];
+
+                       while ( elem ) {
+                               if ( elem[ expando ] === doneName ) {
+                                       match = checkSet[elem.sizset];
+                                       break;
+                               }
+
+                               if ( elem.nodeType === 1 ) {
+                                       if ( !isXML ) {
+                                               elem[ expando ] = doneName;
+                                               elem.sizset = i;
+                                       }
+
+                                       if ( typeof cur !== "string" ) {
+                                               if ( elem === cur ) {
+                                                       match = true;
+                                                       break;
+                                               }
+
+                                       } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
+                                               match = elem;
+                                               break;
+                                       }
+                               }
+
+                               elem = elem[dir];
+                       }
+
+                       checkSet[i] = match;
+               }
+       }
+}
+
+if ( document.documentElement.contains ) {
+       Sizzle.contains = function( a, b ) {
+               return a !== b && (a.contains ? a.contains(b) : true);
+       };
+
+} else if ( document.documentElement.compareDocumentPosition ) {
+       Sizzle.contains = function( a, b ) {
+               return !!(a.compareDocumentPosition(b) & 16);
+       };
+
+} else {
+       Sizzle.contains = function() {
+               return false;
+       };
+}
+
+Sizzle.isXML = function( elem ) {
+       // documentElement is verified for cases where it doesn't yet exist
+       // (such as loading iframes in IE - #4833) 
+       var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
+
+       return documentElement ? documentElement.nodeName !== "HTML" : false;
+};
+
+var posProcess = function( selector, context, seed ) {
+       var match,
+               tmpSet = [],
+               later = "",
+               root = context.nodeType ? [context] : context;
+
+       // Position selectors must be done after the filter
+       // And so must :not(positional) so we move all PSEUDOs to the end
+       while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
+               later += match[0];
+               selector = selector.replace( Expr.match.PSEUDO, "" );
+       }
+
+       selector = Expr.relative[selector] ? selector + "*" : selector;
+
+       for ( var i = 0, l = root.length; i < l; i++ ) {
+               Sizzle( selector, root[i], tmpSet, seed );
+       }
+
+       return Sizzle.filter( later, tmpSet );
+};
+
+// EXPOSE
+// Override sizzle attribute retrieval
+Sizzle.attr = jQuery.attr;
+Sizzle.selectors.attrMap = {};
+jQuery.find = Sizzle;
+jQuery.expr = Sizzle.selectors;
+jQuery.expr[":"] = jQuery.expr.filters;
+jQuery.unique = Sizzle.uniqueSort;
+jQuery.text = Sizzle.getText;
+jQuery.isXMLDoc = Sizzle.isXML;
+jQuery.contains = Sizzle.contains;
+
+
+})();
+
+
+var runtil = /Until$/,
+       rparentsprev = /^(?:parents|prevUntil|prevAll)/,
+       // Note: This RegExp should be improved, or likely pulled from Sizzle
+       rmultiselector = /,/,
+       isSimple = /^.[^:#\[\.,]*$/,
+       slice = Array.prototype.slice,
+       POS = jQuery.expr.match.POS,
+       // methods guaranteed to produce a unique set when starting from a unique set
+       guaranteedUnique = {
+               children: true,
+               contents: true,
+               next: true,
+               prev: true
+       };
+
+jQuery.fn.extend({
+       find: function( selector ) {
+               var self = this,
+                       i, l;
+
+               if ( typeof selector !== "string" ) {
+                       return jQuery( selector ).filter(function() {
+                               for ( i = 0, l = self.length; i < l; i++ ) {
+                                       if ( jQuery.contains( self[ i ], this ) ) {
+                                               return true;
+                                       }
+                               }
+                       });
+               }
+
+               var ret = this.pushStack( "", "find", selector ),
+                       length, n, r;
+
+               for ( i = 0, l = this.length; i < l; i++ ) {
+                       length = ret.length;
+                       jQuery.find( selector, this[i], ret );
+
+                       if ( i > 0 ) {
+                               // Make sure that the results are unique
+                               for ( n = length; n < ret.length; n++ ) {
+                                       for ( r = 0; r < length; r++ ) {
+                                               if ( ret[r] === ret[n] ) {
+                                                       ret.splice(n--, 1);
+                                                       break;
+                                               }
+                                       }
+                               }
+                       }
+               }
+
+               return ret;
+       },
+
+       has: function( target ) {
+               var targets = jQuery( target );
+               return this.filter(function() {
+                       for ( var i = 0, l = targets.length; i < l; i++ ) {
+                               if ( jQuery.contains( this, targets[i] ) ) {
+                                       return true;
+                               }
+                       }
+               });
+       },
+
+       not: function( selector ) {
+               return this.pushStack( winnow(this, selector, false), "not", selector);
+       },
+
+       filter: function( selector ) {
+               return this.pushStack( winnow(this, selector, true), "filter", selector );
+       },
+
+       is: function( selector ) {
+               return !!selector && ( 
+                       typeof selector === "string" ?
+                               // If this is a positional selector, check membership in the returned set
+                               // so $("p:first").is("p:last") won't return true for a doc with two "p".
+                               POS.test( selector ) ? 
+                                       jQuery( selector, this.context ).index( this[0] ) >= 0 :
+                                       jQuery.filter( selector, this ).length > 0 :
+                               this.filter( selector ).length > 0 );
+       },
+
+       closest: function( selectors, context ) {
+               var ret = [], i, l, cur = this[0];
+               
+               // Array (deprecated as of jQuery 1.7)
+               if ( jQuery.isArray( selectors ) ) {
+                       var level = 1;
+
+                       while ( cur && cur.ownerDocument && cur !== context ) {
+                               for ( i = 0; i < selectors.length; i++ ) {
+
+                                       if ( jQuery( cur ).is( selectors[ i ] ) ) {
+                                               ret.push({ selector: selectors[ i ], elem: cur, level: level });
+                                       }
+                               }
+
+                               cur = cur.parentNode;
+                               level++;
+                       }
+
+                       return ret;
+               }
+
+               // String
+               var pos = POS.test( selectors ) || typeof selectors !== "string" ?
+                               jQuery( selectors, context || this.context ) :
+                               0;
+
+               for ( i = 0, l = this.length; i < l; i++ ) {
+                       cur = this[i];
+
+                       while ( cur ) {
+                               if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {
+                                       ret.push( cur );
+                                       break;
+
+                               } else {
+                                       cur = cur.parentNode;
+                                       if ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) {
+                                               break;
+                                       }
+                               }
+                       }
+               }
+
+               ret = ret.length > 1 ? jQuery.unique( ret ) : ret;
+
+               return this.pushStack( ret, "closest", selectors );
+       },
+
+       // Determine the position of an element within
+       // the matched set of elements
+       index: function( elem ) {
+
+               // No argument, return index in parent
+               if ( !elem ) {
+                       return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1;
+               }
+
+               // index in selector
+               if ( typeof elem === "string" ) {
+                       return jQuery.inArray( this[0], jQuery( elem ) );
+               }
+
+               // Locate the position of the desired element
+               return jQuery.inArray(
+                       // If it receives a jQuery object, the first element is used
+                       elem.jquery ? elem[0] : elem, this );
+       },
+
+       add: function( selector, context ) {
+               var set = typeof selector === "string" ?
+                               jQuery( selector, context ) :
+                               jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),
+                       all = jQuery.merge( this.get(), set );
+
+               return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?
+                       all :
+                       jQuery.unique( all ) );
+       },
+
+       andSelf: function() {
+               return this.add( this.prevObject );
+       }
+});
+
+// A painfully simple check to see if an element is disconnected
+// from a document (should be improved, where feasible).
+function isDisconnected( node ) {
+       return !node || !node.parentNode || node.parentNode.nodeType === 11;
+}
+
+jQuery.each({
+       parent: function( elem ) {
+               var parent = elem.parentNode;
+               return parent && parent.nodeType !== 11 ? parent : null;
+       },
+       parents: function( elem ) {
+               return jQuery.dir( elem, "parentNode" );
+       },
+       parentsUntil: function( elem, i, until ) {
+               return jQuery.dir( elem, "parentNode", until );
+       },
+       next: function( elem ) {
+               return jQuery.nth( elem, 2, "nextSibling" );
+       },
+       prev: function( elem ) {
+               return jQuery.nth( elem, 2, "previousSibling" );
+       },
+       nextAll: function( elem ) {
+               return jQuery.dir( elem, "nextSibling" );
+       },
+       prevAll: function( elem ) {
+               return jQuery.dir( elem, "previousSibling" );
+       },
+       nextUntil: function( elem, i, until ) {
+               return jQuery.dir( elem, "nextSibling", until );
+       },
+       prevUntil: function( elem, i, until ) {
+               return jQuery.dir( elem, "previousSibling", until );
+       },
+       siblings: function( elem ) {
+               return jQuery.sibling( elem.parentNode.firstChild, elem );
+       },
+       children: function( elem ) {
+               return jQuery.sibling( elem.firstChild );
+       },
+       contents: function( elem ) {
+               return jQuery.nodeName( elem, "iframe" ) ?
+                       elem.contentDocument || elem.contentWindow.document :
+                       jQuery.makeArray( elem.childNodes );
+       }
+}, function( name, fn ) {
+       jQuery.fn[ name ] = function( until, selector ) {
+               var ret = jQuery.map( this, fn, until );
+
+               if ( !runtil.test( name ) ) {
+                       selector = until;
+               }
+
+               if ( selector && typeof selector === "string" ) {
+                       ret = jQuery.filter( selector, ret );
+               }
+
+               ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;
+
+               if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {
+                       ret = ret.reverse();
+               }
+
+               return this.pushStack( ret, name, slice.call( arguments ).join(",") );
+       };
+});
+
+jQuery.extend({
+       filter: function( expr, elems, not ) {
+               if ( not ) {
+                       expr = ":not(" + expr + ")";
+               }
+
+               return elems.length === 1 ?
+                       jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :
+                       jQuery.find.matches(expr, elems);
+       },
+
+       dir: function( elem, dir, until ) {
+               var matched = [],
+                       cur = elem[ dir ];
+
+               while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
+                       if ( cur.nodeType === 1 ) {
+                               matched.push( cur );
+                       }
+                       cur = cur[dir];
+               }
+               return matched;
+       },
+
+       nth: function( cur, result, dir, elem ) {
+               result = result || 1;
+               var num = 0;
+
+               for ( ; cur; cur = cur[dir] ) {
+                       if ( cur.nodeType === 1 && ++num === result ) {
+                               break;
+                       }
+               }
+
+               return cur;
+       },
+
+       sibling: function( n, elem ) {
+               var r = [];
+
+               for ( ; n; n = n.nextSibling ) {
+                       if ( n.nodeType === 1 && n !== elem ) {
+                               r.push( n );
+                       }
+               }
+
+               return r;
+       }
+});
+
+// Implement the identical functionality for filter and not
+function winnow( elements, qualifier, keep ) {
+
+       // Can't pass null or undefined to indexOf in Firefox 4
+       // Set to 0 to skip string check
+       qualifier = qualifier || 0;
+
+       if ( jQuery.isFunction( qualifier ) ) {
+               return jQuery.grep(elements, function( elem, i ) {
+                       var retVal = !!qualifier.call( elem, i, elem );
+                       return retVal === keep;
+               });
+
+       } else if ( qualifier.nodeType ) {
+               return jQuery.grep(elements, function( elem, i ) {
+                       return ( elem === qualifier ) === keep;
+               });
+
+       } else if ( typeof qualifier === "string" ) {
+               var filtered = jQuery.grep(elements, function( elem ) {
+                       return elem.nodeType === 1;
+               });
+
+               if ( isSimple.test( qualifier ) ) {
+                       return jQuery.filter(qualifier, filtered, !keep);
+               } else {
+                       qualifier = jQuery.filter( qualifier, filtered );
+               }
+       }
+
+       return jQuery.grep(elements, function( elem, i ) {
+               return ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep;
+       });
+}
+
+
+
+
+function createSafeFragment( document ) {
+       var list = nodeNames.split( "|" ),
+       safeFrag = document.createDocumentFragment();
+
+       if ( safeFrag.createElement ) {
+               while ( list.length ) {
+                       safeFrag.createElement(
+                               list.pop()
+                       );
+               }
+       }
+       return safeFrag;
+}
+
+var nodeNames = "abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|" +
+               "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
+       rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
+       rleadingWhitespace = /^\s+/,
+       rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,
+       rtagName = /<([\w:]+)/,
+       rtbody = /<tbody/i,
+       rhtml = /<|&#?\w+;/,
+       rnoInnerhtml = /<(?:script|style)/i,
+       rnocache = /<(?:script|object|embed|option|style)/i,
+       rnoshimcache = new RegExp("<(?:" + nodeNames + ")", "i"),
+       // checked="checked" or checked
+       rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
+       rscriptType = /\/(java|ecma)script/i,
+       rcleanScript = /^\s*<!(?:\[CDATA\[|\-\-)/,
+       wrapMap = {
+               option: [ 1, "<select multiple='multiple'>", "</select>" ],
+               legend: [ 1, "<fieldset>", "</fieldset>" ],
+               thead: [ 1, "<table>", "</table>" ],
+               tr: [ 2, "<table><tbody>", "</tbody></table>" ],
+               td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
+               col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
+               area: [ 1, "<map>", "</map>" ],
+               _default: [ 0, "", "" ]
+       },
+       safeFragment = createSafeFragment( document );
+
+wrapMap.optgroup = wrapMap.option;
+wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
+wrapMap.th = wrapMap.td;
+
+// IE can't serialize <link> and <script> tags normally
+if ( !jQuery.support.htmlSerialize ) {
+       wrapMap._default = [ 1, "div<div>", "</div>" ];
+}
+
+jQuery.fn.extend({
+       text: function( text ) {
+               if ( jQuery.isFunction(text) ) {
+                       return this.each(function(i) {
+                               var self = jQuery( this );
+
+                               self.text( text.call(this, i, self.text()) );
+                       });
+               }
+
+               if ( typeof text !== "object" && text !== undefined ) {
+                       return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
+               }
+
+               return jQuery.text( this );
+       },
+
+       wrapAll: function( html ) {
+               if ( jQuery.isFunction( html ) ) {
+                       return this.each(function(i) {
+                               jQuery(this).wrapAll( html.call(this, i) );
+                       });
+               }
+
+               if ( this[0] ) {
+                       // The elements to wrap the target around
+                       var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
+
+                       if ( this[0].parentNode ) {
+                               wrap.insertBefore( this[0] );
+                       }
+
+                       wrap.map(function() {
+                               var elem = this;
+
+                               while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
+                                       elem = elem.firstChild;
+                               }
+
+                               return elem;
+                       }).append( this );
+               }
+
+               return this;
+       },
+
+       wrapInner: function( html ) {
+               if ( jQuery.isFunction( html ) ) {
+                       return this.each(function(i) {
+                               jQuery(this).wrapInner( html.call(this, i) );
+                       });
+               }
+
+               return this.each(function() {
+                       var self = jQuery( this ),
+                               contents = self.contents();
+
+                       if ( contents.length ) {
+                               contents.wrapAll( html );
+
+                       } else {
+                               self.append( html );
+                       }
+               });
+       },
+
+       wrap: function( html ) {
+               var isFunction = jQuery.isFunction( html );
+
+               return this.each(function(i) {
+                       jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
+               });
+       },
+
+       unwrap: function() {
+               return this.parent().each(function() {
+                       if ( !jQuery.nodeName( this, "body" ) ) {
+                               jQuery( this ).replaceWith( this.childNodes );
+                       }
+               }).end();
+       },
+
+       append: function() {
+               return this.domManip(arguments, true, function( elem ) {
+                       if ( this.nodeType === 1 ) {
+                               this.appendChild( elem );
+                       }
+               });
+       },
+
+       prepend: function() {
+               return this.domManip(arguments, true, function( elem ) {
+                       if ( this.nodeType === 1 ) {
+                               this.insertBefore( elem, this.firstChild );
+                       }
+               });
+       },
+
+       before: function() {
+               if ( this[0] && this[0].parentNode ) {
+                       return this.domManip(arguments, false, function( elem ) {
+                               this.parentNode.insertBefore( elem, this );
+                       });
+               } else if ( arguments.length ) {
+                       var set = jQuery.clean( arguments );
+                       set.push.apply( set, this.toArray() );
+                       return this.pushStack( set, "before", arguments );
+               }
+       },
+
+       after: function() {
+               if ( this[0] && this[0].parentNode ) {
+                       return this.domManip(arguments, false, function( elem ) {
+                               this.parentNode.insertBefore( elem, this.nextSibling );
+                       });
+               } else if ( arguments.length ) {
+                       var set = this.pushStack( this, "after", arguments );
+                       set.push.apply( set, jQuery.clean(arguments) );
+                       return set;
+               }
+       },
+
+       // keepData is for internal use only--do not document
+       remove: function( selector, keepData ) {
+               for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
+                       if ( !selector || jQuery.filter( selector, [ elem ] ).length ) {
+                               if ( !keepData && elem.nodeType === 1 ) {
+                                       jQuery.cleanData( elem.getElementsByTagName("*") );
+                                       jQuery.cleanData( [ elem ] );
+                               }
+
+                               if ( elem.parentNode ) {
+                                       elem.parentNode.removeChild( elem );
+                               }
+                       }
+               }
+
+               return this;
+       },
+
+       empty: function() {
+               for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
+                       // Remove element nodes and prevent memory leaks
+                       if ( elem.nodeType === 1 ) {
+                               jQuery.cleanData( elem.getElementsByTagName("*") );
+                       }
+
+                       // Remove any remaining nodes
+                       while ( elem.firstChild ) {
+                               elem.removeChild( elem.firstChild );
+                       }
+               }
+
+               return this;
+       },
+
+       clone: function( dataAndEvents, deepDataAndEvents ) {
+               dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
+               deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
+
+               return this.map( function () {
+                       return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
+               });
+       },
+
+       html: function( value ) {
+               if ( value === undefined ) {
+                       return this[0] && this[0].nodeType === 1 ?
+                               this[0].innerHTML.replace(rinlinejQuery, "") :
+                               null;
+
+               // See if we can take a shortcut and just use innerHTML
+               } else if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
+                       (jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
+                       !wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {
+
+                       value = value.replace(rxhtmlTag, "<$1></$2>");
+
+                       try {
+                               for ( var i = 0, l = this.length; i < l; i++ ) {
+                                       // Remove element nodes and prevent memory leaks
+                                       if ( this[i].nodeType === 1 ) {
+                                               jQuery.cleanData( this[i].getElementsByTagName("*") );
+                                               this[i].innerHTML = value;
+                                       }
+                               }
+
+                       // If using innerHTML throws an exception, use the fallback method
+                       } catch(e) {
+                               this.empty().append( value );
+                       }
+
+               } else if ( jQuery.isFunction( value ) ) {
+                       this.each(function(i){
+                               var self = jQuery( this );
+
+                               self.html( value.call(this, i, self.html()) );
+                       });
+
+               } else {
+                       this.empty().append( value );
+               }
+
+               return this;
+       },
+
+       replaceWith: function( value ) {
+               if ( this[0] && this[0].parentNode ) {
+                       // Make sure that the elements are removed from the DOM before they are inserted
+                       // this can help fix replacing a parent with child elements
+                       if ( jQuery.isFunction( value ) ) {
+                               return this.each(function(i) {
+                                       var self = jQuery(this), old = self.html();
+                                       self.replaceWith( value.call( this, i, old ) );
+                               });
+                       }
+
+                       if ( typeof value !== "string" ) {
+                               value = jQuery( value ).detach();
+                       }
+
+                       return this.each(function() {
+                               var next = this.nextSibling,
+                                       parent = this.parentNode;
+
+                               jQuery( this ).remove();
+
+                               if ( next ) {
+                                       jQuery(next).before( value );
+                               } else {
+                                       jQuery(parent).append( value );
+                               }
+                       });
+               } else {
+                       return this.length ?
+                               this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value ) :
+                               this;
+               }
+       },
+
+       detach: function( selector ) {
+               return this.remove( selector, true );
+       },
+
+       domManip: function( args, table, callback ) {
+               var results, first, fragment, parent,
+                       value = args[0],
+                       scripts = [];
+
+               // We can't cloneNode fragments that contain checked, in WebKit
+               if ( !jQuery.support.checkClone && arguments.length === 3 && typeof value === "string" && rchecked.test( value ) ) {
+                       return this.each(function() {
+                               jQuery(this).domManip( args, table, callback, true );
+                       });
+               }
+
+               if ( jQuery.isFunction(value) ) {
+                       return this.each(function(i) {
+                               var self = jQuery(this);
+                               args[0] = value.call(this, i, table ? self.html() : undefined);
+                               self.domManip( args, table, callback );
+                       });
+               }
+
+               if ( this[0] ) {
+                       parent = value && value.parentNode;
+
+                       // If we're in a fragment, just use that instead of building a new one
+                       if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
+                               results = { fragment: parent };
+
+                       } else {
+                               results = jQuery.buildFragment( args, this, scripts );
+                       }
+
+                       fragment = results.fragment;
+
+                       if ( fragment.childNodes.length === 1 ) {
+                               first = fragment = fragment.firstChild;
+                       } else {
+                               first = fragment.firstChild;
+                       }
+
+                       if ( first ) {
+                               table = table && jQuery.nodeName( first, "tr" );
+
+                               for ( var i = 0, l = this.length, lastIndex = l - 1; i < l; i++ ) {
+                                       callback.call(
+                                               table ?
+                                                       root(this[i], first) :
+                                                       this[i],
+                                               // Make sure that we do not leak memory by inadvertently discarding
+                                               // the original fragment (which might have attached data) instead of
+                                               // using it; in addition, use the original fragment object for the last
+                                               // item instead of first because it can end up being emptied incorrectly
+                                               // in certain situations (Bug #8070).
+                                               // Fragments from the fragment cache must always be cloned and never used
+                                               // in place.
+                                               results.cacheable || ( l > 1 && i < lastIndex ) ?
+                                                       jQuery.clone( fragment, true, true ) :
+                                                       fragment
+                                       );
+                               }
+                       }
+
+                       if ( scripts.length ) {
+                               jQuery.each( scripts, evalScript );
+                       }
+               }
+
+               return this;
+       }
+});
+
+function root( elem, cur ) {
+       return jQuery.nodeName(elem, "table") ?
+               (elem.getElementsByTagName("tbody")[0] ||
+               elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
+               elem;
+}
+
+function cloneCopyEvent( src, dest ) {
+
+       if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {
+               return;
+       }
+
+       var type, i, l,
+               oldData = jQuery._data( src ),
+               curData = jQuery._data( dest, oldData ),
+               events = oldData.events;
+
+       if ( events ) {
+               delete curData.handle;
+               curData.events = {};
+
+               for ( type in events ) {
+                       for ( i = 0, l = events[ type ].length; i < l; i++ ) {
+                               jQuery.event.add( dest, type + ( events[ type ][ i ].namespace ? "." : "" ) + events[ type ][ i ].namespace, events[ type ][ i ], events[ type ][ i ].data );
+                       }
+               }
+       }
+
+       // make the cloned public data object a copy from the original
+       if ( curData.data ) {
+               curData.data = jQuery.extend( {}, curData.data );
+       }
+}
+
+function cloneFixAttributes( src, dest ) {
+       var nodeName;
+
+       // We do not need to do anything for non-Elements
+       if ( dest.nodeType !== 1 ) {
+               return;
+       }
+
+       // clearAttributes removes the attributes, which we don't want,
+       // but also removes the attachEvent events, which we *do* want
+       if ( dest.clearAttributes ) {
+               dest.clearAttributes();
+       }
+
+       // mergeAttributes, in contrast, only merges back on the
+       // original attributes, not the events
+       if ( dest.mergeAttributes ) {
+               dest.mergeAttributes( src );
+       }
+
+       nodeName = dest.nodeName.toLowerCase();
+
+       // IE6-8 fail to clone children inside object elements that use
+       // the proprietary classid attribute value (rather than the type
+       // attribute) to identify the type of content to display
+       if ( nodeName === "object" ) {
+               dest.outerHTML = src.outerHTML;
+
+       } else if ( nodeName === "input" && (src.type === "checkbox" || src.type === "radio") ) {
+               // IE6-8 fails to persist the checked state of a cloned checkbox
+               // or radio button. Worse, IE6-7 fail to give the cloned element
+               // a checked appearance if the defaultChecked value isn't also set
+               if ( src.checked ) {
+                       dest.defaultChecked = dest.checked = src.checked;
+               }
+
+               // IE6-7 get confused and end up setting the value of a cloned
+               // checkbox/radio button to an empty string instead of "on"
+               if ( dest.value !== src.value ) {
+                       dest.value = src.value;
+               }
+
+       // IE6-8 fails to return the selected option to the default selected
+       // state when cloning options
+       } else if ( nodeName === "option" ) {
+               dest.selected = src.defaultSelected;
+
+       // IE6-8 fails to set the defaultValue to the correct value when
+       // cloning other types of input fields
+       } else if ( nodeName === "input" || nodeName === "textarea" ) {
+               dest.defaultValue = src.defaultValue;
+       }
+
+       // Event data gets referenced instead of copied if the expando
+       // gets copied too
+       dest.removeAttribute( jQuery.expando );
+}
+
+jQuery.buildFragment = function( args, nodes, scripts ) {
+       var fragment, cacheable, cacheresults, doc,
+       first = args[ 0 ];
+
+       // nodes may contain either an explicit document object,
+       // a jQuery collection or context object.
+       // If nodes[0] contains a valid object to assign to doc
+       if ( nodes && nodes[0] ) {
+               doc = nodes[0].ownerDocument || nodes[0];
+       }
+
+       // Ensure that an attr object doesn't incorrectly stand in as a document object
+       // Chrome and Firefox seem to allow this to occur and will throw exception
+       // Fixes #8950
+       if ( !doc.createDocumentFragment ) {
+               doc = document;
+       }
+
+       // Only cache "small" (1/2 KB) HTML strings that are associated with the main document
+       // Cloning options loses the selected state, so don't cache them
+       // IE 6 doesn't like it when you put <object> or <embed> elements in a fragment
+       // Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache
+       // Lastly, IE6,7,8 will not correctly reuse cached fragments that were created from unknown elems #10501
+       if ( args.length === 1 && typeof first === "string" && first.length < 512 && doc === document &&
+               first.charAt(0) === "<" && !rnocache.test( first ) &&
+               (jQuery.support.checkClone || !rchecked.test( first )) &&
+               (jQuery.support.html5Clone || !rnoshimcache.test( first )) ) {
+
+               cacheable = true;
+
+               cacheresults = jQuery.fragments[ first ];
+               if ( cacheresults && cacheresults !== 1 ) {
+                       fragment = cacheresults;
+               }
+       }
+
+       if ( !fragment ) {
+               fragment = doc.createDocumentFragment();
+               jQuery.clean( args, doc, fragment, scripts );
+       }
+
+       if ( cacheable ) {
+               jQuery.fragments[ first ] = cacheresults ? fragment : 1;
+       }
+
+       return { fragment: fragment, cacheable: cacheable };
+};
+
+jQuery.fragments = {};
+
+jQuery.each({
+       appendTo: "append",
+       prependTo: "prepend",
+       insertBefore: "before",
+       insertAfter: "after",
+       replaceAll: "replaceWith"
+}, function( name, original ) {
+       jQuery.fn[ name ] = function( selector ) {
+               var ret = [],
+                       insert = jQuery( selector ),
+                       parent = this.length === 1 && this[0].parentNode;
+
+               if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {
+                       insert[ original ]( this[0] );
+                       return this;
+
+               } else {
+                       for ( var i = 0, l = insert.length; i < l; i++ ) {
+                               var elems = ( i > 0 ? this.clone(true) : this ).get();
+                               jQuery( insert[i] )[ original ]( elems );
+                               ret = ret.concat( elems );
+                       }
+
+                       return this.pushStack( ret, name, insert.selector );
+               }
+       };
+});
+
+function getAll( elem ) {
+       if ( typeof elem.getElementsByTagName !== "undefined" ) {
+               return elem.getElementsByTagName( "*" );
+
+       } else if ( typeof elem.querySelectorAll !== "undefined" ) {
+               return elem.querySelectorAll( "*" );
+
+       } else {
+               return [];
+       }
+}
+
+// Used in clean, fixes the defaultChecked property
+function fixDefaultChecked( elem ) {
+       if ( elem.type === "checkbox" || elem.type === "radio" ) {
+               elem.defaultChecked = elem.checked;
+       }
+}
+// Finds all inputs and passes them to fixDefaultChecked
+function findInputs( elem ) {
+       var nodeName = ( elem.nodeName || "" ).toLowerCase();
+       if ( nodeName === "input" ) {
+               fixDefaultChecked( elem );
+       // Skip scripts, get other children
+       } else if ( nodeName !== "script" && typeof elem.getElementsByTagName !== "undefined" ) {
+               jQuery.grep( elem.getElementsByTagName("input"), fixDefaultChecked );
+       }
+}
+
+// Derived From: http://www.iecss.com/shimprove/javascript/shimprove.1-0-1.js
+function shimCloneNode( elem ) {
+       var div = document.createElement( "div" );
+       safeFragment.appendChild( div );
+
+       div.innerHTML = elem.outerHTML;
+       return div.firstChild;
+}
+
+jQuery.extend({
+       clone: function( elem, dataAndEvents, deepDataAndEvents ) {
+               var srcElements,
+                       destElements,
+                       i,
+                       // IE<=8 does not properly clone detached, unknown element nodes
+                       clone = jQuery.support.html5Clone || !rnoshimcache.test( "<" + elem.nodeName ) ?
+                               elem.cloneNode( true ) :
+                               shimCloneNode( elem );
+
+               if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) &&
+                               (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {
+                       // IE copies events bound via attachEvent when using cloneNode.
+                       // Calling detachEvent on the clone will also remove the events
+                       // from the original. In order to get around this, we use some
+                       // proprietary methods to clear the events. Thanks to MooTools
+                       // guys for this hotness.
+
+                       cloneFixAttributes( elem, clone );
+
+                       // Using Sizzle here is crazy slow, so we use getElementsByTagName instead
+                       srcElements = getAll( elem );
+                       destElements = getAll( clone );
+
+                       // Weird iteration because IE will replace the length property
+                       // with an element if you are cloning the body and one of the
+                       // elements on the page has a name or id of "length"
+                       for ( i = 0; srcElements[i]; ++i ) {
+                               // Ensure that the destination node is not null; Fixes #9587
+                               if ( destElements[i] ) {
+                                       cloneFixAttributes( srcElements[i], destElements[i] );
+                               }
+                       }
+               }
+
+               // Copy the events from the original to the clone
+               if ( dataAndEvents ) {
+                       cloneCopyEvent( elem, clone );
+
+                       if ( deepDataAndEvents ) {
+                               srcElements = getAll( elem );
+                               destElements = getAll( clone );
+
+                               for ( i = 0; srcElements[i]; ++i ) {
+                                       cloneCopyEvent( srcElements[i], destElements[i] );
+                               }
+                       }
+               }
+
+               srcElements = destElements = null;
+
+               // Return the cloned set
+               return clone;
+       },
+
+       clean: function( elems, context, fragment, scripts ) {
+               var checkScriptType;
+
+               context = context || document;
+
+               // !context.createElement fails in IE with an error but returns typeof 'object'
+               if ( typeof context.createElement === "undefined" ) {
+                       context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
+               }
+
+               var ret = [], j;
+
+               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
+                       if ( typeof elem === "number" ) {
+                               elem += "";
+                       }
+
+                       if ( !elem ) {
+                               continue;
+                       }
+
+                       // Convert html string into DOM nodes
+                       if ( typeof elem === "string" ) {
+                               if ( !rhtml.test( elem ) ) {
+                                       elem = context.createTextNode( elem );
+                               } else {
+                                       // Fix "XHTML"-style tags in all browsers
+                                       elem = elem.replace(rxhtmlTag, "<$1></$2>");
+
+                                       // Trim whitespace, otherwise indexOf won't work as expected
+                                       var tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase(),
+                                               wrap = wrapMap[ tag ] || wrapMap._default,
+                                               depth = wrap[0],
+                                               div = context.createElement("div");
+
+                                       // Append wrapper element to unknown element safe doc fragment
+                                       if ( context === document ) {
+                                               // Use the fragment we've already created for this document
+                                               safeFragment.appendChild( div );
+                                       } else {
+                                               // Use a fragment created with the owner document
+                                               createSafeFragment( context ).appendChild( div );
+                                       }
+
+                                       // Go to html and back, then peel off extra wrappers
+                                       div.innerHTML = wrap[1] + elem + wrap[2];
+
+                                       // Move to the right depth
+                                       while ( depth-- ) {
+                                               div = div.lastChild;
+                                       }
+
+                                       // Remove IE's autoinserted <tbody> from table fragments
+                                       if ( !jQuery.support.tbody ) {
+
+                                               // String was a <table>, *may* have spurious <tbody>
+                                               var hasBody = rtbody.test(elem),
+                                                       tbody = tag === "table" && !hasBody ?
+                                                               div.firstChild && div.firstChild.childNodes :
+
+                                                               // String was a bare <thead> or <tfoot>
+                                                               wrap[1] === "<table>" && !hasBody ?
+                                                                       div.childNodes :
+                                                                       [];
+
+                                               for ( j = tbody.length - 1; j >= 0 ; --j ) {
+                                                       if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
+                                                               tbody[ j ].parentNode.removeChild( tbody[ j ] );
+                                                       }
+                                               }
+                                       }
+
+                                       // IE completely kills leading whitespace when innerHTML is used
+                                       if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
+                                               div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );
+                                       }
+
+                                       elem = div.childNodes;
+                               }
+                       }
+
+                       // Resets defaultChecked for any radios and checkboxes
+                       // about to be appended to the DOM in IE 6/7 (#8060)
+                       var len;
+                       if ( !jQuery.support.appendChecked ) {
+                               if ( elem[0] && typeof (len = elem.length) === "number" ) {
+                                       for ( j = 0; j < len; j++ ) {
+                                               findInputs( elem[j] );
+                                       }
+                               } else {
+                                       findInputs( elem );
+                               }
+                       }
+
+                       if ( elem.nodeType ) {
+                               ret.push( elem );
+                       } else {
+                               ret = jQuery.merge( ret, elem );
+                       }
+               }
+
+               if ( fragment ) {
+                       checkScriptType = function( elem ) {
+                               return !elem.type || rscriptType.test( elem.type );
+                       };
+                       for ( i = 0; ret[i]; i++ ) {
+                               if ( scripts && jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
+                                       scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
+
+                               } else {
+                                       if ( ret[i].nodeType === 1 ) {
+                                               var jsTags = jQuery.grep( ret[i].getElementsByTagName( "script" ), checkScriptType );
+
+                                               ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) );
+                                       }
+                                       fragment.appendChild( ret[i] );
+                               }
+                       }
+               }
+
+               return ret;
+       },
+
+       cleanData: function( elems ) {
+               var data, id,
+                       cache = jQuery.cache,
+                       special = jQuery.event.special,
+                       deleteExpando = jQuery.support.deleteExpando;
+
+               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
+                       if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
+                               continue;
+                       }
+
+                       id = elem[ jQuery.expando ];
+
+                       if ( id ) {
+                               data = cache[ id ];
+
+                               if ( data && data.events ) {
+                                       for ( var type in data.events ) {
+                                               if ( special[ type ] ) {
+                                                       jQuery.event.remove( elem, type );
+
+                                               // This is a shortcut to avoid jQuery.event.remove's overhead
+                                               } else {
+                                                       jQuery.removeEvent( elem, type, data.handle );
+                                               }
+                                       }
+
+                                       // Null the DOM reference to avoid IE6/7/8 leak (#7054)
+                                       if ( data.handle ) {
+                                               data.handle.elem = null;
+                                       }
+                               }
+
+                               if ( deleteExpando ) {
+                                       delete elem[ jQuery.expando ];
+
+                               } else if ( elem.removeAttribute ) {
+                                       elem.removeAttribute( jQuery.expando );
+                               }
+
+                               delete cache[ id ];
+                       }
+               }
+       }
+});
+
+function evalScript( i, elem ) {
+       if ( elem.src ) {
+               jQuery.ajax({
+                       url: elem.src,
+                       async: false,
+                       dataType: "script"
+               });
+       } else {
+               jQuery.globalEval( ( elem.text || elem.textContent || elem.innerHTML || "" ).replace( rcleanScript, "/*$0*/" ) );
+       }
+
+       if ( elem.parentNode ) {
+               elem.parentNode.removeChild( elem );
+       }
+}
+
+
+
+
+var ralpha = /alpha\([^)]*\)/i,
+       ropacity = /opacity=([^)]*)/,
+       // fixed for IE9, see #8346
+       rupper = /([A-Z]|^ms)/g,
+       rnumpx = /^-?\d+(?:px)?$/i,
+       rnum = /^-?\d/,
+       rrelNum = /^([\-+])=([\-+.\de]+)/,
+
+       cssShow = { position: "absolute", visibility: "hidden", display: "block" },
+       cssWidth = [ "Left", "Right" ],
+       cssHeight = [ "Top", "Bottom" ],
+       curCSS,
+
+       getComputedStyle,
+       currentStyle;
+
+jQuery.fn.css = function( name, value ) {
+       // Setting 'undefined' is a no-op
+       if ( arguments.length === 2 && value === undefined ) {
+               return this;
+       }
+
+       return jQuery.access( this, name, value, true, function( elem, name, value ) {
+               return value !== undefined ?
+                       jQuery.style( elem, name, value ) :
+                       jQuery.css( elem, name );
+       });
+};
+
+jQuery.extend({
+       // Add in style property hooks for overriding the default
+       // behavior of getting and setting a style property
+       cssHooks: {
+               opacity: {
+                       get: function( elem, computed ) {
+                               if ( computed ) {
+                                       // We should always get a number back from opacity
+                                       var ret = curCSS( elem, "opacity", "opacity" );
+                                       return ret === "" ? "1" : ret;
+
+                               } else {
+                                       return elem.style.opacity;
+                               }
+                       }
+               }
+       },
+
+       // Exclude the following css properties to add px
+       cssNumber: {
+               "fillOpacity": true,
+               "fontWeight": true,
+               "lineHeight": true,
+               "opacity": true,
+               "orphans": true,
+               "widows": true,
+               "zIndex": true,
+               "zoom": true
+       },
+
+       // Add in properties whose names you wish to fix before
+       // setting or getting the value
+       cssProps: {
+               // normalize float css property
+               "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat"
+       },
+
+       // Get and set the style property on a DOM Node
+       style: function( elem, name, value, extra ) {
+               // Don't set styles on text and comment nodes
+               if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
+                       return;
+               }
+
+               // Make sure that we're working with the right name
+               var ret, type, origName = jQuery.camelCase( name ),
+                       style = elem.style, hooks = jQuery.cssHooks[ origName ];
+
+               name = jQuery.cssProps[ origName ] || origName;
+
+               // Check if we're setting a value
+               if ( value !== undefined ) {
+                       type = typeof value;
+
+                       // convert relative number strings (+= or -=) to relative numbers. #7345
+                       if ( type === "string" && (ret = rrelNum.exec( value )) ) {
+                               value = ( +( ret[1] + 1) * +ret[2] ) + parseFloat( jQuery.css( elem, name ) );
+                               // Fixes bug #9237
+                               type = "number";
+                       }
+
+                       // Make sure that NaN and null values aren't set. See: #7116
+                       if ( value == null || type === "number" && isNaN( value ) ) {
+                               return;
+                       }
+
+                       // If a number was passed in, add 'px' to the (except for certain CSS properties)
+                       if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
+                               value += "px";
+                       }
+
+                       // If a hook was provided, use that value, otherwise just set the specified value
+                       if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value )) !== undefined ) {
+                               // Wrapped to prevent IE from throwing errors when 'invalid' values are provided
+                               // Fixes bug #5509
+                               try {
+                                       style[ name ] = value;
+                               } catch(e) {}
+                       }
+
+               } else {
+                       // If a hook was provided get the non-computed value from there
+                       if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
+                               return ret;
+                       }
+
+                       // Otherwise just get the value from the style object
+                       return style[ name ];
+               }
+       },
+
+       css: function( elem, name, extra ) {
+               var ret, hooks;
+
+               // Make sure that we're working with the right name
+               name = jQuery.camelCase( name );
+               hooks = jQuery.cssHooks[ name ];
+               name = jQuery.cssProps[ name ] || name;
+
+               // cssFloat needs a special treatment
+               if ( name === "cssFloat" ) {
+                       name = "float";
+               }
+
+               // If a hook was provided get the computed value from there
+               if ( hooks && "get" in hooks && (ret = hooks.get( elem, true, extra )) !== undefined ) {
+                       return ret;
+
+               // Otherwise, if a way to get the computed value exists, use that
+               } else if ( curCSS ) {
+                       return curCSS( elem, name );
+               }
+       },
+
+       // A method for quickly swapping in/out CSS properties to get correct calculations
+       swap: function( elem, options, callback ) {
+               var old = {};
+
+               // Remember the old values, and insert the new ones
+               for ( var name in options ) {
+                       old[ name ] = elem.style[ name ];
+                       elem.style[ name ] = options[ name ];
+               }
+
+               callback.call( elem );
+
+               // Revert the old values
+               for ( name in options ) {
+                       elem.style[ name ] = old[ name ];
+               }
+       }
+});
+
+// DEPRECATED, Use jQuery.css() instead
+jQuery.curCSS = jQuery.css;
+
+jQuery.each(["height", "width"], function( i, name ) {
+       jQuery.cssHooks[ name ] = {
+               get: function( elem, computed, extra ) {
+                       var val;
+
+                       if ( computed ) {
+                               if ( elem.offsetWidth !== 0 ) {
+                                       return getWH( elem, name, extra );
+                               } else {
+                                       jQuery.swap( elem, cssShow, function() {
+                                               val = getWH( elem, name, extra );
+                                       });
+                               }
+
+                               return val;
+                       }
+               },
+
+               set: function( elem, value ) {
+                       if ( rnumpx.test( value ) ) {
+                               // ignore negative width and height values #1599
+                               value = parseFloat( value );
+
+                               if ( value >= 0 ) {
+                                       return value + "px";
+                               }
+
+                       } else {
+                               return value;
+                       }
+               }
+       };
+});
+
+if ( !jQuery.support.opacity ) {
+       jQuery.cssHooks.opacity = {
+               get: function( elem, computed ) {
+                       // IE uses filters for opacity
+                       return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
+                               ( parseFloat( RegExp.$1 ) / 100 ) + "" :
+                               computed ? "1" : "";
+               },
+
+               set: function( elem, value ) {
+                       var style = elem.style,
+                               currentStyle = elem.currentStyle,
+                               opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "",
+                               filter = currentStyle && currentStyle.filter || style.filter || "";
+
+                       // IE has trouble with opacity if it does not have layout
+                       // Force it by setting the zoom level
+                       style.zoom = 1;
+
+                       // if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
+                       if ( value >= 1 && jQuery.trim( filter.replace( ralpha, "" ) ) === "" ) {
+
+                               // Setting style.filter to null, "" & " " still leave "filter:" in the cssText
+                               // if "filter:" is present at all, clearType is disabled, we want to avoid this
+                               // style.removeAttribute is IE Only, but so apparently is this code path...
+                               style.removeAttribute( "filter" );
+
+                               // if there there is no filter style applied in a css rule, we are done
+                               if ( currentStyle && !currentStyle.filter ) {
+                                       return;
+                               }
+                       }
+
+                       // otherwise, set new filter values
+                       style.filter = ralpha.test( filter ) ?
+                               filter.replace( ralpha, opacity ) :
+                               filter + " " + opacity;
+               }
+       };
+}
+
+jQuery(function() {
+       // This hook cannot be added until DOM ready because the support test
+       // for it is not run until after DOM ready
+       if ( !jQuery.support.reliableMarginRight ) {
+               jQuery.cssHooks.marginRight = {
+                       get: function( elem, computed ) {
+                               // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
+                               // Work around by temporarily setting element display to inline-block
+                               var ret;
+                               jQuery.swap( elem, { "display": "inline-block" }, function() {
+                                       if ( computed ) {
+                                               ret = curCSS( elem, "margin-right", "marginRight" );
+                                       } else {
+                                               ret = elem.style.marginRight;
+                                       }
+                               });
+                               return ret;
+                       }
+               };
+       }
+});
+
+if ( document.defaultView && document.defaultView.getComputedStyle ) {
+       getComputedStyle = function( elem, name ) {
+               var ret, defaultView, computedStyle;
+
+               name = name.replace( rupper, "-$1" ).toLowerCase();
+
+               if ( (defaultView = elem.ownerDocument.defaultView) &&
+                               (computedStyle = defaultView.getComputedStyle( elem, null )) ) {
+                       ret = computedStyle.getPropertyValue( name );
+                       if ( ret === "" && !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) {
+                               ret = jQuery.style( elem, name );
+                       }
+               }
+
+               return ret;
+       };
+}
+
+if ( document.documentElement.currentStyle ) {
+       currentStyle = function( elem, name ) {
+               var left, rsLeft, uncomputed,
+                       ret = elem.currentStyle && elem.currentStyle[ name ],
+                       style = elem.style;
+
+               // Avoid setting ret to empty string here
+               // so we don't default to auto
+               if ( ret === null && style && (uncomputed = style[ name ]) ) {
+                       ret = uncomputed;
+               }
+
+               // From the awesome hack by Dean Edwards
+               // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
+
+               // If we're not dealing with a regular pixel number
+               // but a number that has a weird ending, we need to convert it to pixels
+               if ( !rnumpx.test( ret ) && rnum.test( ret ) ) {
+
+                       // Remember the original values
+                       left = style.left;
+                       rsLeft = elem.runtimeStyle && elem.runtimeStyle.left;
+
+                       // Put in the new values to get a computed value out
+                       if ( rsLeft ) {
+                               elem.runtimeStyle.left = elem.currentStyle.left;
+                       }
+                       style.left = name === "fontSize" ? "1em" : ( ret || 0 );
+                       ret = style.pixelLeft + "px";
+
+                       // Revert the changed values
+                       style.left = left;
+                       if ( rsLeft ) {
+                               elem.runtimeStyle.left = rsLeft;
+                       }
+               }
+
+               return ret === "" ? "auto" : ret;
+       };
+}
+
+curCSS = getComputedStyle || currentStyle;
+
+function getWH( elem, name, extra ) {
+
+       // Start with offset property
+       var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
+               which = name === "width" ? cssWidth : cssHeight,
+               i = 0,
+               len = which.length;
+
+       if ( val > 0 ) {
+               if ( extra !== "border" ) {
+                       for ( ; i < len; i++ ) {
+                               if ( !extra ) {
+                                       val -= parseFloat( jQuery.css( elem, "padding" + which[ i ] ) ) || 0;
+                               }
+                               if ( extra === "margin" ) {
+                                       val += parseFloat( jQuery.css( elem, extra + which[ i ] ) ) || 0;
+                               } else {
+                                       val -= parseFloat( jQuery.css( elem, "border" + which[ i ] + "Width" ) ) || 0;
+                               }
+                       }
+               }
+
+               return val + "px";
+       }
+
+       // Fall back to computed then uncomputed css if necessary
+       val = curCSS( elem, name, name );
+       if ( val < 0 || val == null ) {
+               val = elem.style[ name ] || 0;
+       }
+       // Normalize "", auto, and prepare for extra
+       val = parseFloat( val ) || 0;
+
+       // Add padding, border, margin
+       if ( extra ) {
+               for ( ; i < len; i++ ) {
+                       val += parseFloat( jQuery.css( elem, "padding" + which[ i ] ) ) || 0;
+                       if ( extra !== "padding" ) {
+                               val += parseFloat( jQuery.css( elem, "border" + which[ i ] + "Width" ) ) || 0;
+                       }
+                       if ( extra === "margin" ) {
+                               val += parseFloat( jQuery.css( elem, extra + which[ i ] ) ) || 0;
+                       }
+               }
+       }
+
+       return val + "px";
+}
+
+if ( jQuery.expr && jQuery.expr.filters ) {
+       jQuery.expr.filters.hidden = function( elem ) {
+               var width = elem.offsetWidth,
+                       height = elem.offsetHeight;
+
+               return ( width === 0 && height === 0 ) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");
+       };
+
+       jQuery.expr.filters.visible = function( elem ) {
+               return !jQuery.expr.filters.hidden( elem );
+       };
+}
+
+
+
+
+var r20 = /%20/g,
+       rbracket = /\[\]$/,
+       rCRLF = /\r?\n/g,
+       rhash = /#.*$/,
+       rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
+       rinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
+       // #7653, #8125, #8152: local protocol detection
+       rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,
+       rnoContent = /^(?:GET|HEAD)$/,
+       rprotocol = /^\/\//,
+       rquery = /\?/,
+       rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
+       rselectTextarea = /^(?:select|textarea)/i,
+       rspacesAjax = /\s+/,
+       rts = /([?&])_=[^&]*/,
+       rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,
+
+       // Keep a copy of the old load method
+       _load = jQuery.fn.load,
+
+       /* Prefilters
+        * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
+        * 2) These are called:
+        *    - BEFORE asking for a transport
+        *    - AFTER param serialization (s.data is a string if s.processData is true)
+        * 3) key is the dataType
+        * 4) the catchall symbol "*" can be used
+        * 5) execution will start with transport dataType and THEN continue down to "*" if needed
+        */
+       prefilters = {},
+
+       /* Transports bindings
+        * 1) key is the dataType
+        * 2) the catchall symbol "*" can be used
+        * 3) selection will start with transport dataType and THEN go to "*" if needed
+        */
+       transports = {},
+
+       // Document location
+       ajaxLocation,
+
+       // Document location segments
+       ajaxLocParts,
+
+       // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
+       allTypes = ["*/"] + ["*"];
+
+// #8138, IE may throw an exception when accessing
+// a field from window.location if document.domain has been set
+try {
+       ajaxLocation = location.href;
+} catch( e ) {
+       // Use the href attribute of an A element
+       // since IE will modify it given document.location
+       ajaxLocation = document.createElement( "a" );
+       ajaxLocation.href = "";
+       ajaxLocation = ajaxLocation.href;
+}
+
+// Segment location into parts
+ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
+
+// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
+function addToPrefiltersOrTransports( structure ) {
+
+       // dataTypeExpression is optional and defaults to "*"
+       return function( dataTypeExpression, func ) {
+
+               if ( typeof dataTypeExpression !== "string" ) {
+                       func = dataTypeExpression;
+                       dataTypeExpression = "*";
+               }
+
+               if ( jQuery.isFunction( func ) ) {
+                       var dataTypes = dataTypeExpression.toLowerCase().split( rspacesAjax ),
+                               i = 0,
+                               length = dataTypes.length,
+                               dataType,
+                               list,
+                               placeBefore;
+
+                       // For each dataType in the dataTypeExpression
+                       for ( ; i < length; i++ ) {
+                               dataType = dataTypes[ i ];
+                               // We control if we're asked to add before
+                               // any existing element
+                               placeBefore = /^\+/.test( dataType );
+                               if ( placeBefore ) {
+                                       dataType = dataType.substr( 1 ) || "*";
+                               }
+                               list = structure[ dataType ] = structure[ dataType ] || [];
+                               // then we add to the structure accordingly
+                               list[ placeBefore ? "unshift" : "push" ]( func );
+                       }
+               }
+       };
+}
+
+// Base inspection function for prefilters and transports
+function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR,
+               dataType /* internal */, inspected /* internal */ ) {
+
+       dataType = dataType || options.dataTypes[ 0 ];
+       inspected = inspected || {};
+
+       inspected[ dataType ] = true;
+
+       var list = structure[ dataType ],
+               i = 0,
+               length = list ? list.length : 0,
+               executeOnly = ( structure === prefilters ),
+               selection;
+
+       for ( ; i < length && ( executeOnly || !selection ); i++ ) {
+               selection = list[ i ]( options, originalOptions, jqXHR );
+               // If we got redirected to another dataType
+               // we try there if executing only and not done already
+               if ( typeof selection === "string" ) {
+                       if ( !executeOnly || inspected[ selection ] ) {
+                               selection = undefined;
+                       } else {
+                               options.dataTypes.unshift( selection );
+                               selection = inspectPrefiltersOrTransports(
+                                               structure, options, originalOptions, jqXHR, selection, inspected );
+                       }
+               }
+       }
+       // If we're only executing or nothing was selected
+       // we try the catchall dataType if not done already
+       if ( ( executeOnly || !selection ) && !inspected[ "*" ] ) {
+               selection = inspectPrefiltersOrTransports(
+                               structure, options, originalOptions, jqXHR, "*", inspected );
+       }
+       // unnecessary when only executing (prefilters)
+       // but it'll be ignored by the caller in that case
+       return selection;
+}
+
+// A special extend for ajax options
+// that takes "flat" options (not to be deep extended)
+// Fixes #9887
+function ajaxExtend( target, src ) {
+       var key, deep,
+               flatOptions = jQuery.ajaxSettings.flatOptions || {};
+       for ( key in src ) {
+               if ( src[ key ] !== undefined ) {
+                       ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
+               }
+       }
+       if ( deep ) {
+               jQuery.extend( true, target, deep );
+       }
+}
+
+jQuery.fn.extend({
+       load: function( url, params, callback ) {
+               if ( typeof url !== "string" && _load ) {
+                       return _load.apply( this, arguments );
+
+               // Don't do a request if no elements are being requested
+               } else if ( !this.length ) {
+                       return this;
+               }
+
+               var off = url.indexOf( " " );
+               if ( off >= 0 ) {
+                       var selector = url.slice( off, url.length );
+                       url = url.slice( 0, off );
+               }
+
+               // Default to a GET request
+               var type = "GET";
+
+               // If the second parameter was provided
+               if ( params ) {
+                       // If it's a function
+                       if ( jQuery.isFunction( params ) ) {
+                               // We assume that it's the callback
+                               callback = params;
+                               params = undefined;
+
+                       // Otherwise, build a param string
+                       } else if ( typeof params === "object" ) {
+                               params = jQuery.param( params, jQuery.ajaxSettings.traditional );
+                               type = "POST";
+                       }
+               }
+
+               var self = this;
+
+               // Request the remote document
+               jQuery.ajax({
+                       url: url,
+                       type: type,
+                       dataType: "html",
+                       data: params,
+                       // Complete callback (responseText is used internally)
+                       complete: function( jqXHR, status, responseText ) {
+                               // Store the response as specified by the jqXHR object
+                               responseText = jqXHR.responseText;
+                               // If successful, inject the HTML into all the matched elements
+                               if ( jqXHR.isResolved() ) {
+                                       // #4825: Get the actual response in case
+                                       // a dataFilter is present in ajaxSettings
+                                       jqXHR.done(function( r ) {
+                                               responseText = r;
+                                       });
+                                       // See if a selector was specified
+                                       self.html( selector ?
+                                               // Create a dummy div to hold the results
+                                               jQuery("<div>")
+                                                       // inject the contents of the document in, removing the scripts
+                                                       // to avoid any 'Permission Denied' errors in IE
+                                                       .append(responseText.replace(rscript, ""))
+
+                                                       // Locate the specified elements
+                                                       .find(selector) :
+
+                                               // If not, just inject the full result
+                                               responseText );
+                               }
+
+                               if ( callback ) {
+                                       self.each( callback, [ responseText, status, jqXHR ] );
+                               }
+                       }
+               });
+
+               return this;
+       },
+
+       serialize: function() {
+               return jQuery.param( this.serializeArray() );
+       },
+
+       serializeArray: function() {
+               return this.map(function(){
+                       return this.elements ? jQuery.makeArray( this.elements ) : this;
+               })
+               .filter(function(){
+                       return this.name && !this.disabled &&
+                               ( this.checked || rselectTextarea.test( this.nodeName ) ||
+                                       rinput.test( this.type ) );
+               })
+               .map(function( i, elem ){
+                       var val = jQuery( this ).val();
+
+                       return val == null ?
+                               null :
+                               jQuery.isArray( val ) ?
+                                       jQuery.map( val, function( val, i ){
+                                               return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
+                                       }) :
+                                       { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
+               }).get();
+       }
+});
+
+// Attach a bunch of functions for handling common AJAX events
+jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split( " " ), function( i, o ){
+       jQuery.fn[ o ] = function( f ){
+               return this.on( o, f );
+       };
+});
+
+jQuery.each( [ "get", "post" ], function( i, method ) {
+       jQuery[ method ] = function( url, data, callback, type ) {
+               // shift arguments if data argument was omitted
+               if ( jQuery.isFunction( data ) ) {
+                       type = type || callback;
+                       callback = data;
+                       data = undefined;
+               }
+
+               return jQuery.ajax({
+                       type: method,
+                       url: url,
+                       data: data,
+                       success: callback,
+                       dataType: type
+               });
+       };
+});
+
+jQuery.extend({
+
+       getScript: function( url, callback ) {
+               return jQuery.get( url, undefined, callback, "script" );
+       },
+
+       getJSON: function( url, data, callback ) {
+               return jQuery.get( url, data, callback, "json" );
+       },
+
+       // Creates a full fledged settings object into target
+       // with both ajaxSettings and settings fields.
+       // If target is omitted, writes into ajaxSettings.
+       ajaxSetup: function( target, settings ) {
+               if ( settings ) {
+                       // Building a settings object
+                       ajaxExtend( target, jQuery.ajaxSettings );
+               } else {
+                       // Extending ajaxSettings
+                       settings = target;
+                       target = jQuery.ajaxSettings;
+               }
+               ajaxExtend( target, settings );
+               return target;
+       },
+
+       ajaxSettings: {
+               url: ajaxLocation,
+               isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
+               global: true,
+               type: "GET",
+               contentType: "application/x-www-form-urlencoded",
+               processData: true,
+               async: true,
+               /*
+               timeout: 0,
+               data: null,
+               dataType: null,
+               username: null,
+               password: null,
+               cache: null,
+               traditional: false,
+               headers: {},
+               */
+
+               accepts: {
+                       xml: "application/xml, text/xml",
+                       html: "text/html",
+                       text: "text/plain",
+                       json: "application/json, text/javascript",
+                       "*": allTypes
+               },
+
+               contents: {
+                       xml: /xml/,
+                       html: /html/,
+                       json: /json/
+               },
+
+               responseFields: {
+                       xml: "responseXML",
+                       text: "responseText"
+               },
+
+               // List of data converters
+               // 1) key format is "source_type destination_type" (a single space in-between)
+               // 2) the catchall symbol "*" can be used for source_type
+               converters: {
+
+                       // Convert anything to text
+                       "* text": window.String,
+
+                       // Text to html (true = no transformation)
+                       "text html": true,
+
+                       // Evaluate text as a json expression
+                       "text json": jQuery.parseJSON,
+
+                       // Parse text as xml
+                       "text xml": jQuery.parseXML
+               },
+
+               // For options that shouldn't be deep extended:
+               // you can add your own custom options here if
+               // and when you create one that shouldn't be
+               // deep extended (see ajaxExtend)
+               flatOptions: {
+                       context: true,
+                       url: true
+               }
+       },
+
+       ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
+       ajaxTransport: addToPrefiltersOrTransports( transports ),
+
+       // Main method
+       ajax: function( url, options ) {
+
+               // If url is an object, simulate pre-1.5 signature
+               if ( typeof url === "object" ) {
+                       options = url;
+                       url = undefined;
+               }
+
+               // Force options to be an object
+               options = options || {};
+
+               var // Create the final options object
+                       s = jQuery.ajaxSetup( {}, options ),
+                       // Callbacks context
+                       callbackContext = s.context || s,
+                       // Context for global events
+                       // It's the callbackContext if one was provided in the options
+                       // and if it's a DOM node or a jQuery collection
+                       globalEventContext = callbackContext !== s &&
+                               ( callbackContext.nodeType || callbackContext instanceof jQuery ) ?
+                                               jQuery( callbackContext ) : jQuery.event,
+                       // Deferreds
+                       deferred = jQuery.Deferred(),
+                       completeDeferred = jQuery.Callbacks( "once memory" ),
+                       // Status-dependent callbacks
+                       statusCode = s.statusCode || {},
+                       // ifModified key
+                       ifModifiedKey,
+                       // Headers (they are sent all at once)
+                       requestHeaders = {},
+                       requestHeadersNames = {},
+                       // Response headers
+                       responseHeadersString,
+                       responseHeaders,
+                       // transport
+                       transport,
+                       // timeout handle
+                       timeoutTimer,
+                       // Cross-domain detection vars
+                       parts,
+                       // The jqXHR state
+                       state = 0,
+                       // To know if global events are to be dispatched
+                       fireGlobals,
+                       // Loop variable
+                       i,
+                       // Fake xhr
+                       jqXHR = {
+
+                               readyState: 0,
+
+                               // Caches the header
+                               setRequestHeader: function( name, value ) {
+                                       if ( !state ) {
+                                               var lname = name.toLowerCase();
+                                               name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
+                                               requestHeaders[ name ] = value;
+                                       }
+                                       return this;
+                               },
+
+                               // Raw string
+                               getAllResponseHeaders: function() {
+                                       return state === 2 ? responseHeadersString : null;
+                               },
+
+                               // Builds headers hashtable if needed
+                               getResponseHeader: function( key ) {
+                                       var match;
+                                       if ( state === 2 ) {
+                                               if ( !responseHeaders ) {
+                                                       responseHeaders = {};
+                                                       while( ( match = rheaders.exec( responseHeadersString ) ) ) {
+                                                               responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
+                                                       }
+                                               }
+                                               match = responseHeaders[ key.toLowerCase() ];
+                                       }
+                                       return match === undefined ? null : match;
+                               },
+
+                               // Overrides response content-type header
+                               overrideMimeType: function( type ) {
+                                       if ( !state ) {
+                                               s.mimeType = type;
+                                       }
+                                       return this;
+                               },
+
+                               // Cancel the request
+                               abort: function( statusText ) {
+                                       statusText = statusText || "abort";
+                                       if ( transport ) {
+                                               transport.abort( statusText );
+                                       }
+                                       done( 0, statusText );
+                                       return this;
+                               }
+                       };
+
+               // Callback for when everything is done
+               // It is defined here because jslint complains if it is declared
+               // at the end of the function (which would be more logical and readable)
+               function done( status, nativeStatusText, responses, headers ) {
+
+                       // Called once
+                       if ( state === 2 ) {
+                               return;
+                       }
+
+                       // State is "done" now
+                       state = 2;
+
+                       // Clear timeout if it exists
+                       if ( timeoutTimer ) {
+                               clearTimeout( timeoutTimer );
+                       }
+
+                       // Dereference transport for early garbage collection
+                       // (no matter how long the jqXHR object will be used)
+                       transport = undefined;
+
+                       // Cache response headers
+                       responseHeadersString = headers || "";
+
+                       // Set readyState
+                       jqXHR.readyState = status > 0 ? 4 : 0;
+
+                       var isSuccess,
+                               success,
+                               error,
+                               statusText = nativeStatusText,
+                               response = responses ? ajaxHandleResponses( s, jqXHR, responses ) : undefined,
+                               lastModified,
+                               etag;
+
+                       // If successful, handle type chaining
+                       if ( status >= 200 && status < 300 || status === 304 ) {
+
+                               // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
+                               if ( s.ifModified ) {
+
+                                       if ( ( lastModified = jqXHR.getResponseHeader( "Last-Modified" ) ) ) {
+                                               jQuery.lastModified[ ifModifiedKey ] = lastModified;
+                                       }
+                                       if ( ( etag = jqXHR.getResponseHeader( "Etag" ) ) ) {
+                                               jQuery.etag[ ifModifiedKey ] = etag;
+                                       }
+                               }
+
+                               // If not modified
+                               if ( status === 304 ) {
+
+                                       statusText = "notmodified";
+                                       isSuccess = true;
+
+                               // If we have data
+                               } else {
+
+                                       try {
+                                               success = ajaxConvert( s, response );
+                                               statusText = "success";
+                                               isSuccess = true;
+                                       } catch(e) {
+                                               // We have a parsererror
+                                               statusText = "parsererror";
+                                               error = e;
+                                       }
+                               }
+                       } else {
+                               // We extract error from statusText
+                               // then normalize statusText and status for non-aborts
+                               error = statusText;
+                               if ( !statusText || status ) {
+                                       statusText = "error";
+                                       if ( status < 0 ) {
+                                               status = 0;
+                                       }
+                               }
+                       }
+
+                       // Set data for the fake xhr object
+                       jqXHR.status = status;
+                       jqXHR.statusText = "" + ( nativeStatusText || statusText );
+
+                       // Success/Error
+                       if ( isSuccess ) {
+                               deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
+                       } else {
+                               deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
+                       }
+
+                       // Status-dependent callbacks
+                       jqXHR.statusCode( statusCode );
+                       statusCode = undefined;
+
+                       if ( fireGlobals ) {
+                               globalEventContext.trigger( "ajax" + ( isSuccess ? "Success" : "Error" ),
+                                               [ jqXHR, s, isSuccess ? success : error ] );
+                       }
+
+                       // Complete
+                       completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
+
+                       if ( fireGlobals ) {
+                               globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
+                               // Handle the global AJAX counter
+                               if ( !( --jQuery.active ) ) {
+                                       jQuery.event.trigger( "ajaxStop" );
+                               }
+                       }
+               }
+
+               // Attach deferreds
+               deferred.promise( jqXHR );
+               jqXHR.success = jqXHR.done;
+               jqXHR.error = jqXHR.fail;
+               jqXHR.complete = completeDeferred.add;
+
+               // Status-dependent callbacks
+               jqXHR.statusCode = function( map ) {
+                       if ( map ) {
+                               var tmp;
+                               if ( state < 2 ) {
+                                       for ( tmp in map ) {
+                                               statusCode[ tmp ] = [ statusCode[tmp], map[tmp] ];
+                                       }
+                               } else {
+                                       tmp = map[ jqXHR.status ];
+                                       jqXHR.then( tmp, tmp );
+                               }
+                       }
+                       return this;
+               };
+
+               // Remove hash character (#7531: and string promotion)
+               // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
+               // We also use the url parameter if available
+               s.url = ( ( url || s.url ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
+
+               // Extract dataTypes list
+               s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( rspacesAjax );
+
+               // Determine if a cross-domain request is in order
+               if ( s.crossDomain == null ) {
+                       parts = rurl.exec( s.url.toLowerCase() );
+                       s.crossDomain = !!( parts &&
+                               ( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||
+                                       ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
+                                               ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) )
+                       );
+               }
+
+               // Convert data if not already a string
+               if ( s.data && s.processData && typeof s.data !== "string" ) {
+                       s.data = jQuery.param( s.data, s.traditional );
+               }
+
+               // Apply prefilters
+               inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
+
+               // If request was aborted inside a prefiler, stop there
+               if ( state === 2 ) {
+                       return false;
+               }
+
+               // We can fire global events as of now if asked to
+               fireGlobals = s.global;
+
+               // Uppercase the type
+               s.type = s.type.toUpperCase();
+
+               // Determine if request has content
+               s.hasContent = !rnoContent.test( s.type );
+
+               // Watch for a new set of requests
+               if ( fireGlobals && jQuery.active++ === 0 ) {
+                       jQuery.event.trigger( "ajaxStart" );
+               }
+
+               // More options handling for requests with no content
+               if ( !s.hasContent ) {
+
+                       // If data is available, append data to url
+                       if ( s.data ) {
+                               s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.data;
+                               // #9682: remove data so that it's not used in an eventual retry
+                               delete s.data;
+                       }
+
+                       // Get ifModifiedKey before adding the anti-cache parameter
+                       ifModifiedKey = s.url;
+
+                       // Add anti-cache in url if needed
+                       if ( s.cache === false ) {
+
+                               var ts = jQuery.now(),
+                                       // try replacing _= if it is there
+                                       ret = s.url.replace( rts, "$1_=" + ts );
+
+                               // if nothing was replaced, add timestamp to the end
+                               s.url = ret + ( ( ret === s.url ) ? ( rquery.test( s.url ) ? "&" : "?" ) + "_=" + ts : "" );
+                       }
+               }
+
+               // Set the correct header, if data is being sent
+               if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
+                       jqXHR.setRequestHeader( "Content-Type", s.contentType );
+               }
+
+               // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
+               if ( s.ifModified ) {
+                       ifModifiedKey = ifModifiedKey || s.url;
+                       if ( jQuery.lastModified[ ifModifiedKey ] ) {
+                               jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ ifModifiedKey ] );
+                       }
+                       if ( jQuery.etag[ ifModifiedKey ] ) {
+                               jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ ifModifiedKey ] );
+                       }
+               }
+
+               // Set the Accepts header for the server, depending on the dataType
+               jqXHR.setRequestHeader(
+                       "Accept",
+                       s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
+                               s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
+                               s.accepts[ "*" ]
+               );
+
+               // Check for headers option
+               for ( i in s.headers ) {
+                       jqXHR.setRequestHeader( i, s.headers[ i ] );
+               }
+
+               // Allow custom headers/mimetypes and early abort
+               if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
+                               // Abort if not done already
+                               jqXHR.abort();
+                               return false;
+
+               }
+
+               // Install callbacks on deferreds
+               for ( i in { success: 1, error: 1, complete: 1 } ) {
+                       jqXHR[ i ]( s[ i ] );
+               }
+
+               // Get transport
+               transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
+
+               // If no transport, we auto-abort
+               if ( !transport ) {
+                       done( -1, "No Transport" );
+               } else {
+                       jqXHR.readyState = 1;
+                       // Send global event
+                       if ( fireGlobals ) {
+                               globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
+                       }
+                       // Timeout
+                       if ( s.async && s.timeout > 0 ) {
+                               timeoutTimer = setTimeout( function(){
+                                       jqXHR.abort( "timeout" );
+                               }, s.timeout );
+                       }
+
+                       try {
+                               state = 1;
+                               transport.send( requestHeaders, done );
+                       } catch (e) {
+                               // Propagate exception as error if not done
+                               if ( state < 2 ) {
+                                       done( -1, e );
+                               // Simply rethrow otherwise
+                               } else {
+                                       throw e;
+                               }
+                       }
+               }
+
+               return jqXHR;
+       },
+
+       // Serialize an array of form elements or a set of
+       // key/values into a query string
+       param: function( a, traditional ) {
+               var s = [],
+                       add = function( key, value ) {
+                               // If value is a function, invoke it and return its value
+                               value = jQuery.isFunction( value ) ? value() : value;
+                               s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
+                       };
+
+               // Set traditional to true for jQuery <= 1.3.2 behavior.
+               if ( traditional === undefined ) {
+                       traditional = jQuery.ajaxSettings.traditional;
+               }
+
+               // If an array was passed in, assume that it is an array of form elements.
+               if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
+                       // Serialize the form elements
+                       jQuery.each( a, function() {
+                               add( this.name, this.value );
+                       });
+
+               } else {
+                       // If traditional, encode the "old" way (the way 1.3.2 or older
+                       // did it), otherwise encode params recursively.
+                       for ( var prefix in a ) {
+                               buildParams( prefix, a[ prefix ], traditional, add );
+                       }
+               }
+
+               // Return the resulting serialization
+               return s.join( "&" ).replace( r20, "+" );
+       }
+});
+
+function buildParams( prefix, obj, traditional, add ) {
+       if ( jQuery.isArray( obj ) ) {
+               // Serialize array item.
+               jQuery.each( obj, function( i, v ) {
+                       if ( traditional || rbracket.test( prefix ) ) {
+                               // Treat each array item as a scalar.
+                               add( prefix, v );
+
+                       } else {
+                               // If array item is non-scalar (array or object), encode its
+                               // numeric index to resolve deserialization ambiguity issues.
+                               // Note that rack (as of 1.0.0) can't currently deserialize
+                               // nested arrays properly, and attempting to do so may cause
+                               // a server error. Possible fixes are to modify rack's
+                               // deserialization algorithm or to provide an option or flag
+                               // to force array serialization to be shallow.
+                               buildParams( prefix + "[" + ( typeof v === "object" || jQuery.isArray(v) ? i : "" ) + "]", v, traditional, add );
+                       }
+               });
+
+       } else if ( !traditional && obj != null && typeof obj === "object" ) {
+               // Serialize object item.
+               for ( var name in obj ) {
+                       buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
+               }
+
+       } else {
+               // Serialize scalar item.
+               add( prefix, obj );
+       }
+}
+
+// This is still on the jQuery object... for now
+// Want to move this to jQuery.ajax some day
+jQuery.extend({
+
+       // Counter for holding the number of active queries
+       active: 0,
+
+       // Last-Modified header cache for next request
+       lastModified: {},
+       etag: {}
+
+});
+
+/* Handles responses to an ajax request:
+ * - sets all responseXXX fields accordingly
+ * - finds the right dataType (mediates between content-type and expected dataType)
+ * - returns the corresponding response
+ */
+function ajaxHandleResponses( s, jqXHR, responses ) {
+
+       var contents = s.contents,
+               dataTypes = s.dataTypes,
+               responseFields = s.responseFields,
+               ct,
+               type,
+               finalDataType,
+               firstDataType;
+
+       // Fill responseXXX fields
+       for ( type in responseFields ) {
+               if ( type in responses ) {
+                       jqXHR[ responseFields[type] ] = responses[ type ];
+               }
+       }
+
+       // Remove auto dataType and get content-type in the process
+       while( dataTypes[ 0 ] === "*" ) {
+               dataTypes.shift();
+               if ( ct === undefined ) {
+                       ct = s.mimeType || jqXHR.getResponseHeader( "content-type" );
+               }
+       }
+
+       // Check if we're dealing with a known content-type
+       if ( ct ) {
+               for ( type in contents ) {
+                       if ( contents[ type ] && contents[ type ].test( ct ) ) {
+                               dataTypes.unshift( type );
+                               break;
+                       }
+               }
+       }
+
+       // Check to see if we have a response for the expected dataType
+       if ( dataTypes[ 0 ] in responses ) {
+               finalDataType = dataTypes[ 0 ];
+       } else {
+               // Try convertible dataTypes
+               for ( type in responses ) {
+                       if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
+                               finalDataType = type;
+                               break;
+                       }
+                       if ( !firstDataType ) {
+                               firstDataType = type;
+                       }
+               }
+               // Or just use first one
+               finalDataType = finalDataType || firstDataType;
+       }
+
+       // If we found a dataType
+       // We add the dataType to the list if needed
+       // and return the corresponding response
+       if ( finalDataType ) {
+               if ( finalDataType !== dataTypes[ 0 ] ) {
+                       dataTypes.unshift( finalDataType );
+               }
+               return responses[ finalDataType ];
+       }
+}
+
+// Chain conversions given the request and the original response
+function ajaxConvert( s, response ) {
+
+       // Apply the dataFilter if provided
+       if ( s.dataFilter ) {
+               response = s.dataFilter( response, s.dataType );
+       }
+
+       var dataTypes = s.dataTypes,
+               converters = {},
+               i,
+               key,
+               length = dataTypes.length,
+               tmp,
+               // Current and previous dataTypes
+               current = dataTypes[ 0 ],
+               prev,
+               // Conversion expression
+               conversion,
+               // Conversion function
+               conv,
+               // Conversion functions (transitive conversion)
+               conv1,
+               conv2;
+
+       // For each dataType in the chain
+       for ( i = 1; i < length; i++ ) {
+
+               // Create converters map
+               // with lowercased keys
+               if ( i === 1 ) {
+                       for ( key in s.converters ) {
+                               if ( typeof key === "string" ) {
+                                       converters[ key.toLowerCase() ] = s.converters[ key ];
+                               }
+                       }
+               }
+
+               // Get the dataTypes
+               prev = current;
+               current = dataTypes[ i ];
+
+               // If current is auto dataType, update it to prev
+               if ( current === "*" ) {
+                       current = prev;
+               // If no auto and dataTypes are actually different
+               } else if ( prev !== "*" && prev !== current ) {
+
+                       // Get the converter
+                       conversion = prev + " " + current;
+                       conv = converters[ conversion ] || converters[ "* " + current ];
+
+                       // If there is no direct converter, search transitively
+                       if ( !conv ) {
+                               conv2 = undefined;
+                               for ( conv1 in converters ) {
+                                       tmp = conv1.split( " " );
+                                       if ( tmp[ 0 ] === prev || tmp[ 0 ] === "*" ) {
+                                               conv2 = converters[ tmp[1] + " " + current ];
+                                               if ( conv2 ) {
+                                                       conv1 = converters[ conv1 ];
+                                                       if ( conv1 === true ) {
+                                                               conv = conv2;
+                                                       } else if ( conv2 === true ) {
+                                                               conv = conv1;
+                                                       }
+                                                       break;
+                                               }
+                                       }
+                               }
+                       }
+                       // If we found no converter, dispatch an error
+                       if ( !( conv || conv2 ) ) {
+                               jQuery.error( "No conversion from " + conversion.replace(" "," to ") );
+                       }
+                       // If found converter is not an equivalence
+                       if ( conv !== true ) {
+                               // Convert with 1 or 2 converters accordingly
+                               response = conv ? conv( response ) : conv2( conv1(response) );
+                       }
+               }
+       }
+       return response;
+}
+
+
+
+
+var jsc = jQuery.now(),
+       jsre = /(\=)\?(&|$)|\?\?/i;
+
+// Default jsonp settings
+jQuery.ajaxSetup({
+       jsonp: "callback",
+       jsonpCallback: function() {
+               return jQuery.expando + "_" + ( jsc++ );
+       }
+});
+
+// Detect, normalize options and install callbacks for jsonp requests
+jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
+
+       var inspectData = s.contentType === "application/x-www-form-urlencoded" &&
+               ( typeof s.data === "string" );
+
+       if ( s.dataTypes[ 0 ] === "jsonp" ||
+               s.jsonp !== false && ( jsre.test( s.url ) ||
+                               inspectData && jsre.test( s.data ) ) ) {
+
+               var responseContainer,
+                       jsonpCallback = s.jsonpCallback =
+                               jQuery.isFunction( s.jsonpCallback ) ? s.jsonpCallback() : s.jsonpCallback,
+                       previous = window[ jsonpCallback ],
+                       url = s.url,
+                       data = s.data,
+                       replace = "$1" + jsonpCallback + "$2";
+
+               if ( s.jsonp !== false ) {
+                       url = url.replace( jsre, replace );
+                       if ( s.url === url ) {
+                               if ( inspectData ) {
+                                       data = data.replace( jsre, replace );
+                               }
+                               if ( s.data === data ) {
+                                       // Add callback manually
+                                       url += (/\?/.test( url ) ? "&" : "?") + s.jsonp + "=" + jsonpCallback;
+                               }
+                       }
+               }
+
+               s.url = url;
+               s.data = data;
+
+               // Install callback
+               window[ jsonpCallback ] = function( response ) {
+                       responseContainer = [ response ];
+               };
+
+               // Clean-up function
+               jqXHR.always(function() {
+                       // Set callback back to previous value
+                       window[ jsonpCallback ] = previous;
+                       // Call if it was a function and we have a response
+                       if ( responseContainer && jQuery.isFunction( previous ) ) {
+                               window[ jsonpCallback ]( responseContainer[ 0 ] );
+                       }
+               });
+
+               // Use data converter to retrieve json after script execution
+               s.converters["script json"] = function() {
+                       if ( !responseContainer ) {
+                               jQuery.error( jsonpCallback + " was not called" );
+                       }
+                       return responseContainer[ 0 ];
+               };
+
+               // force json dataType
+               s.dataTypes[ 0 ] = "json";
+
+               // Delegate to script
+               return "script";
+       }
+});
+
+
+
+
+// Install script dataType
+jQuery.ajaxSetup({
+       accepts: {
+               script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
+       },
+       contents: {
+               script: /javascript|ecmascript/
+       },
+       converters: {
+               "text script": function( text ) {
+                       jQuery.globalEval( text );
+                       return text;
+               }
+       }
+});
+
+// Handle cache's special case and global
+jQuery.ajaxPrefilter( "script", function( s ) {
+       if ( s.cache === undefined ) {
+               s.cache = false;
+       }
+       if ( s.crossDomain ) {
+               s.type = "GET";
+               s.global = false;
+       }
+});
+
+// Bind script tag hack transport
+jQuery.ajaxTransport( "script", function(s) {
+
+       // This transport only deals with cross domain requests
+       if ( s.crossDomain ) {
+
+               var script,
+                       head = document.head || document.getElementsByTagName( "head" )[0] || document.documentElement;
+
+               return {
+
+                       send: function( _, callback ) {
+
+                               script = document.createElement( "script" );
+
+                               script.async = "async";
+
+                               if ( s.scriptCharset ) {
+                                       script.charset = s.scriptCharset;
+                               }
+
+                               script.src = s.url;
+
+                               // Attach handlers for all browsers
+                               script.onload = script.onreadystatechange = function( _, isAbort ) {
+
+                                       if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {
+
+                                               // Handle memory leak in IE
+                                               script.onload = script.onreadystatechange = null;
+
+                                               // Remove the script
+                                               if ( head && script.parentNode ) {
+                                                       head.removeChild( script );
+                                               }
+
+                                               // Dereference the script
+                                               script = undefined;
+
+                                               // Callback if not abort
+                                               if ( !isAbort ) {
+                                                       callback( 200, "success" );
+                                               }
+                                       }
+                               };
+                               // Use insertBefore instead of appendChild  to circumvent an IE6 bug.
+                               // This arises when a base node is used (#2709 and #4378).
+                               head.insertBefore( script, head.firstChild );
+                       },
+
+                       abort: function() {
+                               if ( script ) {
+                                       script.onload( 0, 1 );
+                               }
+                       }
+               };
+       }
+});
+
+
+
+
+var // #5280: Internet Explorer will keep connections alive if we don't abort on unload
+       xhrOnUnloadAbort = window.ActiveXObject ? function() {
+               // Abort all pending requests
+               for ( var key in xhrCallbacks ) {
+                       xhrCallbacks[ key ]( 0, 1 );
+               }
+       } : false,
+       xhrId = 0,
+       xhrCallbacks;
+
+// Functions to create xhrs
+function createStandardXHR() {
+       try {
+               return new window.XMLHttpRequest();
+       } catch( e ) {}
+}
+
+function createActiveXHR() {
+       try {
+               return new window.ActiveXObject( "Microsoft.XMLHTTP" );
+       } catch( e ) {}
+}
+
+// Create the request object
+// (This is still attached to ajaxSettings for backward compatibility)
+jQuery.ajaxSettings.xhr = window.ActiveXObject ?
+       /* Microsoft failed to properly
+        * implement the XMLHttpRequest in IE7 (can't request local files),
+        * so we use the ActiveXObject when it is available
+        * Additionally XMLHttpRequest can be disabled in IE7/IE8 so
+        * we need a fallback.
+        */
+       function() {
+               return !this.isLocal && createStandardXHR() || createActiveXHR();
+       } :
+       // For all other browsers, use the standard XMLHttpRequest object
+       createStandardXHR;
+
+// Determine support properties
+(function( xhr ) {
+       jQuery.extend( jQuery.support, {
+               ajax: !!xhr,
+               cors: !!xhr && ( "withCredentials" in xhr )
+       });
+})( jQuery.ajaxSettings.xhr() );
+
+// Create transport if the browser can provide an xhr
+if ( jQuery.support.ajax ) {
+
+       jQuery.ajaxTransport(function( s ) {
+               // Cross domain only allowed if supported through XMLHttpRequest
+               if ( !s.crossDomain || jQuery.support.cors ) {
+
+                       var callback;
+
+                       return {
+                               send: function( headers, complete ) {
+
+                                       // Get a new xhr
+                                       var xhr = s.xhr(),
+                                               handle,
+                                               i;
+
+                                       // Open the socket
+                                       // Passing null username, generates a login popup on Opera (#2865)
+                                       if ( s.username ) {
+                                               xhr.open( s.type, s.url, s.async, s.username, s.password );
+                                       } else {
+                                               xhr.open( s.type, s.url, s.async );
+                                       }
+
+                                       // Apply custom fields if provided
+                                       if ( s.xhrFields ) {
+                                               for ( i in s.xhrFields ) {
+                                                       xhr[ i ] = s.xhrFields[ i ];
+                                               }
+                                       }
+
+                                       // Override mime type if needed
+                                       if ( s.mimeType && xhr.overrideMimeType ) {
+                                               xhr.overrideMimeType( s.mimeType );
+                                       }
+
+                                       // X-Requested-With header
+                                       // For cross-domain requests, seeing as conditions for a preflight are
+                                       // akin to a jigsaw puzzle, we simply never set it to be sure.
+                                       // (it can always be set on a per-request basis or even using ajaxSetup)
+                                       // For same-domain requests, won't change header if already provided.
+                                       if ( !s.crossDomain && !headers["X-Requested-With"] ) {
+                                               headers[ "X-Requested-With" ] = "XMLHttpRequest";
+                                       }
+
+                                       // Need an extra try/catch for cross domain requests in Firefox 3
+                                       try {
+                                               for ( i in headers ) {
+                                                       xhr.setRequestHeader( i, headers[ i ] );
+                                               }
+                                       } catch( _ ) {}
+
+                                       // Do send the request
+                                       // This may raise an exception which is actually
+                                       // handled in jQuery.ajax (so no try/catch here)
+                                       xhr.send( ( s.hasContent && s.data ) || null );
+
+                                       // Listener
+                                       callback = function( _, isAbort ) {
+
+                                               var status,
+                                                       statusText,
+                                                       responseHeaders,
+                                                       responses,
+                                                       xml;
+
+                                               // Firefox throws exceptions when accessing properties
+                                               // of an xhr when a network error occured
+                                               // http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
+                                               try {
+
+                                                       // Was never called and is aborted or complete
+                                                       if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
+
+                                                               // Only called once
+                                                               callback = undefined;
+
+                                                               // Do not keep as active anymore
+                                                               if ( handle ) {
+                                                                       xhr.onreadystatechange = jQuery.noop;
+                                                                       if ( xhrOnUnloadAbort ) {
+                                                                               delete xhrCallbacks[ handle ];
+                                                                       }
+                                                               }
+
+                                                               // If it's an abort
+                                                               if ( isAbort ) {
+                                                                       // Abort it manually if needed
+                                                                       if ( xhr.readyState !== 4 ) {
+                                                                               xhr.abort();
+                                                                       }
+                                                               } else {
+                                                                       status = xhr.status;
+                                                                       responseHeaders = xhr.getAllResponseHeaders();
+                                                                       responses = {};
+                                                                       xml = xhr.responseXML;
+
+                                                                       // Construct response list
+                                                                       if ( xml && xml.documentElement /* #4958 */ ) {
+                                                                               responses.xml = xml;
+                                                                       }
+                                                                       responses.text = xhr.responseText;
+
+                                                                       // Firefox throws an exception when accessing
+                                                                       // statusText for faulty cross-domain requests
+                                                                       try {
+                                                                               statusText = xhr.statusText;
+                                                                       } catch( e ) {
+                                                                               // We normalize with Webkit giving an empty statusText
+                                                                               statusText = "";
+                                                                       }
+
+                                                                       // Filter status for non standard behaviors
+
+                                                                       // If the request is local and we have data: assume a success
+                                                                       // (success with no data won't get notified, that's the best we
+                                                                       // can do given current implementations)
+                                                                       if ( !status && s.isLocal && !s.crossDomain ) {
+                                                                               status = responses.text ? 200 : 404;
+                                                                       // IE - #1450: sometimes returns 1223 when it should be 204
+                                                                       } else if ( status === 1223 ) {
+                                                                               status = 204;
+                                                                       }
+                                                               }
+                                                       }
+                                               } catch( firefoxAccessException ) {
+                                                       if ( !isAbort ) {
+                                                               complete( -1, firefoxAccessException );
+                                                       }
+                                               }
+
+                                               // Call complete if needed
+                                               if ( responses ) {
+                                                       complete( status, statusText, responses, responseHeaders );
+                                               }
+                                       };
+
+                                       // if we're in sync mode or it's in cache
+                                       // and has been retrieved directly (IE6 & IE7)
+                                       // we need to manually fire the callback
+                                       if ( !s.async || xhr.readyState === 4 ) {
+                                               callback();
+                                       } else {
+                                               handle = ++xhrId;
+                                               if ( xhrOnUnloadAbort ) {
+                                                       // Create the active xhrs callbacks list if needed
+                                                       // and attach the unload handler
+                                                       if ( !xhrCallbacks ) {
+                                                               xhrCallbacks = {};
+                                                               jQuery( window ).unload( xhrOnUnloadAbort );
+                                                       }
+                                                       // Add to list of active xhrs callbacks
+                                                       xhrCallbacks[ handle ] = callback;
+                                               }
+                                               xhr.onreadystatechange = callback;
+                                       }
+                               },
+
+                               abort: function() {
+                                       if ( callback ) {
+                                               callback(0,1);
+                                       }
+                               }
+                       };
+               }
+       });
+}
+
+
+
+
+var elemdisplay = {},
+       iframe, iframeDoc,
+       rfxtypes = /^(?:toggle|show|hide)$/,
+       rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
+       timerId,
+       fxAttrs = [
+               // height animations
+               [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
+               // width animations
+               [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
+               // opacity animations
+               [ "opacity" ]
+       ],
+       fxNow;
+
+jQuery.fn.extend({
+       show: function( speed, easing, callback ) {
+               var elem, display;
+
+               if ( speed || speed === 0 ) {
+                       return this.animate( genFx("show", 3), speed, easing, callback );
+
+               } else {
+                       for ( var i = 0, j = this.length; i < j; i++ ) {
+                               elem = this[ i ];
+
+                               if ( elem.style ) {
+                                       display = elem.style.display;
+
+                                       // Reset the inline display of this element to learn if it is
+                                       // being hidden by cascaded rules or not
+                                       if ( !jQuery._data(elem, "olddisplay") && display === "none" ) {
+                                               display = elem.style.display = "";
+                                       }
+
+                                       // Set elements which have been overridden with display: none
+                                       // in a stylesheet to whatever the default browser style is
+                                       // for such an element
+                                       if ( display === "" && jQuery.css(elem, "display") === "none" ) {
+                                               jQuery._data( elem, "olddisplay", defaultDisplay(elem.nodeName) );
+                                       }
+                               }
+                       }
+
+                       // Set the display of most of the elements in a second loop
+                       // to avoid the constant reflow
+                       for ( i = 0; i < j; i++ ) {
+                               elem = this[ i ];
+
+                               if ( elem.style ) {
+                                       display = elem.style.display;
+
+                                       if ( display === "" || display === "none" ) {
+                                               elem.style.display = jQuery._data( elem, "olddisplay" ) || "";
+                                       }
+                               }
+                       }
+
+                       return this;
+               }
+       },
+
+       hide: function( speed, easing, callback ) {
+               if ( speed || speed === 0 ) {
+                       return this.animate( genFx("hide", 3), speed, easing, callback);
+
+               } else {
+                       var elem, display,
+                               i = 0,
+                               j = this.length;
+
+                       for ( ; i < j; i++ ) {
+                               elem = this[i];
+                               if ( elem.style ) {
+                                       display = jQuery.css( elem, "display" );
+
+                                       if ( display !== "none" && !jQuery._data( elem, "olddisplay" ) ) {
+                                               jQuery._data( elem, "olddisplay", display );
+                                       }
+                               }
+                       }
+
+                       // Set the display of the elements in a second loop
+                       // to avoid the constant reflow
+                       for ( i = 0; i < j; i++ ) {
+                               if ( this[i].style ) {
+                                       this[i].style.display = "none";
+                               }
+                       }
+
+                       return this;
+               }
+       },
+
+       // Save the old toggle function
+       _toggle: jQuery.fn.toggle,
+
+       toggle: function( fn, fn2, callback ) {
+               var bool = typeof fn === "boolean";
+
+               if ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) {
+                       this._toggle.apply( this, arguments );
+
+               } else if ( fn == null || bool ) {
+                       this.each(function() {
+                               var state = bool ? fn : jQuery(this).is(":hidden");
+                               jQuery(this)[ state ? "show" : "hide" ]();
+                       });
+
+               } else {
+                       this.animate(genFx("toggle", 3), fn, fn2, callback);
+               }
+
+               return this;
+       },
+
+       fadeTo: function( speed, to, easing, callback ) {
+               return this.filter(":hidden").css("opacity", 0).show().end()
+                                       .animate({opacity: to}, speed, easing, callback);
+       },
+
+       animate: function( prop, speed, easing, callback ) {
+               var optall = jQuery.speed( speed, easing, callback );
+
+               if ( jQuery.isEmptyObject( prop ) ) {
+                       return this.each( optall.complete, [ false ] );
+               }
+
+               // Do not change referenced properties as per-property easing will be lost
+               prop = jQuery.extend( {}, prop );
+
+               function doAnimation() {
+                       // XXX 'this' does not always have a nodeName when running the
+                       // test suite
+
+                       if ( optall.queue === false ) {
+                               jQuery._mark( this );
+                       }
+
+                       var opt = jQuery.extend( {}, optall ),
+                               isElement = this.nodeType === 1,
+                               hidden = isElement && jQuery(this).is(":hidden"),
+                               name, val, p, e,
+                               parts, start, end, unit,
+                               method;
+
+                       // will store per property easing and be used to determine when an animation is complete
+                       opt.animatedProperties = {};
+
+                       for ( p in prop ) {
+
+                               // property name normalization
+                               name = jQuery.camelCase( p );
+                               if ( p !== name ) {
+                                       prop[ name ] = prop[ p ];
+                                       delete prop[ p ];
+                               }
+
+                               val = prop[ name ];
+
+                               // easing resolution: per property > opt.specialEasing > opt.easing > 'swing' (default)
+                               if ( jQuery.isArray( val ) ) {
+                                       opt.animatedProperties[ name ] = val[ 1 ];
+                                       val = prop[ name ] = val[ 0 ];
+                               } else {
+                                       opt.animatedProperties[ name ] = opt.specialEasing && opt.specialEasing[ name ] || opt.easing || 'swing';
+                               }
+
+                               if ( val === "hide" && hidden || val === "show" && !hidden ) {
+                                       return opt.complete.call( this );
+                               }
+
+                               if ( isElement && ( name === "height" || name === "width" ) ) {
+                                       // Make sure that nothing sneaks out
+                                       // Record all 3 overflow attributes because IE does not
+                                       // change the overflow attribute when overflowX and
+                                       // overflowY are set to the same value
+                                       opt.overflow = [ this.style.overflow, this.style.overflowX, this.style.overflowY ];
+
+                                       // Set display property to inline-block for height/width
+                                       // animations on inline elements that are having width/height animated
+                                       if ( jQuery.css( this, "display" ) === "inline" &&
+                                                       jQuery.css( this, "float" ) === "none" ) {
+
+                                               // inline-level elements accept inline-block;
+                                               // block-level elements need to be inline with layout
+                                               if ( !jQuery.support.inlineBlockNeedsLayout || defaultDisplay( this.nodeName ) === "inline" ) {
+                                                       this.style.display = "inline-block";
+
+                                               } else {
+                                                       this.style.zoom = 1;
+                                               }
+                                       }
+                               }
+                       }
+
+                       if ( opt.overflow != null ) {
+                               this.style.overflow = "hidden";
+                       }
+
+                       for ( p in prop ) {
+                               e = new jQuery.fx( this, opt, p );
+                               val = prop[ p ];
+
+                               if ( rfxtypes.test( val ) ) {
+
+                                       // Tracks whether to show or hide based on private
+                                       // data attached to the element
+                                       method = jQuery._data( this, "toggle" + p ) || ( val === "toggle" ? hidden ? "show" : "hide" : 0 );
+                                       if ( method ) {
+                                               jQuery._data( this, "toggle" + p, method === "show" ? "hide" : "show" );
+                                               e[ method ]();
+                                       } else {
+                                               e[ val ]();
+                                       }
+
+                               } else {
+                                       parts = rfxnum.exec( val );
+                                       start = e.cur();
+
+                                       if ( parts ) {
+                                               end = parseFloat( parts[2] );
+                                               unit = parts[3] || ( jQuery.cssNumber[ p ] ? "" : "px" );
+
+                                               // We need to compute starting value
+                                               if ( unit !== "px" ) {
+                                                       jQuery.style( this, p, (end || 1) + unit);
+                                                       start = ( (end || 1) / e.cur() ) * start;
+                                                       jQuery.style( this, p, start + unit);
+                                               }
+
+                                               // If a +=/-= token was provided, we're doing a relative animation
+                                               if ( parts[1] ) {
+                                                       end = ( (parts[ 1 ] === "-=" ? -1 : 1) * end ) + start;
+                                               }
+
+                                               e.custom( start, end, unit );
+
+                                       } else {
+                                               e.custom( start, val, "" );
+                                       }
+                               }
+                       }
+
+                       // For JS strict compliance
+                       return true;
+               }
+
+               return optall.queue === false ?
+                       this.each( doAnimation ) :
+                       this.queue( optall.queue, doAnimation );
+       },
+
+       stop: function( type, clearQueue, gotoEnd ) {
+               if ( typeof type !== "string" ) {
+                       gotoEnd = clearQueue;
+                       clearQueue = type;
+                       type = undefined;
+               }
+               if ( clearQueue && type !== false ) {
+                       this.queue( type || "fx", [] );
+               }
+
+               return this.each(function() {
+                       var index,
+                               hadTimers = false,
+                               timers = jQuery.timers,
+                               data = jQuery._data( this );
+
+                       // clear marker counters if we know they won't be
+                       if ( !gotoEnd ) {
+                               jQuery._unmark( true, this );
+                       }
+
+                       function stopQueue( elem, data, index ) {
+                               var hooks = data[ index ];
+                               jQuery.removeData( elem, index, true );
+                               hooks.stop( gotoEnd );
+                       }
+
+                       if ( type == null ) {
+                               for ( index in data ) {
+                                       if ( data[ index ] && data[ index ].stop && index.indexOf(".run") === index.length - 4 ) {
+                                               stopQueue( this, data, index );
+                                       }
+                               }
+                       } else if ( data[ index = type + ".run" ] && data[ index ].stop ){
+                               stopQueue( this, data, index );
+                       }
+
+                       for ( index = timers.length; index--; ) {
+                               if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {
+                                       if ( gotoEnd ) {
+
+                                               // force the next step to be the last
+                                               timers[ index ]( true );
+                                       } else {
+                                               timers[ index ].saveState();
+                                       }
+                                       hadTimers = true;
+                                       timers.splice( index, 1 );
+                               }
+                       }
+
+                       // start the next in the queue if the last step wasn't forced
+                       // timers currently will call their complete callbacks, which will dequeue
+                       // but only if they were gotoEnd
+                       if ( !( gotoEnd && hadTimers ) ) {
+                               jQuery.dequeue( this, type );
+                       }
+               });
+       }
+
+});
+
+// Animations created synchronously will run synchronously
+function createFxNow() {
+       setTimeout( clearFxNow, 0 );
+       return ( fxNow = jQuery.now() );
+}
+
+function clearFxNow() {
+       fxNow = undefined;
+}
+
+// Generate parameters to create a standard animation
+function genFx( type, num ) {
+       var obj = {};
+
+       jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice( 0, num )), function() {
+               obj[ this ] = type;
+       });
+
+       return obj;
+}
+
+// Generate shortcuts for custom animations
+jQuery.each({
+       slideDown: genFx( "show", 1 ),
+       slideUp: genFx( "hide", 1 ),
+       slideToggle: genFx( "toggle", 1 ),
+       fadeIn: { opacity: "show" },
+       fadeOut: { opacity: "hide" },
+       fadeToggle: { opacity: "toggle" }
+}, function( name, props ) {
+       jQuery.fn[ name ] = function( speed, easing, callback ) {
+               return this.animate( props, speed, easing, callback );
+       };
+});
+
+jQuery.extend({
+       speed: function( speed, easing, fn ) {
+               var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
+                       complete: fn || !fn && easing ||
+                               jQuery.isFunction( speed ) && speed,
+                       duration: speed,
+                       easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
+               };
+
+               opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
+                       opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
+
+               // normalize opt.queue - true/undefined/null -> "fx"
+               if ( opt.queue == null || opt.queue === true ) {
+                       opt.queue = "fx";
+               }
+
+               // Queueing
+               opt.old = opt.complete;
+
+               opt.complete = function( noUnmark ) {
+                       if ( jQuery.isFunction( opt.old ) ) {
+                               opt.old.call( this );
+                       }
+
+                       if ( opt.queue ) {
+                               jQuery.dequeue( this, opt.queue );
+                       } else if ( noUnmark !== false ) {
+                               jQuery._unmark( this );
+                       }
+               };
+
+               return opt;
+       },
+
+       easing: {
+               linear: function( p, n, firstNum, diff ) {
+                       return firstNum + diff * p;
+               },
+               swing: function( p, n, firstNum, diff ) {
+                       return ( ( -Math.cos( p*Math.PI ) / 2 ) + 0.5 ) * diff + firstNum;
+               }
+       },
+
+       timers: [],
+
+       fx: function( elem, options, prop ) {
+               this.options = options;
+               this.elem = elem;
+               this.prop = prop;
+
+               options.orig = options.orig || {};
+       }
+
+});
+
+jQuery.fx.prototype = {
+       // Simple function for setting a style value
+       update: function() {
+               if ( this.options.step ) {
+                       this.options.step.call( this.elem, this.now, this );
+               }
+
+               ( jQuery.fx.step[ this.prop ] || jQuery.fx.step._default )( this );
+       },
+
+       // Get the current size
+       cur: function() {
+               if ( this.elem[ this.prop ] != null && (!this.elem.style || this.elem.style[ this.prop ] == null) ) {
+                       return this.elem[ this.prop ];
+               }
+
+               var parsed,
+                       r = jQuery.css( this.elem, this.prop );
+               // Empty strings, null, undefined and "auto" are converted to 0,
+               // complex values such as "rotate(1rad)" are returned as is,
+               // simple values such as "10px" are parsed to Float.
+               return isNaN( parsed = parseFloat( r ) ) ? !r || r === "auto" ? 0 : r : parsed;
+       },
+
+       // Start an animation from one number to another
+       custom: function( from, to, unit ) {
+               var self = this,
+                       fx = jQuery.fx;
+
+               this.startTime = fxNow || createFxNow();
+               this.end = to;
+               this.now = this.start = from;
+               this.pos = this.state = 0;
+               this.unit = unit || this.unit || ( jQuery.cssNumber[ this.prop ] ? "" : "px" );
+
+               function t( gotoEnd ) {
+                       return self.step( gotoEnd );
+               }
+
+               t.queue = this.options.queue;
+               t.elem = this.elem;
+               t.saveState = function() {
+                       if ( self.options.hide && jQuery._data( self.elem, "fxshow" + self.prop ) === undefined ) {
+                               jQuery._data( self.elem, "fxshow" + self.prop, self.start );
+                       }
+               };
+
+               if ( t() && jQuery.timers.push(t) && !timerId ) {
+                       timerId = setInterval( fx.tick, fx.interval );
+               }
+       },
+
+       // Simple 'show' function
+       show: function() {
+               var dataShow = jQuery._data( this.elem, "fxshow" + this.prop );
+
+               // Remember where we started, so that we can go back to it later
+               this.options.orig[ this.prop ] = dataShow || jQuery.style( this.elem, this.prop );
+               this.options.show = true;
+
+               // Begin the animation
+               // Make sure that we start at a small width/height to avoid any flash of content
+               if ( dataShow !== undefined ) {
+                       // This show is picking up where a previous hide or show left off
+                       this.custom( this.cur(), dataShow );
+               } else {
+                       this.custom( this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur() );
+               }
+
+               // Start by showing the element
+               jQuery( this.elem ).show();
+       },
+
+       // Simple 'hide' function
+       hide: function() {
+               // Remember where we started, so that we can go back to it later
+               this.options.orig[ this.prop ] = jQuery._data( this.elem, "fxshow" + this.prop ) || jQuery.style( this.elem, this.prop );
+               this.options.hide = true;
+
+               // Begin the animation
+               this.custom( this.cur(), 0 );
+       },
+
+       // Each step of an animation
+       step: function( gotoEnd ) {
+               var p, n, complete,
+                       t = fxNow || createFxNow(),
+                       done = true,
+                       elem = this.elem,
+                       options = this.options;
+
+               if ( gotoEnd || t >= options.duration + this.startTime ) {
+                       this.now = this.end;
+                       this.pos = this.state = 1;
+                       this.update();
+
+                       options.animatedProperties[ this.prop ] = true;
+
+                       for ( p in options.animatedProperties ) {
+                               if ( options.animatedProperties[ p ] !== true ) {
+                                       done = false;
+                               }
+                       }
+
+                       if ( done ) {
+                               // Reset the overflow
+                               if ( options.overflow != null && !jQuery.support.shrinkWrapBlocks ) {
+
+                                       jQuery.each( [ "", "X", "Y" ], function( index, value ) {
+                                               elem.style[ "overflow" + value ] = options.overflow[ index ];
+                                       });
+                               }
+
+                               // Hide the element if the "hide" operation was done
+                               if ( options.hide ) {
+                                       jQuery( elem ).hide();
+                               }
+
+                               // Reset the properties, if the item has been hidden or shown
+                               if ( options.hide || options.show ) {
+                                       for ( p in options.animatedProperties ) {
+                                               jQuery.style( elem, p, options.orig[ p ] );
+                                               jQuery.removeData( elem, "fxshow" + p, true );
+                                               // Toggle data is no longer needed
+                                               jQuery.removeData( elem, "toggle" + p, true );
+                                       }
+                               }
+
+                               // Execute the complete function
+                               // in the event that the complete function throws an exception
+                               // we must ensure it won't be called twice. #5684
+
+                               complete = options.complete;
+                               if ( complete ) {
+
+                                       options.complete = false;
+                                       complete.call( elem );
+                               }
+                       }
+
+                       return false;
+
+               } else {
+                       // classical easing cannot be used with an Infinity duration
+                       if ( options.duration == Infinity ) {
+                               this.now = t;
+                       } else {
+                               n = t - this.startTime;
+                               this.state = n / options.duration;
+
+                               // Perform the easing function, defaults to swing
+                               this.pos = jQuery.easing[ options.animatedProperties[this.prop] ]( this.state, n, 0, 1, options.duration );
+                               this.now = this.start + ( (this.end - this.start) * this.pos );
+                       }
+                       // Perform the next step of the animation
+                       this.update();
+               }
+
+               return true;
+       }
+};
+
+jQuery.extend( jQuery.fx, {
+       tick: function() {
+               var timer,
+                       timers = jQuery.timers,
+                       i = 0;
+
+               for ( ; i < timers.length; i++ ) {
+                       timer = timers[ i ];
+                       // Checks the timer has not already been removed
+                       if ( !timer() && timers[ i ] === timer ) {
+                               timers.splice( i--, 1 );
+                       }
+               }
+
+               if ( !timers.length ) {
+                       jQuery.fx.stop();
+               }
+       },
+
+       interval: 13,
+
+       stop: function() {
+               clearInterval( timerId );
+               timerId = null;
+       },
+
+       speeds: {
+               slow: 600,
+               fast: 200,
+               // Default speed
+               _default: 400
+       },
+
+       step: {
+               opacity: function( fx ) {
+                       jQuery.style( fx.elem, "opacity", fx.now );
+               },
+
+               _default: function( fx ) {
+                       if ( fx.elem.style && fx.elem.style[ fx.prop ] != null ) {
+                               fx.elem.style[ fx.prop ] = fx.now + fx.unit;
+                       } else {
+                               fx.elem[ fx.prop ] = fx.now;
+                       }
+               }
+       }
+});
+
+// Adds width/height step functions
+// Do not set anything below 0
+jQuery.each([ "width", "height" ], function( i, prop ) {
+       jQuery.fx.step[ prop ] = function( fx ) {
+               jQuery.style( fx.elem, prop, Math.max(0, fx.now) + fx.unit );
+       };
+});
+
+if ( jQuery.expr && jQuery.expr.filters ) {
+       jQuery.expr.filters.animated = function( elem ) {
+               return jQuery.grep(jQuery.timers, function( fn ) {
+                       return elem === fn.elem;
+               }).length;
+       };
+}
+
+// Try to restore the default display value of an element
+function defaultDisplay( nodeName ) {
+
+       if ( !elemdisplay[ nodeName ] ) {
+
+               var body = document.body,
+                       elem = jQuery( "<" + nodeName + ">" ).appendTo( body ),
+                       display = elem.css( "display" );
+               elem.remove();
+
+               // If the simple way fails,
+               // get element's real default display by attaching it to a temp iframe
+               if ( display === "none" || display === "" ) {
+                       // No iframe to use yet, so create it
+                       if ( !iframe ) {
+                               iframe = document.createElement( "iframe" );
+                               iframe.frameBorder = iframe.width = iframe.height = 0;
+                       }
+
+                       body.appendChild( iframe );
+
+                       // Create a cacheable copy of the iframe document on first call.
+                       // IE and Opera will allow us to reuse the iframeDoc without re-writing the fake HTML
+                       // document to it; WebKit & Firefox won't allow reusing the iframe document.
+                       if ( !iframeDoc || !iframe.createElement ) {
+                               iframeDoc = ( iframe.contentWindow || iframe.contentDocument ).document;
+                               iframeDoc.write( ( document.compatMode === "CSS1Compat" ? "<!doctype html>" : "" ) + "<html><body>" );
+                               iframeDoc.close();
+                       }
+
+                       elem = iframeDoc.createElement( nodeName );
+
+                       iframeDoc.body.appendChild( elem );
+
+                       display = jQuery.css( elem, "display" );
+                       body.removeChild( iframe );
+               }
+
+               // Store the correct default display
+               elemdisplay[ nodeName ] = display;
+       }
+
+       return elemdisplay[ nodeName ];
+}
+
+
+
+
+var rtable = /^t(?:able|d|h)$/i,
+       rroot = /^(?:body|html)$/i;
+
+if ( "getBoundingClientRect" in document.documentElement ) {
+       jQuery.fn.offset = function( options ) {
+               var elem = this[0], box;
+
+               if ( options ) {
+                       return this.each(function( i ) {
+                               jQuery.offset.setOffset( this, options, i );
+                       });
+               }
+
+               if ( !elem || !elem.ownerDocument ) {
+                       return null;
+               }
+
+               if ( elem === elem.ownerDocument.body ) {
+                       return jQuery.offset.bodyOffset( elem );
+               }
+
+               try {
+                       box = elem.getBoundingClientRect();
+               } catch(e) {}
+
+               var doc = elem.ownerDocument,
+                       docElem = doc.documentElement;
+
+               // Make sure we're not dealing with a disconnected DOM node
+               if ( !box || !jQuery.contains( docElem, elem ) ) {
+                       return box ? { top: box.top, left: box.left } : { top: 0, left: 0 };
+               }
+
+               var body = doc.body,
+                       win = getWindow(doc),
+                       clientTop  = docElem.clientTop  || body.clientTop  || 0,
+                       clientLeft = docElem.clientLeft || body.clientLeft || 0,
+                       scrollTop  = win.pageYOffset || jQuery.support.boxModel && docElem.scrollTop  || body.scrollTop,
+                       scrollLeft = win.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft,
+                       top  = box.top  + scrollTop  - clientTop,
+                       left = box.left + scrollLeft - clientLeft;
+
+               return { top: top, left: left };
+       };
+
+} else {
+       jQuery.fn.offset = function( options ) {
+               var elem = this[0];
+
+               if ( options ) {
+                       return this.each(function( i ) {
+                               jQuery.offset.setOffset( this, options, i );
+                       });
+               }
+
+               if ( !elem || !elem.ownerDocument ) {
+                       return null;
+               }
+
+               if ( elem === elem.ownerDocument.body ) {
+                       return jQuery.offset.bodyOffset( elem );
+               }
+
+               var computedStyle,
+                       offsetParent = elem.offsetParent,
+                       prevOffsetParent = elem,
+                       doc = elem.ownerDocument,
+                       docElem = doc.documentElement,
+                       body = doc.body,
+                       defaultView = doc.defaultView,
+                       prevComputedStyle = defaultView ? defaultView.getComputedStyle( elem, null ) : elem.currentStyle,
+                       top = elem.offsetTop,
+                       left = elem.offsetLeft;
+
+               while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
+                       if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {
+                               break;
+                       }
+
+                       computedStyle = defaultView ? defaultView.getComputedStyle(elem, null) : elem.currentStyle;
+                       top  -= elem.scrollTop;
+                       left -= elem.scrollLeft;
+
+                       if ( elem === offsetParent ) {
+                               top  += elem.offsetTop;
+                               left += elem.offsetLeft;
+
+                               if ( jQuery.support.doesNotAddBorder && !(jQuery.support.doesAddBorderForTableAndCells && rtable.test(elem.nodeName)) ) {
+                                       top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
+                                       left += parseFloat( computedStyle.borderLeftWidth ) || 0;
+                               }
+
+                               prevOffsetParent = offsetParent;
+                               offsetParent = elem.offsetParent;
+                       }
+
+                       if ( jQuery.support.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" ) {
+                               top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
+                               left += parseFloat( computedStyle.borderLeftWidth ) || 0;
+                       }
+
+                       prevComputedStyle = computedStyle;
+               }
+
+               if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" ) {
+                       top  += body.offsetTop;
+                       left += body.offsetLeft;
+               }
+
+               if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {
+                       top  += Math.max( docElem.scrollTop, body.scrollTop );
+                       left += Math.max( docElem.scrollLeft, body.scrollLeft );
+               }
+
+               return { top: top, left: left };
+       };
+}
+
+jQuery.offset = {
+
+       bodyOffset: function( body ) {
+               var top = body.offsetTop,
+                       left = body.offsetLeft;
+
+               if ( jQuery.support.doesNotIncludeMarginInBodyOffset ) {
+                       top  += parseFloat( jQuery.css(body, "marginTop") ) || 0;
+                       left += parseFloat( jQuery.css(body, "marginLeft") ) || 0;
+               }
+
+               return { top: top, left: left };
+       },
+
+       setOffset: function( elem, options, i ) {
+               var position = jQuery.css( elem, "position" );
+
+               // set position first, in-case top/left are set even on static elem
+               if ( position === "static" ) {
+                       elem.style.position = "relative";
+               }
+
+               var curElem = jQuery( elem ),
+                       curOffset = curElem.offset(),
+                       curCSSTop = jQuery.css( elem, "top" ),
+                       curCSSLeft = jQuery.css( elem, "left" ),
+                       calculatePosition = ( position === "absolute" || position === "fixed" ) && jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1,
+                       props = {}, curPosition = {}, curTop, curLeft;
+
+               // need to be able to calculate position if either top or left is auto and position is either absolute or fixed
+               if ( calculatePosition ) {
+                       curPosition = curElem.position();
+                       curTop = curPosition.top;
+                       curLeft = curPosition.left;
+               } else {
+                       curTop = parseFloat( curCSSTop ) || 0;
+                       curLeft = parseFloat( curCSSLeft ) || 0;
+               }
+
+               if ( jQuery.isFunction( options ) ) {
+                       options = options.call( elem, i, curOffset );
+               }
+
+               if ( options.top != null ) {
+                       props.top = ( options.top - curOffset.top ) + curTop;
+               }
+               if ( options.left != null ) {
+                       props.left = ( options.left - curOffset.left ) + curLeft;
+               }
+
+               if ( "using" in options ) {
+                       options.using.call( elem, props );
+               } else {
+                       curElem.css( props );
+               }
+       }
+};
+
+
+jQuery.fn.extend({
+
+       position: function() {
+               if ( !this[0] ) {
+                       return null;
+               }
+
+               var elem = this[0],
+
+               // Get *real* offsetParent
+               offsetParent = this.offsetParent(),
+
+               // Get correct offsets
+               offset       = this.offset(),
+               parentOffset = rroot.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset();
+
+               // Subtract element margins
+               // note: when an element has margin: auto the offsetLeft and marginLeft
+               // are the same in Safari causing offset.left to incorrectly be 0
+               offset.top  -= parseFloat( jQuery.css(elem, "marginTop") ) || 0;
+               offset.left -= parseFloat( jQuery.css(elem, "marginLeft") ) || 0;
+
+               // Add offsetParent borders
+               parentOffset.top  += parseFloat( jQuery.css(offsetParent[0], "borderTopWidth") ) || 0;
+               parentOffset.left += parseFloat( jQuery.css(offsetParent[0], "borderLeftWidth") ) || 0;
+
+               // Subtract the two offsets
+               return {
+                       top:  offset.top  - parentOffset.top,
+                       left: offset.left - parentOffset.left
+               };
+       },
+
+       offsetParent: function() {
+               return this.map(function() {
+                       var offsetParent = this.offsetParent || document.body;
+                       while ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) {
+                               offsetParent = offsetParent.offsetParent;
+                       }
+                       return offsetParent;
+               });
+       }
+});
+
+
+// Create scrollLeft and scrollTop methods
+jQuery.each( ["Left", "Top"], function( i, name ) {
+       var method = "scroll" + name;
+
+       jQuery.fn[ method ] = function( val ) {
+               var elem, win;
+
+               if ( val === undefined ) {
+                       elem = this[ 0 ];
+
+                       if ( !elem ) {
+                               return null;
+                       }
+
+                       win = getWindow( elem );
+
+                       // Return the scroll offset
+                       return win ? ("pageXOffset" in win) ? win[ i ? "pageYOffset" : "pageXOffset" ] :
+                               jQuery.support.boxModel && win.document.documentElement[ method ] ||
+                                       win.document.body[ method ] :
+                               elem[ method ];
+               }
+
+               // Set the scroll offset
+               return this.each(function() {
+                       win = getWindow( this );
+
+                       if ( win ) {
+                               win.scrollTo(
+                                       !i ? val : jQuery( win ).scrollLeft(),
+                                        i ? val : jQuery( win ).scrollTop()
+                               );
+
+                       } else {
+                               this[ method ] = val;
+                       }
+               });
+       };
+});
+
+function getWindow( elem ) {
+       return jQuery.isWindow( elem ) ?
+               elem :
+               elem.nodeType === 9 ?
+                       elem.defaultView || elem.parentWindow :
+                       false;
+}
+
+
+
+
+// Create width, height, innerHeight, innerWidth, outerHeight and outerWidth methods
+jQuery.each([ "Height", "Width" ], function( i, name ) {
+
+       var type = name.toLowerCase();
+
+       // innerHeight and innerWidth
+       jQuery.fn[ "inner" + name ] = function() {
+               var elem = this[0];
+               return elem ?
+                       elem.style ?
+                       parseFloat( jQuery.css( elem, type, "padding" ) ) :
+                       this[ type ]() :
+                       null;
+       };
+
+       // outerHeight and outerWidth
+       jQuery.fn[ "outer" + name ] = function( margin ) {
+               var elem = this[0];
+               return elem ?
+                       elem.style ?
+                       parseFloat( jQuery.css( elem, type, margin ? "margin" : "border" ) ) :
+                       this[ type ]() :
+                       null;
+       };
+
+       jQuery.fn[ type ] = function( size ) {
+               // Get window width or height
+               var elem = this[0];
+               if ( !elem ) {
+                       return size == null ? null : this;
+               }
+
+               if ( jQuery.isFunction( size ) ) {
+                       return this.each(function( i ) {
+                               var self = jQuery( this );
+                               self[ type ]( size.call( this, i, self[ type ]() ) );
+                       });
+               }
+
+               if ( jQuery.isWindow( elem ) ) {
+                       // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
+                       // 3rd condition allows Nokia support, as it supports the docElem prop but not CSS1Compat
+                       var docElemProp = elem.document.documentElement[ "client" + name ],
+                               body = elem.document.body;
+                       return elem.document.compatMode === "CSS1Compat" && docElemProp ||
+                               body && body[ "client" + name ] || docElemProp;
+
+               // Get document width or height
+               } else if ( elem.nodeType === 9 ) {
+                       // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
+                       return Math.max(
+                               elem.documentElement["client" + name],
+                               elem.body["scroll" + name], elem.documentElement["scroll" + name],
+                               elem.body["offset" + name], elem.documentElement["offset" + name]
+                       );
+
+               // Get or set width or height on the element
+               } else if ( size === undefined ) {
+                       var orig = jQuery.css( elem, type ),
+                               ret = parseFloat( orig );
+
+                       return jQuery.isNumeric( ret ) ? ret : orig;
+
+               // Set the width or height on the element (default to pixels if value is unitless)
+               } else {
+                       return this.css( type, typeof size === "string" ? size : size + "px" );
+               }
+       };
+
+});
+
+
+
+
+// Expose jQuery to the global object
+window.jQuery = window.$ = jQuery;
+
+// Expose jQuery as an AMD module, but only for AMD loaders that
+// understand the issues with loading multiple versions of jQuery
+// in a page that all might call define(). The loader will indicate
+// they have special allowances for multiple jQuery versions by
+// specifying define.amd.jQuery = true. Register as a named module,
+// since jQuery can be concatenated with other files that may use define,
+// but not use a proper concatenation script that understands anonymous
+// AMD modules. A named AMD is safest and most robust way to register.
+// Lowercase jquery is used because AMD module names are derived from
+// file names, and jQuery is normally delivered in a lowercase file name.
+// Do this after creating the global so that if an AMD module wants to call
+// noConflict to hide this version of jQuery, it will work.
+if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
+       define( "jquery", [], function () { return jQuery; } );
+}
+
+
+
+})( window );
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.js
new file mode 100644 (file)
index 0000000..a22d563
--- /dev/null
@@ -0,0 +1,9272 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: jQuery 1.7.1 core library
+//>>label: jQuery Core
+//>>excludeEnd("jqmBuildExclude");
+
+
+/*!
+ * jQuery JavaScript Library v1.7.1
+ * http://jquery.com/
+ *
+ * Copyright 2011, John Resig
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * Includes Sizzle.js
+ * http://sizzlejs.com/
+ * Copyright 2011, The Dojo Foundation
+ * Released under the MIT, BSD, and GPL Licenses.
+ *
+ * Date: Mon Nov 21 21:11:03 2011 -0500
+ */
+(function( window, undefined ) {
+
+// Use the correct document accordingly with window argument (sandbox)
+var document = window.document,
+       navigator = window.navigator,
+       location = window.location;
+var jQuery = (function() {
+
+// Define a local copy of jQuery
+var jQuery = function( selector, context ) {
+               // The jQuery object is actually just the init constructor 'enhanced'
+               return new jQuery.fn.init( selector, context, rootjQuery );
+       },
+
+       // Map over jQuery in case of overwrite
+       _jQuery = window.jQuery,
+
+       // Map over the $ in case of overwrite
+       _$ = window.$,
+
+       // A central reference to the root jQuery(document)
+       rootjQuery,
+
+       // A simple way to check for HTML strings or ID strings
+       // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
+       quickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
+
+       // Check if a string has a non-whitespace character in it
+       rnotwhite = /\S/,
+
+       // Used for trimming whitespace
+       trimLeft = /^\s+/,
+       trimRight = /\s+$/,
+
+       // Match a standalone tag
+       rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
+
+       // JSON RegExp
+       rvalidchars = /^[\],:{}\s]*$/,
+       rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
+       rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
+       rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
+
+       // Useragent RegExp
+       rwebkit = /(webkit)[ \/]([\w.]+)/,
+       ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,
+       rmsie = /(msie) ([\w.]+)/,
+       rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
+
+       // Matches dashed string for camelizing
+       rdashAlpha = /-([a-z]|[0-9])/ig,
+       rmsPrefix = /^-ms-/,
+
+       // Used by jQuery.camelCase as callback to replace()
+       fcamelCase = function( all, letter ) {
+               return ( letter + "" ).toUpperCase();
+       },
+
+       // Keep a UserAgent string for use with jQuery.browser
+       userAgent = navigator.userAgent,
+
+       // For matching the engine and version of the browser
+       browserMatch,
+
+       // The deferred used on DOM ready
+       readyList,
+
+       // The ready event handler
+       DOMContentLoaded,
+
+       // Save a reference to some core methods
+       toString = Object.prototype.toString,
+       hasOwn = Object.prototype.hasOwnProperty,
+       push = Array.prototype.push,
+       slice = Array.prototype.slice,
+       trim = String.prototype.trim,
+       indexOf = Array.prototype.indexOf,
+
+       // [[Class]] -> type pairs
+       class2type = {};
+
+jQuery.fn = jQuery.prototype = {
+       constructor: jQuery,
+       init: function( selector, context, rootjQuery ) {
+               var match, elem, ret, doc;
+
+               // Handle $(""), $(null), or $(undefined)
+               if ( !selector ) {
+                       return this;
+               }
+
+               // Handle $(DOMElement)
+               if ( selector.nodeType ) {
+                       this.context = this[0] = selector;
+                       this.length = 1;
+                       return this;
+               }
+
+               // The body element only exists once, optimize finding it
+               if ( selector === "body" && !context && document.body ) {
+                       this.context = document;
+                       this[0] = document.body;
+                       this.selector = selector;
+                       this.length = 1;
+                       return this;
+               }
+
+               // Handle HTML strings
+               if ( typeof selector === "string" ) {
+                       // Are we dealing with HTML string or an ID?
+                       if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
+                               // Assume that strings that start and end with <> are HTML and skip the regex check
+                               match = [ null, selector, null ];
+
+                       } else {
+                               match = quickExpr.exec( selector );
+                       }
+
+                       // Verify a match, and that no context was specified for #id
+                       if ( match && (match[1] || !context) ) {
+
+                               // HANDLE: $(html) -> $(array)
+                               if ( match[1] ) {
+                                       context = context instanceof jQuery ? context[0] : context;
+                                       doc = ( context ? context.ownerDocument || context : document );
+
+                                       // If a single string is passed in and it's a single tag
+                                       // just do a createElement and skip the rest
+                                       ret = rsingleTag.exec( selector );
+
+                                       if ( ret ) {
+                                               if ( jQuery.isPlainObject( context ) ) {
+                                                       selector = [ document.createElement( ret[1] ) ];
+                                                       jQuery.fn.attr.call( selector, context, true );
+
+                                               } else {
+                                                       selector = [ doc.createElement( ret[1] ) ];
+                                               }
+
+                                       } else {
+                                               ret = jQuery.buildFragment( [ match[1] ], [ doc ] );
+                                               selector = ( ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment ).childNodes;
+                                       }
+
+                                       return jQuery.merge( this, selector );
+
+                               // HANDLE: $("#id")
+                               } else {
+                                       elem = document.getElementById( match[2] );
+
+                                       // Check parentNode to catch when Blackberry 4.6 returns
+                                       // nodes that are no longer in the document #6963
+                                       if ( elem && elem.parentNode ) {
+                                               // Handle the case where IE and Opera return items
+                                               // by name instead of ID
+                                               if ( elem.id !== match[2] ) {
+                                                       return rootjQuery.find( selector );
+                                               }
+
+                                               // Otherwise, we inject the element directly into the jQuery object
+                                               this.length = 1;
+                                               this[0] = elem;
+                                       }
+
+                                       this.context = document;
+                                       this.selector = selector;
+                                       return this;
+                               }
+
+                       // HANDLE: $(expr, $(...))
+                       } else if ( !context || context.jquery ) {
+                               return ( context || rootjQuery ).find( selector );
+
+                       // HANDLE: $(expr, context)
+                       // (which is just equivalent to: $(context).find(expr)
+                       } else {
+                               return this.constructor( context ).find( selector );
+                       }
+
+               // HANDLE: $(function)
+               // Shortcut for document ready
+               } else if ( jQuery.isFunction( selector ) ) {
+                       return rootjQuery.ready( selector );
+               }
+
+               if ( selector.selector !== undefined ) {
+                       this.selector = selector.selector;
+                       this.context = selector.context;
+               }
+
+               return jQuery.makeArray( selector, this );
+       },
+
+       // Start with an empty selector
+       selector: "",
+
+       // The current version of jQuery being used
+       jquery: "1.7.1",
+
+       // The default length of a jQuery object is 0
+       length: 0,
+
+       // The number of elements contained in the matched element set
+       size: function() {
+               return this.length;
+       },
+
+       toArray: function() {
+               return slice.call( this, 0 );
+       },
+
+       // Get the Nth element in the matched element set OR
+       // Get the whole matched element set as a clean array
+       get: function( num ) {
+               return num == null ?
+
+                       // Return a 'clean' array
+                       this.toArray() :
+
+                       // Return just the object
+                       ( num < 0 ? this[ this.length + num ] : this[ num ] );
+       },
+
+       // Take an array of elements and push it onto the stack
+       // (returning the new matched element set)
+       pushStack: function( elems, name, selector ) {
+               // Build a new jQuery matched element set
+               var ret = this.constructor();
+
+               if ( jQuery.isArray( elems ) ) {
+                       push.apply( ret, elems );
+
+               } else {
+                       jQuery.merge( ret, elems );
+               }
+
+               // Add the old object onto the stack (as a reference)
+               ret.prevObject = this;
+
+               ret.context = this.context;
+
+               if ( name === "find" ) {
+                       ret.selector = this.selector + ( this.selector ? " " : "" ) + selector;
+               } else if ( name ) {
+                       ret.selector = this.selector + "." + name + "(" + selector + ")";
+               }
+
+               // Return the newly-formed element set
+               return ret;
+       },
+
+       // Execute a callback for every element in the matched set.
+       // (You can seed the arguments with an array of args, but this is
+       // only used internally.)
+       each: function( callback, args ) {
+               return jQuery.each( this, callback, args );
+       },
+
+       ready: function( fn ) {
+               // Attach the listeners
+               jQuery.bindReady();
+
+               // Add the callback
+               readyList.add( fn );
+
+               return this;
+       },
+
+       eq: function( i ) {
+               i = +i;
+               return i === -1 ?
+                       this.slice( i ) :
+                       this.slice( i, i + 1 );
+       },
+
+       first: function() {
+               return this.eq( 0 );
+       },
+
+       last: function() {
+               return this.eq( -1 );
+       },
+
+       slice: function() {
+               return this.pushStack( slice.apply( this, arguments ),
+                       "slice", slice.call(arguments).join(",") );
+       },
+
+       map: function( callback ) {
+               return this.pushStack( jQuery.map(this, function( elem, i ) {
+                       return callback.call( elem, i, elem );
+               }));
+       },
+
+       end: function() {
+               return this.prevObject || this.constructor(null);
+       },
+
+       // For internal use only.
+       // Behaves like an Array's method, not like a jQuery method.
+       push: push,
+       sort: [].sort,
+       splice: [].splice
+};
+
+// Give the init function the jQuery prototype for later instantiation
+jQuery.fn.init.prototype = jQuery.fn;
+
+jQuery.extend = jQuery.fn.extend = function() {
+       var options, name, src, copy, copyIsArray, clone,
+               target = arguments[0] || {},
+               i = 1,
+               length = arguments.length,
+               deep = false;
+
+       // Handle a deep copy situation
+       if ( typeof target === "boolean" ) {
+               deep = target;
+               target = arguments[1] || {};
+               // skip the boolean and the target
+               i = 2;
+       }
+
+       // Handle case when target is a string or something (possible in deep copy)
+       if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
+               target = {};
+       }
+
+       // extend jQuery itself if only one argument is passed
+       if ( length === i ) {
+               target = this;
+               --i;
+       }
+
+       for ( ; i < length; i++ ) {
+               // Only deal with non-null/undefined values
+               if ( (options = arguments[ i ]) != null ) {
+                       // Extend the base object
+                       for ( name in options ) {
+                               src = target[ name ];
+                               copy = options[ name ];
+
+                               // Prevent never-ending loop
+                               if ( target === copy ) {
+                                       continue;
+                               }
+
+                               // Recurse if we're merging plain objects or arrays
+                               if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
+                                       if ( copyIsArray ) {
+                                               copyIsArray = false;
+                                               clone = src && jQuery.isArray(src) ? src : [];
+
+                                       } else {
+                                               clone = src && jQuery.isPlainObject(src) ? src : {};
+                                       }
+
+                                       // Never move original objects, clone them
+                                       target[ name ] = jQuery.extend( deep, clone, copy );
+
+                               // Don't bring in undefined values
+                               } else if ( copy !== undefined ) {
+                                       target[ name ] = copy;
+                               }
+                       }
+               }
+       }
+
+       // Return the modified object
+       return target;
+};
+
+jQuery.extend({
+       noConflict: function( deep ) {
+               if ( window.$ === jQuery ) {
+                       window.$ = _$;
+               }
+
+               if ( deep && window.jQuery === jQuery ) {
+                       window.jQuery = _jQuery;
+               }
+
+               return jQuery;
+       },
+
+       // Is the DOM ready to be used? Set to true once it occurs.
+       isReady: false,
+
+       // A counter to track how many items to wait for before
+       // the ready event fires. See #6781
+       readyWait: 1,
+
+       // Hold (or release) the ready event
+       holdReady: function( hold ) {
+               if ( hold ) {
+                       jQuery.readyWait++;
+               } else {
+                       jQuery.ready( true );
+               }
+       },
+
+       // Handle when the DOM is ready
+       ready: function( wait ) {
+               // Either a released hold or an DOMready/load event and not yet ready
+               if ( (wait === true && !--jQuery.readyWait) || (wait !== true && !jQuery.isReady) ) {
+                       // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
+                       if ( !document.body ) {
+                               return setTimeout( jQuery.ready, 1 );
+                       }
+
+                       // Remember that the DOM is ready
+                       jQuery.isReady = true;
+
+                       // If a normal DOM Ready event fired, decrement, and wait if need be
+                       if ( wait !== true && --jQuery.readyWait > 0 ) {
+                               return;
+                       }
+
+                       // If there are functions bound, to execute
+                       readyList.fireWith( document, [ jQuery ] );
+
+                       // Trigger any bound ready events
+                       if ( jQuery.fn.trigger ) {
+                               jQuery( document ).trigger( "ready" ).off( "ready" );
+                       }
+               }
+       },
+
+       bindReady: function() {
+               if ( readyList ) {
+                       return;
+               }
+
+               readyList = jQuery.Callbacks( "once memory" );
+
+               // Catch cases where $(document).ready() is called after the
+               // browser event has already occurred.
+               if ( document.readyState === "complete" ) {
+                       // Handle it asynchronously to allow scripts the opportunity to delay ready
+                       return setTimeout( jQuery.ready, 1 );
+               }
+
+               // Mozilla, Opera and webkit nightlies currently support this event
+               if ( document.addEventListener ) {
+                       // Use the handy event callback
+                       document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
+
+                       // A fallback to window.onload, that will always work
+                       window.addEventListener( "load", jQuery.ready, false );
+
+               // If IE event model is used
+               } else if ( document.attachEvent ) {
+                       // ensure firing before onload,
+                       // maybe late but safe also for iframes
+                       document.attachEvent( "onreadystatechange", DOMContentLoaded );
+
+                       // A fallback to window.onload, that will always work
+                       window.attachEvent( "onload", jQuery.ready );
+
+                       // If IE and not a frame
+                       // continually check to see if the document is ready
+                       var toplevel = false;
+
+                       try {
+                               toplevel = window.frameElement == null;
+                       } catch(e) {}
+
+                       if ( document.documentElement.doScroll && toplevel ) {
+                               doScrollCheck();
+                       }
+               }
+       },
+
+       // See test/unit/core.js for details concerning isFunction.
+       // Since version 1.3, DOM methods and functions like alert
+       // aren't supported. They return false on IE (#2968).
+       isFunction: function( obj ) {
+               return jQuery.type(obj) === "function";
+       },
+
+       isArray: Array.isArray || function( obj ) {
+               return jQuery.type(obj) === "array";
+       },
+
+       // A crude way of determining if an object is a window
+       isWindow: function( obj ) {
+               return obj && typeof obj === "object" && "setInterval" in obj;
+       },
+
+       isNumeric: function( obj ) {
+               return !isNaN( parseFloat(obj) ) && isFinite( obj );
+       },
+
+       type: function( obj ) {
+               return obj == null ?
+                       String( obj ) :
+                       class2type[ toString.call(obj) ] || "object";
+       },
+
+       isPlainObject: function( obj ) {
+               // Must be an Object.
+               // Because of IE, we also have to check the presence of the constructor property.
+               // Make sure that DOM nodes and window objects don't pass through, as well
+               if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
+                       return false;
+               }
+
+               try {
+                       // Not own constructor property must be Object
+                       if ( obj.constructor &&
+                               !hasOwn.call(obj, "constructor") &&
+                               !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
+                               return false;
+                       }
+               } catch ( e ) {
+                       // IE8,9 Will throw exceptions on certain host objects #9897
+                       return false;
+               }
+
+               // Own properties are enumerated firstly, so to speed up,
+               // if last one is own, then all properties are own.
+
+               var key;
+               for ( key in obj ) {}
+
+               return key === undefined || hasOwn.call( obj, key );
+       },
+
+       isEmptyObject: function( obj ) {
+               for ( var name in obj ) {
+                       return false;
+               }
+               return true;
+       },
+
+       error: function( msg ) {
+               throw new Error( msg );
+       },
+
+       parseJSON: function( data ) {
+               if ( typeof data !== "string" || !data ) {
+                       return null;
+               }
+
+               // Make sure leading/trailing whitespace is removed (IE can't handle it)
+               data = jQuery.trim( data );
+
+               // Attempt to parse using the native JSON parser first
+               if ( window.JSON && window.JSON.parse ) {
+                       return window.JSON.parse( data );
+               }
+
+               // Make sure the incoming data is actual JSON
+               // Logic borrowed from http://json.org/json2.js
+               if ( rvalidchars.test( data.replace( rvalidescape, "@" )
+                       .replace( rvalidtokens, "]" )
+                       .replace( rvalidbraces, "")) ) {
+
+                       return ( new Function( "return " + data ) )();
+
+               }
+               jQuery.error( "Invalid JSON: " + data );
+       },
+
+       // Cross-browser xml parsing
+       parseXML: function( data ) {
+               var xml, tmp;
+               try {
+                       if ( window.DOMParser ) { // Standard
+                               tmp = new DOMParser();
+                               xml = tmp.parseFromString( data , "text/xml" );
+                       } else { // IE
+                               xml = new ActiveXObject( "Microsoft.XMLDOM" );
+                               xml.async = "false";
+                               xml.loadXML( data );
+                       }
+               } catch( e ) {
+                       xml = undefined;
+               }
+               if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
+                       jQuery.error( "Invalid XML: " + data );
+               }
+               return xml;
+       },
+
+       noop: function() {},
+
+       // Evaluates a script in a global context
+       // Workarounds based on findings by Jim Driscoll
+       // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
+       globalEval: function( data ) {
+               if ( data && rnotwhite.test( data ) ) {
+                       // We use execScript on Internet Explorer
+                       // We use an anonymous function so that context is window
+                       // rather than jQuery in Firefox
+                       ( window.execScript || function( data ) {
+                               window[ "eval" ].call( window, data );
+                       } )( data );
+               }
+       },
+
+       // Convert dashed to camelCase; used by the css and data modules
+       // Microsoft forgot to hump their vendor prefix (#9572)
+       camelCase: function( string ) {
+               return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
+       },
+
+       nodeName: function( elem, name ) {
+               return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
+       },
+
+       // args is for internal usage only
+       each: function( object, callback, args ) {
+               var name, i = 0,
+                       length = object.length,
+                       isObj = length === undefined || jQuery.isFunction( object );
+
+               if ( args ) {
+                       if ( isObj ) {
+                               for ( name in object ) {
+                                       if ( callback.apply( object[ name ], args ) === false ) {
+                                               break;
+                                       }
+                               }
+                       } else {
+                               for ( ; i < length; ) {
+                                       if ( callback.apply( object[ i++ ], args ) === false ) {
+                                               break;
+                                       }
+                               }
+                       }
+
+               // A special, fast, case for the most common use of each
+               } else {
+                       if ( isObj ) {
+                               for ( name in object ) {
+                                       if ( callback.call( object[ name ], name, object[ name ] ) === false ) {
+                                               break;
+                                       }
+                               }
+                       } else {
+                               for ( ; i < length; ) {
+                                       if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) {
+                                               break;
+                                       }
+                               }
+                       }
+               }
+
+               return object;
+       },
+
+       // Use native String.trim function wherever possible
+       trim: trim ?
+               function( text ) {
+                       return text == null ?
+                               "" :
+                               trim.call( text );
+               } :
+
+               // Otherwise use our own trimming functionality
+               function( text ) {
+                       return text == null ?
+                               "" :
+                               text.toString().replace( trimLeft, "" ).replace( trimRight, "" );
+               },
+
+       // results is for internal usage only
+       makeArray: function( array, results ) {
+               var ret = results || [];
+
+               if ( array != null ) {
+                       // The window, strings (and functions) also have 'length'
+                       // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
+                       var type = jQuery.type( array );
+
+                       if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) {
+                               push.call( ret, array );
+                       } else {
+                               jQuery.merge( ret, array );
+                       }
+               }
+
+               return ret;
+       },
+
+       inArray: function( elem, array, i ) {
+               var len;
+
+               if ( array ) {
+                       if ( indexOf ) {
+                               return indexOf.call( array, elem, i );
+                       }
+
+                       len = array.length;
+                       i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;
+
+                       for ( ; i < len; i++ ) {
+                               // Skip accessing in sparse arrays
+                               if ( i in array && array[ i ] === elem ) {
+                                       return i;
+                               }
+                       }
+               }
+
+               return -1;
+       },
+
+       merge: function( first, second ) {
+               var i = first.length,
+                       j = 0;
+
+               if ( typeof second.length === "number" ) {
+                       for ( var l = second.length; j < l; j++ ) {
+                               first[ i++ ] = second[ j ];
+                       }
+
+               } else {
+                       while ( second[j] !== undefined ) {
+                               first[ i++ ] = second[ j++ ];
+                       }
+               }
+
+               first.length = i;
+
+               return first;
+       },
+
+       grep: function( elems, callback, inv ) {
+               var ret = [], retVal;
+               inv = !!inv;
+
+               // Go through the array, only saving the items
+               // that pass the validator function
+               for ( var i = 0, length = elems.length; i < length; i++ ) {
+                       retVal = !!callback( elems[ i ], i );
+                       if ( inv !== retVal ) {
+                               ret.push( elems[ i ] );
+                       }
+               }
+
+               return ret;
+       },
+
+       // arg is for internal usage only
+       map: function( elems, callback, arg ) {
+               var value, key, ret = [],
+                       i = 0,
+                       length = elems.length,
+                       // jquery objects are treated as arrays
+                       isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ;
+
+               // Go through the array, translating each of the items to their
+               if ( isArray ) {
+                       for ( ; i < length; i++ ) {
+                               value = callback( elems[ i ], i, arg );
+
+                               if ( value != null ) {
+                                       ret[ ret.length ] = value;
+                               }
+                       }
+
+               // Go through every key on the object,
+               } else {
+                       for ( key in elems ) {
+                               value = callback( elems[ key ], key, arg );
+
+                               if ( value != null ) {
+                                       ret[ ret.length ] = value;
+                               }
+                       }
+               }
+
+               // Flatten any nested arrays
+               return ret.concat.apply( [], ret );
+       },
+
+       // A global GUID counter for objects
+       guid: 1,
+
+       // Bind a function to a context, optionally partially applying any
+       // arguments.
+       proxy: function( fn, context ) {
+               if ( typeof context === "string" ) {
+                       var tmp = fn[ context ];
+                       context = fn;
+                       fn = tmp;
+               }
+
+               // Quick check to determine if target is callable, in the spec
+               // this throws a TypeError, but we will just return undefined.
+               if ( !jQuery.isFunction( fn ) ) {
+                       return undefined;
+               }
+
+               // Simulated bind
+               var args = slice.call( arguments, 2 ),
+                       proxy = function() {
+                               return fn.apply( context, args.concat( slice.call( arguments ) ) );
+                       };
+
+               // Set the guid of unique handler to the same of original handler, so it can be removed
+               proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;
+
+               return proxy;
+       },
+
+       // Mutifunctional method to get and set values to a collection
+       // The value/s can optionally be executed if it's a function
+       access: function( elems, key, value, exec, fn, pass ) {
+               var length = elems.length;
+
+               // Setting many attributes
+               if ( typeof key === "object" ) {
+                       for ( var k in key ) {
+                               jQuery.access( elems, k, key[k], exec, fn, value );
+                       }
+                       return elems;
+               }
+
+               // Setting one attribute
+               if ( value !== undefined ) {
+                       // Optionally, function values get executed if exec is true
+                       exec = !pass && exec && jQuery.isFunction(value);
+
+                       for ( var i = 0; i < length; i++ ) {
+                               fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
+                       }
+
+                       return elems;
+               }
+
+               // Getting an attribute
+               return length ? fn( elems[0], key ) : undefined;
+       },
+
+       now: function() {
+               return ( new Date() ).getTime();
+       },
+
+       // Use of jQuery.browser is frowned upon.
+       // More details: http://docs.jquery.com/Utilities/jQuery.browser
+       uaMatch: function( ua ) {
+               ua = ua.toLowerCase();
+
+               var match = rwebkit.exec( ua ) ||
+                       ropera.exec( ua ) ||
+                       rmsie.exec( ua ) ||
+                       ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||
+                       [];
+
+               return { browser: match[1] || "", version: match[2] || "0" };
+       },
+
+       sub: function() {
+               function jQuerySub( selector, context ) {
+                       return new jQuerySub.fn.init( selector, context );
+               }
+               jQuery.extend( true, jQuerySub, this );
+               jQuerySub.superclass = this;
+               jQuerySub.fn = jQuerySub.prototype = this();
+               jQuerySub.fn.constructor = jQuerySub;
+               jQuerySub.sub = this.sub;
+               jQuerySub.fn.init = function init( selector, context ) {
+                       if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {
+                               context = jQuerySub( context );
+                       }
+
+                       return jQuery.fn.init.call( this, selector, context, rootjQuerySub );
+               };
+               jQuerySub.fn.init.prototype = jQuerySub.fn;
+               var rootjQuerySub = jQuerySub(document);
+               return jQuerySub;
+       },
+
+       browser: {}
+});
+
+// Populate the class2type map
+jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {
+       class2type[ "[object " + name + "]" ] = name.toLowerCase();
+});
+
+browserMatch = jQuery.uaMatch( userAgent );
+if ( browserMatch.browser ) {
+       jQuery.browser[ browserMatch.browser ] = true;
+       jQuery.browser.version = browserMatch.version;
+}
+
+// Deprecated, use jQuery.browser.webkit instead
+if ( jQuery.browser.webkit ) {
+       jQuery.browser.safari = true;
+}
+
+// IE doesn't match non-breaking spaces with \s
+if ( rnotwhite.test( "\xA0" ) ) {
+       trimLeft = /^[\s\xA0]+/;
+       trimRight = /[\s\xA0]+$/;
+}
+
+// All jQuery objects should point back to these
+rootjQuery = jQuery(document);
+
+// Cleanup functions for the document ready method
+if ( document.addEventListener ) {
+       DOMContentLoaded = function() {
+               document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
+               jQuery.ready();
+       };
+
+} else if ( document.attachEvent ) {
+       DOMContentLoaded = function() {
+               // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
+               if ( document.readyState === "complete" ) {
+                       document.detachEvent( "onreadystatechange", DOMContentLoaded );
+                       jQuery.ready();
+               }
+       };
+}
+
+// The DOM ready check for Internet Explorer
+function doScrollCheck() {
+       if ( jQuery.isReady ) {
+               return;
+       }
+
+       try {
+               // If IE is used, use the trick by Diego Perini
+               // http://javascript.nwbox.com/IEContentLoaded/
+               document.documentElement.doScroll("left");
+       } catch(e) {
+               setTimeout( doScrollCheck, 1 );
+               return;
+       }
+
+       // and execute any waiting functions
+       jQuery.ready();
+}
+
+return jQuery;
+
+})();
+
+
+// String to Object flags format cache
+var flagsCache = {};
+
+// Convert String-formatted flags into Object-formatted ones and store in cache
+function createFlags( flags ) {
+       var object = flagsCache[ flags ] = {},
+               i, length;
+       flags = flags.split( /\s+/ );
+       for ( i = 0, length = flags.length; i < length; i++ ) {
+               object[ flags[i] ] = true;
+       }
+       return object;
+}
+
+/*
+ * Create a callback list using the following parameters:
+ *
+ *     flags:  an optional list of space-separated flags that will change how
+ *                     the callback list behaves
+ *
+ * By default a callback list will act like an event callback list and can be
+ * "fired" multiple times.
+ *
+ * Possible flags:
+ *
+ *     once:                   will ensure the callback list can only be fired once (like a Deferred)
+ *
+ *     memory:                 will keep track of previous values and will call any callback added
+ *                                     after the list has been fired right away with the latest "memorized"
+ *                                     values (like a Deferred)
+ *
+ *     unique:                 will ensure a callback can only be added once (no duplicate in the list)
+ *
+ *     stopOnFalse:    interrupt callings when a callback returns false
+ *
+ */
+jQuery.Callbacks = function( flags ) {
+
+       // Convert flags from String-formatted to Object-formatted
+       // (we check in cache first)
+       flags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {};
+
+       var // Actual callback list
+               list = [],
+               // Stack of fire calls for repeatable lists
+               stack = [],
+               // Last fire value (for non-forgettable lists)
+               memory,
+               // Flag to know if list is currently firing
+               firing,
+               // First callback to fire (used internally by add and fireWith)
+               firingStart,
+               // End of the loop when firing
+               firingLength,
+               // Index of currently firing callback (modified by remove if needed)
+               firingIndex,
+               // Add one or several callbacks to the list
+               add = function( args ) {
+                       var i,
+                               length,
+                               elem,
+                               type,
+                               actual;
+                       for ( i = 0, length = args.length; i < length; i++ ) {
+                               elem = args[ i ];
+                               type = jQuery.type( elem );
+                               if ( type === "array" ) {
+                                       // Inspect recursively
+                                       add( elem );
+                               } else if ( type === "function" ) {
+                                       // Add if not in unique mode and callback is not in
+                                       if ( !flags.unique || !self.has( elem ) ) {
+                                               list.push( elem );
+                                       }
+                               }
+                       }
+               },
+               // Fire callbacks
+               fire = function( context, args ) {
+                       args = args || [];
+                       memory = !flags.memory || [ context, args ];
+                       firing = true;
+                       firingIndex = firingStart || 0;
+                       firingStart = 0;
+                       firingLength = list.length;
+                       for ( ; list && firingIndex < firingLength; firingIndex++ ) {
+                               if ( list[ firingIndex ].apply( context, args ) === false && flags.stopOnFalse ) {
+                                       memory = true; // Mark as halted
+                                       break;
+                               }
+                       }
+                       firing = false;
+                       if ( list ) {
+                               if ( !flags.once ) {
+                                       if ( stack && stack.length ) {
+                                               memory = stack.shift();
+                                               self.fireWith( memory[ 0 ], memory[ 1 ] );
+                                       }
+                               } else if ( memory === true ) {
+                                       self.disable();
+                               } else {
+                                       list = [];
+                               }
+                       }
+               },
+               // Actual Callbacks object
+               self = {
+                       // Add a callback or a collection of callbacks to the list
+                       add: function() {
+                               if ( list ) {
+                                       var length = list.length;
+                                       add( arguments );
+                                       // Do we need to add the callbacks to the
+                                       // current firing batch?
+                                       if ( firing ) {
+                                               firingLength = list.length;
+                                       // With memory, if we're not firing then
+                                       // we should call right away, unless previous
+                                       // firing was halted (stopOnFalse)
+                                       } else if ( memory && memory !== true ) {
+                                               firingStart = length;
+                                               fire( memory[ 0 ], memory[ 1 ] );
+                                       }
+                               }
+                               return this;
+                       },
+                       // Remove a callback from the list
+                       remove: function() {
+                               if ( list ) {
+                                       var args = arguments,
+                                               argIndex = 0,
+                                               argLength = args.length;
+                                       for ( ; argIndex < argLength ; argIndex++ ) {
+                                               for ( var i = 0; i < list.length; i++ ) {
+                                                       if ( args[ argIndex ] === list[ i ] ) {
+                                                               // Handle firingIndex and firingLength
+                                                               if ( firing ) {
+                                                                       if ( i <= firingLength ) {
+                                                                               firingLength--;
+                                                                               if ( i <= firingIndex ) {
+                                                                                       firingIndex--;
+                                                                               }
+                                                                       }
+                                                               }
+                                                               // Remove the element
+                                                               list.splice( i--, 1 );
+                                                               // If we have some unicity property then
+                                                               // we only need to do this once
+                                                               if ( flags.unique ) {
+                                                                       break;
+                                                               }
+                                                       }
+                                               }
+                                       }
+                               }
+                               return this;
+                       },
+                       // Control if a given callback is in the list
+                       has: function( fn ) {
+                               if ( list ) {
+                                       var i = 0,
+                                               length = list.length;
+                                       for ( ; i < length; i++ ) {
+                                               if ( fn === list[ i ] ) {
+                                                       return true;
+                                               }
+                                       }
+                               }
+                               return false;
+                       },
+                       // Remove all callbacks from the list
+                       empty: function() {
+                               list = [];
+                               return this;
+                       },
+                       // Have the list do nothing anymore
+                       disable: function() {
+                               list = stack = memory = undefined;
+                               return this;
+                       },
+                       // Is it disabled?
+                       disabled: function() {
+                               return !list;
+                       },
+                       // Lock the list in its current state
+                       lock: function() {
+                               stack = undefined;
+                               if ( !memory || memory === true ) {
+                                       self.disable();
+                               }
+                               return this;
+                       },
+                       // Is it locked?
+                       locked: function() {
+                               return !stack;
+                       },
+                       // Call all callbacks with the given context and arguments
+                       fireWith: function( context, args ) {
+                               if ( stack ) {
+                                       if ( firing ) {
+                                               if ( !flags.once ) {
+                                                       stack.push( [ context, args ] );
+                                               }
+                                       } else if ( !( flags.once && memory ) ) {
+                                               fire( context, args );
+                                       }
+                               }
+                               return this;
+                       },
+                       // Call all the callbacks with the given arguments
+                       fire: function() {
+                               self.fireWith( this, arguments );
+                               return this;
+                       },
+                       // To know if the callbacks have already been called at least once
+                       fired: function() {
+                               return !!memory;
+                       }
+               };
+
+       return self;
+};
+
+
+
+
+var // Static reference to slice
+       sliceDeferred = [].slice;
+
+jQuery.extend({
+
+       Deferred: function( func ) {
+               var doneList = jQuery.Callbacks( "once memory" ),
+                       failList = jQuery.Callbacks( "once memory" ),
+                       progressList = jQuery.Callbacks( "memory" ),
+                       state = "pending",
+                       lists = {
+                               resolve: doneList,
+                               reject: failList,
+                               notify: progressList
+                       },
+                       promise = {
+                               done: doneList.add,
+                               fail: failList.add,
+                               progress: progressList.add,
+
+                               state: function() {
+                                       return state;
+                               },
+
+                               // Deprecated
+                               isResolved: doneList.fired,
+                               isRejected: failList.fired,
+
+                               then: function( doneCallbacks, failCallbacks, progressCallbacks ) {
+                                       deferred.done( doneCallbacks ).fail( failCallbacks ).progress( progressCallbacks );
+                                       return this;
+                               },
+                               always: function() {
+                                       deferred.done.apply( deferred, arguments ).fail.apply( deferred, arguments );
+                                       return this;
+                               },
+                               pipe: function( fnDone, fnFail, fnProgress ) {
+                                       return jQuery.Deferred(function( newDefer ) {
+                                               jQuery.each( {
+                                                       done: [ fnDone, "resolve" ],
+                                                       fail: [ fnFail, "reject" ],
+                                                       progress: [ fnProgress, "notify" ]
+                                               }, function( handler, data ) {
+                                                       var fn = data[ 0 ],
+                                                               action = data[ 1 ],
+                                                               returned;
+                                                       if ( jQuery.isFunction( fn ) ) {
+                                                               deferred[ handler ](function() {
+                                                                       returned = fn.apply( this, arguments );
+                                                                       if ( returned && jQuery.isFunction( returned.promise ) ) {
+                                                                               returned.promise().then( newDefer.resolve, newDefer.reject, newDefer.notify );
+                                                                       } else {
+                                                                               newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] );
+                                                                       }
+                                                               });
+                                                       } else {
+                                                               deferred[ handler ]( newDefer[ action ] );
+                                                       }
+                                               });
+                                       }).promise();
+                               },
+                               // Get a promise for this deferred
+                               // If obj is provided, the promise aspect is added to the object
+                               promise: function( obj ) {
+                                       if ( obj == null ) {
+                                               obj = promise;
+                                       } else {
+                                               for ( var key in promise ) {
+                                                       obj[ key ] = promise[ key ];
+                                               }
+                                       }
+                                       return obj;
+                               }
+                       },
+                       deferred = promise.promise({}),
+                       key;
+
+               for ( key in lists ) {
+                       deferred[ key ] = lists[ key ].fire;
+                       deferred[ key + "With" ] = lists[ key ].fireWith;
+               }
+
+               // Handle state
+               deferred.done( function() {
+                       state = "resolved";
+               }, failList.disable, progressList.lock ).fail( function() {
+                       state = "rejected";
+               }, doneList.disable, progressList.lock );
+
+               // Call given func if any
+               if ( func ) {
+                       func.call( deferred, deferred );
+               }
+
+               // All done!
+               return deferred;
+       },
+
+       // Deferred helper
+       when: function( firstParam ) {
+               var args = sliceDeferred.call( arguments, 0 ),
+                       i = 0,
+                       length = args.length,
+                       pValues = new Array( length ),
+                       count = length,
+                       pCount = length,
+                       deferred = length <= 1 && firstParam && jQuery.isFunction( firstParam.promise ) ?
+                               firstParam :
+                               jQuery.Deferred(),
+                       promise = deferred.promise();
+               function resolveFunc( i ) {
+                       return function( value ) {
+                               args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
+                               if ( !( --count ) ) {
+                                       deferred.resolveWith( deferred, args );
+                               }
+                       };
+               }
+               function progressFunc( i ) {
+                       return function( value ) {
+                               pValues[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
+                               deferred.notifyWith( promise, pValues );
+                       };
+               }
+               if ( length > 1 ) {
+                       for ( ; i < length; i++ ) {
+                               if ( args[ i ] && args[ i ].promise && jQuery.isFunction( args[ i ].promise ) ) {
+                                       args[ i ].promise().then( resolveFunc(i), deferred.reject, progressFunc(i) );
+                               } else {
+                                       --count;
+                               }
+                       }
+                       if ( !count ) {
+                               deferred.resolveWith( deferred, args );
+                       }
+               } else if ( deferred !== firstParam ) {
+                       deferred.resolveWith( deferred, length ? [ firstParam ] : [] );
+               }
+               return promise;
+       }
+});
+
+
+
+
+jQuery.support = (function() {
+
+       var support,
+               all,
+               a,
+               select,
+               opt,
+               input,
+               marginDiv,
+               fragment,
+               tds,
+               events,
+               eventName,
+               i,
+               isSupported,
+               div = document.createElement( "div" ),
+               documentElement = document.documentElement;
+
+       // Preliminary tests
+       div.setAttribute("className", "t");
+       div.innerHTML = "   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
+
+       all = div.getElementsByTagName( "*" );
+       a = div.getElementsByTagName( "a" )[ 0 ];
+
+       // Can't get basic test support
+       if ( !all || !all.length || !a ) {
+               return {};
+       }
+
+       // First batch of supports tests
+       select = document.createElement( "select" );
+       opt = select.appendChild( document.createElement("option") );
+       input = div.getElementsByTagName( "input" )[ 0 ];
+
+       support = {
+               // IE strips leading whitespace when .innerHTML is used
+               leadingWhitespace: ( div.firstChild.nodeType === 3 ),
+
+               // Make sure that tbody elements aren't automatically inserted
+               // IE will insert them into empty tables
+               tbody: !div.getElementsByTagName("tbody").length,
+
+               // Make sure that link elements get serialized correctly by innerHTML
+               // This requires a wrapper element in IE
+               htmlSerialize: !!div.getElementsByTagName("link").length,
+
+               // Get the style information from getAttribute
+               // (IE uses .cssText instead)
+               style: /top/.test( a.getAttribute("style") ),
+
+               // Make sure that URLs aren't manipulated
+               // (IE normalizes it by default)
+               hrefNormalized: ( a.getAttribute("href") === "/a" ),
+
+               // Make sure that element opacity exists
+               // (IE uses filter instead)
+               // Use a regex to work around a WebKit issue. See #5145
+               opacity: /^0.55/.test( a.style.opacity ),
+
+               // Verify style float existence
+               // (IE uses styleFloat instead of cssFloat)
+               cssFloat: !!a.style.cssFloat,
+
+               // Make sure that if no value is specified for a checkbox
+               // that it defaults to "on".
+               // (WebKit defaults to "" instead)
+               checkOn: ( input.value === "on" ),
+
+               // Make sure that a selected-by-default option has a working selected property.
+               // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
+               optSelected: opt.selected,
+
+               // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
+               getSetAttribute: div.className !== "t",
+
+               // Tests for enctype support on a form(#6743)
+               enctype: !!document.createElement("form").enctype,
+
+               // Makes sure cloning an html5 element does not cause problems
+               // Where outerHTML is undefined, this still works
+               html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav></:nav>",
+
+               // Will be defined later
+               submitBubbles: true,
+               changeBubbles: true,
+               focusinBubbles: false,
+               deleteExpando: true,
+               noCloneEvent: true,
+               inlineBlockNeedsLayout: false,
+               shrinkWrapBlocks: false,
+               reliableMarginRight: true
+       };
+
+       // Make sure checked status is properly cloned
+       input.checked = true;
+       support.noCloneChecked = input.cloneNode( true ).checked;
+
+       // Make sure that the options inside disabled selects aren't marked as disabled
+       // (WebKit marks them as disabled)
+       select.disabled = true;
+       support.optDisabled = !opt.disabled;
+
+       // Test to see if it's possible to delete an expando from an element
+       // Fails in Internet Explorer
+       try {
+               delete div.test;
+       } catch( e ) {
+               support.deleteExpando = false;
+       }
+
+       if ( !div.addEventListener && div.attachEvent && div.fireEvent ) {
+               div.attachEvent( "onclick", function() {
+                       // Cloning a node shouldn't copy over any
+                       // bound event handlers (IE does this)
+                       support.noCloneEvent = false;
+               });
+               div.cloneNode( true ).fireEvent( "onclick" );
+       }
+
+       // Check if a radio maintains its value
+       // after being appended to the DOM
+       input = document.createElement("input");
+       input.value = "t";
+       input.setAttribute("type", "radio");
+       support.radioValue = input.value === "t";
+
+       input.setAttribute("checked", "checked");
+       div.appendChild( input );
+       fragment = document.createDocumentFragment();
+       fragment.appendChild( div.lastChild );
+
+       // WebKit doesn't clone checked state correctly in fragments
+       support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;
+
+       // Check if a disconnected checkbox will retain its checked
+       // value of true after appended to the DOM (IE6/7)
+       support.appendChecked = input.checked;
+
+       fragment.removeChild( input );
+       fragment.appendChild( div );
+
+       div.innerHTML = "";
+
+       // Check if div with explicit width and no margin-right incorrectly
+       // gets computed margin-right based on width of container. For more
+       // info see bug #3333
+       // Fails in WebKit before Feb 2011 nightlies
+       // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
+       if ( window.getComputedStyle ) {
+               marginDiv = document.createElement( "div" );
+               marginDiv.style.width = "0";
+               marginDiv.style.marginRight = "0";
+               div.style.width = "2px";
+               div.appendChild( marginDiv );
+               support.reliableMarginRight =
+                       ( parseInt( ( window.getComputedStyle( marginDiv, null ) || { marginRight: 0 } ).marginRight, 10 ) || 0 ) === 0;
+       }
+
+       // Technique from Juriy Zaytsev
+       // http://perfectionkills.com/detecting-event-support-without-browser-sniffing/
+       // We only care about the case where non-standard event systems
+       // are used, namely in IE. Short-circuiting here helps us to
+       // avoid an eval call (in setAttribute) which can cause CSP
+       // to go haywire. See: https://developer.mozilla.org/en/Security/CSP
+       if ( div.attachEvent ) {
+               for( i in {
+                       submit: 1,
+                       change: 1,
+                       focusin: 1
+               }) {
+                       eventName = "on" + i;
+                       isSupported = ( eventName in div );
+                       if ( !isSupported ) {
+                               div.setAttribute( eventName, "return;" );
+                               isSupported = ( typeof div[ eventName ] === "function" );
+                       }
+                       support[ i + "Bubbles" ] = isSupported;
+               }
+       }
+
+       fragment.removeChild( div );
+
+       // Null elements to avoid leaks in IE
+       fragment = select = opt = marginDiv = div = input = null;
+
+       // Run tests that need a body at doc ready
+       jQuery(function() {
+               var container, outer, inner, table, td, offsetSupport,
+                       conMarginTop, ptlm, vb, style, html,
+                       body = document.getElementsByTagName("body")[0];
+
+               if ( !body ) {
+                       // Return for frameset docs that don't have a body
+                       return;
+               }
+
+               conMarginTop = 1;
+               ptlm = "position:absolute;top:0;left:0;width:1px;height:1px;margin:0;";
+               vb = "visibility:hidden;border:0;";
+               style = "style='" + ptlm + "border:5px solid #000;padding:0;'";
+               html = "<div " + style + "><div></div></div>" +
+                       "<table " + style + " cellpadding='0' cellspacing='0'>" +
+                       "<tr><td></td></tr></table>";
+
+               container = document.createElement("div");
+               container.style.cssText = vb + "width:0;height:0;position:static;top:0;margin-top:" + conMarginTop + "px";
+               body.insertBefore( container, body.firstChild );
+
+               // Construct the test element
+               div = document.createElement("div");
+               container.appendChild( div );
+
+               // Check if table cells still have offsetWidth/Height when they are set
+               // to display:none and there are still other visible table cells in a
+               // table row; if so, offsetWidth/Height are not reliable for use when
+               // determining if an element has been hidden directly using
+               // display:none (it is still safe to use offsets if a parent element is
+               // hidden; don safety goggles and see bug #4512 for more information).
+               // (only IE 8 fails this test)
+               div.innerHTML = "<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";
+               tds = div.getElementsByTagName( "td" );
+               isSupported = ( tds[ 0 ].offsetHeight === 0 );
+
+               tds[ 0 ].style.display = "";
+               tds[ 1 ].style.display = "none";
+
+               // Check if empty table cells still have offsetWidth/Height
+               // (IE <= 8 fail this test)
+               support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 );
+
+               // Figure out if the W3C box model works as expected
+               div.innerHTML = "";
+               div.style.width = div.style.paddingLeft = "1px";
+               jQuery.boxModel = support.boxModel = div.offsetWidth === 2;
+
+               if ( typeof div.style.zoom !== "undefined" ) {
+                       // Check if natively block-level elements act like inline-block
+                       // elements when setting their display to 'inline' and giving
+                       // them layout
+                       // (IE < 8 does this)
+                       div.style.display = "inline";
+                       div.style.zoom = 1;
+                       support.inlineBlockNeedsLayout = ( div.offsetWidth === 2 );
+
+                       // Check if elements with layout shrink-wrap their children
+                       // (IE 6 does this)
+                       div.style.display = "";
+                       div.innerHTML = "<div style='width:4px;'></div>";
+                       support.shrinkWrapBlocks = ( div.offsetWidth !== 2 );
+               }
+
+               div.style.cssText = ptlm + vb;
+               div.innerHTML = html;
+
+               outer = div.firstChild;
+               inner = outer.firstChild;
+               td = outer.nextSibling.firstChild.firstChild;
+
+               offsetSupport = {
+                       doesNotAddBorder: ( inner.offsetTop !== 5 ),
+                       doesAddBorderForTableAndCells: ( td.offsetTop === 5 )
+               };
+
+               inner.style.position = "fixed";
+               inner.style.top = "20px";
+
+               // safari subtracts parent border width here which is 5px
+               offsetSupport.fixedPosition = ( inner.offsetTop === 20 || inner.offsetTop === 15 );
+               inner.style.position = inner.style.top = "";
+
+               outer.style.overflow = "hidden";
+               outer.style.position = "relative";
+
+               offsetSupport.subtractsBorderForOverflowNotVisible = ( inner.offsetTop === -5 );
+               offsetSupport.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== conMarginTop );
+
+               body.removeChild( container );
+               div  = container = null;
+
+               jQuery.extend( support, offsetSupport );
+       });
+
+       return support;
+})();
+
+
+
+
+var rbrace = /^(?:\{.*\}|\[.*\])$/,
+       rmultiDash = /([A-Z])/g;
+
+jQuery.extend({
+       cache: {},
+
+       // Please use with caution
+       uuid: 0,
+
+       // Unique for each copy of jQuery on the page
+       // Non-digits removed to match rinlinejQuery
+       expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ),
+
+       // The following elements throw uncatchable exceptions if you
+       // attempt to add expando properties to them.
+       noData: {
+               "embed": true,
+               // Ban all objects except for Flash (which handle expandos)
+               "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
+               "applet": true
+       },
+
+       hasData: function( elem ) {
+               elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];
+               return !!elem && !isEmptyDataObject( elem );
+       },
+
+       data: function( elem, name, data, pvt /* Internal Use Only */ ) {
+               if ( !jQuery.acceptData( elem ) ) {
+                       return;
+               }
+
+               var privateCache, thisCache, ret,
+                       internalKey = jQuery.expando,
+                       getByName = typeof name === "string",
+
+                       // We have to handle DOM nodes and JS objects differently because IE6-7
+                       // can't GC object references properly across the DOM-JS boundary
+                       isNode = elem.nodeType,
+
+                       // Only DOM nodes need the global jQuery cache; JS object data is
+                       // attached directly to the object so GC can occur automatically
+                       cache = isNode ? jQuery.cache : elem,
+
+                       // Only defining an ID for JS objects if its cache already exists allows
+                       // the code to shortcut on the same path as a DOM node with no cache
+                       id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey,
+                       isEvents = name === "events";
+
+               // Avoid doing any more work than we need to when trying to get data on an
+               // object that has no data at all
+               if ( (!id || !cache[id] || (!isEvents && !pvt && !cache[id].data)) && getByName && data === undefined ) {
+                       return;
+               }
+
+               if ( !id ) {
+                       // Only DOM nodes need a new unique ID for each element since their data
+                       // ends up in the global cache
+                       if ( isNode ) {
+                               elem[ internalKey ] = id = ++jQuery.uuid;
+                       } else {
+                               id = internalKey;
+                       }
+               }
+
+               if ( !cache[ id ] ) {
+                       cache[ id ] = {};
+
+                       // Avoids exposing jQuery metadata on plain JS objects when the object
+                       // is serialized using JSON.stringify
+                       if ( !isNode ) {
+                               cache[ id ].toJSON = jQuery.noop;
+                       }
+               }
+
+               // An object can be passed to jQuery.data instead of a key/value pair; this gets
+               // shallow copied over onto the existing cache
+               if ( typeof name === "object" || typeof name === "function" ) {
+                       if ( pvt ) {
+                               cache[ id ] = jQuery.extend( cache[ id ], name );
+                       } else {
+                               cache[ id ].data = jQuery.extend( cache[ id ].data, name );
+                       }
+               }
+
+               privateCache = thisCache = cache[ id ];
+
+               // jQuery data() is stored in a separate object inside the object's internal data
+               // cache in order to avoid key collisions between internal data and user-defined
+               // data.
+               if ( !pvt ) {
+                       if ( !thisCache.data ) {
+                               thisCache.data = {};
+                       }
+
+                       thisCache = thisCache.data;
+               }
+
+               if ( data !== undefined ) {
+                       thisCache[ jQuery.camelCase( name ) ] = data;
+               }
+
+               // Users should not attempt to inspect the internal events object using jQuery.data,
+               // it is undocumented and subject to change. But does anyone listen? No.
+               if ( isEvents && !thisCache[ name ] ) {
+                       return privateCache.events;
+               }
+
+               // Check for both converted-to-camel and non-converted data property names
+               // If a data property was specified
+               if ( getByName ) {
+
+                       // First Try to find as-is property data
+                       ret = thisCache[ name ];
+
+                       // Test for null|undefined property data
+                       if ( ret == null ) {
+
+                               // Try to find the camelCased property
+                               ret = thisCache[ jQuery.camelCase( name ) ];
+                       }
+               } else {
+                       ret = thisCache;
+               }
+
+               return ret;
+       },
+
+       removeData: function( elem, name, pvt /* Internal Use Only */ ) {
+               if ( !jQuery.acceptData( elem ) ) {
+                       return;
+               }
+
+               var thisCache, i, l,
+
+                       // Reference to internal data cache key
+                       internalKey = jQuery.expando,
+
+                       isNode = elem.nodeType,
+
+                       // See jQuery.data for more information
+                       cache = isNode ? jQuery.cache : elem,
+
+                       // See jQuery.data for more information
+                       id = isNode ? elem[ internalKey ] : internalKey;
+
+               // If there is already no cache entry for this object, there is no
+               // purpose in continuing
+               if ( !cache[ id ] ) {
+                       return;
+               }
+
+               if ( name ) {
+
+                       thisCache = pvt ? cache[ id ] : cache[ id ].data;
+
+                       if ( thisCache ) {
+
+                               // Support array or space separated string names for data keys
+                               if ( !jQuery.isArray( name ) ) {
+
+                                       // try the string as a key before any manipulation
+                                       if ( name in thisCache ) {
+                                               name = [ name ];
+                                       } else {
+
+                                               // split the camel cased version by spaces unless a key with the spaces exists
+                                               name = jQuery.camelCase( name );
+                                               if ( name in thisCache ) {
+                                                       name = [ name ];
+                                               } else {
+                                                       name = name.split( " " );
+                                               }
+                                       }
+                               }
+
+                               for ( i = 0, l = name.length; i < l; i++ ) {
+                                       delete thisCache[ name[i] ];
+                               }
+
+                               // If there is no data left in the cache, we want to continue
+                               // and let the cache object itself get destroyed
+                               if ( !( pvt ? isEmptyDataObject : jQuery.isEmptyObject )( thisCache ) ) {
+                                       return;
+                               }
+                       }
+               }
+
+               // See jQuery.data for more information
+               if ( !pvt ) {
+                       delete cache[ id ].data;
+
+                       // Don't destroy the parent cache unless the internal data object
+                       // had been the only thing left in it
+                       if ( !isEmptyDataObject(cache[ id ]) ) {
+                               return;
+                       }
+               }
+
+               // Browsers that fail expando deletion also refuse to delete expandos on
+               // the window, but it will allow it on all other JS objects; other browsers
+               // don't care
+               // Ensure that `cache` is not a window object #10080
+               if ( jQuery.support.deleteExpando || !cache.setInterval ) {
+                       delete cache[ id ];
+               } else {
+                       cache[ id ] = null;
+               }
+
+               // We destroyed the cache and need to eliminate the expando on the node to avoid
+               // false lookups in the cache for entries that no longer exist
+               if ( isNode ) {
+                       // IE does not allow us to delete expando properties from nodes,
+                       // nor does it have a removeAttribute function on Document nodes;
+                       // we must handle all of these cases
+                       if ( jQuery.support.deleteExpando ) {
+                               delete elem[ internalKey ];
+                       } else if ( elem.removeAttribute ) {
+                               elem.removeAttribute( internalKey );
+                       } else {
+                               elem[ internalKey ] = null;
+                       }
+               }
+       },
+
+       // For internal use only.
+       _data: function( elem, name, data ) {
+               return jQuery.data( elem, name, data, true );
+       },
+
+       // A method for determining if a DOM node can handle the data expando
+       acceptData: function( elem ) {
+               if ( elem.nodeName ) {
+                       var match = jQuery.noData[ elem.nodeName.toLowerCase() ];
+
+                       if ( match ) {
+                               return !(match === true || elem.getAttribute("classid") !== match);
+                       }
+               }
+
+               return true;
+       }
+});
+
+jQuery.fn.extend({
+       data: function( key, value ) {
+               var parts, attr, name,
+                       data = null;
+
+               if ( typeof key === "undefined" ) {
+                       if ( this.length ) {
+                               data = jQuery.data( this[0] );
+
+                               if ( this[0].nodeType === 1 && !jQuery._data( this[0], "parsedAttrs" ) ) {
+                                       attr = this[0].attributes;
+                                       for ( var i = 0, l = attr.length; i < l; i++ ) {
+                                               name = attr[i].name;
+
+                                               if ( name.indexOf( "data-" ) === 0 ) {
+                                                       name = jQuery.camelCase( name.substring(5) );
+
+                                                       dataAttr( this[0], name, data[ name ] );
+                                               }
+                                       }
+                                       jQuery._data( this[0], "parsedAttrs", true );
+                               }
+                       }
+
+                       return data;
+
+               } else if ( typeof key === "object" ) {
+                       return this.each(function() {
+                               jQuery.data( this, key );
+                       });
+               }
+
+               parts = key.split(".");
+               parts[1] = parts[1] ? "." + parts[1] : "";
+
+               if ( value === undefined ) {
+                       data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
+
+                       // Try to fetch any internally stored data first
+                       if ( data === undefined && this.length ) {
+                               data = jQuery.data( this[0], key );
+                               data = dataAttr( this[0], key, data );
+                       }
+
+                       return data === undefined && parts[1] ?
+                               this.data( parts[0] ) :
+                               data;
+
+               } else {
+                       return this.each(function() {
+                               var self = jQuery( this ),
+                                       args = [ parts[0], value ];
+
+                               self.triggerHandler( "setData" + parts[1] + "!", args );
+                               jQuery.data( this, key, value );
+                               self.triggerHandler( "changeData" + parts[1] + "!", args );
+                       });
+               }
+       },
+
+       removeData: function( key ) {
+               return this.each(function() {
+                       jQuery.removeData( this, key );
+               });
+       }
+});
+
+function dataAttr( elem, key, data ) {
+       // If nothing was found internally, try to fetch any
+       // data from the HTML5 data-* attribute
+       if ( data === undefined && elem.nodeType === 1 ) {
+
+               var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
+
+               data = elem.getAttribute( name );
+
+               if ( typeof data === "string" ) {
+                       try {
+                               data = data === "true" ? true :
+                               data === "false" ? false :
+                               data === "null" ? null :
+                               jQuery.isNumeric( data ) ? parseFloat( data ) :
+                                       rbrace.test( data ) ? jQuery.parseJSON( data ) :
+                                       data;
+                       } catch( e ) {}
+
+                       // Make sure we set the data so it isn't changed later
+                       jQuery.data( elem, key, data );
+
+               } else {
+                       data = undefined;
+               }
+       }
+
+       return data;
+}
+
+// checks a cache object for emptiness
+function isEmptyDataObject( obj ) {
+       for ( var name in obj ) {
+
+               // if the public data object is empty, the private is still empty
+               if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {
+                       continue;
+               }
+               if ( name !== "toJSON" ) {
+                       return false;
+               }
+       }
+
+       return true;
+}
+
+
+
+
+function handleQueueMarkDefer( elem, type, src ) {
+       var deferDataKey = type + "defer",
+               queueDataKey = type + "queue",
+               markDataKey = type + "mark",
+               defer = jQuery._data( elem, deferDataKey );
+       if ( defer &&
+               ( src === "queue" || !jQuery._data(elem, queueDataKey) ) &&
+               ( src === "mark" || !jQuery._data(elem, markDataKey) ) ) {
+               // Give room for hard-coded callbacks to fire first
+               // and eventually mark/queue something else on the element
+               setTimeout( function() {
+                       if ( !jQuery._data( elem, queueDataKey ) &&
+                               !jQuery._data( elem, markDataKey ) ) {
+                               jQuery.removeData( elem, deferDataKey, true );
+                               defer.fire();
+                       }
+               }, 0 );
+       }
+}
+
+jQuery.extend({
+
+       _mark: function( elem, type ) {
+               if ( elem ) {
+                       type = ( type || "fx" ) + "mark";
+                       jQuery._data( elem, type, (jQuery._data( elem, type ) || 0) + 1 );
+               }
+       },
+
+       _unmark: function( force, elem, type ) {
+               if ( force !== true ) {
+                       type = elem;
+                       elem = force;
+                       force = false;
+               }
+               if ( elem ) {
+                       type = type || "fx";
+                       var key = type + "mark",
+                               count = force ? 0 : ( (jQuery._data( elem, key ) || 1) - 1 );
+                       if ( count ) {
+                               jQuery._data( elem, key, count );
+                       } else {
+                               jQuery.removeData( elem, key, true );
+                               handleQueueMarkDefer( elem, type, "mark" );
+                       }
+               }
+       },
+
+       queue: function( elem, type, data ) {
+               var q;
+               if ( elem ) {
+                       type = ( type || "fx" ) + "queue";
+                       q = jQuery._data( elem, type );
+
+                       // Speed up dequeue by getting out quickly if this is just a lookup
+                       if ( data ) {
+                               if ( !q || jQuery.isArray(data) ) {
+                                       q = jQuery._data( elem, type, jQuery.makeArray(data) );
+                               } else {
+                                       q.push( data );
+                               }
+                       }
+                       return q || [];
+               }
+       },
+
+       dequeue: function( elem, type ) {
+               type = type || "fx";
+
+               var queue = jQuery.queue( elem, type ),
+                       fn = queue.shift(),
+                       hooks = {};
+
+               // If the fx queue is dequeued, always remove the progress sentinel
+               if ( fn === "inprogress" ) {
+                       fn = queue.shift();
+               }
+
+               if ( fn ) {
+                       // Add a progress sentinel to prevent the fx queue from being
+                       // automatically dequeued
+                       if ( type === "fx" ) {
+                               queue.unshift( "inprogress" );
+                       }
+
+                       jQuery._data( elem, type + ".run", hooks );
+                       fn.call( elem, function() {
+                               jQuery.dequeue( elem, type );
+                       }, hooks );
+               }
+
+               if ( !queue.length ) {
+                       jQuery.removeData( elem, type + "queue " + type + ".run", true );
+                       handleQueueMarkDefer( elem, type, "queue" );
+               }
+       }
+});
+
+jQuery.fn.extend({
+       queue: function( type, data ) {
+               if ( typeof type !== "string" ) {
+                       data = type;
+                       type = "fx";
+               }
+
+               if ( data === undefined ) {
+                       return jQuery.queue( this[0], type );
+               }
+               return this.each(function() {
+                       var queue = jQuery.queue( this, type, data );
+
+                       if ( type === "fx" && queue[0] !== "inprogress" ) {
+                               jQuery.dequeue( this, type );
+                       }
+               });
+       },
+       dequeue: function( type ) {
+               return this.each(function() {
+                       jQuery.dequeue( this, type );
+               });
+       },
+       // Based off of the plugin by Clint Helfers, with permission.
+       // http://blindsignals.com/index.php/2009/07/jquery-delay/
+       delay: function( time, type ) {
+               time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
+               type = type || "fx";
+
+               return this.queue( type, function( next, hooks ) {
+                       var timeout = setTimeout( next, time );
+                       hooks.stop = function() {
+                               clearTimeout( timeout );
+                       };
+               });
+       },
+       clearQueue: function( type ) {
+               return this.queue( type || "fx", [] );
+       },
+       // Get a promise resolved when queues of a certain type
+       // are emptied (fx is the type by default)
+       promise: function( type, object ) {
+               if ( typeof type !== "string" ) {
+                       object = type;
+                       type = undefined;
+               }
+               type = type || "fx";
+               var defer = jQuery.Deferred(),
+                       elements = this,
+                       i = elements.length,
+                       count = 1,
+                       deferDataKey = type + "defer",
+                       queueDataKey = type + "queue",
+                       markDataKey = type + "mark",
+                       tmp;
+               function resolve() {
+                       if ( !( --count ) ) {
+                               defer.resolveWith( elements, [ elements ] );
+                       }
+               }
+               while( i-- ) {
+                       if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) ||
+                                       ( jQuery.data( elements[ i ], queueDataKey, undefined, true ) ||
+                                               jQuery.data( elements[ i ], markDataKey, undefined, true ) ) &&
+                                       jQuery.data( elements[ i ], deferDataKey, jQuery.Callbacks( "once memory" ), true ) )) {
+                               count++;
+                               tmp.add( resolve );
+                       }
+               }
+               resolve();
+               return defer.promise();
+       }
+});
+
+
+
+
+var rclass = /[\n\t\r]/g,
+       rspace = /\s+/,
+       rreturn = /\r/g,
+       rtype = /^(?:button|input)$/i,
+       rfocusable = /^(?:button|input|object|select|textarea)$/i,
+       rclickable = /^a(?:rea)?$/i,
+       rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
+       getSetAttribute = jQuery.support.getSetAttribute,
+       nodeHook, boolHook, fixSpecified;
+
+jQuery.fn.extend({
+       attr: function( name, value ) {
+               return jQuery.access( this, name, value, true, jQuery.attr );
+       },
+
+       removeAttr: function( name ) {
+               return this.each(function() {
+                       jQuery.removeAttr( this, name );
+               });
+       },
+
+       prop: function( name, value ) {
+               return jQuery.access( this, name, value, true, jQuery.prop );
+       },
+
+       removeProp: function( name ) {
+               name = jQuery.propFix[ name ] || name;
+               return this.each(function() {
+                       // try/catch handles cases where IE balks (such as removing a property on window)
+                       try {
+                               this[ name ] = undefined;
+                               delete this[ name ];
+                       } catch( e ) {}
+               });
+       },
+
+       addClass: function( value ) {
+               var classNames, i, l, elem,
+                       setClass, c, cl;
+
+               if ( jQuery.isFunction( value ) ) {
+                       return this.each(function( j ) {
+                               jQuery( this ).addClass( value.call(this, j, this.className) );
+                       });
+               }
+
+               if ( value && typeof value === "string" ) {
+                       classNames = value.split( rspace );
+
+                       for ( i = 0, l = this.length; i < l; i++ ) {
+                               elem = this[ i ];
+
+                               if ( elem.nodeType === 1 ) {
+                                       if ( !elem.className && classNames.length === 1 ) {
+                                               elem.className = value;
+
+                                       } else {
+                                               setClass = " " + elem.className + " ";
+
+                                               for ( c = 0, cl = classNames.length; c < cl; c++ ) {
+                                                       if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) {
+                                                               setClass += classNames[ c ] + " ";
+                                                       }
+                                               }
+                                               elem.className = jQuery.trim( setClass );
+                                       }
+                               }
+                       }
+               }
+
+               return this;
+       },
+
+       removeClass: function( value ) {
+               var classNames, i, l, elem, className, c, cl;
+
+               if ( jQuery.isFunction( value ) ) {
+                       return this.each(function( j ) {
+                               jQuery( this ).removeClass( value.call(this, j, this.className) );
+                       });
+               }
+
+               if ( (value && typeof value === "string") || value === undefined ) {
+                       classNames = ( value || "" ).split( rspace );
+
+                       for ( i = 0, l = this.length; i < l; i++ ) {
+                               elem = this[ i ];
+
+                               if ( elem.nodeType === 1 && elem.className ) {
+                                       if ( value ) {
+                                               className = (" " + elem.className + " ").replace( rclass, " " );
+                                               for ( c = 0, cl = classNames.length; c < cl; c++ ) {
+                                                       className = className.replace(" " + classNames[ c ] + " ", " ");
+                                               }
+                                               elem.className = jQuery.trim( className );
+
+                                       } else {
+                                               elem.className = "";
+                                       }
+                               }
+                       }
+               }
+
+               return this;
+       },
+
+       toggleClass: function( value, stateVal ) {
+               var type = typeof value,
+                       isBool = typeof stateVal === "boolean";
+
+               if ( jQuery.isFunction( value ) ) {
+                       return this.each(function( i ) {
+                               jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
+                       });
+               }
+
+               return this.each(function() {
+                       if ( type === "string" ) {
+                               // toggle individual class names
+                               var className,
+                                       i = 0,
+                                       self = jQuery( this ),
+                                       state = stateVal,
+                                       classNames = value.split( rspace );
+
+                               while ( (className = classNames[ i++ ]) ) {
+                                       // check each className given, space seperated list
+                                       state = isBool ? state : !self.hasClass( className );
+                                       self[ state ? "addClass" : "removeClass" ]( className );
+                               }
+
+                       } else if ( type === "undefined" || type === "boolean" ) {
+                               if ( this.className ) {
+                                       // store className if set
+                                       jQuery._data( this, "__className__", this.className );
+                               }
+
+                               // toggle whole className
+                               this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";
+                       }
+               });
+       },
+
+       hasClass: function( selector ) {
+               var className = " " + selector + " ",
+                       i = 0,
+                       l = this.length;
+               for ( ; i < l; i++ ) {
+                       if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
+                               return true;
+                       }
+               }
+
+               return false;
+       },
+
+       val: function( value ) {
+               var hooks, ret, isFunction,
+                       elem = this[0];
+
+               if ( !arguments.length ) {
+                       if ( elem ) {
+                               hooks = jQuery.valHooks[ elem.nodeName.toLowerCase() ] || jQuery.valHooks[ elem.type ];
+
+                               if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
+                                       return ret;
+                               }
+
+                               ret = elem.value;
+
+                               return typeof ret === "string" ?
+                                       // handle most common string cases
+                                       ret.replace(rreturn, "") :
+                                       // handle cases where value is null/undef or number
+                                       ret == null ? "" : ret;
+                       }
+
+                       return;
+               }
+
+               isFunction = jQuery.isFunction( value );
+
+               return this.each(function( i ) {
+                       var self = jQuery(this), val;
+
+                       if ( this.nodeType !== 1 ) {
+                               return;
+                       }
+
+                       if ( isFunction ) {
+                               val = value.call( this, i, self.val() );
+                       } else {
+                               val = value;
+                       }
+
+                       // Treat null/undefined as ""; convert numbers to string
+                       if ( val == null ) {
+                               val = "";
+                       } else if ( typeof val === "number" ) {
+                               val += "";
+                       } else if ( jQuery.isArray( val ) ) {
+                               val = jQuery.map(val, function ( value ) {
+                                       return value == null ? "" : value + "";
+                               });
+                       }
+
+                       hooks = jQuery.valHooks[ this.nodeName.toLowerCase() ] || jQuery.valHooks[ this.type ];
+
+                       // If set returns undefined, fall back to normal setting
+                       if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
+                               this.value = val;
+                       }
+               });
+       }
+});
+
+jQuery.extend({
+       valHooks: {
+               option: {
+                       get: function( elem ) {
+                               // attributes.value is undefined in Blackberry 4.7 but
+                               // uses .value. See #6932
+                               var val = elem.attributes.value;
+                               return !val || val.specified ? elem.value : elem.text;
+                       }
+               },
+               select: {
+                       get: function( elem ) {
+                               var value, i, max, option,
+                                       index = elem.selectedIndex,
+                                       values = [],
+                                       options = elem.options,
+                                       one = elem.type === "select-one";
+
+                               // Nothing was selected
+                               if ( index < 0 ) {
+                                       return null;
+                               }
+
+                               // Loop through all the selected options
+                               i = one ? index : 0;
+                               max = one ? index + 1 : options.length;
+                               for ( ; i < max; i++ ) {
+                                       option = options[ i ];
+
+                                       // Don't return options that are disabled or in a disabled optgroup
+                                       if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) &&
+                                                       (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
+
+                                               // Get the specific value for the option
+                                               value = jQuery( option ).val();
+
+                                               // We don't need an array for one selects
+                                               if ( one ) {
+                                                       return value;
+                                               }
+
+                                               // Multi-Selects return an array
+                                               values.push( value );
+                                       }
+                               }
+
+                               // Fixes Bug #2551 -- select.val() broken in IE after form.reset()
+                               if ( one && !values.length && options.length ) {
+                                       return jQuery( options[ index ] ).val();
+                               }
+
+                               return values;
+                       },
+
+                       set: function( elem, value ) {
+                               var values = jQuery.makeArray( value );
+
+                               jQuery(elem).find("option").each(function() {
+                                       this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
+                               });
+
+                               if ( !values.length ) {
+                                       elem.selectedIndex = -1;
+                               }
+                               return values;
+                       }
+               }
+       },
+
+       attrFn: {
+               val: true,
+               css: true,
+               html: true,
+               text: true,
+               data: true,
+               width: true,
+               height: true,
+               offset: true
+       },
+
+       attr: function( elem, name, value, pass ) {
+               var ret, hooks, notxml,
+                       nType = elem.nodeType;
+
+               // don't get/set attributes on text, comment and attribute nodes
+               if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
+                       return;
+               }
+
+               if ( pass && name in jQuery.attrFn ) {
+                       return jQuery( elem )[ name ]( value );
+               }
+
+               // Fallback to prop when attributes are not supported
+               if ( typeof elem.getAttribute === "undefined" ) {
+                       return jQuery.prop( elem, name, value );
+               }
+
+               notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
+
+               // All attributes are lowercase
+               // Grab necessary hook if one is defined
+               if ( notxml ) {
+                       name = name.toLowerCase();
+                       hooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook );
+               }
+
+               if ( value !== undefined ) {
+
+                       if ( value === null ) {
+                               jQuery.removeAttr( elem, name );
+                               return;
+
+                       } else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) {
+                               return ret;
+
+                       } else {
+                               elem.setAttribute( name, "" + value );
+                               return value;
+                       }
+
+               } else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) {
+                       return ret;
+
+               } else {
+
+                       ret = elem.getAttribute( name );
+
+                       // Non-existent attributes return null, we normalize to undefined
+                       return ret === null ?
+                               undefined :
+                               ret;
+               }
+       },
+
+       removeAttr: function( elem, value ) {
+               var propName, attrNames, name, l,
+                       i = 0;
+
+               if ( value && elem.nodeType === 1 ) {
+                       attrNames = value.toLowerCase().split( rspace );
+                       l = attrNames.length;
+
+                       for ( ; i < l; i++ ) {
+                               name = attrNames[ i ];
+
+                               if ( name ) {
+                                       propName = jQuery.propFix[ name ] || name;
+
+                                       // See #9699 for explanation of this approach (setting first, then removal)
+                                       jQuery.attr( elem, name, "" );
+                                       elem.removeAttribute( getSetAttribute ? name : propName );
+
+                                       // Set corresponding property to false for boolean attributes
+                                       if ( rboolean.test( name ) && propName in elem ) {
+                                               elem[ propName ] = false;
+                                       }
+                               }
+                       }
+               }
+       },
+
+       attrHooks: {
+               type: {
+                       set: function( elem, value ) {
+                               // We can't allow the type property to be changed (since it causes problems in IE)
+                               if ( rtype.test( elem.nodeName ) && elem.parentNode ) {
+                                       jQuery.error( "type property can't be changed" );
+                               } else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
+                                       // Setting the type on a radio button after the value resets the value in IE6-9
+                                       // Reset value to it's default in case type is set after value
+                                       // This is for element creation
+                                       var val = elem.value;
+                                       elem.setAttribute( "type", value );
+                                       if ( val ) {
+                                               elem.value = val;
+                                       }
+                                       return value;
+                               }
+                       }
+               },
+               // Use the value property for back compat
+               // Use the nodeHook for button elements in IE6/7 (#1954)
+               value: {
+                       get: function( elem, name ) {
+                               if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
+                                       return nodeHook.get( elem, name );
+                               }
+                               return name in elem ?
+                                       elem.value :
+                                       null;
+                       },
+                       set: function( elem, value, name ) {
+                               if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
+                                       return nodeHook.set( elem, value, name );
+                               }
+                               // Does not return so that setAttribute is also used
+                               elem.value = value;
+                       }
+               }
+       },
+
+       propFix: {
+               tabindex: "tabIndex",
+               readonly: "readOnly",
+               "for": "htmlFor",
+               "class": "className",
+               maxlength: "maxLength",
+               cellspacing: "cellSpacing",
+               cellpadding: "cellPadding",
+               rowspan: "rowSpan",
+               colspan: "colSpan",
+               usemap: "useMap",
+               frameborder: "frameBorder",
+               contenteditable: "contentEditable"
+       },
+
+       prop: function( elem, name, value ) {
+               var ret, hooks, notxml,
+                       nType = elem.nodeType;
+
+               // don't get/set properties on text, comment and attribute nodes
+               if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
+                       return;
+               }
+
+               notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
+
+               if ( notxml ) {
+                       // Fix name and attach hooks
+                       name = jQuery.propFix[ name ] || name;
+                       hooks = jQuery.propHooks[ name ];
+               }
+
+               if ( value !== undefined ) {
+                       if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
+                               return ret;
+
+                       } else {
+                               return ( elem[ name ] = value );
+                       }
+
+               } else {
+                       if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
+                               return ret;
+
+                       } else {
+                               return elem[ name ];
+                       }
+               }
+       },
+
+       propHooks: {
+               tabIndex: {
+                       get: function( elem ) {
+                               // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
+                               // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
+                               var attributeNode = elem.getAttributeNode("tabindex");
+
+                               return attributeNode && attributeNode.specified ?
+                                       parseInt( attributeNode.value, 10 ) :
+                                       rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
+                                               0 :
+                                               undefined;
+                       }
+               }
+       }
+});
+
+// Add the tabIndex propHook to attrHooks for back-compat (different case is intentional)
+jQuery.attrHooks.tabindex = jQuery.propHooks.tabIndex;
+
+// Hook for boolean attributes
+boolHook = {
+       get: function( elem, name ) {
+               // Align boolean attributes with corresponding properties
+               // Fall back to attribute presence where some booleans are not supported
+               var attrNode,
+                       property = jQuery.prop( elem, name );
+               return property === true || typeof property !== "boolean" && ( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ?
+                       name.toLowerCase() :
+                       undefined;
+       },
+       set: function( elem, value, name ) {
+               var propName;
+               if ( value === false ) {
+                       // Remove boolean attributes when set to false
+                       jQuery.removeAttr( elem, name );
+               } else {
+                       // value is true since we know at this point it's type boolean and not false
+                       // Set boolean attributes to the same name and set the DOM property
+                       propName = jQuery.propFix[ name ] || name;
+                       if ( propName in elem ) {
+                               // Only set the IDL specifically if it already exists on the element
+                               elem[ propName ] = true;
+                       }
+
+                       elem.setAttribute( name, name.toLowerCase() );
+               }
+               return name;
+       }
+};
+
+// IE6/7 do not support getting/setting some attributes with get/setAttribute
+if ( !getSetAttribute ) {
+
+       fixSpecified = {
+               name: true,
+               id: true
+       };
+
+       // Use this for any attribute in IE6/7
+       // This fixes almost every IE6/7 issue
+       nodeHook = jQuery.valHooks.button = {
+               get: function( elem, name ) {
+                       var ret;
+                       ret = elem.getAttributeNode( name );
+                       return ret && ( fixSpecified[ name ] ? ret.nodeValue !== "" : ret.specified ) ?
+                               ret.nodeValue :
+                               undefined;
+               },
+               set: function( elem, value, name ) {
+                       // Set the existing or create a new attribute node
+                       var ret = elem.getAttributeNode( name );
+                       if ( !ret ) {
+                               ret = document.createAttribute( name );
+                               elem.setAttributeNode( ret );
+                       }
+                       return ( ret.nodeValue = value + "" );
+               }
+       };
+
+       // Apply the nodeHook to tabindex
+       jQuery.attrHooks.tabindex.set = nodeHook.set;
+
+       // Set width and height to auto instead of 0 on empty string( Bug #8150 )
+       // This is for removals
+       jQuery.each([ "width", "height" ], function( i, name ) {
+               jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
+                       set: function( elem, value ) {
+                               if ( value === "" ) {
+                                       elem.setAttribute( name, "auto" );
+                                       return value;
+                               }
+                       }
+               });
+       });
+
+       // Set contenteditable to false on removals(#10429)
+       // Setting to empty string throws an error as an invalid value
+       jQuery.attrHooks.contenteditable = {
+               get: nodeHook.get,
+               set: function( elem, value, name ) {
+                       if ( value === "" ) {
+                               value = "false";
+                       }
+                       nodeHook.set( elem, value, name );
+               }
+       };
+}
+
+
+// Some attributes require a special call on IE
+if ( !jQuery.support.hrefNormalized ) {
+       jQuery.each([ "href", "src", "width", "height" ], function( i, name ) {
+               jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
+                       get: function( elem ) {
+                               var ret = elem.getAttribute( name, 2 );
+                               return ret === null ? undefined : ret;
+                       }
+               });
+       });
+}
+
+if ( !jQuery.support.style ) {
+       jQuery.attrHooks.style = {
+               get: function( elem ) {
+                       // Return undefined in the case of empty string
+                       // Normalize to lowercase since IE uppercases css property names
+                       return elem.style.cssText.toLowerCase() || undefined;
+               },
+               set: function( elem, value ) {
+                       return ( elem.style.cssText = "" + value );
+               }
+       };
+}
+
+// Safari mis-reports the default selected property of an option
+// Accessing the parent's selectedIndex property fixes it
+if ( !jQuery.support.optSelected ) {
+       jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {
+               get: function( elem ) {
+                       var parent = elem.parentNode;
+
+                       if ( parent ) {
+                               parent.selectedIndex;
+
+                               // Make sure that it also works with optgroups, see #5701
+                               if ( parent.parentNode ) {
+                                       parent.parentNode.selectedIndex;
+                               }
+                       }
+                       return null;
+               }
+       });
+}
+
+// IE6/7 call enctype encoding
+if ( !jQuery.support.enctype ) {
+       jQuery.propFix.enctype = "encoding";
+}
+
+// Radios and checkboxes getter/setter
+if ( !jQuery.support.checkOn ) {
+       jQuery.each([ "radio", "checkbox" ], function() {
+               jQuery.valHooks[ this ] = {
+                       get: function( elem ) {
+                               // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
+                               return elem.getAttribute("value") === null ? "on" : elem.value;
+                       }
+               };
+       });
+}
+jQuery.each([ "radio", "checkbox" ], function() {
+       jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {
+               set: function( elem, value ) {
+                       if ( jQuery.isArray( value ) ) {
+                               return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
+                       }
+               }
+       });
+});
+
+
+
+
+var rformElems = /^(?:textarea|input|select)$/i,
+       rtypenamespace = /^([^\.]*)?(?:\.(.+))?$/,
+       rhoverHack = /\bhover(\.\S+)?\b/,
+       rkeyEvent = /^key/,
+       rmouseEvent = /^(?:mouse|contextmenu)|click/,
+       rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
+       rquickIs = /^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,
+       quickParse = function( selector ) {
+               var quick = rquickIs.exec( selector );
+               if ( quick ) {
+                       //   0  1    2   3
+                       // [ _, tag, id, class ]
+                       quick[1] = ( quick[1] || "" ).toLowerCase();
+                       quick[3] = quick[3] && new RegExp( "(?:^|\\s)" + quick[3] + "(?:\\s|$)" );
+               }
+               return quick;
+       },
+       quickIs = function( elem, m ) {
+               var attrs = elem.attributes || {};
+               return (
+                       (!m[1] || elem.nodeName.toLowerCase() === m[1]) &&
+                       (!m[2] || (attrs.id || {}).value === m[2]) &&
+                       (!m[3] || m[3].test( (attrs[ "class" ] || {}).value ))
+               );
+       },
+       hoverHack = function( events ) {
+               return jQuery.event.special.hover ? events : events.replace( rhoverHack, "mouseenter$1 mouseleave$1" );
+       };
+
+/*
+ * Helper functions for managing events -- not part of the public interface.
+ * Props to Dean Edwards' addEvent library for many of the ideas.
+ */
+jQuery.event = {
+
+       add: function( elem, types, handler, data, selector ) {
+
+               var elemData, eventHandle, events,
+                       t, tns, type, namespaces, handleObj,
+                       handleObjIn, quick, handlers, special;
+
+               // Don't attach events to noData or text/comment nodes (allow plain objects tho)
+               if ( elem.nodeType === 3 || elem.nodeType === 8 || !types || !handler || !(elemData = jQuery._data( elem )) ) {
+                       return;
+               }
+
+               // Caller can pass in an object of custom data in lieu of the handler
+               if ( handler.handler ) {
+                       handleObjIn = handler;
+                       handler = handleObjIn.handler;
+               }
+
+               // Make sure that the handler has a unique ID, used to find/remove it later
+               if ( !handler.guid ) {
+                       handler.guid = jQuery.guid++;
+               }
+
+               // Init the element's event structure and main handler, if this is the first
+               events = elemData.events;
+               if ( !events ) {
+                       elemData.events = events = {};
+               }
+               eventHandle = elemData.handle;
+               if ( !eventHandle ) {
+                       elemData.handle = eventHandle = function( e ) {
+                               // Discard the second event of a jQuery.event.trigger() and
+                               // when an event is called after a page has unloaded
+                               return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ?
+                                       jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
+                                       undefined;
+                       };
+                       // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events
+                       eventHandle.elem = elem;
+               }
+
+               // Handle multiple events separated by a space
+               // jQuery(...).bind("mouseover mouseout", fn);
+               types = jQuery.trim( hoverHack(types) ).split( " " );
+               for ( t = 0; t < types.length; t++ ) {
+
+                       tns = rtypenamespace.exec( types[t] ) || [];
+                       type = tns[1];
+                       namespaces = ( tns[2] || "" ).split( "." ).sort();
+
+                       // If event changes its type, use the special event handlers for the changed type
+                       special = jQuery.event.special[ type ] || {};
+
+                       // If selector defined, determine special event api type, otherwise given type
+                       type = ( selector ? special.delegateType : special.bindType ) || type;
+
+                       // Update special based on newly reset type
+                       special = jQuery.event.special[ type ] || {};
+
+                       // handleObj is passed to all event handlers
+                       handleObj = jQuery.extend({
+                               type: type,
+                               origType: tns[1],
+                               data: data,
+                               handler: handler,
+                               guid: handler.guid,
+                               selector: selector,
+                               quick: quickParse( selector ),
+                               namespace: namespaces.join(".")
+                       }, handleObjIn );
+
+                       // Init the event handler queue if we're the first
+                       handlers = events[ type ];
+                       if ( !handlers ) {
+                               handlers = events[ type ] = [];
+                               handlers.delegateCount = 0;
+
+                               // Only use addEventListener/attachEvent if the special events handler returns false
+                               if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
+                                       // Bind the global event handler to the element
+                                       if ( elem.addEventListener ) {
+                                               elem.addEventListener( type, eventHandle, false );
+
+                                       } else if ( elem.attachEvent ) {
+                                               elem.attachEvent( "on" + type, eventHandle );
+                                       }
+                               }
+                       }
+
+                       if ( special.add ) {
+                               special.add.call( elem, handleObj );
+
+                               if ( !handleObj.handler.guid ) {
+                                       handleObj.handler.guid = handler.guid;
+                               }
+                       }
+
+                       // Add to the element's handler list, delegates in front
+                       if ( selector ) {
+                               handlers.splice( handlers.delegateCount++, 0, handleObj );
+                       } else {
+                               handlers.push( handleObj );
+                       }
+
+                       // Keep track of which events have ever been used, for event optimization
+                       jQuery.event.global[ type ] = true;
+               }
+
+               // Nullify elem to prevent memory leaks in IE
+               elem = null;
+       },
+
+       global: {},
+
+       // Detach an event or set of events from an element
+       remove: function( elem, types, handler, selector, mappedTypes ) {
+
+               var elemData = jQuery.hasData( elem ) && jQuery._data( elem ),
+                       t, tns, type, origType, namespaces, origCount,
+                       j, events, special, handle, eventType, handleObj;
+
+               if ( !elemData || !(events = elemData.events) ) {
+                       return;
+               }
+
+               // Once for each type.namespace in types; type may be omitted
+               types = jQuery.trim( hoverHack( types || "" ) ).split(" ");
+               for ( t = 0; t < types.length; t++ ) {
+                       tns = rtypenamespace.exec( types[t] ) || [];
+                       type = origType = tns[1];
+                       namespaces = tns[2];
+
+                       // Unbind all events (on this namespace, if provided) for the element
+                       if ( !type ) {
+                               for ( type in events ) {
+                                       jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
+                               }
+                               continue;
+                       }
+
+                       special = jQuery.event.special[ type ] || {};
+                       type = ( selector? special.delegateType : special.bindType ) || type;
+                       eventType = events[ type ] || [];
+                       origCount = eventType.length;
+                       namespaces = namespaces ? new RegExp("(^|\\.)" + namespaces.split(".").sort().join("\\.(?:.*\\.)?") + "(\\.|$)") : null;
+
+                       // Remove matching events
+                       for ( j = 0; j < eventType.length; j++ ) {
+                               handleObj = eventType[ j ];
+
+                               if ( ( mappedTypes || origType === handleObj.origType ) &&
+                                        ( !handler || handler.guid === handleObj.guid ) &&
+                                        ( !namespaces || namespaces.test( handleObj.namespace ) ) &&
+                                        ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
+                                       eventType.splice( j--, 1 );
+
+                                       if ( handleObj.selector ) {
+                                               eventType.delegateCount--;
+                                       }
+                                       if ( special.remove ) {
+                                               special.remove.call( elem, handleObj );
+                                       }
+                               }
+                       }
+
+                       // Remove generic event handler if we removed something and no more handlers exist
+                       // (avoids potential for endless recursion during removal of special event handlers)
+                       if ( eventType.length === 0 && origCount !== eventType.length ) {
+                               if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {
+                                       jQuery.removeEvent( elem, type, elemData.handle );
+                               }
+
+                               delete events[ type ];
+                       }
+               }
+
+               // Remove the expando if it's no longer used
+               if ( jQuery.isEmptyObject( events ) ) {
+                       handle = elemData.handle;
+                       if ( handle ) {
+                               handle.elem = null;
+                       }
+
+                       // removeData also checks for emptiness and clears the expando if empty
+                       // so use it instead of delete
+                       jQuery.removeData( elem, [ "events", "handle" ], true );
+               }
+       },
+
+       // Events that are safe to short-circuit if no handlers are attached.
+       // Native DOM events should not be added, they may have inline handlers.
+       customEvent: {
+               "getData": true,
+               "setData": true,
+               "changeData": true
+       },
+
+       trigger: function( event, data, elem, onlyHandlers ) {
+               // Don't do events on text and comment nodes
+               if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {
+                       return;
+               }
+
+               // Event object or event type
+               var type = event.type || event,
+                       namespaces = [],
+                       cache, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType;
+
+               // focus/blur morphs to focusin/out; ensure we're not firing them right now
+               if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
+                       return;
+               }
+
+               if ( type.indexOf( "!" ) >= 0 ) {
+                       // Exclusive events trigger only for the exact event (no namespaces)
+                       type = type.slice(0, -1);
+                       exclusive = true;
+               }
+
+               if ( type.indexOf( "." ) >= 0 ) {
+                       // Namespaced trigger; create a regexp to match event type in handle()
+                       namespaces = type.split(".");
+                       type = namespaces.shift();
+                       namespaces.sort();
+               }
+
+               if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) {
+                       // No jQuery handlers for this event type, and it can't have inline handlers
+                       return;
+               }
+
+               // Caller can pass in an Event, Object, or just an event type string
+               event = typeof event === "object" ?
+                       // jQuery.Event object
+                       event[ jQuery.expando ] ? event :
+                       // Object literal
+                       new jQuery.Event( type, event ) :
+                       // Just the event type (string)
+                       new jQuery.Event( type );
+
+               event.type = type;
+               event.isTrigger = true;
+               event.exclusive = exclusive;
+               event.namespace = namespaces.join( "." );
+               event.namespace_re = event.namespace? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)") : null;
+               ontype = type.indexOf( ":" ) < 0 ? "on" + type : "";
+
+               // Handle a global trigger
+               if ( !elem ) {
+
+                       // TODO: Stop taunting the data cache; remove global events and always attach to document
+                       cache = jQuery.cache;
+                       for ( i in cache ) {
+                               if ( cache[ i ].events && cache[ i ].events[ type ] ) {
+                                       jQuery.event.trigger( event, data, cache[ i ].handle.elem, true );
+                               }
+                       }
+                       return;
+               }
+
+               // Clean up the event in case it is being reused
+               event.result = undefined;
+               if ( !event.target ) {
+                       event.target = elem;
+               }
+
+               // Clone any incoming data and prepend the event, creating the handler arg list
+               data = data != null ? jQuery.makeArray( data ) : [];
+               data.unshift( event );
+
+               // Allow special events to draw outside the lines
+               special = jQuery.event.special[ type ] || {};
+               if ( special.trigger && special.trigger.apply( elem, data ) === false ) {
+                       return;
+               }
+
+               // Determine event propagation path in advance, per W3C events spec (#9951)
+               // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
+               eventPath = [[ elem, special.bindType || type ]];
+               if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
+
+                       bubbleType = special.delegateType || type;
+                       cur = rfocusMorph.test( bubbleType + type ) ? elem : elem.parentNode;
+                       old = null;
+                       for ( ; cur; cur = cur.parentNode ) {
+                               eventPath.push([ cur, bubbleType ]);
+                               old = cur;
+                       }
+
+                       // Only add window if we got to document (e.g., not plain obj or detached DOM)
+                       if ( old && old === elem.ownerDocument ) {
+                               eventPath.push([ old.defaultView || old.parentWindow || window, bubbleType ]);
+                       }
+               }
+
+               // Fire handlers on the event path
+               for ( i = 0; i < eventPath.length && !event.isPropagationStopped(); i++ ) {
+
+                       cur = eventPath[i][0];
+                       event.type = eventPath[i][1];
+
+                       handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" );
+                       if ( handle ) {
+                               handle.apply( cur, data );
+                       }
+                       // Note that this is a bare JS function and not a jQuery handler
+                       handle = ontype && cur[ ontype ];
+                       if ( handle && jQuery.acceptData( cur ) && handle.apply( cur, data ) === false ) {
+                               event.preventDefault();
+                       }
+               }
+               event.type = type;
+
+               // If nobody prevented the default action, do it now
+               if ( !onlyHandlers && !event.isDefaultPrevented() ) {
+
+                       if ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) &&
+                               !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) {
+
+                               // Call a native DOM method on the target with the same name name as the event.
+                               // Can't use an .isFunction() check here because IE6/7 fails that test.
+                               // Don't do default actions on window, that's where global variables be (#6170)
+                               // IE<9 dies on focus/blur to hidden element (#1486)
+                               if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {
+
+                                       // Don't re-trigger an onFOO event when we call its FOO() method
+                                       old = elem[ ontype ];
+
+                                       if ( old ) {
+                                               elem[ ontype ] = null;
+                                       }
+
+                                       // Prevent re-triggering of the same event, since we already bubbled it above
+                                       jQuery.event.triggered = type;
+                                       elem[ type ]();
+                                       jQuery.event.triggered = undefined;
+
+                                       if ( old ) {
+                                               elem[ ontype ] = old;
+                                       }
+                               }
+                       }
+               }
+
+               return event.result;
+       },
+
+       dispatch: function( event ) {
+
+               // Make a writable jQuery.Event from the native event object
+               event = jQuery.event.fix( event || window.event );
+
+               var handlers = ( (jQuery._data( this, "events" ) || {} )[ event.type ] || []),
+                       delegateCount = handlers.delegateCount,
+                       args = [].slice.call( arguments, 0 ),
+                       run_all = !event.exclusive && !event.namespace,
+                       handlerQueue = [],
+                       i, j, cur, jqcur, ret, selMatch, matched, matches, handleObj, sel, related;
+
+               // Use the fix-ed jQuery.Event rather than the (read-only) native event
+               args[0] = event;
+               event.delegateTarget = this;
+
+               // Determine handlers that should run if there are delegated events
+               // Avoid disabled elements in IE (#6911) and non-left-click bubbling in Firefox (#3861)
+               if ( delegateCount && !event.target.disabled && !(event.button && event.type === "click") ) {
+
+                       // Pregenerate a single jQuery object for reuse with .is()
+                       jqcur = jQuery(this);
+                       jqcur.context = this.ownerDocument || this;
+
+                       for ( cur = event.target; cur != this; cur = cur.parentNode || this ) {
+                               selMatch = {};
+                               matches = [];
+                               jqcur[0] = cur;
+                               for ( i = 0; i < delegateCount; i++ ) {
+                                       handleObj = handlers[ i ];
+                                       sel = handleObj.selector;
+
+                                       if ( selMatch[ sel ] === undefined ) {
+                                               selMatch[ sel ] = (
+                                                       handleObj.quick ? quickIs( cur, handleObj.quick ) : jqcur.is( sel )
+                                               );
+                                       }
+                                       if ( selMatch[ sel ] ) {
+                                               matches.push( handleObj );
+                                       }
+                               }
+                               if ( matches.length ) {
+                                       handlerQueue.push({ elem: cur, matches: matches });
+                               }
+                       }
+               }
+
+               // Add the remaining (directly-bound) handlers
+               if ( handlers.length > delegateCount ) {
+                       handlerQueue.push({ elem: this, matches: handlers.slice( delegateCount ) });
+               }
+
+               // Run delegates first; they may want to stop propagation beneath us
+               for ( i = 0; i < handlerQueue.length && !event.isPropagationStopped(); i++ ) {
+                       matched = handlerQueue[ i ];
+                       event.currentTarget = matched.elem;
+
+                       for ( j = 0; j < matched.matches.length && !event.isImmediatePropagationStopped(); j++ ) {
+                               handleObj = matched.matches[ j ];
+
+                               // Triggered event must either 1) be non-exclusive and have no namespace, or
+                               // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).
+                               if ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) {
+
+                                       event.data = handleObj.data;
+                                       event.handleObj = handleObj;
+
+                                       ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )
+                                                       .apply( matched.elem, args );
+
+                                       if ( ret !== undefined ) {
+                                               event.result = ret;
+                                               if ( ret === false ) {
+                                                       event.preventDefault();
+                                                       event.stopPropagation();
+                                               }
+                                       }
+                               }
+                       }
+               }
+
+               return event.result;
+       },
+
+       // Includes some event props shared by KeyEvent and MouseEvent
+       // *** attrChange attrName relatedNode srcElement  are not normalized, non-W3C, deprecated, will be removed in 1.8 ***
+       props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
+
+       fixHooks: {},
+
+       keyHooks: {
+               props: "char charCode key keyCode".split(" "),
+               filter: function( event, original ) {
+
+                       // Add which for key events
+                       if ( event.which == null ) {
+                               event.which = original.charCode != null ? original.charCode : original.keyCode;
+                       }
+
+                       return event;
+               }
+       },
+
+       mouseHooks: {
+               props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
+               filter: function( event, original ) {
+                       var eventDoc, doc, body,
+                               button = original.button,
+                               fromElement = original.fromElement;
+
+                       // Calculate pageX/Y if missing and clientX/Y available
+                       if ( event.pageX == null && original.clientX != null ) {
+                               eventDoc = event.target.ownerDocument || document;
+                               doc = eventDoc.documentElement;
+                               body = eventDoc.body;
+
+                               event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
+                               event.pageY = original.clientY + ( doc && doc.scrollTop  || body && body.scrollTop  || 0 ) - ( doc && doc.clientTop  || body && body.clientTop  || 0 );
+                       }
+
+                       // Add relatedTarget, if necessary
+                       if ( !event.relatedTarget && fromElement ) {
+                               event.relatedTarget = fromElement === event.target ? original.toElement : fromElement;
+                       }
+
+                       // Add which for click: 1 === left; 2 === middle; 3 === right
+                       // Note: button is not normalized, so don't use it
+                       if ( !event.which && button !== undefined ) {
+                               event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
+                       }
+
+                       return event;
+               }
+       },
+
+       fix: function( event ) {
+               if ( event[ jQuery.expando ] ) {
+                       return event;
+               }
+
+               // Create a writable copy of the event object and normalize some properties
+               var i, prop,
+                       originalEvent = event,
+                       fixHook = jQuery.event.fixHooks[ event.type ] || {},
+                       copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
+
+               event = jQuery.Event( originalEvent );
+
+               for ( i = copy.length; i; ) {
+                       prop = copy[ --i ];
+                       event[ prop ] = originalEvent[ prop ];
+               }
+
+               // Fix target property, if necessary (#1925, IE 6/7/8 & Safari2)
+               if ( !event.target ) {
+                       event.target = originalEvent.srcElement || document;
+               }
+
+               // Target should not be a text node (#504, Safari)
+               if ( event.target.nodeType === 3 ) {
+                       event.target = event.target.parentNode;
+               }
+
+               // For mouse/key events; add metaKey if it's not there (#3368, IE6/7/8)
+               if ( event.metaKey === undefined ) {
+                       event.metaKey = event.ctrlKey;
+               }
+
+               return fixHook.filter? fixHook.filter( event, originalEvent ) : event;
+       },
+
+       special: {
+               ready: {
+                       // Make sure the ready event is setup
+                       setup: jQuery.bindReady
+               },
+
+               load: {
+                       // Prevent triggered image.load events from bubbling to window.load
+                       noBubble: true
+               },
+
+               focus: {
+                       delegateType: "focusin"
+               },
+               blur: {
+                       delegateType: "focusout"
+               },
+
+               beforeunload: {
+                       setup: function( data, namespaces, eventHandle ) {
+                               // We only want to do this special case on windows
+                               if ( jQuery.isWindow( this ) ) {
+                                       this.onbeforeunload = eventHandle;
+                               }
+                       },
+
+                       teardown: function( namespaces, eventHandle ) {
+                               if ( this.onbeforeunload === eventHandle ) {
+                                       this.onbeforeunload = null;
+                               }
+                       }
+               }
+       },
+
+       simulate: function( type, elem, event, bubble ) {
+               // Piggyback on a donor event to simulate a different one.
+               // Fake originalEvent to avoid donor's stopPropagation, but if the
+               // simulated event prevents default then we do the same on the donor.
+               var e = jQuery.extend(
+                       new jQuery.Event(),
+                       event,
+                       { type: type,
+                               isSimulated: true,
+                               originalEvent: {}
+                       }
+               );
+               if ( bubble ) {
+                       jQuery.event.trigger( e, null, elem );
+               } else {
+                       jQuery.event.dispatch.call( elem, e );
+               }
+               if ( e.isDefaultPrevented() ) {
+                       event.preventDefault();
+               }
+       }
+};
+
+// Some plugins are using, but it's undocumented/deprecated and will be removed.
+// The 1.7 special event interface should provide all the hooks needed now.
+jQuery.event.handle = jQuery.event.dispatch;
+
+jQuery.removeEvent = document.removeEventListener ?
+       function( elem, type, handle ) {
+               if ( elem.removeEventListener ) {
+                       elem.removeEventListener( type, handle, false );
+               }
+       } :
+       function( elem, type, handle ) {
+               if ( elem.detachEvent ) {
+                       elem.detachEvent( "on" + type, handle );
+               }
+       };
+
+jQuery.Event = function( src, props ) {
+       // Allow instantiation without the 'new' keyword
+       if ( !(this instanceof jQuery.Event) ) {
+               return new jQuery.Event( src, props );
+       }
+
+       // Event object
+       if ( src && src.type ) {
+               this.originalEvent = src;
+               this.type = src.type;
+
+               // Events bubbling up the document may have been marked as prevented
+               // by a handler lower down the tree; reflect the correct value.
+               this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false ||
+                       src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;
+
+       // Event type
+       } else {
+               this.type = src;
+       }
+
+       // Put explicitly provided properties onto the event object
+       if ( props ) {
+               jQuery.extend( this, props );
+       }
+
+       // Create a timestamp if incoming event doesn't have one
+       this.timeStamp = src && src.timeStamp || jQuery.now();
+
+       // Mark it as fixed
+       this[ jQuery.expando ] = true;
+};
+
+function returnFalse() {
+       return false;
+}
+function returnTrue() {
+       return true;
+}
+
+// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
+// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
+jQuery.Event.prototype = {
+       preventDefault: function() {
+               this.isDefaultPrevented = returnTrue;
+
+               var e = this.originalEvent;
+               if ( !e ) {
+                       return;
+               }
+
+               // if preventDefault exists run it on the original event
+               if ( e.preventDefault ) {
+                       e.preventDefault();
+
+               // otherwise set the returnValue property of the original event to false (IE)
+               } else {
+                       e.returnValue = false;
+               }
+       },
+       stopPropagation: function() {
+               this.isPropagationStopped = returnTrue;
+
+               var e = this.originalEvent;
+               if ( !e ) {
+                       return;
+               }
+               // if stopPropagation exists run it on the original event
+               if ( e.stopPropagation ) {
+                       e.stopPropagation();
+               }
+               // otherwise set the cancelBubble property of the original event to true (IE)
+               e.cancelBubble = true;
+       },
+       stopImmediatePropagation: function() {
+               this.isImmediatePropagationStopped = returnTrue;
+               this.stopPropagation();
+       },
+       isDefaultPrevented: returnFalse,
+       isPropagationStopped: returnFalse,
+       isImmediatePropagationStopped: returnFalse
+};
+
+// Create mouseenter/leave events using mouseover/out and event-time checks
+jQuery.each({
+       mouseenter: "mouseover",
+       mouseleave: "mouseout"
+}, function( orig, fix ) {
+       jQuery.event.special[ orig ] = {
+               delegateType: fix,
+               bindType: fix,
+
+               handle: function( event ) {
+                       var target = this,
+                               related = event.relatedTarget,
+                               handleObj = event.handleObj,
+                               selector = handleObj.selector,
+                               ret;
+
+                       // For mousenter/leave call the handler if related is outside the target.
+                       // NB: No relatedTarget if the mouse left/entered the browser window
+                       if ( !related || (related !== target && !jQuery.contains( target, related )) ) {
+                               event.type = handleObj.origType;
+                               ret = handleObj.handler.apply( this, arguments );
+                               event.type = fix;
+                       }
+                       return ret;
+               }
+       };
+});
+
+// IE submit delegation
+if ( !jQuery.support.submitBubbles ) {
+
+       jQuery.event.special.submit = {
+               setup: function() {
+                       // Only need this for delegated form submit events
+                       if ( jQuery.nodeName( this, "form" ) ) {
+                               return false;
+                       }
+
+                       // Lazy-add a submit handler when a descendant form may potentially be submitted
+                       jQuery.event.add( this, "click._submit keypress._submit", function( e ) {
+                               // Node name check avoids a VML-related crash in IE (#9807)
+                               var elem = e.target,
+                                       form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined;
+                               if ( form && !form._submit_attached ) {
+                                       jQuery.event.add( form, "submit._submit", function( event ) {
+                                               // If form was submitted by the user, bubble the event up the tree
+                                               if ( this.parentNode && !event.isTrigger ) {
+                                                       jQuery.event.simulate( "submit", this.parentNode, event, true );
+                                               }
+                                       });
+                                       form._submit_attached = true;
+                               }
+                       });
+                       // return undefined since we don't need an event listener
+               },
+
+               teardown: function() {
+                       // Only need this for delegated form submit events
+                       if ( jQuery.nodeName( this, "form" ) ) {
+                               return false;
+                       }
+
+                       // Remove delegated handlers; cleanData eventually reaps submit handlers attached above
+                       jQuery.event.remove( this, "._submit" );
+               }
+       };
+}
+
+// IE change delegation and checkbox/radio fix
+if ( !jQuery.support.changeBubbles ) {
+
+       jQuery.event.special.change = {
+
+               setup: function() {
+
+                       if ( rformElems.test( this.nodeName ) ) {
+                               // IE doesn't fire change on a check/radio until blur; trigger it on click
+                               // after a propertychange. Eat the blur-change in special.change.handle.
+                               // This still fires onchange a second time for check/radio after blur.
+                               if ( this.type === "checkbox" || this.type === "radio" ) {
+                                       jQuery.event.add( this, "propertychange._change", function( event ) {
+                                               if ( event.originalEvent.propertyName === "checked" ) {
+                                                       this._just_changed = true;
+                                               }
+                                       });
+                                       jQuery.event.add( this, "click._change", function( event ) {
+                                               if ( this._just_changed && !event.isTrigger ) {
+                                                       this._just_changed = false;
+                                                       jQuery.event.simulate( "change", this, event, true );
+                                               }
+                                       });
+                               }
+                               return false;
+                       }
+                       // Delegated event; lazy-add a change handler on descendant inputs
+                       jQuery.event.add( this, "beforeactivate._change", function( e ) {
+                               var elem = e.target;
+
+                               if ( rformElems.test( elem.nodeName ) && !elem._change_attached ) {
+                                       jQuery.event.add( elem, "change._change", function( event ) {
+                                               if ( this.parentNode && !event.isSimulated && !event.isTrigger ) {
+                                                       jQuery.event.simulate( "change", this.parentNode, event, true );
+                                               }
+                                       });
+                                       elem._change_attached = true;
+                               }
+                       });
+               },
+
+               handle: function( event ) {
+                       var elem = event.target;
+
+                       // Swallow native change events from checkbox/radio, we already triggered them above
+                       if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) {
+                               return event.handleObj.handler.apply( this, arguments );
+                       }
+               },
+
+               teardown: function() {
+                       jQuery.event.remove( this, "._change" );
+
+                       return rformElems.test( this.nodeName );
+               }
+       };
+}
+
+// Create "bubbling" focus and blur events
+if ( !jQuery.support.focusinBubbles ) {
+       jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
+
+               // Attach a single capturing handler while someone wants focusin/focusout
+               var attaches = 0,
+                       handler = function( event ) {
+                               jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
+                       };
+
+               jQuery.event.special[ fix ] = {
+                       setup: function() {
+                               if ( attaches++ === 0 ) {
+                                       document.addEventListener( orig, handler, true );
+                               }
+                       },
+                       teardown: function() {
+                               if ( --attaches === 0 ) {
+                                       document.removeEventListener( orig, handler, true );
+                               }
+                       }
+               };
+       });
+}
+
+jQuery.fn.extend({
+
+       on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
+               var origFn, type;
+
+               // Types can be a map of types/handlers
+               if ( typeof types === "object" ) {
+                       // ( types-Object, selector, data )
+                       if ( typeof selector !== "string" ) {
+                               // ( types-Object, data )
+                               data = selector;
+                               selector = undefined;
+                       }
+                       for ( type in types ) {
+                               this.on( type, selector, data, types[ type ], one );
+                       }
+                       return this;
+               }
+
+               if ( data == null && fn == null ) {
+                       // ( types, fn )
+                       fn = selector;
+                       data = selector = undefined;
+               } else if ( fn == null ) {
+                       if ( typeof selector === "string" ) {
+                               // ( types, selector, fn )
+                               fn = data;
+                               data = undefined;
+                       } else {
+                               // ( types, data, fn )
+                               fn = data;
+                               data = selector;
+                               selector = undefined;
+                       }
+               }
+               if ( fn === false ) {
+                       fn = returnFalse;
+               } else if ( !fn ) {
+                       return this;
+               }
+
+               if ( one === 1 ) {
+                       origFn = fn;
+                       fn = function( event ) {
+                               // Can use an empty set, since event contains the info
+                               jQuery().off( event );
+                               return origFn.apply( this, arguments );
+                       };
+                       // Use same guid so caller can remove using origFn
+                       fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
+               }
+               return this.each( function() {
+                       jQuery.event.add( this, types, fn, data, selector );
+               });
+       },
+       one: function( types, selector, data, fn ) {
+               return this.on.call( this, types, selector, data, fn, 1 );
+       },
+       off: function( types, selector, fn ) {
+               if ( types && types.preventDefault && types.handleObj ) {
+                       // ( event )  dispatched jQuery.Event
+                       var handleObj = types.handleObj;
+                       jQuery( types.delegateTarget ).off(
+                               handleObj.namespace? handleObj.type + "." + handleObj.namespace : handleObj.type,
+                               handleObj.selector,
+                               handleObj.handler
+                       );
+                       return this;
+               }
+               if ( typeof types === "object" ) {
+                       // ( types-object [, selector] )
+                       for ( var type in types ) {
+                               this.off( type, selector, types[ type ] );
+                       }
+                       return this;
+               }
+               if ( selector === false || typeof selector === "function" ) {
+                       // ( types [, fn] )
+                       fn = selector;
+                       selector = undefined;
+               }
+               if ( fn === false ) {
+                       fn = returnFalse;
+               }
+               return this.each(function() {
+                       jQuery.event.remove( this, types, fn, selector );
+               });
+       },
+
+       bind: function( types, data, fn ) {
+               return this.on( types, null, data, fn );
+       },
+       unbind: function( types, fn ) {
+               return this.off( types, null, fn );
+       },
+
+       live: function( types, data, fn ) {
+               jQuery( this.context ).on( types, this.selector, data, fn );
+               return this;
+       },
+       die: function( types, fn ) {
+               jQuery( this.context ).off( types, this.selector || "**", fn );
+               return this;
+       },
+
+       delegate: function( selector, types, data, fn ) {
+               return this.on( types, selector, data, fn );
+       },
+       undelegate: function( selector, types, fn ) {
+               // ( namespace ) or ( selector, types [, fn] )
+               return arguments.length == 1? this.off( selector, "**" ) : this.off( types, selector, fn );
+       },
+
+       trigger: function( type, data ) {
+               return this.each(function() {
+                       jQuery.event.trigger( type, data, this );
+               });
+       },
+       triggerHandler: function( type, data ) {
+               if ( this[0] ) {
+                       return jQuery.event.trigger( type, data, this[0], true );
+               }
+       },
+
+       toggle: function( fn ) {
+               // Save reference to arguments for access in closure
+               var args = arguments,
+                       guid = fn.guid || jQuery.guid++,
+                       i = 0,
+                       toggler = function( event ) {
+                               // Figure out which function to execute
+                               var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i;
+                               jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 );
+
+                               // Make sure that clicks stop
+                               event.preventDefault();
+
+                               // and execute the function
+                               return args[ lastToggle ].apply( this, arguments ) || false;
+                       };
+
+               // link all the functions, so any of them can unbind this click handler
+               toggler.guid = guid;
+               while ( i < args.length ) {
+                       args[ i++ ].guid = guid;
+               }
+
+               return this.click( toggler );
+       },
+
+       hover: function( fnOver, fnOut ) {
+               return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
+       }
+});
+
+jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
+       "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
+       "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {
+
+       // Handle event binding
+       jQuery.fn[ name ] = function( data, fn ) {
+               if ( fn == null ) {
+                       fn = data;
+                       data = null;
+               }
+
+               return arguments.length > 0 ?
+                       this.on( name, null, data, fn ) :
+                       this.trigger( name );
+       };
+
+       if ( jQuery.attrFn ) {
+               jQuery.attrFn[ name ] = true;
+       }
+
+       if ( rkeyEvent.test( name ) ) {
+               jQuery.event.fixHooks[ name ] = jQuery.event.keyHooks;
+       }
+
+       if ( rmouseEvent.test( name ) ) {
+               jQuery.event.fixHooks[ name ] = jQuery.event.mouseHooks;
+       }
+});
+
+
+
+/*!
+ * Sizzle CSS Selector Engine
+ *  Copyright 2011, The Dojo Foundation
+ *  Released under the MIT, BSD, and GPL Licenses.
+ *  More information: http://sizzlejs.com/
+ */
+(function(){
+
+var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
+       expando = "sizcache" + (Math.random() + '').replace('.', ''),
+       done = 0,
+       toString = Object.prototype.toString,
+       hasDuplicate = false,
+       baseHasDuplicate = true,
+       rBackslash = /\\/g,
+       rReturn = /\r\n/g,
+       rNonWord = /\W/;
+
+// Here we check if the JavaScript engine is using some sort of
+// optimization where it does not always call our comparision
+// function. If that is the case, discard the hasDuplicate value.
+//   Thus far that includes Google Chrome.
+[0, 0].sort(function() {
+       baseHasDuplicate = false;
+       return 0;
+});
+
+var Sizzle = function( selector, context, results, seed ) {
+       results = results || [];
+       context = context || document;
+
+       var origContext = context;
+
+       if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
+               return [];
+       }
+       
+       if ( !selector || typeof selector !== "string" ) {
+               return results;
+       }
+
+       var m, set, checkSet, extra, ret, cur, pop, i,
+               prune = true,
+               contextXML = Sizzle.isXML( context ),
+               parts = [],
+               soFar = selector;
+       
+       // Reset the position of the chunker regexp (start from head)
+       do {
+               chunker.exec( "" );
+               m = chunker.exec( soFar );
+
+               if ( m ) {
+                       soFar = m[3];
+               
+                       parts.push( m[1] );
+               
+                       if ( m[2] ) {
+                               extra = m[3];
+                               break;
+                       }
+               }
+       } while ( m );
+
+       if ( parts.length > 1 && origPOS.exec( selector ) ) {
+
+               if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
+                       set = posProcess( parts[0] + parts[1], context, seed );
+
+               } else {
+                       set = Expr.relative[ parts[0] ] ?
+                               [ context ] :
+                               Sizzle( parts.shift(), context );
+
+                       while ( parts.length ) {
+                               selector = parts.shift();
+
+                               if ( Expr.relative[ selector ] ) {
+                                       selector += parts.shift();
+                               }
+                               
+                               set = posProcess( selector, set, seed );
+                       }
+               }
+
+       } else {
+               // Take a shortcut and set the context if the root selector is an ID
+               // (but not if it'll be faster if the inner selector is an ID)
+               if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
+                               Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
+
+                       ret = Sizzle.find( parts.shift(), context, contextXML );
+                       context = ret.expr ?
+                               Sizzle.filter( ret.expr, ret.set )[0] :
+                               ret.set[0];
+               }
+
+               if ( context ) {
+                       ret = seed ?
+                               { expr: parts.pop(), set: makeArray(seed) } :
+                               Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );
+
+                       set = ret.expr ?
+                               Sizzle.filter( ret.expr, ret.set ) :
+                               ret.set;
+
+                       if ( parts.length > 0 ) {
+                               checkSet = makeArray( set );
+
+                       } else {
+                               prune = false;
+                       }
+
+                       while ( parts.length ) {
+                               cur = parts.pop();
+                               pop = cur;
+
+                               if ( !Expr.relative[ cur ] ) {
+                                       cur = "";
+                               } else {
+                                       pop = parts.pop();
+                               }
+
+                               if ( pop == null ) {
+                                       pop = context;
+                               }
+
+                               Expr.relative[ cur ]( checkSet, pop, contextXML );
+                       }
+
+               } else {
+                       checkSet = parts = [];
+               }
+       }
+
+       if ( !checkSet ) {
+               checkSet = set;
+       }
+
+       if ( !checkSet ) {
+               Sizzle.error( cur || selector );
+       }
+
+       if ( toString.call(checkSet) === "[object Array]" ) {
+               if ( !prune ) {
+                       results.push.apply( results, checkSet );
+
+               } else if ( context && context.nodeType === 1 ) {
+                       for ( i = 0; checkSet[i] != null; i++ ) {
+                               if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {
+                                       results.push( set[i] );
+                               }
+                       }
+
+               } else {
+                       for ( i = 0; checkSet[i] != null; i++ ) {
+                               if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
+                                       results.push( set[i] );
+                               }
+                       }
+               }
+
+       } else {
+               makeArray( checkSet, results );
+       }
+
+       if ( extra ) {
+               Sizzle( extra, origContext, results, seed );
+               Sizzle.uniqueSort( results );
+       }
+
+       return results;
+};
+
+Sizzle.uniqueSort = function( results ) {
+       if ( sortOrder ) {
+               hasDuplicate = baseHasDuplicate;
+               results.sort( sortOrder );
+
+               if ( hasDuplicate ) {
+                       for ( var i = 1; i < results.length; i++ ) {
+                               if ( results[i] === results[ i - 1 ] ) {
+                                       results.splice( i--, 1 );
+                               }
+                       }
+               }
+       }
+
+       return results;
+};
+
+Sizzle.matches = function( expr, set ) {
+       return Sizzle( expr, null, null, set );
+};
+
+Sizzle.matchesSelector = function( node, expr ) {
+       return Sizzle( expr, null, null, [node] ).length > 0;
+};
+
+Sizzle.find = function( expr, context, isXML ) {
+       var set, i, len, match, type, left;
+
+       if ( !expr ) {
+               return [];
+       }
+
+       for ( i = 0, len = Expr.order.length; i < len; i++ ) {
+               type = Expr.order[i];
+               
+               if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
+                       left = match[1];
+                       match.splice( 1, 1 );
+
+                       if ( left.substr( left.length - 1 ) !== "\\" ) {
+                               match[1] = (match[1] || "").replace( rBackslash, "" );
+                               set = Expr.find[ type ]( match, context, isXML );
+
+                               if ( set != null ) {
+                                       expr = expr.replace( Expr.match[ type ], "" );
+                                       break;
+                               }
+                       }
+               }
+       }
+
+       if ( !set ) {
+               set = typeof context.getElementsByTagName !== "undefined" ?
+                       context.getElementsByTagName( "*" ) :
+                       [];
+       }
+
+       return { set: set, expr: expr };
+};
+
+Sizzle.filter = function( expr, set, inplace, not ) {
+       var match, anyFound,
+               type, found, item, filter, left,
+               i, pass,
+               old = expr,
+               result = [],
+               curLoop = set,
+               isXMLFilter = set && set[0] && Sizzle.isXML( set[0] );
+
+       while ( expr && set.length ) {
+               for ( type in Expr.filter ) {
+                       if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
+                               filter = Expr.filter[ type ];
+                               left = match[1];
+
+                               anyFound = false;
+
+                               match.splice(1,1);
+
+                               if ( left.substr( left.length - 1 ) === "\\" ) {
+                                       continue;
+                               }
+
+                               if ( curLoop === result ) {
+                                       result = [];
+                               }
+
+                               if ( Expr.preFilter[ type ] ) {
+                                       match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
+
+                                       if ( !match ) {
+                                               anyFound = found = true;
+
+                                       } else if ( match === true ) {
+                                               continue;
+                                       }
+                               }
+
+                               if ( match ) {
+                                       for ( i = 0; (item = curLoop[i]) != null; i++ ) {
+                                               if ( item ) {
+                                                       found = filter( item, match, i, curLoop );
+                                                       pass = not ^ found;
+
+                                                       if ( inplace && found != null ) {
+                                                               if ( pass ) {
+                                                                       anyFound = true;
+
+                                                               } else {
+                                                                       curLoop[i] = false;
+                                                               }
+
+                                                       } else if ( pass ) {
+                                                               result.push( item );
+                                                               anyFound = true;
+                                                       }
+                                               }
+                                       }
+                               }
+
+                               if ( found !== undefined ) {
+                                       if ( !inplace ) {
+                                               curLoop = result;
+                                       }
+
+                                       expr = expr.replace( Expr.match[ type ], "" );
+
+                                       if ( !anyFound ) {
+                                               return [];
+                                       }
+
+                                       break;
+                               }
+                       }
+               }
+
+               // Improper expression
+               if ( expr === old ) {
+                       if ( anyFound == null ) {
+                               Sizzle.error( expr );
+
+                       } else {
+                               break;
+                       }
+               }
+
+               old = expr;
+       }
+
+       return curLoop;
+};
+
+Sizzle.error = function( msg ) {
+       throw new Error( "Syntax error, unrecognized expression: " + msg );
+};
+
+/**
+ * Utility function for retreiving the text value of an array of DOM nodes
+ * @param {Array|Element} elem
+ */
+var getText = Sizzle.getText = function( elem ) {
+    var i, node,
+               nodeType = elem.nodeType,
+               ret = "";
+
+       if ( nodeType ) {
+               if ( nodeType === 1 || nodeType === 9 ) {
+                       // Use textContent || innerText for elements
+                       if ( typeof elem.textContent === 'string' ) {
+                               return elem.textContent;
+                       } else if ( typeof elem.innerText === 'string' ) {
+                               // Replace IE's carriage returns
+                               return elem.innerText.replace( rReturn, '' );
+                       } else {
+                               // Traverse it's children
+                               for ( elem = elem.firstChild; elem; elem = elem.nextSibling) {
+                                       ret += getText( elem );
+                               }
+                       }
+               } else if ( nodeType === 3 || nodeType === 4 ) {
+                       return elem.nodeValue;
+               }
+       } else {
+
+               // If no nodeType, this is expected to be an array
+               for ( i = 0; (node = elem[i]); i++ ) {
+                       // Do not traverse comment nodes
+                       if ( node.nodeType !== 8 ) {
+                               ret += getText( node );
+                       }
+               }
+       }
+       return ret;
+};
+
+var Expr = Sizzle.selectors = {
+       order: [ "ID", "NAME", "TAG" ],
+
+       match: {
+               ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
+               CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
+               NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
+               ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
+               TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,
+               CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,
+               POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,
+               PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
+       },
+
+       leftMatch: {},
+
+       attrMap: {
+               "class": "className",
+               "for": "htmlFor"
+       },
+
+       attrHandle: {
+               href: function( elem ) {
+                       return elem.getAttribute( "href" );
+               },
+               type: function( elem ) {
+                       return elem.getAttribute( "type" );
+               }
+       },
+
+       relative: {
+               "+": function(checkSet, part){
+                       var isPartStr = typeof part === "string",
+                               isTag = isPartStr && !rNonWord.test( part ),
+                               isPartStrNotTag = isPartStr && !isTag;
+
+                       if ( isTag ) {
+                               part = part.toLowerCase();
+                       }
+
+                       for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
+                               if ( (elem = checkSet[i]) ) {
+                                       while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
+
+                                       checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?
+                                               elem || false :
+                                               elem === part;
+                               }
+                       }
+
+                       if ( isPartStrNotTag ) {
+                               Sizzle.filter( part, checkSet, true );
+                       }
+               },
+
+               ">": function( checkSet, part ) {
+                       var elem,
+                               isPartStr = typeof part === "string",
+                               i = 0,
+                               l = checkSet.length;
+
+                       if ( isPartStr && !rNonWord.test( part ) ) {
+                               part = part.toLowerCase();
+
+                               for ( ; i < l; i++ ) {
+                                       elem = checkSet[i];
+
+                                       if ( elem ) {
+                                               var parent = elem.parentNode;
+                                               checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
+                                       }
+                               }
+
+                       } else {
+                               for ( ; i < l; i++ ) {
+                                       elem = checkSet[i];
+
+                                       if ( elem ) {
+                                               checkSet[i] = isPartStr ?
+                                                       elem.parentNode :
+                                                       elem.parentNode === part;
+                                       }
+                               }
+
+                               if ( isPartStr ) {
+                                       Sizzle.filter( part, checkSet, true );
+                               }
+                       }
+               },
+
+               "": function(checkSet, part, isXML){
+                       var nodeCheck,
+                               doneName = done++,
+                               checkFn = dirCheck;
+
+                       if ( typeof part === "string" && !rNonWord.test( part ) ) {
+                               part = part.toLowerCase();
+                               nodeCheck = part;
+                               checkFn = dirNodeCheck;
+                       }
+
+                       checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML );
+               },
+
+               "~": function( checkSet, part, isXML ) {
+                       var nodeCheck,
+                               doneName = done++,
+                               checkFn = dirCheck;
+
+                       if ( typeof part === "string" && !rNonWord.test( part ) ) {
+                               part = part.toLowerCase();
+                               nodeCheck = part;
+                               checkFn = dirNodeCheck;
+                       }
+
+                       checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML );
+               }
+       },
+
+       find: {
+               ID: function( match, context, isXML ) {
+                       if ( typeof context.getElementById !== "undefined" && !isXML ) {
+                               var m = context.getElementById(match[1]);
+                               // Check parentNode to catch when Blackberry 4.6 returns
+                               // nodes that are no longer in the document #6963
+                               return m && m.parentNode ? [m] : [];
+                       }
+               },
+
+               NAME: function( match, context ) {
+                       if ( typeof context.getElementsByName !== "undefined" ) {
+                               var ret = [],
+                                       results = context.getElementsByName( match[1] );
+
+                               for ( var i = 0, l = results.length; i < l; i++ ) {
+                                       if ( results[i].getAttribute("name") === match[1] ) {
+                                               ret.push( results[i] );
+                                       }
+                               }
+
+                               return ret.length === 0 ? null : ret;
+                       }
+               },
+
+               TAG: function( match, context ) {
+                       if ( typeof context.getElementsByTagName !== "undefined" ) {
+                               return context.getElementsByTagName( match[1] );
+                       }
+               }
+       },
+       preFilter: {
+               CLASS: function( match, curLoop, inplace, result, not, isXML ) {
+                       match = " " + match[1].replace( rBackslash, "" ) + " ";
+
+                       if ( isXML ) {
+                               return match;
+                       }
+
+                       for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
+                               if ( elem ) {
+                                       if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) {
+                                               if ( !inplace ) {
+                                                       result.push( elem );
+                                               }
+
+                                       } else if ( inplace ) {
+                                               curLoop[i] = false;
+                                       }
+                               }
+                       }
+
+                       return false;
+               },
+
+               ID: function( match ) {
+                       return match[1].replace( rBackslash, "" );
+               },
+
+               TAG: function( match, curLoop ) {
+                       return match[1].replace( rBackslash, "" ).toLowerCase();
+               },
+
+               CHILD: function( match ) {
+                       if ( match[1] === "nth" ) {
+                               if ( !match[2] ) {
+                                       Sizzle.error( match[0] );
+                               }
+
+                               match[2] = match[2].replace(/^\+|\s*/g, '');
+
+                               // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
+                               var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec(
+                                       match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
+                                       !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
+
+                               // calculate the numbers (first)n+(last) including if they are negative
+                               match[2] = (test[1] + (test[2] || 1)) - 0;
+                               match[3] = test[3] - 0;
+                       }
+                       else if ( match[2] ) {
+                               Sizzle.error( match[0] );
+                       }
+
+                       // TODO: Move to normal caching system
+                       match[0] = done++;
+
+                       return match;
+               },
+
+               ATTR: function( match, curLoop, inplace, result, not, isXML ) {
+                       var name = match[1] = match[1].replace( rBackslash, "" );
+                       
+                       if ( !isXML && Expr.attrMap[name] ) {
+                               match[1] = Expr.attrMap[name];
+                       }
+
+                       // Handle if an un-quoted value was used
+                       match[4] = ( match[4] || match[5] || "" ).replace( rBackslash, "" );
+
+                       if ( match[2] === "~=" ) {
+                               match[4] = " " + match[4] + " ";
+                       }
+
+                       return match;
+               },
+
+               PSEUDO: function( match, curLoop, inplace, result, not ) {
+                       if ( match[1] === "not" ) {
+                               // If we're dealing with a complex expression, or a simple one
+                               if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
+                                       match[3] = Sizzle(match[3], null, null, curLoop);
+
+                               } else {
+                                       var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
+
+                                       if ( !inplace ) {
+                                               result.push.apply( result, ret );
+                                       }
+
+                                       return false;
+                               }
+
+                       } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
+                               return true;
+                       }
+                       
+                       return match;
+               },
+
+               POS: function( match ) {
+                       match.unshift( true );
+
+                       return match;
+               }
+       },
+       
+       filters: {
+               enabled: function( elem ) {
+                       return elem.disabled === false && elem.type !== "hidden";
+               },
+
+               disabled: function( elem ) {
+                       return elem.disabled === true;
+               },
+
+               checked: function( elem ) {
+                       return elem.checked === true;
+               },
+               
+               selected: function( elem ) {
+                       // Accessing this property makes selected-by-default
+                       // options in Safari work properly
+                       if ( elem.parentNode ) {
+                               elem.parentNode.selectedIndex;
+                       }
+                       
+                       return elem.selected === true;
+               },
+
+               parent: function( elem ) {
+                       return !!elem.firstChild;
+               },
+
+               empty: function( elem ) {
+                       return !elem.firstChild;
+               },
+
+               has: function( elem, i, match ) {
+                       return !!Sizzle( match[3], elem ).length;
+               },
+
+               header: function( elem ) {
+                       return (/h\d/i).test( elem.nodeName );
+               },
+
+               text: function( elem ) {
+                       var attr = elem.getAttribute( "type" ), type = elem.type;
+                       // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) 
+                       // use getAttribute instead to test this case
+                       return elem.nodeName.toLowerCase() === "input" && "text" === type && ( attr === type || attr === null );
+               },
+
+               radio: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "radio" === elem.type;
+               },
+
+               checkbox: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "checkbox" === elem.type;
+               },
+
+               file: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "file" === elem.type;
+               },
+
+               password: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "password" === elem.type;
+               },
+
+               submit: function( elem ) {
+                       var name = elem.nodeName.toLowerCase();
+                       return (name === "input" || name === "button") && "submit" === elem.type;
+               },
+
+               image: function( elem ) {
+                       return elem.nodeName.toLowerCase() === "input" && "image" === elem.type;
+               },
+
+               reset: function( elem ) {
+                       var name = elem.nodeName.toLowerCase();
+                       return (name === "input" || name === "button") && "reset" === elem.type;
+               },
+
+               button: function( elem ) {
+                       var name = elem.nodeName.toLowerCase();
+                       return name === "input" && "button" === elem.type || name === "button";
+               },
+
+               input: function( elem ) {
+                       return (/input|select|textarea|button/i).test( elem.nodeName );
+               },
+
+               focus: function( elem ) {
+                       return elem === elem.ownerDocument.activeElement;
+               }
+       },
+       setFilters: {
+               first: function( elem, i ) {
+                       return i === 0;
+               },
+
+               last: function( elem, i, match, array ) {
+                       return i === array.length - 1;
+               },
+
+               even: function( elem, i ) {
+                       return i % 2 === 0;
+               },
+
+               odd: function( elem, i ) {
+                       return i % 2 === 1;
+               },
+
+               lt: function( elem, i, match ) {
+                       return i < match[3] - 0;
+               },
+
+               gt: function( elem, i, match ) {
+                       return i > match[3] - 0;
+               },
+
+               nth: function( elem, i, match ) {
+                       return match[3] - 0 === i;
+               },
+
+               eq: function( elem, i, match ) {
+                       return match[3] - 0 === i;
+               }
+       },
+       filter: {
+               PSEUDO: function( elem, match, i, array ) {
+                       var name = match[1],
+                               filter = Expr.filters[ name ];
+
+                       if ( filter ) {
+                               return filter( elem, i, match, array );
+
+                       } else if ( name === "contains" ) {
+                               return (elem.textContent || elem.innerText || getText([ elem ]) || "").indexOf(match[3]) >= 0;
+
+                       } else if ( name === "not" ) {
+                               var not = match[3];
+
+                               for ( var j = 0, l = not.length; j < l; j++ ) {
+                                       if ( not[j] === elem ) {
+                                               return false;
+                                       }
+                               }
+
+                               return true;
+
+                       } else {
+                               Sizzle.error( name );
+                       }
+               },
+
+               CHILD: function( elem, match ) {
+                       var first, last,
+                               doneName, parent, cache,
+                               count, diff,
+                               type = match[1],
+                               node = elem;
+
+                       switch ( type ) {
+                               case "only":
+                               case "first":
+                                       while ( (node = node.previousSibling) )  {
+                                               if ( node.nodeType === 1 ) { 
+                                                       return false; 
+                                               }
+                                       }
+
+                                       if ( type === "first" ) { 
+                                               return true; 
+                                       }
+
+                                       node = elem;
+
+                               case "last":
+                                       while ( (node = node.nextSibling) )      {
+                                               if ( node.nodeType === 1 ) { 
+                                                       return false; 
+                                               }
+                                       }
+
+                                       return true;
+
+                               case "nth":
+                                       first = match[2];
+                                       last = match[3];
+
+                                       if ( first === 1 && last === 0 ) {
+                                               return true;
+                                       }
+                                       
+                                       doneName = match[0];
+                                       parent = elem.parentNode;
+       
+                                       if ( parent && (parent[ expando ] !== doneName || !elem.nodeIndex) ) {
+                                               count = 0;
+                                               
+                                               for ( node = parent.firstChild; node; node = node.nextSibling ) {
+                                                       if ( node.nodeType === 1 ) {
+                                                               node.nodeIndex = ++count;
+                                                       }
+                                               } 
+
+                                               parent[ expando ] = doneName;
+                                       }
+                                       
+                                       diff = elem.nodeIndex - last;
+
+                                       if ( first === 0 ) {
+                                               return diff === 0;
+
+                                       } else {
+                                               return ( diff % first === 0 && diff / first >= 0 );
+                                       }
+                       }
+               },
+
+               ID: function( elem, match ) {
+                       return elem.nodeType === 1 && elem.getAttribute("id") === match;
+               },
+
+               TAG: function( elem, match ) {
+                       return (match === "*" && elem.nodeType === 1) || !!elem.nodeName && elem.nodeName.toLowerCase() === match;
+               },
+               
+               CLASS: function( elem, match ) {
+                       return (" " + (elem.className || elem.getAttribute("class")) + " ")
+                               .indexOf( match ) > -1;
+               },
+
+               ATTR: function( elem, match ) {
+                       var name = match[1],
+                               result = Sizzle.attr ?
+                                       Sizzle.attr( elem, name ) :
+                                       Expr.attrHandle[ name ] ?
+                                       Expr.attrHandle[ name ]( elem ) :
+                                       elem[ name ] != null ?
+                                               elem[ name ] :
+                                               elem.getAttribute( name ),
+                               value = result + "",
+                               type = match[2],
+                               check = match[4];
+
+                       return result == null ?
+                               type === "!=" :
+                               !type && Sizzle.attr ?
+                               result != null :
+                               type === "=" ?
+                               value === check :
+                               type === "*=" ?
+                               value.indexOf(check) >= 0 :
+                               type === "~=" ?
+                               (" " + value + " ").indexOf(check) >= 0 :
+                               !check ?
+                               value && result !== false :
+                               type === "!=" ?
+                               value !== check :
+                               type === "^=" ?
+                               value.indexOf(check) === 0 :
+                               type === "$=" ?
+                               value.substr(value.length - check.length) === check :
+                               type === "|=" ?
+                               value === check || value.substr(0, check.length + 1) === check + "-" :
+                               false;
+               },
+
+               POS: function( elem, match, i, array ) {
+                       var name = match[2],
+                               filter = Expr.setFilters[ name ];
+
+                       if ( filter ) {
+                               return filter( elem, i, match, array );
+                       }
+               }
+       }
+};
+
+var origPOS = Expr.match.POS,
+       fescape = function(all, num){
+               return "\\" + (num - 0 + 1);
+       };
+
+for ( var type in Expr.match ) {
+       Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) );
+       Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) );
+}
+
+var makeArray = function( array, results ) {
+       array = Array.prototype.slice.call( array, 0 );
+
+       if ( results ) {
+               results.push.apply( results, array );
+               return results;
+       }
+       
+       return array;
+};
+
+// Perform a simple check to determine if the browser is capable of
+// converting a NodeList to an array using builtin methods.
+// Also verifies that the returned array holds DOM nodes
+// (which is not the case in the Blackberry browser)
+try {
+       Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;
+
+// Provide a fallback method if it does not work
+} catch( e ) {
+       makeArray = function( array, results ) {
+               var i = 0,
+                       ret = results || [];
+
+               if ( toString.call(array) === "[object Array]" ) {
+                       Array.prototype.push.apply( ret, array );
+
+               } else {
+                       if ( typeof array.length === "number" ) {
+                               for ( var l = array.length; i < l; i++ ) {
+                                       ret.push( array[i] );
+                               }
+
+                       } else {
+                               for ( ; array[i]; i++ ) {
+                                       ret.push( array[i] );
+                               }
+                       }
+               }
+
+               return ret;
+       };
+}
+
+var sortOrder, siblingCheck;
+
+if ( document.documentElement.compareDocumentPosition ) {
+       sortOrder = function( a, b ) {
+               if ( a === b ) {
+                       hasDuplicate = true;
+                       return 0;
+               }
+
+               if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
+                       return a.compareDocumentPosition ? -1 : 1;
+               }
+
+               return a.compareDocumentPosition(b) & 4 ? -1 : 1;
+       };
+
+} else {
+       sortOrder = function( a, b ) {
+               // The nodes are identical, we can exit early
+               if ( a === b ) {
+                       hasDuplicate = true;
+                       return 0;
+
+               // Fallback to using sourceIndex (in IE) if it's available on both nodes
+               } else if ( a.sourceIndex && b.sourceIndex ) {
+                       return a.sourceIndex - b.sourceIndex;
+               }
+
+               var al, bl,
+                       ap = [],
+                       bp = [],
+                       aup = a.parentNode,
+                       bup = b.parentNode,
+                       cur = aup;
+
+               // If the nodes are siblings (or identical) we can do a quick check
+               if ( aup === bup ) {
+                       return siblingCheck( a, b );
+
+               // If no parents were found then the nodes are disconnected
+               } else if ( !aup ) {
+                       return -1;
+
+               } else if ( !bup ) {
+                       return 1;
+               }
+
+               // Otherwise they're somewhere else in the tree so we need
+               // to build up a full list of the parentNodes for comparison
+               while ( cur ) {
+                       ap.unshift( cur );
+                       cur = cur.parentNode;
+               }
+
+               cur = bup;
+
+               while ( cur ) {
+                       bp.unshift( cur );
+                       cur = cur.parentNode;
+               }
+
+               al = ap.length;
+               bl = bp.length;
+
+               // Start walking down the tree looking for a discrepancy
+               for ( var i = 0; i < al && i < bl; i++ ) {
+                       if ( ap[i] !== bp[i] ) {
+                               return siblingCheck( ap[i], bp[i] );
+                       }
+               }
+
+               // We ended someplace up the tree so do a sibling check
+               return i === al ?
+                       siblingCheck( a, bp[i], -1 ) :
+                       siblingCheck( ap[i], b, 1 );
+       };
+
+       siblingCheck = function( a, b, ret ) {
+               if ( a === b ) {
+                       return ret;
+               }
+
+               var cur = a.nextSibling;
+
+               while ( cur ) {
+                       if ( cur === b ) {
+                               return -1;
+                       }
+
+                       cur = cur.nextSibling;
+               }
+
+               return 1;
+       };
+}
+
+// Check to see if the browser returns elements by name when
+// querying by getElementById (and provide a workaround)
+(function(){
+       // We're going to inject a fake input element with a specified name
+       var form = document.createElement("div"),
+               id = "script" + (new Date()).getTime(),
+               root = document.documentElement;
+
+       form.innerHTML = "<a name='" + id + "'/>";
+
+       // Inject it into the root element, check its status, and remove it quickly
+       root.insertBefore( form, root.firstChild );
+
+       // The workaround has to do additional checks after a getElementById
+       // Which slows things down for other browsers (hence the branching)
+       if ( document.getElementById( id ) ) {
+               Expr.find.ID = function( match, context, isXML ) {
+                       if ( typeof context.getElementById !== "undefined" && !isXML ) {
+                               var m = context.getElementById(match[1]);
+
+                               return m ?
+                                       m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ?
+                                               [m] :
+                                               undefined :
+                                       [];
+                       }
+               };
+
+               Expr.filter.ID = function( elem, match ) {
+                       var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
+
+                       return elem.nodeType === 1 && node && node.nodeValue === match;
+               };
+       }
+
+       root.removeChild( form );
+
+       // release memory in IE
+       root = form = null;
+})();
+
+(function(){
+       // Check to see if the browser returns only elements
+       // when doing getElementsByTagName("*")
+
+       // Create a fake element
+       var div = document.createElement("div");
+       div.appendChild( document.createComment("") );
+
+       // Make sure no comments are found
+       if ( div.getElementsByTagName("*").length > 0 ) {
+               Expr.find.TAG = function( match, context ) {
+                       var results = context.getElementsByTagName( match[1] );
+
+                       // Filter out possible comments
+                       if ( match[1] === "*" ) {
+                               var tmp = [];
+
+                               for ( var i = 0; results[i]; i++ ) {
+                                       if ( results[i].nodeType === 1 ) {
+                                               tmp.push( results[i] );
+                                       }
+                               }
+
+                               results = tmp;
+                       }
+
+                       return results;
+               };
+       }
+
+       // Check to see if an attribute returns normalized href attributes
+       div.innerHTML = "<a href='#'></a>";
+
+       if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
+                       div.firstChild.getAttribute("href") !== "#" ) {
+
+               Expr.attrHandle.href = function( elem ) {
+                       return elem.getAttribute( "href", 2 );
+               };
+       }
+
+       // release memory in IE
+       div = null;
+})();
+
+if ( document.querySelectorAll ) {
+       (function(){
+               var oldSizzle = Sizzle,
+                       div = document.createElement("div"),
+                       id = "__sizzle__";
+
+               div.innerHTML = "<p class='TEST'></p>";
+
+               // Safari can't handle uppercase or unicode characters when
+               // in quirks mode.
+               if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
+                       return;
+               }
+       
+               Sizzle = function( query, context, extra, seed ) {
+                       context = context || document;
+
+                       // Only use querySelectorAll on non-XML documents
+                       // (ID selectors don't work in non-HTML documents)
+                       if ( !seed && !Sizzle.isXML(context) ) {
+                               // See if we find a selector to speed up
+                               var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query );
+                               
+                               if ( match && (context.nodeType === 1 || context.nodeType === 9) ) {
+                                       // Speed-up: Sizzle("TAG")
+                                       if ( match[1] ) {
+                                               return makeArray( context.getElementsByTagName( query ), extra );
+                                       
+                                       // Speed-up: Sizzle(".CLASS")
+                                       } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) {
+                                               return makeArray( context.getElementsByClassName( match[2] ), extra );
+                                       }
+                               }
+                               
+                               if ( context.nodeType === 9 ) {
+                                       // Speed-up: Sizzle("body")
+                                       // The body element only exists once, optimize finding it
+                                       if ( query === "body" && context.body ) {
+                                               return makeArray( [ context.body ], extra );
+                                               
+                                       // Speed-up: Sizzle("#ID")
+                                       } else if ( match && match[3] ) {
+                                               var elem = context.getElementById( match[3] );
+
+                                               // Check parentNode to catch when Blackberry 4.6 returns
+                                               // nodes that are no longer in the document #6963
+                                               if ( elem && elem.parentNode ) {
+                                                       // Handle the case where IE and Opera return items
+                                                       // by name instead of ID
+                                                       if ( elem.id === match[3] ) {
+                                                               return makeArray( [ elem ], extra );
+                                                       }
+                                                       
+                                               } else {
+                                                       return makeArray( [], extra );
+                                               }
+                                       }
+                                       
+                                       try {
+                                               return makeArray( context.querySelectorAll(query), extra );
+                                       } catch(qsaError) {}
+
+                               // qSA works strangely on Element-rooted queries
+                               // We can work around this by specifying an extra ID on the root
+                               // and working up from there (Thanks to Andrew Dupont for the technique)
+                               // IE 8 doesn't work on object elements
+                               } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
+                                       var oldContext = context,
+                                               old = context.getAttribute( "id" ),
+                                               nid = old || id,
+                                               hasParent = context.parentNode,
+                                               relativeHierarchySelector = /^\s*[+~]/.test( query );
+
+                                       if ( !old ) {
+                                               context.setAttribute( "id", nid );
+                                       } else {
+                                               nid = nid.replace( /'/g, "\\$&" );
+                                       }
+                                       if ( relativeHierarchySelector && hasParent ) {
+                                               context = context.parentNode;
+                                       }
+
+                                       try {
+                                               if ( !relativeHierarchySelector || hasParent ) {
+                                                       return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
+                                               }
+
+                                       } catch(pseudoError) {
+                                       } finally {
+                                               if ( !old ) {
+                                                       oldContext.removeAttribute( "id" );
+                                               }
+                                       }
+                               }
+                       }
+               
+                       return oldSizzle(query, context, extra, seed);
+               };
+
+               for ( var prop in oldSizzle ) {
+                       Sizzle[ prop ] = oldSizzle[ prop ];
+               }
+
+               // release memory in IE
+               div = null;
+       })();
+}
+
+(function(){
+       var html = document.documentElement,
+               matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector;
+
+       if ( matches ) {
+               // Check to see if it's possible to do matchesSelector
+               // on a disconnected node (IE 9 fails this)
+               var disconnectedMatch = !matches.call( document.createElement( "div" ), "div" ),
+                       pseudoWorks = false;
+
+               try {
+                       // This should fail with an exception
+                       // Gecko does not error, returns false instead
+                       matches.call( document.documentElement, "[test!='']:sizzle" );
+       
+               } catch( pseudoError ) {
+                       pseudoWorks = true;
+               }
+
+               Sizzle.matchesSelector = function( node, expr ) {
+                       // Make sure that attribute selectors are quoted
+                       expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']");
+
+                       if ( !Sizzle.isXML( node ) ) {
+                               try { 
+                                       if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) {
+                                               var ret = matches.call( node, expr );
+
+                                               // IE 9's matchesSelector returns false on disconnected nodes
+                                               if ( ret || !disconnectedMatch ||
+                                                               // As well, disconnected nodes are said to be in a document
+                                                               // fragment in IE 9, so check for that
+                                                               node.document && node.document.nodeType !== 11 ) {
+                                                       return ret;
+                                               }
+                                       }
+                               } catch(e) {}
+                       }
+
+                       return Sizzle(expr, null, null, [node]).length > 0;
+               };
+       }
+})();
+
+(function(){
+       var div = document.createElement("div");
+
+       div.innerHTML = "<div class='test e'></div><div class='test'></div>";
+
+       // Opera can't find a second classname (in 9.6)
+       // Also, make sure that getElementsByClassName actually exists
+       if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
+               return;
+       }
+
+       // Safari caches class attributes, doesn't catch changes (in 3.2)
+       div.lastChild.className = "e";
+
+       if ( div.getElementsByClassName("e").length === 1 ) {
+               return;
+       }
+       
+       Expr.order.splice(1, 0, "CLASS");
+       Expr.find.CLASS = function( match, context, isXML ) {
+               if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
+                       return context.getElementsByClassName(match[1]);
+               }
+       };
+
+       // release memory in IE
+       div = null;
+})();
+
+function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
+       for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+               var elem = checkSet[i];
+
+               if ( elem ) {
+                       var match = false;
+
+                       elem = elem[dir];
+
+                       while ( elem ) {
+                               if ( elem[ expando ] === doneName ) {
+                                       match = checkSet[elem.sizset];
+                                       break;
+                               }
+
+                               if ( elem.nodeType === 1 && !isXML ){
+                                       elem[ expando ] = doneName;
+                                       elem.sizset = i;
+                               }
+
+                               if ( elem.nodeName.toLowerCase() === cur ) {
+                                       match = elem;
+                                       break;
+                               }
+
+                               elem = elem[dir];
+                       }
+
+                       checkSet[i] = match;
+               }
+       }
+}
+
+function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
+       for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+               var elem = checkSet[i];
+
+               if ( elem ) {
+                       var match = false;
+                       
+                       elem = elem[dir];
+
+                       while ( elem ) {
+                               if ( elem[ expando ] === doneName ) {
+                                       match = checkSet[elem.sizset];
+                                       break;
+                               }
+
+                               if ( elem.nodeType === 1 ) {
+                                       if ( !isXML ) {
+                                               elem[ expando ] = doneName;
+                                               elem.sizset = i;
+                                       }
+
+                                       if ( typeof cur !== "string" ) {
+                                               if ( elem === cur ) {
+                                                       match = true;
+                                                       break;
+                                               }
+
+                                       } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
+                                               match = elem;
+                                               break;
+                                       }
+                               }
+
+                               elem = elem[dir];
+                       }
+
+                       checkSet[i] = match;
+               }
+       }
+}
+
+if ( document.documentElement.contains ) {
+       Sizzle.contains = function( a, b ) {
+               return a !== b && (a.contains ? a.contains(b) : true);
+       };
+
+} else if ( document.documentElement.compareDocumentPosition ) {
+       Sizzle.contains = function( a, b ) {
+               return !!(a.compareDocumentPosition(b) & 16);
+       };
+
+} else {
+       Sizzle.contains = function() {
+               return false;
+       };
+}
+
+Sizzle.isXML = function( elem ) {
+       // documentElement is verified for cases where it doesn't yet exist
+       // (such as loading iframes in IE - #4833) 
+       var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
+
+       return documentElement ? documentElement.nodeName !== "HTML" : false;
+};
+
+var posProcess = function( selector, context, seed ) {
+       var match,
+               tmpSet = [],
+               later = "",
+               root = context.nodeType ? [context] : context;
+
+       // Position selectors must be done after the filter
+       // And so must :not(positional) so we move all PSEUDOs to the end
+       while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
+               later += match[0];
+               selector = selector.replace( Expr.match.PSEUDO, "" );
+       }
+
+       selector = Expr.relative[selector] ? selector + "*" : selector;
+
+       for ( var i = 0, l = root.length; i < l; i++ ) {
+               Sizzle( selector, root[i], tmpSet, seed );
+       }
+
+       return Sizzle.filter( later, tmpSet );
+};
+
+// EXPOSE
+// Override sizzle attribute retrieval
+Sizzle.attr = jQuery.attr;
+Sizzle.selectors.attrMap = {};
+jQuery.find = Sizzle;
+jQuery.expr = Sizzle.selectors;
+jQuery.expr[":"] = jQuery.expr.filters;
+jQuery.unique = Sizzle.uniqueSort;
+jQuery.text = Sizzle.getText;
+jQuery.isXMLDoc = Sizzle.isXML;
+jQuery.contains = Sizzle.contains;
+
+
+})();
+
+
+var runtil = /Until$/,
+       rparentsprev = /^(?:parents|prevUntil|prevAll)/,
+       // Note: This RegExp should be improved, or likely pulled from Sizzle
+       rmultiselector = /,/,
+       isSimple = /^.[^:#\[\.,]*$/,
+       slice = Array.prototype.slice,
+       POS = jQuery.expr.match.POS,
+       // methods guaranteed to produce a unique set when starting from a unique set
+       guaranteedUnique = {
+               children: true,
+               contents: true,
+               next: true,
+               prev: true
+       };
+
+jQuery.fn.extend({
+       find: function( selector ) {
+               var self = this,
+                       i, l;
+
+               if ( typeof selector !== "string" ) {
+                       return jQuery( selector ).filter(function() {
+                               for ( i = 0, l = self.length; i < l; i++ ) {
+                                       if ( jQuery.contains( self[ i ], this ) ) {
+                                               return true;
+                                       }
+                               }
+                       });
+               }
+
+               var ret = this.pushStack( "", "find", selector ),
+                       length, n, r;
+
+               for ( i = 0, l = this.length; i < l; i++ ) {
+                       length = ret.length;
+                       jQuery.find( selector, this[i], ret );
+
+                       if ( i > 0 ) {
+                               // Make sure that the results are unique
+                               for ( n = length; n < ret.length; n++ ) {
+                                       for ( r = 0; r < length; r++ ) {
+                                               if ( ret[r] === ret[n] ) {
+                                                       ret.splice(n--, 1);
+                                                       break;
+                                               }
+                                       }
+                               }
+                       }
+               }
+
+               return ret;
+       },
+
+       has: function( target ) {
+               var targets = jQuery( target );
+               return this.filter(function() {
+                       for ( var i = 0, l = targets.length; i < l; i++ ) {
+                               if ( jQuery.contains( this, targets[i] ) ) {
+                                       return true;
+                               }
+                       }
+               });
+       },
+
+       not: function( selector ) {
+               return this.pushStack( winnow(this, selector, false), "not", selector);
+       },
+
+       filter: function( selector ) {
+               return this.pushStack( winnow(this, selector, true), "filter", selector );
+       },
+
+       is: function( selector ) {
+               return !!selector && ( 
+                       typeof selector === "string" ?
+                               // If this is a positional selector, check membership in the returned set
+                               // so $("p:first").is("p:last") won't return true for a doc with two "p".
+                               POS.test( selector ) ? 
+                                       jQuery( selector, this.context ).index( this[0] ) >= 0 :
+                                       jQuery.filter( selector, this ).length > 0 :
+                               this.filter( selector ).length > 0 );
+       },
+
+       closest: function( selectors, context ) {
+               var ret = [], i, l, cur = this[0];
+               
+               // Array (deprecated as of jQuery 1.7)
+               if ( jQuery.isArray( selectors ) ) {
+                       var level = 1;
+
+                       while ( cur && cur.ownerDocument && cur !== context ) {
+                               for ( i = 0; i < selectors.length; i++ ) {
+
+                                       if ( jQuery( cur ).is( selectors[ i ] ) ) {
+                                               ret.push({ selector: selectors[ i ], elem: cur, level: level });
+                                       }
+                               }
+
+                               cur = cur.parentNode;
+                               level++;
+                       }
+
+                       return ret;
+               }
+
+               // String
+               var pos = POS.test( selectors ) || typeof selectors !== "string" ?
+                               jQuery( selectors, context || this.context ) :
+                               0;
+
+               for ( i = 0, l = this.length; i < l; i++ ) {
+                       cur = this[i];
+
+                       while ( cur ) {
+                               if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {
+                                       ret.push( cur );
+                                       break;
+
+                               } else {
+                                       cur = cur.parentNode;
+                                       if ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) {
+                                               break;
+                                       }
+                               }
+                       }
+               }
+
+               ret = ret.length > 1 ? jQuery.unique( ret ) : ret;
+
+               return this.pushStack( ret, "closest", selectors );
+       },
+
+       // Determine the position of an element within
+       // the matched set of elements
+       index: function( elem ) {
+
+               // No argument, return index in parent
+               if ( !elem ) {
+                       return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1;
+               }
+
+               // index in selector
+               if ( typeof elem === "string" ) {
+                       return jQuery.inArray( this[0], jQuery( elem ) );
+               }
+
+               // Locate the position of the desired element
+               return jQuery.inArray(
+                       // If it receives a jQuery object, the first element is used
+                       elem.jquery ? elem[0] : elem, this );
+       },
+
+       add: function( selector, context ) {
+               var set = typeof selector === "string" ?
+                               jQuery( selector, context ) :
+                               jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),
+                       all = jQuery.merge( this.get(), set );
+
+               return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?
+                       all :
+                       jQuery.unique( all ) );
+       },
+
+       andSelf: function() {
+               return this.add( this.prevObject );
+       }
+});
+
+// A painfully simple check to see if an element is disconnected
+// from a document (should be improved, where feasible).
+function isDisconnected( node ) {
+       return !node || !node.parentNode || node.parentNode.nodeType === 11;
+}
+
+jQuery.each({
+       parent: function( elem ) {
+               var parent = elem.parentNode;
+               return parent && parent.nodeType !== 11 ? parent : null;
+       },
+       parents: function( elem ) {
+               return jQuery.dir( elem, "parentNode" );
+       },
+       parentsUntil: function( elem, i, until ) {
+               return jQuery.dir( elem, "parentNode", until );
+       },
+       next: function( elem ) {
+               return jQuery.nth( elem, 2, "nextSibling" );
+       },
+       prev: function( elem ) {
+               return jQuery.nth( elem, 2, "previousSibling" );
+       },
+       nextAll: function( elem ) {
+               return jQuery.dir( elem, "nextSibling" );
+       },
+       prevAll: function( elem ) {
+               return jQuery.dir( elem, "previousSibling" );
+       },
+       nextUntil: function( elem, i, until ) {
+               return jQuery.dir( elem, "nextSibling", until );
+       },
+       prevUntil: function( elem, i, until ) {
+               return jQuery.dir( elem, "previousSibling", until );
+       },
+       siblings: function( elem ) {
+               return jQuery.sibling( elem.parentNode.firstChild, elem );
+       },
+       children: function( elem ) {
+               return jQuery.sibling( elem.firstChild );
+       },
+       contents: function( elem ) {
+               return jQuery.nodeName( elem, "iframe" ) ?
+                       elem.contentDocument || elem.contentWindow.document :
+                       jQuery.makeArray( elem.childNodes );
+       }
+}, function( name, fn ) {
+       jQuery.fn[ name ] = function( until, selector ) {
+               var ret = jQuery.map( this, fn, until );
+
+               if ( !runtil.test( name ) ) {
+                       selector = until;
+               }
+
+               if ( selector && typeof selector === "string" ) {
+                       ret = jQuery.filter( selector, ret );
+               }
+
+               ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;
+
+               if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {
+                       ret = ret.reverse();
+               }
+
+               return this.pushStack( ret, name, slice.call( arguments ).join(",") );
+       };
+});
+
+jQuery.extend({
+       filter: function( expr, elems, not ) {
+               if ( not ) {
+                       expr = ":not(" + expr + ")";
+               }
+
+               return elems.length === 1 ?
+                       jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :
+                       jQuery.find.matches(expr, elems);
+       },
+
+       dir: function( elem, dir, until ) {
+               var matched = [],
+                       cur = elem[ dir ];
+
+               while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
+                       if ( cur.nodeType === 1 ) {
+                               matched.push( cur );
+                       }
+                       cur = cur[dir];
+               }
+               return matched;
+       },
+
+       nth: function( cur, result, dir, elem ) {
+               result = result || 1;
+               var num = 0;
+
+               for ( ; cur; cur = cur[dir] ) {
+                       if ( cur.nodeType === 1 && ++num === result ) {
+                               break;
+                       }
+               }
+
+               return cur;
+       },
+
+       sibling: function( n, elem ) {
+               var r = [];
+
+               for ( ; n; n = n.nextSibling ) {
+                       if ( n.nodeType === 1 && n !== elem ) {
+                               r.push( n );
+                       }
+               }
+
+               return r;
+       }
+});
+
+// Implement the identical functionality for filter and not
+function winnow( elements, qualifier, keep ) {
+
+       // Can't pass null or undefined to indexOf in Firefox 4
+       // Set to 0 to skip string check
+       qualifier = qualifier || 0;
+
+       if ( jQuery.isFunction( qualifier ) ) {
+               return jQuery.grep(elements, function( elem, i ) {
+                       var retVal = !!qualifier.call( elem, i, elem );
+                       return retVal === keep;
+               });
+
+       } else if ( qualifier.nodeType ) {
+               return jQuery.grep(elements, function( elem, i ) {
+                       return ( elem === qualifier ) === keep;
+               });
+
+       } else if ( typeof qualifier === "string" ) {
+               var filtered = jQuery.grep(elements, function( elem ) {
+                       return elem.nodeType === 1;
+               });
+
+               if ( isSimple.test( qualifier ) ) {
+                       return jQuery.filter(qualifier, filtered, !keep);
+               } else {
+                       qualifier = jQuery.filter( qualifier, filtered );
+               }
+       }
+
+       return jQuery.grep(elements, function( elem, i ) {
+               return ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep;
+       });
+}
+
+
+
+
+function createSafeFragment( document ) {
+       var list = nodeNames.split( "|" ),
+       safeFrag = document.createDocumentFragment();
+
+       if ( safeFrag.createElement ) {
+               while ( list.length ) {
+                       safeFrag.createElement(
+                               list.pop()
+                       );
+               }
+       }
+       return safeFrag;
+}
+
+var nodeNames = "abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|" +
+               "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
+       rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
+       rleadingWhitespace = /^\s+/,
+       rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,
+       rtagName = /<([\w:]+)/,
+       rtbody = /<tbody/i,
+       rhtml = /<|&#?\w+;/,
+       rnoInnerhtml = /<(?:script|style)/i,
+       rnocache = /<(?:script|object|embed|option|style)/i,
+       rnoshimcache = new RegExp("<(?:" + nodeNames + ")", "i"),
+       // checked="checked" or checked
+       rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
+       rscriptType = /\/(java|ecma)script/i,
+       rcleanScript = /^\s*<!(?:\[CDATA\[|\-\-)/,
+       wrapMap = {
+               option: [ 1, "<select multiple='multiple'>", "</select>" ],
+               legend: [ 1, "<fieldset>", "</fieldset>" ],
+               thead: [ 1, "<table>", "</table>" ],
+               tr: [ 2, "<table><tbody>", "</tbody></table>" ],
+               td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
+               col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
+               area: [ 1, "<map>", "</map>" ],
+               _default: [ 0, "", "" ]
+       },
+       safeFragment = createSafeFragment( document );
+
+wrapMap.optgroup = wrapMap.option;
+wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
+wrapMap.th = wrapMap.td;
+
+// IE can't serialize <link> and <script> tags normally
+if ( !jQuery.support.htmlSerialize ) {
+       wrapMap._default = [ 1, "div<div>", "</div>" ];
+}
+
+jQuery.fn.extend({
+       text: function( text ) {
+               if ( jQuery.isFunction(text) ) {
+                       return this.each(function(i) {
+                               var self = jQuery( this );
+
+                               self.text( text.call(this, i, self.text()) );
+                       });
+               }
+
+               if ( typeof text !== "object" && text !== undefined ) {
+                       return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
+               }
+
+               return jQuery.text( this );
+       },
+
+       wrapAll: function( html ) {
+               if ( jQuery.isFunction( html ) ) {
+                       return this.each(function(i) {
+                               jQuery(this).wrapAll( html.call(this, i) );
+                       });
+               }
+
+               if ( this[0] ) {
+                       // The elements to wrap the target around
+                       var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
+
+                       if ( this[0].parentNode ) {
+                               wrap.insertBefore( this[0] );
+                       }
+
+                       wrap.map(function() {
+                               var elem = this;
+
+                               while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
+                                       elem = elem.firstChild;
+                               }
+
+                               return elem;
+                       }).append( this );
+               }
+
+               return this;
+       },
+
+       wrapInner: function( html ) {
+               if ( jQuery.isFunction( html ) ) {
+                       return this.each(function(i) {
+                               jQuery(this).wrapInner( html.call(this, i) );
+                       });
+               }
+
+               return this.each(function() {
+                       var self = jQuery( this ),
+                               contents = self.contents();
+
+                       if ( contents.length ) {
+                               contents.wrapAll( html );
+
+                       } else {
+                               self.append( html );
+                       }
+               });
+       },
+
+       wrap: function( html ) {
+               var isFunction = jQuery.isFunction( html );
+
+               return this.each(function(i) {
+                       jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
+               });
+       },
+
+       unwrap: function() {
+               return this.parent().each(function() {
+                       if ( !jQuery.nodeName( this, "body" ) ) {
+                               jQuery( this ).replaceWith( this.childNodes );
+                       }
+               }).end();
+       },
+
+       append: function() {
+               return this.domManip(arguments, true, function( elem ) {
+                       if ( this.nodeType === 1 ) {
+                               this.appendChild( elem );
+                       }
+               });
+       },
+
+       prepend: function() {
+               return this.domManip(arguments, true, function( elem ) {
+                       if ( this.nodeType === 1 ) {
+                               this.insertBefore( elem, this.firstChild );
+                       }
+               });
+       },
+
+       before: function() {
+               if ( this[0] && this[0].parentNode ) {
+                       return this.domManip(arguments, false, function( elem ) {
+                               this.parentNode.insertBefore( elem, this );
+                       });
+               } else if ( arguments.length ) {
+                       var set = jQuery.clean( arguments );
+                       set.push.apply( set, this.toArray() );
+                       return this.pushStack( set, "before", arguments );
+               }
+       },
+
+       after: function() {
+               if ( this[0] && this[0].parentNode ) {
+                       return this.domManip(arguments, false, function( elem ) {
+                               this.parentNode.insertBefore( elem, this.nextSibling );
+                       });
+               } else if ( arguments.length ) {
+                       var set = this.pushStack( this, "after", arguments );
+                       set.push.apply( set, jQuery.clean(arguments) );
+                       return set;
+               }
+       },
+
+       // keepData is for internal use only--do not document
+       remove: function( selector, keepData ) {
+               for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
+                       if ( !selector || jQuery.filter( selector, [ elem ] ).length ) {
+                               if ( !keepData && elem.nodeType === 1 ) {
+                                       jQuery.cleanData( elem.getElementsByTagName("*") );
+                                       jQuery.cleanData( [ elem ] );
+                               }
+
+                               if ( elem.parentNode ) {
+                                       elem.parentNode.removeChild( elem );
+                               }
+                       }
+               }
+
+               return this;
+       },
+
+       empty: function() {
+               for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
+                       // Remove element nodes and prevent memory leaks
+                       if ( elem.nodeType === 1 ) {
+                               jQuery.cleanData( elem.getElementsByTagName("*") );
+                       }
+
+                       // Remove any remaining nodes
+                       while ( elem.firstChild ) {
+                               elem.removeChild( elem.firstChild );
+                       }
+               }
+
+               return this;
+       },
+
+       clone: function( dataAndEvents, deepDataAndEvents ) {
+               dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
+               deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
+
+               return this.map( function () {
+                       return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
+               });
+       },
+
+       html: function( value ) {
+               if ( value === undefined ) {
+                       return this[0] && this[0].nodeType === 1 ?
+                               this[0].innerHTML.replace(rinlinejQuery, "") :
+                               null;
+
+               // See if we can take a shortcut and just use innerHTML
+               } else if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
+                       (jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
+                       !wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {
+
+                       value = value.replace(rxhtmlTag, "<$1></$2>");
+
+                       try {
+                               for ( var i = 0, l = this.length; i < l; i++ ) {
+                                       // Remove element nodes and prevent memory leaks
+                                       if ( this[i].nodeType === 1 ) {
+                                               jQuery.cleanData( this[i].getElementsByTagName("*") );
+                                               this[i].innerHTML = value;
+                                       }
+                               }
+
+                       // If using innerHTML throws an exception, use the fallback method
+                       } catch(e) {
+                               this.empty().append( value );
+                       }
+
+               } else if ( jQuery.isFunction( value ) ) {
+                       this.each(function(i){
+                               var self = jQuery( this );
+
+                               self.html( value.call(this, i, self.html()) );
+                       });
+
+               } else {
+                       this.empty().append( value );
+               }
+
+               return this;
+       },
+
+       replaceWith: function( value ) {
+               if ( this[0] && this[0].parentNode ) {
+                       // Make sure that the elements are removed from the DOM before they are inserted
+                       // this can help fix replacing a parent with child elements
+                       if ( jQuery.isFunction( value ) ) {
+                               return this.each(function(i) {
+                                       var self = jQuery(this), old = self.html();
+                                       self.replaceWith( value.call( this, i, old ) );
+                               });
+                       }
+
+                       if ( typeof value !== "string" ) {
+                               value = jQuery( value ).detach();
+                       }
+
+                       return this.each(function() {
+                               var next = this.nextSibling,
+                                       parent = this.parentNode;
+
+                               jQuery( this ).remove();
+
+                               if ( next ) {
+                                       jQuery(next).before( value );
+                               } else {
+                                       jQuery(parent).append( value );
+                               }
+                       });
+               } else {
+                       return this.length ?
+                               this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value ) :
+                               this;
+               }
+       },
+
+       detach: function( selector ) {
+               return this.remove( selector, true );
+       },
+
+       domManip: function( args, table, callback ) {
+               var results, first, fragment, parent,
+                       value = args[0],
+                       scripts = [];
+
+               // We can't cloneNode fragments that contain checked, in WebKit
+               if ( !jQuery.support.checkClone && arguments.length === 3 && typeof value === "string" && rchecked.test( value ) ) {
+                       return this.each(function() {
+                               jQuery(this).domManip( args, table, callback, true );
+                       });
+               }
+
+               if ( jQuery.isFunction(value) ) {
+                       return this.each(function(i) {
+                               var self = jQuery(this);
+                               args[0] = value.call(this, i, table ? self.html() : undefined);
+                               self.domManip( args, table, callback );
+                       });
+               }
+
+               if ( this[0] ) {
+                       parent = value && value.parentNode;
+
+                       // If we're in a fragment, just use that instead of building a new one
+                       if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
+                               results = { fragment: parent };
+
+                       } else {
+                               results = jQuery.buildFragment( args, this, scripts );
+                       }
+
+                       fragment = results.fragment;
+
+                       if ( fragment.childNodes.length === 1 ) {
+                               first = fragment = fragment.firstChild;
+                       } else {
+                               first = fragment.firstChild;
+                       }
+
+                       if ( first ) {
+                               table = table && jQuery.nodeName( first, "tr" );
+
+                               for ( var i = 0, l = this.length, lastIndex = l - 1; i < l; i++ ) {
+                                       callback.call(
+                                               table ?
+                                                       root(this[i], first) :
+                                                       this[i],
+                                               // Make sure that we do not leak memory by inadvertently discarding
+                                               // the original fragment (which might have attached data) instead of
+                                               // using it; in addition, use the original fragment object for the last
+                                               // item instead of first because it can end up being emptied incorrectly
+                                               // in certain situations (Bug #8070).
+                                               // Fragments from the fragment cache must always be cloned and never used
+                                               // in place.
+                                               results.cacheable || ( l > 1 && i < lastIndex ) ?
+                                                       jQuery.clone( fragment, true, true ) :
+                                                       fragment
+                                       );
+                               }
+                       }
+
+                       if ( scripts.length ) {
+                               jQuery.each( scripts, evalScript );
+                       }
+               }
+
+               return this;
+       }
+});
+
+function root( elem, cur ) {
+       return jQuery.nodeName(elem, "table") ?
+               (elem.getElementsByTagName("tbody")[0] ||
+               elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
+               elem;
+}
+
+function cloneCopyEvent( src, dest ) {
+
+       if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {
+               return;
+       }
+
+       var type, i, l,
+               oldData = jQuery._data( src ),
+               curData = jQuery._data( dest, oldData ),
+               events = oldData.events;
+
+       if ( events ) {
+               delete curData.handle;
+               curData.events = {};
+
+               for ( type in events ) {
+                       for ( i = 0, l = events[ type ].length; i < l; i++ ) {
+                               jQuery.event.add( dest, type + ( events[ type ][ i ].namespace ? "." : "" ) + events[ type ][ i ].namespace, events[ type ][ i ], events[ type ][ i ].data );
+                       }
+               }
+       }
+
+       // make the cloned public data object a copy from the original
+       if ( curData.data ) {
+               curData.data = jQuery.extend( {}, curData.data );
+       }
+}
+
+function cloneFixAttributes( src, dest ) {
+       var nodeName;
+
+       // We do not need to do anything for non-Elements
+       if ( dest.nodeType !== 1 ) {
+               return;
+       }
+
+       // clearAttributes removes the attributes, which we don't want,
+       // but also removes the attachEvent events, which we *do* want
+       if ( dest.clearAttributes ) {
+               dest.clearAttributes();
+       }
+
+       // mergeAttributes, in contrast, only merges back on the
+       // original attributes, not the events
+       if ( dest.mergeAttributes ) {
+               dest.mergeAttributes( src );
+       }
+
+       nodeName = dest.nodeName.toLowerCase();
+
+       // IE6-8 fail to clone children inside object elements that use
+       // the proprietary classid attribute value (rather than the type
+       // attribute) to identify the type of content to display
+       if ( nodeName === "object" ) {
+               dest.outerHTML = src.outerHTML;
+
+       } else if ( nodeName === "input" && (src.type === "checkbox" || src.type === "radio") ) {
+               // IE6-8 fails to persist the checked state of a cloned checkbox
+               // or radio button. Worse, IE6-7 fail to give the cloned element
+               // a checked appearance if the defaultChecked value isn't also set
+               if ( src.checked ) {
+                       dest.defaultChecked = dest.checked = src.checked;
+               }
+
+               // IE6-7 get confused and end up setting the value of a cloned
+               // checkbox/radio button to an empty string instead of "on"
+               if ( dest.value !== src.value ) {
+                       dest.value = src.value;
+               }
+
+       // IE6-8 fails to return the selected option to the default selected
+       // state when cloning options
+       } else if ( nodeName === "option" ) {
+               dest.selected = src.defaultSelected;
+
+       // IE6-8 fails to set the defaultValue to the correct value when
+       // cloning other types of input fields
+       } else if ( nodeName === "input" || nodeName === "textarea" ) {
+               dest.defaultValue = src.defaultValue;
+       }
+
+       // Event data gets referenced instead of copied if the expando
+       // gets copied too
+       dest.removeAttribute( jQuery.expando );
+}
+
+jQuery.buildFragment = function( args, nodes, scripts ) {
+       var fragment, cacheable, cacheresults, doc,
+       first = args[ 0 ];
+
+       // nodes may contain either an explicit document object,
+       // a jQuery collection or context object.
+       // If nodes[0] contains a valid object to assign to doc
+       if ( nodes && nodes[0] ) {
+               doc = nodes[0].ownerDocument || nodes[0];
+       }
+
+       // Ensure that an attr object doesn't incorrectly stand in as a document object
+       // Chrome and Firefox seem to allow this to occur and will throw exception
+       // Fixes #8950
+       if ( !doc.createDocumentFragment ) {
+               doc = document;
+       }
+
+       // Only cache "small" (1/2 KB) HTML strings that are associated with the main document
+       // Cloning options loses the selected state, so don't cache them
+       // IE 6 doesn't like it when you put <object> or <embed> elements in a fragment
+       // Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache
+       // Lastly, IE6,7,8 will not correctly reuse cached fragments that were created from unknown elems #10501
+       if ( args.length === 1 && typeof first === "string" && first.length < 512 && doc === document &&
+               first.charAt(0) === "<" && !rnocache.test( first ) &&
+               (jQuery.support.checkClone || !rchecked.test( first )) &&
+               (jQuery.support.html5Clone || !rnoshimcache.test( first )) ) {
+
+               cacheable = true;
+
+               cacheresults = jQuery.fragments[ first ];
+               if ( cacheresults && cacheresults !== 1 ) {
+                       fragment = cacheresults;
+               }
+       }
+
+       if ( !fragment ) {
+               fragment = doc.createDocumentFragment();
+               jQuery.clean( args, doc, fragment, scripts );
+       }
+
+       if ( cacheable ) {
+               jQuery.fragments[ first ] = cacheresults ? fragment : 1;
+       }
+
+       return { fragment: fragment, cacheable: cacheable };
+};
+
+jQuery.fragments = {};
+
+jQuery.each({
+       appendTo: "append",
+       prependTo: "prepend",
+       insertBefore: "before",
+       insertAfter: "after",
+       replaceAll: "replaceWith"
+}, function( name, original ) {
+       jQuery.fn[ name ] = function( selector ) {
+               var ret = [],
+                       insert = jQuery( selector ),
+                       parent = this.length === 1 && this[0].parentNode;
+
+               if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {
+                       insert[ original ]( this[0] );
+                       return this;
+
+               } else {
+                       for ( var i = 0, l = insert.length; i < l; i++ ) {
+                               var elems = ( i > 0 ? this.clone(true) : this ).get();
+                               jQuery( insert[i] )[ original ]( elems );
+                               ret = ret.concat( elems );
+                       }
+
+                       return this.pushStack( ret, name, insert.selector );
+               }
+       };
+});
+
+function getAll( elem ) {
+       if ( typeof elem.getElementsByTagName !== "undefined" ) {
+               return elem.getElementsByTagName( "*" );
+
+       } else if ( typeof elem.querySelectorAll !== "undefined" ) {
+               return elem.querySelectorAll( "*" );
+
+       } else {
+               return [];
+       }
+}
+
+// Used in clean, fixes the defaultChecked property
+function fixDefaultChecked( elem ) {
+       if ( elem.type === "checkbox" || elem.type === "radio" ) {
+               elem.defaultChecked = elem.checked;
+       }
+}
+// Finds all inputs and passes them to fixDefaultChecked
+function findInputs( elem ) {
+       var nodeName = ( elem.nodeName || "" ).toLowerCase();
+       if ( nodeName === "input" ) {
+               fixDefaultChecked( elem );
+       // Skip scripts, get other children
+       } else if ( nodeName !== "script" && typeof elem.getElementsByTagName !== "undefined" ) {
+               jQuery.grep( elem.getElementsByTagName("input"), fixDefaultChecked );
+       }
+}
+
+// Derived From: http://www.iecss.com/shimprove/javascript/shimprove.1-0-1.js
+function shimCloneNode( elem ) {
+       var div = document.createElement( "div" );
+       safeFragment.appendChild( div );
+
+       div.innerHTML = elem.outerHTML;
+       return div.firstChild;
+}
+
+jQuery.extend({
+       clone: function( elem, dataAndEvents, deepDataAndEvents ) {
+               var srcElements,
+                       destElements,
+                       i,
+                       // IE<=8 does not properly clone detached, unknown element nodes
+                       clone = jQuery.support.html5Clone || !rnoshimcache.test( "<" + elem.nodeName ) ?
+                               elem.cloneNode( true ) :
+                               shimCloneNode( elem );
+
+               if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) &&
+                               (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {
+                       // IE copies events bound via attachEvent when using cloneNode.
+                       // Calling detachEvent on the clone will also remove the events
+                       // from the original. In order to get around this, we use some
+                       // proprietary methods to clear the events. Thanks to MooTools
+                       // guys for this hotness.
+
+                       cloneFixAttributes( elem, clone );
+
+                       // Using Sizzle here is crazy slow, so we use getElementsByTagName instead
+                       srcElements = getAll( elem );
+                       destElements = getAll( clone );
+
+                       // Weird iteration because IE will replace the length property
+                       // with an element if you are cloning the body and one of the
+                       // elements on the page has a name or id of "length"
+                       for ( i = 0; srcElements[i]; ++i ) {
+                               // Ensure that the destination node is not null; Fixes #9587
+                               if ( destElements[i] ) {
+                                       cloneFixAttributes( srcElements[i], destElements[i] );
+                               }
+                       }
+               }
+
+               // Copy the events from the original to the clone
+               if ( dataAndEvents ) {
+                       cloneCopyEvent( elem, clone );
+
+                       if ( deepDataAndEvents ) {
+                               srcElements = getAll( elem );
+                               destElements = getAll( clone );
+
+                               for ( i = 0; srcElements[i]; ++i ) {
+                                       cloneCopyEvent( srcElements[i], destElements[i] );
+                               }
+                       }
+               }
+
+               srcElements = destElements = null;
+
+               // Return the cloned set
+               return clone;
+       },
+
+       clean: function( elems, context, fragment, scripts ) {
+               var checkScriptType;
+
+               context = context || document;
+
+               // !context.createElement fails in IE with an error but returns typeof 'object'
+               if ( typeof context.createElement === "undefined" ) {
+                       context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
+               }
+
+               var ret = [], j;
+
+               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
+                       if ( typeof elem === "number" ) {
+                               elem += "";
+                       }
+
+                       if ( !elem ) {
+                               continue;
+                       }
+
+                       // Convert html string into DOM nodes
+                       if ( typeof elem === "string" ) {
+                               if ( !rhtml.test( elem ) ) {
+                                       elem = context.createTextNode( elem );
+                               } else {
+                                       // Fix "XHTML"-style tags in all browsers
+                                       elem = elem.replace(rxhtmlTag, "<$1></$2>");
+
+                                       // Trim whitespace, otherwise indexOf won't work as expected
+                                       var tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase(),
+                                               wrap = wrapMap[ tag ] || wrapMap._default,
+                                               depth = wrap[0],
+                                               div = context.createElement("div");
+
+                                       // Append wrapper element to unknown element safe doc fragment
+                                       if ( context === document ) {
+                                               // Use the fragment we've already created for this document
+                                               safeFragment.appendChild( div );
+                                       } else {
+                                               // Use a fragment created with the owner document
+                                               createSafeFragment( context ).appendChild( div );
+                                       }
+
+                                       // Go to html and back, then peel off extra wrappers
+                                       div.innerHTML = wrap[1] + elem + wrap[2];
+
+                                       // Move to the right depth
+                                       while ( depth-- ) {
+                                               div = div.lastChild;
+                                       }
+
+                                       // Remove IE's autoinserted <tbody> from table fragments
+                                       if ( !jQuery.support.tbody ) {
+
+                                               // String was a <table>, *may* have spurious <tbody>
+                                               var hasBody = rtbody.test(elem),
+                                                       tbody = tag === "table" && !hasBody ?
+                                                               div.firstChild && div.firstChild.childNodes :
+
+                                                               // String was a bare <thead> or <tfoot>
+                                                               wrap[1] === "<table>" && !hasBody ?
+                                                                       div.childNodes :
+                                                                       [];
+
+                                               for ( j = tbody.length - 1; j >= 0 ; --j ) {
+                                                       if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
+                                                               tbody[ j ].parentNode.removeChild( tbody[ j ] );
+                                                       }
+                                               }
+                                       }
+
+                                       // IE completely kills leading whitespace when innerHTML is used
+                                       if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
+                                               div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );
+                                       }
+
+                                       elem = div.childNodes;
+                               }
+                       }
+
+                       // Resets defaultChecked for any radios and checkboxes
+                       // about to be appended to the DOM in IE 6/7 (#8060)
+                       var len;
+                       if ( !jQuery.support.appendChecked ) {
+                               if ( elem[0] && typeof (len = elem.length) === "number" ) {
+                                       for ( j = 0; j < len; j++ ) {
+                                               findInputs( elem[j] );
+                                       }
+                               } else {
+                                       findInputs( elem );
+                               }
+                       }
+
+                       if ( elem.nodeType ) {
+                               ret.push( elem );
+                       } else {
+                               ret = jQuery.merge( ret, elem );
+                       }
+               }
+
+               if ( fragment ) {
+                       checkScriptType = function( elem ) {
+                               return !elem.type || rscriptType.test( elem.type );
+                       };
+                       for ( i = 0; ret[i]; i++ ) {
+                               if ( scripts && jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
+                                       scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
+
+                               } else {
+                                       if ( ret[i].nodeType === 1 ) {
+                                               var jsTags = jQuery.grep( ret[i].getElementsByTagName( "script" ), checkScriptType );
+
+                                               ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) );
+                                       }
+                                       fragment.appendChild( ret[i] );
+                               }
+                       }
+               }
+
+               return ret;
+       },
+
+       cleanData: function( elems ) {
+               var data, id,
+                       cache = jQuery.cache,
+                       special = jQuery.event.special,
+                       deleteExpando = jQuery.support.deleteExpando;
+
+               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
+                       if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
+                               continue;
+                       }
+
+                       id = elem[ jQuery.expando ];
+
+                       if ( id ) {
+                               data = cache[ id ];
+
+                               if ( data && data.events ) {
+                                       for ( var type in data.events ) {
+                                               if ( special[ type ] ) {
+                                                       jQuery.event.remove( elem, type );
+
+                                               // This is a shortcut to avoid jQuery.event.remove's overhead
+                                               } else {
+                                                       jQuery.removeEvent( elem, type, data.handle );
+                                               }
+                                       }
+
+                                       // Null the DOM reference to avoid IE6/7/8 leak (#7054)
+                                       if ( data.handle ) {
+                                               data.handle.elem = null;
+                                       }
+                               }
+
+                               if ( deleteExpando ) {
+                                       delete elem[ jQuery.expando ];
+
+                               } else if ( elem.removeAttribute ) {
+                                       elem.removeAttribute( jQuery.expando );
+                               }
+
+                               delete cache[ id ];
+                       }
+               }
+       }
+});
+
+function evalScript( i, elem ) {
+       if ( elem.src ) {
+               jQuery.ajax({
+                       url: elem.src,
+                       async: false,
+                       dataType: "script"
+               });
+       } else {
+               jQuery.globalEval( ( elem.text || elem.textContent || elem.innerHTML || "" ).replace( rcleanScript, "/*$0*/" ) );
+       }
+
+       if ( elem.parentNode ) {
+               elem.parentNode.removeChild( elem );
+       }
+}
+
+
+
+
+var ralpha = /alpha\([^)]*\)/i,
+       ropacity = /opacity=([^)]*)/,
+       // fixed for IE9, see #8346
+       rupper = /([A-Z]|^ms)/g,
+       rnumpx = /^-?\d+(?:px)?$/i,
+       rnum = /^-?\d/,
+       rrelNum = /^([\-+])=([\-+.\de]+)/,
+
+       cssShow = { position: "absolute", visibility: "hidden", display: "block" },
+       cssWidth = [ "Left", "Right" ],
+       cssHeight = [ "Top", "Bottom" ],
+       curCSS,
+
+       getComputedStyle,
+       currentStyle;
+
+jQuery.fn.css = function( name, value ) {
+       // Setting 'undefined' is a no-op
+       if ( arguments.length === 2 && value === undefined ) {
+               return this;
+       }
+
+       return jQuery.access( this, name, value, true, function( elem, name, value ) {
+               return value !== undefined ?
+                       jQuery.style( elem, name, value ) :
+                       jQuery.css( elem, name );
+       });
+};
+
+jQuery.extend({
+       // Add in style property hooks for overriding the default
+       // behavior of getting and setting a style property
+       cssHooks: {
+               opacity: {
+                       get: function( elem, computed ) {
+                               if ( computed ) {
+                                       // We should always get a number back from opacity
+                                       var ret = curCSS( elem, "opacity", "opacity" );
+                                       return ret === "" ? "1" : ret;
+
+                               } else {
+                                       return elem.style.opacity;
+                               }
+                       }
+               }
+       },
+
+       // Exclude the following css properties to add px
+       cssNumber: {
+               "fillOpacity": true,
+               "fontWeight": true,
+               "lineHeight": true,
+               "opacity": true,
+               "orphans": true,
+               "widows": true,
+               "zIndex": true,
+               "zoom": true
+       },
+
+       // Add in properties whose names you wish to fix before
+       // setting or getting the value
+       cssProps: {
+               // normalize float css property
+               "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat"
+       },
+
+       // Get and set the style property on a DOM Node
+       style: function( elem, name, value, extra ) {
+               // Don't set styles on text and comment nodes
+               if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
+                       return;
+               }
+
+               // Make sure that we're working with the right name
+               var ret, type, origName = jQuery.camelCase( name ),
+                       style = elem.style, hooks = jQuery.cssHooks[ origName ];
+
+               name = jQuery.cssProps[ origName ] || origName;
+
+               // Check if we're setting a value
+               if ( value !== undefined ) {
+                       type = typeof value;
+
+                       // convert relative number strings (+= or -=) to relative numbers. #7345
+                       if ( type === "string" && (ret = rrelNum.exec( value )) ) {
+                               value = ( +( ret[1] + 1) * +ret[2] ) + parseFloat( jQuery.css( elem, name ) );
+                               // Fixes bug #9237
+                               type = "number";
+                       }
+
+                       // Make sure that NaN and null values aren't set. See: #7116
+                       if ( value == null || type === "number" && isNaN( value ) ) {
+                               return;
+                       }
+
+                       // If a number was passed in, add 'px' to the (except for certain CSS properties)
+                       if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
+                               value += "px";
+                       }
+
+                       // If a hook was provided, use that value, otherwise just set the specified value
+                       if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value )) !== undefined ) {
+                               // Wrapped to prevent IE from throwing errors when 'invalid' values are provided
+                               // Fixes bug #5509
+                               try {
+                                       style[ name ] = value;
+                               } catch(e) {}
+                       }
+
+               } else {
+                       // If a hook was provided get the non-computed value from there
+                       if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
+                               return ret;
+                       }
+
+                       // Otherwise just get the value from the style object
+                       return style[ name ];
+               }
+       },
+
+       css: function( elem, name, extra ) {
+               var ret, hooks;
+
+               // Make sure that we're working with the right name
+               name = jQuery.camelCase( name );
+               hooks = jQuery.cssHooks[ name ];
+               name = jQuery.cssProps[ name ] || name;
+
+               // cssFloat needs a special treatment
+               if ( name === "cssFloat" ) {
+                       name = "float";
+               }
+
+               // If a hook was provided get the computed value from there
+               if ( hooks && "get" in hooks && (ret = hooks.get( elem, true, extra )) !== undefined ) {
+                       return ret;
+
+               // Otherwise, if a way to get the computed value exists, use that
+               } else if ( curCSS ) {
+                       return curCSS( elem, name );
+               }
+       },
+
+       // A method for quickly swapping in/out CSS properties to get correct calculations
+       swap: function( elem, options, callback ) {
+               var old = {};
+
+               // Remember the old values, and insert the new ones
+               for ( var name in options ) {
+                       old[ name ] = elem.style[ name ];
+                       elem.style[ name ] = options[ name ];
+               }
+
+               callback.call( elem );
+
+               // Revert the old values
+               for ( name in options ) {
+                       elem.style[ name ] = old[ name ];
+               }
+       }
+});
+
+// DEPRECATED, Use jQuery.css() instead
+jQuery.curCSS = jQuery.css;
+
+jQuery.each(["height", "width"], function( i, name ) {
+       jQuery.cssHooks[ name ] = {
+               get: function( elem, computed, extra ) {
+                       var val;
+
+                       if ( computed ) {
+                               if ( elem.offsetWidth !== 0 ) {
+                                       return getWH( elem, name, extra );
+                               } else {
+                                       jQuery.swap( elem, cssShow, function() {
+                                               val = getWH( elem, name, extra );
+                                       });
+                               }
+
+                               return val;
+                       }
+               },
+
+               set: function( elem, value ) {
+                       if ( rnumpx.test( value ) ) {
+                               // ignore negative width and height values #1599
+                               value = parseFloat( value );
+
+                               if ( value >= 0 ) {
+                                       return value + "px";
+                               }
+
+                       } else {
+                               return value;
+                       }
+               }
+       };
+});
+
+if ( !jQuery.support.opacity ) {
+       jQuery.cssHooks.opacity = {
+               get: function( elem, computed ) {
+                       // IE uses filters for opacity
+                       return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
+                               ( parseFloat( RegExp.$1 ) / 100 ) + "" :
+                               computed ? "1" : "";
+               },
+
+               set: function( elem, value ) {
+                       var style = elem.style,
+                               currentStyle = elem.currentStyle,
+                               opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "",
+                               filter = currentStyle && currentStyle.filter || style.filter || "";
+
+                       // IE has trouble with opacity if it does not have layout
+                       // Force it by setting the zoom level
+                       style.zoom = 1;
+
+                       // if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
+                       if ( value >= 1 && jQuery.trim( filter.replace( ralpha, "" ) ) === "" ) {
+
+                               // Setting style.filter to null, "" & " " still leave "filter:" in the cssText
+                               // if "filter:" is present at all, clearType is disabled, we want to avoid this
+                               // style.removeAttribute is IE Only, but so apparently is this code path...
+                               style.removeAttribute( "filter" );
+
+                               // if there there is no filter style applied in a css rule, we are done
+                               if ( currentStyle && !currentStyle.filter ) {
+                                       return;
+                               }
+                       }
+
+                       // otherwise, set new filter values
+                       style.filter = ralpha.test( filter ) ?
+                               filter.replace( ralpha, opacity ) :
+                               filter + " " + opacity;
+               }
+       };
+}
+
+jQuery(function() {
+       // This hook cannot be added until DOM ready because the support test
+       // for it is not run until after DOM ready
+       if ( !jQuery.support.reliableMarginRight ) {
+               jQuery.cssHooks.marginRight = {
+                       get: function( elem, computed ) {
+                               // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
+                               // Work around by temporarily setting element display to inline-block
+                               var ret;
+                               jQuery.swap( elem, { "display": "inline-block" }, function() {
+                                       if ( computed ) {
+                                               ret = curCSS( elem, "margin-right", "marginRight" );
+                                       } else {
+                                               ret = elem.style.marginRight;
+                                       }
+                               });
+                               return ret;
+                       }
+               };
+       }
+});
+
+if ( document.defaultView && document.defaultView.getComputedStyle ) {
+       getComputedStyle = function( elem, name ) {
+               var ret, defaultView, computedStyle;
+
+               name = name.replace( rupper, "-$1" ).toLowerCase();
+
+               if ( (defaultView = elem.ownerDocument.defaultView) &&
+                               (computedStyle = defaultView.getComputedStyle( elem, null )) ) {
+                       ret = computedStyle.getPropertyValue( name );
+                       if ( ret === "" && !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) {
+                               ret = jQuery.style( elem, name );
+                       }
+               }
+
+               return ret;
+       };
+}
+
+if ( document.documentElement.currentStyle ) {
+       currentStyle = function( elem, name ) {
+               var left, rsLeft, uncomputed,
+                       ret = elem.currentStyle && elem.currentStyle[ name ],
+                       style = elem.style;
+
+               // Avoid setting ret to empty string here
+               // so we don't default to auto
+               if ( ret === null && style && (uncomputed = style[ name ]) ) {
+                       ret = uncomputed;
+               }
+
+               // From the awesome hack by Dean Edwards
+               // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
+
+               // If we're not dealing with a regular pixel number
+               // but a number that has a weird ending, we need to convert it to pixels
+               if ( !rnumpx.test( ret ) && rnum.test( ret ) ) {
+
+                       // Remember the original values
+                       left = style.left;
+                       rsLeft = elem.runtimeStyle && elem.runtimeStyle.left;
+
+                       // Put in the new values to get a computed value out
+                       if ( rsLeft ) {
+                               elem.runtimeStyle.left = elem.currentStyle.left;
+                       }
+                       style.left = name === "fontSize" ? "1em" : ( ret || 0 );
+                       ret = style.pixelLeft + "px";
+
+                       // Revert the changed values
+                       style.left = left;
+                       if ( rsLeft ) {
+                               elem.runtimeStyle.left = rsLeft;
+                       }
+               }
+
+               return ret === "" ? "auto" : ret;
+       };
+}
+
+curCSS = getComputedStyle || currentStyle;
+
+function getWH( elem, name, extra ) {
+
+       // Start with offset property
+       var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
+               which = name === "width" ? cssWidth : cssHeight,
+               i = 0,
+               len = which.length;
+
+       if ( val > 0 ) {
+               if ( extra !== "border" ) {
+                       for ( ; i < len; i++ ) {
+                               if ( !extra ) {
+                                       val -= parseFloat( jQuery.css( elem, "padding" + which[ i ] ) ) || 0;
+                               }
+                               if ( extra === "margin" ) {
+                                       val += parseFloat( jQuery.css( elem, extra + which[ i ] ) ) || 0;
+                               } else {
+                                       val -= parseFloat( jQuery.css( elem, "border" + which[ i ] + "Width" ) ) || 0;
+                               }
+                       }
+               }
+
+               return val + "px";
+       }
+
+       // Fall back to computed then uncomputed css if necessary
+       val = curCSS( elem, name, name );
+       if ( val < 0 || val == null ) {
+               val = elem.style[ name ] || 0;
+       }
+       // Normalize "", auto, and prepare for extra
+       val = parseFloat( val ) || 0;
+
+       // Add padding, border, margin
+       if ( extra ) {
+               for ( ; i < len; i++ ) {
+                       val += parseFloat( jQuery.css( elem, "padding" + which[ i ] ) ) || 0;
+                       if ( extra !== "padding" ) {
+                               val += parseFloat( jQuery.css( elem, "border" + which[ i ] + "Width" ) ) || 0;
+                       }
+                       if ( extra === "margin" ) {
+                               val += parseFloat( jQuery.css( elem, extra + which[ i ] ) ) || 0;
+                       }
+               }
+       }
+
+       return val + "px";
+}
+
+if ( jQuery.expr && jQuery.expr.filters ) {
+       jQuery.expr.filters.hidden = function( elem ) {
+               var width = elem.offsetWidth,
+                       height = elem.offsetHeight;
+
+               return ( width === 0 && height === 0 ) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");
+       };
+
+       jQuery.expr.filters.visible = function( elem ) {
+               return !jQuery.expr.filters.hidden( elem );
+       };
+}
+
+
+
+
+var r20 = /%20/g,
+       rbracket = /\[\]$/,
+       rCRLF = /\r?\n/g,
+       rhash = /#.*$/,
+       rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
+       rinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
+       // #7653, #8125, #8152: local protocol detection
+       rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,
+       rnoContent = /^(?:GET|HEAD)$/,
+       rprotocol = /^\/\//,
+       rquery = /\?/,
+       rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
+       rselectTextarea = /^(?:select|textarea)/i,
+       rspacesAjax = /\s+/,
+       rts = /([?&])_=[^&]*/,
+       rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,
+
+       // Keep a copy of the old load method
+       _load = jQuery.fn.load,
+
+       /* Prefilters
+        * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
+        * 2) These are called:
+        *    - BEFORE asking for a transport
+        *    - AFTER param serialization (s.data is a string if s.processData is true)
+        * 3) key is the dataType
+        * 4) the catchall symbol "*" can be used
+        * 5) execution will start with transport dataType and THEN continue down to "*" if needed
+        */
+       prefilters = {},
+
+       /* Transports bindings
+        * 1) key is the dataType
+        * 2) the catchall symbol "*" can be used
+        * 3) selection will start with transport dataType and THEN go to "*" if needed
+        */
+       transports = {},
+
+       // Document location
+       ajaxLocation,
+
+       // Document location segments
+       ajaxLocParts,
+
+       // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
+       allTypes = ["*/"] + ["*"];
+
+// #8138, IE may throw an exception when accessing
+// a field from window.location if document.domain has been set
+try {
+       ajaxLocation = location.href;
+} catch( e ) {
+       // Use the href attribute of an A element
+       // since IE will modify it given document.location
+       ajaxLocation = document.createElement( "a" );
+       ajaxLocation.href = "";
+       ajaxLocation = ajaxLocation.href;
+}
+
+// Segment location into parts
+ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
+
+// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
+function addToPrefiltersOrTransports( structure ) {
+
+       // dataTypeExpression is optional and defaults to "*"
+       return function( dataTypeExpression, func ) {
+
+               if ( typeof dataTypeExpression !== "string" ) {
+                       func = dataTypeExpression;
+                       dataTypeExpression = "*";
+               }
+
+               if ( jQuery.isFunction( func ) ) {
+                       var dataTypes = dataTypeExpression.toLowerCase().split( rspacesAjax ),
+                               i = 0,
+                               length = dataTypes.length,
+                               dataType,
+                               list,
+                               placeBefore;
+
+                       // For each dataType in the dataTypeExpression
+                       for ( ; i < length; i++ ) {
+                               dataType = dataTypes[ i ];
+                               // We control if we're asked to add before
+                               // any existing element
+                               placeBefore = /^\+/.test( dataType );
+                               if ( placeBefore ) {
+                                       dataType = dataType.substr( 1 ) || "*";
+                               }
+                               list = structure[ dataType ] = structure[ dataType ] || [];
+                               // then we add to the structure accordingly
+                               list[ placeBefore ? "unshift" : "push" ]( func );
+                       }
+               }
+       };
+}
+
+// Base inspection function for prefilters and transports
+function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR,
+               dataType /* internal */, inspected /* internal */ ) {
+
+       dataType = dataType || options.dataTypes[ 0 ];
+       inspected = inspected || {};
+
+       inspected[ dataType ] = true;
+
+       var list = structure[ dataType ],
+               i = 0,
+               length = list ? list.length : 0,
+               executeOnly = ( structure === prefilters ),
+               selection;
+
+       for ( ; i < length && ( executeOnly || !selection ); i++ ) {
+               selection = list[ i ]( options, originalOptions, jqXHR );
+               // If we got redirected to another dataType
+               // we try there if executing only and not done already
+               if ( typeof selection === "string" ) {
+                       if ( !executeOnly || inspected[ selection ] ) {
+                               selection = undefined;
+                       } else {
+                               options.dataTypes.unshift( selection );
+                               selection = inspectPrefiltersOrTransports(
+                                               structure, options, originalOptions, jqXHR, selection, inspected );
+                       }
+               }
+       }
+       // If we're only executing or nothing was selected
+       // we try the catchall dataType if not done already
+       if ( ( executeOnly || !selection ) && !inspected[ "*" ] ) {
+               selection = inspectPrefiltersOrTransports(
+                               structure, options, originalOptions, jqXHR, "*", inspected );
+       }
+       // unnecessary when only executing (prefilters)
+       // but it'll be ignored by the caller in that case
+       return selection;
+}
+
+// A special extend for ajax options
+// that takes "flat" options (not to be deep extended)
+// Fixes #9887
+function ajaxExtend( target, src ) {
+       var key, deep,
+               flatOptions = jQuery.ajaxSettings.flatOptions || {};
+       for ( key in src ) {
+               if ( src[ key ] !== undefined ) {
+                       ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
+               }
+       }
+       if ( deep ) {
+               jQuery.extend( true, target, deep );
+       }
+}
+
+jQuery.fn.extend({
+       load: function( url, params, callback ) {
+               if ( typeof url !== "string" && _load ) {
+                       return _load.apply( this, arguments );
+
+               // Don't do a request if no elements are being requested
+               } else if ( !this.length ) {
+                       return this;
+               }
+
+               var off = url.indexOf( " " );
+               if ( off >= 0 ) {
+                       var selector = url.slice( off, url.length );
+                       url = url.slice( 0, off );
+               }
+
+               // Default to a GET request
+               var type = "GET";
+
+               // If the second parameter was provided
+               if ( params ) {
+                       // If it's a function
+                       if ( jQuery.isFunction( params ) ) {
+                               // We assume that it's the callback
+                               callback = params;
+                               params = undefined;
+
+                       // Otherwise, build a param string
+                       } else if ( typeof params === "object" ) {
+                               params = jQuery.param( params, jQuery.ajaxSettings.traditional );
+                               type = "POST";
+                       }
+               }
+
+               var self = this;
+
+               // Request the remote document
+               jQuery.ajax({
+                       url: url,
+                       type: type,
+                       dataType: "html",
+                       data: params,
+                       // Complete callback (responseText is used internally)
+                       complete: function( jqXHR, status, responseText ) {
+                               // Store the response as specified by the jqXHR object
+                               responseText = jqXHR.responseText;
+                               // If successful, inject the HTML into all the matched elements
+                               if ( jqXHR.isResolved() ) {
+                                       // #4825: Get the actual response in case
+                                       // a dataFilter is present in ajaxSettings
+                                       jqXHR.done(function( r ) {
+                                               responseText = r;
+                                       });
+                                       // See if a selector was specified
+                                       self.html( selector ?
+                                               // Create a dummy div to hold the results
+                                               jQuery("<div>")
+                                                       // inject the contents of the document in, removing the scripts
+                                                       // to avoid any 'Permission Denied' errors in IE
+                                                       .append(responseText.replace(rscript, ""))
+
+                                                       // Locate the specified elements
+                                                       .find(selector) :
+
+                                               // If not, just inject the full result
+                                               responseText );
+                               }
+
+                               if ( callback ) {
+                                       self.each( callback, [ responseText, status, jqXHR ] );
+                               }
+                       }
+               });
+
+               return this;
+       },
+
+       serialize: function() {
+               return jQuery.param( this.serializeArray() );
+       },
+
+       serializeArray: function() {
+               return this.map(function(){
+                       return this.elements ? jQuery.makeArray( this.elements ) : this;
+               })
+               .filter(function(){
+                       return this.name && !this.disabled &&
+                               ( this.checked || rselectTextarea.test( this.nodeName ) ||
+                                       rinput.test( this.type ) );
+               })
+               .map(function( i, elem ){
+                       var val = jQuery( this ).val();
+
+                       return val == null ?
+                               null :
+                               jQuery.isArray( val ) ?
+                                       jQuery.map( val, function( val, i ){
+                                               return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
+                                       }) :
+                                       { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
+               }).get();
+       }
+});
+
+// Attach a bunch of functions for handling common AJAX events
+jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split( " " ), function( i, o ){
+       jQuery.fn[ o ] = function( f ){
+               return this.on( o, f );
+       };
+});
+
+jQuery.each( [ "get", "post" ], function( i, method ) {
+       jQuery[ method ] = function( url, data, callback, type ) {
+               // shift arguments if data argument was omitted
+               if ( jQuery.isFunction( data ) ) {
+                       type = type || callback;
+                       callback = data;
+                       data = undefined;
+               }
+
+               return jQuery.ajax({
+                       type: method,
+                       url: url,
+                       data: data,
+                       success: callback,
+                       dataType: type
+               });
+       };
+});
+
+jQuery.extend({
+
+       getScript: function( url, callback ) {
+               return jQuery.get( url, undefined, callback, "script" );
+       },
+
+       getJSON: function( url, data, callback ) {
+               return jQuery.get( url, data, callback, "json" );
+       },
+
+       // Creates a full fledged settings object into target
+       // with both ajaxSettings and settings fields.
+       // If target is omitted, writes into ajaxSettings.
+       ajaxSetup: function( target, settings ) {
+               if ( settings ) {
+                       // Building a settings object
+                       ajaxExtend( target, jQuery.ajaxSettings );
+               } else {
+                       // Extending ajaxSettings
+                       settings = target;
+                       target = jQuery.ajaxSettings;
+               }
+               ajaxExtend( target, settings );
+               return target;
+       },
+
+       ajaxSettings: {
+               url: ajaxLocation,
+               isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
+               global: true,
+               type: "GET",
+               contentType: "application/x-www-form-urlencoded",
+               processData: true,
+               async: true,
+               /*
+               timeout: 0,
+               data: null,
+               dataType: null,
+               username: null,
+               password: null,
+               cache: null,
+               traditional: false,
+               headers: {},
+               */
+
+               accepts: {
+                       xml: "application/xml, text/xml",
+                       html: "text/html",
+                       text: "text/plain",
+                       json: "application/json, text/javascript",
+                       "*": allTypes
+               },
+
+               contents: {
+                       xml: /xml/,
+                       html: /html/,
+                       json: /json/
+               },
+
+               responseFields: {
+                       xml: "responseXML",
+                       text: "responseText"
+               },
+
+               // List of data converters
+               // 1) key format is "source_type destination_type" (a single space in-between)
+               // 2) the catchall symbol "*" can be used for source_type
+               converters: {
+
+                       // Convert anything to text
+                       "* text": window.String,
+
+                       // Text to html (true = no transformation)
+                       "text html": true,
+
+                       // Evaluate text as a json expression
+                       "text json": jQuery.parseJSON,
+
+                       // Parse text as xml
+                       "text xml": jQuery.parseXML
+               },
+
+               // For options that shouldn't be deep extended:
+               // you can add your own custom options here if
+               // and when you create one that shouldn't be
+               // deep extended (see ajaxExtend)
+               flatOptions: {
+                       context: true,
+                       url: true
+               }
+       },
+
+       ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
+       ajaxTransport: addToPrefiltersOrTransports( transports ),
+
+       // Main method
+       ajax: function( url, options ) {
+
+               // If url is an object, simulate pre-1.5 signature
+               if ( typeof url === "object" ) {
+                       options = url;
+                       url = undefined;
+               }
+
+               // Force options to be an object
+               options = options || {};
+
+               var // Create the final options object
+                       s = jQuery.ajaxSetup( {}, options ),
+                       // Callbacks context
+                       callbackContext = s.context || s,
+                       // Context for global events
+                       // It's the callbackContext if one was provided in the options
+                       // and if it's a DOM node or a jQuery collection
+                       globalEventContext = callbackContext !== s &&
+                               ( callbackContext.nodeType || callbackContext instanceof jQuery ) ?
+                                               jQuery( callbackContext ) : jQuery.event,
+                       // Deferreds
+                       deferred = jQuery.Deferred(),
+                       completeDeferred = jQuery.Callbacks( "once memory" ),
+                       // Status-dependent callbacks
+                       statusCode = s.statusCode || {},
+                       // ifModified key
+                       ifModifiedKey,
+                       // Headers (they are sent all at once)
+                       requestHeaders = {},
+                       requestHeadersNames = {},
+                       // Response headers
+                       responseHeadersString,
+                       responseHeaders,
+                       // transport
+                       transport,
+                       // timeout handle
+                       timeoutTimer,
+                       // Cross-domain detection vars
+                       parts,
+                       // The jqXHR state
+                       state = 0,
+                       // To know if global events are to be dispatched
+                       fireGlobals,
+                       // Loop variable
+                       i,
+                       // Fake xhr
+                       jqXHR = {
+
+                               readyState: 0,
+
+                               // Caches the header
+                               setRequestHeader: function( name, value ) {
+                                       if ( !state ) {
+                                               var lname = name.toLowerCase();
+                                               name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
+                                               requestHeaders[ name ] = value;
+                                       }
+                                       return this;
+                               },
+
+                               // Raw string
+                               getAllResponseHeaders: function() {
+                                       return state === 2 ? responseHeadersString : null;
+                               },
+
+                               // Builds headers hashtable if needed
+                               getResponseHeader: function( key ) {
+                                       var match;
+                                       if ( state === 2 ) {
+                                               if ( !responseHeaders ) {
+                                                       responseHeaders = {};
+                                                       while( ( match = rheaders.exec( responseHeadersString ) ) ) {
+                                                               responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
+                                                       }
+                                               }
+                                               match = responseHeaders[ key.toLowerCase() ];
+                                       }
+                                       return match === undefined ? null : match;
+                               },
+
+                               // Overrides response content-type header
+                               overrideMimeType: function( type ) {
+                                       if ( !state ) {
+                                               s.mimeType = type;
+                                       }
+                                       return this;
+                               },
+
+                               // Cancel the request
+                               abort: function( statusText ) {
+                                       statusText = statusText || "abort";
+                                       if ( transport ) {
+                                               transport.abort( statusText );
+                                       }
+                                       done( 0, statusText );
+                                       return this;
+                               }
+                       };
+
+               // Callback for when everything is done
+               // It is defined here because jslint complains if it is declared
+               // at the end of the function (which would be more logical and readable)
+               function done( status, nativeStatusText, responses, headers ) {
+
+                       // Called once
+                       if ( state === 2 ) {
+                               return;
+                       }
+
+                       // State is "done" now
+                       state = 2;
+
+                       // Clear timeout if it exists
+                       if ( timeoutTimer ) {
+                               clearTimeout( timeoutTimer );
+                       }
+
+                       // Dereference transport for early garbage collection
+                       // (no matter how long the jqXHR object will be used)
+                       transport = undefined;
+
+                       // Cache response headers
+                       responseHeadersString = headers || "";
+
+                       // Set readyState
+                       jqXHR.readyState = status > 0 ? 4 : 0;
+
+                       var isSuccess,
+                               success,
+                               error,
+                               statusText = nativeStatusText,
+                               response = responses ? ajaxHandleResponses( s, jqXHR, responses ) : undefined,
+                               lastModified,
+                               etag;
+
+                       // If successful, handle type chaining
+                       if ( status >= 200 && status < 300 || status === 304 ) {
+
+                               // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
+                               if ( s.ifModified ) {
+
+                                       if ( ( lastModified = jqXHR.getResponseHeader( "Last-Modified" ) ) ) {
+                                               jQuery.lastModified[ ifModifiedKey ] = lastModified;
+                                       }
+                                       if ( ( etag = jqXHR.getResponseHeader( "Etag" ) ) ) {
+                                               jQuery.etag[ ifModifiedKey ] = etag;
+                                       }
+                               }
+
+                               // If not modified
+                               if ( status === 304 ) {
+
+                                       statusText = "notmodified";
+                                       isSuccess = true;
+
+                               // If we have data
+                               } else {
+
+                                       try {
+                                               success = ajaxConvert( s, response );
+                                               statusText = "success";
+                                               isSuccess = true;
+                                       } catch(e) {
+                                               // We have a parsererror
+                                               statusText = "parsererror";
+                                               error = e;
+                                       }
+                               }
+                       } else {
+                               // We extract error from statusText
+                               // then normalize statusText and status for non-aborts
+                               error = statusText;
+                               if ( !statusText || status ) {
+                                       statusText = "error";
+                                       if ( status < 0 ) {
+                                               status = 0;
+                                       }
+                               }
+                       }
+
+                       // Set data for the fake xhr object
+                       jqXHR.status = status;
+                       jqXHR.statusText = "" + ( nativeStatusText || statusText );
+
+                       // Success/Error
+                       if ( isSuccess ) {
+                               deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
+                       } else {
+                               deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
+                       }
+
+                       // Status-dependent callbacks
+                       jqXHR.statusCode( statusCode );
+                       statusCode = undefined;
+
+                       if ( fireGlobals ) {
+                               globalEventContext.trigger( "ajax" + ( isSuccess ? "Success" : "Error" ),
+                                               [ jqXHR, s, isSuccess ? success : error ] );
+                       }
+
+                       // Complete
+                       completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
+
+                       if ( fireGlobals ) {
+                               globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
+                               // Handle the global AJAX counter
+                               if ( !( --jQuery.active ) ) {
+                                       jQuery.event.trigger( "ajaxStop" );
+                               }
+                       }
+               }
+
+               // Attach deferreds
+               deferred.promise( jqXHR );
+               jqXHR.success = jqXHR.done;
+               jqXHR.error = jqXHR.fail;
+               jqXHR.complete = completeDeferred.add;
+
+               // Status-dependent callbacks
+               jqXHR.statusCode = function( map ) {
+                       if ( map ) {
+                               var tmp;
+                               if ( state < 2 ) {
+                                       for ( tmp in map ) {
+                                               statusCode[ tmp ] = [ statusCode[tmp], map[tmp] ];
+                                       }
+                               } else {
+                                       tmp = map[ jqXHR.status ];
+                                       jqXHR.then( tmp, tmp );
+                               }
+                       }
+                       return this;
+               };
+
+               // Remove hash character (#7531: and string promotion)
+               // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
+               // We also use the url parameter if available
+               s.url = ( ( url || s.url ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
+
+               // Extract dataTypes list
+               s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( rspacesAjax );
+
+               // Determine if a cross-domain request is in order
+               if ( s.crossDomain == null ) {
+                       parts = rurl.exec( s.url.toLowerCase() );
+                       s.crossDomain = !!( parts &&
+                               ( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||
+                                       ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
+                                               ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) )
+                       );
+               }
+
+               // Convert data if not already a string
+               if ( s.data && s.processData && typeof s.data !== "string" ) {
+                       s.data = jQuery.param( s.data, s.traditional );
+               }
+
+               // Apply prefilters
+               inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
+
+               // If request was aborted inside a prefiler, stop there
+               if ( state === 2 ) {
+                       return false;
+               }
+
+               // We can fire global events as of now if asked to
+               fireGlobals = s.global;
+
+               // Uppercase the type
+               s.type = s.type.toUpperCase();
+
+               // Determine if request has content
+               s.hasContent = !rnoContent.test( s.type );
+
+               // Watch for a new set of requests
+               if ( fireGlobals && jQuery.active++ === 0 ) {
+                       jQuery.event.trigger( "ajaxStart" );
+               }
+
+               // More options handling for requests with no content
+               if ( !s.hasContent ) {
+
+                       // If data is available, append data to url
+                       if ( s.data ) {
+                               s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.data;
+                               // #9682: remove data so that it's not used in an eventual retry
+                               delete s.data;
+                       }
+
+                       // Get ifModifiedKey before adding the anti-cache parameter
+                       ifModifiedKey = s.url;
+
+                       // Add anti-cache in url if needed
+                       if ( s.cache === false ) {
+
+                               var ts = jQuery.now(),
+                                       // try replacing _= if it is there
+                                       ret = s.url.replace( rts, "$1_=" + ts );
+
+                               // if nothing was replaced, add timestamp to the end
+                               s.url = ret + ( ( ret === s.url ) ? ( rquery.test( s.url ) ? "&" : "?" ) + "_=" + ts : "" );
+                       }
+               }
+
+               // Set the correct header, if data is being sent
+               if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
+                       jqXHR.setRequestHeader( "Content-Type", s.contentType );
+               }
+
+               // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
+               if ( s.ifModified ) {
+                       ifModifiedKey = ifModifiedKey || s.url;
+                       if ( jQuery.lastModified[ ifModifiedKey ] ) {
+                               jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ ifModifiedKey ] );
+                       }
+                       if ( jQuery.etag[ ifModifiedKey ] ) {
+                               jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ ifModifiedKey ] );
+                       }
+               }
+
+               // Set the Accepts header for the server, depending on the dataType
+               jqXHR.setRequestHeader(
+                       "Accept",
+                       s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
+                               s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
+                               s.accepts[ "*" ]
+               );
+
+               // Check for headers option
+               for ( i in s.headers ) {
+                       jqXHR.setRequestHeader( i, s.headers[ i ] );
+               }
+
+               // Allow custom headers/mimetypes and early abort
+               if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
+                               // Abort if not done already
+                               jqXHR.abort();
+                               return false;
+
+               }
+
+               // Install callbacks on deferreds
+               for ( i in { success: 1, error: 1, complete: 1 } ) {
+                       jqXHR[ i ]( s[ i ] );
+               }
+
+               // Get transport
+               transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
+
+               // If no transport, we auto-abort
+               if ( !transport ) {
+                       done( -1, "No Transport" );
+               } else {
+                       jqXHR.readyState = 1;
+                       // Send global event
+                       if ( fireGlobals ) {
+                               globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
+                       }
+                       // Timeout
+                       if ( s.async && s.timeout > 0 ) {
+                               timeoutTimer = setTimeout( function(){
+                                       jqXHR.abort( "timeout" );
+                               }, s.timeout );
+                       }
+
+                       try {
+                               state = 1;
+                               transport.send( requestHeaders, done );
+                       } catch (e) {
+                               // Propagate exception as error if not done
+                               if ( state < 2 ) {
+                                       done( -1, e );
+                               // Simply rethrow otherwise
+                               } else {
+                                       throw e;
+                               }
+                       }
+               }
+
+               return jqXHR;
+       },
+
+       // Serialize an array of form elements or a set of
+       // key/values into a query string
+       param: function( a, traditional ) {
+               var s = [],
+                       add = function( key, value ) {
+                               // If value is a function, invoke it and return its value
+                               value = jQuery.isFunction( value ) ? value() : value;
+                               s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
+                       };
+
+               // Set traditional to true for jQuery <= 1.3.2 behavior.
+               if ( traditional === undefined ) {
+                       traditional = jQuery.ajaxSettings.traditional;
+               }
+
+               // If an array was passed in, assume that it is an array of form elements.
+               if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
+                       // Serialize the form elements
+                       jQuery.each( a, function() {
+                               add( this.name, this.value );
+                       });
+
+               } else {
+                       // If traditional, encode the "old" way (the way 1.3.2 or older
+                       // did it), otherwise encode params recursively.
+                       for ( var prefix in a ) {
+                               buildParams( prefix, a[ prefix ], traditional, add );
+                       }
+               }
+
+               // Return the resulting serialization
+               return s.join( "&" ).replace( r20, "+" );
+       }
+});
+
+function buildParams( prefix, obj, traditional, add ) {
+       if ( jQuery.isArray( obj ) ) {
+               // Serialize array item.
+               jQuery.each( obj, function( i, v ) {
+                       if ( traditional || rbracket.test( prefix ) ) {
+                               // Treat each array item as a scalar.
+                               add( prefix, v );
+
+                       } else {
+                               // If array item is non-scalar (array or object), encode its
+                               // numeric index to resolve deserialization ambiguity issues.
+                               // Note that rack (as of 1.0.0) can't currently deserialize
+                               // nested arrays properly, and attempting to do so may cause
+                               // a server error. Possible fixes are to modify rack's
+                               // deserialization algorithm or to provide an option or flag
+                               // to force array serialization to be shallow.
+                               buildParams( prefix + "[" + ( typeof v === "object" || jQuery.isArray(v) ? i : "" ) + "]", v, traditional, add );
+                       }
+               });
+
+       } else if ( !traditional && obj != null && typeof obj === "object" ) {
+               // Serialize object item.
+               for ( var name in obj ) {
+                       buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
+               }
+
+       } else {
+               // Serialize scalar item.
+               add( prefix, obj );
+       }
+}
+
+// This is still on the jQuery object... for now
+// Want to move this to jQuery.ajax some day
+jQuery.extend({
+
+       // Counter for holding the number of active queries
+       active: 0,
+
+       // Last-Modified header cache for next request
+       lastModified: {},
+       etag: {}
+
+});
+
+/* Handles responses to an ajax request:
+ * - sets all responseXXX fields accordingly
+ * - finds the right dataType (mediates between content-type and expected dataType)
+ * - returns the corresponding response
+ */
+function ajaxHandleResponses( s, jqXHR, responses ) {
+
+       var contents = s.contents,
+               dataTypes = s.dataTypes,
+               responseFields = s.responseFields,
+               ct,
+               type,
+               finalDataType,
+               firstDataType;
+
+       // Fill responseXXX fields
+       for ( type in responseFields ) {
+               if ( type in responses ) {
+                       jqXHR[ responseFields[type] ] = responses[ type ];
+               }
+       }
+
+       // Remove auto dataType and get content-type in the process
+       while( dataTypes[ 0 ] === "*" ) {
+               dataTypes.shift();
+               if ( ct === undefined ) {
+                       ct = s.mimeType || jqXHR.getResponseHeader( "content-type" );
+               }
+       }
+
+       // Check if we're dealing with a known content-type
+       if ( ct ) {
+               for ( type in contents ) {
+                       if ( contents[ type ] && contents[ type ].test( ct ) ) {
+                               dataTypes.unshift( type );
+                               break;
+                       }
+               }
+       }
+
+       // Check to see if we have a response for the expected dataType
+       if ( dataTypes[ 0 ] in responses ) {
+               finalDataType = dataTypes[ 0 ];
+       } else {
+               // Try convertible dataTypes
+               for ( type in responses ) {
+                       if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
+                               finalDataType = type;
+                               break;
+                       }
+                       if ( !firstDataType ) {
+                               firstDataType = type;
+                       }
+               }
+               // Or just use first one
+               finalDataType = finalDataType || firstDataType;
+       }
+
+       // If we found a dataType
+       // We add the dataType to the list if needed
+       // and return the corresponding response
+       if ( finalDataType ) {
+               if ( finalDataType !== dataTypes[ 0 ] ) {
+                       dataTypes.unshift( finalDataType );
+               }
+               return responses[ finalDataType ];
+       }
+}
+
+// Chain conversions given the request and the original response
+function ajaxConvert( s, response ) {
+
+       // Apply the dataFilter if provided
+       if ( s.dataFilter ) {
+               response = s.dataFilter( response, s.dataType );
+       }
+
+       var dataTypes = s.dataTypes,
+               converters = {},
+               i,
+               key,
+               length = dataTypes.length,
+               tmp,
+               // Current and previous dataTypes
+               current = dataTypes[ 0 ],
+               prev,
+               // Conversion expression
+               conversion,
+               // Conversion function
+               conv,
+               // Conversion functions (transitive conversion)
+               conv1,
+               conv2;
+
+       // For each dataType in the chain
+       for ( i = 1; i < length; i++ ) {
+
+               // Create converters map
+               // with lowercased keys
+               if ( i === 1 ) {
+                       for ( key in s.converters ) {
+                               if ( typeof key === "string" ) {
+                                       converters[ key.toLowerCase() ] = s.converters[ key ];
+                               }
+                       }
+               }
+
+               // Get the dataTypes
+               prev = current;
+               current = dataTypes[ i ];
+
+               // If current is auto dataType, update it to prev
+               if ( current === "*" ) {
+                       current = prev;
+               // If no auto and dataTypes are actually different
+               } else if ( prev !== "*" && prev !== current ) {
+
+                       // Get the converter
+                       conversion = prev + " " + current;
+                       conv = converters[ conversion ] || converters[ "* " + current ];
+
+                       // If there is no direct converter, search transitively
+                       if ( !conv ) {
+                               conv2 = undefined;
+                               for ( conv1 in converters ) {
+                                       tmp = conv1.split( " " );
+                                       if ( tmp[ 0 ] === prev || tmp[ 0 ] === "*" ) {
+                                               conv2 = converters[ tmp[1] + " " + current ];
+                                               if ( conv2 ) {
+                                                       conv1 = converters[ conv1 ];
+                                                       if ( conv1 === true ) {
+                                                               conv = conv2;
+                                                       } else if ( conv2 === true ) {
+                                                               conv = conv1;
+                                                       }
+                                                       break;
+                                               }
+                                       }
+                               }
+                       }
+                       // If we found no converter, dispatch an error
+                       if ( !( conv || conv2 ) ) {
+                               jQuery.error( "No conversion from " + conversion.replace(" "," to ") );
+                       }
+                       // If found converter is not an equivalence
+                       if ( conv !== true ) {
+                               // Convert with 1 or 2 converters accordingly
+                               response = conv ? conv( response ) : conv2( conv1(response) );
+                       }
+               }
+       }
+       return response;
+}
+
+
+
+
+var jsc = jQuery.now(),
+       jsre = /(\=)\?(&|$)|\?\?/i;
+
+// Default jsonp settings
+jQuery.ajaxSetup({
+       jsonp: "callback",
+       jsonpCallback: function() {
+               return jQuery.expando + "_" + ( jsc++ );
+       }
+});
+
+// Detect, normalize options and install callbacks for jsonp requests
+jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
+
+       var inspectData = s.contentType === "application/x-www-form-urlencoded" &&
+               ( typeof s.data === "string" );
+
+       if ( s.dataTypes[ 0 ] === "jsonp" ||
+               s.jsonp !== false && ( jsre.test( s.url ) ||
+                               inspectData && jsre.test( s.data ) ) ) {
+
+               var responseContainer,
+                       jsonpCallback = s.jsonpCallback =
+                               jQuery.isFunction( s.jsonpCallback ) ? s.jsonpCallback() : s.jsonpCallback,
+                       previous = window[ jsonpCallback ],
+                       url = s.url,
+                       data = s.data,
+                       replace = "$1" + jsonpCallback + "$2";
+
+               if ( s.jsonp !== false ) {
+                       url = url.replace( jsre, replace );
+                       if ( s.url === url ) {
+                               if ( inspectData ) {
+                                       data = data.replace( jsre, replace );
+                               }
+                               if ( s.data === data ) {
+                                       // Add callback manually
+                                       url += (/\?/.test( url ) ? "&" : "?") + s.jsonp + "=" + jsonpCallback;
+                               }
+                       }
+               }
+
+               s.url = url;
+               s.data = data;
+
+               // Install callback
+               window[ jsonpCallback ] = function( response ) {
+                       responseContainer = [ response ];
+               };
+
+               // Clean-up function
+               jqXHR.always(function() {
+                       // Set callback back to previous value
+                       window[ jsonpCallback ] = previous;
+                       // Call if it was a function and we have a response
+                       if ( responseContainer && jQuery.isFunction( previous ) ) {
+                               window[ jsonpCallback ]( responseContainer[ 0 ] );
+                       }
+               });
+
+               // Use data converter to retrieve json after script execution
+               s.converters["script json"] = function() {
+                       if ( !responseContainer ) {
+                               jQuery.error( jsonpCallback + " was not called" );
+                       }
+                       return responseContainer[ 0 ];
+               };
+
+               // force json dataType
+               s.dataTypes[ 0 ] = "json";
+
+               // Delegate to script
+               return "script";
+       }
+});
+
+
+
+
+// Install script dataType
+jQuery.ajaxSetup({
+       accepts: {
+               script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
+       },
+       contents: {
+               script: /javascript|ecmascript/
+       },
+       converters: {
+               "text script": function( text ) {
+                       jQuery.globalEval( text );
+                       return text;
+               }
+       }
+});
+
+// Handle cache's special case and global
+jQuery.ajaxPrefilter( "script", function( s ) {
+       if ( s.cache === undefined ) {
+               s.cache = false;
+       }
+       if ( s.crossDomain ) {
+               s.type = "GET";
+               s.global = false;
+       }
+});
+
+// Bind script tag hack transport
+jQuery.ajaxTransport( "script", function(s) {
+
+       // This transport only deals with cross domain requests
+       if ( s.crossDomain ) {
+
+               var script,
+                       head = document.head || document.getElementsByTagName( "head" )[0] || document.documentElement;
+
+               return {
+
+                       send: function( _, callback ) {
+
+                               script = document.createElement( "script" );
+
+                               script.async = "async";
+
+                               if ( s.scriptCharset ) {
+                                       script.charset = s.scriptCharset;
+                               }
+
+                               script.src = s.url;
+
+                               // Attach handlers for all browsers
+                               script.onload = script.onreadystatechange = function( _, isAbort ) {
+
+                                       if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {
+
+                                               // Handle memory leak in IE
+                                               script.onload = script.onreadystatechange = null;
+
+                                               // Remove the script
+                                               if ( head && script.parentNode ) {
+                                                       head.removeChild( script );
+                                               }
+
+                                               // Dereference the script
+                                               script = undefined;
+
+                                               // Callback if not abort
+                                               if ( !isAbort ) {
+                                                       callback( 200, "success" );
+                                               }
+                                       }
+                               };
+                               // Use insertBefore instead of appendChild  to circumvent an IE6 bug.
+                               // This arises when a base node is used (#2709 and #4378).
+                               head.insertBefore( script, head.firstChild );
+                       },
+
+                       abort: function() {
+                               if ( script ) {
+                                       script.onload( 0, 1 );
+                               }
+                       }
+               };
+       }
+});
+
+
+
+
+var // #5280: Internet Explorer will keep connections alive if we don't abort on unload
+       xhrOnUnloadAbort = window.ActiveXObject ? function() {
+               // Abort all pending requests
+               for ( var key in xhrCallbacks ) {
+                       xhrCallbacks[ key ]( 0, 1 );
+               }
+       } : false,
+       xhrId = 0,
+       xhrCallbacks;
+
+// Functions to create xhrs
+function createStandardXHR() {
+       try {
+               return new window.XMLHttpRequest();
+       } catch( e ) {}
+}
+
+function createActiveXHR() {
+       try {
+               return new window.ActiveXObject( "Microsoft.XMLHTTP" );
+       } catch( e ) {}
+}
+
+// Create the request object
+// (This is still attached to ajaxSettings for backward compatibility)
+jQuery.ajaxSettings.xhr = window.ActiveXObject ?
+       /* Microsoft failed to properly
+        * implement the XMLHttpRequest in IE7 (can't request local files),
+        * so we use the ActiveXObject when it is available
+        * Additionally XMLHttpRequest can be disabled in IE7/IE8 so
+        * we need a fallback.
+        */
+       function() {
+               return !this.isLocal && createStandardXHR() || createActiveXHR();
+       } :
+       // For all other browsers, use the standard XMLHttpRequest object
+       createStandardXHR;
+
+// Determine support properties
+(function( xhr ) {
+       jQuery.extend( jQuery.support, {
+               ajax: !!xhr,
+               cors: !!xhr && ( "withCredentials" in xhr )
+       });
+})( jQuery.ajaxSettings.xhr() );
+
+// Create transport if the browser can provide an xhr
+if ( jQuery.support.ajax ) {
+
+       jQuery.ajaxTransport(function( s ) {
+               // Cross domain only allowed if supported through XMLHttpRequest
+               if ( !s.crossDomain || jQuery.support.cors ) {
+
+                       var callback;
+
+                       return {
+                               send: function( headers, complete ) {
+
+                                       // Get a new xhr
+                                       var xhr = s.xhr(),
+                                               handle,
+                                               i;
+
+                                       // Open the socket
+                                       // Passing null username, generates a login popup on Opera (#2865)
+                                       if ( s.username ) {
+                                               xhr.open( s.type, s.url, s.async, s.username, s.password );
+                                       } else {
+                                               xhr.open( s.type, s.url, s.async );
+                                       }
+
+                                       // Apply custom fields if provided
+                                       if ( s.xhrFields ) {
+                                               for ( i in s.xhrFields ) {
+                                                       xhr[ i ] = s.xhrFields[ i ];
+                                               }
+                                       }
+
+                                       // Override mime type if needed
+                                       if ( s.mimeType && xhr.overrideMimeType ) {
+                                               xhr.overrideMimeType( s.mimeType );
+                                       }
+
+                                       // X-Requested-With header
+                                       // For cross-domain requests, seeing as conditions for a preflight are
+                                       // akin to a jigsaw puzzle, we simply never set it to be sure.
+                                       // (it can always be set on a per-request basis or even using ajaxSetup)
+                                       // For same-domain requests, won't change header if already provided.
+                                       if ( !s.crossDomain && !headers["X-Requested-With"] ) {
+                                               headers[ "X-Requested-With" ] = "XMLHttpRequest";
+                                       }
+
+                                       // Need an extra try/catch for cross domain requests in Firefox 3
+                                       try {
+                                               for ( i in headers ) {
+                                                       xhr.setRequestHeader( i, headers[ i ] );
+                                               }
+                                       } catch( _ ) {}
+
+                                       // Do send the request
+                                       // This may raise an exception which is actually
+                                       // handled in jQuery.ajax (so no try/catch here)
+                                       xhr.send( ( s.hasContent && s.data ) || null );
+
+                                       // Listener
+                                       callback = function( _, isAbort ) {
+
+                                               var status,
+                                                       statusText,
+                                                       responseHeaders,
+                                                       responses,
+                                                       xml;
+
+                                               // Firefox throws exceptions when accessing properties
+                                               // of an xhr when a network error occured
+                                               // http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
+                                               try {
+
+                                                       // Was never called and is aborted or complete
+                                                       if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
+
+                                                               // Only called once
+                                                               callback = undefined;
+
+                                                               // Do not keep as active anymore
+                                                               if ( handle ) {
+                                                                       xhr.onreadystatechange = jQuery.noop;
+                                                                       if ( xhrOnUnloadAbort ) {
+                                                                               delete xhrCallbacks[ handle ];
+                                                                       }
+                                                               }
+
+                                                               // If it's an abort
+                                                               if ( isAbort ) {
+                                                                       // Abort it manually if needed
+                                                                       if ( xhr.readyState !== 4 ) {
+                                                                               xhr.abort();
+                                                                       }
+                                                               } else {
+                                                                       status = xhr.status;
+                                                                       responseHeaders = xhr.getAllResponseHeaders();
+                                                                       responses = {};
+                                                                       xml = xhr.responseXML;
+
+                                                                       // Construct response list
+                                                                       if ( xml && xml.documentElement /* #4958 */ ) {
+                                                                               responses.xml = xml;
+                                                                       }
+                                                                       responses.text = xhr.responseText;
+
+                                                                       // Firefox throws an exception when accessing
+                                                                       // statusText for faulty cross-domain requests
+                                                                       try {
+                                                                               statusText = xhr.statusText;
+                                                                       } catch( e ) {
+                                                                               // We normalize with Webkit giving an empty statusText
+                                                                               statusText = "";
+                                                                       }
+
+                                                                       // Filter status for non standard behaviors
+
+                                                                       // If the request is local and we have data: assume a success
+                                                                       // (success with no data won't get notified, that's the best we
+                                                                       // can do given current implementations)
+                                                                       if ( !status && s.isLocal && !s.crossDomain ) {
+                                                                               status = responses.text ? 200 : 404;
+                                                                       // IE - #1450: sometimes returns 1223 when it should be 204
+                                                                       } else if ( status === 1223 ) {
+                                                                               status = 204;
+                                                                       }
+                                                               }
+                                                       }
+                                               } catch( firefoxAccessException ) {
+                                                       if ( !isAbort ) {
+                                                               complete( -1, firefoxAccessException );
+                                                       }
+                                               }
+
+                                               // Call complete if needed
+                                               if ( responses ) {
+                                                       complete( status, statusText, responses, responseHeaders );
+                                               }
+                                       };
+
+                                       // if we're in sync mode or it's in cache
+                                       // and has been retrieved directly (IE6 & IE7)
+                                       // we need to manually fire the callback
+                                       if ( !s.async || xhr.readyState === 4 ) {
+                                               callback();
+                                       } else {
+                                               handle = ++xhrId;
+                                               if ( xhrOnUnloadAbort ) {
+                                                       // Create the active xhrs callbacks list if needed
+                                                       // and attach the unload handler
+                                                       if ( !xhrCallbacks ) {
+                                                               xhrCallbacks = {};
+                                                               jQuery( window ).unload( xhrOnUnloadAbort );
+                                                       }
+                                                       // Add to list of active xhrs callbacks
+                                                       xhrCallbacks[ handle ] = callback;
+                                               }
+                                               xhr.onreadystatechange = callback;
+                                       }
+                               },
+
+                               abort: function() {
+                                       if ( callback ) {
+                                               callback(0,1);
+                                       }
+                               }
+                       };
+               }
+       });
+}
+
+
+
+
+var elemdisplay = {},
+       iframe, iframeDoc,
+       rfxtypes = /^(?:toggle|show|hide)$/,
+       rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
+       timerId,
+       fxAttrs = [
+               // height animations
+               [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
+               // width animations
+               [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
+               // opacity animations
+               [ "opacity" ]
+       ],
+       fxNow;
+
+jQuery.fn.extend({
+       show: function( speed, easing, callback ) {
+               var elem, display;
+
+               if ( speed || speed === 0 ) {
+                       return this.animate( genFx("show", 3), speed, easing, callback );
+
+               } else {
+                       for ( var i = 0, j = this.length; i < j; i++ ) {
+                               elem = this[ i ];
+
+                               if ( elem.style ) {
+                                       display = elem.style.display;
+
+                                       // Reset the inline display of this element to learn if it is
+                                       // being hidden by cascaded rules or not
+                                       if ( !jQuery._data(elem, "olddisplay") && display === "none" ) {
+                                               display = elem.style.display = "";
+                                       }
+
+                                       // Set elements which have been overridden with display: none
+                                       // in a stylesheet to whatever the default browser style is
+                                       // for such an element
+                                       if ( display === "" && jQuery.css(elem, "display") === "none" ) {
+                                               jQuery._data( elem, "olddisplay", defaultDisplay(elem.nodeName) );
+                                       }
+                               }
+                       }
+
+                       // Set the display of most of the elements in a second loop
+                       // to avoid the constant reflow
+                       for ( i = 0; i < j; i++ ) {
+                               elem = this[ i ];
+
+                               if ( elem.style ) {
+                                       display = elem.style.display;
+
+                                       if ( display === "" || display === "none" ) {
+                                               elem.style.display = jQuery._data( elem, "olddisplay" ) || "";
+                                       }
+                               }
+                       }
+
+                       return this;
+               }
+       },
+
+       hide: function( speed, easing, callback ) {
+               if ( speed || speed === 0 ) {
+                       return this.animate( genFx("hide", 3), speed, easing, callback);
+
+               } else {
+                       var elem, display,
+                               i = 0,
+                               j = this.length;
+
+                       for ( ; i < j; i++ ) {
+                               elem = this[i];
+                               if ( elem.style ) {
+                                       display = jQuery.css( elem, "display" );
+
+                                       if ( display !== "none" && !jQuery._data( elem, "olddisplay" ) ) {
+                                               jQuery._data( elem, "olddisplay", display );
+                                       }
+                               }
+                       }
+
+                       // Set the display of the elements in a second loop
+                       // to avoid the constant reflow
+                       for ( i = 0; i < j; i++ ) {
+                               if ( this[i].style ) {
+                                       this[i].style.display = "none";
+                               }
+                       }
+
+                       return this;
+               }
+       },
+
+       // Save the old toggle function
+       _toggle: jQuery.fn.toggle,
+
+       toggle: function( fn, fn2, callback ) {
+               var bool = typeof fn === "boolean";
+
+               if ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) {
+                       this._toggle.apply( this, arguments );
+
+               } else if ( fn == null || bool ) {
+                       this.each(function() {
+                               var state = bool ? fn : jQuery(this).is(":hidden");
+                               jQuery(this)[ state ? "show" : "hide" ]();
+                       });
+
+               } else {
+                       this.animate(genFx("toggle", 3), fn, fn2, callback);
+               }
+
+               return this;
+       },
+
+       fadeTo: function( speed, to, easing, callback ) {
+               return this.filter(":hidden").css("opacity", 0).show().end()
+                                       .animate({opacity: to}, speed, easing, callback);
+       },
+
+       animate: function( prop, speed, easing, callback ) {
+               var optall = jQuery.speed( speed, easing, callback );
+
+               if ( jQuery.isEmptyObject( prop ) ) {
+                       return this.each( optall.complete, [ false ] );
+               }
+
+               // Do not change referenced properties as per-property easing will be lost
+               prop = jQuery.extend( {}, prop );
+
+               function doAnimation() {
+                       // XXX 'this' does not always have a nodeName when running the
+                       // test suite
+
+                       if ( optall.queue === false ) {
+                               jQuery._mark( this );
+                       }
+
+                       var opt = jQuery.extend( {}, optall ),
+                               isElement = this.nodeType === 1,
+                               hidden = isElement && jQuery(this).is(":hidden"),
+                               name, val, p, e,
+                               parts, start, end, unit,
+                               method;
+
+                       // will store per property easing and be used to determine when an animation is complete
+                       opt.animatedProperties = {};
+
+                       for ( p in prop ) {
+
+                               // property name normalization
+                               name = jQuery.camelCase( p );
+                               if ( p !== name ) {
+                                       prop[ name ] = prop[ p ];
+                                       delete prop[ p ];
+                               }
+
+                               val = prop[ name ];
+
+                               // easing resolution: per property > opt.specialEasing > opt.easing > 'swing' (default)
+                               if ( jQuery.isArray( val ) ) {
+                                       opt.animatedProperties[ name ] = val[ 1 ];
+                                       val = prop[ name ] = val[ 0 ];
+                               } else {
+                                       opt.animatedProperties[ name ] = opt.specialEasing && opt.specialEasing[ name ] || opt.easing || 'swing';
+                               }
+
+                               if ( val === "hide" && hidden || val === "show" && !hidden ) {
+                                       return opt.complete.call( this );
+                               }
+
+                               if ( isElement && ( name === "height" || name === "width" ) ) {
+                                       // Make sure that nothing sneaks out
+                                       // Record all 3 overflow attributes because IE does not
+                                       // change the overflow attribute when overflowX and
+                                       // overflowY are set to the same value
+                                       opt.overflow = [ this.style.overflow, this.style.overflowX, this.style.overflowY ];
+
+                                       // Set display property to inline-block for height/width
+                                       // animations on inline elements that are having width/height animated
+                                       if ( jQuery.css( this, "display" ) === "inline" &&
+                                                       jQuery.css( this, "float" ) === "none" ) {
+
+                                               // inline-level elements accept inline-block;
+                                               // block-level elements need to be inline with layout
+                                               if ( !jQuery.support.inlineBlockNeedsLayout || defaultDisplay( this.nodeName ) === "inline" ) {
+                                                       this.style.display = "inline-block";
+
+                                               } else {
+                                                       this.style.zoom = 1;
+                                               }
+                                       }
+                               }
+                       }
+
+                       if ( opt.overflow != null ) {
+                               this.style.overflow = "hidden";
+                       }
+
+                       for ( p in prop ) {
+                               e = new jQuery.fx( this, opt, p );
+                               val = prop[ p ];
+
+                               if ( rfxtypes.test( val ) ) {
+
+                                       // Tracks whether to show or hide based on private
+                                       // data attached to the element
+                                       method = jQuery._data( this, "toggle" + p ) || ( val === "toggle" ? hidden ? "show" : "hide" : 0 );
+                                       if ( method ) {
+                                               jQuery._data( this, "toggle" + p, method === "show" ? "hide" : "show" );
+                                               e[ method ]();
+                                       } else {
+                                               e[ val ]();
+                                       }
+
+                               } else {
+                                       parts = rfxnum.exec( val );
+                                       start = e.cur();
+
+                                       if ( parts ) {
+                                               end = parseFloat( parts[2] );
+                                               unit = parts[3] || ( jQuery.cssNumber[ p ] ? "" : "px" );
+
+                                               // We need to compute starting value
+                                               if ( unit !== "px" ) {
+                                                       jQuery.style( this, p, (end || 1) + unit);
+                                                       start = ( (end || 1) / e.cur() ) * start;
+                                                       jQuery.style( this, p, start + unit);
+                                               }
+
+                                               // If a +=/-= token was provided, we're doing a relative animation
+                                               if ( parts[1] ) {
+                                                       end = ( (parts[ 1 ] === "-=" ? -1 : 1) * end ) + start;
+                                               }
+
+                                               e.custom( start, end, unit );
+
+                                       } else {
+                                               e.custom( start, val, "" );
+                                       }
+                               }
+                       }
+
+                       // For JS strict compliance
+                       return true;
+               }
+
+               return optall.queue === false ?
+                       this.each( doAnimation ) :
+                       this.queue( optall.queue, doAnimation );
+       },
+
+       stop: function( type, clearQueue, gotoEnd ) {
+               if ( typeof type !== "string" ) {
+                       gotoEnd = clearQueue;
+                       clearQueue = type;
+                       type = undefined;
+               }
+               if ( clearQueue && type !== false ) {
+                       this.queue( type || "fx", [] );
+               }
+
+               return this.each(function() {
+                       var index,
+                               hadTimers = false,
+                               timers = jQuery.timers,
+                               data = jQuery._data( this );
+
+                       // clear marker counters if we know they won't be
+                       if ( !gotoEnd ) {
+                               jQuery._unmark( true, this );
+                       }
+
+                       function stopQueue( elem, data, index ) {
+                               var hooks = data[ index ];
+                               jQuery.removeData( elem, index, true );
+                               hooks.stop( gotoEnd );
+                       }
+
+                       if ( type == null ) {
+                               for ( index in data ) {
+                                       if ( data[ index ] && data[ index ].stop && index.indexOf(".run") === index.length - 4 ) {
+                                               stopQueue( this, data, index );
+                                       }
+                               }
+                       } else if ( data[ index = type + ".run" ] && data[ index ].stop ){
+                               stopQueue( this, data, index );
+                       }
+
+                       for ( index = timers.length; index--; ) {
+                               if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {
+                                       if ( gotoEnd ) {
+
+                                               // force the next step to be the last
+                                               timers[ index ]( true );
+                                       } else {
+                                               timers[ index ].saveState();
+                                       }
+                                       hadTimers = true;
+                                       timers.splice( index, 1 );
+                               }
+                       }
+
+                       // start the next in the queue if the last step wasn't forced
+                       // timers currently will call their complete callbacks, which will dequeue
+                       // but only if they were gotoEnd
+                       if ( !( gotoEnd && hadTimers ) ) {
+                               jQuery.dequeue( this, type );
+                       }
+               });
+       }
+
+});
+
+// Animations created synchronously will run synchronously
+function createFxNow() {
+       setTimeout( clearFxNow, 0 );
+       return ( fxNow = jQuery.now() );
+}
+
+function clearFxNow() {
+       fxNow = undefined;
+}
+
+// Generate parameters to create a standard animation
+function genFx( type, num ) {
+       var obj = {};
+
+       jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice( 0, num )), function() {
+               obj[ this ] = type;
+       });
+
+       return obj;
+}
+
+// Generate shortcuts for custom animations
+jQuery.each({
+       slideDown: genFx( "show", 1 ),
+       slideUp: genFx( "hide", 1 ),
+       slideToggle: genFx( "toggle", 1 ),
+       fadeIn: { opacity: "show" },
+       fadeOut: { opacity: "hide" },
+       fadeToggle: { opacity: "toggle" }
+}, function( name, props ) {
+       jQuery.fn[ name ] = function( speed, easing, callback ) {
+               return this.animate( props, speed, easing, callback );
+       };
+});
+
+jQuery.extend({
+       speed: function( speed, easing, fn ) {
+               var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
+                       complete: fn || !fn && easing ||
+                               jQuery.isFunction( speed ) && speed,
+                       duration: speed,
+                       easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
+               };
+
+               opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
+                       opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
+
+               // normalize opt.queue - true/undefined/null -> "fx"
+               if ( opt.queue == null || opt.queue === true ) {
+                       opt.queue = "fx";
+               }
+
+               // Queueing
+               opt.old = opt.complete;
+
+               opt.complete = function( noUnmark ) {
+                       if ( jQuery.isFunction( opt.old ) ) {
+                               opt.old.call( this );
+                       }
+
+                       if ( opt.queue ) {
+                               jQuery.dequeue( this, opt.queue );
+                       } else if ( noUnmark !== false ) {
+                               jQuery._unmark( this );
+                       }
+               };
+
+               return opt;
+       },
+
+       easing: {
+               linear: function( p, n, firstNum, diff ) {
+                       return firstNum + diff * p;
+               },
+               swing: function( p, n, firstNum, diff ) {
+                       return ( ( -Math.cos( p*Math.PI ) / 2 ) + 0.5 ) * diff + firstNum;
+               }
+       },
+
+       timers: [],
+
+       fx: function( elem, options, prop ) {
+               this.options = options;
+               this.elem = elem;
+               this.prop = prop;
+
+               options.orig = options.orig || {};
+       }
+
+});
+
+jQuery.fx.prototype = {
+       // Simple function for setting a style value
+       update: function() {
+               if ( this.options.step ) {
+                       this.options.step.call( this.elem, this.now, this );
+               }
+
+               ( jQuery.fx.step[ this.prop ] || jQuery.fx.step._default )( this );
+       },
+
+       // Get the current size
+       cur: function() {
+               if ( this.elem[ this.prop ] != null && (!this.elem.style || this.elem.style[ this.prop ] == null) ) {
+                       return this.elem[ this.prop ];
+               }
+
+               var parsed,
+                       r = jQuery.css( this.elem, this.prop );
+               // Empty strings, null, undefined and "auto" are converted to 0,
+               // complex values such as "rotate(1rad)" are returned as is,
+               // simple values such as "10px" are parsed to Float.
+               return isNaN( parsed = parseFloat( r ) ) ? !r || r === "auto" ? 0 : r : parsed;
+       },
+
+       // Start an animation from one number to another
+       custom: function( from, to, unit ) {
+               var self = this,
+                       fx = jQuery.fx;
+
+               this.startTime = fxNow || createFxNow();
+               this.end = to;
+               this.now = this.start = from;
+               this.pos = this.state = 0;
+               this.unit = unit || this.unit || ( jQuery.cssNumber[ this.prop ] ? "" : "px" );
+
+               function t( gotoEnd ) {
+                       return self.step( gotoEnd );
+               }
+
+               t.queue = this.options.queue;
+               t.elem = this.elem;
+               t.saveState = function() {
+                       if ( self.options.hide && jQuery._data( self.elem, "fxshow" + self.prop ) === undefined ) {
+                               jQuery._data( self.elem, "fxshow" + self.prop, self.start );
+                       }
+               };
+
+               if ( t() && jQuery.timers.push(t) && !timerId ) {
+                       timerId = setInterval( fx.tick, fx.interval );
+               }
+       },
+
+       // Simple 'show' function
+       show: function() {
+               var dataShow = jQuery._data( this.elem, "fxshow" + this.prop );
+
+               // Remember where we started, so that we can go back to it later
+               this.options.orig[ this.prop ] = dataShow || jQuery.style( this.elem, this.prop );
+               this.options.show = true;
+
+               // Begin the animation
+               // Make sure that we start at a small width/height to avoid any flash of content
+               if ( dataShow !== undefined ) {
+                       // This show is picking up where a previous hide or show left off
+                       this.custom( this.cur(), dataShow );
+               } else {
+                       this.custom( this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur() );
+               }
+
+               // Start by showing the element
+               jQuery( this.elem ).show();
+       },
+
+       // Simple 'hide' function
+       hide: function() {
+               // Remember where we started, so that we can go back to it later
+               this.options.orig[ this.prop ] = jQuery._data( this.elem, "fxshow" + this.prop ) || jQuery.style( this.elem, this.prop );
+               this.options.hide = true;
+
+               // Begin the animation
+               this.custom( this.cur(), 0 );
+       },
+
+       // Each step of an animation
+       step: function( gotoEnd ) {
+               var p, n, complete,
+                       t = fxNow || createFxNow(),
+                       done = true,
+                       elem = this.elem,
+                       options = this.options;
+
+               if ( gotoEnd || t >= options.duration + this.startTime ) {
+                       this.now = this.end;
+                       this.pos = this.state = 1;
+                       this.update();
+
+                       options.animatedProperties[ this.prop ] = true;
+
+                       for ( p in options.animatedProperties ) {
+                               if ( options.animatedProperties[ p ] !== true ) {
+                                       done = false;
+                               }
+                       }
+
+                       if ( done ) {
+                               // Reset the overflow
+                               if ( options.overflow != null && !jQuery.support.shrinkWrapBlocks ) {
+
+                                       jQuery.each( [ "", "X", "Y" ], function( index, value ) {
+                                               elem.style[ "overflow" + value ] = options.overflow[ index ];
+                                       });
+                               }
+
+                               // Hide the element if the "hide" operation was done
+                               if ( options.hide ) {
+                                       jQuery( elem ).hide();
+                               }
+
+                               // Reset the properties, if the item has been hidden or shown
+                               if ( options.hide || options.show ) {
+                                       for ( p in options.animatedProperties ) {
+                                               jQuery.style( elem, p, options.orig[ p ] );
+                                               jQuery.removeData( elem, "fxshow" + p, true );
+                                               // Toggle data is no longer needed
+                                               jQuery.removeData( elem, "toggle" + p, true );
+                                       }
+                               }
+
+                               // Execute the complete function
+                               // in the event that the complete function throws an exception
+                               // we must ensure it won't be called twice. #5684
+
+                               complete = options.complete;
+                               if ( complete ) {
+
+                                       options.complete = false;
+                                       complete.call( elem );
+                               }
+                       }
+
+                       return false;
+
+               } else {
+                       // classical easing cannot be used with an Infinity duration
+                       if ( options.duration == Infinity ) {
+                               this.now = t;
+                       } else {
+                               n = t - this.startTime;
+                               this.state = n / options.duration;
+
+                               // Perform the easing function, defaults to swing
+                               this.pos = jQuery.easing[ options.animatedProperties[this.prop] ]( this.state, n, 0, 1, options.duration );
+                               this.now = this.start + ( (this.end - this.start) * this.pos );
+                       }
+                       // Perform the next step of the animation
+                       this.update();
+               }
+
+               return true;
+       }
+};
+
+jQuery.extend( jQuery.fx, {
+       tick: function() {
+               var timer,
+                       timers = jQuery.timers,
+                       i = 0;
+
+               for ( ; i < timers.length; i++ ) {
+                       timer = timers[ i ];
+                       // Checks the timer has not already been removed
+                       if ( !timer() && timers[ i ] === timer ) {
+                               timers.splice( i--, 1 );
+                       }
+               }
+
+               if ( !timers.length ) {
+                       jQuery.fx.stop();
+               }
+       },
+
+       interval: 13,
+
+       stop: function() {
+               clearInterval( timerId );
+               timerId = null;
+       },
+
+       speeds: {
+               slow: 600,
+               fast: 200,
+               // Default speed
+               _default: 400
+       },
+
+       step: {
+               opacity: function( fx ) {
+                       jQuery.style( fx.elem, "opacity", fx.now );
+               },
+
+               _default: function( fx ) {
+                       if ( fx.elem.style && fx.elem.style[ fx.prop ] != null ) {
+                               fx.elem.style[ fx.prop ] = fx.now + fx.unit;
+                       } else {
+                               fx.elem[ fx.prop ] = fx.now;
+                       }
+               }
+       }
+});
+
+// Adds width/height step functions
+// Do not set anything below 0
+jQuery.each([ "width", "height" ], function( i, prop ) {
+       jQuery.fx.step[ prop ] = function( fx ) {
+               jQuery.style( fx.elem, prop, Math.max(0, fx.now) + fx.unit );
+       };
+});
+
+if ( jQuery.expr && jQuery.expr.filters ) {
+       jQuery.expr.filters.animated = function( elem ) {
+               return jQuery.grep(jQuery.timers, function( fn ) {
+                       return elem === fn.elem;
+               }).length;
+       };
+}
+
+// Try to restore the default display value of an element
+function defaultDisplay( nodeName ) {
+
+       if ( !elemdisplay[ nodeName ] ) {
+
+               var body = document.body,
+                       elem = jQuery( "<" + nodeName + ">" ).appendTo( body ),
+                       display = elem.css( "display" );
+               elem.remove();
+
+               // If the simple way fails,
+               // get element's real default display by attaching it to a temp iframe
+               if ( display === "none" || display === "" ) {
+                       // No iframe to use yet, so create it
+                       if ( !iframe ) {
+                               iframe = document.createElement( "iframe" );
+                               iframe.frameBorder = iframe.width = iframe.height = 0;
+                       }
+
+                       body.appendChild( iframe );
+
+                       // Create a cacheable copy of the iframe document on first call.
+                       // IE and Opera will allow us to reuse the iframeDoc without re-writing the fake HTML
+                       // document to it; WebKit & Firefox won't allow reusing the iframe document.
+                       if ( !iframeDoc || !iframe.createElement ) {
+                               iframeDoc = ( iframe.contentWindow || iframe.contentDocument ).document;
+                               iframeDoc.write( ( document.compatMode === "CSS1Compat" ? "<!doctype html>" : "" ) + "<html><body>" );
+                               iframeDoc.close();
+                       }
+
+                       elem = iframeDoc.createElement( nodeName );
+
+                       iframeDoc.body.appendChild( elem );
+
+                       display = jQuery.css( elem, "display" );
+                       body.removeChild( iframe );
+               }
+
+               // Store the correct default display
+               elemdisplay[ nodeName ] = display;
+       }
+
+       return elemdisplay[ nodeName ];
+}
+
+
+
+
+var rtable = /^t(?:able|d|h)$/i,
+       rroot = /^(?:body|html)$/i;
+
+if ( "getBoundingClientRect" in document.documentElement ) {
+       jQuery.fn.offset = function( options ) {
+               var elem = this[0], box;
+
+               if ( options ) {
+                       return this.each(function( i ) {
+                               jQuery.offset.setOffset( this, options, i );
+                       });
+               }
+
+               if ( !elem || !elem.ownerDocument ) {
+                       return null;
+               }
+
+               if ( elem === elem.ownerDocument.body ) {
+                       return jQuery.offset.bodyOffset( elem );
+               }
+
+               try {
+                       box = elem.getBoundingClientRect();
+               } catch(e) {}
+
+               var doc = elem.ownerDocument,
+                       docElem = doc.documentElement;
+
+               // Make sure we're not dealing with a disconnected DOM node
+               if ( !box || !jQuery.contains( docElem, elem ) ) {
+                       return box ? { top: box.top, left: box.left } : { top: 0, left: 0 };
+               }
+
+               var body = doc.body,
+                       win = getWindow(doc),
+                       clientTop  = docElem.clientTop  || body.clientTop  || 0,
+                       clientLeft = docElem.clientLeft || body.clientLeft || 0,
+                       scrollTop  = win.pageYOffset || jQuery.support.boxModel && docElem.scrollTop  || body.scrollTop,
+                       scrollLeft = win.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft,
+                       top  = box.top  + scrollTop  - clientTop,
+                       left = box.left + scrollLeft - clientLeft;
+
+               return { top: top, left: left };
+       };
+
+} else {
+       jQuery.fn.offset = function( options ) {
+               var elem = this[0];
+
+               if ( options ) {
+                       return this.each(function( i ) {
+                               jQuery.offset.setOffset( this, options, i );
+                       });
+               }
+
+               if ( !elem || !elem.ownerDocument ) {
+                       return null;
+               }
+
+               if ( elem === elem.ownerDocument.body ) {
+                       return jQuery.offset.bodyOffset( elem );
+               }
+
+               var computedStyle,
+                       offsetParent = elem.offsetParent,
+                       prevOffsetParent = elem,
+                       doc = elem.ownerDocument,
+                       docElem = doc.documentElement,
+                       body = doc.body,
+                       defaultView = doc.defaultView,
+                       prevComputedStyle = defaultView ? defaultView.getComputedStyle( elem, null ) : elem.currentStyle,
+                       top = elem.offsetTop,
+                       left = elem.offsetLeft;
+
+               while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
+                       if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {
+                               break;
+                       }
+
+                       computedStyle = defaultView ? defaultView.getComputedStyle(elem, null) : elem.currentStyle;
+                       top  -= elem.scrollTop;
+                       left -= elem.scrollLeft;
+
+                       if ( elem === offsetParent ) {
+                               top  += elem.offsetTop;
+                               left += elem.offsetLeft;
+
+                               if ( jQuery.support.doesNotAddBorder && !(jQuery.support.doesAddBorderForTableAndCells && rtable.test(elem.nodeName)) ) {
+                                       top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
+                                       left += parseFloat( computedStyle.borderLeftWidth ) || 0;
+                               }
+
+                               prevOffsetParent = offsetParent;
+                               offsetParent = elem.offsetParent;
+                       }
+
+                       if ( jQuery.support.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" ) {
+                               top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
+                               left += parseFloat( computedStyle.borderLeftWidth ) || 0;
+                       }
+
+                       prevComputedStyle = computedStyle;
+               }
+
+               if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" ) {
+                       top  += body.offsetTop;
+                       left += body.offsetLeft;
+               }
+
+               if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {
+                       top  += Math.max( docElem.scrollTop, body.scrollTop );
+                       left += Math.max( docElem.scrollLeft, body.scrollLeft );
+               }
+
+               return { top: top, left: left };
+       };
+}
+
+jQuery.offset = {
+
+       bodyOffset: function( body ) {
+               var top = body.offsetTop,
+                       left = body.offsetLeft;
+
+               if ( jQuery.support.doesNotIncludeMarginInBodyOffset ) {
+                       top  += parseFloat( jQuery.css(body, "marginTop") ) || 0;
+                       left += parseFloat( jQuery.css(body, "marginLeft") ) || 0;
+               }
+
+               return { top: top, left: left };
+       },
+
+       setOffset: function( elem, options, i ) {
+               var position = jQuery.css( elem, "position" );
+
+               // set position first, in-case top/left are set even on static elem
+               if ( position === "static" ) {
+                       elem.style.position = "relative";
+               }
+
+               var curElem = jQuery( elem ),
+                       curOffset = curElem.offset(),
+                       curCSSTop = jQuery.css( elem, "top" ),
+                       curCSSLeft = jQuery.css( elem, "left" ),
+                       calculatePosition = ( position === "absolute" || position === "fixed" ) && jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1,
+                       props = {}, curPosition = {}, curTop, curLeft;
+
+               // need to be able to calculate position if either top or left is auto and position is either absolute or fixed
+               if ( calculatePosition ) {
+                       curPosition = curElem.position();
+                       curTop = curPosition.top;
+                       curLeft = curPosition.left;
+               } else {
+                       curTop = parseFloat( curCSSTop ) || 0;
+                       curLeft = parseFloat( curCSSLeft ) || 0;
+               }
+
+               if ( jQuery.isFunction( options ) ) {
+                       options = options.call( elem, i, curOffset );
+               }
+
+               if ( options.top != null ) {
+                       props.top = ( options.top - curOffset.top ) + curTop;
+               }
+               if ( options.left != null ) {
+                       props.left = ( options.left - curOffset.left ) + curLeft;
+               }
+
+               if ( "using" in options ) {
+                       options.using.call( elem, props );
+               } else {
+                       curElem.css( props );
+               }
+       }
+};
+
+
+jQuery.fn.extend({
+
+       position: function() {
+               if ( !this[0] ) {
+                       return null;
+               }
+
+               var elem = this[0],
+
+               // Get *real* offsetParent
+               offsetParent = this.offsetParent(),
+
+               // Get correct offsets
+               offset       = this.offset(),
+               parentOffset = rroot.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset();
+
+               // Subtract element margins
+               // note: when an element has margin: auto the offsetLeft and marginLeft
+               // are the same in Safari causing offset.left to incorrectly be 0
+               offset.top  -= parseFloat( jQuery.css(elem, "marginTop") ) || 0;
+               offset.left -= parseFloat( jQuery.css(elem, "marginLeft") ) || 0;
+
+               // Add offsetParent borders
+               parentOffset.top  += parseFloat( jQuery.css(offsetParent[0], "borderTopWidth") ) || 0;
+               parentOffset.left += parseFloat( jQuery.css(offsetParent[0], "borderLeftWidth") ) || 0;
+
+               // Subtract the two offsets
+               return {
+                       top:  offset.top  - parentOffset.top,
+                       left: offset.left - parentOffset.left
+               };
+       },
+
+       offsetParent: function() {
+               return this.map(function() {
+                       var offsetParent = this.offsetParent || document.body;
+                       while ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) {
+                               offsetParent = offsetParent.offsetParent;
+                       }
+                       return offsetParent;
+               });
+       }
+});
+
+
+// Create scrollLeft and scrollTop methods
+jQuery.each( ["Left", "Top"], function( i, name ) {
+       var method = "scroll" + name;
+
+       jQuery.fn[ method ] = function( val ) {
+               var elem, win;
+
+               if ( val === undefined ) {
+                       elem = this[ 0 ];
+
+                       if ( !elem ) {
+                               return null;
+                       }
+
+                       win = getWindow( elem );
+
+                       // Return the scroll offset
+                       return win ? ("pageXOffset" in win) ? win[ i ? "pageYOffset" : "pageXOffset" ] :
+                               jQuery.support.boxModel && win.document.documentElement[ method ] ||
+                                       win.document.body[ method ] :
+                               elem[ method ];
+               }
+
+               // Set the scroll offset
+               return this.each(function() {
+                       win = getWindow( this );
+
+                       if ( win ) {
+                               win.scrollTo(
+                                       !i ? val : jQuery( win ).scrollLeft(),
+                                        i ? val : jQuery( win ).scrollTop()
+                               );
+
+                       } else {
+                               this[ method ] = val;
+                       }
+               });
+       };
+});
+
+function getWindow( elem ) {
+       return jQuery.isWindow( elem ) ?
+               elem :
+               elem.nodeType === 9 ?
+                       elem.defaultView || elem.parentWindow :
+                       false;
+}
+
+
+
+
+// Create width, height, innerHeight, innerWidth, outerHeight and outerWidth methods
+jQuery.each([ "Height", "Width" ], function( i, name ) {
+
+       var type = name.toLowerCase();
+
+       // innerHeight and innerWidth
+       jQuery.fn[ "inner" + name ] = function() {
+               var elem = this[0];
+               return elem ?
+                       elem.style ?
+                       parseFloat( jQuery.css( elem, type, "padding" ) ) :
+                       this[ type ]() :
+                       null;
+       };
+
+       // outerHeight and outerWidth
+       jQuery.fn[ "outer" + name ] = function( margin ) {
+               var elem = this[0];
+               return elem ?
+                       elem.style ?
+                       parseFloat( jQuery.css( elem, type, margin ? "margin" : "border" ) ) :
+                       this[ type ]() :
+                       null;
+       };
+
+       jQuery.fn[ type ] = function( size ) {
+               // Get window width or height
+               var elem = this[0];
+               if ( !elem ) {
+                       return size == null ? null : this;
+               }
+
+               if ( jQuery.isFunction( size ) ) {
+                       return this.each(function( i ) {
+                               var self = jQuery( this );
+                               self[ type ]( size.call( this, i, self[ type ]() ) );
+                       });
+               }
+
+               if ( jQuery.isWindow( elem ) ) {
+                       // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
+                       // 3rd condition allows Nokia support, as it supports the docElem prop but not CSS1Compat
+                       var docElemProp = elem.document.documentElement[ "client" + name ],
+                               body = elem.document.body;
+                       return elem.document.compatMode === "CSS1Compat" && docElemProp ||
+                               body && body[ "client" + name ] || docElemProp;
+
+               // Get document width or height
+               } else if ( elem.nodeType === 9 ) {
+                       // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
+                       return Math.max(
+                               elem.documentElement["client" + name],
+                               elem.body["scroll" + name], elem.documentElement["scroll" + name],
+                               elem.body["offset" + name], elem.documentElement["offset" + name]
+                       );
+
+               // Get or set width or height on the element
+               } else if ( size === undefined ) {
+                       var orig = jQuery.css( elem, type ),
+                               ret = parseFloat( orig );
+
+                       return jQuery.isNumeric( ret ) ? ret : orig;
+
+               // Set the width or height on the element (default to pixels if value is unitless)
+               } else {
+                       return this.css( type, typeof size === "string" ? size : size + "px" );
+               }
+       };
+
+});
+
+
+
+
+// Expose jQuery to the global object
+window.jQuery = window.$ = jQuery;
+
+// Expose jQuery as an AMD module, but only for AMD loaders that
+// understand the issues with loading multiple versions of jQuery
+// in a page that all might call define(). The loader will indicate
+// they have special allowances for multiple jQuery versions by
+// specifying define.amd.jQuery = true. Register as a named module,
+// since jQuery can be concatenated with other files that may use define,
+// but not use a proper concatenation script that understands anonymous
+// AMD modules. A named AMD is safest and most robust way to register.
+// Lowercase jquery is used because AMD module names are derived from
+// file names, and jQuery is normally delivered in a lowercase file name.
+// Do this after creating the global so that if an AMD module wants to call
+// noConflict to hide this version of jQuery, it will work.
+if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
+       define( "jquery", [], function () { return jQuery; } );
+}
+
+
+
+})( window );
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.buttonMarkup.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.buttonMarkup.js
new file mode 100644 (file)
index 0000000..c5f32b4
--- /dev/null
@@ -0,0 +1,252 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Applies button styling to links
+//>>label: Buttons: Link-based
+//>>group: Forms
+//>>css: ../css/themes/default/jquery.mobile.theme.css, ../css/structure/jquery.mobile.button.css
+
+define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.vmouse" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+( function( $, undefined ) {
+
+$.fn.buttonMarkup = function( options ) {
+       var $workingSet = this;
+
+       // Enforce options to be of type string
+       options = ( options && ( $.type( options ) == "object" ) )? options : {};
+       for ( var i = 0; i < $workingSet.length; i++ ) {
+               var el = $workingSet.eq( i ),
+                       e = el[ 0 ],
+                       o = $.extend( {}, $.fn.buttonMarkup.defaults, {
+                               icon:       options.icon       !== undefined ? options.icon       : el.jqmData( "icon" ),
+                               iconpos:    options.iconpos    !== undefined ? options.iconpos    : el.jqmData( "iconpos" ),
+                               theme:      options.theme      !== undefined ? options.theme      : el.jqmData( "theme" ) || $.mobile.getInheritedTheme( el, "c" ),
+                               inline:     options.inline     !== undefined ? options.inline     : el.jqmData( "inline" ),
+                               shadow:     options.shadow     !== undefined ? options.shadow     : el.jqmData( "shadow" ),
+                               corners:    options.corners    !== undefined ? options.corners    : el.jqmData( "corners" ),
+                               iconshadow: options.iconshadow !== undefined ? options.iconshadow : el.jqmData( "iconshadow" ),
+                               mini:       options.mini       !== undefined ? options.mini       : el.jqmData( "mini" )
+                       }, options ),
+
+                       // Classes Defined
+                       innerClass = "ui-btn-inner",
+                       textClass = "ui-btn-text",
+                       buttonClass, iconClass,
+                       // Button inner markup
+                       buttonInner,
+                       buttonText,
+                       buttonIcon,
+                       buttonElements;
+
+               $.each(o, function(key, value) {
+                       e.setAttribute( "data-" + $.mobile.ns + key, value );
+                       el.jqmData(key, value);
+               });
+
+               // Check if this element is already enhanced
+               buttonElements = $.data(((e.tagName === "INPUT" || e.tagName === "BUTTON") ? e.parentNode : e), "buttonElements");
+
+               if (buttonElements) {
+                       e = buttonElements.outer;
+                       el = $(e);
+                       buttonInner = buttonElements.inner;
+                       buttonText = buttonElements.text;
+                       // We will recreate this icon below
+                       $(buttonElements.icon).remove();
+                       buttonElements.icon = null;
+               }
+               else {
+                       buttonInner = document.createElement( o.wrapperEls );
+                       buttonText = document.createElement( o.wrapperEls );
+               }
+               buttonIcon = o.icon ? document.createElement( "span" ) : null;
+
+               if ( attachEvents && !buttonElements) {
+                       attachEvents();
+               }
+               
+               // if not, try to find closest theme container  
+               if ( !o.theme ) {
+                       o.theme = $.mobile.getInheritedTheme( el, "c" );        
+               }               
+
+               buttonClass = "ui-btn ui-btn-up-" + o.theme;
+               buttonClass += o.inline ? " ui-btn-inline" : "";
+               buttonClass += o.shadow ? " ui-shadow" : "";
+               buttonClass += o.corners ? " ui-btn-corner-all" : "";
+
+               if ( o.mini !== undefined ) {
+                       // Used to control styling in headers/footers, where buttons default to `mini` style.
+                       buttonClass += o.mini ? " ui-mini" : " ui-fullsize";
+               }
+               
+               if ( o.inline !== undefined ) {                 
+                       // Used to control styling in headers/footers, where buttons default to `mini` style.
+                       buttonClass += o.inline === false ? " ui-btn-block" : " ui-btn-inline";
+               }
+               
+               
+               if ( o.icon ) {
+                       o.icon = "ui-icon-" + o.icon;
+                       o.iconpos = o.iconpos || "left";
+
+                       iconClass = "ui-icon " + o.icon;
+
+                       if ( o.iconshadow ) {
+                               iconClass += " ui-icon-shadow";
+                       }
+               }
+
+               if ( o.iconpos ) {
+                       buttonClass += " ui-btn-icon-" + o.iconpos;
+
+                       if ( o.iconpos == "notext" && !el.attr( "title" ) ) {
+                               el.attr( "title", el.getEncodedText() );
+                       }
+               }
+    
+               innerClass += o.corners ? " ui-btn-corner-all" : "";
+
+               if ( o.iconpos && o.iconpos === "notext" && !el.attr( "title" ) ) {
+                       el.attr( "title", el.getEncodedText() );
+               }
+
+               if ( buttonElements ) {
+                       el.removeClass( buttonElements.bcls || "" );
+               }
+               el.removeClass( "ui-link" ).addClass( buttonClass );
+
+               buttonInner.className = innerClass;
+
+               buttonText.className = textClass;
+               if ( !buttonElements ) {
+                       buttonInner.appendChild( buttonText );
+               }
+               if ( buttonIcon ) {
+                       buttonIcon.className = iconClass;
+                       if ( !(buttonElements && buttonElements.icon) ) {
+                               buttonIcon.appendChild( document.createTextNode("\u00a0") );
+                               buttonInner.appendChild( buttonIcon );
+                       }
+               }
+
+               while ( e.firstChild && !buttonElements) {
+                       buttonText.appendChild( e.firstChild );
+               }
+
+               if ( !buttonElements ) {
+                       e.appendChild( buttonInner );
+               }
+
+               // Assign a structure containing the elements of this button to the elements of this button. This
+               // will allow us to recognize this as an already-enhanced button in future calls to buttonMarkup().
+               buttonElements = {
+                       bcls  : buttonClass,
+                       outer : e,
+                       inner : buttonInner,
+                       text  : buttonText,
+                       icon  : buttonIcon
+               };
+
+               $.data(e,           'buttonElements', buttonElements);
+               $.data(buttonInner, 'buttonElements', buttonElements);
+               $.data(buttonText,  'buttonElements', buttonElements);
+               if (buttonIcon) {
+                       $.data(buttonIcon, 'buttonElements', buttonElements);
+               }
+       }
+
+       return this;
+};
+
+$.fn.buttonMarkup.defaults = {
+       corners: true,
+       shadow: true,
+       iconshadow: true,
+       wrapperEls: "span"
+};
+
+function closestEnabledButton( element ) {
+    var cname;
+
+    while ( element ) {
+               // Note that we check for typeof className below because the element we
+               // handed could be in an SVG DOM where className on SVG elements is defined to
+               // be of a different type (SVGAnimatedString). We only operate on HTML DOM
+               // elements, so we look for plain "string".
+        cname = ( typeof element.className === 'string' ) && (element.className + ' ');
+        if ( cname && cname.indexOf("ui-btn ") > -1 && cname.indexOf("ui-disabled ") < 0 ) {
+            break;
+        }
+
+        element = element.parentNode;
+    }
+
+    return element;
+}
+
+var attachEvents = function() {
+       var hoverDelay = $.mobile.buttonMarkup.hoverDelay, hov, foc;
+
+       $( document ).bind( {
+               "vmousedown vmousecancel vmouseup vmouseover vmouseout focus blur scrollstart": function( event ) {
+                       var theme,
+                               $btn = $( closestEnabledButton( event.target ) ),
+                               evt = event.type;
+               
+                       if ( $btn.length ) {
+                               theme = $btn.attr( "data-" + $.mobile.ns + "theme" );
+               
+                               if ( evt === "vmousedown" ) {
+                                       if ( $.support.touch ) {
+                                               hov = setTimeout(function() {
+                                                       $btn.removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-down-" + theme );
+                                               }, hoverDelay );
+                                       } else {
+                                               $btn.removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-down-" + theme );
+                                       }
+                               } else if ( evt === "vmousecancel" || evt === "vmouseup" ) {
+                                       $btn.removeClass( "ui-btn-down-" + theme ).addClass( "ui-btn-up-" + theme );
+                               } else if ( evt === "vmouseover" || evt === "focus" ) {
+                                       if ( $.support.touch ) {
+                                               foc = setTimeout(function() {
+                                                       $btn.removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-hover-" + theme );
+                                               }, hoverDelay );
+                                       } else {
+                                               $btn.removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-hover-" + theme );
+                                       }
+                               } else if ( evt === "vmouseout" || evt === "blur" || evt === "scrollstart" ) {
+                                       $btn.removeClass( "ui-btn-hover-" + theme  + " ui-btn-down-" + theme ).addClass( "ui-btn-up-" + theme );
+                                       if ( hov ) {
+                                               clearTimeout( hov );
+                                       }
+                                       if ( foc ) {
+                                               clearTimeout( foc );
+                                       }
+                               }
+                       }
+               },
+               "focusin focus": function( event ){
+                       $( closestEnabledButton( event.target ) ).addClass( $.mobile.focusClass );
+               },
+               "focusout blur": function( event ){
+                       $( closestEnabledButton( event.target ) ).removeClass( $.mobile.focusClass );
+               }
+       });
+
+       attachEvents = null;
+};
+
+//links in bars, or those with  data-role become buttons
+//auto self-init widgets
+$( document ).bind( "pagecreate create", function( e ){
+
+       $( ":jqmData(role='button'), .ui-bar > a, .ui-header > a, .ui-footer > a, .ui-bar > :jqmData(role='controlgroup') > a", e.target )
+               .not( ".ui-btn, :jqmData(role='none'), :jqmData(role='nojs')" )
+               .buttonMarkup();
+});
+
+})( jQuery );
+
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.collapsible.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.collapsible.js
new file mode 100644 (file)
index 0000000..d1e1eb9
--- /dev/null
@@ -0,0 +1,135 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Creates collapsible content blocks.
+//>>label: Collapsible
+//>>group: Widgets
+//>>css: ../css/themes/default/jquery.mobile.theme.css,../css/structure/jquery.mobile.collapsible.css
+
+define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.buttonMarkup" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, undefined ) {
+
+$.widget( "mobile.collapsible", $.mobile.widget, {
+       options: {
+               expandCueText: " click to expand contents",
+               collapseCueText: " click to collapse contents",
+               collapsed: true,
+               heading: "h1,h2,h3,h4,h5,h6,legend",
+               theme: null,
+               contentTheme: null,
+               iconTheme: "d",
+               mini: false,
+               initSelector: ":jqmData(role='collapsible')"
+       },
+       _create: function() {
+
+               var $el = this.element,
+                       o = this.options,
+                       collapsible = $el.addClass( "ui-collapsible" ),
+                       collapsibleHeading = $el.children( o.heading ).first(),
+                       collapsibleContent = collapsible.wrapInner( "<div class='ui-collapsible-content'></div>" ).find( ".ui-collapsible-content" ),
+                       collapsibleSet = $el.closest( ":jqmData(role='collapsible-set')" ).addClass( "ui-collapsible-set" );
+
+               // Replace collapsibleHeading if it's a legend
+               if ( collapsibleHeading.is( "legend" ) ) {
+                       collapsibleHeading = $( "<div role='heading'>"+ collapsibleHeading.html() +"</div>" ).insertBefore( collapsibleHeading );
+                       collapsibleHeading.next().remove();
+               }
+
+               // If we are in a collapsible set
+               if ( collapsibleSet.length ) {
+                       // Inherit the theme from collapsible-set
+                       if ( !o.theme ) {
+                               o.theme = collapsibleSet.jqmData("theme") || $.mobile.getInheritedTheme( collapsibleSet, "c" );
+                       }
+                       // Inherit the content-theme from collapsible-set
+                       if ( !o.contentTheme ) {
+                               o.contentTheme = collapsibleSet.jqmData( "content-theme" );
+                       }
+
+                       // Gets the preference icon position in the set
+                       if ( !o.iconPos ) {
+                               o.iconPos = collapsibleSet.jqmData( "iconpos" );
+                       }
+
+                       if( !o.mini ) {
+                               o.mini = collapsibleSet.jqmData( "mini" );
+                       }
+               }
+               collapsibleContent.addClass( ( o.contentTheme ) ? ( "ui-body-" + o.contentTheme ) : "");
+
+               collapsibleHeading
+                       //drop heading in before content
+                       .insertBefore( collapsibleContent )
+                       //modify markup & attributes
+                       .addClass( "ui-collapsible-heading" )
+                       .append( "<span class='ui-collapsible-heading-status'></span>" )
+                       .wrapInner( "<a href='#' class='ui-collapsible-heading-toggle'></a>" )
+                       .find( "a" )
+                               .first()
+                               .buttonMarkup({
+                                       shadow: false,
+                                       corners: false,
+                                       iconpos: $el.jqmData( "iconpos" ) || o.iconPos || "left",
+                                       icon: "plus",
+                                       mini: o.mini,
+                                       theme: o.theme
+                               })
+                       .add( ".ui-btn-inner", $el )
+                               .addClass( "ui-corner-top ui-corner-bottom" );
+
+               //events
+               collapsible
+                       .bind( "expand collapse", function( event ) {
+                               if ( !event.isDefaultPrevented() ) {
+
+                                       event.preventDefault();
+
+                                       var $this = $( this ),
+                                               isCollapse = ( event.type === "collapse" ),
+                                           contentTheme = o.contentTheme;
+
+                                       collapsibleHeading
+                                               .toggleClass( "ui-collapsible-heading-collapsed", isCollapse)
+                                               .find( ".ui-collapsible-heading-status" )
+                                                       .text( isCollapse ? o.expandCueText : o.collapseCueText )
+                                               .end()
+                                               .find( ".ui-icon" )
+                                                       .toggleClass( "ui-icon-minus", !isCollapse )
+                                                       .toggleClass( "ui-icon-plus", isCollapse );
+
+                                       $this.toggleClass( "ui-collapsible-collapsed", isCollapse );
+                                       collapsibleContent.toggleClass( "ui-collapsible-content-collapsed", isCollapse ).attr( "aria-hidden", isCollapse );
+
+                                       if ( contentTheme && ( !collapsibleSet.length || collapsible.jqmData( "collapsible-last" ) ) ) {
+                                               collapsibleHeading
+                                                       .find( "a" ).first().add( collapsibleHeading.find( ".ui-btn-inner" ) )
+                                                       .toggleClass( "ui-corner-bottom", isCollapse );
+                                               collapsibleContent.toggleClass( "ui-corner-bottom", !isCollapse );
+                                       }
+                                       collapsibleContent.trigger( "updatelayout" );
+                               }
+                       })
+                       .trigger( o.collapsed ? "collapse" : "expand" );
+
+               collapsibleHeading
+                       .bind( "click", function( event ) {
+
+                               var type = collapsibleHeading.is( ".ui-collapsible-heading-collapsed" ) ?
+                                                                               "expand" : "collapse";
+
+                               collapsible.trigger( type );
+
+                               event.preventDefault();
+                       });
+       }
+});
+
+//auto self-init widgets
+$( document ).bind( "pagecreate create", function( e ){
+       $.mobile.collapsible.prototype.enhanceWithin( e.target );
+});
+
+})( jQuery );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.collapsibleSet.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.collapsibleSet.js
new file mode 100644 (file)
index 0000000..b88fca0
--- /dev/null
@@ -0,0 +1,102 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: For creating grouped collapsible content areas.
+//>>label: Collapsible Sets (Accordions)
+//>>group: Widgets
+//>>css: ../css/themes/default/jquery.mobile.theme.css,../css/structure/jquery.mobile.collapsible.css
+
+define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.collapsible" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, undefined ) {
+
+$.widget( "mobile.collapsibleset", $.mobile.widget, {
+       options: {
+               initSelector: ":jqmData(role='collapsible-set')"
+       },
+       _create: function() {
+               var $el = this.element.addClass( "ui-collapsible-set" ),
+                       o = this.options;
+
+               // Inherit the theme from collapsible-set
+               if ( !o.theme ) {
+                       o.theme = $.mobile.getInheritedTheme( $el, "c" );
+               }
+               // Inherit the content-theme from collapsible-set
+               if ( !o.contentTheme ) {
+                       o.contentTheme = $el.jqmData( "content-theme" );
+               }
+
+               if ( !o.corners ) {
+                       o.corners = $el.jqmData( "corners" ) === undefined ? true : false;
+               }
+
+               // Initialize the collapsible set if it's not already initialized
+               if ( !$el.jqmData( "collapsiblebound" ) ) {
+                       $el
+                               .jqmData( "collapsiblebound", true )
+                               .bind( "expand collapse", function( event ) {
+                                       var isCollapse = ( event.type === "collapse" ),
+                                               collapsible = $( event.target ).closest( ".ui-collapsible" ),
+                                               widget = collapsible.data( "collapsible" ),
+                                           contentTheme = widget.options.contentTheme;
+                                       if ( contentTheme && collapsible.jqmData( "collapsible-last" ) ) {
+                                               collapsible.find( widget.options.heading ).first()
+                                                       .find( "a" ).first()
+                                                       .add( ".ui-btn-inner" )
+                                                       .toggleClass( "ui-corner-bottom", isCollapse );
+                                               collapsible.find( ".ui-collapsible-content" ).toggleClass( "ui-corner-bottom", !isCollapse );
+                                       }
+                               })
+                               .bind( "expand", function( event ) {
+                                       $( event.target )
+                                               .closest( ".ui-collapsible" )
+                                               .siblings( ".ui-collapsible" )
+                                               .trigger( "collapse" );
+                               });
+               }
+       },
+
+       _init: function() {
+               this.refresh();
+       },
+
+       refresh: function() {
+               var $el = this.element,
+                       o = this.options,
+                       collapsiblesInSet = $el.children( ":jqmData(role='collapsible')" );
+
+               $.mobile.collapsible.prototype.enhance( collapsiblesInSet.not( ".ui-collapsible" ) );
+
+               // clean up borders
+               collapsiblesInSet.each( function() {
+                       $( this ).find( $.mobile.collapsible.prototype.options.heading )
+                               .find( "a" ).first()
+                               .add( ".ui-btn-inner" )
+                               .removeClass( "ui-corner-top ui-corner-bottom" );
+               });
+
+               collapsiblesInSet.first()
+                       .find( "a" )
+                               .first()
+                               .addClass( o.corners ? "ui-corner-top" : "" )
+                               .find( ".ui-btn-inner" )
+                                       .addClass( "ui-corner-top" );
+
+               collapsiblesInSet.last()
+                       .jqmData( "collapsible-last", true )
+                       .find( "a" )
+                               .first()
+                               .addClass( o.corners ? "ui-corner-bottom" : "" )
+                               .find( ".ui-btn-inner" )
+                                       .addClass( "ui-corner-bottom" );
+       }
+});
+
+//auto self-init widgets
+$( document ).bind( "pagecreate create", function( e ){
+       $.mobile.collapsibleset.prototype.enhanceWithin( e.target );
+});
+
+})( jQuery );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.controlGroup.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.controlGroup.js
new file mode 100644 (file)
index 0000000..4794cca
--- /dev/null
@@ -0,0 +1,59 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Visually groups sets of buttons, checks, radios, etc. 
+//>>label: Controlgroups
+//>>group: Forms
+//>>css: ../css/themes/default/jquery.mobile.theme.css,../css/structure/jquery.mobile.controlgroup.css
+
+define( [ "jquery", "./jquery.mobile.buttonMarkup" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, undefined ) {
+
+$.fn.controlgroup = function( options ) {
+       function flipClasses( els, flCorners  ) {
+               els.removeClass( "ui-btn-corner-all ui-shadow" )
+                       .eq( 0 ).addClass( flCorners[ 0 ] )
+                       .end()
+                       .last().addClass( flCorners[ 1 ] ).addClass( "ui-controlgroup-last" );
+       }
+
+       return this.each(function() {
+               var $el = $( this ),
+                       o = $.extend({
+                                               direction: $el.jqmData( "type" ) || "vertical",
+                                               shadow: false,
+                                               excludeInvisible: true,
+                                               mini: $el.jqmData( "mini" )
+                                       }, options ),
+                       groupheading = $el.children( "legend" ),
+                       flCorners = o.direction == "horizontal" ? [ "ui-corner-left", "ui-corner-right" ] : [ "ui-corner-top", "ui-corner-bottom" ],
+                       type = $el.find( "input" ).first().attr( "type" );
+
+               // Replace legend with more stylable replacement div
+               if ( groupheading.length ) {
+                       $el.wrapInner( "<div class='ui-controlgroup-controls'></div>" );
+                       $( "<div role='heading' class='ui-controlgroup-label'>" + groupheading.html() + "</div>" ).insertBefore( $el.children(0) );
+                       groupheading.remove();
+               }
+
+               $el.addClass( "ui-corner-all ui-controlgroup ui-controlgroup-" + o.direction );
+
+               flipClasses( $el.find( ".ui-btn" + ( o.excludeInvisible ? ":visible" : "" ) ).not('.ui-slider-handle'), flCorners );
+               flipClasses( $el.find( ".ui-btn-inner" ), flCorners );
+
+               if ( o.shadow ) {
+                       $el.addClass( "ui-shadow" );
+               }
+
+               if ( o.mini ) {
+                       $el.addClass( "ui-mini" );
+               }
+
+       });
+};
+
+// The pagecreate handler for controlgroup is in jquery.mobile.init because of the soft-dependency on the wrapped widgets
+
+})(jQuery);
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.core.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.core.js
new file mode 100644 (file)
index 0000000..7bde672
--- /dev/null
@@ -0,0 +1,334 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Base file for jQuery Mobile
+//>>label: Core
+//>>group: Core
+//>>required: true
+//>>css: ../css/structure/jquery.mobile.core.css
+
+define( [ "jquery", "../external/requirejs/text!../version.txt", "./jquery.mobile.widget" ], function( $, __version__ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, window, undefined ) {
+
+       var nsNormalizeDict = {};
+
+       // jQuery.mobile configurable options
+       $.mobile = $.extend( {}, {
+
+               // Version of the jQuery Mobile Framework
+               version: __version__,
+
+               // Namespace used framework-wide for data-attrs. Default is no namespace
+               ns: "",
+
+               // Define the url parameter used for referencing widget-generated sub-pages.
+               // Translates to to example.html&ui-page=subpageIdentifier
+               // hash segment before &ui-page= is used to make Ajax request
+               subPageUrlKey: "ui-page",
+
+               // Class assigned to page currently in view, and during transitions
+               activePageClass: "ui-page-active",
+
+               // Class used for "active" button state, from CSS framework
+               activeBtnClass: "ui-btn-active",
+
+               // Class used for "focus" form element state, from CSS framework
+               focusClass: "ui-focus",
+
+               // Automatically handle clicks and form submissions through Ajax, when same-domain
+               ajaxEnabled: true,
+
+               // Automatically load and show pages based on location.hash
+               hashListeningEnabled: true,
+
+               // disable to prevent jquery from bothering with links
+               linkBindingEnabled: true,
+
+               // Set default page transition - 'none' for no transitions
+               defaultPageTransition: "fade",
+
+               // Set maximum window width for transitions to apply - 'false' for no limit
+               maxTransitionWidth: false,
+
+               // Minimum scroll distance that will be remembered when returning to a page
+               minScrollBack: 250,
+
+               // DEPRECATED: the following property is no longer in use, but defined until 2.0 to prevent conflicts
+               touchOverflowEnabled: false,
+
+               // Set default dialog transition - 'none' for no transitions
+               defaultDialogTransition: "pop",
+
+               // Show loading message during Ajax requests
+               // if false, message will not appear, but loading classes will still be toggled on html el
+               loadingMessage: "loading",
+
+               // Error response message - appears when an Ajax page request fails
+               pageLoadErrorMessage: "Error Loading Page",
+
+               // Should the text be visble in the loading message?
+               loadingMessageTextVisible: false,
+
+               // When the text is visible, what theme does the loading box use?
+               loadingMessageTheme: "a",
+
+               // For error messages, which theme does the box uses?
+               pageLoadErrorMessageTheme: "e",
+
+               //automatically initialize the DOM when it's ready
+               autoInitializePage: true,
+
+               pushStateEnabled: true,
+
+               // allows users to opt in to ignoring content by marking a parent element as
+               // data-ignored
+               ignoreContentEnabled: false,
+
+               // turn of binding to the native orientationchange due to android orientation behavior
+               orientationChangeEnabled: true,
+
+               buttonMarkup: {
+                       hoverDelay: 200
+               },
+
+               // TODO might be useful upstream in jquery itself ?
+               keyCode: {
+                       ALT: 18,
+                       BACKSPACE: 8,
+                       CAPS_LOCK: 20,
+                       COMMA: 188,
+                       COMMAND: 91,
+                       COMMAND_LEFT: 91, // COMMAND
+                       COMMAND_RIGHT: 93,
+                       CONTROL: 17,
+                       DELETE: 46,
+                       DOWN: 40,
+                       END: 35,
+                       ENTER: 13,
+                       ESCAPE: 27,
+                       HOME: 36,
+                       INSERT: 45,
+                       LEFT: 37,
+                       MENU: 93, // COMMAND_RIGHT
+                       NUMPAD_ADD: 107,
+                       NUMPAD_DECIMAL: 110,
+                       NUMPAD_DIVIDE: 111,
+                       NUMPAD_ENTER: 108,
+                       NUMPAD_MULTIPLY: 106,
+                       NUMPAD_SUBTRACT: 109,
+                       PAGE_DOWN: 34,
+                       PAGE_UP: 33,
+                       PERIOD: 190,
+                       RIGHT: 39,
+                       SHIFT: 16,
+                       SPACE: 32,
+                       TAB: 9,
+                       UP: 38,
+                       WINDOWS: 91 // COMMAND
+               },
+
+               // Scroll page vertically: scroll to 0 to hide iOS address bar, or pass a Y value
+               silentScroll: function( ypos ) {
+                       if ( $.type( ypos ) !== "number" ) {
+                               ypos = $.mobile.defaultHomeScroll;
+                       }
+
+                       // prevent scrollstart and scrollstop events
+                       $.event.special.scrollstart.enabled = false;
+
+                       setTimeout(function() {
+                               window.scrollTo( 0, ypos );
+                               $( document ).trigger( "silentscroll", { x: 0, y: ypos });
+                       }, 20 );
+
+                       setTimeout(function() {
+                               $.event.special.scrollstart.enabled = true;
+                       }, 150 );
+               },
+
+               // Expose our cache for testing purposes.
+               nsNormalizeDict: nsNormalizeDict,
+
+               // Take a data attribute property, prepend the namespace
+               // and then camel case the attribute string. Add the result
+               // to our nsNormalizeDict so we don't have to do this again.
+               nsNormalize: function( prop ) {
+                       if ( !prop ) {
+                               return;
+                       }
+
+                       return nsNormalizeDict[ prop ] || ( nsNormalizeDict[ prop ] = $.camelCase( $.mobile.ns + prop ) );
+               },
+
+               getInheritedTheme: function( el, defaultTheme ) {
+
+                       // Find the closest parent with a theme class on it. Note that
+                       // we are not using $.fn.closest() on purpose here because this
+                       // method gets called quite a bit and we need it to be as fast
+                       // as possible.
+
+                       var e = el[ 0 ],
+                               ltr = "",
+                               re = /ui-(bar|body|overlay)-([a-z])\b/,
+                               c, m;
+
+                       while ( e ) {
+                               var c = e.className || "";
+                               if ( ( m = re.exec( c ) ) && ( ltr = m[ 2 ] ) ) {
+                                       // We found a parent with a theme class
+                                       // on it so bail from this loop.
+                                       break;
+                               }
+                               e = e.parentNode;
+                       }
+
+                       // Return the theme letter we found, if none, return the
+                       // specified default.
+
+                       return ltr || defaultTheme || "a";
+               },
+
+               // TODO the following $ and $.fn extensions can/probably should be moved into jquery.mobile.core.helpers
+               //
+               // Find the closest javascript page element to gather settings data jsperf test
+               // http://jsperf.com/single-complex-selector-vs-many-complex-selectors/edit
+               // possibly naive, but it shows that the parsing overhead for *just* the page selector vs
+               // the page and dialog selector is negligable. This could probably be speed up by
+               // doing a similar parent node traversal to the one found in the inherited theme code above
+               closestPageData: function( $target ) {
+                       return $target
+                               .closest(':jqmData(role="page"), :jqmData(role="dialog")')
+                               .data("page");
+               },
+
+               enhanceable: function( $set ) {
+                       return this.haveParents( $set, "enhance" );
+               },
+
+               hijackable: function( $set ) {
+                       return this.haveParents( $set, "ajax" );
+               },
+
+               haveParents: function( $set, attr ) {
+                       if( !$.mobile.ignoreContentEnabled ){
+                               return $set;
+                       }
+
+                       var count = $set.length,
+                               $newSet = $(),
+                               e, $element, excluded;
+
+                       for ( var i = 0; i < count; i++ ) {
+                               $element = $set.eq( i );
+                               excluded = false;
+                               e = $set[ i ];
+
+                               while ( e ) {
+                                       var c = e.getAttribute ? e.getAttribute( "data-" + $.mobile.ns + attr ) : "";
+
+                                       if ( c === "false" ) {
+                                               excluded = true;
+                                               break;
+                                       }
+
+                                       e = e.parentNode;
+                               }
+
+                               if ( !excluded ) {
+                                       $newSet = $newSet.add( $element );
+                               }
+                       }
+
+                       return $newSet;
+               }
+       }, $.mobile );
+
+       // Mobile version of data and removeData and hasData methods
+       // ensures all data is set and retrieved using jQuery Mobile's data namespace
+       $.fn.jqmData = function( prop, value ) {
+               var result;
+               if ( typeof prop != "undefined" ) {
+                       if ( prop ) {
+                               prop = $.mobile.nsNormalize( prop );
+                       }
+                       result = this.data.apply( this, arguments.length < 2 ? [ prop ] : [ prop, value ] );
+               }
+               return result;
+       };
+
+       $.jqmData = function( elem, prop, value ) {
+               var result;
+               if ( typeof prop != "undefined" ) {
+                       result = $.data( elem, prop ? $.mobile.nsNormalize( prop ) : prop, value );
+               }
+               return result;
+       };
+
+       $.fn.jqmRemoveData = function( prop ) {
+               return this.removeData( $.mobile.nsNormalize( prop ) );
+       };
+
+       $.jqmRemoveData = function( elem, prop ) {
+               return $.removeData( elem, $.mobile.nsNormalize( prop ) );
+       };
+
+       $.fn.removeWithDependents = function() {
+               $.removeWithDependents( this );
+       };
+
+       $.removeWithDependents = function( elem ) {
+               var $elem = $( elem );
+
+               ( $elem.jqmData('dependents') || $() ).remove();
+               $elem.remove();
+       };
+
+       $.fn.addDependents = function( newDependents ) {
+               $.addDependents( $(this), newDependents );
+       };
+
+       $.addDependents = function( elem, newDependents ) {
+               var dependents = $(elem).jqmData( 'dependents' ) || $();
+
+               $(elem).jqmData( 'dependents', $.merge(dependents, newDependents) );
+       };
+
+       // note that this helper doesn't attempt to handle the callback
+       // or setting of an html elements text, its only purpose is
+       // to return the html encoded version of the text in all cases. (thus the name)
+       $.fn.getEncodedText = function() {
+               return $( "<div/>" ).text( $(this).text() ).html();
+       };
+
+       // fluent helper function for the mobile namespaced equivalent
+       $.fn.jqmEnhanceable = function() {
+               return $.mobile.enhanceable( this );
+       };
+
+       $.fn.jqmHijackable = function() {
+               return $.mobile.hijackable( this );
+       };
+
+       // Monkey-patching Sizzle to filter the :jqmData selector
+       var oldFind = $.find,
+               jqmDataRE = /:jqmData\(([^)]*)\)/g;
+
+       $.find = function( selector, context, ret, extra ) {
+               selector = selector.replace( jqmDataRE, "[data-" + ( $.mobile.ns || "" ) + "$1]" );
+
+               return oldFind.call( this, selector, context, ret, extra );
+       };
+
+       $.extend( $.find, oldFind );
+
+       $.find.matches = function( expr, set ) {
+               return $.find( expr, null, null, set );
+       };
+
+       $.find.matchesSelector = function( node, expr ) {
+               return $.find( expr, null, null, [ node ] ).length > 0;
+       };
+})( jQuery, this );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
+
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.define.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.define.js
new file mode 100644 (file)
index 0000000..7a8b74e
--- /dev/null
@@ -0,0 +1,11 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Creates the define method on window, for async loading
+//>>label: Define
+//>>group: exclude
+//>>excludeEnd("jqmBuildExclude");
+
+// creates the define method on window, only used where async loading
+// is not desired in the docs and experiments
+window.define = function(){
+       Array.prototype.slice.call( arguments ).pop()( window.jQuery );
+};
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.degradeInputs.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.degradeInputs.js
new file mode 100644 (file)
index 0000000..b479063
--- /dev/null
@@ -0,0 +1,61 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Changes input type to another after custom enhancements are made (ex. range > numberic).
+//>>label: Degrade Inputs
+//>>group: Utilities
+
+
+define( [ "jquery", "./jquery.mobile.page" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, undefined ) {
+
+$.mobile.page.prototype.options.degradeInputs = {
+       color: false,
+       date: false,
+       datetime: false,
+       "datetime-local": false,
+       email: false,
+       month: false,
+       number: false,
+       range: "number",
+       search: "text",
+       tel: false,
+       time: false,
+       url: false,
+       week: false
+};
+
+
+//auto self-init widgets
+$( document ).bind( "pagecreate create", function( e ){
+
+       var page = $.mobile.closestPageData($(e.target)), options;
+
+       if( !page ) {
+               return;
+       }
+
+       options = page.options;
+
+       // degrade inputs to avoid poorly implemented native functionality
+       $( e.target ).find( "input" ).not( page.keepNativeSelector() ).each(function() {
+               var $this = $( this ),
+                       type = this.getAttribute( "type" ),
+                       optType = options.degradeInputs[ type ] || "text";
+
+               if ( options.degradeInputs[ type ] ) {
+                       var html = $( "<div>" ).html( $this.clone() ).html(),
+                               // In IE browsers, the type sometimes doesn't exist in the cloned markup, so we replace the closing tag instead
+                               hasType = html.indexOf( " type=" ) > -1,
+                               findstr = hasType ? /\s+type=["']?\w+['"]?/ : /\/?>/,
+                               repstr = " type=\"" + optType + "\" data-" + $.mobile.ns + "type=\"" + type + "\"" + ( hasType ? "" : ">" );
+
+                       $this.replaceWith( html.replace( findstr, repstr ) );
+               }
+       });
+
+});
+
+})( jQuery );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.dialog.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.dialog.js
new file mode 100644 (file)
index 0000000..7ac0387
--- /dev/null
@@ -0,0 +1,96 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Displays a page as a modal dialog with inset appearance and overlay background
+//>>label: Dialogs
+//>>group: Widgets
+//>>css: ../css/themes/default/jquery.mobile.theme.css,../css/structure/jquery.mobile.dialog.css
+
+define( [ "jquery", "./jquery.mobile.widget" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, window, undefined ) {
+
+$.widget( "mobile.dialog", $.mobile.widget, {
+       options: {
+               closeBtnText    : "Close",
+               overlayTheme    : "a",
+               initSelector    : ":jqmData(role='dialog')"
+       },
+       _create: function() {
+               var self = this,
+                       $el = this.element,
+                       headerCloseButton = $( "<a href='#' data-" + $.mobile.ns + "icon='delete' data-" + $.mobile.ns + "iconpos='notext'>"+ this.options.closeBtnText + "</a>" ),
+                       dialogWrap = $("<div/>", {
+                                       "role" : "dialog",
+                                       "class" : "ui-dialog-contain ui-corner-all ui-overlay-shadow"
+                               });
+
+               $el.addClass( "ui-dialog ui-overlay-" + this.options.overlayTheme );
+               
+               // Class the markup for dialog styling
+               // Set aria role
+               $el
+                       .wrapInner( dialogWrap )
+                       .children()
+                               .find( ":jqmData(role='header')" )
+                                       .prepend( headerCloseButton )
+                               .end()
+                               .children( ':first-child')
+                                       .addClass( "ui-corner-top" )
+                               .end()
+                               .children( ":last-child" )
+                                       .addClass( "ui-corner-bottom" );
+
+               // this must be an anonymous function so that select menu dialogs can replace
+               // the close method. This is a change from previously just defining data-rel=back
+               // on the button and letting nav handle it
+               //
+               // Use click rather than vclick in order to prevent the possibility of unintentionally
+               // reopening the dialog if the dialog opening item was directly under the close button.
+               headerCloseButton.bind( "click", function() {
+                       self.close();
+               });
+
+               /* bind events
+                       - clicks and submits should use the closing transition that the dialog opened with
+                         unless a data-transition is specified on the link/form
+                       - if the click was on the close button, or the link has a data-rel="back" it'll go back in history naturally
+               */
+               $el.bind( "vclick submit", function( event ) {
+                       var $target = $( event.target ).closest( event.type === "vclick" ? "a" : "form" ),
+                               active;
+
+                       if ( $target.length && !$target.jqmData( "transition" ) ) {
+
+                               active = $.mobile.urlHistory.getActive() || {};
+
+                               $target.attr( "data-" + $.mobile.ns + "transition", ( active.transition || $.mobile.defaultDialogTransition ) )
+                                       .attr( "data-" + $.mobile.ns + "direction", "reverse" );
+                       }
+               })
+               .bind( "pagehide", function( e, ui ) {
+                       $( this ).find( "." + $.mobile.activeBtnClass ).removeClass( $.mobile.activeBtnClass );
+               })
+               // Override the theme set by the page plugin on pageshow
+               .bind( "pagebeforeshow", function(){
+                       if( self.options.overlayTheme ){
+                               self.element
+                                       .page( "removeContainerBackground" )
+                                       .page( "setContainerBackground", self.options.overlayTheme );
+                       }
+               });
+       },
+
+       // Close method goes back in history
+       close: function() {
+               window.history.back();
+       }
+});
+
+//auto self-init widgets
+$( document ).delegate( $.mobile.dialog.prototype.options.initSelector, "pagecreate", function(){
+       $.mobile.dialog.prototype.enhance( this );
+});
+
+})( jQuery, this );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.docs.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.docs.js
new file mode 100644 (file)
index 0000000..e458b7e
--- /dev/null
@@ -0,0 +1,6 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: jQuery Mobile documentation JS
+//>>label: Docs
+//>>group: exclude
+define( [ "../external/requirejs/depend!../docs/_assets/js/jqm-docs[jquery]", "../external/requirejs/order!./jquery.mobile" ] );
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.event.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.event.js
new file mode 100644 (file)
index 0000000..f9d1744
--- /dev/null
@@ -0,0 +1,375 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Custom events and shortcuts.
+//>>label: Events
+//>>group: Core
+//>>required: true
+
+define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.support", "./jquery.mobile.vmouse" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, window, undefined ) {
+
+// add new event shortcuts
+$.each( ( "touchstart touchmove touchend orientationchange throttledresize " +
+                                       "tap taphold swipe swipeleft swiperight scrollstart scrollstop" ).split( " " ), function( i, name ) {
+
+       $.fn[ name ] = function( fn ) {
+               return fn ? this.bind( name, fn ) : this.trigger( name );
+       };
+
+       $.attrFn[ name ] = true;
+});
+
+var supportTouch = $.support.touch,
+       scrollEvent = "touchmove scroll",
+       touchStartEvent = supportTouch ? "touchstart" : "mousedown",
+       touchStopEvent = supportTouch ? "touchend" : "mouseup",
+       touchMoveEvent = supportTouch ? "touchmove" : "mousemove";
+
+function triggerCustomEvent( obj, eventType, event ) {
+       var originalType = event.type;
+       event.type = eventType;
+       $.event.handle.call( obj, event );
+       event.type = originalType;
+}
+
+// also handles scrollstop
+$.event.special.scrollstart = {
+
+       enabled: true,
+
+       setup: function() {
+
+               var thisObject = this,
+                       $this = $( thisObject ),
+                       scrolling,
+                       timer;
+
+               function trigger( event, state ) {
+                       scrolling = state;
+                       triggerCustomEvent( thisObject, scrolling ? "scrollstart" : "scrollstop", event );
+               }
+
+               // iPhone triggers scroll after a small delay; use touchmove instead
+               $this.bind( scrollEvent, function( event ) {
+
+                       if ( !$.event.special.scrollstart.enabled ) {
+                               return;
+                       }
+
+                       if ( !scrolling ) {
+                               trigger( event, true );
+                       }
+
+                       clearTimeout( timer );
+                       timer = setTimeout(function() {
+                               trigger( event, false );
+                       }, 50 );
+               });
+       }
+};
+
+// also handles taphold
+$.event.special.tap = {
+       setup: function() {
+               var thisObject = this,
+                       $this = $( thisObject );
+
+               $this.bind( "vmousedown", function( event ) {
+
+                       if ( event.which && event.which !== 1 ) {
+                               return false;
+                       }
+
+                       var origTarget = event.target,
+                               origEvent = event.originalEvent,
+                               timer;
+
+                       function clearTapTimer() {
+                               clearTimeout( timer );
+                       }
+
+                       function clearTapHandlers() {
+                               clearTapTimer();
+
+                               $this.unbind( "vclick", clickHandler )
+                                       .unbind( "vmouseup", clearTapTimer );
+                               $( document ).unbind( "vmousecancel", clearTapHandlers );
+                       }
+
+                       function clickHandler(event) {
+                               clearTapHandlers();
+
+                               // ONLY trigger a 'tap' event if the start target is
+                               // the same as the stop target.
+                               if ( origTarget == event.target ) {
+                                       triggerCustomEvent( thisObject, "tap", event );
+                               }
+                       }
+
+                       $this.bind( "vmouseup", clearTapTimer )
+                               .bind( "vclick", clickHandler );
+                       $( document ).bind( "vmousecancel", clearTapHandlers );
+
+                       timer = setTimeout(function() {
+                                       triggerCustomEvent( thisObject, "taphold", $.Event( "taphold", { target: origTarget } ) );
+                       }, 750 );
+               });
+       }
+};
+
+// also handles swipeleft, swiperight
+$.event.special.swipe = {
+       scrollSupressionThreshold: 10, // More than this horizontal displacement, and we will suppress scrolling.
+
+       durationThreshold: 1000, // More time than this, and it isn't a swipe.
+
+       horizontalDistanceThreshold: 30,  // Swipe horizontal displacement must be more than this.
+
+       verticalDistanceThreshold: 75,  // Swipe vertical displacement must be less than this.
+
+       setup: function() {
+               var thisObject = this,
+                       $this = $( thisObject );
+
+               $this.bind( touchStartEvent, function( event ) {
+                       var data = event.originalEvent.touches ?
+                                                               event.originalEvent.touches[ 0 ] : event,
+                               start = {
+                                       time: ( new Date() ).getTime(),
+                                       coords: [ data.pageX, data.pageY ],
+                                       origin: $( event.target )
+                               },
+                               stop;
+
+                       function moveHandler( event ) {
+
+                               if ( !start ) {
+                                       return;
+                               }
+
+                               var data = event.originalEvent.touches ?
+                                               event.originalEvent.touches[ 0 ] : event;
+
+                               stop = {
+                                       time: ( new Date() ).getTime(),
+                                       coords: [ data.pageX, data.pageY ]
+                               };
+
+                               // prevent scrolling
+                               if ( Math.abs( start.coords[ 0 ] - stop.coords[ 0 ] ) > $.event.special.swipe.scrollSupressionThreshold ) {
+                                       event.preventDefault();
+                               }
+                       }
+
+                       $this.bind( touchMoveEvent, moveHandler )
+                               .one( touchStopEvent, function( event ) {
+                                       $this.unbind( touchMoveEvent, moveHandler );
+
+                                       if ( start && stop ) {
+                                               if ( stop.time - start.time < $.event.special.swipe.durationThreshold &&
+                                                               Math.abs( start.coords[ 0 ] - stop.coords[ 0 ] ) > $.event.special.swipe.horizontalDistanceThreshold &&
+                                                               Math.abs( start.coords[ 1 ] - stop.coords[ 1 ] ) < $.event.special.swipe.verticalDistanceThreshold ) {
+
+                                                       start.origin.trigger( "swipe" )
+                                                               .trigger( start.coords[0] > stop.coords[ 0 ] ? "swipeleft" : "swiperight" );
+                                               }
+                                       }
+                                       start = stop = undefined;
+                               });
+               });
+       }
+};
+
+(function( $, window ) {
+       // "Cowboy" Ben Alman
+
+       var win = $( window ),
+               special_event,
+               get_orientation,
+               last_orientation,
+               initial_orientation_is_landscape,
+               initial_orientation_is_default,
+               portrait_map = { "0": true, "180": true };
+
+       // It seems that some device/browser vendors use window.orientation values 0 and 180 to
+       // denote the "default" orientation. For iOS devices, and most other smart-phones tested,
+       // the default orientation is always "portrait", but in some Android and RIM based tablets,
+       // the default orientation is "landscape". The following code attempts to use the window
+       // dimensions to figure out what the current orientation is, and then makes adjustments
+       // to the to the portrait_map if necessary, so that we can properly decode the
+       // window.orientation value whenever get_orientation() is called.
+       //
+       // Note that we used to use a media query to figure out what the orientation the browser
+       // thinks it is in:
+       //
+       //     initial_orientation_is_landscape = $.mobile.media("all and (orientation: landscape)");
+       //
+       // but there was an iPhone/iPod Touch bug beginning with iOS 4.2, up through iOS 5.1,
+       // where the browser *ALWAYS* applied the landscape media query. This bug does not
+       // happen on iPad.
+
+       if ( $.support.orientation ) {
+
+               // Check the window width and height to figure out what the current orientation
+               // of the device is at this moment. Note that we've initialized the portrait map
+               // values to 0 and 180, *AND* we purposely check for landscape so that if we guess
+               // wrong, , we default to the assumption that portrait is the default orientation.
+               // We use a threshold check below because on some platforms like iOS, the iPhone
+               // form-factor can report a larger width than height if the user turns on the
+               // developer console. The actual threshold value is somewhat arbitrary, we just
+               // need to make sure it is large enough to exclude the developer console case.
+
+               var ww = window.innerWidth || $( window ).width(),
+                       wh = window.innerHeight || $( window ).height(),
+                       landscape_threshold = 50;
+
+               initial_orientation_is_landscape = ww > wh && ( ww - wh ) > landscape_threshold;
+
+
+               // Now check to see if the current window.orientation is 0 or 180.
+               initial_orientation_is_default = portrait_map[ window.orientation ];
+
+               // If the initial orientation is landscape, but window.orientation reports 0 or 180, *OR*
+               // if the initial orientation is portrait, but window.orientation reports 90 or -90, we
+               // need to flip our portrait_map values because landscape is the default orientation for
+               // this device/browser.
+               if ( ( initial_orientation_is_landscape && initial_orientation_is_default ) || ( !initial_orientation_is_landscape && !initial_orientation_is_default ) ) {
+                       portrait_map = { "-90": true, "90": true };
+               }
+       }
+
+       $.event.special.orientationchange = special_event = {
+               setup: function() {
+                       // If the event is supported natively, return false so that jQuery
+                       // will bind to the event using DOM methods.
+                       if ( $.support.orientation && $.mobile.orientationChangeEnabled ) {
+                               return false;
+                       }
+
+                       // Get the current orientation to avoid initial double-triggering.
+                       last_orientation = get_orientation();
+
+                       // Because the orientationchange event doesn't exist, simulate the
+                       // event by testing window dimensions on resize.
+                       win.bind( "throttledresize", handler );
+               },
+               teardown: function(){
+                       // If the event is not supported natively, return false so that
+                       // jQuery will unbind the event using DOM methods.
+                       if ( $.support.orientation && $.mobile.orientationChangeEnabled ) {
+                               return false;
+                       }
+
+                       // Because the orientationchange event doesn't exist, unbind the
+                       // resize event handler.
+                       win.unbind( "throttledresize", handler );
+               },
+               add: function( handleObj ) {
+                       // Save a reference to the bound event handler.
+                       var old_handler = handleObj.handler;
+
+
+                       handleObj.handler = function( event ) {
+                               // Modify event object, adding the .orientation property.
+                               event.orientation = get_orientation();
+
+                               // Call the originally-bound event handler and return its result.
+                               return old_handler.apply( this, arguments );
+                       };
+               }
+       };
+
+       // If the event is not supported natively, this handler will be bound to
+       // the window resize event to simulate the orientationchange event.
+       function handler() {
+               // Get the current orientation.
+               var orientation = get_orientation();
+
+               if ( orientation !== last_orientation ) {
+                       // The orientation has changed, so trigger the orientationchange event.
+                       last_orientation = orientation;
+                       win.trigger( "orientationchange" );
+               }
+       }
+
+       // Get the current page orientation. This method is exposed publicly, should it
+       // be needed, as jQuery.event.special.orientationchange.orientation()
+       $.event.special.orientationchange.orientation = get_orientation = function() {
+               var isPortrait = true, elem = document.documentElement;
+
+               // prefer window orientation to the calculation based on screensize as
+               // the actual screen resize takes place before or after the orientation change event
+               // has been fired depending on implementation (eg android 2.3 is before, iphone after).
+               // More testing is required to determine if a more reliable method of determining the new screensize
+               // is possible when orientationchange is fired. (eg, use media queries + element + opacity)
+               if ( $.support.orientation ) {
+                       // if the window orientation registers as 0 or 180 degrees report
+                       // portrait, otherwise landscape
+                       isPortrait = portrait_map[ window.orientation ];
+               } else {
+                       isPortrait = elem && elem.clientWidth / elem.clientHeight < 1.1;
+               }
+
+               return isPortrait ? "portrait" : "landscape";
+       };
+
+})( jQuery, window );
+
+
+// throttled resize event
+(function() {
+
+       $.event.special.throttledresize = {
+               setup: function() {
+                       $( this ).bind( "resize", handler );
+               },
+               teardown: function(){
+                       $( this ).unbind( "resize", handler );
+               }
+       };
+
+       var throttle = 250,
+               handler = function() {
+                       curr = ( new Date() ).getTime();
+                       diff = curr - lastCall;
+
+                       if ( diff >= throttle ) {
+
+                               lastCall = curr;
+                               $( this ).trigger( "throttledresize" );
+
+                       } else {
+
+                               if ( heldCall ) {
+                                       clearTimeout( heldCall );
+                               }
+
+                               // Promise a held call will still execute
+                               heldCall = setTimeout( handler, throttle - diff );
+                       }
+               },
+               lastCall = 0,
+               heldCall,
+               curr,
+               diff;
+})();
+
+
+$.each({
+       scrollstop: "scrollstart",
+       taphold: "tap",
+       swipeleft: "swipe",
+       swiperight: "swipe"
+}, function( event, sourceEvent ) {
+
+       $.event.special[ event ] = {
+               setup: function() {
+                       $( this ).bind( sourceEvent, $.noop );
+               }
+       };
+});
+
+})( jQuery, this );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.fieldContain.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.fieldContain.js
new file mode 100644 (file)
index 0000000..704b771
--- /dev/null
@@ -0,0 +1,23 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Styling to responsively position forms and labels based on screen width and add visual separation
+//>>label: Fieldcontainers
+//>>group: Forms
+//>>css: ../css/themes/default/jquery.mobile.theme.css,../css/structure/jquery.mobile.forms.fieldcontain.css
+
+define( [ "jquery" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, undefined ) {
+
+$.fn.fieldcontain = function( options ) {
+       return this.addClass( "ui-field-contain ui-body ui-br" );
+};
+
+//auto self-init widgets
+$( document ).bind( "pagecreate create", function( e ){
+       $( ":jqmData(role='fieldcontain')", e.target ).jqmEnhanceable().fieldcontain();
+});
+
+})( jQuery );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.fixedToolbar.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.fixedToolbar.js
new file mode 100644 (file)
index 0000000..0f9c23d
--- /dev/null
@@ -0,0 +1,285 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Behavior for "fixed" headers and footers
+//>>label: Toolbars: Fixed
+//>>group: Widgets
+//>>css: ../css/themes/default/jquery.mobile.theme.css,../css/structure/jquery.mobile.fixedToolbar.css
+
+define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.core", "./jquery.mobile.navigation", "./jquery.mobile.page", "./jquery.mobile.page.sections", "./jquery.mobile.zoom" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, undefined ) {
+
+
+       $.widget( "mobile.fixedtoolbar", $.mobile.widget, {
+               options: {
+                       visibleOnPageShow: true,
+                       disablePageZoom: true,
+                       transition: "slide", //can be none, fade, slide (slide maps to slideup or slidedown)
+                       fullscreen: false,
+                       tapToggle: true,
+                       tapToggleBlacklist: "a, input, select, textarea, .ui-header-fixed, .ui-footer-fixed",
+                       hideDuringFocus: "input, textarea, select",
+                       updatePagePadding: true,
+                       trackPersistentToolbars: true,
+
+                       // Browser detection! Weeee, here we go...
+                       // Unfortunately, position:fixed is costly, not to mention probably impossible, to feature-detect accurately.
+                       // Some tests exist, but they currently return false results in critical devices and browsers, which could lead to a broken experience.
+                       // Testing fixed positioning is also pretty obtrusive to page load, requiring injected elements and scrolling the window
+                       // The following function serves to rule out some popular browsers with known fixed-positioning issues
+                       // This is a plugin option like any other, so feel free to improve or overwrite it
+                       supportBlacklist: function(){
+                               var w = window,
+                                       ua = navigator.userAgent,
+                                       platform = navigator.platform,
+                                       // Rendering engine is Webkit, and capture major version
+                                       wkmatch = ua.match( /AppleWebKit\/([0-9]+)/ ),
+                                       wkversion = !!wkmatch && wkmatch[ 1 ],
+                                       ffmatch = ua.match( /Fennec\/([0-9]+)/ ),
+                                       ffversion = !!ffmatch && ffmatch[ 1 ],
+                                       operammobilematch = ua.match( /Opera Mobi\/([0-9]+)/ ),
+                                       omversion = !!operammobilematch && operammobilematch[ 1 ];
+
+                               if(
+                                       // iOS 4.3 and older : Platform is iPhone/Pad/Touch and Webkit version is less than 534 (ios5)
+                                       ( ( platform.indexOf( "iPhone" ) > -1 || platform.indexOf( "iPad" ) > -1  || platform.indexOf( "iPod" ) > -1 ) && wkversion && wkversion < 534 )
+                                       ||
+                                       // Opera Mini
+                                       ( w.operamini && ({}).toString.call( w.operamini ) === "[object OperaMini]" )
+                                       ||
+                                       ( operammobilematch && omversion < 7458 )
+                                       ||
+                                       //Android lte 2.1: Platform is Android and Webkit version is less than 533 (Android 2.2)
+                                       ( ua.indexOf( "Android" ) > -1 && wkversion && wkversion < 533 )
+                                       ||
+                                       // Firefox Mobile before 6.0 -
+                                       ( ffversion && ffversion < 6 )
+                                       ||
+                                       // WebOS less than 3
+                                       ( "palmGetResource" in window && wkversion && wkversion < 534 )
+                                       ||
+                                       // MeeGo
+                                       ( ua.indexOf( "MeeGo" ) > -1 && ua.indexOf( "NokiaBrowser/8.5.0" ) > -1 )
+                               ){
+                                       return true;
+                               }
+
+                               return false;
+                       },
+                       initSelector: ":jqmData(position='fixed')"
+               },
+
+               _create: function() {
+
+                       var self = this,
+                               o = self.options,
+                               $el = self.element,
+                               tbtype = $el.is( ":jqmData(role='header')" ) ? "header" : "footer",
+                               $page = $el.closest(".ui-page");
+
+                       // Feature detecting support for
+                       if( o.supportBlacklist() ){
+                               self.destroy();
+                               return;
+                       }
+
+                       $el.addClass( "ui-"+ tbtype +"-fixed" );
+
+                       // "fullscreen" overlay positioning
+                       if( o.fullscreen ){
+                               $el.addClass( "ui-"+ tbtype +"-fullscreen" );
+                               $page.addClass( "ui-page-" + tbtype + "-fullscreen" );
+                       }
+                       // If not fullscreen, add class to page to set top or bottom padding
+                       else{
+                               $page.addClass( "ui-page-" + tbtype + "-fixed" );
+                       }
+
+                       self._addTransitionClass();
+                       self._bindPageEvents();
+                       self._bindToggleHandlers();
+               },
+
+               _addTransitionClass: function(){
+                       var tclass = this.options.transition;
+
+                       if( tclass && tclass !== "none" ){
+                               // use appropriate slide for header or footer
+                               if( tclass === "slide" ){
+                                       tclass = this.element.is( ".ui-header" ) ? "slidedown" : "slideup";
+                               }
+
+                               this.element.addClass( tclass );
+                       }
+               },
+
+               _bindPageEvents: function(){
+                       var self = this,
+                               o = self.options,
+                               $el = self.element;
+
+                       //page event bindings
+                       // Fixed toolbars require page zoom to be disabled, otherwise usability issues crop up
+                       // This method is meant to disable zoom while a fixed-positioned toolbar page is visible
+                       $el.closest( ".ui-page" )
+                               .bind( "pagebeforeshow", function(){
+                                       if( o.disablePageZoom ){
+                                               $.mobile.zoom.disable( true );
+                                       }
+                                       if( !o.visibleOnPageShow ){
+                                               self.hide( true );
+                                       }
+                               } )
+                               .bind( "webkitAnimationStart animationstart updatelayout", function(){
+                                       if( o.updatePagePadding ){
+                                               self.updatePagePadding();
+                                       }
+                               })
+                               .bind( "pageshow", function(){
+                                       self.updatePagePadding();
+                                       if( o.updatePagePadding ){
+                                               $( window ).bind( "throttledresize." + self.widgetName, function(){
+                                                       self.updatePagePadding();
+                                               });
+                                       }
+                               })
+                               .bind( "pagebeforehide", function( e, ui ){
+                                       if( o.disablePageZoom ){
+                                               $.mobile.zoom.enable( true );
+                                       }
+                                       if( o.updatePagePadding ){
+                                               $( window ).unbind( "throttledresize." + self.widgetName );
+                                       }
+
+                                       if( o.trackPersistentToolbars ){
+                                               var thisFooter = $( ".ui-footer-fixed:jqmData(id)", this ),
+                                                       thisHeader = $( ".ui-header-fixed:jqmData(id)", this ),
+                                                       nextFooter = thisFooter.length && ui.nextPage && $( ".ui-footer-fixed:jqmData(id='" + thisFooter.jqmData( "id" ) + "')", ui.nextPage ),
+                                                       nextHeader = thisHeader.length && ui.nextPage && $( ".ui-header-fixed:jqmData(id='" + thisHeader.jqmData( "id" ) + "')", ui.nextPage );
+
+                                               nextFooter = nextFooter || $();
+
+                                                       if( nextFooter.length || nextHeader.length ){
+
+                                                               nextFooter.add( nextHeader ).appendTo( $.mobile.pageContainer );
+
+                                                               ui.nextPage.one( "pageshow", function(){
+                                                                       nextFooter.add( nextHeader ).appendTo( this );
+                                                               });
+                                                       }
+                                       }
+                               });
+               },
+
+               _visible: true,
+
+               // This will set the content element's top or bottom padding equal to the toolbar's height
+               updatePagePadding: function() {
+                       var $el = this.element,
+                               header = $el.is( ".ui-header" );
+
+                       // This behavior only applies to "fixed", not "fullscreen"
+                       if( this.options.fullscreen ){ return; }
+
+                       $el.closest( ".ui-page" ).css( "padding-" + ( header ? "top" : "bottom" ), $el.outerHeight() );
+               },
+               
+               _useTransition: function( notransition ){
+                       var $win = $( window ),
+                               $el = this.element,
+                               scroll = $win.scrollTop(),
+                               elHeight = $el.height(),
+                               pHeight = $el.closest( ".ui-page" ).height(),
+                               viewportHeight = $.mobile.getScreenHeight(),
+                               tbtype = $el.is( ":jqmData(role='header')" ) ? "header" : "footer";
+                               
+                       return !notransition &&
+                               ( this.options.transition && this.options.transition !== "none" &&
+                               (
+                                       ( tbtype === "header" && !this.options.fullscreen && scroll > elHeight ) ||
+                                       ( tbtype === "footer" && !this.options.fullscreen && scroll + viewportHeight < pHeight - elHeight )
+                               ) || this.options.fullscreen
+                               );
+               },
+
+               show: function( notransition ){
+                       var hideClass = "ui-fixed-hidden",
+                               $el = this.element;
+
+                               if( this._useTransition( notransition ) ){
+                               $el
+                                       .removeClass( "out " + hideClass )
+                                       .addClass( "in" );
+                       }
+                       else {
+                               $el.removeClass( hideClass );
+                       }
+                       this._visible = true;
+               },
+
+               hide: function( notransition ){
+                       var hideClass = "ui-fixed-hidden",
+                               $el = this.element,
+                               // if it's a slide transition, our new transitions need the reverse class as well to slide outward
+                               outclass = "out" + ( this.options.transition === "slide" ? " reverse" : "" );
+
+                       if( this._useTransition( notransition ) ){
+                               $el
+                                       .addClass( outclass )
+                                       .removeClass( "in" )
+                                       .animationComplete( function(){
+                                               $el.addClass( hideClass ).removeClass( outclass );
+                                       });
+                       }
+                       else {
+                               $el.addClass( hideClass ).removeClass( outclass );
+                       }
+                       this._visible = false;
+               },
+
+               toggle: function(){
+                       this[ this._visible ? "hide" : "show" ]();
+               },
+
+               _bindToggleHandlers: function(){
+                       var self = this,
+                               o = self.options,
+                               $el = self.element;
+
+                       // tap toggle
+                       $el.closest( ".ui-page" )
+                               .bind( "vclick", function( e ){
+                                       if( o.tapToggle && !$( e.target ).closest( o.tapToggleBlacklist ).length ){
+                                               self.toggle();
+                                       }
+                               })
+                               .bind( "focusin focusout", function( e ){
+                                       if( screen.width < 500 && $( e.target ).is( o.hideDuringFocus ) && !$( e.target ).closest( ".ui-header-fixed, .ui-footer-fixed" ).length ){
+                                               self[ ( e.type === "focusin" && self._visible ) ? "hide" : "show" ]();
+                                       }
+                               });
+               },
+
+               destroy: function(){
+                       this.element.removeClass( "ui-header-fixed ui-footer-fixed ui-header-fullscreen ui-footer-fullscreen in out fade slidedown slideup ui-fixed-hidden" );
+                       this.element.closest( ".ui-page" ).removeClass( "ui-page-header-fixed ui-page-footer-fixed ui-page-header-fullscreen ui-page-footer-fullscreen" );
+               }
+
+       });
+
+       //auto self-init widgets
+       $( document )
+               .bind( "pagecreate create", function( e ){
+                       
+                       // DEPRECATED in 1.1: support for data-fullscreen=true|false on the page element.
+                       // This line ensures it still works, but we recommend moving the attribute to the toolbars themselves.
+                       if( $( e.target ).jqmData( "fullscreen" ) ){
+                               $( $.mobile.fixedtoolbar.prototype.options.initSelector, e.target ).not( ":jqmData(fullscreen)" ).jqmData( "fullscreen", true );
+                       }
+                       
+                       $.mobile.fixedtoolbar.prototype.enhanceWithin( e.target );
+               });
+
+})( jQuery );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.button.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.button.js
new file mode 100644 (file)
index 0000000..d5a690a
--- /dev/null
@@ -0,0 +1,147 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Custom-styled native input/buttons
+//>>label: Buttons: Input or button-based 
+//>>group: Forms
+//>>css: ../css/themes/default/jquery.mobile.theme.css,../css/structure/jquery.mobile.button.css
+
+define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.buttonMarkup"  ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, undefined ) {
+
+$.widget( "mobile.button", $.mobile.widget, {
+       options: {
+               theme: null,
+               icon: null,
+               iconpos: null,
+               inline: false,
+               corners: true,
+               shadow: true,
+               iconshadow: true,
+               initSelector: "button, [type='button'], [type='submit'], [type='reset'], [type='image']",
+               mini: false
+       },
+       _create: function() {
+               var $el = this.element,
+                       $button,
+                       o = this.options,
+                       type,
+                       name,
+                       classes = "",
+                       $buttonPlaceholder;
+
+               // if this is a link, check if it's been enhanced and, if not, use the right function
+               if( $el[ 0 ].tagName === "A" ) {
+                       !$el.hasClass( "ui-btn" ) && $el.buttonMarkup();
+                       return;
+               }
+
+               // get the inherited theme
+               // TODO centralize for all widgets
+               if ( !this.options.theme ) {
+                       this.options.theme = $.mobile.getInheritedTheme( this.element, "c" );
+               }
+
+               // TODO: Post 1.1--once we have time to test thoroughly--any classes manually applied to the original element should be carried over to the enhanced element, with an `-enhanced` suffix. See https://github.com/jquery/jquery-mobile/issues/3577
+               /* if( $el[0].className.length ) {
+                       classes = $el[0].className;
+               } */
+               if( !!~$el[0].className.indexOf( "ui-btn-left" ) ) {
+                       classes = "ui-btn-left";
+               }
+
+               if(  !!~$el[0].className.indexOf( "ui-btn-right" ) ) {
+                       classes = "ui-btn-right";
+               }
+
+               // Add ARIA role
+               this.button = $( "<div></div>" )
+                       .text( $el.text() || $el.val() )
+                       .insertBefore( $el )
+                       .buttonMarkup({
+                               theme: o.theme,
+                               icon: o.icon,
+                               iconpos: o.iconpos,
+                               inline: o.inline,
+                               corners: o.corners,
+                               shadow: o.shadow,
+                               iconshadow: o.iconshadow,
+                               mini: o.mini
+                       })
+                       .addClass( classes )
+                       .append( $el.addClass( "ui-btn-hidden" ) );
+
+        $button = this.button;
+               type = $el.attr( "type" );
+               name = $el.attr( "name" );
+
+               // Add hidden input during submit if input type="submit" has a name.
+               if ( type !== "button" && type !== "reset" && name ) {
+                               $el.bind( "vclick", function() {
+                                       // Add hidden input if it doesn’t already exist.
+                                       if( $buttonPlaceholder === undefined ) {
+                                               $buttonPlaceholder = $( "<input>", {
+                                                       type: "hidden",
+                                                       name: $el.attr( "name" ),
+                                                       value: $el.attr( "value" )
+                                               }).insertBefore( $el );
+
+                                               // Bind to doc to remove after submit handling
+                                               $( document ).one("submit", function(){
+                                                       $buttonPlaceholder.remove();
+
+                                                       // reset the local var so that the hidden input
+                                                       // will be re-added on subsequent clicks
+                                                       $buttonPlaceholder = undefined;
+                                               });
+                                       }
+                               });
+               }
+
+        $el.bind({
+            focus: function() {
+                $button.addClass( $.mobile.focusClass );
+            },
+
+            blur: function() {
+                $button.removeClass( $.mobile.focusClass );
+            }
+        });
+
+               this.refresh();
+       },
+
+       enable: function() {
+               this.element.attr( "disabled", false );
+               this.button.removeClass( "ui-disabled" ).attr( "aria-disabled", false );
+               return this._setOption( "disabled", false );
+       },
+
+       disable: function() {
+               this.element.attr( "disabled", true );
+               this.button.addClass( "ui-disabled" ).attr( "aria-disabled", true );
+               return this._setOption( "disabled", true );
+       },
+
+       refresh: function() {
+               var $el = this.element;
+
+               if ( $el.prop("disabled") ) {
+                       this.disable();
+               } else {
+                       this.enable();
+               }
+
+               // Grab the button's text element from its implementation-independent data item
+               $( this.button.data( 'buttonElements' ).text ).text( $el.text() || $el.val() );
+       }
+});
+
+//auto self-init widgets
+$( document ).bind( "pagecreate create", function( e ){
+       $.mobile.button.prototype.enhanceWithin( e.target, true );
+});
+
+})( jQuery );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.checkboxradio.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.checkboxradio.js
new file mode 100644 (file)
index 0000000..eb4731b
--- /dev/null
@@ -0,0 +1,209 @@
+/*
+* "checkboxradio" plugin
+*/
+
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Consistent styling for checkboxes/radio buttons.
+//>>label: Checkboxes & Radio Buttons
+//>>group: Forms
+//>>css: ../css/themes/default/jquery.mobile.theme.css,../css/structure/jquery.mobile.forms.checkboxradio.css
+
+define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.widget", "./jquery.mobile.buttonMarkup" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, undefined ) {
+
+$.widget( "mobile.checkboxradio", $.mobile.widget, {
+       options: {
+               theme: null,
+               initSelector: "input[type='checkbox'],input[type='radio']"
+       },
+       _create: function() {
+               var self = this,
+                       input = this.element,
+                       inheritAttr = function( input, dataAttr ) {
+                               return input.jqmData( dataAttr ) || input.closest( "form,fieldset" ).jqmData( dataAttr )
+                       },
+                       // NOTE: Windows Phone could not find the label through a selector
+                       // filter works though.
+                       parentLabel = $( input ).closest( "label" ),
+                       label = parentLabel.length ? parentLabel : $( input ).closest( "form,fieldset,:jqmData(role='page'),:jqmData(role='dialog')" ).find( "label" ).filter( "[for='" + input[0].id + "']" ),
+                       inputtype = input[0].type,
+                       mini = inheritAttr( input, "mini" ),
+                       checkedState = inputtype + "-on",
+                       uncheckedState = inputtype + "-off",
+                       icon = input.parents( ":jqmData(type='horizontal')" ).length ? undefined : uncheckedState,
+                       iconpos = inheritAttr( input, "iconpos" ),
+                       activeBtn = icon ? "" : " " + $.mobile.activeBtnClass,
+                       checkedClass = "ui-" + checkedState + activeBtn,
+                       uncheckedClass = "ui-" + uncheckedState,
+                       checkedicon = "ui-icon-" + checkedState,
+                       uncheckedicon = "ui-icon-" + uncheckedState;
+
+               if ( inputtype !== "checkbox" && inputtype !== "radio" ) {
+                       return;
+               }
+
+               // Expose for other methods
+               $.extend( this, {
+                       label: label,
+                       inputtype: inputtype,
+                       checkedClass: checkedClass,
+                       uncheckedClass: uncheckedClass,
+                       checkedicon: checkedicon,
+                       uncheckedicon: uncheckedicon
+               });
+
+               // If there's no selected theme check the data attr
+               if( !this.options.theme ) {
+                       this.options.theme = $.mobile.getInheritedTheme( this.element, "c" );
+               }
+
+               label.buttonMarkup({
+                       theme: this.options.theme,
+                       icon: icon,
+                       shadow: false,
+                       mini: mini,
+                       iconpos: iconpos
+               });
+
+               // Wrap the input + label in a div
+               var wrapper = document.createElement('div');
+               wrapper.className = 'ui-' + inputtype;
+
+               input.add( label ).wrapAll( wrapper );
+
+               label.bind({
+                       vmouseover: function( event ) {
+                               if ( $( this ).parent().is( ".ui-disabled" ) ) {
+                                       event.stopPropagation();
+                               }
+                       },
+
+                       vclick: function( event ) {
+                               if ( input.is( ":disabled" ) ) {
+                                       event.preventDefault();
+                                       return;
+                               }
+
+                               self._cacheVals();
+
+                               input.prop( "checked", inputtype === "radio" && true || !input.prop( "checked" ) );
+
+                               // trigger click handler's bound directly to the input as a substitute for
+                               // how label clicks behave normally in the browsers
+                               // TODO: it would be nice to let the browser's handle the clicks and pass them
+                               //       through to the associate input. we can swallow that click at the parent
+                               //       wrapper element level
+                               input.triggerHandler( 'click' );
+
+                               // Input set for common radio buttons will contain all the radio
+                               // buttons, but will not for checkboxes. clearing the checked status
+                               // of other radios ensures the active button state is applied properly
+                               self._getInputSet().not( input ).prop( "checked", false );
+
+                               self._updateAll();
+                               return false;
+                       }
+               });
+
+               input
+                       .bind({
+                               vmousedown: function() {
+                                       self._cacheVals();
+                               },
+
+                               vclick: function() {
+                                       var $this = $(this);
+
+                                       // Adds checked attribute to checked input when keyboard is used
+                                       if ( $this.is( ":checked" ) ) {
+
+                                               $this.prop( "checked", true);
+                                               self._getInputSet().not($this).prop( "checked", false );
+                                       } else {
+
+                                               $this.prop( "checked", false );
+                                       }
+
+                                       self._updateAll();
+                               },
+
+                               focus: function() {
+                                       label.addClass( $.mobile.focusClass );
+                               },
+
+                               blur: function() {
+                                       label.removeClass( $.mobile.focusClass );
+                               }
+                       });
+
+               this.refresh();
+       },
+
+       _cacheVals: function() {
+               this._getInputSet().each(function() {
+                       $(this).jqmData( "cacheVal", this.checked );
+               });
+       },
+
+       //returns either a set of radios with the same name attribute, or a single checkbox
+       _getInputSet: function(){
+               if(this.inputtype === "checkbox") {
+                       return this.element;
+               }
+
+               return this.element.closest( "form,fieldset,:jqmData(role='page')" )
+                       .find( "input[name='"+ this.element[0].name +"'][type='"+ this.inputtype +"']" );
+       },
+
+       _updateAll: function() {
+               var self = this;
+
+               this._getInputSet().each(function() {
+                       var $this = $(this);
+
+                       if ( this.checked || self.inputtype === "checkbox" ) {
+                               $this.trigger( "change" );
+                       }
+               })
+               .checkboxradio( "refresh" );
+       },
+
+       refresh: function() {
+               var input = this.element[0],
+                       label = this.label,
+                       icon = label.find( ".ui-icon" );
+
+               if ( input.checked ) {
+                       label.addClass( this.checkedClass ).removeClass( this.uncheckedClass );
+                       icon.addClass( this.checkedicon ).removeClass( this.uncheckedicon );
+               } else {
+                       label.removeClass( this.checkedClass ).addClass( this.uncheckedClass );
+                       icon.removeClass( this.checkedicon ).addClass( this.uncheckedicon );
+               }
+
+               if ( input.disabled ) {
+                       this.disable();
+               } else {
+                       this.enable();
+               }
+       },
+
+       disable: function() {
+               this.element.prop( "disabled", true ).parent().addClass( "ui-disabled" );
+       },
+
+       enable: function() {
+               this.element.prop( "disabled", false ).parent().removeClass( "ui-disabled" );
+       }
+});
+
+//auto self-init widgets
+$( document ).bind( "pagecreate create", function( e ){
+       $.mobile.checkboxradio.prototype.enhanceWithin( e.target, true );
+});
+
+})( jQuery );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.select.custom.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.select.custom.js
new file mode 100644 (file)
index 0000000..124c704
--- /dev/null
@@ -0,0 +1,545 @@
+/*
+* custom "selectmenu" plugin
+*/
+
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Extension to select menus to support menu styling, placeholder options, and multi-select features. 
+//>>label: Selects: Custom menus
+//>>group: Forms
+//>>css: ../css/themes/default/jquery.mobile.theme.css, ../css/structure/jquery.mobile.forms.select.css
+
+define( [
+       "jquery",
+       "./jquery.mobile.buttonMarkup",
+       "./jquery.mobile.core",
+       "./jquery.mobile.dialog",
+       "./jquery.mobile.forms.select",
+       "./jquery.mobile.listview",
+       "./jquery.mobile.page",
+       // NOTE expects ui content in the defined page, see selector for menuPageContent definition
+       "./jquery.mobile.page.sections" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, undefined ) {
+       var extendSelect = function( widget ){
+
+               var select = widget.select,
+                       selectID  = widget.selectID,
+                       label = widget.label,
+                       thisPage = widget.select.closest( ".ui-page" ),
+                       screen = $( "<div>", {"class": "ui-selectmenu-screen ui-screen-hidden"} ).appendTo( thisPage ),
+                       selectOptions = widget._selectOptions(),
+                       isMultiple = widget.isMultiple = widget.select[ 0 ].multiple,
+                       buttonId = selectID + "-button",
+                       menuId = selectID + "-menu",
+                       menuPage = $( "<div data-" + $.mobile.ns + "role='dialog' data-" +$.mobile.ns + "theme='"+ widget.options.theme +"' data-" +$.mobile.ns + "overlay-theme='"+ widget.options.overlayTheme +"'>" +
+                               "<div data-" + $.mobile.ns + "role='header'>" +
+                               "<div class='ui-title'>" + label.getEncodedText() + "</div>"+
+                               "</div>"+
+                               "<div data-" + $.mobile.ns + "role='content'></div>"+
+                               "</div>" ),
+
+                       listbox =  $("<div>", { "class": "ui-selectmenu ui-selectmenu-hidden ui-overlay-shadow ui-corner-all ui-body-" + widget.options.overlayTheme + " " + $.mobile.defaultDialogTransition } ).insertAfter(screen),
+
+                       list = $( "<ul>", {
+                               "class": "ui-selectmenu-list",
+                               "id": menuId,
+                               "role": "listbox",
+                               "aria-labelledby": buttonId
+                       }).attr( "data-" + $.mobile.ns + "theme", widget.options.theme ).appendTo( listbox ),
+
+                       header = $( "<div>", {
+                               "class": "ui-header ui-bar-" + widget.options.theme
+                       }).prependTo( listbox ),
+
+                       headerTitle = $( "<h1>", {
+                               "class": "ui-title"
+                       }).appendTo( header ),
+
+                       menuPageContent,
+                       menuPageClose,
+                       headerClose;
+
+               if( widget.isMultiple ) {
+                       headerClose = $( "<a>", {
+                               "text": widget.options.closeText,
+                               "href": "#",
+                               "class": "ui-btn-left"
+                       }).attr( "data-" + $.mobile.ns + "iconpos", "notext" ).attr( "data-" + $.mobile.ns + "icon", "delete" ).appendTo( header ).buttonMarkup();
+               }
+
+               $.extend( widget, {
+                       select: widget.select,
+                       selectID: selectID,
+                       buttonId: buttonId,
+                       menuId: menuId,
+                       thisPage: thisPage,
+                       menuPage: menuPage,
+                       label: label,
+                       screen: screen,
+                       selectOptions: selectOptions,
+                       isMultiple: isMultiple,
+                       theme: widget.options.theme,
+                       listbox: listbox,
+                       list: list,
+                       header: header,
+                       headerTitle: headerTitle,
+                       headerClose: headerClose,
+                       menuPageContent: menuPageContent,
+                       menuPageClose: menuPageClose,
+                       placeholder: "",
+
+                       build: function() {
+                               var self = this;
+
+                               // Create list from select, update state
+                               self.refresh();
+
+                               self.select.attr( "tabindex", "-1" ).focus(function() {
+                                       $( this ).blur();
+                                       self.button.focus();
+                               });
+
+                               // Button events
+                               self.button.bind( "vclick keydown" , function( event ) {
+                                       if ( event.type == "vclick" ||
+                                                        event.keyCode && ( event.keyCode === $.mobile.keyCode.ENTER ||
+                                                                                                                                       event.keyCode === $.mobile.keyCode.SPACE ) ) {
+
+                                               self.open();
+                                               event.preventDefault();
+                                       }
+                               });
+
+                               // Events for list items
+                               self.list.attr( "role", "listbox" )
+                                       .bind( "focusin", function( e ){
+                                               $( e.target )
+                                                       .attr( "tabindex", "0" )
+                                                       .trigger( "vmouseover" );
+
+                                       })
+                                       .bind( "focusout", function( e ){
+                                               $( e.target )
+                                                       .attr( "tabindex", "-1" )
+                                                       .trigger( "vmouseout" );
+                                       })
+                                       .delegate( "li:not(.ui-disabled, .ui-li-divider)", "click", function( event ) {
+
+                                               // index of option tag to be selected
+                                               var oldIndex = self.select[ 0 ].selectedIndex,
+                                                       newIndex = self.list.find( "li:not(.ui-li-divider)" ).index( this ),
+                                                       option = self._selectOptions().eq( newIndex )[ 0 ];
+
+                                               // toggle selected status on the tag for multi selects
+                                               option.selected = self.isMultiple ? !option.selected : true;
+
+                                               // toggle checkbox class for multiple selects
+                                               if ( self.isMultiple ) {
+                                                       $( this ).find( ".ui-icon" )
+                                                               .toggleClass( "ui-icon-checkbox-on", option.selected )
+                                                               .toggleClass( "ui-icon-checkbox-off", !option.selected );
+                                               }
+
+                                               // trigger change if value changed
+                                               if ( self.isMultiple || oldIndex !== newIndex ) {
+                                                       self.select.trigger( "change" );
+                                               }
+
+                                               //hide custom select for single selects only
+                                               if ( !self.isMultiple ) {
+                                                       self.close();
+                                               }
+
+                                               event.preventDefault();
+                                       })
+                                       .keydown(function( event ) {  //keyboard events for menu items
+                                               var target = $( event.target ),
+                                                       li = target.closest( "li" ),
+                                                       prev, next;
+
+                                               // switch logic based on which key was pressed
+                                               switch ( event.keyCode ) {
+                                                       // up or left arrow keys
+                                                case 38:
+                                                       prev = li.prev().not( ".ui-selectmenu-placeholder" );
+
+                                                       if( prev.is( ".ui-li-divider" ) ) {
+                                                               prev = prev.prev();
+                                                       }
+
+                                                       // if there's a previous option, focus it
+                                                       if ( prev.length ) {
+                                                               target
+                                                                       .blur()
+                                                                       .attr( "tabindex", "-1" );
+
+                                                               prev.addClass( "ui-btn-down-" + widget.options.theme ).find( "a" ).first().focus();
+                                                       }
+
+                                                       return false;
+                                                       break;
+
+                                                       // down or right arrow keys
+                                                case 40:
+                                                       next = li.next();
+
+                                                       if( next.is( ".ui-li-divider" ) ) {
+                                                               next = next.next();
+                                                       }
+
+                                                       // if there's a next option, focus it
+                                                       if ( next.length ) {
+                                                               target
+                                                                       .blur()
+                                                                       .attr( "tabindex", "-1" );
+
+                                                               next.addClass( "ui-btn-down-" + widget.options.theme ).find( "a" ).first().focus();
+                                                       }
+
+                                                       return false;
+                                                       break;
+
+                                                       // If enter or space is pressed, trigger click
+                                                case 13:
+                                                case 32:
+                                                       target.trigger( "click" );
+
+                                                       return false;
+                                                       break;
+                                               }
+                                       });
+
+                               // button refocus ensures proper height calculation
+                               // by removing the inline style and ensuring page inclusion
+                               self.menuPage.bind( "pagehide", function() {
+                                       self.list.appendTo( self.listbox );
+                                       self._focusButton();
+
+                                       // TODO centralize page removal binding / handling in the page plugin.
+                                       // Suggestion from @jblas to do refcounting
+                                       //
+                                       // TODO extremely confusing dependency on the open method where the pagehide.remove
+                                       // bindings are stripped to prevent the parent page from disappearing. The way
+                                       // we're keeping pages in the DOM right now sucks
+                                       //
+                                       // rebind the page remove that was unbound in the open function
+                                       // to allow for the parent page removal from actions other than the use
+                                       // of a dialog sized custom select
+                                       //
+                                       // doing this here provides for the back button on the custom select dialog
+                                       $.mobile._bindPageRemove.call( self.thisPage );
+                               });
+
+                               // Events on "screen" overlay
+                               self.screen.bind( "vclick", function( event ) {
+                                       self.close();
+                               });
+
+                               // Close button on small overlays
+                               if( self.isMultiple ){
+                                       self.headerClose.click( function() {
+                                               if ( self.menuType == "overlay" ) {
+                                                       self.close();
+                                                       return false;
+                                               }
+                                       });
+                               }
+
+                               // track this dependency so that when the parent page
+                               // is removed on pagehide it will also remove the menupage
+                               self.thisPage.addDependents( this.menuPage );
+                       },
+
+                       _isRebuildRequired: function() {
+                               var list = this.list.find( "li" ),
+                                       options = this._selectOptions();
+
+                               // TODO exceedingly naive method to determine difference
+                               // ignores value changes etc in favor of a forcedRebuild
+                               // from the user in the refresh method
+                               return options.text() !== list.text();
+                       },
+
+                       refresh: function( forceRebuild , foo ){
+                               var self = this,
+                               select = this.element,
+                               isMultiple = this.isMultiple,
+                               options = this._selectOptions(),
+                               selected = this.selected(),
+                               // return an array of all selected index's
+                               indicies = this.selectedIndices();
+
+                               if (  forceRebuild || this._isRebuildRequired() ) {
+                                       self._buildList();
+                               }
+
+                               self.setButtonText();
+                               self.setButtonCount();
+
+                               self.list.find( "li:not(.ui-li-divider)" )
+                                       .removeClass( $.mobile.activeBtnClass )
+                                       .attr( "aria-selected", false )
+                                       .each(function( i ) {
+
+                                               if ( $.inArray( i, indicies ) > -1 ) {
+                                                       var item = $( this );
+
+                                                       // Aria selected attr
+                                                       item.attr( "aria-selected", true );
+
+                                                       // Multiple selects: add the "on" checkbox state to the icon
+                                                       if ( self.isMultiple ) {
+                                                               item.find( ".ui-icon" ).removeClass( "ui-icon-checkbox-off" ).addClass( "ui-icon-checkbox-on" );
+                                                       } else {
+                                                               if( item.is( ".ui-selectmenu-placeholder" ) ) {
+                                                                       item.next().addClass( $.mobile.activeBtnClass );
+                                                               } else {
+                                                                       item.addClass( $.mobile.activeBtnClass );
+                                                               }
+                                                       }
+                                               }
+                                       });
+                       },
+
+                       close: function() {
+                               if ( this.options.disabled || !this.isOpen ) {
+                                       return;
+                               }
+
+                               var self = this;
+
+                               if ( self.menuType == "page" ) {
+                                       // doesn't solve the possible issue with calling change page
+                                       // where the objects don't define data urls which prevents dialog key
+                                       // stripping - changePage has incoming refactor
+                                       window.history.back();
+                               } else {
+                                       self.screen.addClass( "ui-screen-hidden" );
+                                       self.listbox.addClass( "ui-selectmenu-hidden" ).removeAttr( "style" ).removeClass( "in" );
+                                       self.list.appendTo( self.listbox );
+                                       self._focusButton();
+                               }
+
+                               // allow the dialog to be closed again
+                               self.isOpen = false;
+                       },
+
+                       open: function() {
+                               if ( this.options.disabled ) {
+                                       return;
+                               }
+
+                               var self = this,
+          $window = $( window ),
+          selfListParent = self.list.parent(),
+                                       menuHeight = selfListParent.outerHeight(),
+                                       menuWidth = selfListParent.outerWidth(),
+                                       activePage = $( ".ui-page-active" ),
+                                       tScrollElem = activePage,
+                                       scrollTop = $window.scrollTop(),
+                                       btnOffset = self.button.offset().top,
+                                       screenHeight = $window.height(),
+                                       screenWidth = $window.width();
+
+                               //add active class to button
+                               self.button.addClass( $.mobile.activeBtnClass );
+
+                               //remove after delay
+                               setTimeout( function() {
+                                       self.button.removeClass( $.mobile.activeBtnClass );
+                               }, 300);
+
+                               function focusMenuItem() {
+                                       self.list.find( "." + $.mobile.activeBtnClass + " a" ).focus();
+                               }
+
+                               if ( menuHeight > screenHeight - 80 || !$.support.scrollTop ) {
+
+                                       self.menuPage.appendTo( $.mobile.pageContainer ).page();
+                                       self.menuPageContent = menuPage.find( ".ui-content" );
+                                       self.menuPageClose = menuPage.find( ".ui-header a" );
+
+                                       // prevent the parent page from being removed from the DOM,
+                                       // otherwise the results of selecting a list item in the dialog
+                                       // fall into a black hole
+                                       self.thisPage.unbind( "pagehide.remove" );
+
+                                       //for WebOS/Opera Mini (set lastscroll using button offset)
+                                       if ( scrollTop == 0 && btnOffset > screenHeight ) {
+                                               self.thisPage.one( "pagehide", function() {
+                                                       $( this ).jqmData( "lastScroll", btnOffset );
+                                               });
+                                       }
+
+                                       self.menuPage.one( "pageshow", function() {
+                                               focusMenuItem();
+                                               self.isOpen = true;
+                                       });
+
+                                       self.menuType = "page";
+                                       self.menuPageContent.append( self.list );
+                                       self.menuPage.find("div .ui-title").text(self.label.text());
+                                       $.mobile.changePage( self.menuPage, {
+                                               transition: $.mobile.defaultDialogTransition
+                                       });
+                               } else {
+                                       self.menuType = "overlay";
+
+                                       self.screen.height( $(document).height() )
+                                               .removeClass( "ui-screen-hidden" );
+
+                                       // Try and center the overlay over the button
+                                       var roomtop = btnOffset - scrollTop,
+                                               roombot = scrollTop + screenHeight - btnOffset,
+                                               halfheight = menuHeight / 2,
+                                               maxwidth = parseFloat( self.list.parent().css( "max-width" ) ),
+                                               newtop, newleft;
+
+                                       if ( roomtop > menuHeight / 2 && roombot > menuHeight / 2 ) {
+                                               newtop = btnOffset + ( self.button.outerHeight() / 2 ) - halfheight;
+                                       } else {
+                                               // 30px tolerance off the edges
+                                               newtop = roomtop > roombot ? scrollTop + screenHeight - menuHeight - 30 : scrollTop + 30;
+                                       }
+
+                                       // If the menuwidth is smaller than the screen center is
+                                       if ( menuWidth < maxwidth ) {
+                                               newleft = ( screenWidth - menuWidth ) / 2;
+                                       } else {
+
+                                               //otherwise insure a >= 30px offset from the left
+                                               newleft = self.button.offset().left + self.button.outerWidth() / 2 - menuWidth / 2;
+
+                                               // 30px tolerance off the edges
+                                               if ( newleft < 30 ) {
+                                                       newleft = 30;
+                                               } else if ( (newleft + menuWidth) > screenWidth ) {
+                                                       newleft = screenWidth - menuWidth - 30;
+                                               }
+                                       }
+
+                                       self.listbox.append( self.list )
+                                               .removeClass( "ui-selectmenu-hidden" )
+                                               .css({
+                                                       top: newtop,
+                                                       left: newleft
+                                               })
+                                               .addClass( "in" );
+
+                                       focusMenuItem();
+
+                                       // duplicate with value set in page show for dialog sized selects
+                                       self.isOpen = true;
+                               }
+                       },
+
+                       _buildList: function() {
+                               var self = this,
+                                       o = this.options,
+                                       placeholder = this.placeholder,
+                                       needPlaceholder = true,
+                                       optgroups = [],
+                                       lis = [],
+                                       dataIcon = self.isMultiple ? "checkbox-off" : "false";
+
+                               self.list.empty().filter( ".ui-listview" ).listview( "destroy" );
+
+                               var $options = self.select.find("option"),
+                                       numOptions = $options.length,
+                                       select = this.select[ 0 ],
+                                       dataPrefix = 'data-' + $.mobile.ns,
+                                       dataIndexAttr = dataPrefix + 'option-index',
+                                       dataIconAttr = dataPrefix + 'icon',
+                                       dataRoleAttr = dataPrefix + 'role',
+                                       fragment = document.createDocumentFragment(),
+                                       optGroup;
+
+                               for (var i = 0; i < numOptions;i++){
+                                       var option = $options[i],
+                                               $option = $(option),
+                                               parent = option.parentNode,
+                                               text = $option.text(),
+                                               anchor  = document.createElement('a'),
+                                               classes = [];
+
+                                       anchor.setAttribute('href','#');
+                                       anchor.appendChild(document.createTextNode(text));
+
+                                       // Are we inside an optgroup?
+                                       if (parent !== select && parent.nodeName.toLowerCase() === "optgroup"){
+                                               var optLabel = parent.getAttribute('label');
+                                               if ( optLabel != optGroup) {
+                                                       var divider = document.createElement('li');
+                                                       divider.setAttribute(dataRoleAttr,'list-divider');
+                                                       divider.setAttribute('role','option');
+                                                       divider.setAttribute('tabindex','-1');
+                                                       divider.appendChild(document.createTextNode(optLabel));
+                                                       fragment.appendChild(divider);
+                                                       optGroup = optLabel;
+                                               }
+                                       }
+
+                                       if (needPlaceholder && (!option.getAttribute( "value" ) || text.length == 0 || $option.jqmData( "placeholder" ))) {
+                                               needPlaceholder = false;
+                                               if ( o.hidePlaceholderMenuItems ) {
+                                                       classes.push( "ui-selectmenu-placeholder" );
+                                               }
+                                               if (!placeholder) {
+                                                       placeholder = self.placeholder = text;
+                                               }
+                                       }
+
+                                       var item = document.createElement('li');
+                                       if ( option.disabled ) {
+                                               classes.push( "ui-disabled" );
+                                               item.setAttribute('aria-disabled',true);
+                                       }
+                                       item.setAttribute(dataIndexAttr,i);
+                                       item.setAttribute(dataIconAttr,dataIcon);
+                                       item.className = classes.join(" ");
+                                       item.setAttribute('role','option');
+                                       anchor.setAttribute('tabindex','-1');
+                                       item.appendChild(anchor);
+                                       fragment.appendChild(item);
+                               }
+
+                               self.list[0].appendChild(fragment);
+
+                               // Hide header if it's not a multiselect and there's no placeholder
+                               if ( !this.isMultiple && !placeholder.length ) {
+                                       this.header.hide();
+                               } else {
+                                       this.headerTitle.text( this.placeholder );
+                               }
+
+                               // Now populated, create listview
+                               self.list.listview();
+                       },
+
+                       _button: function(){
+                               return $( "<a>", {
+                                       "href": "#",
+                                       "role": "button",
+                                       // TODO value is undefined at creation
+                                       "id": this.buttonId,
+                                       "aria-haspopup": "true",
+
+                                       // TODO value is undefined at creation
+                                       "aria-owns": this.menuId
+                               });
+                       }
+               });
+       };
+
+       // issue #3894 - core doesn't triggered events on disabled delegates
+       $( document ).bind( "selectmenubeforecreate", function( event ){
+               var selectmenuWidget = $( event.target ).data( "selectmenu" );
+
+               if( !selectmenuWidget.options.nativeMenu ){
+                       extendSelect( selectmenuWidget );
+               }
+       });
+})( jQuery );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.select.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.select.js
new file mode 100644 (file)
index 0000000..65c121e
--- /dev/null
@@ -0,0 +1,246 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Consistent styling for native select menus. Tapping opens a native select menu.
+//>>label: Selects
+//>>group: Forms
+//>>css: ../css/themes/default/jquery.mobile.theme.css, ../css/structure/jquery.mobile.forms.select.css
+
+define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.widget", "./jquery.mobile.buttonMarkup", "./jquery.mobile.zoom" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, undefined ) {
+
+$.widget( "mobile.selectmenu", $.mobile.widget, {
+       options: {
+               theme: null,
+               disabled: false,
+               icon: "arrow-d",
+               iconpos: "right",
+               inline: false,
+               corners: true,
+               shadow: true,
+               iconshadow: true,
+               overlayTheme: "a",
+               hidePlaceholderMenuItems: true,
+               closeText: "Close",
+               nativeMenu: true,
+               // This option defaults to true on iOS devices.
+               preventFocusZoom: /iPhone|iPad|iPod/.test( navigator.platform ) && navigator.userAgent.indexOf( "AppleWebKit" ) > -1,
+               initSelector: "select:not(:jqmData(role='slider'))",
+               mini: false
+       },
+
+       _button: function(){
+               return $( "<div/>" );
+       },
+
+       _setDisabled: function( value ) {
+               this.element.attr( "disabled", value );
+               this.button.attr( "aria-disabled", value );
+               return this._setOption( "disabled", value );
+       },
+
+       _focusButton : function() {
+               var self = this;
+
+               setTimeout( function() {
+                       self.button.focus();
+               }, 40);
+       },
+
+  _selectOptions: function() {
+    return this.select.find( "option" );
+  },
+
+       // setup items that are generally necessary for select menu extension
+       _preExtension: function(){
+               var classes = "";
+               // TODO: Post 1.1--once we have time to test thoroughly--any classes manually applied to the original element should be carried over to the enhanced element, with an `-enhanced` suffix. See https://github.com/jquery/jquery-mobile/issues/3577
+               /* if( $el[0].className.length ) {
+                       classes = $el[0].className;
+               } */
+               if( !!~this.element[0].className.indexOf( "ui-btn-left" ) ) {
+                       classes =  " ui-btn-left";
+               }
+               
+               if(  !!~this.element[0].className.indexOf( "ui-btn-right" ) ) {
+                       classes = " ui-btn-right";
+               }
+               
+               this.select = this.element.wrap( "<div class='ui-select" + classes + "'>" );
+               this.selectID  = this.select.attr( "id" );
+               this.label = $( "label[for='"+ this.selectID +"']" ).addClass( "ui-select" );
+               this.isMultiple = this.select[ 0 ].multiple;
+               if ( !this.options.theme ) {
+                       this.options.theme = $.mobile.getInheritedTheme( this.select, "c" );
+               }
+       },
+
+       _create: function() {
+               this._preExtension();
+
+               // Allows for extension of the native select for custom selects and other plugins
+               // see select.custom for example extension
+               // TODO explore plugin registration
+               this._trigger( "beforeCreate" );
+
+               this.button = this._button();
+
+               var self = this,
+
+                       options = this.options,
+
+                       // IE throws an exception at options.item() function when
+                       // there is no selected item
+                       // select first in this case
+                       selectedIndex = this.select[ 0 ].selectedIndex == -1 ? 0 : this.select[ 0 ].selectedIndex,
+
+                       // TODO values buttonId and menuId are undefined here
+                       button = this.button
+                               .text( $( this.select[ 0 ].options.item( selectedIndex ) ).text() )
+                               .insertBefore( this.select )
+                               .buttonMarkup( {
+                                       theme: options.theme,
+                                       icon: options.icon,
+                                       iconpos: options.iconpos,
+                                       inline: options.inline,
+                                       corners: options.corners,
+                                       shadow: options.shadow,
+                                       iconshadow: options.iconshadow,
+                                       mini: options.mini
+                               });
+
+               // Opera does not properly support opacity on select elements
+               // In Mini, it hides the element, but not its text
+               // On the desktop,it seems to do the opposite
+               // for these reasons, using the nativeMenu option results in a full native select in Opera
+               if ( options.nativeMenu && window.opera && window.opera.version ) {
+                       this.select.addClass( "ui-select-nativeonly" );
+               }
+
+               // Add counter for multi selects
+               if ( this.isMultiple ) {
+                       this.buttonCount = $( "<span>" )
+                               .addClass( "ui-li-count ui-btn-up-c ui-btn-corner-all" )
+                               .hide()
+                               .appendTo( button.addClass('ui-li-has-count') );
+               }
+
+               // Disable if specified
+               if ( options.disabled || this.element.attr('disabled')) {
+                       this.disable();
+               }
+
+               // Events on native select
+               this.select.change( function() {
+                       self.refresh();
+               });
+
+               this.build();
+       },
+
+       build: function() {
+               var self = this;
+
+               this.select
+                       .appendTo( self.button )
+                       .bind( "vmousedown", function() {
+                               // Add active class to button
+                               self.button.addClass( $.mobile.activeBtnClass );
+                       })
+            .bind( "focus", function() {
+                self.button.addClass( $.mobile.focusClass );
+            })
+            .bind( "blur", function() {
+                self.button.removeClass( $.mobile.focusClass );
+            })
+                       .bind( "focus vmouseover", function() {
+                               self.button.trigger( "vmouseover" );
+                       })
+                       .bind( "vmousemove", function() {
+                               // Remove active class on scroll/touchmove
+                               self.button.removeClass( $.mobile.activeBtnClass );
+                       })
+                       .bind( "change blur vmouseout", function() {
+                               self.button.trigger( "vmouseout" )
+                                       .removeClass( $.mobile.activeBtnClass );
+                       })
+                       .bind( "change blur", function() {
+                               self.button.removeClass( "ui-btn-down-" + self.options.theme );
+                       });
+
+               // In many situations, iOS will zoom into the select upon tap, this prevents that from happening
+               self.button.bind( "vmousedown", function() {
+                       if( self.options.preventFocusZoom ){
+                               $.mobile.zoom.disable( true );
+                       }
+               })
+               .bind( "mouseup", function() {
+                       if( self.options.preventFocusZoom ){
+                               $.mobile.zoom.enable( true );
+                       }
+               });
+       },
+
+       selected: function() {
+               return this._selectOptions().filter( ":selected" );
+       },
+
+       selectedIndices: function() {
+               var self = this;
+
+               return this.selected().map( function() {
+                       return self._selectOptions().index( this );
+               }).get();
+       },
+
+       setButtonText: function() {
+               var self = this, selected = this.selected();
+
+               this.button.find( ".ui-btn-text" ).text( function() {
+                       if ( !self.isMultiple ) {
+                               return selected.text();
+                       }
+
+                       return selected.length ? selected.map( function() {
+                               return $( this ).text();
+                       }).get().join( ", " ) : self.placeholder;
+               });
+       },
+
+       setButtonCount: function() {
+               var selected = this.selected();
+
+               // multiple count inside button
+               if ( this.isMultiple ) {
+                       this.buttonCount[ selected.length > 1 ? "show" : "hide" ]().text( selected.length );
+               }
+       },
+
+       refresh: function() {
+               this.setButtonText();
+               this.setButtonCount();
+       },
+
+       // open and close preserved in native selects
+       // to simplify users code when looping over selects
+       open: $.noop,
+       close: $.noop,
+
+       disable: function() {
+               this._setDisabled( true );
+               this.button.addClass( "ui-disabled" );
+       },
+
+       enable: function() {
+               this._setDisabled( false );
+               this.button.removeClass( "ui-disabled" );
+       }
+});
+
+//auto self-init widgets
+$( document ).bind( "pagecreate create", function( e ){
+       $.mobile.selectmenu.prototype.enhanceWithin( e.target, true );
+});
+})( jQuery );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.slider.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.slider.js
new file mode 100644 (file)
index 0000000..19a5691
--- /dev/null
@@ -0,0 +1,418 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Slider form widget
+//>>label: Slider
+//>>group: Forms
+//>>css: ../css/themes/default/jquery.mobile.theme.css, ../css/structure/jquery.mobile.forms.slider.css
+
+define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.widget", "./jquery.mobile.forms.textinput", "./jquery.mobile.buttonMarkup" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+( function( $, undefined ) {
+
+$.widget( "mobile.slider", $.mobile.widget, {
+       options: {
+               theme: null,
+               trackTheme: null,
+               disabled: false,
+               initSelector: "input[type='range'], :jqmData(type='range'), :jqmData(role='slider')",
+               mini: false
+       },
+
+       _create: function() {
+
+               // TODO: Each of these should have comments explain what they're for
+               var self = this,
+
+                       control = this.element,
+
+                       parentTheme = $.mobile.getInheritedTheme( control, "c" ),
+
+                       theme = this.options.theme || parentTheme,
+
+                       trackTheme = this.options.trackTheme || parentTheme,
+
+                       cType = control[ 0 ].nodeName.toLowerCase(),
+
+                       selectClass = ( cType == "select" ) ? "ui-slider-switch" : "",
+
+                       controlID = control.attr( "id" ),
+
+                       labelID = controlID + "-label",
+
+                       label = $( "[for='"+ controlID +"']" ).attr( "id", labelID ),
+
+                       val = function() {
+                               return  cType == "input"  ? parseFloat( control.val() ) : control[0].selectedIndex;
+                       },
+
+                       min =  cType == "input" ? parseFloat( control.attr( "min" ) ) : 0,
+
+                       max =  cType == "input" ? parseFloat( control.attr( "max" ) ) : control.find( "option" ).length-1,
+
+                       step = window.parseFloat( control.attr( "step" ) || 1 ),
+
+                       inlineClass = ( this.options.inline || control.jqmData("inline") == true ) ? " ui-slider-inline" : "",
+
+                       miniClass = ( this.options.mini || control.jqmData("mini") ) ? " ui-slider-mini" : "",
+
+
+                       domHandle = document.createElement('a'),
+                       handle = $( domHandle ),
+                       domSlider = document.createElement('div'),
+                       slider = $( domSlider ),
+
+                       valuebg = control.jqmData("highlight") && cType != "select" ? (function() {
+                               var bg = document.createElement('div');
+                               bg.className = 'ui-slider-bg ui-btn-active ui-btn-corner-all';
+                               return $( bg ).prependTo( slider );
+                       })() : false,
+
+                       options;
+
+        domHandle.setAttribute( 'href', "#" );
+               domSlider.setAttribute('role','application');
+               domSlider.className = ['ui-slider ',selectClass," ui-btn-down-",trackTheme,' ui-btn-corner-all', inlineClass, miniClass].join("");
+               domHandle.className = 'ui-slider-handle';
+               domSlider.appendChild(domHandle);
+
+               handle.buttonMarkup({ corners: true, theme: theme, shadow: true })
+                               .attr({
+                                       "role": "slider",
+                                       "aria-valuemin": min,
+                                       "aria-valuemax": max,
+                                       "aria-valuenow": val(),
+                                       "aria-valuetext": val(),
+                                       "title": val(),
+                                       "aria-labelledby": labelID
+                               });
+
+               $.extend( this, {
+                       slider: slider,
+                       handle: handle,
+                       valuebg: valuebg,
+                       dragging: false,
+                       beforeStart: null,
+                       userModified: false,
+                       mouseMoved: false
+               });
+
+               if ( cType == "select" ) {
+                       var wrapper = document.createElement('div');
+                       wrapper.className = 'ui-slider-inneroffset';
+
+                       for(var j = 0,length = domSlider.childNodes.length;j < length;j++){
+                               wrapper.appendChild(domSlider.childNodes[j]);
+                       }
+
+                       domSlider.appendChild(wrapper);
+
+                       // slider.wrapInner( "<div class='ui-slider-inneroffset'></div>" );
+
+                       // make the handle move with a smooth transition
+                       handle.addClass( "ui-slider-handle-snapping" );
+
+                       options = control.find( "option" );
+
+                       for(var i = 0, optionsCount = options.length; i < optionsCount; i++){
+                               var side = !i ? "b":"a",
+                                       sliderTheme = !i ? " ui-btn-down-" + trackTheme :( " " + $.mobile.activeBtnClass ),
+                                       sliderLabel = document.createElement('div'),
+                                       sliderImg = document.createElement('span');
+
+                               sliderImg.className = ['ui-slider-label ui-slider-label-',side,sliderTheme," ui-btn-corner-all"].join("");
+                               sliderImg.setAttribute('role','img');
+                               sliderImg.appendChild(document.createTextNode(options[i].innerHTML));
+                               $(sliderImg).prependTo( slider );
+                       }
+
+                       self._labels = $( ".ui-slider-label", slider );
+
+               }
+
+               label.addClass( "ui-slider" );
+
+               // monitor the input for updated values
+               control.addClass( cType === "input" ? "ui-slider-input" : "ui-slider-switch" )
+                       .change( function() {
+                               // if the user dragged the handle, the "change" event was triggered from inside refresh(); don't call refresh() again
+                               if (!self.mouseMoved) {
+                                       self.refresh( val(), true );
+                               }
+                       })
+                       .keyup( function() { // necessary?
+                               self.refresh( val(), true, true );
+                       })
+                       .blur( function() {
+                               self.refresh( val(), true );
+                       });
+
+               // prevent screen drag when slider activated
+               $( document ).bind( "vmousemove", function( event ) {
+                       if ( self.dragging ) {
+                               // self.mouseMoved must be updated before refresh() because it will be used in the control "change" event
+                               self.mouseMoved = true;
+
+                               if ( cType === "select" ) {
+                                       // make the handle move in sync with the mouse
+                                       handle.removeClass( "ui-slider-handle-snapping" );
+                               }
+
+                               self.refresh( event );
+
+                               // only after refresh() you can calculate self.userModified
+                               self.userModified = self.beforeStart !== control[0].selectedIndex;
+                               return false;
+                       }
+               });
+
+               slider.bind( "vmousedown", function( event ) {
+                       self.dragging = true;
+                       self.userModified = false;
+                       self.mouseMoved = false;
+
+                       if ( cType === "select" ) {
+                               self.beforeStart = control[0].selectedIndex;
+                       }
+
+                       self.refresh( event );
+                       return false;
+               })
+               .bind( "vclick", false );
+
+               slider.add( document )
+                       .bind( "vmouseup", function() {
+                               if ( self.dragging ) {
+
+                                       self.dragging = false;
+
+                                       if ( cType === "select") {
+
+                                               // make the handle move with a smooth transition
+                                               handle.addClass( "ui-slider-handle-snapping" );
+
+                                               if ( self.mouseMoved ) {
+
+                                                       // this is a drag, change the value only if user dragged enough
+                                                       if ( self.userModified ) {
+                                                               self.refresh( self.beforeStart == 0 ? 1 : 0 );
+                                                       }
+                                                       else {
+                                                               self.refresh( self.beforeStart );
+                                                       }
+
+                                               }
+                                               else {
+                                                       // this is just a click, change the value
+                                                       self.refresh( self.beforeStart == 0 ? 1 : 0 );
+                                               }
+
+                                       }
+
+                                       self.mouseMoved = false;
+
+                                       return false;
+                               }
+                       });
+
+               slider.insertAfter( control );
+
+               // Only add focus class to toggle switch, sliders get it automatically from ui-btn
+               if( cType == 'select' ) {
+                       this.handle.bind({
+                               focus: function() {
+                                       slider.addClass( $.mobile.focusClass );
+                               },
+
+                               blur: function() {
+                                       slider.removeClass( $.mobile.focusClass );
+                               }
+                       });
+               }
+
+               this.handle.bind({
+                       // NOTE force focus on handle
+                       vmousedown: function() {
+                               $( this ).focus();
+                       },
+
+                       vclick: false,
+
+                       keydown: function( event ) {
+                               var index = val();
+
+                               if ( self.options.disabled ) {
+                                       return;
+                               }
+
+                               // In all cases prevent the default and mark the handle as active
+                               switch ( event.keyCode ) {
+                                       case $.mobile.keyCode.HOME:
+                                       case $.mobile.keyCode.END:
+                                       case $.mobile.keyCode.PAGE_UP:
+                                       case $.mobile.keyCode.PAGE_DOWN:
+                                       case $.mobile.keyCode.UP:
+                                       case $.mobile.keyCode.RIGHT:
+                                       case $.mobile.keyCode.DOWN:
+                                       case $.mobile.keyCode.LEFT:
+                                               event.preventDefault();
+
+                                               if ( !self._keySliding ) {
+                                                       self._keySliding = true;
+                                                       $( this ).addClass( "ui-state-active" );
+                                               }
+                                               break;
+                               }
+
+                               // move the slider according to the keypress
+                               switch ( event.keyCode ) {
+                                       case $.mobile.keyCode.HOME:
+                                               self.refresh( min );
+                                               break;
+                                       case $.mobile.keyCode.END:
+                                               self.refresh( max );
+                                               break;
+                                       case $.mobile.keyCode.PAGE_UP:
+                                       case $.mobile.keyCode.UP:
+                                       case $.mobile.keyCode.RIGHT:
+                                               self.refresh( index + step );
+                                               break;
+                                       case $.mobile.keyCode.PAGE_DOWN:
+                                       case $.mobile.keyCode.DOWN:
+                                       case $.mobile.keyCode.LEFT:
+                                               self.refresh( index - step );
+                                               break;
+                               }
+                       }, // remove active mark
+
+                       keyup: function( event ) {
+                               if ( self._keySliding ) {
+                                       self._keySliding = false;
+                                       $( this ).removeClass( "ui-state-active" );
+                               }
+                       }
+                       });
+
+               this.refresh(undefined, undefined, true);
+       },
+
+       refresh: function( val, isfromControl, preventInputUpdate ) {
+
+               if ( this.options.disabled || this.element.attr('disabled')) {
+                       this.disable();
+               }
+
+               var control = this.element, percent,
+                       cType = control[0].nodeName.toLowerCase(),
+                       min = cType === "input" ? parseFloat( control.attr( "min" ) ) : 0,
+                       max = cType === "input" ? parseFloat( control.attr( "max" ) ) : control.find( "option" ).length - 1,
+                       step = (cType === "input" && parseFloat( control.attr( "step" ) ) > 0) ? parseFloat(control.attr("step")) : 1;
+
+               if ( typeof val === "object" ) {
+                       var data = val,
+                               // a slight tolerance helped get to the ends of the slider
+                               tol = 8;
+                       if ( !this.dragging ||
+                                       data.pageX < this.slider.offset().left - tol ||
+                                       data.pageX > this.slider.offset().left + this.slider.width() + tol ) {
+                               return;
+                       }
+                       percent = Math.round( ( ( data.pageX - this.slider.offset().left ) / this.slider.width() ) * 100 );
+               } else {
+                       if ( val == null ) {
+                               val = cType === "input" ? parseFloat( control.val() || 0 ) : control[0].selectedIndex;
+                       }
+                       percent = ( parseFloat( val ) - min ) / ( max - min ) * 100;
+               }
+
+               if ( isNaN( percent ) ) {
+                       return;
+               }
+
+               if ( percent < 0 ) {
+                       percent = 0;
+               }
+
+               if ( percent > 100 ) {
+                       percent = 100;
+               }
+
+               var newval = ( percent / 100 ) * ( max - min ) + min;
+
+               //from jQuery UI slider, the following source will round to the nearest step
+               var valModStep = ( newval - min ) % step;
+               var alignValue = newval - valModStep;
+
+               if ( Math.abs( valModStep ) * 2 >= step ) {
+                       alignValue += ( valModStep > 0 ) ? step : ( -step );
+               }
+               // Since JavaScript has problems with large floats, round
+               // the final value to 5 digits after the decimal point (see jQueryUI: #4124)
+               newval = parseFloat( alignValue.toFixed(5) );
+
+               if ( newval < min ) {
+                       newval = min;
+               }
+
+               if ( newval > max ) {
+                       newval = max;
+               }
+
+               this.handle.css( "left", percent + "%" );
+               this.handle.attr( {
+                               "aria-valuenow": cType === "input" ? newval : control.find( "option" ).eq( newval ).attr( "value" ),
+                               "aria-valuetext": cType === "input" ? newval : control.find( "option" ).eq( newval ).getEncodedText(),
+                               title: cType === "input" ? newval : control.find( "option" ).eq( newval ).getEncodedText()
+                       });
+               this.valuebg && this.valuebg.css( "width", percent + "%" );
+
+               // drag the label widths
+               if ( this._labels ) {
+                       var handlePercent = this.handle.width() / this.slider.width() * 100,
+                               aPercent = percent && handlePercent + ( 100 - handlePercent ) * percent / 100,
+                               bPercent = percent === 100 ? 0 : Math.min( handlePercent + 100 - aPercent, 100 );
+
+                       this._labels.each(function(){
+                               var ab = $(this).is( ".ui-slider-label-a" );
+                               $( this ).width( ( ab ? aPercent : bPercent  ) + "%" );
+                       });
+               }
+
+               if ( !preventInputUpdate ) {
+                       var valueChanged = false;
+
+                       // update control"s value
+                       if ( cType === "input" ) {
+                               valueChanged = control.val() !== newval;
+                               control.val( newval );
+                       } else {
+                               valueChanged = control[ 0 ].selectedIndex !== newval;
+                               control[ 0 ].selectedIndex = newval;
+                       }
+                       if ( !isfromControl && valueChanged ) {
+                               control.trigger( "change" );
+                       }
+               }
+       },
+
+       enable: function() {
+               this.element.attr( "disabled", false );
+               this.slider.removeClass( "ui-disabled" ).attr( "aria-disabled", false );
+               return this._setOption( "disabled", false );
+       },
+
+       disable: function() {
+               this.element.attr( "disabled", true );
+               this.slider.addClass( "ui-disabled" ).attr( "aria-disabled", true );
+               return this._setOption( "disabled", true );
+       }
+
+});
+
+//auto self-init widgets
+$( document ).bind( "pagecreate create", function( e ){
+       $.mobile.slider.prototype.enhanceWithin( e.target, true );
+});
+
+})( jQuery );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.textinput.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.textinput.js
new file mode 100644 (file)
index 0000000..f444522
--- /dev/null
@@ -0,0 +1,154 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Enhances and consistently styles text inputs.
+//>>label: Text Inputs & Textareas
+//>>group: Forms
+//>>css: ../css/themes/default/jquery.mobile.theme.css, ../css/structure/jquery.mobile.forms.textinput.css
+
+define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.widget", "./jquery.mobile.degradeInputs", "./jquery.mobile.buttonMarkup", "./jquery.mobile.zoom"  ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, undefined ) {
+
+$.widget( "mobile.textinput", $.mobile.widget, {
+       options: {
+               theme: null,
+               // This option defaults to true on iOS devices.
+               preventFocusZoom: /iPhone|iPad|iPod/.test( navigator.platform ) && navigator.userAgent.indexOf( "AppleWebKit" ) > -1,
+               initSelector: "input[type='text'], input[type='search'], :jqmData(type='search'), input[type='number'], :jqmData(type='number'), input[type='password'], input[type='email'], input[type='url'], input[type='tel'], textarea, input[type='time'], input[type='date'], input[type='month'], input[type='week'], input[type='datetime'], input[type='datetime-local'], input[type='color'], input:not([type])",
+               clearSearchButtonText: "clear text"
+       },
+
+       _create: function() {
+
+               var input = this.element,
+                       o = this.options,
+                       theme = o.theme || $.mobile.getInheritedTheme( this.element, "c" ),
+                       themeclass  = " ui-body-" + theme,
+                       mini = input.jqmData("mini") == true,
+                       miniclass = mini ? " ui-mini" : "",
+                       focusedEl, clearbtn;
+
+               $( "label[for='" + input.attr( "id" ) + "']" ).addClass( "ui-input-text" );
+
+               focusedEl = input.addClass("ui-input-text ui-body-"+ theme );
+
+               // XXX: Temporary workaround for issue 785 (Apple bug 8910589).
+               //      Turn off autocorrect and autocomplete on non-iOS 5 devices
+               //      since the popup they use can't be dismissed by the user. Note
+               //      that we test for the presence of the feature by looking for
+               //      the autocorrect property on the input element. We currently
+               //      have no test for iOS 5 or newer so we're temporarily using
+               //      the touchOverflow support flag for jQM 1.0. Yes, I feel dirty. - jblas
+               if ( typeof input[0].autocorrect !== "undefined" && !$.support.touchOverflow ) {
+                       // Set the attribute instead of the property just in case there
+                       // is code that attempts to make modifications via HTML.
+                       input[0].setAttribute( "autocorrect", "off" );
+                       input[0].setAttribute( "autocomplete", "off" );
+               }
+
+
+               //"search" input widget
+               if ( input.is( "[type='search'],:jqmData(type='search')" ) ) {
+
+                       focusedEl = input.wrap( "<div class='ui-input-search ui-shadow-inset ui-btn-corner-all ui-btn-shadow ui-icon-searchfield" + themeclass + miniclass + "'></div>" ).parent();
+                       clearbtn = $( "<a href='#' class='ui-input-clear' title='" + o.clearSearchButtonText + "'>" + o.clearSearchButtonText + "</a>" )
+                               .bind('click', function( event ) {
+                                       input
+                                               .val( "" )
+                                               .focus()
+                                               .trigger( "change" );
+                                       clearbtn.addClass( "ui-input-clear-hidden" );
+                                       event.preventDefault();
+                               })
+                               .appendTo( focusedEl )
+                               .buttonMarkup({
+                                       icon: "delete",
+                                       iconpos: "notext",
+                                       corners: true,
+                                       shadow: true,
+                                       mini: mini
+                               });
+
+                       function toggleClear() {
+                               setTimeout(function() {
+                                       clearbtn.toggleClass( "ui-input-clear-hidden", !input.val() );
+                               }, 0);
+                       }
+
+                       toggleClear();
+
+                       input.bind('paste cut keyup focus change blur', toggleClear);
+
+               } else {
+                       input.addClass( "ui-corner-all ui-shadow-inset" + themeclass + miniclass );
+               }
+
+               input.focus(function() {
+                               focusedEl.addClass( $.mobile.focusClass );
+                       })
+                       .blur(function(){
+                               focusedEl.removeClass( $.mobile.focusClass );
+                       })
+                       // In many situations, iOS will zoom into the select upon tap, this prevents that from happening
+                       .bind( "focus", function() {
+                               if( o.preventFocusZoom ){
+                                       $.mobile.zoom.disable( true );
+                               }
+                       })
+                       .bind( "blur", function() {
+                               if( o.preventFocusZoom ){
+                                       $.mobile.zoom.enable( true );
+                               }
+                       });
+
+               // Autogrow
+               if ( input.is( "textarea" ) ) {
+                       var extraLineHeight = 15,
+                               keyupTimeoutBuffer = 100,
+                               keyup = function() {
+                                       var scrollHeight = input[ 0 ].scrollHeight,
+                                               clientHeight = input[ 0 ].clientHeight;
+
+                                       if ( clientHeight < scrollHeight ) {
+                                               input.height(scrollHeight + extraLineHeight);
+                                       }
+                               },
+                               keyupTimeout;
+
+                       input.keyup(function() {
+                               clearTimeout( keyupTimeout );
+                               keyupTimeout = setTimeout( keyup, keyupTimeoutBuffer );
+                       });
+
+                       // binding to pagechange here ensures that for pages loaded via
+                       // ajax the height is recalculated without user input
+                       $( document ).one( "pagechange", keyup );
+
+                       // Issue 509: the browser is not providing scrollHeight properly until the styles load
+                       if ( $.trim( input.val() ) ) {
+                               // bind to the window load to make sure the height is calculated based on BOTH
+                               // the DOM and CSS
+                               $( window ).load( keyup );
+                       }
+               }
+       },
+
+       disable: function(){
+               ( this.element.attr( "disabled", true ).is( "[type='search'],:jqmData(type='search')" ) ?
+                       this.element.parent() : this.element ).addClass( "ui-disabled" );
+       },
+
+       enable: function(){
+               ( this.element.attr( "disabled", false).is( "[type='search'],:jqmData(type='search')" ) ?
+                       this.element.parent() : this.element ).removeClass( "ui-disabled" );
+       }
+});
+
+//auto self-init widgets
+$( document ).bind( "pagecreate create", function( e ){
+       $.mobile.textinput.prototype.enhanceWithin( e.target, true );
+});
+
+})( jQuery );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.grid.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.grid.js
new file mode 100644 (file)
index 0000000..8c39875
--- /dev/null
@@ -0,0 +1,57 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Applies classes for creating grid or column styling.
+//>>label: Grid Layouts (Columns)
+//>>group: Widgets
+//>>css: ../css/themes/default/jquery.mobile.theme.css, ../css/structure/jquery.mobile.grid.css
+
+define( [ "jquery" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, undefined ) {
+
+$.fn.grid = function( options ) {
+       return this.each(function() {
+
+               var $this = $( this ),
+                       o = $.extend({
+                               grid: null
+                       },options),
+                       $kids = $this.children(),
+                       gridCols = {solo:1, a:2, b:3, c:4, d:5},
+                       grid = o.grid,
+                       iterator;
+
+                       if ( !grid ) {
+                               if ( $kids.length <= 5 ) {
+                                       for ( var letter in gridCols ) {
+                                               if ( gridCols[ letter ] === $kids.length ) {
+                                                       grid = letter;
+                                               }
+                                       }
+                               } else {
+                                       grid = "a";
+                               }
+                       }
+                       iterator = gridCols[grid];
+
+               $this.addClass( "ui-grid-" + grid );
+
+               $kids.filter( ":nth-child(" + iterator + "n+1)" ).addClass( "ui-block-a" );
+
+               if ( iterator > 1 ) {
+                       $kids.filter( ":nth-child(" + iterator + "n+2)" ).addClass( "ui-block-b" );
+               }
+               if ( iterator > 2 ) {
+                       $kids.filter( ":nth-child(3n+3)" ).addClass( "ui-block-c" );
+               }
+               if ( iterator > 3 ) {
+                       $kids.filter( ":nth-child(4n+4)" ).addClass( "ui-block-d" );
+               }
+               if ( iterator > 4 ) {
+                       $kids.filter( ":nth-child(5n+5)" ).addClass( "ui-block-e" );
+               }
+       });
+};
+})( jQuery );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.hashchange.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.hashchange.js
new file mode 100644 (file)
index 0000000..d6591be
--- /dev/null
@@ -0,0 +1,386 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Hashchange event management for AJAX navigation system
+//>>label: Hashchange
+//>>group: Navigation
+//>>excludeEnd("jqmBuildExclude");
+
+
+// Script: jQuery hashchange event
+// 
+// *Version: 1.3, Last updated: 7/21/2010*
+// 
+// Project Home - http://benalman.com/projects/jquery-hashchange-plugin/
+// GitHub       - http://github.com/cowboy/jquery-hashchange/
+// Source       - http://github.com/cowboy/jquery-hashchange/raw/master/jquery.ba-hashchange.js
+// (Minified)   - http://github.com/cowboy/jquery-hashchange/raw/master/jquery.ba-hashchange.min.js (0.8kb gzipped)
+// 
+// About: License
+// 
+// Copyright (c) 2010 "Cowboy" Ben Alman,
+// Dual licensed under the MIT and GPL licenses.
+// http://benalman.com/about/license/
+// 
+// About: Examples
+// 
+// These working examples, complete with fully commented code, illustrate a few
+// ways in which this plugin can be used.
+// 
+// hashchange event - http://benalman.com/code/projects/jquery-hashchange/examples/hashchange/
+// document.domain - http://benalman.com/code/projects/jquery-hashchange/examples/document_domain/
+// 
+// About: Support and Testing
+// 
+// Information about what version or versions of jQuery this plugin has been
+// tested with, what browsers it has been tested in, and where the unit tests
+// reside (so you can test it yourself).
+// 
+// jQuery Versions - 1.2.6, 1.3.2, 1.4.1, 1.4.2
+// Browsers Tested - Internet Explorer 6-8, Firefox 2-4, Chrome 5-6, Safari 3.2-5,
+//                   Opera 9.6-10.60, iPhone 3.1, Android 1.6-2.2, BlackBerry 4.6-5.
+// Unit Tests      - http://benalman.com/code/projects/jquery-hashchange/unit/
+// 
+// About: Known issues
+// 
+// While this jQuery hashchange event implementation is quite stable and
+// robust, there are a few unfortunate browser bugs surrounding expected
+// hashchange event-based behaviors, independent of any JavaScript
+// window.onhashchange abstraction. See the following examples for more
+// information:
+// 
+// Chrome: Back Button - http://benalman.com/code/projects/jquery-hashchange/examples/bug-chrome-back-button/
+// Firefox: Remote XMLHttpRequest - http://benalman.com/code/projects/jquery-hashchange/examples/bug-firefox-remote-xhr/
+// WebKit: Back Button in an Iframe - http://benalman.com/code/projects/jquery-hashchange/examples/bug-webkit-hash-iframe/
+// Safari: Back Button from a different domain - http://benalman.com/code/projects/jquery-hashchange/examples/bug-safari-back-from-diff-domain/
+// 
+// Also note that should a browser natively support the window.onhashchange 
+// event, but not report that it does, the fallback polling loop will be used.
+// 
+// About: Release History
+// 
+// 1.3   - (7/21/2010) Reorganized IE6/7 Iframe code to make it more
+//         "removable" for mobile-only development. Added IE6/7 document.title
+//         support. Attempted to make Iframe as hidden as possible by using
+//         techniques from http://www.paciellogroup.com/blog/?p=604. Added 
+//         support for the "shortcut" format $(window).hashchange( fn ) and
+//         $(window).hashchange() like jQuery provides for built-in events.
+//         Renamed jQuery.hashchangeDelay to <jQuery.fn.hashchange.delay> and
+//         lowered its default value to 50. Added <jQuery.fn.hashchange.domain>
+//         and <jQuery.fn.hashchange.src> properties plus document-domain.html
+//         file to address access denied issues when setting document.domain in
+//         IE6/7.
+// 1.2   - (2/11/2010) Fixed a bug where coming back to a page using this plugin
+//         from a page on another domain would cause an error in Safari 4. Also,
+//         IE6/7 Iframe is now inserted after the body (this actually works),
+//         which prevents the page from scrolling when the event is first bound.
+//         Event can also now be bound before DOM ready, but it won't be usable
+//         before then in IE6/7.
+// 1.1   - (1/21/2010) Incorporated document.documentMode test to fix IE8 bug
+//         where browser version is incorrectly reported as 8.0, despite
+//         inclusion of the X-UA-Compatible IE=EmulateIE7 meta tag.
+// 1.0   - (1/9/2010) Initial Release. Broke out the jQuery BBQ event.special
+//         window.onhashchange functionality into a separate plugin for users
+//         who want just the basic event & back button support, without all the
+//         extra awesomeness that BBQ provides. This plugin will be included as
+//         part of jQuery BBQ, but also be available separately.
+
+(function($,window,undefined){
+  // Reused string.
+  var str_hashchange = 'hashchange',
+    
+    // Method / object references.
+    doc = document,
+    fake_onhashchange,
+    special = $.event.special,
+    
+    // Does the browser support window.onhashchange? Note that IE8 running in
+    // IE7 compatibility mode reports true for 'onhashchange' in window, even
+    // though the event isn't supported, so also test document.documentMode.
+    doc_mode = doc.documentMode,
+    supports_onhashchange = 'on' + str_hashchange in window && ( doc_mode === undefined || doc_mode > 7 );
+  
+  // Get location.hash (or what you'd expect location.hash to be) sans any
+  // leading #. Thanks for making this necessary, Firefox!
+  function get_fragment( url ) {
+    url = url || location.href;
+    return '#' + url.replace( /^[^#]*#?(.*)$/, '$1' );
+  };
+  
+  // Method: jQuery.fn.hashchange
+  // 
+  // Bind a handler to the window.onhashchange event or trigger all bound
+  // window.onhashchange event handlers. This behavior is consistent with
+  // jQuery's built-in event handlers.
+  // 
+  // Usage:
+  // 
+  // > jQuery(window).hashchange( [ handler ] );
+  // 
+  // Arguments:
+  // 
+  //  handler - (Function) Optional handler to be bound to the hashchange
+  //    event. This is a "shortcut" for the more verbose form:
+  //    jQuery(window).bind( 'hashchange', handler ). If handler is omitted,
+  //    all bound window.onhashchange event handlers will be triggered. This
+  //    is a shortcut for the more verbose
+  //    jQuery(window).trigger( 'hashchange' ). These forms are described in
+  //    the <hashchange event> section.
+  // 
+  // Returns:
+  // 
+  //  (jQuery) The initial jQuery collection of elements.
+  
+  // Allow the "shortcut" format $(elem).hashchange( fn ) for binding and
+  // $(elem).hashchange() for triggering, like jQuery does for built-in events.
+  $.fn[ str_hashchange ] = function( fn ) {
+    return fn ? this.bind( str_hashchange, fn ) : this.trigger( str_hashchange );
+  };
+  
+  // Property: jQuery.fn.hashchange.delay
+  // 
+  // The numeric interval (in milliseconds) at which the <hashchange event>
+  // polling loop executes. Defaults to 50.
+  
+  // Property: jQuery.fn.hashchange.domain
+  // 
+  // If you're setting document.domain in your JavaScript, and you want hash
+  // history to work in IE6/7, not only must this property be set, but you must
+  // also set document.domain BEFORE jQuery is loaded into the page. This
+  // property is only applicable if you are supporting IE6/7 (or IE8 operating
+  // in "IE7 compatibility" mode).
+  // 
+  // In addition, the <jQuery.fn.hashchange.src> property must be set to the
+  // path of the included "document-domain.html" file, which can be renamed or
+  // modified if necessary (note that the document.domain specified must be the
+  // same in both your main JavaScript as well as in this file).
+  // 
+  // Usage:
+  // 
+  // jQuery.fn.hashchange.domain = document.domain;
+  
+  // Property: jQuery.fn.hashchange.src
+  // 
+  // If, for some reason, you need to specify an Iframe src file (for example,
+  // when setting document.domain as in <jQuery.fn.hashchange.domain>), you can
+  // do so using this property. Note that when using this property, history
+  // won't be recorded in IE6/7 until the Iframe src file loads. This property
+  // is only applicable if you are supporting IE6/7 (or IE8 operating in "IE7
+  // compatibility" mode).
+  // 
+  // Usage:
+  // 
+  // jQuery.fn.hashchange.src = 'path/to/file.html';
+  
+  $.fn[ str_hashchange ].delay = 50;
+  /*
+  $.fn[ str_hashchange ].domain = null;
+  $.fn[ str_hashchange ].src = null;
+  */
+  
+  // Event: hashchange event
+  // 
+  // Fired when location.hash changes. In browsers that support it, the native
+  // HTML5 window.onhashchange event is used, otherwise a polling loop is
+  // initialized, running every <jQuery.fn.hashchange.delay> milliseconds to
+  // see if the hash has changed. In IE6/7 (and IE8 operating in "IE7
+  // compatibility" mode), a hidden Iframe is created to allow the back button
+  // and hash-based history to work.
+  // 
+  // Usage as described in <jQuery.fn.hashchange>:
+  // 
+  // > // Bind an event handler.
+  // > jQuery(window).hashchange( function(e) {
+  // >   var hash = location.hash;
+  // >   ...
+  // > });
+  // > 
+  // > // Manually trigger the event handler.
+  // > jQuery(window).hashchange();
+  // 
+  // A more verbose usage that allows for event namespacing:
+  // 
+  // > // Bind an event handler.
+  // > jQuery(window).bind( 'hashchange', function(e) {
+  // >   var hash = location.hash;
+  // >   ...
+  // > });
+  // > 
+  // > // Manually trigger the event handler.
+  // > jQuery(window).trigger( 'hashchange' );
+  // 
+  // Additional Notes:
+  // 
+  // * The polling loop and Iframe are not created until at least one handler
+  //   is actually bound to the 'hashchange' event.
+  // * If you need the bound handler(s) to execute immediately, in cases where
+  //   a location.hash exists on page load, via bookmark or page refresh for
+  //   example, use jQuery(window).hashchange() or the more verbose 
+  //   jQuery(window).trigger( 'hashchange' ).
+  // * The event can be bound before DOM ready, but since it won't be usable
+  //   before then in IE6/7 (due to the necessary Iframe), recommended usage is
+  //   to bind it inside a DOM ready handler.
+  
+  // Override existing $.event.special.hashchange methods (allowing this plugin
+  // to be defined after jQuery BBQ in BBQ's source code).
+  special[ str_hashchange ] = $.extend( special[ str_hashchange ], {
+    
+    // Called only when the first 'hashchange' event is bound to window.
+    setup: function() {
+      // If window.onhashchange is supported natively, there's nothing to do..
+      if ( supports_onhashchange ) { return false; }
+      
+      // Otherwise, we need to create our own. And we don't want to call this
+      // until the user binds to the event, just in case they never do, since it
+      // will create a polling loop and possibly even a hidden Iframe.
+      $( fake_onhashchange.start );
+    },
+    
+    // Called only when the last 'hashchange' event is unbound from window.
+    teardown: function() {
+      // If window.onhashchange is supported natively, there's nothing to do..
+      if ( supports_onhashchange ) { return false; }
+      
+      // Otherwise, we need to stop ours (if possible).
+      $( fake_onhashchange.stop );
+    }
+    
+  });
+  
+  // fake_onhashchange does all the work of triggering the window.onhashchange
+  // event for browsers that don't natively support it, including creating a
+  // polling loop to watch for hash changes and in IE 6/7 creating a hidden
+  // Iframe to enable back and forward.
+  fake_onhashchange = (function(){
+    var self = {},
+      timeout_id,
+      
+      // Remember the initial hash so it doesn't get triggered immediately.
+      last_hash = get_fragment(),
+      
+      fn_retval = function(val){ return val; },
+      history_set = fn_retval,
+      history_get = fn_retval;
+    
+    // Start the polling loop.
+    self.start = function() {
+      timeout_id || poll();
+    };
+    
+    // Stop the polling loop.
+    self.stop = function() {
+      timeout_id && clearTimeout( timeout_id );
+      timeout_id = undefined;
+    };
+    
+    // This polling loop checks every $.fn.hashchange.delay milliseconds to see
+    // if location.hash has changed, and triggers the 'hashchange' event on
+    // window when necessary.
+    function poll() {
+      var hash = get_fragment(),
+        history_hash = history_get( last_hash );
+      
+      if ( hash !== last_hash ) {
+        history_set( last_hash = hash, history_hash );
+        
+        $(window).trigger( str_hashchange );
+        
+      } else if ( history_hash !== last_hash ) {
+        location.href = location.href.replace( /#.*/, '' ) + history_hash;
+      }
+      
+      timeout_id = setTimeout( poll, $.fn[ str_hashchange ].delay );
+    };
+    
+    // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
+    // vvvvvvvvvvvvvvvvvvv REMOVE IF NOT SUPPORTING IE6/7/8 vvvvvvvvvvvvvvvvvvv
+    // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
+    $.browser.msie && !supports_onhashchange && (function(){
+      // Not only do IE6/7 need the "magical" Iframe treatment, but so does IE8
+      // when running in "IE7 compatibility" mode.
+      
+      var iframe,
+        iframe_src;
+      
+      // When the event is bound and polling starts in IE 6/7, create a hidden
+      // Iframe for history handling.
+      self.start = function(){
+        if ( !iframe ) {
+          iframe_src = $.fn[ str_hashchange ].src;
+          iframe_src = iframe_src && iframe_src + get_fragment();
+          
+          // Create hidden Iframe. Attempt to make Iframe as hidden as possible
+          // by using techniques from http://www.paciellogroup.com/blog/?p=604.
+          iframe = $('<iframe tabindex="-1" title="empty"/>').hide()
+            
+            // When Iframe has completely loaded, initialize the history and
+            // start polling.
+            .one( 'load', function(){
+              iframe_src || history_set( get_fragment() );
+              poll();
+            })
+            
+            // Load Iframe src if specified, otherwise nothing.
+            .attr( 'src', iframe_src || 'javascript:0' )
+            
+            // Append Iframe after the end of the body to prevent unnecessary
+            // initial page scrolling (yes, this works).
+            .insertAfter( 'body' )[0].contentWindow;
+          
+          // Whenever `document.title` changes, update the Iframe's title to
+          // prettify the back/next history menu entries. Since IE sometimes
+          // errors with "Unspecified error" the very first time this is set
+          // (yes, very useful) wrap this with a try/catch block.
+          doc.onpropertychange = function(){
+            try {
+              if ( event.propertyName === 'title' ) {
+                iframe.document.title = doc.title;
+              }
+            } catch(e) {}
+          };
+          
+        }
+      };
+      
+      // Override the "stop" method since an IE6/7 Iframe was created. Even
+      // if there are no longer any bound event handlers, the polling loop
+      // is still necessary for back/next to work at all!
+      self.stop = fn_retval;
+      
+      // Get history by looking at the hidden Iframe's location.hash.
+      history_get = function() {
+        return get_fragment( iframe.location.href );
+      };
+      
+      // Set a new history item by opening and then closing the Iframe
+      // document, *then* setting its location.hash. If document.domain has
+      // been set, update that as well.
+      history_set = function( hash, history_hash ) {
+        var iframe_doc = iframe.document,
+          domain = $.fn[ str_hashchange ].domain;
+        
+        if ( hash !== history_hash ) {
+          // Update Iframe with any initial `document.title` that might be set.
+          iframe_doc.title = doc.title;
+          
+          // Opening the Iframe's document after it has been closed is what
+          // actually adds a history entry.
+          iframe_doc.open();
+          
+          // Set document.domain for the Iframe document as well, if necessary.
+          domain && iframe_doc.write( '<script>document.domain="' + domain + '"</script>' );
+          
+          iframe_doc.close();
+          
+          // Update the Iframe's hash, for great justice.
+          iframe.location.hash = hash;
+        }
+      };
+      
+    })();
+    // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    // ^^^^^^^^^^^^^^^^^^^ REMOVE IF NOT SUPPORTING IE6/7/8 ^^^^^^^^^^^^^^^^^^^
+    // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    
+    return self;
+  })();
+  
+})(jQuery,this);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.init.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.init.js
new file mode 100644 (file)
index 0000000..93c03e8
--- /dev/null
@@ -0,0 +1,193 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Global initialization of the library.
+//>>label: Init
+//>>group: Core
+
+
+define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.support", "./jquery.mobile.navigation",
+       "./jquery.mobile.navigation.pushstate", "../external/requirejs/depend!./jquery.mobile.hashchange[jquery]" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+( function( $, window, undefined ) {
+       var     $html = $( "html" ),
+                       $head = $( "head" ),
+                       $window = $( window );
+
+       // trigger mobileinit event - useful hook for configuring $.mobile settings before they're used
+       $( window.document ).trigger( "mobileinit" );
+
+       // support conditions
+       // if device support condition(s) aren't met, leave things as they are -> a basic, usable experience,
+       // otherwise, proceed with the enhancements
+       if ( !$.mobile.gradeA() ) {
+               return;
+       }
+
+       // override ajaxEnabled on platforms that have known conflicts with hash history updates
+       // or generally work better browsing in regular http for full page refreshes (BB5, Opera Mini)
+       if ( $.mobile.ajaxBlacklist ) {
+               $.mobile.ajaxEnabled = false;
+       }
+
+       // Add mobile, initial load "rendering" classes to docEl
+       $html.addClass( "ui-mobile ui-mobile-rendering" );
+
+       // This is a fallback. If anything goes wrong (JS errors, etc), or events don't fire,
+       // this ensures the rendering class is removed after 5 seconds, so content is visible and accessible
+       setTimeout( hideRenderingClass, 5000 );
+
+       // loading div which appears during Ajax requests
+       // will not appear if $.mobile.loadingMessage is false
+       var loaderClass = "ui-loader",
+               $loader = $( "<div class='" + loaderClass + "'><span class='ui-icon ui-icon-loading'></span><h1></h1></div>" );
+
+       // For non-fixed supportin browsers. Position at y center (if scrollTop supported), above the activeBtn (if defined), or just 100px from top
+       function fakeFixLoader(){
+               var activeBtn = $( "." + $.mobile.activeBtnClass ).first();
+
+               $loader
+                       .css({
+                               top: $.support.scrollTop && $window.scrollTop() + $window.height() / 2 ||
+                               activeBtn.length && activeBtn.offset().top || 100
+                       });
+       }
+
+       // check position of loader to see if it appears to be "fixed" to center
+       // if not, use abs positioning
+       function checkLoaderPosition(){
+               var offset = $loader.offset(),
+                       scrollTop = $window.scrollTop(),
+                       screenHeight = $.mobile.getScreenHeight();
+
+               if( offset.top < scrollTop || (offset.top - scrollTop) > screenHeight ) {
+                       $loader.addClass( "ui-loader-fakefix" );
+                       fakeFixLoader();
+                       $window
+                               .unbind( "scroll", checkLoaderPosition )
+                               .bind( "scroll", fakeFixLoader );
+               }
+       }
+
+       //remove initial build class (only present on first pageshow)
+       function hideRenderingClass(){
+               $html.removeClass( "ui-mobile-rendering" );
+       }
+
+       $.extend($.mobile, {
+               // turn on/off page loading message.
+               showPageLoadingMsg: function( theme, msgText, textonly ) {
+                       $html.addClass( "ui-loading" );
+
+                       if ( $.mobile.loadingMessage ) {
+                               // text visibility from argument takes priority
+                               var textVisible = textonly || $.mobile.loadingMessageTextVisible;
+
+                               theme = theme || $.mobile.loadingMessageTheme,
+
+                               $loader
+                                       .attr( "class", loaderClass + " ui-corner-all ui-body-" + ( theme || "a" ) + " ui-loader-" + ( textVisible ? "verbose" : "default" ) + ( textonly ? " ui-loader-textonly" : "" ) )
+                                       .find( "h1" )
+                                               .text( msgText || $.mobile.loadingMessage )
+                                               .end()
+                                       .appendTo( $.mobile.pageContainer );
+
+                               checkLoaderPosition();
+                               $window.bind( "scroll", checkLoaderPosition );
+                       }
+               },
+
+               hidePageLoadingMsg: function() {
+                       $html.removeClass( "ui-loading" );
+
+                       if( $.mobile.loadingMessage ){
+                               $loader.removeClass( "ui-loader-fakefix" );
+                       }
+
+                       $( window ).unbind( "scroll", fakeFixLoader );
+                       $( window ).unbind( "scroll", checkLoaderPosition );
+               },
+
+               // find and enhance the pages in the dom and transition to the first page.
+               initializePage: function() {
+                       // find present pages
+                       var $pages = $( ":jqmData(role='page'), :jqmData(role='dialog')" );
+
+                       // if no pages are found, create one with body's inner html
+                       if ( !$pages.length ) {
+                               $pages = $( "body" ).wrapInner( "<div data-" + $.mobile.ns + "role='page'></div>" ).children( 0 );
+                       }
+
+                       // add dialogs, set data-url attrs
+                       $pages.each(function() {
+                               var $this = $(this);
+
+                               // unless the data url is already set set it to the pathname
+                               if ( !$this.jqmData("url") ) {
+                                       $this.attr( "data-" + $.mobile.ns + "url", $this.attr( "id" ) || location.pathname + location.search );
+                               }
+                       });
+
+                       // define first page in dom case one backs out to the directory root (not always the first page visited, but defined as fallback)
+                       $.mobile.firstPage = $pages.first();
+
+                       // define page container
+                       $.mobile.pageContainer = $pages.first().parent().addClass( "ui-mobile-viewport" );
+
+                       // alert listeners that the pagecontainer has been determined for binding
+                       // to events triggered on it
+                       $window.trigger( "pagecontainercreate" );
+
+                       // cue page loading message
+                       $.mobile.showPageLoadingMsg();
+
+                       //remove initial build class (only present on first pageshow)
+                       hideRenderingClass();
+
+                       // if hashchange listening is disabled or there's no hash deeplink, change to the first page in the DOM
+                       if ( !$.mobile.hashListeningEnabled || !$.mobile.path.stripHash( location.hash ) ) {
+                               $.mobile.changePage( $.mobile.firstPage, { transition: "none", reverse: true, changeHash: false, fromHashChange: true } );
+                       }
+                       // otherwise, trigger a hashchange to load a deeplink
+                       else {
+                               $window.trigger( "hashchange", [ true ] );
+                       }
+               }
+       });
+
+       // initialize events now, after mobileinit has occurred
+       $.mobile._registerInternalEvents();
+
+       // check which scrollTop value should be used by scrolling to 1 immediately at domready
+       // then check what the scroll top is. Android will report 0... others 1
+       // note that this initial scroll won't hide the address bar. It's just for the check.
+       $(function() {
+               window.scrollTo( 0, 1 );
+
+               // if defaultHomeScroll hasn't been set yet, see if scrollTop is 1
+               // it should be 1 in most browsers, but android treats 1 as 0 (for hiding addr bar)
+               // so if it's 1, use 0 from now on
+               $.mobile.defaultHomeScroll = ( !$.support.scrollTop || $(window).scrollTop() === 1 ) ? 0 : 1;
+
+
+               // TODO: Implement a proper registration mechanism with dependency handling in order to not have exceptions like the one below
+               //auto self-init widgets for those widgets that have a soft dependency on others
+               if ( $.fn.controlgroup ) {
+                       $( document ).bind( "pagecreate create", function( e ){
+                               $( ":jqmData(role='controlgroup')", e.target )
+                                       .jqmEnhanceable()
+                                       .controlgroup({ excludeInvisible: false });
+                       });
+               }
+
+               //dom-ready inits
+               if( $.mobile.autoInitializePage ){
+                       $.mobile.initializePage();
+               }
+
+               // window load event
+               // hide iOS browser chrome on load
+               $window.load( $.mobile.silentScroll );
+       });
+}( jQuery, this ));
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.js
new file mode 100644 (file)
index 0000000..dd73b6a
--- /dev/null
@@ -0,0 +1,41 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>group: exclude
+
+define([
+       'require',
+       './jquery.mobile.navigation',
+       './jquery.mobile.navigation.pushstate',
+       './jquery.mobile.transition.pop',
+       './jquery.mobile.transition.slide',
+       './jquery.mobile.transition.slidedown',
+       './jquery.mobile.transition.slideup',
+       './jquery.mobile.transition.flip',
+       './jquery.mobile.transition.flow',
+       './jquery.mobile.transition.turn',
+       './jquery.mobile.degradeInputs',
+       './jquery.mobile.dialog',
+       './jquery.mobile.page.sections',
+       './jquery.mobile.collapsible',
+       './jquery.mobile.collapsibleSet',
+       './jquery.mobile.fieldContain',
+       './jquery.mobile.grid',
+       './jquery.mobile.navbar',
+       './jquery.mobile.listview',
+       './jquery.mobile.listview.filter',
+       './jquery.mobile.nojs',
+       './jquery.mobile.forms.checkboxradio',
+       './jquery.mobile.forms.button',
+       './jquery.mobile.forms.slider',
+       './jquery.mobile.forms.textinput',
+       './jquery.mobile.forms.select.custom',
+       './jquery.mobile.forms.select',
+       './jquery.mobile.buttonMarkup',
+       './jquery.mobile.controlGroup',
+       './jquery.mobile.links',
+       './jquery.mobile.fixedToolbar',
+       './jquery.mobile.zoom',
+       './jquery.mobile.zoom.iosorientationfix'
+], function( require ) {
+       require( [ './jquery.mobile.init' ], function() {} );
+});
+//>>excludeEnd("jqmBuildExclude");
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.links.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.links.js
new file mode 100644 (file)
index 0000000..ff9aa62
--- /dev/null
@@ -0,0 +1,26 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Adds classes to links.
+//>>label: Link Classes
+//>>group: Utilities
+
+
+define( [ "jquery" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, undefined ) {
+
+$( document ).bind( "pagecreate create", function( e ){
+
+       //links within content areas, tests included with page
+       $( e.target )
+               .find( "a" )
+               .jqmEnhanceable()
+               .not( ".ui-btn, .ui-link-inherit, :jqmData(role='none'), :jqmData(role='nojs')" )
+               .addClass( "ui-link" );
+
+});
+
+})( jQuery );
+
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.listview.filter.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.listview.filter.js
new file mode 100644 (file)
index 0000000..a2420d8
--- /dev/null
@@ -0,0 +1,119 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Extends the listview to add a search box to filter lists
+//>>label: Listview: Filter
+//>>group: Widgets
+
+
+define( [ "jquery", "./jquery.mobile.listview", "./jquery.mobile.forms.textinput" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, undefined ) {
+
+$.mobile.listview.prototype.options.filter = false;
+$.mobile.listview.prototype.options.filterPlaceholder = "Filter items...";
+$.mobile.listview.prototype.options.filterTheme = "c";
+$.mobile.listview.prototype.options.filterCallback = function( text, searchValue ){
+       return text.toLowerCase().indexOf( searchValue ) === -1;
+};
+
+$( document ).delegate( ":jqmData(role='listview')", "listviewcreate", function() {
+
+       var list = $( this ),
+               listview = list.data( "listview" );
+
+       if ( !listview.options.filter ) {
+               return;
+       }
+
+       var wrapper = $( "<form>", {
+                       "class": "ui-listview-filter ui-bar-" + listview.options.filterTheme,
+                       "role": "search"
+               }),
+               search = $( "<input>", {
+                       placeholder: listview.options.filterPlaceholder
+               })
+               .attr( "data-" + $.mobile.ns + "type", "search" )
+               .jqmData( "lastval", "" )
+               .bind( "keyup change", function() {
+
+                       var $this = $(this),
+                               val = this.value.toLowerCase(),
+                               listItems = null,
+                               lastval = $this.jqmData( "lastval" ) + "",
+                               childItems = false,
+                               itemtext = "",
+                               item;
+
+                       // Change val as lastval for next execution
+                       $this.jqmData( "lastval" , val );
+                       if ( val.length < lastval.length || val.indexOf(lastval) !== 0 ) {
+
+                               // Removed chars or pasted something totally different, check all items
+                               listItems = list.children();
+                       } else {
+
+                               // Only chars added, not removed, only use visible subset
+                               listItems = list.children( ":not(.ui-screen-hidden)" );
+                       }
+
+                       if ( val ) {
+
+                               // This handles hiding regular rows without the text we search for
+                               // and any list dividers without regular rows shown under it
+
+                               for ( var i = listItems.length - 1; i >= 0; i-- ) {
+                                       item = $( listItems[ i ] );
+                                       itemtext = item.jqmData( "filtertext" ) || item.text();
+
+                                       if ( item.is( "li:jqmData(role=list-divider)" ) ) {
+
+                                               item.toggleClass( "ui-filter-hidequeue" , !childItems );
+
+                                               // New bucket!
+                                               childItems = false;
+
+                                       } else if ( listview.options.filterCallback( itemtext, val ) ) {
+
+                                               //mark to be hidden
+                                               item.toggleClass( "ui-filter-hidequeue" , true );
+                                       } else {
+
+                                               // There's a shown item in the bucket
+                                               childItems = true;
+                                       }
+                               }
+
+                               // Show items, not marked to be hidden
+                               listItems
+                                       .filter( ":not(.ui-filter-hidequeue)" )
+                                       .toggleClass( "ui-screen-hidden", false );
+
+                               // Hide items, marked to be hidden
+                               listItems
+                                       .filter( ".ui-filter-hidequeue" )
+                                       .toggleClass( "ui-screen-hidden", true )
+                                       .toggleClass( "ui-filter-hidequeue", false );
+
+                       } else {
+
+                               //filtervalue is empty => show all
+                               listItems.toggleClass( "ui-screen-hidden", false );
+                       }
+                       listview._refreshCorners();
+               })
+               .appendTo( wrapper )
+               .textinput();
+
+       if ( listview.options.inset ) {
+               wrapper.addClass( "ui-listview-filter-inset" );
+       }
+
+       wrapper.bind( "submit", function() {
+               return false;
+       })
+       .insertBefore( list );
+});
+
+})( jQuery );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.listview.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.listview.js
new file mode 100644 (file)
index 0000000..f3fabfa
--- /dev/null
@@ -0,0 +1,414 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Applies listview styling of various types (standard, numbered, split button, etc.)
+//>>label: Listview
+//>>group: Widgets
+//>>css: ../css/themes/default/jquery.mobile.theme.css, ../css/structure/jquery.mobile.listview.css
+
+define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.buttonMarkup", "./jquery.mobile.page", "./jquery.mobile.page.sections" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, undefined ) {
+
+//Keeps track of the number of lists per page UID
+//This allows support for multiple nested list in the same page
+//https://github.com/jquery/jquery-mobile/issues/1617
+var listCountPerPage = {};
+
+$.widget( "mobile.listview", $.mobile.widget, {
+
+       options: {
+               theme: null,
+               countTheme: "c",
+               headerTheme: "b",
+               dividerTheme: "b",
+               splitIcon: "arrow-r",
+               splitTheme: "b",
+               mini: false,
+               inset: false,
+               initSelector: ":jqmData(role='listview')"
+       },
+
+       _create: function() {
+               var t = this,
+                       listviewClasses = "";
+                       
+               listviewClasses += t.options.inset ? " ui-listview-inset ui-corner-all ui-shadow " : "";
+               listviewClasses += t.element.jqmData( "mini" ) || t.options.mini === true ? " ui-mini" : "";
+               
+               // create listview markup
+               t.element.addClass(function( i, orig ) {
+                       return orig + " ui-listview " + listviewClasses;
+               });
+
+               t.refresh( true );
+       },
+
+       _removeCorners: function( li, which ) {
+               var top = "ui-corner-top ui-corner-tr ui-corner-tl",
+                       bot = "ui-corner-bottom ui-corner-br ui-corner-bl";
+
+               li = li.add( li.find( ".ui-btn-inner, .ui-li-link-alt, .ui-li-thumb" ) );
+
+               if ( which === "top" ) {
+                       li.removeClass( top );
+               } else if ( which === "bottom" ) {
+                       li.removeClass( bot );
+               } else {
+                       li.removeClass( top + " " + bot );
+               }
+       },
+
+       _refreshCorners: function( create ) {
+               var $li,
+                       $visibleli,
+                       $topli,
+                       $bottomli;
+
+               if ( this.options.inset ) {
+                       $li = this.element.children( "li" );
+                       // at create time the li are not visible yet so we need to rely on .ui-screen-hidden
+                       $visibleli = create?$li.not( ".ui-screen-hidden" ):$li.filter( ":visible" );
+
+                       this._removeCorners( $li );
+
+                       // Select the first visible li element
+                       $topli = $visibleli.first()
+                               .addClass( "ui-corner-top" );
+
+                       $topli.add( $topli.find( ".ui-btn-inner" )
+                                       .not( ".ui-li-link-alt span:first-child" ) )
+                                .addClass( "ui-corner-top" )
+                                .end()
+                               .find( ".ui-li-link-alt, .ui-li-link-alt span:first-child" )
+                                       .addClass( "ui-corner-tr" )
+                               .end()
+                               .find( ".ui-li-thumb" )
+                                       .not(".ui-li-icon")
+                                       .addClass( "ui-corner-tl" );
+
+                       // Select the last visible li element
+                       $bottomli = $visibleli.last()
+                               .addClass( "ui-corner-bottom" );
+
+                       $bottomli.add( $bottomli.find( ".ui-btn-inner" ) )
+                               .find( ".ui-li-link-alt" )
+                                       .addClass( "ui-corner-br" )
+                               .end()
+                               .find( ".ui-li-thumb" )
+                                       .not(".ui-li-icon")
+                                       .addClass( "ui-corner-bl" );
+               }
+               if ( !create ) {
+                       this.element.trigger( "updatelayout" );
+               }
+       },
+
+       // This is a generic utility method for finding the first
+       // node with a given nodeName. It uses basic DOM traversal
+       // to be fast and is meant to be a substitute for simple
+       // $.fn.closest() and $.fn.children() calls on a single
+       // element. Note that callers must pass both the lowerCase
+       // and upperCase version of the nodeName they are looking for.
+       // The main reason for this is that this function will be
+       // called many times and we want to avoid having to lowercase
+       // the nodeName from the element every time to ensure we have
+       // a match. Note that this function lives here for now, but may
+       // be moved into $.mobile if other components need a similar method.
+       _findFirstElementByTagName: function( ele, nextProp, lcName, ucName )
+       {
+               var dict = {};
+               dict[ lcName ] = dict[ ucName ] = true;
+               while ( ele ) {
+                       if ( dict[ ele.nodeName ] ) {
+                               return ele;
+                       }
+                       ele = ele[ nextProp ];
+               }
+               return null;
+       },
+       _getChildrenByTagName: function( ele, lcName, ucName )
+       {
+               var results = [],
+                       dict = {};
+               dict[ lcName ] = dict[ ucName ] = true;
+               ele = ele.firstChild;
+               while ( ele ) {
+                       if ( dict[ ele.nodeName ] ) {
+                               results.push( ele );
+                       }
+                       ele = ele.nextSibling;
+               }
+               return $( results );
+       },
+
+       _addThumbClasses: function( containers )
+       {
+               var i, img, len = containers.length;
+               for ( i = 0; i < len; i++ ) {
+                       img = $( this._findFirstElementByTagName( containers[ i ].firstChild, "nextSibling", "img", "IMG" ) );
+                       if ( img.length ) {
+                               img.addClass( "ui-li-thumb" );
+                               $( this._findFirstElementByTagName( img[ 0 ].parentNode, "parentNode", "li", "LI" ) ).addClass( img.is( ".ui-li-icon" ) ? "ui-li-has-icon" : "ui-li-has-thumb" );
+                       }
+               }
+       },
+
+       refresh: function( create ) {
+               this.parentPage = this.element.closest( ".ui-page" );
+               this._createSubPages();
+
+               var o = this.options,
+                       $list = this.element,
+                       self = this,
+                       dividertheme = $list.jqmData( "dividertheme" ) || o.dividerTheme,
+                       listsplittheme = $list.jqmData( "splittheme" ),
+                       listspliticon = $list.jqmData( "spliticon" ),
+                       li = this._getChildrenByTagName( $list[ 0 ], "li", "LI" ),
+                       counter = $.support.cssPseudoElement || !$.nodeName( $list[ 0 ], "ol" ) ? 0 : 1,
+                       itemClassDict = {},
+                       item, itemClass, itemTheme,
+                       a, last, splittheme, countParent, icon, imgParents, img, linkIcon;
+
+               if ( counter ) {
+                       $list.find( ".ui-li-dec" ).remove();
+               }
+
+               if ( !o.theme ) {
+                       o.theme = $.mobile.getInheritedTheme( this.element, "c" );
+               }
+
+               for ( var pos = 0, numli = li.length; pos < numli; pos++ ) {
+                       item = li.eq( pos );
+                       itemClass = "ui-li";
+
+                       // If we're creating the element, we update it regardless
+                       if ( create || !item.hasClass( "ui-li" ) ) {
+                               itemTheme = item.jqmData("theme") || o.theme;
+                               a = this._getChildrenByTagName( item[ 0 ], "a", "A" );
+
+                               if ( a.length ) {
+                                       icon = item.jqmData("icon");
+
+                                       item.buttonMarkup({
+                                               wrapperEls: "div",
+                                               shadow: false,
+                                               corners: false,
+                                               iconpos: "right",
+                                               icon: a.length > 1 || icon === false ? false : icon || "arrow-r",
+                                               theme: itemTheme
+                                       });
+
+                                       if ( ( icon != false ) && ( a.length == 1 ) ) {
+                                               item.addClass( "ui-li-has-arrow" );
+                                       }
+
+                                       a.first().removeClass( "ui-link" ).addClass( "ui-link-inherit" );
+
+                                       if ( a.length > 1 ) {
+                                               itemClass += " ui-li-has-alt";
+
+                                               last = a.last();
+                                               splittheme = listsplittheme || last.jqmData( "theme" ) || o.splitTheme;
+                                               linkIcon = last.jqmData("icon");
+
+                                               last.appendTo(item)
+                                                       .attr( "title", last.getEncodedText() )
+                                                       .addClass( "ui-li-link-alt" )
+                                                       .empty()
+                                                       .buttonMarkup({
+                                                               shadow: false,
+                                                               corners: false,
+                                                               theme: itemTheme,
+                                                               icon: false,
+                                                               iconpos: false
+                                                       })
+                                                       .find( ".ui-btn-inner" )
+                                                               .append(
+                                                                       $( document.createElement( "span" ) ).buttonMarkup({
+                                                                               shadow: true,
+                                                                               corners: true,
+                                                                               theme: splittheme,
+                                                                               iconpos: "notext",
+                                                                               // link icon overrides list item icon overrides ul element overrides options
+                                                                               icon: linkIcon || icon || listspliticon || o.splitIcon
+                                                                       })
+                                                               );
+                                       }
+                               } else if ( item.jqmData( "role" ) === "list-divider" ) {
+
+                                       itemClass += " ui-li-divider ui-bar-" + dividertheme;
+                                       item.attr( "role", "heading" );
+
+                                       //reset counter when a divider heading is encountered
+                                       if ( counter ) {
+                                               counter = 1;
+                                       }
+
+                               } else {
+                                       itemClass += " ui-li-static ui-body-" + itemTheme;
+                               }
+                       }
+
+                       if ( counter && itemClass.indexOf( "ui-li-divider" ) < 0 ) {
+                               countParent = item.is( ".ui-li-static:first" ) ? item : item.find( ".ui-link-inherit" );
+
+                               countParent.addClass( "ui-li-jsnumbering" )
+                                       .prepend( "<span class='ui-li-dec'>" + (counter++) + ". </span>" );
+                       }
+
+                       // Instead of setting item class directly on the list item and its
+                       // btn-inner at this point in time, push the item into a dictionary
+                       // that tells us what class to set on it so we can do this after this
+                       // processing loop is finished.
+
+                       if ( !itemClassDict[ itemClass ] ) {
+                               itemClassDict[ itemClass ] = [];
+                       }
+
+                       itemClassDict[ itemClass ].push( item[ 0 ] );
+               }
+
+               // Set the appropriate listview item classes on each list item
+               // and their btn-inner elements. The main reason we didn't do this
+               // in the for-loop above is because we can eliminate per-item function overhead
+               // by calling addClass() and children() once or twice afterwards. This
+               // can give us a significant boost on platforms like WP7.5.
+
+               for ( itemClass in itemClassDict ) {
+                       $( itemClassDict[ itemClass ] ).addClass( itemClass ).children( ".ui-btn-inner" ).addClass( itemClass );
+               }
+
+               $list.find( "h1, h2, h3, h4, h5, h6" ).addClass( "ui-li-heading" )
+                       .end()
+
+                       .find( "p, dl" ).addClass( "ui-li-desc" )
+                       .end()
+
+                       .find( ".ui-li-aside" ).each(function() {
+                                       var $this = $(this);
+                                       $this.prependTo( $this.parent() ); //shift aside to front for css float
+                               })
+                       .end()
+
+                       .find( ".ui-li-count" ).each( function() {
+                                       $( this ).closest( "li" ).addClass( "ui-li-has-count" );
+                               }).addClass( "ui-btn-up-" + ( $list.jqmData( "counttheme" ) || this.options.countTheme) + " ui-btn-corner-all" );
+
+               // The idea here is to look at the first image in the list item
+               // itself, and any .ui-link-inherit element it may contain, so we
+               // can place the appropriate classes on the image and list item.
+               // Note that we used to use something like:
+               //
+               //    li.find(">img:eq(0), .ui-link-inherit>img:eq(0)").each( ... );
+               //
+               // But executing a find() like that on Windows Phone 7.5 took a
+               // really long time. Walking things manually with the code below
+               // allows the 400 listview item page to load in about 3 seconds as
+               // opposed to 30 seconds.
+
+               this._addThumbClasses( li );
+               this._addThumbClasses( $list.find( ".ui-link-inherit" ) );
+
+               this._refreshCorners( create );
+       },
+
+       //create a string for ID/subpage url creation
+       _idStringEscape: function( str ) {
+               return str.replace(/[^a-zA-Z0-9]/g, '-');
+       },
+
+       _createSubPages: function() {
+               var parentList = this.element,
+                       parentPage = parentList.closest( ".ui-page" ),
+                       parentUrl = parentPage.jqmData( "url" ),
+                       parentId = parentUrl || parentPage[ 0 ][ $.expando ],
+                       parentListId = parentList.attr( "id" ),
+                       o = this.options,
+                       dns = "data-" + $.mobile.ns,
+                       self = this,
+                       persistentFooterID = parentPage.find( ":jqmData(role='footer')" ).jqmData( "id" ),
+                       hasSubPages;
+
+               if ( typeof listCountPerPage[ parentId ] === "undefined" ) {
+                       listCountPerPage[ parentId ] = -1;
+               }
+
+               parentListId = parentListId || ++listCountPerPage[ parentId ];
+
+               $( parentList.find( "li>ul, li>ol" ).toArray().reverse() ).each(function( i ) {
+                       var self = this,
+                               list = $( this ),
+                               listId = list.attr( "id" ) || parentListId + "-" + i,
+                               parent = list.parent(),
+                               nodeEls = $( list.prevAll().toArray().reverse() ),
+                               nodeEls = nodeEls.length ? nodeEls : $( "<span>" + $.trim(parent.contents()[ 0 ].nodeValue) + "</span>" ),
+                               title = nodeEls.first().getEncodedText(),//url limits to first 30 chars of text
+                               id = ( parentUrl || "" ) + "&" + $.mobile.subPageUrlKey + "=" + listId,
+                               theme = list.jqmData( "theme" ) || o.theme,
+                               countTheme = list.jqmData( "counttheme" ) || parentList.jqmData( "counttheme" ) || o.countTheme,
+                               newPage, anchor;
+
+                       //define hasSubPages for use in later removal
+                       hasSubPages = true;
+
+                       newPage = list.detach()
+                                               .wrap( "<div " + dns + "role='page' " + dns + "url='" + id + "' " + dns + "theme='" + theme + "' " + dns + "count-theme='" + countTheme + "'><div " + dns + "role='content'></div></div>" )
+                                               .parent()
+                                                       .before( "<div " + dns + "role='header' " + dns + "theme='" + o.headerTheme + "'><div class='ui-title'>" + title + "</div></div>" )
+                                                       .after( persistentFooterID ? $( "<div " + dns + "role='footer' " + dns + "id='"+ persistentFooterID +"'>") : "" )
+                                                       .parent()
+                                                               .appendTo( $.mobile.pageContainer );
+
+                       newPage.page();
+
+                       anchor = parent.find('a:first');
+
+                       if ( !anchor.length ) {
+                               anchor = $( "<a/>" ).html( nodeEls || title ).prependTo( parent.empty() );
+                       }
+
+                       anchor.attr( "href", "#" + id );
+
+               }).listview();
+
+               // on pagehide, remove any nested pages along with the parent page, as long as they aren't active
+               // and aren't embedded
+               if( hasSubPages &&
+                       parentPage.is( ":jqmData(external-page='true')" ) &&
+                       parentPage.data("page").options.domCache === false ) {
+
+                       var newRemove = function( e, ui ){
+                               var nextPage = ui.nextPage, npURL;
+
+                               if( ui.nextPage ){
+                                       npURL = nextPage.jqmData( "url" );
+                                       if( npURL.indexOf( parentUrl + "&" + $.mobile.subPageUrlKey ) !== 0 ){
+                                               self.childPages().remove();
+                                               parentPage.remove();
+                                       }
+                               }
+                       };
+
+                       // unbind the original page remove and replace with our specialized version
+                       parentPage
+                               .unbind( "pagehide.remove" )
+                               .bind( "pagehide.remove", newRemove);
+               }
+       },
+
+       // TODO sort out a better way to track sub pages of the listview this is brittle
+       childPages: function(){
+               var parentUrl = this.parentPage.jqmData( "url" );
+
+               return $( ":jqmData(url^='"+  parentUrl + "&" + $.mobile.subPageUrlKey +"')");
+       }
+});
+
+//auto self-init widgets
+$( document ).bind( "pagecreate create", function( e ){
+       $.mobile.listview.prototype.enhanceWithin( e.target );
+});
+
+})( jQuery );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.media.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.media.js
new file mode 100644 (file)
index 0000000..f2302e5
--- /dev/null
@@ -0,0 +1,52 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: A workaround for browsers without window.matchMedia
+//>>label: matchMedia Polyfill
+//>>group: Utilities
+
+
+define( [ "jquery", "./jquery.mobile.core" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, undefined ) {
+
+var $window = $( window ),
+       $html = $( "html" );
+
+/* $.mobile.media method: pass a CSS media type or query and get a bool return
+       note: this feature relies on actual media query support for media queries, though types will work most anywhere
+       examples:
+               $.mobile.media('screen') // tests for screen media type
+               $.mobile.media('screen and (min-width: 480px)') // tests for screen media type with window width > 480px
+               $.mobile.media('@media screen and (-webkit-min-device-pixel-ratio: 2)') // tests for webkit 2x pixel ratio (iPhone 4)
+*/
+$.mobile.media = (function() {
+       // TODO: use window.matchMedia once at least one UA implements it
+       var cache = {},
+               testDiv = $( "<div id='jquery-mediatest'>" ),
+               fakeBody = $( "<body>" ).append( testDiv );
+
+       return function( query ) {
+               if ( !( query in cache ) ) {
+                       var styleBlock = document.createElement( "style" ),
+                               cssrule = "@media " + query + " { #jquery-mediatest { position:absolute; } }";
+
+                       //must set type for IE!
+                       styleBlock.type = "text/css";
+
+                       if ( styleBlock.styleSheet  ){
+                               styleBlock.styleSheet.cssText = cssrule;
+                       } else {
+                               styleBlock.appendChild( document.createTextNode(cssrule) );
+                       }
+
+                       $html.prepend( fakeBody ).prepend( styleBlock );
+                       cache[ query ] = testDiv.css( "position" ) === "absolute";
+                       fakeBody.add( styleBlock ).remove();
+               }
+               return cache[ query ];
+       };
+})();
+
+})(jQuery);
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.navbar.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.navbar.js
new file mode 100644 (file)
index 0000000..42c2f12
--- /dev/null
@@ -0,0 +1,65 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Formats groups of links as horizontal navigation bars.
+//>>label: Navbars
+//>>group: Widgets
+//>>css: ../css/themes/default/jquery.mobile.theme.css, ../css/structure/jquery.mobile.navbar.css
+
+
+define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.buttonMarkup", "./jquery.mobile.grid" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, undefined ) {
+
+$.widget( "mobile.navbar", $.mobile.widget, {
+       options: {
+               iconpos: "top",
+               grid: null,
+               initSelector: ":jqmData(role='navbar')"
+       },
+
+       _create: function(){
+
+               var $navbar = this.element,
+                       $navbtns = $navbar.find( "a" ),
+                       iconpos = $navbtns.filter( ":jqmData(icon)" ).length ?
+                                                                       this.options.iconpos : undefined;
+
+               $navbar.addClass( "ui-navbar" )
+                       .attr( "role","navigation" )
+                       .find( "ul" )
+                       .jqmEnhanceable()
+                       .grid({ grid: this.options.grid });
+
+               if ( !iconpos ) {
+                       $navbar.addClass( "ui-navbar-noicons" );
+               }
+
+               $navbtns.buttonMarkup({
+                       corners:        false,
+                       shadow:         false,
+                       inline:     true,
+                       iconpos:        iconpos
+               });
+
+               $navbar.delegate( "a", "vclick", function( event ) {
+                       if( !$(event.target).hasClass("ui-disabled") ) {
+                               $navbtns.removeClass( $.mobile.activeBtnClass );
+                               $( this ).addClass( $.mobile.activeBtnClass );
+                       }
+               });
+
+               // Buttons in the navbar with ui-state-persist class should regain their active state before page show
+               $navbar.closest( ".ui-page" ).bind( "pagebeforeshow", function() {
+                       $navbtns.filter( ".ui-state-persist" ).addClass( $.mobile.activeBtnClass );
+               });
+       }
+});
+
+//auto self-init widgets
+$( document ).bind( "pagecreate create", function( e ){
+       $.mobile.navbar.prototype.enhanceWithin( e.target );
+});
+
+})( jQuery );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.navigation.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.navigation.js
new file mode 100644 (file)
index 0000000..ad2f67c
--- /dev/null
@@ -0,0 +1,1456 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Applies the AJAX navigation system to links and forms to enable page transitions
+//>>label: AJAX Navigation System
+//>>group: Navigation
+
+define( [
+       "jquery",
+       "./jquery.mobile.core",
+       "./jquery.mobile.event",
+       "../external/requirejs/depend!./jquery.mobile.hashchange[jquery]",
+       "./jquery.mobile.page",
+       "./jquery.mobile.transition" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+( function( $, undefined ) {
+
+       //define vars for interal use
+       var $window = $( window ),
+               $html = $( 'html' ),
+               $head = $( 'head' ),
+
+               //url path helpers for use in relative url management
+               path = {
+
+                       // This scary looking regular expression parses an absolute URL or its relative
+                       // variants (protocol, site, document, query, and hash), into the various
+                       // components (protocol, host, path, query, fragment, etc that make up the
+                       // URL as well as some other commonly used sub-parts. When used with RegExp.exec()
+                       // or String.match, it parses the URL into a results array that looks like this:
+                       //
+                       //     [0]: http://jblas:password@mycompany.com:8080/mail/inbox?msg=1234&type=unread#msg-content
+                       //     [1]: http://jblas:password@mycompany.com:8080/mail/inbox?msg=1234&type=unread
+                       //     [2]: http://jblas:password@mycompany.com:8080/mail/inbox
+                       //     [3]: http://jblas:password@mycompany.com:8080
+                       //     [4]: http:
+                       //     [5]: //
+                       //     [6]: jblas:password@mycompany.com:8080
+                       //     [7]: jblas:password
+                       //     [8]: jblas
+                       //     [9]: password
+                       //    [10]: mycompany.com:8080
+                       //    [11]: mycompany.com
+                       //    [12]: 8080
+                       //    [13]: /mail/inbox
+                       //    [14]: /mail/
+                       //    [15]: inbox
+                       //    [16]: ?msg=1234&type=unread
+                       //    [17]: #msg-content
+                       //
+                       urlParseRE: /^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/,
+
+                       //Parse a URL into a structure that allows easy access to
+                       //all of the URL components by name.
+                       parseUrl: function( url ) {
+                               // If we're passed an object, we'll assume that it is
+                               // a parsed url object and just return it back to the caller.
+                               if ( $.type( url ) === "object" ) {
+                                       return url;
+                               }
+
+                               var matches = path.urlParseRE.exec( url || "" ) || [];
+
+                                       // Create an object that allows the caller to access the sub-matches
+                                       // by name. Note that IE returns an empty string instead of undefined,
+                                       // like all other browsers do, so we normalize everything so its consistent
+                                       // no matter what browser we're running on.
+                                       return {
+                                               href:         matches[  0 ] || "",
+                                               hrefNoHash:   matches[  1 ] || "",
+                                               hrefNoSearch: matches[  2 ] || "",
+                                               domain:       matches[  3 ] || "",
+                                               protocol:     matches[  4 ] || "",
+                                               doubleSlash:  matches[  5 ] || "",
+                                               authority:    matches[  6 ] || "",
+                                               username:     matches[  8 ] || "",
+                                               password:     matches[  9 ] || "",
+                                               host:         matches[ 10 ] || "",
+                                               hostname:     matches[ 11 ] || "",
+                                               port:         matches[ 12 ] || "",
+                                               pathname:     matches[ 13 ] || "",
+                                               directory:    matches[ 14 ] || "",
+                                               filename:     matches[ 15 ] || "",
+                                               search:       matches[ 16 ] || "",
+                                               hash:         matches[ 17 ] || ""
+                                       };
+                       },
+
+                       //Turn relPath into an asbolute path. absPath is
+                       //an optional absolute path which describes what
+                       //relPath is relative to.
+                       makePathAbsolute: function( relPath, absPath ) {
+                               if ( relPath && relPath.charAt( 0 ) === "/" ) {
+                                       return relPath;
+                               }
+
+                               relPath = relPath || "";
+                               absPath = absPath ? absPath.replace( /^\/|(\/[^\/]*|[^\/]+)$/g, "" ) : "";
+
+                               var absStack = absPath ? absPath.split( "/" ) : [],
+                                       relStack = relPath.split( "/" );
+                               for ( var i = 0; i < relStack.length; i++ ) {
+                                       var d = relStack[ i ];
+                                       switch ( d ) {
+                                               case ".":
+                                                       break;
+                                               case "..":
+                                                       if ( absStack.length ) {
+                                                               absStack.pop();
+                                                       }
+                                                       break;
+                                               default:
+                                                       absStack.push( d );
+                                                       break;
+                                       }
+                               }
+                               return "/" + absStack.join( "/" );
+                       },
+
+                       //Returns true if both urls have the same domain.
+                       isSameDomain: function( absUrl1, absUrl2 ) {
+                               return path.parseUrl( absUrl1 ).domain === path.parseUrl( absUrl2 ).domain;
+                       },
+
+                       //Returns true for any relative variant.
+                       isRelativeUrl: function( url ) {
+                               // All relative Url variants have one thing in common, no protocol.
+                               return path.parseUrl( url ).protocol === "";
+                       },
+
+                       //Returns true for an absolute url.
+                       isAbsoluteUrl: function( url ) {
+                               return path.parseUrl( url ).protocol !== "";
+                       },
+
+                       //Turn the specified realtive URL into an absolute one. This function
+                       //can handle all relative variants (protocol, site, document, query, fragment).
+                       makeUrlAbsolute: function( relUrl, absUrl ) {
+                               if ( !path.isRelativeUrl( relUrl ) ) {
+                                       return relUrl;
+                               }
+
+                               var relObj = path.parseUrl( relUrl ),
+                                       absObj = path.parseUrl( absUrl ),
+                                       protocol = relObj.protocol || absObj.protocol,
+                                       doubleSlash = relObj.protocol ? relObj.doubleSlash : ( relObj.doubleSlash || absObj.doubleSlash ),
+                                       authority = relObj.authority || absObj.authority,
+                                       hasPath = relObj.pathname !== "",
+                                       pathname = path.makePathAbsolute( relObj.pathname || absObj.filename, absObj.pathname ),
+                                       search = relObj.search || ( !hasPath && absObj.search ) || "",
+                                       hash = relObj.hash;
+
+                               return protocol + doubleSlash + authority + pathname + search + hash;
+                       },
+
+                       //Add search (aka query) params to the specified url.
+                       addSearchParams: function( url, params ) {
+                               var u = path.parseUrl( url ),
+                                       p = ( typeof params === "object" ) ? $.param( params ) : params,
+                                       s = u.search || "?";
+                               return u.hrefNoSearch + s + ( s.charAt( s.length - 1 ) !== "?" ? "&" : "" ) + p + ( u.hash || "" );
+                       },
+
+                       convertUrlToDataUrl: function( absUrl ) {
+                               var u = path.parseUrl( absUrl );
+                               if ( path.isEmbeddedPage( u ) ) {
+                                   // For embedded pages, remove the dialog hash key as in getFilePath(),
+                                   // otherwise the Data Url won't match the id of the embedded Page.
+                                       return u.hash.split( dialogHashKey )[0].replace( /^#/, "" );
+                               } else if ( path.isSameDomain( u, documentBase ) ) {
+                                       return u.hrefNoHash.replace( documentBase.domain, "" );
+                               }
+                               return absUrl;
+                       },
+
+                       //get path from current hash, or from a file path
+                       get: function( newPath ) {
+                               if( newPath === undefined ) {
+                                       newPath = location.hash;
+                               }
+                               return path.stripHash( newPath ).replace( /[^\/]*\.[^\/*]+$/, '' );
+                       },
+
+                       //return the substring of a filepath before the sub-page key, for making a server request
+                       getFilePath: function( path ) {
+                               var splitkey = '&' + $.mobile.subPageUrlKey;
+                               return path && path.split( splitkey )[0].split( dialogHashKey )[0];
+                       },
+
+                       //set location hash to path
+                       set: function( path ) {
+                               location.hash = path;
+                       },
+
+                       //test if a given url (string) is a path
+                       //NOTE might be exceptionally naive
+                       isPath: function( url ) {
+                               return ( /\// ).test( url );
+                       },
+
+                       //return a url path with the window's location protocol/hostname/pathname removed
+                       clean: function( url ) {
+                               return url.replace( documentBase.domain, "" );
+                       },
+
+                       //just return the url without an initial #
+                       stripHash: function( url ) {
+                               return url.replace( /^#/, "" );
+                       },
+
+                       //remove the preceding hash, any query params, and dialog notations
+                       cleanHash: function( hash ) {
+                               return path.stripHash( hash.replace( /\?.*$/, "" ).replace( dialogHashKey, "" ) );
+                       },
+
+                       //check whether a url is referencing the same domain, or an external domain or different protocol
+                       //could be mailto, etc
+                       isExternal: function( url ) {
+                               var u = path.parseUrl( url );
+                               return u.protocol && u.domain !== documentUrl.domain ? true : false;
+                       },
+
+                       hasProtocol: function( url ) {
+                               return ( /^(:?\w+:)/ ).test( url );
+                       },
+
+                       //check if the specified url refers to the first page in the main application document.
+                       isFirstPageUrl: function( url ) {
+                               // We only deal with absolute paths.
+                               var u = path.parseUrl( path.makeUrlAbsolute( url, documentBase ) ),
+
+                                       // Does the url have the same path as the document?
+                                       samePath = u.hrefNoHash === documentUrl.hrefNoHash || ( documentBaseDiffers && u.hrefNoHash === documentBase.hrefNoHash ),
+
+                                       // Get the first page element.
+                                       fp = $.mobile.firstPage,
+
+                                       // Get the id of the first page element if it has one.
+                                       fpId = fp && fp[0] ? fp[0].id : undefined;
+
+                                       // The url refers to the first page if the path matches the document and
+                                       // it either has no hash value, or the hash is exactly equal to the id of the
+                                       // first page element.
+                                       return samePath && ( !u.hash || u.hash === "#" || ( fpId && u.hash.replace( /^#/, "" ) === fpId ) );
+                       },
+
+                       isEmbeddedPage: function( url ) {
+                               var u = path.parseUrl( url );
+
+                               //if the path is absolute, then we need to compare the url against
+                               //both the documentUrl and the documentBase. The main reason for this
+                               //is that links embedded within external documents will refer to the
+                               //application document, whereas links embedded within the application
+                               //document will be resolved against the document base.
+                               if ( u.protocol !== "" ) {
+                                       return ( u.hash && ( u.hrefNoHash === documentUrl.hrefNoHash || ( documentBaseDiffers && u.hrefNoHash === documentBase.hrefNoHash ) ) );
+                               }
+                               return (/^#/).test( u.href );
+                       }
+               },
+
+               //will be defined when a link is clicked and given an active class
+               $activeClickedLink = null,
+
+               //urlHistory is purely here to make guesses at whether the back or forward button was clicked
+               //and provide an appropriate transition
+               urlHistory = {
+                       // Array of pages that are visited during a single page load.
+                       // Each has a url and optional transition, title, and pageUrl (which represents the file path, in cases where URL is obscured, such as dialogs)
+                       stack: [],
+
+                       //maintain an index number for the active page in the stack
+                       activeIndex: 0,
+
+                       //get active
+                       getActive: function() {
+                               return urlHistory.stack[ urlHistory.activeIndex ];
+                       },
+
+                       getPrev: function() {
+                               return urlHistory.stack[ urlHistory.activeIndex - 1 ];
+                       },
+
+                       getNext: function() {
+                               return urlHistory.stack[ urlHistory.activeIndex + 1 ];
+                       },
+
+                       // addNew is used whenever a new page is added
+                       addNew: function( url, transition, title, pageUrl, role ) {
+                               //if there's forward history, wipe it
+                               if( urlHistory.getNext() ) {
+                                       urlHistory.clearForward();
+                               }
+
+                               urlHistory.stack.push( {url : url, transition: transition, title: title, pageUrl: pageUrl, role: role } );
+
+                               urlHistory.activeIndex = urlHistory.stack.length - 1;
+                       },
+
+                       //wipe urls ahead of active index
+                       clearForward: function() {
+                               urlHistory.stack = urlHistory.stack.slice( 0, urlHistory.activeIndex + 1 );
+                       },
+
+                       directHashChange: function( opts ) {
+                               var back , forward, newActiveIndex, prev = this.getActive();
+
+                               // check if url isp in history and if it's ahead or behind current page
+                               $.each( urlHistory.stack, function( i, historyEntry ) {
+
+                                       //if the url is in the stack, it's a forward or a back
+                                       if( opts.currentUrl === historyEntry.url ) {
+                                               //define back and forward by whether url is older or newer than current page
+                                               back = i < urlHistory.activeIndex;
+                                               forward = !back;
+                                               newActiveIndex = i;
+                                       }
+                               });
+
+                               // save new page index, null check to prevent falsey 0 result
+                               this.activeIndex = newActiveIndex !== undefined ? newActiveIndex : this.activeIndex;
+
+                               if( back ) {
+                                       ( opts.either || opts.isBack )( true );
+                               } else if( forward ) {
+                                       ( opts.either || opts.isForward )( false );
+                               }
+                       },
+
+                       //disable hashchange event listener internally to ignore one change
+                       //toggled internally when location.hash is updated to match the url of a successful page load
+                       ignoreNextHashChange: false
+               },
+
+               //define first selector to receive focus when a page is shown
+               focusable = "[tabindex],a,button:visible,select:visible,input",
+
+               //queue to hold simultanious page transitions
+               pageTransitionQueue = [],
+
+               //indicates whether or not page is in process of transitioning
+               isPageTransitioning = false,
+
+               //nonsense hash change key for dialogs, so they create a history entry
+               dialogHashKey = "&ui-state=dialog",
+
+               //existing base tag?
+               $base = $head.children( "base" ),
+
+               //tuck away the original document URL minus any fragment.
+               documentUrl = path.parseUrl( location.href ),
+
+               //if the document has an embedded base tag, documentBase is set to its
+               //initial value. If a base tag does not exist, then we default to the documentUrl.
+               documentBase = $base.length ? path.parseUrl( path.makeUrlAbsolute( $base.attr( "href" ), documentUrl.href ) ) : documentUrl,
+
+               //cache the comparison once.
+               documentBaseDiffers = ( documentUrl.hrefNoHash !== documentBase.hrefNoHash );
+
+               //base element management, defined depending on dynamic base tag support
+               var base = $.support.dynamicBaseTag ? {
+
+                       //define base element, for use in routing asset urls that are referenced in Ajax-requested markup
+                       element: ( $base.length ? $base : $( "<base>", { href: documentBase.hrefNoHash } ).prependTo( $head ) ),
+
+                       //set the generated BASE element's href attribute to a new page's base path
+                       set: function( href ) {
+                               base.element.attr( "href", path.makeUrlAbsolute( href, documentBase ) );
+                       },
+
+                       //set the generated BASE element's href attribute to a new page's base path
+                       reset: function() {
+                               base.element.attr( "href", documentBase.hrefNoHash );
+                       }
+
+               } : undefined;
+
+/*
+       internal utility functions
+--------------------------------------*/
+
+
+       //direct focus to the page title, or otherwise first focusable element
+       $.mobile.focusPage = function ( page ) {
+               var autofocus = page.find("[autofocus]"),
+                       pageTitle = page.find( ".ui-title:eq(0)" );
+
+               if( autofocus.length ) {
+                       autofocus.focus();
+                       return;
+               }
+
+               if( pageTitle.length ) {
+                       pageTitle.focus();
+               }
+               else{
+                       page.focus();
+               }
+       }
+
+       //remove active classes after page transition or error
+       function removeActiveLinkClass( forceRemoval ) {
+               if( !!$activeClickedLink && ( !$activeClickedLink.closest( '.ui-page-active' ).length || forceRemoval ) ) {
+                       $activeClickedLink.removeClass( $.mobile.activeBtnClass );
+               }
+               $activeClickedLink = null;
+       }
+
+       function releasePageTransitionLock() {
+               isPageTransitioning = false;
+               if( pageTransitionQueue.length > 0 ) {
+                       $.mobile.changePage.apply( null, pageTransitionQueue.pop() );
+               }
+       }
+
+       // Save the last scroll distance per page, before it is hidden
+       var setLastScrollEnabled = true,
+               setLastScroll, delayedSetLastScroll;
+
+       setLastScroll = function() {
+               // this barrier prevents setting the scroll value based on the browser
+               // scrolling the window based on a hashchange
+               if( !setLastScrollEnabled ) {
+                       return;
+               }
+
+               var active = $.mobile.urlHistory.getActive();
+
+               if( active ) {
+                       var lastScroll = $window.scrollTop();
+
+                       // Set active page's lastScroll prop.
+                       // If the location we're scrolling to is less than minScrollBack, let it go.
+                       active.lastScroll = lastScroll < $.mobile.minScrollBack ? $.mobile.defaultHomeScroll : lastScroll;
+               }
+       };
+
+       // bind to scrollstop to gather scroll position. The delay allows for the hashchange
+       // event to fire and disable scroll recording in the case where the browser scrolls
+       // to the hash targets location (sometimes the top of the page). once pagechange fires
+       // getLastScroll is again permitted to operate
+       delayedSetLastScroll = function() {
+               setTimeout( setLastScroll, 100 );
+       };
+
+       // disable an scroll setting when a hashchange has been fired, this only works
+       // because the recording of the scroll position is delayed for 100ms after
+       // the browser might have changed the position because of the hashchange
+       $window.bind( $.support.pushState ? "popstate" : "hashchange", function() {
+               setLastScrollEnabled = false;
+       });
+
+       // handle initial hashchange from chrome :(
+       $window.one( $.support.pushState ? "popstate" : "hashchange", function() {
+               setLastScrollEnabled = true;
+       });
+
+       // wait until the mobile page container has been determined to bind to pagechange
+       $window.one( "pagecontainercreate", function(){
+               // once the page has changed, re-enable the scroll recording
+               $.mobile.pageContainer.bind( "pagechange", function() {
+
+                       setLastScrollEnabled = true;
+
+                       // remove any binding that previously existed on the get scroll
+                       // which may or may not be different than the scroll element determined for
+                       // this page previously
+                       $window.unbind( "scrollstop", delayedSetLastScroll );
+
+                       // determine and bind to the current scoll element which may be the window
+                       // or in the case of touch overflow the element with touch overflow
+                       $window.bind( "scrollstop", delayedSetLastScroll );
+               });
+       });
+
+       // bind to scrollstop for the first page as "pagechange" won't be fired in that case
+       $window.bind( "scrollstop", delayedSetLastScroll );
+
+       //function for transitioning between two existing pages
+       function transitionPages( toPage, fromPage, transition, reverse ) {
+
+               if( fromPage ) {
+                       //trigger before show/hide events
+                       fromPage.data( "page" )._trigger( "beforehide", null, { nextPage: toPage } );
+               }
+
+               toPage.data( "page" )._trigger( "beforeshow", null, { prevPage: fromPage || $( "" ) } );
+
+               //clear page loader
+               $.mobile.hidePageLoadingMsg();
+               
+               // If transition is defined, check if css 3D transforms are supported, and if not, if a fallback is specified
+               if( transition && !$.support.cssTransform3d && $.mobile.transitionFallbacks[ transition ] ){
+                       transition = $.mobile.transitionFallbacks[ transition ];
+               }
+               
+               //find the transition handler for the specified transition. If there
+               //isn't one in our transitionHandlers dictionary, use the default one.
+               //call the handler immediately to kick-off the transition.
+               var th = $.mobile.transitionHandlers[ transition || "default" ] || $.mobile.defaultTransitionHandler,
+                       promise = th( transition, reverse, toPage, fromPage );
+
+               promise.done(function() {
+
+                       //trigger show/hide events
+                       if( fromPage ) {
+                               fromPage.data( "page" )._trigger( "hide", null, { nextPage: toPage } );
+                       }
+
+                       //trigger pageshow, define prevPage as either fromPage or empty jQuery obj
+                       toPage.data( "page" )._trigger( "show", null, { prevPage: fromPage || $( "" ) } );
+               });
+
+               return promise;
+       }
+
+       //simply set the active page's minimum height to screen height, depending on orientation
+       function getScreenHeight(){
+               // Native innerHeight returns more accurate value for this across platforms, 
+               // jQuery version is here as a normalized fallback for platforms like Symbian
+               return window.innerHeight || $( window ).height();
+       }
+
+       $.mobile.getScreenHeight = getScreenHeight;
+
+       //simply set the active page's minimum height to screen height, depending on orientation
+       function resetActivePageHeight(){
+               var aPage = $( "." + $.mobile.activePageClass ),
+                       aPagePadT = parseFloat( aPage.css( "padding-top" ) ),
+                       aPagePadB = parseFloat( aPage.css( "padding-bottom" ) );
+                               
+               aPage.css( "min-height", getScreenHeight() - aPagePadT - aPagePadB );
+       }
+
+       //shared page enhancements
+       function enhancePage( $page, role ) {
+               // If a role was specified, make sure the data-role attribute
+               // on the page element is in sync.
+               if( role ) {
+                       $page.attr( "data-" + $.mobile.ns + "role", role );
+               }
+
+               //run page plugin
+               $page.page();
+       }
+
+/* exposed $.mobile methods     */
+
+       //animation complete callback
+       $.fn.animationComplete = function( callback ) {
+               if( $.support.cssTransitions ) {
+                       return $( this ).one( 'webkitAnimationEnd animationend', callback );
+               }
+               else{
+                       // defer execution for consistency between webkit/non webkit
+                       setTimeout( callback, 0 );
+                       return $( this );
+               }
+       };
+
+       //expose path object on $.mobile
+       $.mobile.path = path;
+
+       //expose base object on $.mobile
+       $.mobile.base = base;
+
+       //history stack
+       $.mobile.urlHistory = urlHistory;
+
+       $.mobile.dialogHashKey = dialogHashKey;
+
+
+
+       //enable cross-domain page support
+       $.mobile.allowCrossDomainPages = false;
+
+       //return the original document url
+       $.mobile.getDocumentUrl = function(asParsedObject) {
+               return asParsedObject ? $.extend( {}, documentUrl ) : documentUrl.href;
+       };
+
+       //return the original document base url
+       $.mobile.getDocumentBase = function(asParsedObject) {
+               return asParsedObject ? $.extend( {}, documentBase ) : documentBase.href;
+       };
+
+       $.mobile._bindPageRemove = function() {
+               var page = $(this);
+
+               // when dom caching is not enabled or the page is embedded bind to remove the page on hide
+               if( !page.data("page").options.domCache
+                               && page.is(":jqmData(external-page='true')") ) {
+
+                       page.bind( 'pagehide.remove', function() {
+                               var $this = $( this ),
+                                       prEvent = new $.Event( "pageremove" );
+
+                               $this.trigger( prEvent );
+
+                               if( !prEvent.isDefaultPrevented() ){
+                                       $this.removeWithDependents();
+                               }
+                       });
+               }
+       };
+
+       // Load a page into the DOM.
+       $.mobile.loadPage = function( url, options ) {
+               // This function uses deferred notifications to let callers
+               // know when the page is done loading, or if an error has occurred.
+               var deferred = $.Deferred(),
+
+                       // The default loadPage options with overrides specified by
+                       // the caller.
+                       settings = $.extend( {}, $.mobile.loadPage.defaults, options ),
+
+                       // The DOM element for the page after it has been loaded.
+                       page = null,
+
+                       // If the reloadPage option is true, and the page is already
+                       // in the DOM, dupCachedPage will be set to the page element
+                       // so that it can be removed after the new version of the
+                       // page is loaded off the network.
+                       dupCachedPage = null,
+
+                       // determine the current base url
+                       findBaseWithDefault = function(){
+                               var closestBase = ( $.mobile.activePage && getClosestBaseUrl( $.mobile.activePage ) );
+                               return closestBase || documentBase.hrefNoHash;
+                       },
+
+                       // The absolute version of the URL passed into the function. This
+                       // version of the URL may contain dialog/subpage params in it.
+                       absUrl = path.makeUrlAbsolute( url, findBaseWithDefault() );
+
+
+               // If the caller provided data, and we're using "get" request,
+               // append the data to the URL.
+               if ( settings.data && settings.type === "get" ) {
+                       absUrl = path.addSearchParams( absUrl, settings.data );
+                       settings.data = undefined;
+               }
+
+               // If the caller is using a "post" request, reloadPage must be true
+               if(  settings.data && settings.type === "post" ){
+                       settings.reloadPage = true;
+               }
+
+                       // The absolute version of the URL minus any dialog/subpage params.
+                       // In otherwords the real URL of the page to be loaded.
+               var fileUrl = path.getFilePath( absUrl ),
+
+                       // The version of the Url actually stored in the data-url attribute of
+                       // the page. For embedded pages, it is just the id of the page. For pages
+                       // within the same domain as the document base, it is the site relative
+                       // path. For cross-domain pages (Phone Gap only) the entire absolute Url
+                       // used to load the page.
+                       dataUrl = path.convertUrlToDataUrl( absUrl );
+
+               // Make sure we have a pageContainer to work with.
+               settings.pageContainer = settings.pageContainer || $.mobile.pageContainer;
+
+               // Check to see if the page already exists in the DOM.
+               page = settings.pageContainer.children( ":jqmData(url='" + dataUrl + "')" );
+
+               // If we failed to find the page, check to see if the url is a
+               // reference to an embedded page. If so, it may have been dynamically
+               // injected by a developer, in which case it would be lacking a data-url
+               // attribute and in need of enhancement.
+               if ( page.length === 0 && dataUrl && !path.isPath( dataUrl ) ) {
+                       page = settings.pageContainer.children( "#" + dataUrl )
+                               .attr( "data-" + $.mobile.ns + "url", dataUrl );
+               }
+
+               // If we failed to find a page in the DOM, check the URL to see if it
+               // refers to the first page in the application. If it isn't a reference
+               // to the first page and refers to non-existent embedded page, error out.
+               if ( page.length === 0 ) {
+                       if ( $.mobile.firstPage && path.isFirstPageUrl( fileUrl ) ) {
+                               // Check to make sure our cached-first-page is actually
+                               // in the DOM. Some user deployed apps are pruning the first
+                               // page from the DOM for various reasons, we check for this
+                               // case here because we don't want a first-page with an id
+                               // falling through to the non-existent embedded page error
+                               // case. If the first-page is not in the DOM, then we let
+                               // things fall through to the ajax loading code below so
+                               // that it gets reloaded.
+                               if ( $.mobile.firstPage.parent().length ) {
+                                       page = $( $.mobile.firstPage );
+                               }
+                       } else if ( path.isEmbeddedPage( fileUrl )  ) {
+                               deferred.reject( absUrl, options );
+                               return deferred.promise();
+                       }
+               }
+
+               // Reset base to the default document base.
+               if ( base ) {
+                       base.reset();
+               }
+
+               // If the page we are interested in is already in the DOM,
+               // and the caller did not indicate that we should force a
+               // reload of the file, we are done. Otherwise, track the
+               // existing page as a duplicated.
+               if ( page.length ) {
+                       if ( !settings.reloadPage ) {
+                               enhancePage( page, settings.role );
+                               deferred.resolve( absUrl, options, page );
+                               return deferred.promise();
+                       }
+                       dupCachedPage = page;
+               }
+
+               var mpc = settings.pageContainer,
+                       pblEvent = new $.Event( "pagebeforeload" ),
+                       triggerData = { url: url, absUrl: absUrl, dataUrl: dataUrl, deferred: deferred, options: settings };
+
+               // Let listeners know we're about to load a page.
+               mpc.trigger( pblEvent, triggerData );
+
+               // If the default behavior is prevented, stop here!
+               if( pblEvent.isDefaultPrevented() ){
+                       return deferred.promise();
+               }
+
+               if ( settings.showLoadMsg ) {
+
+                       // This configurable timeout allows cached pages a brief delay to load without showing a message
+                       var loadMsgDelay = setTimeout(function(){
+                                       $.mobile.showPageLoadingMsg();
+                               }, settings.loadMsgDelay ),
+
+                               // Shared logic for clearing timeout and removing message.
+                               hideMsg = function(){
+
+                                       // Stop message show timer
+                                       clearTimeout( loadMsgDelay );
+
+                                       // Hide loading message
+                                       $.mobile.hidePageLoadingMsg();
+                               };
+               }
+
+               if ( !( $.mobile.allowCrossDomainPages || path.isSameDomain( documentUrl, absUrl ) ) ) {
+                       deferred.reject( absUrl, options );
+               } else {
+                       // Load the new page.
+                       $.ajax({
+                               url: fileUrl,
+                               type: settings.type,
+                               data: settings.data,
+                               dataType: "html",
+                               success: function( html, textStatus, xhr ) {
+                                       //pre-parse html to check for a data-url,
+                                       //use it as the new fileUrl, base path, etc
+                                       var all = $( "<div></div>" ),
+
+                                               //page title regexp
+                                               newPageTitle = html.match( /<title[^>]*>([^<]*)/ ) && RegExp.$1,
+
+                                               // TODO handle dialogs again
+                                               pageElemRegex = new RegExp( "(<[^>]+\\bdata-" + $.mobile.ns + "role=[\"']?page[\"']?[^>]*>)" ),
+                                               dataUrlRegex = new RegExp( "\\bdata-" + $.mobile.ns + "url=[\"']?([^\"'>]*)[\"']?" );
+
+
+                                       // data-url must be provided for the base tag so resource requests can be directed to the
+                                       // correct url. loading into a temprorary element makes these requests immediately
+                                       if( pageElemRegex.test( html )
+                                                       && RegExp.$1
+                                                       && dataUrlRegex.test( RegExp.$1 )
+                                                       && RegExp.$1 ) {
+                                               url = fileUrl = path.getFilePath( RegExp.$1 );
+                                       }
+
+                                       if ( base ) {
+                                               base.set( fileUrl );
+                                       }
+
+                                       //workaround to allow scripts to execute when included in page divs
+                                       all.get( 0 ).innerHTML = html;
+                                       page = all.find( ":jqmData(role='page'), :jqmData(role='dialog')" ).first();
+
+                                       //if page elem couldn't be found, create one and insert the body element's contents
+                                       if( !page.length ){
+                                               page = $( "<div data-" + $.mobile.ns + "role='page'>" + html.split( /<\/?body[^>]*>/gmi )[1] + "</div>" );
+                                       }
+
+                                       if ( newPageTitle && !page.jqmData( "title" ) ) {
+                                               if ( ~newPageTitle.indexOf( "&" ) ) {
+                                                       newPageTitle = $( "<div>" + newPageTitle + "</div>" ).text();
+                                               }
+                                               page.jqmData( "title", newPageTitle );
+                                       }
+
+                                       //rewrite src and href attrs to use a base url
+                                       if( !$.support.dynamicBaseTag ) {
+                                               var newPath = path.get( fileUrl );
+                                               page.find( "[src], link[href], a[rel='external'], :jqmData(ajax='false'), a[target]" ).each(function() {
+                                                       var thisAttr = $( this ).is( '[href]' ) ? 'href' :
+                                                                       $(this).is('[src]') ? 'src' : 'action',
+                                                               thisUrl = $( this ).attr( thisAttr );
+
+                                                       // XXX_jblas: We need to fix this so that it removes the document
+                                                       //            base URL, and then prepends with the new page URL.
+                                                       //if full path exists and is same, chop it - helps IE out
+                                                       thisUrl = thisUrl.replace( location.protocol + '//' + location.host + location.pathname, '' );
+
+                                                       if( !/^(\w+:|#|\/)/.test( thisUrl ) ) {
+                                                               $( this ).attr( thisAttr, newPath + thisUrl );
+                                                       }
+                                               });
+                                       }
+
+                                       //append to page and enhance
+                                       // TODO taging a page with external to make sure that embedded pages aren't removed
+                                       //      by the various page handling code is bad. Having page handling code in many
+                                       //      places is bad. Solutions post 1.0
+                                       page
+                                               .attr( "data-" + $.mobile.ns + "url", path.convertUrlToDataUrl( fileUrl ) )
+                                               .attr( "data-" + $.mobile.ns + "external-page", true )
+                                               .appendTo( settings.pageContainer );
+
+                                       // wait for page creation to leverage options defined on widget
+                                       page.one( 'pagecreate', $.mobile._bindPageRemove );
+
+                                       enhancePage( page, settings.role );
+
+                                       // Enhancing the page may result in new dialogs/sub pages being inserted
+                                       // into the DOM. If the original absUrl refers to a sub-page, that is the
+                                       // real page we are interested in.
+                                       if ( absUrl.indexOf( "&" + $.mobile.subPageUrlKey ) > -1 ) {
+                                               page = settings.pageContainer.children( ":jqmData(url='" + dataUrl + "')" );
+                                       }
+
+                                       //bind pageHide to removePage after it's hidden, if the page options specify to do so
+
+                                       // Remove loading message.
+                                       if ( settings.showLoadMsg ) {
+                                               hideMsg();
+                                       }
+
+                                       // Add the page reference and xhr to our triggerData.
+                                       triggerData.xhr = xhr;
+                                       triggerData.textStatus = textStatus;
+                                       triggerData.page = page;
+
+                                       // Let listeners know the page loaded successfully.
+                                       settings.pageContainer.trigger( "pageload", triggerData );
+
+                                       deferred.resolve( absUrl, options, page, dupCachedPage );
+                               },
+                               error: function( xhr, textStatus, errorThrown ) {
+                                       //set base back to current path
+                                       if( base ) {
+                                               base.set( path.get() );
+                                       }
+
+                                       // Add error info to our triggerData.
+                                       triggerData.xhr = xhr;
+                                       triggerData.textStatus = textStatus;
+                                       triggerData.errorThrown = errorThrown;
+
+                                       var plfEvent = new $.Event( "pageloadfailed" );
+
+                                       // Let listeners know the page load failed.
+                                       settings.pageContainer.trigger( plfEvent, triggerData );
+
+                                       // If the default behavior is prevented, stop here!
+                                       // Note that it is the responsibility of the listener/handler
+                                       // that called preventDefault(), to resolve/reject the
+                                       // deferred object within the triggerData.
+                                       if( plfEvent.isDefaultPrevented() ){
+                                               return;
+                                       }
+
+                                       // Remove loading message.
+                                       if ( settings.showLoadMsg ) {
+
+                                               // Remove loading message.
+                                               hideMsg();
+
+                                               // show error message
+                                               $.mobile.showPageLoadingMsg( $.mobile.pageLoadErrorMessageTheme, $.mobile.pageLoadErrorMessage, true );
+
+                                               // hide after delay
+                                               setTimeout( $.mobile.hidePageLoadingMsg, 1500 );
+                                       }
+
+                                       deferred.reject( absUrl, options );
+                               }
+                       });
+               }
+
+               return deferred.promise();
+       };
+
+       $.mobile.loadPage.defaults = {
+               type: "get",
+               data: undefined,
+               reloadPage: false,
+               role: undefined, // By default we rely on the role defined by the @data-role attribute.
+               showLoadMsg: false,
+               pageContainer: undefined,
+               loadMsgDelay: 50 // This delay allows loads that pull from browser cache to occur without showing the loading message.
+       };
+
+       // Show a specific page in the page container.
+       $.mobile.changePage = function( toPage, options ) {
+               // If we are in the midst of a transition, queue the current request.
+               // We'll call changePage() once we're done with the current transition to
+               // service the request.
+               if( isPageTransitioning ) {
+                       pageTransitionQueue.unshift( arguments );
+                       return;
+               }
+
+               var settings = $.extend( {}, $.mobile.changePage.defaults, options );
+
+               // Make sure we have a pageContainer to work with.
+               settings.pageContainer = settings.pageContainer || $.mobile.pageContainer;
+
+               // Make sure we have a fromPage.
+               settings.fromPage = settings.fromPage || $.mobile.activePage;
+
+               var mpc = settings.pageContainer,
+                       pbcEvent = new $.Event( "pagebeforechange" ),
+                       triggerData = { toPage: toPage, options: settings };
+
+               // Let listeners know we're about to change the current page.
+               mpc.trigger( pbcEvent, triggerData );
+
+               // If the default behavior is prevented, stop here!
+               if( pbcEvent.isDefaultPrevented() ){
+                       return;
+               }
+
+               // We allow "pagebeforechange" observers to modify the toPage in the trigger
+               // data to allow for redirects. Make sure our toPage is updated.
+
+               toPage = triggerData.toPage;
+
+               // Set the isPageTransitioning flag to prevent any requests from
+               // entering this method while we are in the midst of loading a page
+               // or transitioning.
+
+               isPageTransitioning = true;
+
+               // If the caller passed us a url, call loadPage()
+               // to make sure it is loaded into the DOM. We'll listen
+               // to the promise object it returns so we know when
+               // it is done loading or if an error ocurred.
+               if ( typeof toPage == "string" ) {
+                       $.mobile.loadPage( toPage, settings )
+                               .done(function( url, options, newPage, dupCachedPage ) {
+                                       isPageTransitioning = false;
+                                       options.duplicateCachedPage = dupCachedPage;
+                                       $.mobile.changePage( newPage, options );
+                               })
+                               .fail(function( url, options ) {
+                                       isPageTransitioning = false;
+
+                                       //clear out the active button state
+                                       removeActiveLinkClass( true );
+
+                                       //release transition lock so navigation is free again
+                                       releasePageTransitionLock();
+                                       settings.pageContainer.trigger( "pagechangefailed", triggerData );
+                               });
+                       return;
+               }
+
+               // If we are going to the first-page of the application, we need to make
+               // sure settings.dataUrl is set to the application document url. This allows
+               // us to avoid generating a document url with an id hash in the case where the
+               // first-page of the document has an id attribute specified.
+               if ( toPage[ 0 ] === $.mobile.firstPage[ 0 ] && !settings.dataUrl ) {
+                       settings.dataUrl = documentUrl.hrefNoHash;
+               }
+
+               // The caller passed us a real page DOM element. Update our
+               // internal state and then trigger a transition to the page.
+               var fromPage = settings.fromPage,
+                       url = ( settings.dataUrl && path.convertUrlToDataUrl( settings.dataUrl ) ) || toPage.jqmData( "url" ),
+                       // The pageUrl var is usually the same as url, except when url is obscured as a dialog url. pageUrl always contains the file path
+                       pageUrl = url,
+                       fileUrl = path.getFilePath( url ),
+                       active = urlHistory.getActive(),
+                       activeIsInitialPage = urlHistory.activeIndex === 0,
+                       historyDir = 0,
+                       pageTitle = document.title,
+                       isDialog = settings.role === "dialog" || toPage.jqmData( "role" ) === "dialog";
+
+               // By default, we prevent changePage requests when the fromPage and toPage
+               // are the same element, but folks that generate content manually/dynamically
+               // and reuse pages want to be able to transition to the same page. To allow
+               // this, they will need to change the default value of allowSamePageTransition
+               // to true, *OR*, pass it in as an option when they manually call changePage().
+               // It should be noted that our default transition animations assume that the
+               // formPage and toPage are different elements, so they may behave unexpectedly.
+               // It is up to the developer that turns on the allowSamePageTransitiona option
+               // to either turn off transition animations, or make sure that an appropriate
+               // animation transition is used.
+               if( fromPage && fromPage[0] === toPage[0] && !settings.allowSamePageTransition ) {
+                       isPageTransitioning = false;
+                       mpc.trigger( "pagechange", triggerData );
+                       return;
+               }
+
+               // We need to make sure the page we are given has already been enhanced.
+               enhancePage( toPage, settings.role );
+
+               // If the changePage request was sent from a hashChange event, check to see if the
+               // page is already within the urlHistory stack. If so, we'll assume the user hit
+               // the forward/back button and will try to match the transition accordingly.
+               if( settings.fromHashChange ) {
+                       urlHistory.directHashChange({
+                               currentUrl:     url,
+                               isBack:         function() { historyDir = -1; },
+                               isForward:      function() { historyDir = 1; }
+                       });
+               }
+
+               // Kill the keyboard.
+               // XXX_jblas: We need to stop crawling the entire document to kill focus. Instead,
+               //            we should be tracking focus with a delegate() handler so we already have
+               //            the element in hand at this point.
+               // Wrap this in a try/catch block since IE9 throw "Unspecified error" if document.activeElement
+               // is undefined when we are in an IFrame.
+               try {
+                       if(document.activeElement && document.activeElement.nodeName.toLowerCase() != 'body') {
+                               $(document.activeElement).blur();
+                       } else {
+                               $( "input:focus, textarea:focus, select:focus" ).blur();
+                       }
+               } catch(e) {}
+
+               // If we're displaying the page as a dialog, we don't want the url
+               // for the dialog content to be used in the hash. Instead, we want
+               // to append the dialogHashKey to the url of the current page.
+               if ( isDialog && active ) {
+                       // on the initial page load active.url is undefined and in that case should
+                       // be an empty string. Moving the undefined -> empty string back into
+                       // urlHistory.addNew seemed imprudent given undefined better represents
+                       // the url state
+                       url = ( active.url || "" ) + dialogHashKey;
+               }
+
+               // Set the location hash.
+               if( settings.changeHash !== false && url ) {
+                       //disable hash listening temporarily
+                       urlHistory.ignoreNextHashChange = true;
+                       //update hash and history
+                       path.set( url );
+               }
+
+               // if title element wasn't found, try the page div data attr too
+               // If this is a deep-link or a reload ( active === undefined ) then just use pageTitle
+               var newPageTitle = ( !active )? pageTitle : toPage.jqmData( "title" ) || toPage.children(":jqmData(role='header')").find(".ui-title" ).getEncodedText();
+               if( !!newPageTitle && pageTitle == document.title ) {
+                       pageTitle = newPageTitle;
+               }
+               if ( !toPage.jqmData( "title" ) ) {
+                       toPage.jqmData( "title", pageTitle );
+               }
+
+               // Make sure we have a transition defined.
+               settings.transition = settings.transition
+                       || ( ( historyDir && !activeIsInitialPage ) ? active.transition : undefined )
+                       || ( isDialog ? $.mobile.defaultDialogTransition : $.mobile.defaultPageTransition );
+
+               //add page to history stack if it's not back or forward
+               if( !historyDir ) {
+                       urlHistory.addNew( url, settings.transition, pageTitle, pageUrl, settings.role );
+               }
+
+               //set page title
+               document.title = urlHistory.getActive().title;
+
+               //set "toPage" as activePage
+               $.mobile.activePage = toPage;
+
+               // If we're navigating back in the URL history, set reverse accordingly.
+               settings.reverse = settings.reverse || historyDir < 0;
+
+               transitionPages( toPage, fromPage, settings.transition, settings.reverse )
+                       .done(function( name, reverse, $to, $from, alreadyFocused ) {
+                               removeActiveLinkClass();
+
+                               //if there's a duplicateCachedPage, remove it from the DOM now that it's hidden
+                               if ( settings.duplicateCachedPage ) {
+                                       settings.duplicateCachedPage.remove();
+                               }
+
+                               // Send focus to the newly shown page. Moved from promise .done binding in transitionPages
+                               // itself to avoid ie bug that reports offsetWidth as > 0 (core check for visibility)
+                               // despite visibility: hidden addresses issue #2965
+                               // https://github.com/jquery/jquery-mobile/issues/2965
+                               if( !alreadyFocused ){
+                                       $.mobile.focusPage( toPage );
+                               }
+
+                               releasePageTransitionLock();
+
+                               // Let listeners know we're all done changing the current page.
+                               mpc.trigger( "pagechange", triggerData );
+                       });
+       };
+
+       $.mobile.changePage.defaults = {
+               transition: undefined,
+               reverse: false,
+               changeHash: true,
+               fromHashChange: false,
+               role: undefined, // By default we rely on the role defined by the @data-role attribute.
+               duplicateCachedPage: undefined,
+               pageContainer: undefined,
+               showLoadMsg: true, //loading message shows by default when pages are being fetched during changePage
+               dataUrl: undefined,
+               fromPage: undefined,
+               allowSamePageTransition: false
+       };
+
+/* Event Bindings - hashchange, submit, and click */
+       function findClosestLink( ele )
+       {
+               while ( ele ) {
+                       // Look for the closest element with a nodeName of "a".
+                       // Note that we are checking if we have a valid nodeName
+                       // before attempting to access it. This is because the
+                       // node we get called with could have originated from within
+                       // an embedded SVG document where some symbol instance elements
+                       // don't have nodeName defined on them, or strings are of type
+                       // SVGAnimatedString.
+                       if ( ( typeof ele.nodeName === "string" ) && ele.nodeName.toLowerCase() == "a" ) {
+                               break;
+                       }
+                       ele = ele.parentNode;
+               }
+               return ele;
+       }
+
+       // The base URL for any given element depends on the page it resides in.
+       function getClosestBaseUrl( ele )
+       {
+               // Find the closest page and extract out its url.
+               var url = $( ele ).closest( ".ui-page" ).jqmData( "url" ),
+                       base = documentBase.hrefNoHash;
+
+               if ( !url || !path.isPath( url ) ) {
+                       url = base;
+               }
+
+               return path.makeUrlAbsolute( url, base);
+       }
+
+
+       //The following event bindings should be bound after mobileinit has been triggered
+       //the following function is called in the init file
+       $.mobile._registerInternalEvents = function(){
+
+               //bind to form submit events, handle with Ajax
+               $( document ).delegate( "form", "submit", function( event ) {
+                       var $this = $( this );
+
+                       if( !$.mobile.ajaxEnabled ||
+                                       // test that the form is, itself, ajax false
+                                       $this.is(":jqmData(ajax='false')") ||
+                                       // test that $.mobile.ignoreContentEnabled is set and
+                                       // the form or one of it's parents is ajax=false
+                                       !$this.jqmHijackable().length ) {
+                               return;
+                       }
+
+                       var type = $this.attr( "method" ),
+                               target = $this.attr( "target" ),
+                               url = $this.attr( "action" );
+
+                       // If no action is specified, browsers default to using the
+                       // URL of the document containing the form. Since we dynamically
+                       // pull in pages from external documents, the form should submit
+                       // to the URL for the source document of the page containing
+                       // the form.
+                       if ( !url ) {
+                               // Get the @data-url for the page containing the form.
+                               url = getClosestBaseUrl( $this );
+                               if ( url === documentBase.hrefNoHash ) {
+                                       // The url we got back matches the document base,
+                                       // which means the page must be an internal/embedded page,
+                                       // so default to using the actual document url as a browser
+                                       // would.
+                                       url = documentUrl.hrefNoSearch;
+                               }
+                       }
+
+                       url = path.makeUrlAbsolute(  url, getClosestBaseUrl($this) );
+
+                       //external submits use regular HTTP
+                       if( path.isExternal( url ) || target ) {
+                               return;
+                       }
+
+                       $.mobile.changePage(
+                               url,
+                               {
+                                       type:           type && type.length && type.toLowerCase() || "get",
+                                       data:           $this.serialize(),
+                                       transition:     $this.jqmData( "transition" ),
+                                       direction:      $this.jqmData( "direction" ),
+                                       reloadPage:     true
+                               }
+                       );
+                       event.preventDefault();
+               });
+
+               //add active state on vclick
+               $( document ).bind( "vclick", function( event ) {
+                       // if this isn't a left click we don't care. Its important to note
+                       // that when the virtual event is generated it will create the which attr
+                       if ( event.which > 1 || !$.mobile.linkBindingEnabled ) {
+                               return;
+                       }
+
+                       var link = findClosestLink( event.target );
+
+                       // split from the previous return logic to avoid find closest where possible
+                       // TODO teach $.mobile.hijackable to operate on raw dom elements so the link wrapping
+                       // can be avoided
+                       if ( !$(link).jqmHijackable().length ) {
+                               return;
+                       }
+
+                       if ( link ) {
+                               if ( path.parseUrl( link.getAttribute( "href" ) || "#" ).hash !== "#" ) {
+                                       removeActiveLinkClass( true );
+                                       $activeClickedLink = $( link ).closest( ".ui-btn" ).not( ".ui-disabled" );
+                                       $activeClickedLink.addClass( $.mobile.activeBtnClass );
+                                       $( "." + $.mobile.activePageClass + " .ui-btn" ).not( link ).blur();
+
+                                       // By caching the href value to data and switching the href to a #, we can avoid address bar showing in iOS. The click handler resets the href during its initial steps if this data is present
+                                       $( link )
+                                               .jqmData( "href", $( link  ).attr( "href" )  )
+                                               .attr( "href", "#" );
+                               }
+                       }
+               });
+
+               // click routing - direct to HTTP or Ajax, accordingly
+               $( document ).bind( "click", function( event ) {
+                       if( !$.mobile.linkBindingEnabled ){
+                               return;
+                       }
+
+                       var link = findClosestLink( event.target ), $link = $( link ), httpCleanup;
+
+                       // If there is no link associated with the click or its not a left
+                       // click we want to ignore the click
+                       // TODO teach $.mobile.hijackable to operate on raw dom elements so the link wrapping
+                       // can be avoided
+                       if ( !link || event.which > 1 || !$link.jqmHijackable().length ) {
+                               return;
+                       }
+
+                       //remove active link class if external (then it won't be there if you come back)
+                       httpCleanup = function(){
+                               window.setTimeout( function() { removeActiveLinkClass( true ); }, 200 );
+                       };
+
+                       // If there's data cached for the real href value, set the link's href back to it again. This pairs with an address bar workaround from the vclick handler
+                       if( $link.jqmData( "href" ) ){
+                               $link.attr( "href", $link.jqmData( "href" ) );
+                       }
+
+                       //if there's a data-rel=back attr, go back in history
+                       if( $link.is( ":jqmData(rel='back')" ) ) {
+                               window.history.back();
+                               return false;
+                       }
+
+                       var baseUrl = getClosestBaseUrl( $link ),
+
+                               //get href, if defined, otherwise default to empty hash
+                               href = path.makeUrlAbsolute( $link.attr( "href" ) || "#", baseUrl );
+
+                       //if ajax is disabled, exit early
+                       if( !$.mobile.ajaxEnabled && !path.isEmbeddedPage( href ) ){
+                               httpCleanup();
+                               //use default click handling
+                               return;
+                       }
+
+                       // XXX_jblas: Ideally links to application pages should be specified as
+                       //            an url to the application document with a hash that is either
+                       //            the site relative path or id to the page. But some of the
+                       //            internal code that dynamically generates sub-pages for nested
+                       //            lists and select dialogs, just write a hash in the link they
+                       //            create. This means the actual URL path is based on whatever
+                       //            the current value of the base tag is at the time this code
+                       //            is called. For now we are just assuming that any url with a
+                       //            hash in it is an application page reference.
+                       if ( href.search( "#" ) != -1 ) {
+                               href = href.replace( /[^#]*#/, "" );
+                               if ( !href ) {
+                                       //link was an empty hash meant purely
+                                       //for interaction, so we ignore it.
+                                       event.preventDefault();
+                                       return;
+                               } else if ( path.isPath( href ) ) {
+                                       //we have apath so make it the href we want to load.
+                                       href = path.makeUrlAbsolute( href, baseUrl );
+                               } else {
+                                       //we have a simple id so use the documentUrl as its base.
+                                       href = path.makeUrlAbsolute( "#" + href, documentUrl.hrefNoHash );
+                               }
+                       }
+
+                               // Should we handle this link, or let the browser deal with it?
+                       var useDefaultUrlHandling = $link.is( "[rel='external']" ) || $link.is( ":jqmData(ajax='false')" ) || $link.is( "[target]" ),
+
+                               // Some embedded browsers, like the web view in Phone Gap, allow cross-domain XHR
+                               // requests if the document doing the request was loaded via the file:// protocol.
+                               // This is usually to allow the application to "phone home" and fetch app specific
+                               // data. We normally let the browser handle external/cross-domain urls, but if the
+                               // allowCrossDomainPages option is true, we will allow cross-domain http/https
+                               // requests to go through our page loading logic.
+                               isCrossDomainPageLoad = ( $.mobile.allowCrossDomainPages && documentUrl.protocol === "file:" && href.search( /^https?:/ ) != -1 ),
+
+                               //check for protocol or rel and its not an embedded page
+                               //TODO overlap in logic from isExternal, rel=external check should be
+                               //     moved into more comprehensive isExternalLink
+                               isExternal = useDefaultUrlHandling || ( path.isExternal( href ) && !isCrossDomainPageLoad );
+
+                       if( isExternal ) {
+                               httpCleanup();
+                               //use default click handling
+                               return;
+                       }
+
+                       //use ajax
+                       var transition = $link.jqmData( "transition" ),
+                               direction = $link.jqmData( "direction" ),
+                               reverse = ( direction && direction === "reverse" ) ||
+                                                       // deprecated - remove by 1.0
+                                                       $link.jqmData( "back" ),
+
+                               //this may need to be more specific as we use data-rel more
+                               role = $link.attr( "data-" + $.mobile.ns + "rel" ) || undefined;
+
+                       $.mobile.changePage( href, { transition: transition, reverse: reverse, role: role } );
+                       event.preventDefault();
+               });
+
+               //prefetch pages when anchors with data-prefetch are encountered
+               $( document ).delegate( ".ui-page", "pageshow.prefetch", function() {
+                       var urls = [];
+                       $( this ).find( "a:jqmData(prefetch)" ).each(function(){
+                               var $link = $(this),
+                                       url = $link.attr( "href" );
+
+                               if ( url && $.inArray( url, urls ) === -1 ) {
+                                       urls.push( url );
+
+                                       $.mobile.loadPage( url, {role: $link.attr("data-" + $.mobile.ns + "rel")} );
+                               }
+                       });
+               });
+
+               $.mobile._handleHashChange = function( hash ) {
+                       //find first page via hash
+                       var to = path.stripHash( hash ),
+                               //transition is false if it's the first page, undefined otherwise (and may be overridden by default)
+                               transition = $.mobile.urlHistory.stack.length === 0 ? "none" : undefined,
+
+                               // default options for the changPage calls made after examining the current state
+                               // of the page and the hash
+                               changePageOptions = {
+                                       transition: transition,
+                                       changeHash: false,
+                                       fromHashChange: true
+                               };
+
+                       //if listening is disabled (either globally or temporarily), or it's a dialog hash
+                       if( !$.mobile.hashListeningEnabled || urlHistory.ignoreNextHashChange ) {
+                               urlHistory.ignoreNextHashChange = false;
+                               return;
+                       }
+
+                       // special case for dialogs
+                       if( urlHistory.stack.length > 1 && to.indexOf( dialogHashKey ) > -1 ) {
+
+                               // If current active page is not a dialog skip the dialog and continue
+                               // in the same direction
+                               if(!$.mobile.activePage.is( ".ui-dialog" )) {
+                                       //determine if we're heading forward or backward and continue accordingly past
+                                       //the current dialog
+                                       urlHistory.directHashChange({
+                                               currentUrl: to,
+                                               isBack: function() { window.history.back(); },
+                                               isForward: function() { window.history.forward(); }
+                                       });
+
+                                       // prevent changePage()
+                                       return;
+                               } else {
+                                       // if the current active page is a dialog and we're navigating
+                                       // to a dialog use the dialog objected saved in the stack
+                                       urlHistory.directHashChange({
+                                               currentUrl: to,
+
+                                               // regardless of the direction of the history change
+                                               // do the following
+                                               either: function( isBack ) {
+                                                       var active = $.mobile.urlHistory.getActive();
+
+                                                       to = active.pageUrl;
+
+                                                       // make sure to set the role, transition and reversal
+                                                       // as most of this is lost by the domCache cleaning
+                                                       $.extend( changePageOptions, {
+                                                               role: active.role,
+                                                               transition:      active.transition,
+                                                               reverse: isBack
+                                                       });
+                                               }
+                                       });
+                               }
+                       }
+
+                       //if to is defined, load it
+                       if ( to ) {
+                               // At this point, 'to' can be one of 3 things, a cached page element from
+                               // a history stack entry, an id, or site-relative/absolute URL. If 'to' is
+                               // an id, we need to resolve it against the documentBase, not the location.href,
+                               // since the hashchange could've been the result of a forward/backward navigation
+                               // that crosses from an external page/dialog to an internal page/dialog.
+                               to = ( typeof to === "string" && !path.isPath( to ) ) ? ( path.makeUrlAbsolute( '#' + to, documentBase ) ) : to;
+                               $.mobile.changePage( to, changePageOptions );
+                       }       else {
+                               //there's no hash, go to the first page in the dom
+                               $.mobile.changePage( $.mobile.firstPage, changePageOptions );
+                       }
+               };
+
+               //hashchange event handler
+               $window.bind( "hashchange", function( e, triggered ) {
+                       $.mobile._handleHashChange( location.hash );
+               });
+
+               //set page min-heights to be device specific
+               $( document ).bind( "pageshow", resetActivePageHeight );
+               $( window ).bind( "throttledresize", resetActivePageHeight );
+
+       };//_registerInternalEvents callback
+
+})( jQuery );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.navigation.pushstate.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.navigation.pushstate.js
new file mode 100644 (file)
index 0000000..85a524e
--- /dev/null
@@ -0,0 +1,163 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: history.pushState support, layered on top of hashchange.
+//>>label: Pushstate Support
+//>>group: Navigation
+
+define( [ "jquery", "./jquery.mobile.navigation", "../external/requirejs/depend!./jquery.mobile.hashchange[jquery]" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+( function( $, window ) {
+       // For now, let's Monkeypatch this onto the end of $.mobile._registerInternalEvents
+       // Scope self to pushStateHandler so we can reference it sanely within the
+       // methods handed off as event handlers
+       var     pushStateHandler = {},
+               self = pushStateHandler,
+               $win = $( window ),
+               url = $.mobile.path.parseUrl( location.href );
+
+       $.extend( pushStateHandler, {
+               // TODO move to a path helper, this is rather common functionality
+               initialFilePath: (function() {
+                       return url.pathname + url.search;
+               })(),
+
+               initialHref: url.hrefNoHash,
+
+               state: function() {
+                       return {
+                               hash: location.hash || "#" + self.initialFilePath,
+                               title: document.title,
+
+                               // persist across refresh
+                               initialHref: self.initialHref
+                       };
+               },
+
+               resetUIKeys: function( url ) {
+                       var dialog = $.mobile.dialogHashKey,
+                               subkey = "&" + $.mobile.subPageUrlKey,
+                               dialogIndex = url.indexOf( dialog );
+
+                       if( dialogIndex > -1 ) {
+                               url = url.slice( 0, dialogIndex ) + "#" + url.slice( dialogIndex );
+                       } else if( url.indexOf( subkey ) > -1 ) {
+                               url = url.split( subkey ).join( "#" + subkey );
+                       }
+
+                       return url;
+               },
+
+               hashValueAfterReset: function( url ) {
+                       var resetUrl = self.resetUIKeys( url );
+                       return $.mobile.path.parseUrl( resetUrl ).hash;
+               },
+
+               // TODO sort out a single barrier to hashchange functionality
+               nextHashChangePrevented: function( value ) {
+                       $.mobile.urlHistory.ignoreNextHashChange = value;
+                       self.onHashChangeDisabled = value;
+               },
+
+               // on hash change we want to clean up the url
+               // NOTE this takes place *after* the vanilla navigation hash change
+               // handling has taken place and set the state of the DOM
+               onHashChange: function( e ) {
+                       // disable this hash change
+                       if( self.onHashChangeDisabled ){
+                               return;
+                       }
+
+                       var href, state,
+                               hash = location.hash,
+                               isPath = $.mobile.path.isPath( hash ),
+                               resolutionUrl = isPath ? location.href : $.mobile.getDocumentUrl();
+
+                       hash = isPath ? hash.replace( "#", "" ) : hash;
+
+
+                       // propulate the hash when its not available
+                       state = self.state();
+
+                       // make the hash abolute with the current href
+                       href = $.mobile.path.makeUrlAbsolute( hash, resolutionUrl );
+
+                       if ( isPath ) {
+                               href = self.resetUIKeys( href );
+                       }
+
+                       // replace the current url with the new href and store the state
+                       // Note that in some cases we might be replacing an url with the
+                       // same url. We do this anyways because we need to make sure that
+                       // all of our history entries have a state object associated with
+                       // them. This allows us to work around the case where window.history.back()
+                       // is called to transition from an external page to an embedded page.
+                       // In that particular case, a hashchange event is *NOT* generated by the browser.
+                       // Ensuring each history entry has a state object means that onPopState()
+                       // will always trigger our hashchange callback even when a hashchange event
+                       // is not fired.
+                       history.replaceState( state, document.title, href );
+               },
+
+               // on popstate (ie back or forward) we need to replace the hash that was there previously
+               // cleaned up by the additional hash handling
+               onPopState: function( e ) {
+                       var poppedState = e.originalEvent.state,
+                               timeout, fromHash, toHash, hashChanged;
+
+                       // if there's no state its not a popstate we care about, eg chrome's initial popstate
+                       if( poppedState ) {
+                               // the active url in the history stack will still be from the previous state
+                               // so we can use it to verify if a hashchange will be fired from the popstate
+                               fromHash = self.hashValueAfterReset( $.mobile.urlHistory.getActive().url );
+
+                               // the hash stored in the state popped off the stack will be our currenturl or
+                               // the url to which we wish to navigate
+                               toHash = self.hashValueAfterReset( poppedState.hash.replace("#", "") );
+
+                               // if the hashes of the urls are different we must assume that the browser
+                               // will fire a hashchange
+                               hashChanged = fromHash !== toHash;
+
+                               // unlock hash handling once the hashchange caused be the popstate has fired
+                               if( hashChanged ) {
+                                       $win.one( "hashchange.pushstate", function() {
+                                               self.nextHashChangePrevented( false );
+                                       });
+                               }
+
+                               // enable hash handling for the the _handleHashChange call
+                               self.nextHashChangePrevented( false );
+
+                               // change the page based on the hash
+                               $.mobile._handleHashChange( poppedState.hash );
+
+                               // only prevent another hash change handling if a hash change will be fired
+                               // by the browser
+                               if( hashChanged ) {
+                                       // disable hash handling until one of the above timers fires
+                                       self.nextHashChangePrevented( true );
+                               }
+                       }
+               },
+
+               init: function() {
+                       $win.bind( "hashchange", self.onHashChange );
+
+                       // Handle popstate events the occur through history changes
+                       $win.bind( "popstate", self.onPopState );
+
+                       // if there's no hash, we need to replacestate for returning to home
+                       if ( location.hash === "" ) {
+                               history.replaceState( self.state(), document.title, location.href );
+                       }
+               }
+       });
+
+       $( function() {
+               if( $.mobile.pushStateEnabled && $.support.pushState ){
+                       pushStateHandler.init();
+               }
+       });
+})( jQuery, this );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.nojs.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.nojs.js
new file mode 100644 (file)
index 0000000..7137ebd
--- /dev/null
@@ -0,0 +1,18 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Adds class to make elements hidden to A grade browsers
+//>>label: “nojs” Classes
+//>>group: Utilities
+
+define( [ "jquery" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, undefined ) {
+
+$( document ).bind( "pagecreate create", function( e ){
+       $( ":jqmData(role='nojs')", e.target ).addClass( "ui-nojs" );
+       
+});
+
+})( jQuery );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.page.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.page.js
new file mode 100644 (file)
index 0000000..d2bd195
--- /dev/null
@@ -0,0 +1,63 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Basic page definition and formatting.
+//>>label: Page Creation
+//>>group: Core
+
+define( [ "jquery", "./jquery.mobile.widget" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, undefined ) {
+
+$.widget( "mobile.page", $.mobile.widget, {
+       options: {
+               theme: "c",
+               domCache: false,
+               keepNativeDefault: ":jqmData(role='none'), :jqmData(role='nojs')"
+       },
+
+       _create: function() {
+               
+               var self = this;
+               
+               // if false is returned by the callbacks do not create the page
+               if( self._trigger( "beforecreate" ) === false ){
+                       return false;
+               }
+
+               self.element
+                       .attr( "tabindex", "0" )
+                       .addClass( "ui-page ui-body-" + self.options.theme )
+                       .bind( "pagebeforehide", function(){
+                               self.removeContainerBackground();
+                       } )
+                       .bind( "pagebeforeshow", function(){
+                               self.setContainerBackground();
+                       } );
+
+       },
+       
+       removeContainerBackground: function(){
+               $.mobile.pageContainer.removeClass( "ui-overlay-" + $.mobile.getInheritedTheme( this.element.parent() ) );
+       },
+       
+       // set the page container background to the page theme
+       setContainerBackground: function( theme ){
+               if( this.options.theme ){
+                       $.mobile.pageContainer.addClass( "ui-overlay-" + ( theme || this.options.theme ) );
+               }
+       },
+
+       keepNativeSelector: function() {
+               var options = this.options,
+                       keepNativeDefined = options.keepNative && $.trim(options.keepNative);
+
+               if( keepNativeDefined && options.keepNative !== options.keepNativeDefault ){
+                       return [options.keepNative, options.keepNativeDefault].join(", ");
+               }
+
+               return options.keepNativeDefault;
+       }
+});
+})( jQuery );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.page.sections.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.page.sections.js
new file mode 100644 (file)
index 0000000..e0a718d
--- /dev/null
@@ -0,0 +1,97 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Theming and layout of headers, footers, and content areas
+//>>label: Page Sections
+//>>group: Core
+
+define( [ "jquery", "./jquery.mobile.page", "./jquery.mobile.core", "./jquery.mobile.buttonMarkup" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, undefined ) {
+
+$.mobile.page.prototype.options.backBtnText  = "Back";
+$.mobile.page.prototype.options.addBackBtn   = false;
+$.mobile.page.prototype.options.backBtnTheme = null;
+$.mobile.page.prototype.options.headerTheme  = "a";
+$.mobile.page.prototype.options.footerTheme  = "a";
+$.mobile.page.prototype.options.contentTheme = null;
+
+$( document ).delegate( ":jqmData(role='page'), :jqmData(role='dialog')", "pagecreate", function( e ) {
+
+       var $page = $( this ),
+               o = $page.data( "page" ).options,
+               pageRole = $page.jqmData( "role" ),
+               pageTheme = o.theme;
+
+       $( ":jqmData(role='header'), :jqmData(role='footer'), :jqmData(role='content')", this )
+               .jqmEnhanceable()
+               .each(function() {
+
+               var $this = $( this ),
+                       role = $this.jqmData( "role" ),
+                       theme = $this.jqmData( "theme" ),
+                       contentTheme = theme || o.contentTheme || ( pageRole === "dialog" && pageTheme ),
+                       $headeranchors,
+                       leftbtn,
+                       rightbtn,
+                       backBtn;
+
+               $this.addClass( "ui-" + role );
+
+               //apply theming and markup modifications to page,header,content,footer
+               if ( role === "header" || role === "footer" ) {
+
+                       var thisTheme = theme || ( role === "header" ? o.headerTheme : o.footerTheme ) || pageTheme;
+
+                       $this
+                               //add theme class
+                               .addClass( "ui-bar-" + thisTheme )
+                               // Add ARIA role
+                               .attr( "role", role === "header" ? "banner" : "contentinfo" );
+
+                       if( role === "header") {
+                               // Right,left buttons
+                               $headeranchors  = $this.children( "a" );
+                               leftbtn = $headeranchors.hasClass( "ui-btn-left" );
+                               rightbtn = $headeranchors.hasClass( "ui-btn-right" );
+
+                               leftbtn = leftbtn || $headeranchors.eq( 0 ).not( ".ui-btn-right" ).addClass( "ui-btn-left" ).length;
+
+                               rightbtn = rightbtn || $headeranchors.eq( 1 ).addClass( "ui-btn-right" ).length;
+                       }
+
+                       // Auto-add back btn on pages beyond first view
+                       if ( o.addBackBtn &&
+                               role === "header" &&
+                               $( ".ui-page" ).length > 1 &&
+                               $page.jqmData( "url" ) !== $.mobile.path.stripHash( location.hash ) &&
+                               !leftbtn ) {
+
+                               backBtn = $( "<a href='#' class='ui-btn-left' data-"+ $.mobile.ns +"rel='back' data-"+ $.mobile.ns +"icon='arrow-l'>"+ o.backBtnText +"</a>" )
+                                       // If theme is provided, override default inheritance
+                                       .attr( "data-"+ $.mobile.ns +"theme", o.backBtnTheme || thisTheme )
+                                       .prependTo( $this );
+                       }
+
+                       // Page title
+                       $this.children( "h1, h2, h3, h4, h5, h6" )
+                               .addClass( "ui-title" )
+                               // Regardless of h element number in src, it becomes h1 for the enhanced page
+                               .attr({
+                                       "role": "heading",
+                                       "aria-level": "1"
+                               });
+
+               } else if ( role === "content" ) {
+                       if ( contentTheme ) {
+                           $this.addClass( "ui-body-" + ( contentTheme ) );
+                       }
+
+                       // Add ARIA role
+                       $this.attr( "role", "main" );
+               }
+       });
+});
+
+})( jQuery );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.support.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.support.js
new file mode 100644 (file)
index 0000000..58483b4
--- /dev/null
@@ -0,0 +1,168 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Assorted tests to qualify browsers by detecting features
+//>>label: Support Tests
+//>>group: Core
+//>>required: true
+
+define( [  "jquery", "./jquery.mobile.media", "./jquery.mobile.core" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, undefined ) {
+
+var fakeBody = $( "<body>" ).prependTo( "html" ),
+       fbCSS = fakeBody[ 0 ].style,
+       vendors = [ "Webkit", "Moz", "O" ],
+       webos = "palmGetResource" in window, //only used to rule out scrollTop
+       operamini = window.operamini && ({}).toString.call( window.operamini ) === "[object OperaMini]",
+       bb = window.blackberry; //only used to rule out box shadow, as it's filled opaque on BB
+
+// thx Modernizr
+function propExists( prop ) {
+       var uc_prop = prop.charAt( 0 ).toUpperCase() + prop.substr( 1 ),
+               props = ( prop + " " + vendors.join( uc_prop + " " ) + uc_prop ).split( " " );
+
+       for ( var v in props ){
+               if ( fbCSS[ props[ v ] ] !== undefined ) {
+                       return true;
+               }
+       }
+}
+
+function validStyle( prop, value, check_vend ) {
+       var div = document.createElement('div'),
+               uc = function( txt ) {
+                       return txt.charAt( 0 ).toUpperCase() + txt.substr( 1 )
+               },
+               vend_pref = function( vend ) {
+                       return  "-" + vend.charAt( 0 ).toLowerCase() + vend.substr( 1 ) + "-";
+               },
+               check_style = function( vend ) {
+                       var vend_prop = vend_pref( vend ) + prop + ": " + value + ";",
+                               uc_vend = uc( vend ),
+                               propStyle = uc_vend + uc( prop );
+               
+                       div.setAttribute( "style", vend_prop );
+               
+                       if( !!div.style[ propStyle ] ) {
+                               ret = true;
+                       }
+               },
+               check_vends = check_vend ? [ check_vend ] : vendors,
+               ret;
+
+       for( i = 0; i < check_vends.length; i++ ) {
+               check_style( check_vends[i] );
+       }
+       return !!ret;
+}
+
+// Thanks to Modernizr src for this test idea. `perspective` check is limited to Moz to prevent a false positive for 3D transforms on Android.
+function transform3dTest() {
+       var prop = "transform-3d";
+       return validStyle( 'perspective', '10px', 'moz' ) || $.mobile.media( "(-" + vendors.join( "-" + prop + "),(-" ) + "-" + prop + "),(" + prop + ")" );
+}
+
+// Test for dynamic-updating base tag support ( allows us to avoid href,src attr rewriting )
+function baseTagTest() {
+       var fauxBase = location.protocol + "//" + location.host + location.pathname + "ui-dir/",
+               base = $( "head base" ),
+               fauxEle = null,
+               href = "",
+               link, rebase;
+
+       if ( !base.length ) {
+               base = fauxEle = $( "<base>", { "href": fauxBase }).appendTo( "head" );
+       } else {
+               href = base.attr( "href" );
+       }
+
+       link = $( "<a href='testurl' />" ).prependTo( fakeBody );
+       rebase = link[ 0 ].href;
+       base[ 0 ].href = href || location.pathname;
+
+       if ( fauxEle ) {
+               fauxEle.remove();
+       }
+       return rebase.indexOf( fauxBase ) === 0;
+}
+
+
+// non-UA-based IE version check by James Padolsey, modified by jdalton - from http://gist.github.com/527683
+// allows for inclusion of IE 6+, including Windows Mobile 7
+$.extend( $.mobile, { browser: {} } );
+$.mobile.browser.ie = (function() {
+       var v = 3,
+       div = document.createElement( "div" ),
+       a = div.all || [];
+
+       // added {} to silence closure compiler warnings. registering my dislike of all things
+       // overly clever here for future reference
+       while ( div.innerHTML = "<!--[if gt IE " + ( ++v ) + "]><br><![endif]-->", a[ 0 ] ){};
+
+       return v > 4 ? v : !v;
+})();
+
+
+$.extend( $.support, {
+       orientation: "orientation" in window && "onorientationchange" in window,
+       touch: "ontouchend" in document,
+       cssTransitions: "WebKitTransitionEvent" in window || validStyle( 'transition', 'height 100ms linear' ),
+       pushState: "pushState" in history && "replaceState" in history,
+       mediaquery: $.mobile.media( "only all" ),
+       cssPseudoElement: !!propExists( "content" ),
+       touchOverflow: !!propExists( "overflowScrolling" ),
+       cssTransform3d: transform3dTest(),
+       boxShadow: !!propExists( "boxShadow" ) && !bb,
+       scrollTop: ( "pageXOffset" in window || "scrollTop" in document.documentElement || "scrollTop" in fakeBody[ 0 ] ) && !webos && !operamini,
+       dynamicBaseTag: baseTagTest()
+});
+
+fakeBody.remove();
+
+
+// $.mobile.ajaxBlacklist is used to override ajaxEnabled on platforms that have known conflicts with hash history updates (BB5, Symbian)
+// or that generally work better browsing in regular http for full page refreshes (Opera Mini)
+// Note: This detection below is used as a last resort.
+// We recommend only using these detection methods when all other more reliable/forward-looking approaches are not possible
+var nokiaLTE7_3 = (function(){
+
+       var ua = window.navigator.userAgent;
+
+       //The following is an attempt to match Nokia browsers that are running Symbian/s60, with webkit, version 7.3 or older
+       return ua.indexOf( "Nokia" ) > -1 &&
+                       ( ua.indexOf( "Symbian/3" ) > -1 || ua.indexOf( "Series60/5" ) > -1 ) &&
+                       ua.indexOf( "AppleWebKit" ) > -1 &&
+                       ua.match( /(BrowserNG|NokiaBrowser)\/7\.[0-3]/ );
+})();
+
+// Support conditions that must be met in order to proceed
+// default enhanced qualifications are media query support OR IE 7+
+$.mobile.gradeA = function(){
+       return $.support.mediaquery || $.mobile.browser.ie && $.mobile.browser.ie >= 7;
+};
+
+$.mobile.ajaxBlacklist =
+                       // BlackBerry browsers, pre-webkit
+                       window.blackberry && !window.WebKitPoint ||
+                       // Opera Mini
+                       operamini ||
+                       // Symbian webkits pre 7.3
+                       nokiaLTE7_3;
+
+// Lastly, this workaround is the only way we've found so far to get pre 7.3 Symbian webkit devices
+// to render the stylesheets when they're referenced before this script, as we'd recommend doing.
+// This simply reappends the CSS in place, which for some reason makes it apply
+if ( nokiaLTE7_3 ) {
+       $(function() {
+               $( "head link[rel='stylesheet']" ).attr( "rel", "alternate stylesheet" ).attr( "rel", "stylesheet" );
+       });
+}
+
+// For ruling out shadows via css
+if ( !$.support.boxShadow ) {
+       $( "html" ).addClass( "ui-mobile-nosupport-boxshadow" );
+}
+
+})( jQuery );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.support.orientation.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.support.orientation.js
new file mode 100644 (file)
index 0000000..0991383
--- /dev/null
@@ -0,0 +1,15 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Feature test for orientation
+//>>label: Orientation support test
+//>>group: Core
+
+define( [ "jquery" ], function( jQuery ) {
+//>>excludeEnd("jqmBuildExclude");
+       (function( $, undefined ) {
+               $.extend( $.support, {
+                       orientation: "orientation" in window && "onorientationchange" in window
+               });
+       }( jQuery ));
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.support.touch.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.support.touch.js
new file mode 100644 (file)
index 0000000..9cba62a
--- /dev/null
@@ -0,0 +1,20 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Touch feature test
+//>>label: Touch support test
+//>>group: Core
+
+define( [ "jquery" ], function( jQuery ) {
+//>>excludeEnd("jqmBuildExclude");
+       (function( $, undefined ) {
+               var support = {
+                       touch: "ontouchend" in document
+               };
+
+               $.mobile = $.mobile || {};
+               $.mobile.support = $.mobile.support || {};
+               $.extend( $.support, support );
+               $.extend( $.mobile.support, support );
+       }( jQuery ));
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.flip.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.flip.js
new file mode 100644 (file)
index 0000000..143c6c2
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+* fallback transition for flip in non-3D supporting browsers (which tend to handle complex transitions poorly in general
+*/
+
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Animation styles and fallback transition definition for non-3D supporting browsers
+//>>label: Flip Transition
+//>>group: Transitions
+//>>css: ../css/structure/jquery.mobile.transition.flip.css
+
+define( [ "jquery", "./jquery.mobile.transition" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, window, undefined ) {
+
+$.mobile.transitionFallbacks.flip = "fade";
+
+})( jQuery, this );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.flow.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.flow.js
new file mode 100644 (file)
index 0000000..2d1a2d9
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+* fallback transition for flow in non-3D supporting browsers (which tend to handle complex transitions poorly in general
+*/
+
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Animation styles and fallback transition definition for non-3D supporting browsers
+//>>label: Flow Transition
+//>>group: Transitions
+//>>css: ../css/structure/jquery.mobile.transition.flow.css
+
+define( [ "jquery", "./jquery.mobile.transition" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, window, undefined ) {
+
+$.mobile.transitionFallbacks.flow = "fade";
+
+})( jQuery, this );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.js
new file mode 100644 (file)
index 0000000..9a099dc
--- /dev/null
@@ -0,0 +1,153 @@
+
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Animated page change core logic and sequence handlers
+//>>label: Transition Core
+//>>group: Transitions
+//>>css: ../css/themes/default/jquery.mobile.theme.css, ../css/structure/jquery.mobile.transition.css
+
+define( [ "jquery", "./jquery.mobile.core" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, window, undefined ) {
+
+var createHandler = function( sequential ){
+       
+       // Default to sequential
+       if( sequential === undefined ){
+               sequential = true;
+       }
+       
+       return function( name, reverse, $to, $from ) {
+
+               var deferred = new $.Deferred(),
+                       reverseClass = reverse ? " reverse" : "",
+                       active  = $.mobile.urlHistory.getActive(),
+                       toScroll = active.lastScroll || $.mobile.defaultHomeScroll,
+                       screenHeight = $.mobile.getScreenHeight(),
+                       maxTransitionOverride = $.mobile.maxTransitionWidth !== false && $( window ).width() > $.mobile.maxTransitionWidth,
+                       none = !$.support.cssTransitions || maxTransitionOverride || !name || name === "none",
+                       toggleViewportClass = function(){
+                               $.mobile.pageContainer.toggleClass( "ui-mobile-viewport-transitioning viewport-" + name );
+                       },
+                       scrollPage = function(){
+                               // By using scrollTo instead of silentScroll, we can keep things better in order
+                               // Just to be precautios, disable scrollstart listening like silentScroll would
+                               $.event.special.scrollstart.enabled = false;
+                               
+                               window.scrollTo( 0, toScroll );
+                               
+                               // reenable scrollstart listening like silentScroll would
+                               setTimeout(function() {
+                                       $.event.special.scrollstart.enabled = true;
+                               }, 150 );
+                       },
+                       cleanFrom = function(){
+                               $from
+                                       .removeClass( $.mobile.activePageClass + " out in reverse " + name )
+                                       .height( "" );
+                       },
+                       startOut = function(){
+                               // if it's not sequential, call the doneOut transition to start the TO page animating in simultaneously
+                               if( !sequential ){
+                                       doneOut();
+                               }
+                               else {
+                                       $from.animationComplete( doneOut );     
+                               }
+                               
+                               // Set the from page's height and start it transitioning out
+                               // Note: setting an explicit height helps eliminate tiling in the transitions
+                               $from
+                                       .height( screenHeight + $(window ).scrollTop() )
+                                       .addClass( name + " out" + reverseClass );
+                       },
+                       
+                       doneOut = function() {
+
+                               if ( $from && sequential ) {
+                                       cleanFrom();
+                               }
+                               
+                               startIn();
+                       },
+                       
+                       startIn = function(){   
+                       
+                               $to.addClass( $.mobile.activePageClass );                               
+                       
+                               // Send focus to page as it is now display: block
+                               $.mobile.focusPage( $to );
+
+                               // Set to page height
+                               $to.height( screenHeight + toScroll );
+                               
+                               scrollPage();
+                               
+                               if( !none ){
+                                       $to.animationComplete( doneIn );
+                               }
+                               
+                               $to.addClass( name + " in" + reverseClass );
+                               
+                               if( none ){
+                                       doneIn();
+                               }
+                               
+                       },
+               
+                       doneIn = function() {
+                       
+                               if ( !sequential ) {
+                                       
+                                       if( $from ){
+                                               cleanFrom();
+                                       }
+                               }
+                       
+                               $to
+                                       .removeClass( "out in reverse " + name )
+                                       .height( "" );
+                               
+                               toggleViewportClass();
+                               
+                               // In some browsers (iOS5), 3D transitions block the ability to scroll to the desired location during transition
+                               // This ensures we jump to that spot after the fact, if we aren't there already.
+                               if( $( window ).scrollTop() !== toScroll ){
+                                       scrollPage();
+                               }
+
+                               deferred.resolve( name, reverse, $to, $from, true );
+                       };
+
+               toggleViewportClass();
+       
+               if ( $from && !none ) {
+                       startOut();
+               }
+               else {
+                       doneOut();
+               }
+
+               return deferred.promise();
+       };
+}
+
+// generate the handlers from the above
+var sequentialHandler = createHandler(),
+       simultaneousHandler = createHandler( false );
+
+// Make our transition handler the public default.
+$.mobile.defaultTransitionHandler = sequentialHandler;
+
+//transition handler dictionary for 3rd party transitions
+$.mobile.transitionHandlers = {
+       "default": $.mobile.defaultTransitionHandler,
+       "sequential": sequentialHandler,
+       "simultaneous": simultaneousHandler
+};
+
+$.mobile.transitionFallbacks = {};
+
+})( jQuery, this );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.pop.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.pop.js
new file mode 100644 (file)
index 0000000..bbb8f78
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+* fallback transition for pop in non-3D supporting browsers (which tend to handle complex transitions poorly in general
+*/
+
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Animation styles and fallback transition definition for non-3D supporting browsers
+//>>label: Pop Transition
+//>>group: Transitions
+//>>css: ../css/structure/jquery.mobile.transition.pop.css
+
+define( [ "jquery", "./jquery.mobile.transition" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, window, undefined ) {
+
+$.mobile.transitionFallbacks.pop = "fade";
+
+})( jQuery, this );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.slide.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.slide.js
new file mode 100644 (file)
index 0000000..60fda61
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+* fallback transition for slide in non-3D supporting browsers (which tend to handle complex transitions poorly in general
+*/
+
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Animation styles and fallback transition definition for non-3D supporting browsers
+//>>label: Slide Transition
+//>>group: Transitions
+//>>css: ../css/structure/jquery.mobile.transition.slide.css
+
+define( [ "jquery", "./jquery.mobile.transition" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, window, undefined ) {
+
+// Use the simultaneous transition handler for slide transitions
+$.mobile.transitionHandlers.slide = $.mobile.transitionHandlers.simultaneous;
+
+// Set the slide transition's fallback to "fade"
+$.mobile.transitionFallbacks.slide = "fade";
+
+})( jQuery, this );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.slidedown.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.slidedown.js
new file mode 100644 (file)
index 0000000..cfbbac2
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+* fallback transition for slidedown in non-3D supporting browsers (which tend to handle complex transitions poorly in general
+*/
+
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Animation styles and fallback transition definition for non-3D supporting browsers
+//>>label: Slidedown Transition
+//>>group: Transitions
+//>>css: ../css/structure/jquery.mobile.transition.slidedown.css
+
+define( [ "jquery", "./jquery.mobile.transition" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, window, undefined ) {
+
+$.mobile.transitionFallbacks.slidedown = "fade";
+
+})( jQuery, this );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.slidefade.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.slidefade.js
new file mode 100644 (file)
index 0000000..17c47dc
--- /dev/null
@@ -0,0 +1,21 @@
+/*
+* fallback transition for slidefade in non-3D supporting browsers (which tend to handle complex transitions poorly in general
+*/
+
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Animation styles and fallback transition definition for non-3D supporting browsers
+//>>label: Slidefade Transition
+//>>group: Transitions
+//>>css: ../css/structure/jquery.mobile.transition.slidefade.css
+
+define( [ "jquery", "./jquery.mobile.transition" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, window, undefined ) {
+
+// Set the slide transition's fallback to "fade"
+$.mobile.transitionFallbacks.slidefade = "fade";
+
+})( jQuery, this );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.slideup.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.slideup.js
new file mode 100644 (file)
index 0000000..aac741f
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+* fallback transition for slideup in non-3D supporting browsers (which tend to handle complex transitions poorly in general
+*/
+
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Animation styles and fallback transition definition for non-3D supporting browsers
+//>>label: Slideup Transition
+//>>group: Transitions
+//>>css: ../css/structure/jquery.mobile.transition.slideup.css
+
+define( [ "jquery", "./jquery.mobile.transition" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, window, undefined ) {
+
+$.mobile.transitionFallbacks.slideup = "fade";
+
+})( jQuery, this );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.turn.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.transition.turn.js
new file mode 100644 (file)
index 0000000..5a30b1f
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+* fallback transition for turn in non-3D supporting browsers (which tend to handle complex transitions poorly in general
+*/
+
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Animation styles and fallback transition definition for non-3D supporting browsers
+//>>label: Turn Transition
+//>>group: Transitions
+//>>css: ../css/structure/jquery.mobile.transition.turn.css
+
+define( [ "jquery", "./jquery.mobile.transition" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, window, undefined ) {
+
+$.mobile.transitionFallbacks.turn = "fade";
+
+})( jQuery, this );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.vmouse.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.vmouse.js
new file mode 100644 (file)
index 0000000..6e9b504
--- /dev/null
@@ -0,0 +1,510 @@
+
+// This plugin is an experiment for abstracting away the touch and mouse
+// events so that developers don't have to worry about which method of input
+// the device their document is loaded on supports.
+//
+// The idea here is to allow the developer to register listeners for the
+// basic mouse events, such as mousedown, mousemove, mouseup, and click,
+// and the plugin will take care of registering the correct listeners
+// behind the scenes to invoke the listener at the fastest possible time
+// for that device, while still retaining the order of event firing in
+// the traditional mouse environment, should multiple handlers be registered
+// on the same element for different events.
+//
+// The current version exposes the following virtual events to jQuery bind methods:
+// "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel"
+
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Normalizes touch/mouse events.
+//>>label: Virtual Mouse (vmouse) Bindings
+//>>group: Core
+
+define( [ "jquery" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, window, document, undefined ) {
+
+var dataPropertyName = "virtualMouseBindings",
+       touchTargetPropertyName = "virtualTouchID",
+       virtualEventNames = "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split( " " ),
+       touchEventProps = "clientX clientY pageX pageY screenX screenY".split( " " ),
+       mouseHookProps = $.event.mouseHooks ? $.event.mouseHooks.props : [],
+       mouseEventProps = $.event.props.concat( mouseHookProps ),
+       activeDocHandlers = {},
+       resetTimerID = 0,
+       startX = 0,
+       startY = 0,
+       didScroll = false,
+       clickBlockList = [],
+       blockMouseTriggers = false,
+       blockTouchTriggers = false,
+       eventCaptureSupported = "addEventListener" in document,
+       $document = $( document ),
+       nextTouchID = 1,
+       lastTouchID = 0;
+
+$.vmouse = {
+       moveDistanceThreshold: 10,
+       clickDistanceThreshold: 10,
+       resetTimerDuration: 1500
+};
+
+function getNativeEvent( event ) {
+
+       while ( event && typeof event.originalEvent !== "undefined" ) {
+               event = event.originalEvent;
+       }
+       return event;
+}
+
+function createVirtualEvent( event, eventType ) {
+
+       var t = event.type,
+               oe, props, ne, prop, ct, touch, i, j;
+
+       event = $.Event(event);
+       event.type = eventType;
+
+       oe = event.originalEvent;
+       props = $.event.props;
+
+       // addresses separation of $.event.props in to $.event.mouseHook.props and Issue 3280
+       // https://github.com/jquery/jquery-mobile/issues/3280
+       if ( t.search( /^(mouse|click)/ ) > -1 ) {
+               props = mouseEventProps;
+       }
+
+       // copy original event properties over to the new event
+       // this would happen if we could call $.event.fix instead of $.Event
+       // but we don't have a way to force an event to be fixed multiple times
+       if ( oe ) {
+               for ( i = props.length, prop; i; ) {
+                       prop = props[ --i ];
+                       event[ prop ] = oe[ prop ];
+               }
+       }
+
+       // make sure that if the mouse and click virtual events are generated
+       // without a .which one is defined
+       if ( t.search(/mouse(down|up)|click/) > -1 && !event.which ){
+               event.which = 1;
+       }
+
+       if ( t.search(/^touch/) !== -1 ) {
+               ne = getNativeEvent( oe );
+               t = ne.touches;
+               ct = ne.changedTouches;
+               touch = ( t && t.length ) ? t[0] : ( (ct && ct.length) ? ct[ 0 ] : undefined );
+
+               if ( touch ) {
+                       for ( j = 0, len = touchEventProps.length; j < len; j++){
+                               prop = touchEventProps[ j ];
+                               event[ prop ] = touch[ prop ];
+                       }
+               }
+       }
+
+       return event;
+}
+
+function getVirtualBindingFlags( element ) {
+
+       var flags = {},
+               b, k;
+
+       while ( element ) {
+
+               b = $.data( element, dataPropertyName );
+
+               for (  k in b ) {
+                       if ( b[ k ] ) {
+                               flags[ k ] = flags.hasVirtualBinding = true;
+                       }
+               }
+               element = element.parentNode;
+       }
+       return flags;
+}
+
+function getClosestElementWithVirtualBinding( element, eventType ) {
+       var b;
+       while ( element ) {
+
+               b = $.data( element, dataPropertyName );
+
+               if ( b && ( !eventType || b[ eventType ] ) ) {
+                       return element;
+               }
+               element = element.parentNode;
+       }
+       return null;
+}
+
+function enableTouchBindings() {
+       blockTouchTriggers = false;
+}
+
+function disableTouchBindings() {
+       blockTouchTriggers = true;
+}
+
+function enableMouseBindings() {
+       lastTouchID = 0;
+       clickBlockList.length = 0;
+       blockMouseTriggers = false;
+
+       // When mouse bindings are enabled, our
+       // touch bindings are disabled.
+       disableTouchBindings();
+}
+
+function disableMouseBindings() {
+       // When mouse bindings are disabled, our
+       // touch bindings are enabled.
+       enableTouchBindings();
+}
+
+function startResetTimer() {
+       clearResetTimer();
+       resetTimerID = setTimeout(function(){
+               resetTimerID = 0;
+               enableMouseBindings();
+       }, $.vmouse.resetTimerDuration );
+}
+
+function clearResetTimer() {
+       if ( resetTimerID ){
+               clearTimeout( resetTimerID );
+               resetTimerID = 0;
+       }
+}
+
+function triggerVirtualEvent( eventType, event, flags ) {
+       var ve;
+
+       if ( ( flags && flags[ eventType ] ) ||
+                               ( !flags && getClosestElementWithVirtualBinding( event.target, eventType ) ) ) {
+
+               ve = createVirtualEvent( event, eventType );
+
+               $( event.target).trigger( ve );
+       }
+
+       return ve;
+}
+
+function mouseEventCallback( event ) {
+       var touchID = $.data(event.target, touchTargetPropertyName);
+
+       if ( !blockMouseTriggers && ( !lastTouchID || lastTouchID !== touchID ) ){
+               var ve = triggerVirtualEvent( "v" + event.type, event );
+               if ( ve ) {
+                       if ( ve.isDefaultPrevented() ) {
+                               event.preventDefault();
+                       }
+                       if ( ve.isPropagationStopped() ) {
+                               event.stopPropagation();
+                       }
+                       if ( ve.isImmediatePropagationStopped() ) {
+                               event.stopImmediatePropagation();
+                       }
+               }
+       }
+}
+
+function handleTouchStart( event ) {
+
+       var touches = getNativeEvent( event ).touches,
+               target, flags;
+
+       if ( touches && touches.length === 1 ) {
+
+               target = event.target;
+               flags = getVirtualBindingFlags( target );
+
+               if ( flags.hasVirtualBinding ) {
+
+                       lastTouchID = nextTouchID++;
+                       $.data( target, touchTargetPropertyName, lastTouchID );
+
+                       clearResetTimer();
+
+                       disableMouseBindings();
+                       didScroll = false;
+
+                       var t = getNativeEvent( event ).touches[ 0 ];
+                       startX = t.pageX;
+                       startY = t.pageY;
+
+                       triggerVirtualEvent( "vmouseover", event, flags );
+                       triggerVirtualEvent( "vmousedown", event, flags );
+               }
+       }
+}
+
+function handleScroll( event ) {
+       if ( blockTouchTriggers ) {
+               return;
+       }
+
+       if ( !didScroll ) {
+               triggerVirtualEvent( "vmousecancel", event, getVirtualBindingFlags( event.target ) );
+       }
+
+       didScroll = true;
+       startResetTimer();
+}
+
+function handleTouchMove( event ) {
+       if ( blockTouchTriggers ) {
+               return;
+       }
+
+       var t = getNativeEvent( event ).touches[ 0 ],
+               didCancel = didScroll,
+               moveThreshold = $.vmouse.moveDistanceThreshold;
+               didScroll = didScroll ||
+                       ( Math.abs(t.pageX - startX) > moveThreshold ||
+                               Math.abs(t.pageY - startY) > moveThreshold ),
+               flags = getVirtualBindingFlags( event.target );
+
+       if ( didScroll && !didCancel ) {
+               triggerVirtualEvent( "vmousecancel", event, flags );
+       }
+
+       triggerVirtualEvent( "vmousemove", event, flags );
+       startResetTimer();
+}
+
+function handleTouchEnd( event ) {
+       if ( blockTouchTriggers ) {
+               return;
+       }
+
+       disableTouchBindings();
+
+       var flags = getVirtualBindingFlags( event.target ),
+               t;
+       triggerVirtualEvent( "vmouseup", event, flags );
+
+       if ( !didScroll ) {
+               var ve = triggerVirtualEvent( "vclick", event, flags );
+               if ( ve && ve.isDefaultPrevented() ) {
+                       // The target of the mouse events that follow the touchend
+                       // event don't necessarily match the target used during the
+                       // touch. This means we need to rely on coordinates for blocking
+                       // any click that is generated.
+                       t = getNativeEvent( event ).changedTouches[ 0 ];
+                       clickBlockList.push({
+                               touchID: lastTouchID,
+                               x: t.clientX,
+                               y: t.clientY
+                       });
+
+                       // Prevent any mouse events that follow from triggering
+                       // virtual event notifications.
+                       blockMouseTriggers = true;
+               }
+       }
+       triggerVirtualEvent( "vmouseout", event, flags);
+       didScroll = false;
+
+       startResetTimer();
+}
+
+function hasVirtualBindings( ele ) {
+       var bindings = $.data( ele, dataPropertyName ),
+               k;
+
+       if ( bindings ) {
+               for ( k in bindings ) {
+                       if ( bindings[ k ] ) {
+                               return true;
+                       }
+               }
+       }
+       return false;
+}
+
+function dummyMouseHandler(){}
+
+function getSpecialEventObject( eventType ) {
+       var realType = eventType.substr( 1 );
+
+       return {
+               setup: function( data, namespace ) {
+                       // If this is the first virtual mouse binding for this element,
+                       // add a bindings object to its data.
+
+                       if ( !hasVirtualBindings( this ) ) {
+                               $.data( this, dataPropertyName, {});
+                       }
+
+                       // If setup is called, we know it is the first binding for this
+                       // eventType, so initialize the count for the eventType to zero.
+                       var bindings = $.data( this, dataPropertyName );
+                       bindings[ eventType ] = true;
+
+                       // If this is the first virtual mouse event for this type,
+                       // register a global handler on the document.
+
+                       activeDocHandlers[ eventType ] = ( activeDocHandlers[ eventType ] || 0 ) + 1;
+
+                       if ( activeDocHandlers[ eventType ] === 1 ) {
+                               $document.bind( realType, mouseEventCallback );
+                       }
+
+                       // Some browsers, like Opera Mini, won't dispatch mouse/click events
+                       // for elements unless they actually have handlers registered on them.
+                       // To get around this, we register dummy handlers on the elements.
+
+                       $( this ).bind( realType, dummyMouseHandler );
+
+                       // For now, if event capture is not supported, we rely on mouse handlers.
+                       if ( eventCaptureSupported ) {
+                               // If this is the first virtual mouse binding for the document,
+                               // register our touchstart handler on the document.
+
+                               activeDocHandlers[ "touchstart" ] = ( activeDocHandlers[ "touchstart" ] || 0) + 1;
+
+                               if (activeDocHandlers[ "touchstart" ] === 1) {
+                                       $document.bind( "touchstart", handleTouchStart )
+                                               .bind( "touchend", handleTouchEnd )
+
+                                               // On touch platforms, touching the screen and then dragging your finger
+                                               // causes the window content to scroll after some distance threshold is
+                                               // exceeded. On these platforms, a scroll prevents a click event from being
+                                               // dispatched, and on some platforms, even the touchend is suppressed. To
+                                               // mimic the suppression of the click event, we need to watch for a scroll
+                                               // event. Unfortunately, some platforms like iOS don't dispatch scroll
+                                               // events until *AFTER* the user lifts their finger (touchend). This means
+                                               // we need to watch both scroll and touchmove events to figure out whether
+                                               // or not a scroll happenens before the touchend event is fired.
+
+                                               .bind( "touchmove", handleTouchMove )
+                                               .bind( "scroll", handleScroll );
+                               }
+                       }
+               },
+
+               teardown: function( data, namespace ) {
+                       // If this is the last virtual binding for this eventType,
+                       // remove its global handler from the document.
+
+                       --activeDocHandlers[ eventType ];
+
+                       if ( !activeDocHandlers[ eventType ] ) {
+                               $document.unbind( realType, mouseEventCallback );
+                       }
+
+                       if ( eventCaptureSupported ) {
+                               // If this is the last virtual mouse binding in existence,
+                               // remove our document touchstart listener.
+
+                               --activeDocHandlers[ "touchstart" ];
+
+                               if ( !activeDocHandlers[ "touchstart" ] ) {
+                                       $document.unbind( "touchstart", handleTouchStart )
+                                               .unbind( "touchmove", handleTouchMove )
+                                               .unbind( "touchend", handleTouchEnd )
+                                               .unbind( "scroll", handleScroll );
+                               }
+                       }
+
+                       var $this = $( this ),
+                               bindings = $.data( this, dataPropertyName );
+
+                       // teardown may be called when an element was
+                       // removed from the DOM. If this is the case,
+                       // jQuery core may have already stripped the element
+                       // of any data bindings so we need to check it before
+                       // using it.
+                       if ( bindings ) {
+                               bindings[ eventType ] = false;
+                       }
+
+                       // Unregister the dummy event handler.
+
+                       $this.unbind( realType, dummyMouseHandler );
+
+                       // If this is the last virtual mouse binding on the
+                       // element, remove the binding data from the element.
+
+                       if ( !hasVirtualBindings( this ) ) {
+                               $this.removeData( dataPropertyName );
+                       }
+               }
+       };
+}
+
+// Expose our custom events to the jQuery bind/unbind mechanism.
+
+for ( var i = 0; i < virtualEventNames.length; i++ ){
+       $.event.special[ virtualEventNames[ i ] ] = getSpecialEventObject( virtualEventNames[ i ] );
+}
+
+// Add a capture click handler to block clicks.
+// Note that we require event capture support for this so if the device
+// doesn't support it, we punt for now and rely solely on mouse events.
+if ( eventCaptureSupported ) {
+       document.addEventListener( "click", function( e ){
+               var cnt = clickBlockList.length,
+                       target = e.target,
+                       x, y, ele, i, o, touchID;
+
+               if ( cnt ) {
+                       x = e.clientX;
+                       y = e.clientY;
+                       threshold = $.vmouse.clickDistanceThreshold;
+
+                       // The idea here is to run through the clickBlockList to see if
+                       // the current click event is in the proximity of one of our
+                       // vclick events that had preventDefault() called on it. If we find
+                       // one, then we block the click.
+                       //
+                       // Why do we have to rely on proximity?
+                       //
+                       // Because the target of the touch event that triggered the vclick
+                       // can be different from the target of the click event synthesized
+                       // by the browser. The target of a mouse/click event that is syntehsized
+                       // from a touch event seems to be implementation specific. For example,
+                       // some browsers will fire mouse/click events for a link that is near
+                       // a touch event, even though the target of the touchstart/touchend event
+                       // says the user touched outside the link. Also, it seems that with most
+                       // browsers, the target of the mouse/click event is not calculated until the
+                       // time it is dispatched, so if you replace an element that you touched
+                       // with another element, the target of the mouse/click will be the new
+                       // element underneath that point.
+                       //
+                       // Aside from proximity, we also check to see if the target and any
+                       // of its ancestors were the ones that blocked a click. This is necessary
+                       // because of the strange mouse/click target calculation done in the
+                       // Android 2.1 browser, where if you click on an element, and there is a
+                       // mouse/click handler on one of its ancestors, the target will be the
+                       // innermost child of the touched element, even if that child is no where
+                       // near the point of touch.
+
+                       ele = target;
+
+                       while ( ele ) {
+                               for ( i = 0; i < cnt; i++ ) {
+                                       o = clickBlockList[ i ];
+                                       touchID = 0;
+
+                                       if ( ( ele === target && Math.abs( o.x - x ) < threshold && Math.abs( o.y - y ) < threshold ) ||
+                                                               $.data( ele, touchTargetPropertyName ) === o.touchID ) {
+                                               // XXX: We may want to consider removing matches from the block list
+                                               //      instead of waiting for the reset timer to fire.
+                                               e.preventDefault();
+                                               e.stopPropagation();
+                                               return;
+                                       }
+                               }
+                               ele = ele.parentNode;
+                       }
+               }
+       }, true);
+}
+})( jQuery, window, document );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.widget.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.widget.js
new file mode 100644 (file)
index 0000000..37b6fdf
--- /dev/null
@@ -0,0 +1,75 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Widget factory extentions for mobile.
+//>>label: Widget Factory 
+//>>group: Core
+//>>css: ../css/themes/default/jquery.mobile.theme.css
+
+define( [ "jquery", "../external/requirejs/depend!./jquery.ui.widget[jquery]" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+(function( $, undefined ) {
+
+$.widget( "mobile.widget", {
+       // decorate the parent _createWidget to trigger `widgetinit` for users
+       // who wish to do post post `widgetcreate` alterations/additions
+       //
+       // TODO create a pull request for jquery ui to trigger this event
+       // in the original _createWidget
+       _createWidget: function() {
+               $.Widget.prototype._createWidget.apply( this, arguments );
+               this._trigger( 'init' );
+       },
+
+       _getCreateOptions: function() {
+
+               var elem = this.element,
+                       options = {};
+
+               $.each( this.options, function( option ) {
+
+                       var value = elem.jqmData( option.replace( /[A-Z]/g, function( c ) {
+                                                       return "-" + c.toLowerCase();
+                                               })
+                                       );
+
+                       if ( value !== undefined ) {
+                               options[ option ] = value;
+                       }
+               });
+
+               return options;
+       },
+
+       enhanceWithin: function( target, useKeepNative ) {
+               this.enhance( $( this.options.initSelector, $( target )), useKeepNative );
+       },
+
+       enhance: function( targets, useKeepNative ) {
+               var page, keepNative, $widgetElements = $( targets ), self = this;
+
+               // if ignoreContentEnabled is set to true the framework should
+               // only enhance the selected elements when they do NOT have a
+               // parent with the data-namespace-ignore attribute
+               $widgetElements = $.mobile.enhanceable( $widgetElements );
+
+               if ( useKeepNative && $widgetElements.length ) {
+                       // TODO remove dependency on the page widget for the keepNative.
+                       // Currently the keepNative value is defined on the page prototype so
+                       // the method is as well
+                       page = $.mobile.closestPageData( $widgetElements );
+                       keepNative = (page && page.keepNativeSelector()) || "";
+
+                       $widgetElements = $widgetElements.not( keepNative );
+               }
+
+               $widgetElements[ this.widgetName ]();
+       },
+
+       raise: function( msg ) {
+               throw "Widget [" + this.widgetName + "]: " + msg;
+       }
+});
+
+})( jQuery );
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.zoom.iosorientationfix.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.zoom.iosorientationfix.js
new file mode 100644 (file)
index 0000000..846f546
--- /dev/null
@@ -0,0 +1,44 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Fixes the orientation change bug in iOS when switching between landspace and portrait
+//>>label: iOS Orientation Change Fix
+//>>group: Utilities
+
+define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.zoom" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+( function( $, window ) {
+       
+       // This fix addresses an iOS bug, so return early if the UA claims it's something else.
+       if( !(/iPhone|iPad|iPod/.test( navigator.platform ) && navigator.userAgent.indexOf( "AppleWebKit" ) > -1 ) ){
+               return;
+       }
+       
+    var zoom = $.mobile.zoom,
+               evt, x, y, z, aig;
+       
+    function checkTilt( e ){
+               evt = e.originalEvent;
+               aig = evt.accelerationIncludingGravity;
+               
+               x = Math.abs( aig.x );
+               y = Math.abs( aig.y );
+               z = Math.abs( aig.z );
+                               
+               // If portrait orientation and in one of the danger zones
+        if( !window.orientation && ( x > 7 || ( ( z > 6 && y < 8 || z < 8 && y > 6 ) && x > 5 ) ) ){
+                       if( zoom.enabled ){
+                               zoom.disable();
+                       }               
+        }
+               else if( !zoom.enabled ){
+                       zoom.enable();
+        }
+    }
+
+    $( window )
+               .bind( "orientationchange.iosorientationfix", zoom.enable )
+               .bind( "devicemotion.iosorientationfix", checkTilt );
+
+}( jQuery, this ));
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.zoom.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.zoom.js
new file mode 100644 (file)
index 0000000..171c4d5
--- /dev/null
@@ -0,0 +1,43 @@
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+//>>description: Utility methods for enabling and disabling user scaling (pinch zoom)
+//>>label: Zoom Handling
+//>>group: Utilities
+
+define( [ "jquery", "./jquery.mobile.core" ], function( $ ) {
+//>>excludeEnd("jqmBuildExclude");
+( function( $ ) {
+       var     meta = $( "meta[name=viewport]" ),
+        initialContent = meta.attr( "content" ),
+        disabledZoom = initialContent + ",maximum-scale=1, user-scalable=no",
+        enabledZoom = initialContent + ",maximum-scale=10, user-scalable=yes",
+               disabledInitially = /(user-scalable[\s]*=[\s]*no)|(maximum-scale[\s]*=[\s]*1)[$,\s]/.test( initialContent );
+       
+       $.mobile.zoom = $.extend( {}, {
+               enabled: !disabledInitially,
+               locked: false,
+               disable: function( lock ) {
+                       if( !disabledInitially && !$.mobile.zoom.locked ){
+                       meta.attr( "content", disabledZoom );
+                       $.mobile.zoom.enabled = false;
+                               $.mobile.zoom.locked = lock || false;
+                       }
+               },
+               enable: function( unlock ) {
+                       if( !disabledInitially && ( !$.mobile.zoom.locked || unlock === true ) ){
+                       meta.attr( "content", enabledZoom );
+                       $.mobile.zoom.enabled = true;
+                               $.mobile.zoom.locked = false;
+                       }
+               },
+               restore: function() {
+                       if( !disabledInitially ){
+                       meta.attr( "content", initialContent );
+                       $.mobile.zoom.enabled = true;
+                       }
+               }
+       });
+
+}( jQuery ));
+//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
+});
+//>>excludeEnd("jqmBuildExclude");
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.tag.inserter.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.tag.inserter.js
new file mode 100644 (file)
index 0000000..fb81544
--- /dev/null
@@ -0,0 +1,31 @@
+(function() {
+       // Insert a script tag pointing at the desired version of jQuery
+
+       // Get the version from the url
+       var jqueryRE = /[\\?&]jquery=([^&#]*)/,
+               results = jqueryRE.exec( location.search ),
+               version = "",
+               jq,
+               myScriptTag = document.getElementsByTagName( "script" )[document.getElementsByTagName( "script" ).length - 1],
+               baseUrl = myScriptTag.src.replace( /(.*)\/.*$/, "$1/" ),
+               url = baseUrl + "jquery-1.7.1.js";
+
+       if( results ) {
+               version = decodeURIComponent(results[results.length - 1].replace(/\+/g, " "));
+       }
+
+       switch( version ) {
+               case "1.6.4":
+                       url = baseUrl + "jquery-1.6.4.js";
+                       break;
+               case "git":
+                       url = "http://code.jquery.com/jquery-git.js";
+                       break;
+       }
+
+       document.write( "<script src='" + url + "'></script>" );
+
+       if ( parseInt( version.replace( /\./g, "" ), 10 ) < 170 && window.define && window.define.amd ) {
+               document.write( '<script>define( "jquery", [], function () { return jQuery; } );</script>' );
+       }
+}());
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.ui.widget.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/js/jquery.ui.widget.js
new file mode 100644 (file)
index 0000000..86e83a0
--- /dev/null
@@ -0,0 +1,263 @@
+/*!
+ * jQuery UI Widget @VERSION
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Widget
+ */
+
+(function( $, undefined ) {
+
+// jQuery 1.4+
+if ( $.cleanData ) {
+       var _cleanData = $.cleanData;
+       $.cleanData = function( elems ) {
+               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
+                       $( elem ).triggerHandler( "remove" );
+               }
+               _cleanData( elems );
+       };
+} else {
+       var _remove = $.fn.remove;
+       $.fn.remove = function( selector, keepData ) {
+               return this.each(function() {
+                       if ( !keepData ) {
+                               if ( !selector || $.filter( selector, [ this ] ).length ) {
+                                       $( "*", this ).add( [ this ] ).each(function() {
+                                               $( this ).triggerHandler( "remove" );
+                                       });
+                               }
+                       }
+                       return _remove.call( $(this), selector, keepData );
+               });
+       };
+}
+
+$.widget = function( name, base, prototype ) {
+       var namespace = name.split( "." )[ 0 ],
+               fullName;
+       name = name.split( "." )[ 1 ];
+       fullName = namespace + "-" + name;
+
+       if ( !prototype ) {
+               prototype = base;
+               base = $.Widget;
+       }
+
+       // create selector for plugin
+       $.expr[ ":" ][ fullName ] = function( elem ) {
+               return !!$.data( elem, name );
+       };
+
+       $[ namespace ] = $[ namespace ] || {};
+       $[ namespace ][ name ] = function( options, element ) {
+               // allow instantiation without initializing for simple inheritance
+               if ( arguments.length ) {
+                       this._createWidget( options, element );
+               }
+       };
+
+       var basePrototype = new base();
+       // we need to make the options hash a property directly on the new instance
+       // otherwise we'll modify the options hash on the prototype that we're
+       // inheriting from
+//     $.each( basePrototype, function( key, val ) {
+//             if ( $.isPlainObject(val) ) {
+//                     basePrototype[ key ] = $.extend( {}, val );
+//             }
+//     });
+       basePrototype.options = $.extend( true, {}, basePrototype.options );
+       $[ namespace ][ name ].prototype = $.extend( true, basePrototype, {
+               namespace: namespace,
+               widgetName: name,
+               widgetEventPrefix: $[ namespace ][ name ].prototype.widgetEventPrefix || name,
+               widgetBaseClass: fullName
+       }, prototype );
+
+       $.widget.bridge( name, $[ namespace ][ name ] );
+};
+
+$.widget.bridge = function( name, object ) {
+       $.fn[ name ] = function( options ) {
+               var isMethodCall = typeof options === "string",
+                       args = Array.prototype.slice.call( arguments, 1 ),
+                       returnValue = this;
+
+               // allow multiple hashes to be passed on init
+               options = !isMethodCall && args.length ?
+                       $.extend.apply( null, [ true, options ].concat(args) ) :
+                       options;
+
+               // prevent calls to internal methods
+               if ( isMethodCall && options.charAt( 0 ) === "_" ) {
+                       return returnValue;
+               }
+
+               if ( isMethodCall ) {
+                       this.each(function() {
+                               var instance = $.data( this, name );
+                               if ( !instance ) {
+                                       throw "cannot call methods on " + name + " prior to initialization; " +
+                                               "attempted to call method '" + options + "'";
+                               }
+                               if ( !$.isFunction( instance[options] ) ) {
+                                       throw "no such method '" + options + "' for " + name + " widget instance";
+                               }
+                               var methodValue = instance[ options ].apply( instance, args );
+                               if ( methodValue !== instance && methodValue !== undefined ) {
+                                       returnValue = methodValue;
+                                       return false;
+                               }
+                       });
+               } else {
+                       this.each(function() {
+                               var instance = $.data( this, name );
+                               if ( instance ) {
+                                       instance.option( options || {} )._init();
+                               } else {
+                                       $.data( this, name, new object( options, this ) );
+                               }
+                       });
+               }
+
+               return returnValue;
+       };
+};
+
+$.Widget = function( options, element ) {
+       // allow instantiation without initializing for simple inheritance
+       if ( arguments.length ) {
+               this._createWidget( options, element );
+       }
+};
+
+$.Widget.prototype = {
+       widgetName: "widget",
+       widgetEventPrefix: "",
+       options: {
+               disabled: false
+       },
+       _createWidget: function( options, element ) {
+               // $.widget.bridge stores the plugin instance, but we do it anyway
+               // so that it's stored even before the _create function runs
+               $.data( element, this.widgetName, this );
+               this.element = $( element );
+               this.options = $.extend( true, {},
+                       this.options,
+                       this._getCreateOptions(),
+                       options );
+
+               var self = this;
+               this.element.bind( "remove." + this.widgetName, function() {
+                       self.destroy();
+               });
+
+               this._create();
+               this._trigger( "create" );
+               this._init();
+       },
+       _getCreateOptions: function() {
+               var options = {};
+               if ( $.metadata ) {
+                       options = $.metadata.get( element )[ this.widgetName ];
+               }
+               return options;
+       },
+       _create: function() {},
+       _init: function() {},
+
+       destroy: function() {
+               this.element
+                       .unbind( "." + this.widgetName )
+                       .removeData( this.widgetName );
+               this.widget()
+                       .unbind( "." + this.widgetName )
+                       .removeAttr( "aria-disabled" )
+                       .removeClass(
+                               this.widgetBaseClass + "-disabled " +
+                               "ui-state-disabled" );
+       },
+
+       widget: function() {
+               return this.element;
+       },
+
+       option: function( key, value ) {
+               var options = key;
+
+               if ( arguments.length === 0 ) {
+                       // don't return a reference to the internal hash
+                       return $.extend( {}, this.options );
+               }
+
+               if  (typeof key === "string" ) {
+                       if ( value === undefined ) {
+                               return this.options[ key ];
+                       }
+                       options = {};
+                       options[ key ] = value;
+               }
+
+               this._setOptions( options );
+
+               return this;
+       },
+       _setOptions: function( options ) {
+               var self = this;
+               $.each( options, function( key, value ) {
+                       self._setOption( key, value );
+               });
+
+               return this;
+       },
+       _setOption: function( key, value ) {
+               this.options[ key ] = value;
+
+               if ( key === "disabled" ) {
+                       this.widget()
+                               [ value ? "addClass" : "removeClass"](
+                                       this.widgetBaseClass + "-disabled" + " " +
+                                       "ui-state-disabled" )
+                               .attr( "aria-disabled", value );
+               }
+
+               return this;
+       },
+
+       enable: function() {
+               return this._setOption( "disabled", false );
+       },
+       disable: function() {
+               return this._setOption( "disabled", true );
+       },
+
+       _trigger: function( type, event, data ) {
+               var callback = this.options[ type ];
+
+               event = $.Event( event );
+               event.type = ( type === this.widgetEventPrefix ?
+                       type :
+                       this.widgetEventPrefix + type ).toLowerCase();
+               data = data || {};
+
+               // copy original event properties over to the new event
+               // this would happen if we could call $.event.fix instead of $.Event
+               // but we don't have a way to force an event to be fixed multiple times
+               if ( event.originalEvent ) {
+                       for ( var i = $.event.props.length, prop; i; ) {
+                               prop = $.event.props[ --i ];
+                               event[ prop ] = event.originalEvent[ prop ];
+                       }
+               }
+
+               this.element.trigger( event, data );
+
+               return !( $.isFunction(callback) &&
+                       callback.call( this.element[0], event, data ) === false ||
+                       event.isDefaultPrevented() );
+       }
+};
+
+})( jQuery );
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/addrbar.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/addrbar.html
new file mode 100644 (file)
index 0000000..ebe18df
--- /dev/null
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile: Event Logger</title>
+       <link rel="stylesheet"  href="../../css/themes/default/jquery.mobile.css" />
+       <link rel="stylesheet" href="../../docs/_assets/css/jqm-docs.css" />
+       <script src="../../js/jquery.tag.inserter.js"></script>
+       <script src="../../js/jquery.js"></script>
+       <script src="../../docs/_assets/js/jqm-docs.js"></script>
+       <script src="../../js/"></script>
+
+       <script>
+       $(function(){
+       $( "a" ).bind("tap click",function( e ){
+                       $("#log")
+                               .prepend("<li>"+ e.type +" event; target: "+ e.target.nodeName +"</li>")
+                               .listview("refresh");
+                       return false;
+               })
+               .bind("tap click", false);
+       });
+       </script>
+
+       <style>
+               #jqm-home {
+                       height: 500px;
+               }
+       </style>
+</head>
+<body>
+<div  data-role="page"  data-theme="b" id="jqm-home">
+       <div  data-role="header">
+               <h1>Event Logger</h1>
+       </div>
+
+       <div  data-role="content">
+               <p>Touch events on this page will log out below, prepending to the top as they arrive.</p>
+
+               <a href="foo.html"  data-role="button">Click me</a>
+
+               <ul  data-role="listview" id="log">
+
+               </ul>
+
+       </div>
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/button-markup.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/button-markup.html
new file mode 100644 (file)
index 0000000..cbcaa35
--- /dev/null
@@ -0,0 +1,131 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <meta charset="utf-8" />
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile Button Markup Tester</title>
+       <link rel="stylesheet"  href="../../css/themes/default/jquery.mobile.css" />
+       <link rel="stylesheet" href="../../docs/_assets/css/jqm-docs.css" />
+       <script src="../../js/jquery.tag.inserter.js"></script>
+       <script src="../../js"></script>
+<script>
+$(document).bind("pagecreate", function() {
+       $("#button-apply").bind("vclick", function() {
+               var options = {empty: true};
+
+               $("[data-setter]").each(function() {
+                       var self = $(this),
+                           val = ($(this).is("[type='checkbox']") ? $(this).is(":checked") : $(this).val()),
+                           key = $(this).parent().find("label").text(),
+                           apply = $("#button-" + key + "-apply").is(":checked");
+
+                       if (apply) {
+                               options.empty = false;
+                               options[key] = val;
+                       }
+               });
+               if (!options.empty) {
+                       delete options.empty;
+                       $("#sample-link,#sample-input-button,#sample-button").buttonMarkup(options);
+               }
+       });
+});
+</script>
+<style>
+.ui-field-contain {
+       margin-top: 0px;
+       margin-bottom: 0px;
+}
+</style>
+</head>
+
+<body>
+       <div data-role="page">
+               <div data-role="header">
+                       <h1>jQuery Mobile Widget Option Tester</h1>
+               </div>
+               <div data-role="contents">
+                       <a id="sample-link" data-role="button">Sample Link</a>
+                       <input id="sample-input-button" type="button" name="Input Button" value="Sample Input Button"></input>
+                       <button id="sample-button" name="Button">Sample Button</button>
+
+                       <form id="button-settings" name="button-settings" action="#" method="get" style="display: table;">
+                               <table><tr><td>
+                                       <div data-role="fieldcontain">
+                                               <label for="button-icon">icon</label>
+                                               <input data-setter="true" type="text" id="button-icon"></input>
+                                       </div>
+                               </td><td>
+                                       <div data-role="fieldcontain">
+                                               <label for="button-icon-apply">Apply</label>
+                                               <input data-apply="true" type="checkbox" id="button-icon-apply"></input>
+                                       </div>
+                               </td></tr><tr><td>
+                                       <div data-role="fieldcontain">
+                                               <label for="button-iconpos">iconpos</label>
+                                               <input data-setter="true" type="text" id="button-iconpos"></input>
+                                       </div>
+                               </td><td>
+                                       <div data-role="fieldcontain">
+                                               <label for="button-iconpos-apply">Apply</label>
+                                               <input data-apply="true" type="checkbox" id="button-iconpos-apply"></input>
+                                       </div>
+                               </td></tr><tr><td>
+                                       <div data-role="fieldcontain">
+                                               <label for="button-theme">theme</label>
+                                               <input data-setter="true" type="text" id="button-theme"></input>
+                                       </div>
+                               </td><td>
+                                       <div data-role="fieldcontain">
+                                               <label for="button-theme-apply">Apply</label>
+                                               <input data-apply="true" type="checkbox" id="button-theme-apply"></input>
+                                       </div>
+                               </td></tr><tr><td>
+                                       <div data-role="fieldcontain">
+                                               <label for="button-inline">inline</label>
+                                               <input data-setter="true" type="checkbox" id="button-inline"></input>
+                                       </div>
+                               </td><td>
+                                       <div data-role="fieldcontain">
+                                               <label for="button-inline-apply">Apply</label>
+                                               <input data-apply="true" type="checkbox" id="button-inline-apply"></input>
+                                       </div>
+                               </td></tr><tr><td>
+                                       <div data-role="fieldcontain">
+                                               <label for="button-shadow">shadow</label>
+                                               <input data-setter="true" type="checkbox" id="button-shadow"></input>
+                                       </div>
+                               </td><td>
+                                       <div data-role="fieldcontain">
+                                               <label for="button-shadow-apply">Apply</label>
+                                               <input data-apply="true" type="checkbox" id="button-shadow-apply"></input>
+                                       </div>
+                               </td></tr><tr><td>
+                                       <div data-role="fieldcontain">
+                                               <label for="button-corners">corners</label>
+                                               <input data-setter="true" type="checkbox" id="button-corners"></input>
+                                       </div>
+                               </td><td>
+                                       <div data-role="fieldcontain">
+                                               <label for="button-corners-apply">Apply</label>
+                                               <input data-apply="true" type="checkbox" id="button-corners-apply"></input>
+                                       </div>
+                               </td></tr><tr><td>
+                                       <div data-role="fieldcontain">
+                                               <label for="button-iconshadow">iconshadow</label>
+                                               <input data-setter="true" type="checkbox" id="button-iconshadow"></input>
+                                       </div>
+                               </td><td>
+                                       <div data-role="fieldcontain">
+                                               <label for="button-iconshadow-apply">Apply</label>
+                                               <input data-apply="true" type="checkbox" id="button-iconshadow-apply"></input>
+                                       </div>
+                               </td></tr>
+                               <tr><td colspan="2">
+                                       <input type="button" name="button-apply" value="Apply" id="button-apply"></input>
+                               </td></tr></table>
+                       </form>
+               </div>
+       </div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/eventlogger.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/eventlogger.html
new file mode 100644 (file)
index 0000000..1486f2e
--- /dev/null
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile: Event Logger</title>
+       <link rel="stylesheet"  href="../../css/themes/default/jquery.mobile.css" />
+       <link rel="stylesheet" href="../../docs/_assets/css/jqm-docs.css" />
+       <script src="../../js/jquery.tag.inserter.js"></script>
+       <script src="../../js/jquery.js"></script>
+       <script src="../../docs/_assets/js/jqm-docs.js"></script>
+       <script src="../../js/"></script>
+
+       <script>
+       $( document )
+               .bind("tap taphold swipe swipeleft swiperight scrollstart scrollstop orientationchange",function( e ){
+                       $("#log")
+                               .prepend("<li>"+ e.type +" event; target: "+ e.target.nodeName +"</li>")
+                               .listview("refresh");
+
+               });
+       </script>
+</head>
+<body>
+<div  data-role="page"  data-theme="b" id="jqm-home">
+       <div  data-role="header">
+               <h1>Event Logger</h1>
+       </div>
+
+       <div  data-role="content">
+               <p>Touch events on this page will log out below, prepending to the top as they arrive.</p>
+
+               <ul  data-role="listview" id="log">
+
+               </ul>
+
+       </div>
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/gridlayout.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/gridlayout.html
new file mode 100644 (file)
index 0000000..286386a
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <meta charset="utf-8" />
+       <title>jQuery Mobile: Grid Layout</title>
+       <link rel="stylesheet"  href="../../css/themes/default/jquery.mobile.css" />
+       <link rel="stylesheet" href="../../docs/_assets/css/jqm-docs.css" />
+       <script src="../../js/jquery.tag.inserter.js"></script>
+       <script src="../../js/jquery.js"></script>
+       <script src="../../docs/_assets/js/jqm-docs.js"></script>
+       <script src="../../js/"></script>
+
+       <script>
+       $(function(){
+               $(".ui-grid-d a").bind("tap click", function(e){
+                       $(this).hide();
+                       $("#log")
+                               .prepend("<li>"+ e.type +" event; target: "+ e.target.nodeName +"; message: grid '"+$(this).text()+"' hidden</li>")
+                               .listview("refresh");
+                       return false;
+               }).bind("tap click", false);
+               $("#showbtn").bind("tap click", function(e){
+                       $(".ui-grid-d a").show();
+                       $("#log")
+                               .prepend("<li>"+ e.type +" event; target: "+ e.target.nodeName +"; message: show all buttons</li>")
+                               .listview("refresh");
+               }).bind("tap click", false);
+       });
+       </script>
+</head>
+<body>
+<div data-role="page" data-theme="b" id="jqm-home">
+       <div data-role="header">
+               <h1>Grid Layout</h1>
+       </div>
+
+       <div data-role="content">
+               <p>Touch events on this page will log out below, prepending to the top as they arrive.</p>
+
+               <div class="ui-grid-d">
+                       <div class="ui-block-a">
+                               <a data-role="button" id="btn1" data-theme="b">Button 1</a>
+                       </div>
+                       <div class="ui-block-b">
+                               <a data-role="button" id="btn2" data-theme="b">Button 2</a>
+                       </div>
+                       <div class="ui-block-c">
+                               <a data-role="button" id="btn3" data-theme="b">Button 3</a>
+                       </div>
+                       <div class="ui-block-d">
+                               <a data-role="button" id="btn4" data-theme="b">Button 4</a>
+                       </div>
+                       <div class="ui-block-e">
+                               <a data-role="button" id="btn5" data-theme="b">Button 5</a>
+                       </div>
+               </div>
+
+               <a data-role="button" id="showbtn">Show all button</a>
+
+               <ul data-role="listview" id="log">
+
+               </ul>
+
+       </div>
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/orientation.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/functional/orientation.html
new file mode 100644 (file)
index 0000000..9052490
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile: Orientation</title>
+       <link rel="stylesheet"  href="../../css/themes/default/jquery.mobile.css" />
+       <link rel="stylesheet" href="../../docs/_assets/css/jqm-docs.css" />
+       <style>
+    
+               #orientationText {
+                       font-size: x-large;
+                       font-weight: bold;
+                       margin: 1em;
+               }
+
+       </style>
+       <script src="../../external/requirejs/require.js"></script>
+       <script src="../../js/jquery.tag.inserter.js"></script>
+       <script>
+               require( {
+                       baseUrl: "../../js"
+               } )( [ "jquery", "jquery.mobile" ], function( $ ) {
+                       $( document ).one( "pageinit", function() {
+                               function updateOrientation()
+                               {
+                                       $( "#orientationText" ).text( $.event.special.orientationchange.orientation() );
+                               }
+
+                               updateOrientation();
+                               $( window ).bind( $.support.orientation ? "orientationchange" : "resize", updateOrientation);
+                       });
+               });
+    </script>
+</head>
+
+<body>
+<div data-role="page">
+       <div data-role="header"><h1>Orientation Test</h1></div>
+       <div data-role="content">
+       <p>The current device orientation is displayed below. It should *ALWAYS* be correct!</p>
+        <div id="orientationText">Orientation Not Supported!</div>
+    </div>
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/jquery.testHelper.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/jquery.testHelper.js
new file mode 100644 (file)
index 0000000..b010263
--- /dev/null
@@ -0,0 +1,246 @@
+/*
+ * mobile support unit tests
+ */
+
+(function( $ ) {
+       $.testHelper = {
+               // This function takes sets of files to load asynchronously. Each set will be loaded after
+               // the previous set has completed loading. That is, each require and it's dependencies in a
+               // set will be loaded asynchronously, but each set will be run in serial.
+               asyncLoad: function( seq ) {
+                       require({
+                               baseUrl: "../../../js"
+                       });
+
+                       function loadSeq( seq, i ){
+                               if( !seq[i] ){
+                                       $( document ).ready( function() {
+                                               var $fixture = $( '#qunit-fixture' );
+                                               if ( $fixture.length ) {
+                                                       QUnit.config.fixture = $fixture.html();
+                                               }
+                                               QUnit.start();
+                                       });
+                                       return;
+                               }
+
+                               require( seq[i], function() {
+                                       loadSeq(seq, i + 1);
+                               });
+                       }
+
+                       // stop qunit from running the tests until everything is in the page
+                       QUnit.config.autostart = false;
+
+                       loadSeq( seq, 0 );
+               },
+
+               excludeFileProtocol: function(callback){
+                       var message = "Tests require script reload and cannot be run via file: protocol";
+
+                       if (location.protocol == "file:") {
+                               test(message, function(){
+                                       ok(false, message);
+                               });
+                       } else {
+                               callback();
+                       }
+               },
+
+               // TODO prevent test suite loads when the browser doesn't support push state
+               // and push-state false is defined.
+               setPushState: function() {
+                       if( $.support.pushState && location.search.indexOf( "push-state" ) >= 0 ) {
+                               $.support.pushState = false;
+                       }
+               },
+
+               reloads: {},
+
+               reloadModule: function(libName){
+                       var deferred = $.Deferred(),
+                               context;
+
+                       // where a module loader isn't defined use the old way
+                       if( !window.require ) {
+                               this.reloadLib( libName );
+                               deferred.resolve();
+                               return deferred;
+                       }
+
+                       if(this.reloads[libName] === undefined) {
+                               this.reloads[libName] = {
+                                       count: 0
+                               };
+                       }
+
+                       //Clear internal cache of module inside of require
+                       context = require.s.contexts._;
+                       delete context.defined[libName];
+                       delete context.specified[libName];
+                       delete context.loaded[libName];
+                       delete context.urlFetched[require.toUrl(libName + '.js')];
+
+                       require(
+                               {
+                                       baseUrl: "../../../js"
+                               }, [libName],
+                               function() {
+                                       deferred.resolve();
+                               }
+                       );
+
+                       return deferred;
+               },
+
+               reloadLib: function(libName){
+                       if(this.reloads[libName] === undefined) {
+                               this.reloads[libName] = {
+                                       lib: $("script[src$='" + libName + "']"),
+                                       count: 0
+                               };
+                       }
+
+                       var lib = this.reloads[libName].lib.clone(),
+                               src = lib.attr('src');
+
+                       //NOTE append "cache breaker" to force reload
+                       lib.attr('src', src + "?" + this.reloads[libName].count++);
+                       $("body").append(lib);
+               },
+
+               rerunQunit: function(){
+                       var self = this;
+                       QUnit.init();
+                       $("script:not([src*='.\/'])").each(function(i, elem){
+                               var src = elem.src.split("/");
+                               self.reloadLib(src[src.length - 1]);
+                       });
+                       QUnit.start();
+               },
+
+               alterExtend: function(extraExtension){
+                       var extendFn = $.extend;
+
+                       $.extend = function(object, extension){
+                               // NOTE extend the object as normal
+                               var result = extendFn.apply(this, arguments);
+
+                               // NOTE add custom extensions
+                               result = extendFn(result, extraExtension);
+                               return result;
+                       };
+               },
+
+               hideActivePageWhenComplete: function() {
+                       if( $('#qunit-testresult').length > 0 ) {
+                               $('.ui-page-active').css('display', 'none');
+                       } else {
+                               setTimeout($.testHelper.hideActivePageWhenComplete, 500);
+                       }
+               },
+
+               openPage: function(hash){
+                       location.href = location.href.split('#')[0] + hash;
+               },
+
+               sequence: function(fns, interval){
+                       $.each(fns, function(i, fn){
+                               setTimeout(fn, i * interval);
+                       });
+               },
+
+               pageSequence: function( fns ){
+                       this.eventSequence( "pagechange", fns );
+               },
+
+               eventSequence: function( event, fns, timedOut ){
+                       var seq = [];
+                       $.each(fns, function( i, fn ) {
+                               seq.push( fn );
+                               if( i !== fns.length - 1) seq.push( event );
+                       });
+
+                       this.eventCascade( seq );
+               },
+
+               eventCascade: function( sequence, timedOut ) {
+                       var fn = sequence.shift(),
+                               event = sequence.shift(),
+                               self = this;
+
+                       if( fn === undefined ) {
+                               return;
+                       }
+
+                       if( event ){
+                               // if a pagechange or defined event is never triggered
+                               // continue in the sequence to alert possible failures
+                               var warnTimer = setTimeout(function() {
+                                       self.eventCascade( sequence, true );
+                               }, 2000);
+
+                               // bind the recursive call to the event
+                               $.mobile.pageContainer.one(event, function() {
+                                       clearTimeout( warnTimer );
+
+                                       // Let the current stack unwind before we fire off the next item in the sequence.
+                                       // TODO setTimeout(self.pageSequence, 0, sequence);
+                                       setTimeout(function(){ self.eventCascade(sequence); }, 0);
+                               });
+                       }
+
+                       // invoke the function which should, in some fashion,
+                       // trigger the next event
+                       fn( timedOut );
+               },
+
+               deferredSequence: function(fns) {
+                       var fn = fns.shift(),
+                               deferred = $.Deferred(),
+                               self = this, res;
+
+                       if (fn) {
+                               res = fn();
+                               if ( res && $.type( res.done ) === "function" ) {
+                                       res.done(function() {
+                                               self.deferredSequence( fns ).done(function() {
+                                                       deferred.resolve();
+                                               });
+                                       });
+                               } else {
+                                       self.deferredSequence( fns ).done(function() {
+                                               deferred.resolve();
+                                       });
+                               }
+                       } else {
+                               deferred.resolve();
+                       }
+                       return deferred;
+               },
+
+               decorate: function(opts){
+                       var thisVal = opts.self || window;
+
+                       return function(){
+                               var returnVal;
+                               opts.before && opts.before.apply(thisVal, arguments);
+                               returnVal = opts.fn.apply(thisVal, arguments);
+                               opts.after && opts.after.apply(thisVal, arguments);
+
+                               return returnVal;
+                       };
+               },
+
+               assertUrlLocation: function( args ) {
+                       var parts = $.mobile.path.parseUrl( location.href ),
+                               pathnameOnward = location.href.replace( parts.domain, "" );
+
+                       if( $.support.pushState ) {
+                               same( pathnameOnward, args.hashOrPush || args.push, args.report );
+                       } else {
+                               same( parts.hash, "#" + (args.hashOrPush || args.hash), args.report );
+                       }
+               }
+       };
+})(jQuery);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/button/button_core.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/button/button_core.js
new file mode 100644 (file)
index 0000000..b2fb8d6
--- /dev/null
@@ -0,0 +1,58 @@
+/*
+ * mobile button unit tests
+ */
+(function($){
+       $.mobile.page.prototype.options.keepNative = "button.should-be-native";
+
+       test( "button elements in the keepNative set shouldn't be enhanced", function() {
+               same( $("button.should-be-native").siblings("div.ui-slider").length, 0 );
+       });
+
+       test( "button elements should be enhanced", function() {
+               ok( $("#enhanced").hasClass( "ui-btn-hidden" ) );
+       });
+
+       test( "button markup text value should be changed on refresh", function() {
+               var textValueButton = $("#text"), valueButton = $("#value");
+
+               // the value shouldn't change unless it's been altered
+               textValueButton.button( 'refresh' );
+               same( textValueButton.siblings().text(), "foo" );
+
+               // use the text where it's provided
+               same( textValueButton.siblings().text(), "foo" );
+               textValueButton.text( "bar" ).button( 'refresh' );
+               same( textValueButton.siblings().text(), "bar" );
+
+               // use the val if it's provided where the text isn't
+               same( valueButton.siblings().text(), "foo" );
+               valueButton.val( "bar" ).button( 'refresh' );
+               same( valueButton.siblings().text(), "bar" );
+
+               // prefer the text to the value
+               textValueButton.text( "bar" ).val( "baz" ).button( 'refresh' );
+               same( textValueButton.siblings().text(), "bar" );
+       });
+
+       // Issue 2877
+       test( "verify the button placeholder is added many times", function() {
+               var $form =     $( "#hidden-element-addition-form" ), count = 3;
+               expect( count * 2 );
+
+               for( var x = 0; x < count; x++ ) {
+                       $( "#hidden-element-addition" ).trigger( "vclick" );
+                       same( $form.find( "input[type='hidden']" ).length, 1, "hidden form input should be added" );
+
+                       $form.trigger( "submit" );
+                       same( $form.find( "[type='hidden']" ).length, 0, "hidden form input is removed" );
+               }
+       });
+
+       test( "theme should be inherited", function() {
+               var $inherited = $( "#theme-check" ),
+                   $explicit = $( "#theme-check-explicit" );
+
+               ok( $inherited.closest("div").hasClass( "ui-btn-up-a" ), "should inherit from page" );
+               ok( $explicit.closest("div").hasClass( "ui-btn-up-b" ), "should not inherit" );
+       });
+})( jQuery );
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/button/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/button/index.html
new file mode 100644 (file)
index 0000000..ad806f7
--- /dev/null
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile Button Test Suite</title>
+
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../../tests/jquery.testHelper.js"></script>
+
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+       <script src="../../../external/qunit.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [
+                               "jquery.mobile.forms.button",
+                       ],
+                       [ "jquery.mobile.init" ],
+                       [
+                               "button_core.js"
+                       ]
+               ]);
+       </script>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+  <h1 id="qunit-header">jQuery Mobile Button Test Suite</h1>
+  <h2 id="qunit-banner"></h2>
+  <h2 id="qunit-userAgent"></h2>
+  <ol id="qunit-tests">
+  </ol>
+
+  <div data-nstest-role="page" data-nstest-theme="a">
+    <div data-nstest-role="content" data-nstest-theme="p">
+      <button class="should-be-native">foo</button>
+      <button id="enhanced">bar</button>
+      <button id="text">foo</button>
+      <button id="value" value="foo"></button>
+      <form id="hidden-element-addition-form" method="get" action="this will fail!">
+        <input type="submit" id="hidden-element-addition" name="foo">foo</input>
+      </form>
+      <button id="theme-check" value="foo"></button>
+      <button id="theme-check-explicit" value="foo" data-nstest-theme="b"></button>
+    </div>
+  </div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/buttonMarkup/buttonMarkup_core.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/buttonMarkup/buttonMarkup_core.js
new file mode 100644 (file)
index 0000000..3cf8980
--- /dev/null
@@ -0,0 +1,100 @@
+/*
+ * mobile buttonMarkup tests
+ */
+(function($){
+       module("jquery.mobile.buttonMarkup.js");
+
+       test( "header buttons should have the header class", function() {
+               var headerButton1 = $("#header-button-1"),
+                   headerButton2 = $("#header-button-2");
+
+               ok((headerButton1.hasClass("ui-btn-left") &&
+                   headerButton2.hasClass("ui-btn-right")), "first header button should have class 'ui-btn-left' and the second one should have 'ui-btn-right'");
+       });
+
+       test( "control group buttons should be enhanced inside a footer", function(){
+               var group, linkCount;
+
+               group = $("#control-group-footer");
+               linkCount = group.find( "a" ).length;
+
+               same( group.find("a.ui-btn").length, linkCount, "all 4 links should be buttons");
+               same( group.find("a > span.ui-corner-left").length, 1, "only 1 left cornered button");
+               same( group.find("a > span.ui-corner-right").length, 1, "only 1 right cornered button");
+               same( group.find("a > span:not(.ui-corner-left):not(.ui-corner-right)").length, linkCount - 2, "only 2 buttons are cornered");
+       });
+
+       test( "control group buttons should respect theme-related data attributes", function(){
+               var group = $("#control-group-content");
+
+               ok(!group.find('[data-shadow=false]').hasClass("ui-shadow"),
+                        "buttons with data-shadow=false should not have the ui-shadow class");
+               ok(!group.find('[data-corners=false]').hasClass("ui-btn-corner-all"),
+                        "buttons with data-corners=false should not have the ui-btn-corner-all class");
+               ok(!group.find('[data-iconshadow=false] .ui-icon').hasClass("ui-icon-shadow"),
+                        "buttons with data-iconshadow=false should not have the ui-icon-shadow class on their icons");
+       });
+
+       // Test for issue #3046 and #3054:
+       test( "mousedown on SVG elements should not throw an exception", function(){
+               var svg = $("#embedded-svg"),
+                       success = true,
+                       rect;
+               ok(svg.length > 0, "found embedded svg document" );
+               if ( svg.length > 0 ) {
+                       rect = $( "rect", svg );
+                       ok(rect.length > 0, "found rect" );
+                       try {
+                               rect.trigger("mousedown");
+                       } catch ( ex ) {
+                               success = false;
+                       }
+                       ok( success, "mousedown executed without exception");
+               }
+       });
+
+       test( "Elements with “data-mini='true'” should have “ui-mini” class attached to enhanced element.", function(){
+               var $mini = $("#mini"),
+                       $full = $("#full"),
+                       $minicontrol = $('#mini-control');
+
+               ok( $full.not('.ui-mini'), "Original element does not have data attribute, enhanced version does not recieve .ui-mini.");
+               ok( $mini.is('.ui-mini'), "Original element has data attribute, enhanced version recieves .ui-mini." );
+               ok( $minicontrol.is('.ui-mini'), "Controlgroup has data attribute and recieves .ui-mini.");
+       });
+       
+       test( "Ensure icon positioning defaults to left, and can be overridden with “data-iconpos”", function() {
+               var posdefault = $("#iconpos1"),
+                   posleft = $("#iconpos2"),
+                       posright = $("#iconpos3");
+
+               ok( posdefault.hasClass("ui-btn-icon-left"), "Button with unspecified icon position gets .ui-btn-icon-left" );
+               ok( posleft.hasClass("ui-btn-icon-left"), "Button with left icon positioning specified .ui-btn-icon-left" );
+               ok( posright.hasClass("ui-btn-icon-right"), "Button with right icon positioning specified .ui-btn-icon-right" );
+
+       });
+
+       asyncTest( "ui-btn-* should be applied based on a setting", function() {
+               // force touch support so the timeout is set
+               $.support.touch = true;
+
+               var $btn = $( "#hover-delay" );
+
+               $.testHelper.sequence([
+                       function() {
+                               $btn.trigger( "vmousedown" );
+                       },
+
+                       function() {
+                               ok( $btn.attr("class").indexOf( "ui-btn-down" ) == -1, "button doesn't have the down class yet" );
+                       },
+
+                       function() {
+                               ok( $btn.attr("class").indexOf( "ui-btn-down" ) >= 0, "button has the down class yet" );
+                               start();
+                       }
+                       // the value is split and some padding is added to make sure that the last check fires
+                       // after the hoverDelay has expired
+               ], $.mobile.buttonMarkup.hoverDelay / 2 + 50 );
+       });
+})(jQuery);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/buttonMarkup/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/buttonMarkup/index.html
new file mode 100644 (file)
index 0000000..efae48d
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="UTF-8" />
+       <title>jQuery Mobile Button Markup Test Suite</title>
+       <!-- meta viewport left out on purpose for test append -->
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script src="../../jquery.testHelper.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [
+                               "jquery.mobile.buttonMarkup",
+                               "jquery.mobile.controlGroup",
+                               "jquery.mobile.fixedToolbar",
+                               "jquery.mobile.forms.button",
+                       ],
+                       [ "jquery.mobile.init" ],
+                       [
+                               "buttonMarkup_core.js"
+                       ]
+               ]);
+       </script>
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css" />
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Button Markup Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div data-nstest-role="page" id="default">
+  <div data-nstest-role="header" id="page-header">
+    <a id="header-button-1" data-role="button" href="index.html">Header button 1</a>
+    <a id="header-button-2" data-role="button" href="index.html">Header button 2</a>
+  </div>
+  <div data-nstest-role="content" id="control-group-content">
+    <input type="submit" data-nstest-role="button" value="Double Enhanced?" id="double-enhanced" />
+    <a href="index.html" data-nstest-role="button" data-nstest-shadow="false">No shadow</a>
+    <a href="index.html" data-nstest-role="button" data-nstest-corners="false">No corners</a>
+    <a href="index.html" data-nstest-role="button" data-nstest-shadow="false" data-nstest-corners="false">No shadow or corners</a>
+    <a href="index.html" data-nstest-role="button" data-nstest-icon="delete" data-nstest-iconshadow="false">No iconshadow</a>
+    <button data-nstest-shadow="false" data-nstest-corners="false" data-nstest-icon="delete" data-nstest-iconshadow="false">None of the above</button>
+    <svg id="embedded-svg" width="120" height="120" viewPort="0 0 120 120" version="1.1" xmlns="http://www.w3.org/2000/svg">
+      <rect x="10" y="10" width="100" height="100"/>
+    </svg>
+
+       <a href="docs-bars.html" data-nstest-role="button" id="full">Fullsize</a>
+       <a href="docs-bars.html" data-nstest-role="button" data-nstest-mini="true" id="mini">Mini</a>
+
+       <div data-nstest-role="controlgroup" data-nstest-mini="true" id="mini-control">
+               <a href="index.html" data-nstest-role="button">Yes</a>
+       </div>
+
+       <a id="iconpos1" data-nstest-role="button" href="index.html" data-nstest-icon="check">Default iconpos</a>
+       <a id="iconpos2" data-nstest-role="button" href="index.html" data-nstest-icon="check" data-nstest-iconpos="left">Left iconpos</a>
+       <a id="iconpos3" data-nstest-role="button" href="index.html" data-nstest-icon="check" data-nstest-iconpos="right">Right iconpos</a>
+       <a id="hover-delay" data-nstest-role="button" href="index.html"></a>
+  </div>
+       <div data-nstest-role="footer" id="control-group-footer" class="ui-bar" data-nstest-position="inline">
+               <div data-nstest-role="controlgroup" data-nstest-type="horizontal">
+                       <a href="index.html" data-nstest-icon="delete">Remove</a>
+                       <a href="index.html" data-nstest-icon="plus">Add</a>
+                       <a href="index.html" data-nstest-icon="arrow-u">Up</a>
+                       <a href="index.html" data-nstest-icon="arrow-d">Down</a>
+               </div>
+       </div>
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/checkboxradio/checkboxradio_core.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/checkboxradio/checkboxradio_core.js
new file mode 100644 (file)
index 0000000..463107b
--- /dev/null
@@ -0,0 +1,273 @@
+/*
+ * mobile checkboxradio unit tests
+ */
+(function($){
+       module( 'jquery.mobile.forms.checkboxradio.js' );
+
+       test( "widget can be disabled and enabled", function(){
+               var input = $( "#checkbox-1" ),
+                       button = input.parent().find( ".ui-btn" );
+
+               input.checkboxradio( "disable" );
+               input.checkboxradio( "enable" );
+               ok( !input.attr( "disabled" ), "start input as enabled" );
+               ok( !input.parent().hasClass( "ui-disabled" ), "no disabled styles" );
+               ok( !input.attr( "checked" ), "not checked before click" );
+               button.trigger( "click" );
+               ok( input.attr( "checked" ), "checked after click" );
+               ok( button.hasClass( "ui-checkbox-on" ), "active styles after click" );
+               button.trigger( "click" );
+
+               input.checkboxradio( "disable" );
+               ok( input.attr( "disabled" ), "input disabled" );
+               ok( input.parent().hasClass( "ui-disabled" ), "disabled styles" );
+               ok( !input.attr( "checked" ), "not checked before click" );
+               button.trigger( "click" );
+               ok( !input.attr( "checked" ), "not checked after click" );
+               ok( !button.hasClass( "ui-checkbox-on" ), "no active styles after click" );
+       });
+
+       test( "clicking a checkbox within a controlgroup does not affect checkboxes with the same name in the same controlgroup", function(){
+               var input1 = $("#checkbox-31");
+               var button1 = input1.parent().find(".ui-btn");
+               var input2 = $("#checkbox-32");
+               var button2 = input2.parent().find(".ui-btn");
+
+               ok(!input1.attr("checked"), "input1 not checked before click");
+               ok(!input2.attr("checked"), "input2 not checked before click");
+
+               button1.trigger("click");
+               ok(input1.attr("checked"), "input1 checked after click on input1");
+               ok(!input2.attr("checked"), "input2 not checked after click on input1");
+
+               button2.trigger("click");
+               ok(input1.attr("checked"), "input1 not changed after click on input2");
+               ok(input2.attr("checked"), "input2 checked after click on input2");
+       });
+
+       asyncTest( "change events fired on checkbox for both check and uncheck", function(){
+               var $checkbox = $( "#checkbox-2" ),
+                       $checkboxLabel = $checkbox.parent().find( ".ui-btn" );
+
+               $checkbox.unbind( "change" );
+
+               expect( 1 );
+
+               $checkbox.one('change', function(){
+                       ok( true, "change fired on click to check the box" );
+               });
+
+               $checkboxLabel.trigger( "click" );
+
+               //test above will be triggered twice, and the start here once
+               $checkbox.one('change', function(){
+                       start();
+               });
+
+               $checkboxLabel.trigger( "click" );
+       });
+
+       asyncTest( "radio button labels should update the active button class to last clicked and clear checked", function(){
+               var $radioBtns = $( '#radio-active-btn-test input' ),
+                       singleActiveAndChecked = function(){
+                               same( $( "#radio-active-btn-test .ui-radio-on" ).length, 1, "there should be only one active button" );
+                               // Use the .checked property, not the checked attribute which is not dynamic
+                               var numChecked = 0;
+                               $( "#radio-active-btn-test input" ).each(function(i, e) {
+                                       if( e.checked ) {
+                                               numChecked++;
+                                       }
+                               });
+                               same( numChecked, 1, "there should be only one checked" );
+                       };
+
+               $.testHelper.sequence([
+                       function(){
+                               $radioBtns.last().siblings( 'label' ).click();
+                       },
+
+                       function(){
+                               ok( $radioBtns.last().prop( 'checked' ), "last input is checked" );
+                               ok( $radioBtns.last().siblings( 'label' ).hasClass( 'ui-radio-on' ),
+                                       "last input label is an active button" );
+
+                               ok( !$radioBtns.first().prop( 'checked' ), "first input label is not active" );
+                               ok( !$radioBtns.first().siblings( 'label' ).hasClass( 'ui-radio-on' ),
+                                       "first input label is not active" );
+
+                               singleActiveAndChecked();
+
+                               $radioBtns.first().siblings( 'label' ).click();
+                       },
+
+                       function(){
+                               ok( $radioBtns.first().prop( 'checked' ));
+                               ok( $radioBtns.first().siblings( 'label' ).hasClass( 'ui-radio-on' ),
+                                       "first input label is an active button" );
+
+                               ok( !$radioBtns.last().prop( 'checked' ));
+                               ok( !$radioBtns.last().siblings( 'label' ).hasClass( 'ui-radio-on' ),
+                                       "last input label is not active" );
+
+                               singleActiveAndChecked();
+
+                               start();
+                       }
+               ], 500);
+
+       });
+
+       test( "checkboxradio controls will create when inside a container that receives a 'create' event", function(){
+               ok( !$("#enhancetest").appendTo(".ui-page-active").find(".ui-checkbox").length, "did not have enhancements applied" );
+               ok( $("#enhancetest").trigger("create").find(".ui-checkbox").length, "enhancements applied" );
+       });
+
+       $.mobile.page.prototype.options.keepNative = "input.should-be-native";
+
+       // not testing the positive case here since's it's obviously tested elsewhere
+       test( "checkboxradio elements in the keepNative set shouldn't be enhanced", function() {
+               ok( !$("input.should-be-native").parent().is("div.ui-checkbox") );
+       });
+
+       test( "Elements with \u201cdata-mini='true'\u201d should have \u201cui-mini\u201d class attached to enhanced element.", function(){
+               var full = document.getElementById("radio-full"),
+                       $fulllbl = $('[for="radio-full"]'),
+                       mini = document.getElementById("radio-mini"),
+                       $minilbl = $('[for="radio-mini"]'),
+                       minictrl = $("#mini-control");
+
+               ok( !full.getAttribute('data-nstest-mini') && !$fulllbl.hasClass('ui-mini'), "Original element does not have data attribute, enhanced version does not recieve .ui-mini.");
+               ok( mini.getAttribute('data-nstest-mini'), "Original element has data attribute, enhanced version recieves .ui-mini." );
+       });
+
+       asyncTest( "clicking the label triggers a click on the element", function() {
+               var clicked = false;
+
+               expect( 1 );
+
+               $( "#checkbox-click-triggered" ).one('click', function() {
+                       clicked = true;
+               });
+
+               $.testHelper.sequence([
+                       function() {
+                               $( "[for='checkbox-click-triggered']" ).click();
+                       },
+
+                       function() {
+                               ok(clicked, "click was fired on input");
+                               start();
+                       }
+               ], 2000);
+       });
+
+       asyncTest( "clicking the label triggers a change on the element", function() {
+               var changed = false;
+
+               expect( 1 );
+
+               $( "#checkbox-change-triggered" ).one('change', function() {
+                       changed = true;
+               });
+
+               $.testHelper.sequence([
+                       function() {
+                               $( "[for='checkbox-change-triggered']" ).click();
+                       },
+
+                       function() {
+                               ok(changed, "change was fired on input");
+                               start();
+                       }
+               ], 2000);
+       });
+
+
+       test( "theme should be inherited", function() {
+               var $inherited = $( "#checkbox-inherit-theme" ),
+                   $explicit = $( "#checkbox-explicit-theme" );
+
+               ok( $inherited.siblings("label").hasClass( "ui-btn-up-a" ), "should inherit from page" );
+               ok( $explicit.siblings("label").hasClass( "ui-btn-up-b" ), "should not inherit" );
+       });
+
+       asyncTest( "form submission should include radio button values", function() {
+               var $form = $( "#radio-form" ), $input = $form.find("input").first();
+
+               $.testHelper.pageSequence([
+                       function() {
+                               $input.click();
+                               $form.submit();
+                       },
+
+                       function( timeout ){
+                               ok( location.search.indexOf("radio1=1") >= 0, "the radio was checked" );
+
+                               // if the changepage in the previous function failed don't go back
+                               if( !timeout ){
+                                       window.history.back();
+                               }
+                       },
+
+                       function(){
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "form submission should include checkbox button values", function() {
+               var $form = $( "#check-form" ), $inputs = $form.find("input");
+
+               $.testHelper.pageSequence([
+                       function() {
+                               $inputs.click();
+                               $form.submit();
+                       },
+
+                       function( timeout ){
+                               ok( location.search.indexOf("checkbox-form=on") >= 0, "the first checkbox was checked" );
+                               ok( location.search.indexOf("checkbox-form-2=on") >= 0, "the second checkbox was checked" );
+                               // if the changepage in the previous function failed don't go back
+                               if( !timeout ){
+                                       window.history.back();
+                               }
+                       },
+
+                       function(){
+                               start();
+                       }
+               ]);
+       });
+
+  test( "nested label checkbox still renders", function() {
+    var $checkbox = $( "#checkbox-nested-label" );
+
+    try {
+      $checkbox.checkboxradio();
+    } catch (e) {
+      ok( false, "checkboxradio exception raised: " + e.toString());
+    }
+
+    ok( $checkbox.parent().hasClass("ui-checkbox"), "enhancement has occured");
+  });
+  
+  test( "nested label (no [for]) checkbox still renders", function() {
+    var $checkbox = $( "#checkbox-nested-label-no-for" );
+
+    try {
+      $checkbox.checkboxradio();
+    } catch (e) {
+      ok( false, "checkboxradio exception raised: " + e.toString());
+    }
+
+    ok( $checkbox.parent().hasClass("ui-checkbox"), "enhancement has occured");
+  });
+  
+       test( "Icon positioning", function() {
+               var bottomicon = $("[for='bottomicon']")
+                       topicon = $("[for='topicon']");
+
+               ok( bottomicon.hasClass("ui-btn-icon-bottom"), "Icon position set on label adds the appropriate class." );
+               ok( topicon.hasClass("ui-btn-icon-top"), "Icon position set on input adds the appropriate class to the label." );
+       });
+})(jQuery);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/checkboxradio/form-result.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/checkboxradio/form-result.html
new file mode 100644 (file)
index 0000000..a963e0e
--- /dev/null
@@ -0,0 +1,2 @@
+<div id="form-result" data-role="page">
+</div>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/checkboxradio/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/checkboxradio/index.html
new file mode 100644 (file)
index 0000000..a6a09af
--- /dev/null
@@ -0,0 +1,202 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="UTF-8" />
+       <title>jQuery Mobile Checkboxradio Test Suite</title>
+
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../../tests/jquery.testHelper.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [
+                               "jquery.mobile.forms.checkboxradio",
+                               "jquery.mobile.page" // Needed by the test suite
+                       ],
+                       [
+                               "checkboxradio_core.js"
+                       ],
+                       [ "jquery.mobile.init" ]
+               ]);
+       </script>
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Checkbockradio Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div data-nstest-role="page" data-nstest-theme="a">
+       <div data-nstest-role="content">
+
+               <div data-nstest-role="fieldcontain">
+                       <fieldset data-nstest-role="controlgroup">
+                               <legend>Agree to the terms:</legend>
+                               <input type="checkbox" name="checkbox-1" id="checkbox-1" class="custom"/>
+                               <label for="checkbox-1">I agree</label>
+                       </fieldset>
+               </div>
+
+               <div data-nstest-role="fieldcontain">
+                       <fieldset data-nstest-role="controlgroup">
+                               <legend>Agree to the terms:</legend>
+                               <input type="checkbox" name="checkbox-2" id="checkbox-2" class="custom"/>
+                               <label for="checkbox-2">I agree</label>
+                       </fieldset>
+               </div>
+
+        <div data-nstest-role="fieldcontain" data-nstest-role="controlgroup">
+            <div>
+                <legend>Agree to the terms 3.1:</legend>
+                <input type="checkbox" name="checkbox-3" id="checkbox-31" class="custom"/>
+                <label for="checkbox-31">I agree 3.1</label>
+            </div>
+            <div>
+                <legend>Agree to the terms 3.2:</legend>
+                <input type="checkbox" name="checkbox-3" id="checkbox-32" class="custom"/>
+                <label for="checkbox-32">I agree 3.2</label>
+            </div>
+        </div>
+       </div>
+
+<div data-role="fieldcontain" id="radio-active-btn-test">
+       <fieldset data-role="controlgroup">
+         <legend>Choose a pet:</legend>
+         <input type="radio" name="radio-pet-active-btn" id="radio-pet-1" value="choice-1" checked="checked"  />
+         <label for="radio-pet-1">Cat</label>
+
+         <input type="radio" name="radio-pet-active-btn" id="radio-pet-2" value="choice-2"  />
+         <label for="radio-pet-2">Dog</label>
+
+         <input type="radio" name="radio-pet-active-btn" id="radio-pet-3" value="choice-3"  />
+         <label for="radio-pet-3">Hamster</label>
+
+         <input type="radio" name="radio-pet-active-btn" id="radio-pet-4" value="choice-4"  />
+         <label for="radio-pet-4">Lizard</label>
+       </fieldset>
+</div>
+
+<div data-role="fieldcontain">
+       <input type="radio" name="radio-full" value="choice-3" id="radio-full" />
+       <label for="radio-full">Hamster</label>
+
+       <input type="radio" name="radio-mini" value="choice-3" id="radio-mini" data-nstest-mini="true" />
+       <label for="radio-mini">Hamster</label>
+
+       <div data-nstest-role="controlgroup" data-nstest-mini="true" id="mini-control">
+               <input type="radio" name="radio-mini" value="choice-3" id="mini-ctrl" />
+               <label for="mini-ctrl">Hamster</label>
+               <input type="radio" name="full-ctrl" value="choice-3" id="full-ctrl" />
+               <label for="full-ctrl">Hamster</label>
+       </div>
+</div>
+
+
+<div data-role="fieldcontain">
+       <fieldset data-role="controlgroup">
+               <legend>Agree to the terms:</legend>
+               <input type="checkbox" name="checkbox-1" id="checkbox-1" class="should-be-native" />
+               <label for="checkbox-1">I agree</label>
+       </fieldset>
+</div>
+
+<div data-role="fieldcontain">
+       <fieldset data-role="controlgroup">
+               <legend>Agree to the terms:</legend>
+               <input type="checkbox" name="checkbox-click-triggered" id="checkbox-click-triggered"/>
+               <label for="checkbox-click-triggered">click triggered</label>
+               <input type="checkbox" name="checkbox-click-triggered" id="checkbox-click-triggered-2"/>
+               <label for="checkbox-click-triggered-2">click triggered</label>
+
+               <input type="radio" name="checkbox-change-triggered" id="checkbox-change-triggered"/>
+               <label for="checkbox-change-triggered">click triggered</label>
+               <input type="radio" name="checkbox-change-triggered" id="checkbox-change-triggered-2"/>
+               <label for="checkbox-change-triggered-2">click triggered</label>
+       </fieldset>
+</div>
+
+<div data-role="fieldcontain">
+       <fieldset data-role="controlgroup">
+               <legend>Agree to the terms:</legend>
+               <input type="checkbox" name="checkbox-inherit-theme" id="checkbox-inherit-theme"/>
+               <label for="checkbox-inherit-theme">foo</label>
+       </fieldset>
+
+       <fieldset data-role="controlgroup">
+               <legend>Agree to the terms:</legend>
+               <input type="checkbox" name="checkbox-explicit-theme" id="checkbox-explicit-theme" data-nstest-theme="b"/>
+               <label for="checkbox-explicit-theme">foo</label>
+       </fieldset>
+</div>
+               
+<div data-nstest-role="fieldcontain">
+       <fieldset data-nstest-role="controlgroup">
+               <input type="checkbox" name="topicon" id="topicon" class="custom" data-nstest-iconpos="top" />
+               <label for="topicon">I agree</label>
+
+               <input type="checkbox" name="bottomicon" id="bottomicon" class="custom" />
+               <label for="bottomicon" data-nstest-iconpos="bottom">I agree</label>
+       </fieldset>
+</div>
+
+<form id="radio-form" method="get" action="form-result.html">
+       <fieldset data-role="controlgroup" data-type="horizontal">
+               <legend>Check one:</legend>
+               <input type="radio" id="radio1" name="radio1" value="1" />
+               <label for="radio1">Radio1</label>
+       </fieldset>
+</form>
+
+
+<form id="check-form" method="get" action="form-result.html">
+       <div data-role="fieldcontain">
+               <fieldset data-role="controlgroup" data-type="horizontal">
+                       <legend>Font styling:</legend>
+                       <input type="checkbox" name="checkbox-form" id="checkbox-form" class="custom" />
+                       <label for="checkbox-form">b</label>
+
+                       <input type="checkbox" name="checkbox-form-2" id="checkbox-form-2" class="custom" />
+                       <label for="checkbox-form-2"><em>i</em></label>
+               </fieldset>
+       </div>
+</form>
+
+</div>
+
+<div id="enhancetest">
+       <input type="checkbox" name="checkbox-332" id="checkbox-332" class="custom"/>
+       <label for="checkbox-332">I agree 3.2</label>
+</div>
+
+<div id="exception-test">
+       <form>
+               <input type="checkbox" name="checkbox-exception" id="checkbox-exception" class="custom"/>
+       </form>
+</div>
+
+<div id="nested-label-test">
+       <form>
+               <label for="checkbox-nested-label">
+                       <input type="checkbox" name="checkbox-nested-label" id="checkbox-nested-label" class="custom"/>
+               </label>
+       </form>
+</div>
+
+<div id="nested-label-no-for-test">
+  <form>
+    <label>
+      <input type="checkbox" name="checkbox-nested-label-no-for" id="checkbox-nested-label-no-for" class="custom"/>
+    </label>
+  </form>
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/collapsible/collapsible_core.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/collapsible/collapsible_core.js
new file mode 100644 (file)
index 0000000..b8c222f
--- /dev/null
@@ -0,0 +1,216 @@
+/*
+ * mobile listview unit tests
+ */
+
+// TODO split out into seperate test files
+(function( $ ){
+       module( "Collapsible section", {});
+
+       asyncTest( "The page should enhanced correctly", function(){
+               $.testHelper.pageSequence([
+                       function(){
+                               $.testHelper.openPage( "#basic-collapsible-test" );
+                       },
+
+                       function() {
+                               var $page = $( "#basic-collapsible-test" );
+                               ok($page.find( ".ui-content >:eq(0)" ).hasClass( "ui-collapsible" ), ".ui-collapsible class added to collapsible elements" );
+                               ok($page.find( ".ui-content >:eq(0) >:header" ).hasClass( "ui-collapsible-heading" ), ".ui-collapsible-heading class added to collapsible heading" );
+                               ok($page.find( ".ui-content >:eq(0) > div" ).hasClass( "ui-collapsible-content" ), ".ui-collapsible-content class added to collapsible content" );
+                               ok($page.find( ".ui-content >:eq(0)" ).hasClass( "ui-collapsible-collapsed" ), ".ui-collapsible-collapsed added to collapsed elements" );
+                               ok(!$page.find( ".ui-content >:eq(1)" ).hasClass( "ui-collapsible-collapsed" ), ".ui-collapsible-collapsed not added to expanded elements" );
+                               ok($page.find( ".ui-collapsible.ui-collapsible-collapsed" ).find( ".ui-collapsible-heading-toggle > .ui-btn-inner" ).hasClass( "ui-corner-top ui-corner-bottom" ), "Collapsible header button should have class ui-corner-all" );
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "Expand/Collapse", function(){
+               $.testHelper.pageSequence([
+                       function(){
+                               $.testHelper.openPage( "#basic-collapsible-test" );
+                       },
+
+                       function() {
+                               ok($( "#basic-collapsible-test .ui-collapsible" ).eq(0).hasClass( "ui-collapsible-collapsed" ), "First collapsible should be collapsed");
+                               $( "#basic-collapsible-test .ui-collapsible-heading-toggle" ).eq(0).click();
+                               ok(!$( "#basic-collapsible-test .ui-collapsible" ).eq(0).hasClass( "ui-collapsible-collapsed" ), "First collapsible should be expanded after click");
+                               $( "#basic-collapsible-test .ui-collapsible-heading-toggle" ).eq(0).click();
+                               ok($( "#basic-collapsible-test .ui-collapsible" ).eq(0).hasClass( "ui-collapsible-collapsed" ), "First collapsible should be collapsed");
+                               start();
+                       }
+               ]);
+       });
+
+       module( "Collapsible set", {});
+
+       asyncTest( "The page should enhanced correctly", function(){
+               $.testHelper.pageSequence([
+                       function(){
+                               $.testHelper.openPage( "#basic-collapsible-set-test" );
+                       },
+
+                       function() {
+                               var $page = $( "#basic-collapsible-set-test" );
+
+                               ok($page.find( ".ui-content >:eq(0)" ).hasClass( "ui-collapsible-set" ), ".ui-collapsible-set class added to collapsible set" );
+                               ok($page.find( ".ui-content >:eq(0) > div" ).hasClass( "ui-collapsible" ), ".ui-collapsible class added to collapsible elements" );
+                               $page.find( ".ui-collapsible-set" ).each(function() {
+                                       var $this = $( this );
+                                       ok($this.find( ".ui-collapsible" ).first().find( ".ui-collapsible-heading-toggle > .ui-btn-inner" ).hasClass( "ui-corner-top" ), "First collapsible header button should have class ui-corner-top" );
+                                       ok($this.find( ".ui-collapsible" ).last().find( ".ui-collapsible-heading-toggle > .ui-btn-inner" ).hasClass( "ui-corner-bottom" ), "Last collapsible header button should have class ui-corner-bottom" );
+                               });
+
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "Collapsible set with only one collapsible", function() {
+               $.testHelper.pageSequence([
+                       function(){
+                               $.testHelper.openPage( "#collapsible-set-with-lonely-collapsible-test" );
+                       },
+
+                       function() {
+                               var $page = $( "#collapsible-set-with-lonely-collapsible-test" );
+                               $page.find( ".ui-collapsible-set" ).each(function() {
+                                       var $this = $( this );
+                                       ok($this.find( ".ui-collapsible" ).first().find( ".ui-collapsible-heading-toggle > .ui-btn-inner" ).hasClass( "ui-corner-top" ), "First collapsible header button should have class ui-corner-top" );
+                                       ok($this.find( ".ui-collapsible" ).last().find( ".ui-collapsible-heading-toggle > .ui-btn-inner" ).hasClass( "ui-corner-bottom" ), "Last collapsible header button should have class ui-corner-bottom" );
+                               });
+
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "Section expanded by default", function(){
+               $.testHelper.pageSequence([
+                       function(){
+                               $.testHelper.openPage( "#basic-collapsible-set-test" );
+                       },
+
+                       function() {
+                               equals($( "#basic-collapsible-set-test .ui-content >:eq(0) .ui-collapsible-collapsed" ).length, 2, "There should be 2 section collapsed" );
+                               ok(!$( "#basic-collapsible-set-test .ui-content >:eq(0) >:eq(1)" ).hasClass( "ui-collapsible-collapsed" ), "Section B should be expanded" );
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "Expand/Collapse", function(){
+               $.testHelper.pageSequence([
+                       function(){
+                               $.testHelper.openPage( "#basic-collapsible-set-test" );
+                       },
+
+                       function() {
+                               ok($( "#basic-collapsible-set-test .ui-collapsible" ).eq(0).hasClass( "ui-collapsible-collapsed" ), "First collapsible should be collapsed");
+                               $( "#basic-collapsible-set-test .ui-collapsible-heading-toggle" ).eq(0).click();
+                               ok(!$( "#basic-collapsible-set-test .ui-collapsible" ).eq(0).hasClass( "ui-collapsible-collapsed" ), "First collapsible should be expanded after click");
+                               $( "#basic-collapsible-set-test .ui-collapsible-heading-toggle" ).eq(0).click();
+                               ok($( "#basic-collapsible-set-test .ui-collapsible" ).hasClass( "ui-collapsible-collapsed" ), "All collapsible should be collapsed");
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "Collapsible Set with dynamic content", function(){
+               $.testHelper.pageSequence([
+                       function(){
+                               $.testHelper.openPage( "#collapsible-set-with-dynamic-content" );
+                       },
+
+                       function() {
+                               var set = $( ".ui-page-active" ).find( ".ui-collapsible-set" );
+                               for ( var i = 0; i < 3; i++ ) {
+                                       $( '<div data-'+ $.mobile.ns +'role="collapsible"><h3>Collapsible Item ' + i + '</h3></div>' ).appendTo( set );
+                               }
+                               set.collapsibleset( "refresh" );
+                               equal( set.find( ".ui-collapsible" ).length, 3, "The 3 collapsibles should be enhanced" );
+                               ok( set.find( ".ui-collapsible" ).eq( 0 ).find( "a" ).hasClass( "ui-corner-top" ), "The 1st collapsible should have top corners" );
+                               ok( !set.find( ".ui-collapsible" ).eq( 0 ).find( "a" ).hasClass( "ui-corner-bottom" ), "The 1st collapsible should NOT have bottom corners" );
+                               ok( !set.find( ".ui-collapsible" ).eq( 1 ).find( "a" ).hasClass( "ui-corner-top" ), "The 2nd collapsible should NOT have top corners" );
+                               ok( !set.find( ".ui-collapsible" ).eq( 1 ).find( "a" ).hasClass( "ui-corner-bottom" ), "The 2nd collapsible should NOT have bottom corners" );
+                               ok( set.find( ".ui-collapsible" ).eq( 2 ).find( "a" ).hasClass( "ui-corner-bottom" ), "The 3rd collapsible should have bottom corners" );
+                               ok( !set.find( ".ui-collapsible" ).eq( 2 ).find( "a" ).hasClass( "ui-corner-top" ), "The 3rd collapsible should NOT have top corners" );
+                               start();
+                       }
+               ]);
+       });
+
+  asyncTest( "Collapsible Set with static and dynamic content", function(){
+               $.testHelper.pageSequence([
+                       function(){
+                               $.testHelper.openPage( "#collapsible-set-with-static-and-dynamic-content" );
+                       },
+
+                       function() {
+                               var set = $( ".ui-page-active" ).find( ".ui-collapsible-set" );
+                               for ( var i = 0; i < 2; i++ ) {
+                                       $( '<div data-'+ $.mobile.ns +'role="collapsible"><h3>Collapsible Item ' + i + '</h3></div>' ).appendTo( set );
+                               }
+                               set.collapsibleset( "refresh" );
+                               equal( set.find( ".ui-collapsible" ).length, 3, "The 3 collapsibles should be enhanced" );
+                               ok( set.find( ".ui-collapsible" ).eq( 0 ).find( "a" ).hasClass( "ui-corner-top" ), "The 1st collapsible should have top corners" );
+                               ok( !set.find( ".ui-collapsible" ).eq( 0 ).find( "a" ).hasClass( "ui-corner-bottom" ), "The 1st collapsible should NOT have bottom corners" );
+                               ok( !set.find( ".ui-collapsible" ).eq( 1 ).find( "a" ).hasClass( "ui-corner-top" ), "The 2nd collapsible should NOT have top corners" );
+                               ok( !set.find( ".ui-collapsible" ).eq( 1 ).find( "a" ).hasClass( "ui-corner-bottom" ), "The 2nd collapsible should NOT have bottom corners" );
+                               ok( set.find( ".ui-collapsible" ).eq( 2 ).find( "a" ).hasClass( "ui-corner-bottom" ), "The 3rd collapsible should have bottom corners" );
+                               ok( !set.find( ".ui-collapsible" ).eq( 2 ).find( "a" ).hasClass( "ui-corner-top" ), "The 3rd collapsible should NOT have top corners" );
+                               start();
+                       }
+               ]);
+       });
+
+       module( "Theming", {});
+
+       asyncTest( "Collapsible", 6, function(){
+               $.testHelper.pageSequence([
+                       function(){
+                               $.testHelper.openPage( "#collapsible-with-theming" );
+                       },
+
+                       function() {
+                               var collapsibles = $.mobile.activePage.find( ".ui-collapsible" );
+                               ok( collapsibles.eq(0).find( ".ui-collapsible-heading-toggle" ).hasClass( "ui-btn-up-a" ), "Heading of first collapsible should have class ui-btn-up-a");
+                               ok( !collapsibles.eq(0).find( ".ui-collapsible-content" ).hasClass( "ui-btn-up-a" ), "Content of first collapsible should NOT have class ui-btn-up-a");
+                               ok( collapsibles.eq(1).find( ".ui-collapsible-heading-toggle" ).hasClass( "ui-btn-up-b" ), "Heading of second collapsible should have class ui-btn-up-b");
+                               ok( collapsibles.eq(1).find( ".ui-collapsible-content" ).hasClass( "ui-body-b" ), "Content of second collapsible should have class ui-btn-up-b");
+                               ok( collapsibles.eq(2).find( ".ui-collapsible-heading-toggle" ).hasClass( "ui-btn-up-c" ), "Heading of third collapsible should have class ui-btn-up-c");
+                               ok( collapsibles.eq(2).find( ".ui-collapsible-content" ).hasClass( "ui-body-c" ), "Content of third collapsible should have class ui-btn-up-c");
+                               start();
+                       }
+               ]);
+       });
+
+
+       asyncTest( "Collapsible Set", function(){
+               $.testHelper.pageSequence([
+                       function(){
+                               $.testHelper.openPage( "#collapsible-set-with-theming" );
+                       },
+
+                       function() {
+                               var collapsibles = $.mobile.activePage.find( ".ui-collapsible" );
+                               ok( collapsibles.eq(0).find( ".ui-collapsible-heading-toggle" ).hasClass( "ui-btn-up-a" ), "Heading of first collapsible should have class ui-btn-up-a");
+                               ok( !collapsibles.eq(0).find( ".ui-collapsible-content" ).is( ".ui-body-a,.ui-body-b,.ui-body-c" ), "Content of first collapsible should NOT have class ui-btn-up-[a,b,c]");
+                               ok( collapsibles.eq(0).find( ".ui-collapsible-content" ).hasClass( "ui-body-d" ), "Content of first collapsible should NOT have class ui-btn-up-d");
+                               ok( collapsibles.eq(1).find( ".ui-collapsible-heading-toggle" ).hasClass( "ui-btn-up-b" ), "Heading of second collapsible should have class ui-btn-up-b");
+                               ok( !collapsibles.eq(1).find( ".ui-collapsible-content" ).is( ".ui-body-a,.ui-body-c,.ui-body-d" ), "Content of second collapsible should NOT have class ui-btn-up-[a,c,d]");
+                               ok( collapsibles.eq(1).find( ".ui-collapsible-content" ).hasClass( "ui-body-b" ), "Content of second collapsible should have class ui-btn-up-b");
+                               ok( collapsibles.eq(2).find( ".ui-collapsible-heading-toggle" ).hasClass( "ui-btn-up-d" ), "Heading of third collapsible should have class ui-btn-up-d");
+                               ok( !collapsibles.eq(2).find( ".ui-collapsible-content" ).is( ".ui-body-a,.ui-body-b,.ui-body-c" ), "Content of third collapsible should NOT have class ui-btn-up-[a,b,c]");
+                               ok( collapsibles.eq(2).find( ".ui-collapsible-content" ).hasClass( "ui-body-d" ), "Content of third collapsible should have class ui-btn-up-d");
+                               ok( !collapsibles.eq(2).find( ".ui-collapsible-content" ).hasClass( "ui-collapsible-content-collapsed" ), "Content of third collapsible should NOT have class ui-collapsible-content-collapsed");
+                               ok( collapsibles.eq(3).find( ".ui-collapsible-heading-toggle" ).hasClass( "ui-btn-up-d" ), "Heading of fourth collapsible should have class ui-btn-up-d");
+                               ok( !collapsibles.eq(3).find( ".ui-collapsible-content" ).is( ".ui-body-a,.ui-body-b,.ui-body-c" ), "Content of fourth collapsible should NOT have class ui-btn-up-[a,b,c]");
+                               ok( collapsibles.eq(3).find( ".ui-collapsible-content" ).hasClass( "ui-body-d" ), "Content of fourth collapsible should have class ui-btn-up-d");
+                               start();
+                       }
+               ]);
+       });
+
+
+})( jQuery );
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/collapsible/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/collapsible/index.html
new file mode 100644 (file)
index 0000000..cf42f4c
--- /dev/null
@@ -0,0 +1,203 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile Collapsible Integration Test</title>
+
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../jquery.testHelper.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [
+                               "jquery.mobile.collapsible",
+                               "jquery.mobile.collapsibleSet",
+                               "jquery.mobile.page.sections"
+                       ],
+                       [ "jquery.mobile.init" ],
+                       [
+                               "collapsible_core.js"
+                       ]
+               ]);
+       </script>
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css" />
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Collapsible Integration Test</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div data-nstest-role="page" id='basic-collapsible-test'>
+       <div data-nstest-role="header">
+               <h1>Basic collapsible</h1>
+       </div>
+       <div data-nstest-role="content">
+               <div data-nstest-role="collapsible">
+                       <h3>Section A</h3>
+
+                       <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
+                               have the "collapsed" state; you need to expand the header to see me.</p>
+
+               </div>
+               <div data-nstest-role="collapsible" data-nstest-collapsed="false">
+                       <h3>Section B</h3>
+
+                       <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
+                               have the "collapsed" state; you need to expand the header to see me.</p>
+
+               </div>
+       </div>
+</div>
+
+<div data-nstest-role="page" id='basic-collapsible-set-test'>
+       <div data-nstest-role="header">
+               <h1>Basic collapsible</h1>
+       </div>
+       <div data-nstest-role="content">
+               <div data-nstest-role="collapsible-set">
+                       <div data-nstest-role="collapsible">
+                               <h3>Section A</h3>
+
+                               <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
+                                       have the "collapsed" state; you need to expand the header to see me.</p>
+
+                       </div>
+                       <div data-nstest-role="collapsible" data-nstest-collapsed="false">
+                               <h3>Section B</h3>
+
+                               <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
+                                       have the "collapsed" state; you need to expand the header to see me.</p>
+
+                       </div>
+                       <div data-nstest-role="collapsible">
+                               <h3>Section C</h3>
+
+                               <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
+                                       have the "collapsed" state; you need to expand the header to see me.</p>
+
+                       </div>
+               </div>
+       </div>
+</div>
+
+<div data-nstest-role="page" id='collapsible-set-with-lonely-collapsible-test'>
+       <div data-nstest-role="header">
+               <h1>Basic collapsible</h1>
+       </div>
+       <div data-nstest-role="content">
+               <div data-nstest-role="collapsible-set">
+                       <div data-nstest-role="collapsible" >
+                               <h3>Section D</h3>
+
+                               <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
+                                       have the "collapsed" state; you need to expand the header to see me.</p>
+                       </div>
+               </div>
+
+               <div data-nstest-role="collapsible" >
+                       <h3>Section E</h3>
+
+                       <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
+                               have the "collapsed" state; you need to expand the header to see me.</p>
+               </div>
+       </div>
+</div>
+
+<div data-nstest-role="page" id='collapsible-with-theming'>
+       <div data-nstest-role="header">
+               <h1>Themed collapsibles</h1>
+       </div>
+       <div data-nstest-role="content">
+               <div data-nstest-role="collapsible" data-nstest-theme="a">
+                       <h3>Section A</h3>
+
+                       <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
+                               have the "collapsed" state; you need to expand the header to see me.</p>
+               </div>
+               <div data-nstest-role="collapsible" data-nstest-theme="b" data-nstest-content-theme="b">
+                       <h3>Section B</h3>
+
+                       <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
+                               have the "collapsed" state; you need to expand the header to see me.</p>
+               </div>
+               <div data-nstest-role="collapsible" data-nstest-theme="c" data-nstest-content-theme="c" data-nstest-collapsed="false">
+                       <h3>Section B</h3>
+
+                       <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
+                               have the "collapsed" state; you need to expand the header to see me.</p>
+               </div>
+
+       </div>
+</div>
+
+<div data-nstest-role="page" id='collapsible-set-with-theming'>
+       <div data-nstest-role="header">
+               <h1>Themed collapsibles</h1>
+       </div>
+       <div data-nstest-role="content">
+               <div data-nstest-role="collapsible-set" data-nstest-theme="d" data-nstest-content-theme="d">
+                       <div data-nstest-role="collapsible" data-nstest-theme="a">
+                               <h3>Section A</h3>
+
+                               <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
+                                       have the "collapsed" state; you need to expand the header to see me.</p>
+                       </div>
+                       <div data-nstest-role="collapsible" data-nstest-theme="b" data-nstest-content-theme="b">
+                               <h3>Section B</h3>
+
+                               <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
+                                       have the "collapsed" state; you need to expand the header to see me.</p>
+                       </div>
+                       <div data-nstest-role="collapsible" data-nstest-collapsed="false">
+                               <h3>Section C</h3>
+
+                               <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
+                                       have the "collapsed" state; you need to expand the header to see me.</p>
+                       </div>
+                       <div data-nstest-role="collapsible">
+                               <h3>Section D</h3>
+
+                               <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
+                                       have the "collapsed" state; you need to expand the header to see me.</p>
+                       </div>
+               </div>
+
+       </div>
+</div>
+
+<div data-nstest-role="page" id='collapsible-set-with-dynamic-content'>
+       <div data-nstest-role="header">
+               <h1>Collapsible Set with dynamic content</h1>
+       </div>
+       <div data-nstest-role="content">
+               <div data-nstest-role="collapsible-set"></div>
+       </div>
+</div>
+
+<div data-nstest-role="page" id='collapsible-set-with-static-and-dynamic-content'>
+       <div data-nstest-role="header">
+               <h1>Collapsible Set with dynamic content</h1>
+       </div>
+       <div data-nstest-role="content">
+               <div data-nstest-role="collapsible-set">
+      <div data-nstest-role="collapsible">
+        <h3>Section A</h3>
+
+        <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
+          have the "collapsed" state; you need to expand the header to see me.</p>
+      </div>
+               </div>
+       </div>
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/controlgroup/controlgroup_core.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/controlgroup/controlgroup_core.js
new file mode 100644 (file)
index 0000000..eaf97fc
--- /dev/null
@@ -0,0 +1,147 @@
+/*
+ * mobile checkboxradio unit tests
+ */
+(function($){
+       module( 'vertical controlgroup, no refresh' , {
+               setup: function() {
+                       this.vcontrolgroup = $( "#vertical-controlgroup" );
+               }
+       });
+
+       test( "vertical controlgroup classes", function() {
+               var buttons = this.vcontrolgroup.find( ".ui-btn" ),
+                       middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
+                       length = buttons.length;
+
+               ok( !buttons.hasClass( "ui-btn-corner-all" ), "no button should have class 'ui-btn-corner-all'");
+               ok( buttons.first().hasClass( "ui-corner-top" ), "first button should have class 'ui-corner-top'" );
+               ok( !middlebuttons.hasClass( "ui-corner-top" ), "middle buttons should not have class 'ui-corner-top'" );
+               ok( !middlebuttons.hasClass( "ui-corner-bottom" ), "middle buttons should not have class 'ui-corner-bottom'" );
+               ok( buttons.last().hasClass( "ui-corner-bottom"), "last button should have class 'ui-corner-bottom'" );
+       });
+
+       module( 'vertical controlgroup, refresh', {
+               setup: function() {
+                       this.vcontrolgroup = $( "#vertical-controlgroup" );
+                       this.vcontrolgroup.find( ".ui-btn" ).show();
+                       this.vcontrolgroup.controlgroup();
+               }
+       });
+
+       test( "vertical controlgroup after first button was hidden", function() {
+               //https://github.com/jquery/jquery-mobile/issues/1929
+
+               //We hide the first button and refresh
+               this.vcontrolgroup.find( ".ui-btn" ).first().hide();
+               this.vcontrolgroup.controlgroup();
+
+               var buttons = this.vcontrolgroup.find( ".ui-btn" ).filter( ":visible" ),
+                       middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
+                       length = buttons.length;
+
+               ok( buttons.first().hasClass( "ui-corner-top" ), "first visible button should have class 'ui-corner-top'" );
+               ok( !middlebuttons.hasClass( "ui-corner-top" ), "middle buttons should not have class 'ui-corner-top'" );
+               ok( !middlebuttons.hasClass( "ui-corner-bottom" ), "middle buttons should not have class 'ui-corner-bottom'" );
+               ok( buttons.last().hasClass( "ui-corner-bottom"), "last visible button should have class 'ui-corner-bottom'" );
+       });
+
+       test( "vertical controlgroup after last button was hidden", function() {
+               //https://github.com/jquery/jquery-mobile/issues/1929
+
+               //We hide the last button and refresh
+               this.vcontrolgroup.find( ".ui-btn" ).last().hide();
+               this.vcontrolgroup.controlgroup();
+
+               var buttons = this.vcontrolgroup.find( ".ui-btn" ).filter( ":visible" ),
+                       middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
+                       length = buttons.length;
+
+               ok( buttons.first().hasClass( "ui-corner-top" ), "first visible button should have class 'ui-corner-top'" );
+               ok( !middlebuttons.hasClass( "ui-corner-top" ), "middle buttons should not have class 'ui-corner-top'" );
+               ok( !middlebuttons.hasClass( "ui-corner-bottom" ), "middle buttons should not have class 'ui-corner-bottom'" );
+               ok( buttons.last().hasClass( "ui-corner-bottom"), "last visible button should have class 'ui-corner-bottom'" );
+       });
+
+       module( 'horizontal controlgroup, no refresh', {
+               setup: function() {
+                       this.hcontrolgroup = $( "#horizontal-controlgroup" );
+               }
+       });
+
+       test( "horizontal controlgroup classes", function() {
+               var buttons = this.hcontrolgroup.find( ".ui-btn" ),
+                       middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
+                       length = buttons.length;
+
+               ok( !buttons.hasClass( "ui-btn-corner-all" ), "no button should have class 'ui-btn-corner-all'");
+               ok( buttons.first().hasClass( "ui-corner-left" ), "first button should have class 'ui-corner-left'" );
+               ok( !middlebuttons.hasClass( "ui-corner-left" ), "middle buttons should not have class 'ui-corner-left'" );
+               ok( !middlebuttons.hasClass( "ui-corner-right" ), "middle buttons should not have class 'ui-corner-right'" );
+               ok( buttons.last().hasClass( "ui-corner-right"), "last button should have class 'ui-corner-right'" );
+       });
+
+       module( 'horizontal controlgroup, refresh', {
+               setup: function() {
+                       this.hcontrolgroup = $( "#horizontal-controlgroup" );
+                       this.hcontrolgroup.find( ".ui-btn" ).show();
+                       this.hcontrolgroup.controlgroup();
+               }
+       });
+
+       test( "horizontal controlgroup after first button was hidden", function() {
+               //We hide the first button and refresh
+               this.hcontrolgroup.find( ".ui-btn" ).first().hide();
+               this.hcontrolgroup.controlgroup();
+
+               var buttons = this.hcontrolgroup.find( ".ui-btn" ).filter( ":visible" ),
+                       middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
+                       length = buttons.length;
+
+               ok( buttons.first().hasClass( "ui-corner-left" ), "first visible button should have class 'ui-corner-left'" );
+               ok( !middlebuttons.hasClass( "ui-corner-left" ), "middle buttons should not have class 'ui-corner-left'" );
+               ok( !middlebuttons.hasClass( "ui-corner-right" ), "middle buttons should not have class 'ui-corner-right'" );
+               ok( buttons.last().hasClass( "ui-corner-right"), "last visible button should have class 'ui-corner-right'" );
+       });
+
+       test( "horizontal controlgroup after last button was hidden", function() {
+               //We hide the last button and refresh
+               this.hcontrolgroup.find( ".ui-btn" ).last().hide();
+               this.hcontrolgroup.controlgroup();
+
+               var buttons = this.hcontrolgroup.find( ".ui-btn" ).filter( ":visible" ),
+                       middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
+                       length = buttons.length;
+
+               ok( buttons.first().hasClass( "ui-corner-left" ), "first visible button should have class 'ui-corner-left'" );
+               ok( !middlebuttons.hasClass( "ui-corner-left" ), "middle buttons should not have class 'ui-corner-left'" );
+               ok( !middlebuttons.hasClass( "ui-corner-right" ), "middle buttons should not have class 'ui-corner-right'" );
+               ok( buttons.last().hasClass( "ui-corner-right"), "last visible button should have class 'ui-corner-right'" );
+       });
+
+
+       test( "controlgroups will create when inside a container that receives a 'create' event", function(){
+               ok( !$("#enhancetest").appendTo(".ui-page-active").find(".ui-controlgroup").length, "did not have enhancements applied" );
+               ok( $("#enhancetest").trigger("create").find(".ui-controlgroup").length, "enhancements applied" );
+       });
+
+       test( "controlgroups in ignored containers aren't enhanced", function() {
+               var $unenhancedFieldSet = $( "#unenhanced-fieldset" ),
+                       $enhancedFieldSet = $( "#enhanced-fieldset" );
+
+               $.mobile.ignoreContentEnabled = true;
+
+               // attempt to enhance the controlgroup
+               $unenhancedFieldSet.parent().trigger("create");
+
+               same( $unenhancedFieldSet.length, 1, "the fieldset test fixtures exist" );
+               ok( !$unenhancedFieldSet.is(".ui-controlgroup"), "there is no control group" );
+
+               // attempt to enhance the controlgroup
+               $enhancedFieldSet.parent().trigger("create");
+
+               same( $enhancedFieldSet.length, 1, "the fieldset test fixtures exist" );
+               ok( $enhancedFieldSet.is(".ui-controlgroup"), "there is a control group" );
+
+               $.mobile.ignoreContentEnabled = false;
+       });
+})(jQuery);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/controlgroup/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/controlgroup/index.html
new file mode 100644 (file)
index 0000000..add115e
--- /dev/null
@@ -0,0 +1,104 @@
+<!DOCTYPE html>
+
+<html lang="en">
+<head>
+       <meta charset="UTF-8" />
+       <title>jQuery Mobile Controlgroup Test Suite</title>
+
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../../tests/jquery.testHelper.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [
+                               "jquery.mobile.forms.checkboxradio",
+                               "jquery.mobile.controlGroup"
+                       ],
+                       [ "jquery.mobile.init" ],
+                       [
+                               "controlgroup_core.js"
+                       ]
+               ]);
+       </script>
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Controlgroup Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div data-nstest-role="page">
+       <div data-nstest-role="content">
+
+               <div data-nstest-role="fieldcontain" id="radio-active-btn-test">
+                       <fieldset data-nstest-role="controlgroup" id="vertical-controlgroup">
+                         <legend>Choose a pet:</legend>
+                         <input type="radio" name="radio-pet-active-btn" id="radio-pet-1" value="choice-1" checked="checked"  />
+                         <label for="radio-pet-1">Cat</label>
+
+                         <input type="radio" name="radio-pet-active-btn" id="radio-pet-2" value="choice-2"  />
+                         <label for="radio-pet-2">Dog</label>
+
+                         <input type="radio" name="radio-pet-active-btn" id="radio-pet-3" value="choice-3"  />
+                         <label for="radio-pet-3">Hamster</label>
+
+                         <input type="radio" name="radio-pet-active-btn" id="radio-pet-4" value="choice-4"  />
+                         <label for="radio-pet-4">Lizard</label>
+                       </fieldset>
+               </div>
+
+               <div data-nstest-role="fieldcontain">
+                       <fieldset data-nstest-role="controlgroup" data-nstest-type="horizontal" id="horizontal-controlgroup">
+                               <legend>Font styling:</legend>
+                               <input type="checkbox" name="checkbox-6" id="checkbox-6" class="custom" />
+                               <label for="checkbox-6">b</label>
+
+                               <input type="checkbox" name="checkbox-7" id="checkbox-7" class="custom" />
+                               <label for="checkbox-7"><em>i</em></label>
+
+                               <input type="checkbox" name="checkbox-8" id="checkbox-8" class="custom" />
+                               <label for="checkbox-8"><em>s</em></label>
+
+                               <input type="checkbox" name="checkbox-9" id="checkbox-9" class="custom" />
+                               <label for="checkbox-9">u</label>
+                       </fieldset>
+               </div>
+
+       </div>
+</div>
+
+<div data-nstest-enhance="false" data-nstest-role="fieldcontain" id="unenhanced-fieldcontain">
+       <fieldset data-nstest-type="horizontal" id="unenhanced-fieldset" data-nstest-role="controlgroup">
+               <input type="checkbox" name="checkbox-10" id="checkbox-10" class="custom" />
+               <label for="checkbox-10">b</label>
+
+               <input type="checkbox" name="checkbox-11" id="checkbox-11" class="custom" />
+               <label for="checkbox-11"><em>i</em></label>
+       </fieldset>
+</div>
+
+<div data-nstest-role="fieldcontain" id="enhanced-fieldcontain">
+       <fieldset data-nstest-type="horizontal" id="enhanced-fieldset" data-nstest-role="controlgroup">
+               <input type="checkbox" name="checkbox-12" id="checkbox-12" class="custom" />
+               <label for="checkbox-12">b</label>
+
+               <input type="checkbox" name="checkbox-13" id="checkbox-13" class="custom" />
+               <label for="checkbox-13"><em>i</em></label>
+       </fieldset>
+</div>
+
+<div data-nstest-role="fieldcontain" id="enhancetest">
+       <fieldset data-nstest-role="controlgroup">
+       </fieldset>
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/core/core.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/core/core.js
new file mode 100644 (file)
index 0000000..1b60562
--- /dev/null
@@ -0,0 +1,190 @@
+/*
+ * mobile core unit tests
+ */
+
+(function($){
+       var libName = "jquery.mobile.core",
+                       setGradeA = function(value, version) {
+                               $.support.mediaquery = value;
+                               $.mobile.browser.ie = version;
+                       },
+                       extendFn = $.extend;
+
+       module(libName, {
+               setup: function(){
+                       // NOTE reset for gradeA tests
+                       $('html').removeClass('ui-mobile');
+
+                       // NOTE reset for pageLoading tests
+                       $('.ui-loader').remove();
+               },
+               teardown: function(){
+                       $.extend = extendFn;
+               }
+       });
+
+       $.testHelper.excludeFileProtocol(function(){
+               asyncTest( "grade A browser either supports media queries or is IE 7+", function(){
+                       setGradeA(false, 6);
+                       $.testHelper.deferredSequence([
+                               function() {
+                                       return $.testHelper.reloadModule(libName);
+                               },
+
+                               function() {
+                                       ok(!$.mobile.gradeA());
+                               },
+
+                               function() {
+                                       setGradeA(true, 8);
+                                       return $.testHelper.reloadModule(libName);
+                               },
+
+                               function() {
+                                       ok($.mobile.gradeA());
+                                       start();
+                               }
+                       ]);
+               });
+       });
+
+       function clearNSNormalizeDictionary()
+       {
+               var dict = $.mobile.nsNormalizeDict;
+               for ( var prop in dict ) {
+                       delete dict[ prop ];
+               }
+       }
+
+       test( "$.mobile.nsNormalize works properly with namespace defined (test default)", function(){
+               // Start with a fresh namespace property cache, just in case
+               // the previous test mucked with namespaces.
+               clearNSNormalizeDictionary();
+
+               equal($.mobile.nsNormalize("foo"), "nstestFoo", "appends ns and initcaps");
+               equal($.mobile.nsNormalize("fooBar"), "nstestFooBar", "leaves capped strings intact");
+               equal($.mobile.nsNormalize("foo-bar"), "nstestFooBar", "changes dashed strings");
+               equal($.mobile.nsNormalize("foo-bar-bak"), "nstestFooBarBak", "changes multiple dashed strings");
+
+               // Reset the namespace property cache for the next test.
+               clearNSNormalizeDictionary();
+       });
+
+       test( "$.mobile.nsNormalize works properly with an empty namespace", function(){
+               var realNs = $.mobile.ns;
+
+               $.mobile.ns = "";
+
+               // Start with a fresh namespace property cache, just in case
+               // the previous test mucked with namespaces.
+               clearNSNormalizeDictionary();
+
+               equal($.mobile.nsNormalize("foo"), "foo", "leaves uncapped and undashed");
+               equal($.mobile.nsNormalize("fooBar"), "fooBar", "leaves capped strings intact");
+               equal($.mobile.nsNormalize("foo-bar"), "fooBar", "changes dashed strings");
+               equal($.mobile.nsNormalize("foo-bar-bak"), "fooBarBak", "changes multiple dashed strings");
+
+               $.mobile.ns = realNs;
+
+               // Reset the namespace property cache for the next test.
+               clearNSNormalizeDictionary();
+       });
+
+       //data tests
+       test( "$.fn.jqmData and $.fn.jqmRemoveData methods are working properly", function(){
+               var data;
+
+               same( $("body").jqmData("foo", true), $("body"), "setting data returns the element" );
+
+               same( $("body").jqmData("foo"), true, "getting data returns the right value" );
+
+               same( $("body").data($.mobile.nsNormalize("foo")), true, "data was set using namespace" );
+
+               same( $("body").jqmData("foo", undefined), true, "getting data still returns the value if there's an undefined second arg" );
+
+               data = $.extend( {}, $("body").data() );
+               delete data[ $.expando ]; //discard the expando for that test
+               same( data , { "nstestFoo": true }, "passing .data() no arguments returns a hash with all set properties" );
+
+               same( $("body").jqmData(), undefined, "passing no arguments returns undefined" );
+
+               same( $("body").jqmData(undefined), undefined, "passing a single undefined argument returns undefined" );
+
+               same( $("body").jqmData(undefined, undefined), undefined, "passing 2 undefined arguments returns undefined" );
+
+               same( $("body").jqmRemoveData("foo"), $("body"), "jqmRemoveData returns the element" );
+
+               same( $("body").jqmData("foo"), undefined, "jqmRemoveData properly removes namespaced data" );
+
+       });
+
+
+       test( "$.jqmData and $.jqmRemoveData methods are working properly", function(){
+               same( $.jqmData(document.body, "foo", true), true, "setting data returns the value" );
+
+               same( $.jqmData(document.body, "foo"), true, "getting data returns the right value" );
+
+               same( $.data(document.body, $.mobile.nsNormalize("foo")), true, "data was set using namespace" );
+
+               same( $.jqmData(document.body, "foo", undefined), true, "getting data still returns the value if there's an undefined second arg" );
+
+               same( $.jqmData(document.body), undefined, "passing no arguments returns undefined" );
+
+               same( $.jqmData(document.body, undefined), undefined, "passing a single undefined argument returns undefined" );
+
+               same( $.jqmData(document.body, undefined, undefined), undefined, "passing 2 undefined arguments returns undefined" );
+
+               same( $.jqmRemoveData(document.body, "foo"), undefined, "jqmRemoveData returns the undefined value" );
+
+               same( $("body").jqmData("foo"), undefined, "jqmRemoveData properly removes namespaced data" );
+
+       });
+
+       test( "addDependents works properly", function() {
+               same( $("#parent").jqmData('dependents'), undefined );
+               $( "#parent" ).addDependents( $("#dependent") );
+               same( $("#parent").jqmData('dependents').length, 1 );
+       });
+
+       test( "removeWithDependents removes the parent element and ", function(){
+               $( "#parent" ).addDependents( $("#dependent") );
+               same($( "#parent, #dependent" ).length, 2);
+               $( "#parent" ).removeWithDependents();
+               same($( "#parent, #dependent" ).length, 0);
+       });
+
+       test( "$.fn.getEncodedText should return the encoded value where $.fn.text doesn't", function() {
+               same( $("#encoded").text(), "foo>");
+               same( $("#encoded").getEncodedText(), "foo&gt;");
+               same( $("#unencoded").getEncodedText(), "var foo;");
+       });
+
+       test( "closestPageData returns the parent's page data", function() {
+               var pageChild = $( "#page-child" );
+
+               $( "#parent-page" ).data( "page", { foo: "bar" } );
+               same( $.mobile.closestPageData( pageChild ).foo, "bar" );
+       });
+
+       test( "closestPageData returns the parent dialog's page data", function() {
+               var dialogChild = $( "#dialog-child" );
+
+               $( "#parent-dialog" ).data( "page", { foo: "bar" } );
+               same( $.mobile.closestPageData(dialogChild).foo, "bar" );
+       });
+
+       test( "test that $.fn.jqmHijackable works", function() {
+               $.mobile.ignoreContentEnabled = true;
+
+               same( $( "#hijacked-link" ).jqmHijackable().length, 1,
+                                       "a link without any association to data-ajax=false should be included");
+
+               same( $( "#unhijacked-link-by-parent" ).jqmHijackable().length, 0,
+                                       "a link with a data-ajax=false parent should be excluded");
+
+               same( $( "#unhijacked-link-by-attr" ).jqmHijackable().length, 0,
+                                       "a link with data-ajax=false should be excluded");
+
+               $.mobile.ignoreContentEnabled = false;
+       });
+})(jQuery);
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/core/core_scroll.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/core/core_scroll.js
new file mode 100644 (file)
index 0000000..d1b8ef0
--- /dev/null
@@ -0,0 +1,63 @@
+/*
+ * mobile core unit tests
+ */
+
+(function($){
+       var libName = "jquery.mobile.core",
+                       scrollTimeout = 20, // TODO expose timing as an attribute
+                       scrollStartEnabledTimeout = 150;
+
+       module(libName, {
+               setup: function(){
+                       $("<div id='scroll-testing' style='height: 1000px'></div>").appendTo("body");
+               },
+
+               teardown: function(){
+                       $("#scroll-testing").remove();
+               }
+       });
+
+       var scrollUp = function( pos ){
+               $(window).scrollTop(1000);
+               ok($(window).scrollTop() > 0, $(window).scrollTop());
+               $.mobile.silentScroll(pos);
+       };
+
+       asyncTest( "silent scroll scrolls the page to the top by default", function(){
+               scrollUp();
+
+               setTimeout(function(){
+                       same($(window).scrollTop(), 0);
+                       start();
+               }, scrollTimeout);
+       });
+
+       asyncTest( "silent scroll scrolls the page to the passed y position", function(){
+               var pos = 10;
+               scrollUp(pos);
+
+               setTimeout(function(){
+                       same($(window).scrollTop(), pos);
+                       start();
+               }, scrollTimeout);
+       });
+
+       test( "silent scroll is async", function(){
+               scrollUp();
+               ok($(window).scrollTop() != 0, "scrolltop position should not be zero");
+               start();
+       });
+
+       asyncTest( "scrolling marks scrollstart as disabled for 150 ms", function(){
+               $.event.special.scrollstart.enabled = true;
+               scrollUp();
+               ok(!$.event.special.scrollstart.enabled);
+
+               setTimeout(function(){
+                       ok($.event.special.scrollstart.enabled);
+                       start();
+               }, scrollStartEnabledTimeout);
+       });
+
+       //TODO test that silentScroll is called on window load
+})(jQuery);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/core/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/core/index.html
new file mode 100644 (file)
index 0000000..4cad369
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile Core Test Suite</title>
+
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../jquery.testHelper.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [
+                               "jquery.mobile.core"
+                       ],
+                       [ "jquery.mobile.init" ],
+                       [
+                               "core.js",
+                               "core_scroll.js"
+                       ]
+               ]);
+       </script>
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css" />
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Core Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div  data-nstest-role="page">
+</div>
+
+<div id="qunit-fixtures">
+  <div id="parent"></div>
+  <div id="dependent"></div>
+  <div id="encoded">foo&gt;</div>
+  <div id="unencoded"><script>var foo;</script></div>
+
+  <div id="parent-page" data-nstest-role="page">
+    <div id="page-child"></div>
+  </div>
+
+  <div id="parent-dialog" data-nstest-role="dialog">
+    <div id="dialog-child"></div>
+  </div>
+</div>
+
+<div id="hijackable">
+       <a href="#" id="hijacked-link"></a>
+       <a href="#" id="unhijacked-link-by-attr" data-nstest-ajax="false"></a>
+</div>
+
+<div id="not-hijackable" data-nstest-ajax="false">
+       <a href="#" id="unhijacked-link-by-parent"></a>
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/degradeInputs/degradeInputs.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/degradeInputs/degradeInputs.js
new file mode 100644 (file)
index 0000000..98659a9
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * degradeInputs unit tests
+ */
+
+(function($){
+       module('jquery.mobile.degradeInputs.js');
+
+       test('keepNative elements should not be degraded', function() {
+               same($('input#not-to-be-degraded').attr("type"), "range");
+       });
+
+       asyncTest('should degrade input type to a different type, as specified in page options', function(){
+               var degradeInputs = $.mobile.page.prototype.options.degradeInputs;
+
+               expect( degradeInputs.length );
+
+               // NOTE the initial page is already enhanced (or expected to be) so we load the dialog to enhance it
+               // and _expect_ that the default page will remain "unreaped". This will break if that assumption changes
+               $.testHelper.pageSequence([
+                       function() {
+                               $.mobile.changePage( "#dialog" );
+                       },
+
+                       function() {
+                               $.each(degradeInputs, function( oldType, newType ) {
+                                       if (newType === false) {
+                                               newType = oldType;
+                                       }
+
+                                       $('#page-test-container').html('<input type="' + oldType + '" />').trigger("create");
+
+                                       same($('#page-test-container input').attr("type"), newType, "type attr on page is: " + newType);
+
+                                       $('#dialog-test-container').html('<input type="' + oldType + '" />').trigger("create");
+
+                                       same($('#dialog-test-container input').attr("type"), newType, "type attr on dialog is: " + newType);
+                               });
+
+                               start();
+                       }
+               ]);
+       });
+})(jQuery);
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/degradeInputs/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/degradeInputs/index.html
new file mode 100644 (file)
index 0000000..45a2fb4
--- /dev/null
@@ -0,0 +1,48 @@
+ <!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile Degrade Inputs Test Suite</title>
+
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../jquery.testHelper.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [ "jquery.mobile.degradeInputs" ],
+                       [ "jquery.mobile.init" ],
+                       [ "degradeInputs.js" ]
+               ]);
+       </script>
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Degrade Inputs Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div id="page" data-nstest-role="page">
+
+       <input id="not-to-be-degraded" type="range" data-nstest-role="nojs" />
+
+       <div id="page-test-container">
+       </div>
+
+</div>
+
+<div id="dialog" data-nstest-role="dialog">
+
+       <div id="dialog-test-container">
+       </div>
+
+</div>
+
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/dialog/dialog_count.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/dialog/dialog_count.js
new file mode 100644 (file)
index 0000000..53a9316
--- /dev/null
@@ -0,0 +1,13 @@
+/*
+ * mobile dialog unit tests
+ */
+(function($) {
+
+       test( "When the page loads, any dialogs in the page should be initialized", function() {
+               expect( 1 );
+
+               ok( $( "#foo-dialog" ).is( ".ui-dialog" ), "When a dialog is the first element in a page, it is created as a dialog widget." );
+       });
+
+       
+})( jQuery );
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/dialog/dialog_events.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/dialog/dialog_events.js
new file mode 100644 (file)
index 0000000..15628ba
--- /dev/null
@@ -0,0 +1,146 @@
+/*
+ * mobile dialog unit tests
+ */
+(function($) {
+       module( "jquery.mobile.dialog.js", {
+               setup: function() {
+                       $.mobile.page.prototype.options.contentTheme = "d";
+               }
+       });
+
+       asyncTest( "dialog hash is added when the dialog is opened and removed when closed", function() {
+               expect( 2 );
+
+               $.testHelper.pageSequence([
+                       function() {
+                               $.mobile.changePage( $( "#mypage" ) );
+                       },
+
+                       function() {
+                               //bring up the dialog
+                               $( "#foo-dialog-link" ).click();
+                       },
+
+                       function() {
+                               var fooDialog = $( "#foo-dialog" );
+
+                               // make sure the dialog came up
+                               ok( /&ui-state=dialog/.test(location.hash), "ui-state=dialog =~ location.hash", "dialog open" );
+
+                               // close the dialog
+                               $( ".ui-dialog" ).dialog( "close" );
+                       },
+
+                       function() {
+                               ok( !/&ui-state=dialog/.test(location.hash), "ui-state=dialog !~ location.hash" );
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "dialog element with no theming", function() {
+               expect(4);
+               
+               $.testHelper.pageSequence([
+                       function() {
+                               $.mobile.changePage( $( "#mypage" ) );
+                       },
+
+                       function() {
+                               //bring up the dialog
+                               $( "#link-a" ).click();
+                       },
+
+                       function() {
+                               var dialog = $( "#dialog-a" );
+
+                               // Assert dialog theme inheritance (issue 1375):
+                               ok( dialog.hasClass( "ui-body-c" ), "Expected explicit theme ui-body-c" );
+                               ok( dialog.find( ":jqmData(role=header)" ).hasClass( "ui-bar-" + $.mobile.page.prototype.options.footerTheme ), "Expected header to inherit from $.mobile.page.prototype.options.headerTheme" );
+                               ok( dialog.find( ":jqmData(role=content)" ).hasClass( "ui-body-" + $.mobile.page.prototype.options.contentTheme ), "Expect content to inherit from $.mobile.page.prototype.options.contentTheme" );
+                               ok( dialog.find( ":jqmData(role=footer)" ).hasClass( "ui-bar-" + $.mobile.page.prototype.options.footerTheme ), "Expected footer to inherit from $.mobile.page.prototype.options.footerTheme" );
+
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "dialog element with data-theme", function() {
+               // Reset fallback theme for content
+               $.mobile.page.prototype.options.contentTheme = null;
+
+               expect(5);
+
+               $.testHelper.pageSequence([
+                       function() {
+                               $.mobile.changePage( $( "#mypage" ) );
+                       },
+
+                       function() {
+                               //bring up the dialog
+                               $( "#link-b" ).click();
+                       },
+
+                       function() {
+                               var dialog = $( "#dialog-b" );
+
+                               // Assert dialog theme inheritance (issue 1375):
+                               ok( dialog.hasClass( "ui-body-e" ), "Expected explicit theme ui-body-e" );
+                               ok( !dialog.hasClass( "ui-overlay-b" ), "Expected no theme ui-overlay-b" );
+                               ok( dialog.find( ":jqmData(role=header)" ).hasClass( "ui-bar-" + $.mobile.page.prototype.options.footerTheme ), "Expected header to inherit from $.mobile.page.prototype.options.headerTheme" );
+                               ok( dialog.find( ":jqmData(role=content)" ).hasClass( "ui-body-e" ), "Expect content to inherit from data-theme" );
+                               ok( dialog.find( ":jqmData(role=footer)" ).hasClass( "ui-bar-" + $.mobile.page.prototype.options.footerTheme ), "Expected footer to inherit from $.mobile.page.prototype.options.footerTheme" );
+
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "dialog element with data-theme & data-overlay-theme", function() {
+               expect(5);
+
+               $.testHelper.pageSequence([
+                       function() {
+                               $.mobile.changePage( $( "#mypage" ) );
+                       },
+
+                       function() {
+                               //bring up the dialog
+                               $( "#link-c" ).click();
+                       },
+
+                       function() {
+                               var dialog = $( "#dialog-c" );
+
+                               // Assert dialog theme inheritance (issue 1375):
+                               ok( dialog.hasClass( "ui-body-e" ), "Expected explicit theme ui-body-e" );
+                               ok( dialog.hasClass( "ui-overlay-b" ), "Expected explicit theme ui-overlay-b" );
+                               ok( dialog.find( ":jqmData(role=header)" ).hasClass( "ui-bar-" + $.mobile.page.prototype.options.footerTheme ), "Expected header to inherit from $.mobile.page.prototype.options.headerTheme" );
+                               ok( dialog.find( ":jqmData(role=content)" ).hasClass( "ui-body-" + $.mobile.page.prototype.options.contentTheme ), "Expect content to inherit from $.mobile.page.prototype.options.contentTheme" );
+                               ok( dialog.find( ":jqmData(role=footer)" ).hasClass( "ui-bar-" + $.mobile.page.prototype.options.footerTheme ), "Expected footer to inherit from $.mobile.page.prototype.options.footerTheme" );
+
+                               start();
+                       }
+               ]);
+       });
+       
+       
+       asyncTest( "page container is updated to dialog overlayTheme at pagebeforeshow", function(){
+               
+               expect( 1 );
+               
+               var pageTheme = "ui-overlay-" + $.mobile.activePage.dialog( "option", "overlayTheme" );
+
+               $.mobile.pageContainer.removeClass( pageTheme );
+               
+               $.mobile.activePage
+                       .bind( "pagebeforeshow", function(){
+                               ok( $.mobile.pageContainer.hasClass( pageTheme ), "Page container has the same theme as the dialog overlayTheme on pagebeforeshow" );
+                               start();
+                       })
+                       .trigger( "pagebeforeshow" );
+
+       } );
+       
+       
+})( jQuery );
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/dialog/index-count.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/dialog/index-count.html
new file mode 100644 (file)
index 0000000..88d7e01
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile Dialog Test Suite</title>
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script>
+               $(document).bind('mobileinit',function(){
+                       // Expect content to inherit this theme when not explicitly set
+                       $.mobile.page.prototype.options.contentTheme = "d";
+               });
+       </script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../jquery.testHelper.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [
+                               "jquery.mobile.dialog",
+                               "jquery.mobile.page",
+                               "jquery.mobile.page.sections"
+                       ],
+                       [ "jquery.mobile.init" ],
+                       [
+                               "dialog_count.js"
+                       ]
+               ]);
+       </script>
+
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Dialog Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div id="qunit-fixture">
+
+<div id="foo-dialog" data-nstest-role="dialog" data-nstest-theme="b">
+       <div  data-nstest-role="header">
+               <h1>Dialog</h1>
+       </div>
+       <div data-nstest-role="content" >
+       
+       </div>
+       <div data-nstest-role="footer">
+               footer
+       </div>
+</div>
+
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/dialog/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/dialog/index.html
new file mode 100644 (file)
index 0000000..50c8f68
--- /dev/null
@@ -0,0 +1,102 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile Dialog Test Suite</title>
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script>
+               $(document).bind('mobileinit',function(){
+                       // Expect content to inherit this theme when not explicitly set
+                       $.mobile.page.prototype.options.contentTheme = "d";
+               });
+       </script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../jquery.testHelper.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [
+                               "jquery.mobile.dialog",
+                               "jquery.mobile.page",
+                               "jquery.mobile.page.sections"
+                       ],
+                       [ "jquery.mobile.init" ],
+                       [
+                               "dialog_events.js"
+                       ]
+               ]);
+       </script>
+
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Dialog Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div id="mypage" data-nstest-role="page" data-nstest-theme="a">
+       <a href="#foo-dialog" id="foo-dialog-link" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog"></a>
+       <a href="#dialog-a" id="link-a" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog">no theme set</a>
+       <a href="#dialog-b" id="link-b" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog">data-theme set</a>
+       <a href="#dialog-c" id="link-c" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog">data-theme & data-nstest-overlay-theme set</a>
+</div>
+
+<div id="foo-dialog" data-nstest-role="dialog" data-nstest-theme="b">
+       <div  data-nstest-role="header" data-nstest-position="inline">
+               <h1>Dialog</h1>
+       </div>
+       <div data-nstest-role="content" >
+               <a href="#" id="internal-link">foo</a>
+       </div>
+       <div data-nstest-role="footer">
+               footer
+       </div>
+</div>
+
+<div data-nstest-role="page" id="dialog-a">
+       <div data-nstest-role="header" data-nstest-position="inline">
+               <h1> No theme set </h1>
+       </div>
+       <div data-nstest-role="content">
+                Some text here....
+       </div>
+       <div data-nstest-role="footer">
+               footer
+       </div>
+</div>
+
+<div data-nstest-role="page" data-nstest-theme="e" id="dialog-b">
+       <div data-nstest-role="header">
+               <h1> data-nstest-theme set </h1>
+       </div>
+       <div data-nstest-role="content">
+                Some text here....
+       </div>
+       <div data-nstest-role="footer">
+               footer
+       </div>
+</div>
+
+<div data-nstest-role="page" id="dialog-c" data-nstest-overlay-theme="b" data-nstest-theme="e">
+       <div data-nstest-role="header">
+               <h1> data-nstest-theme & data-nstest-overlay-theme set </h1>
+       </div>
+       <div data-nstest-role="content">
+                Some text here....
+       </div>
+       <div data-nstest-role="footer">
+               footer
+       </div>
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/event/event_core.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/event/event_core.js
new file mode 100644 (file)
index 0000000..23e6f59
--- /dev/null
@@ -0,0 +1,551 @@
+/*
+ * mobile event unit tests
+ */
+
+(function($){
+       var libName = "jquery.mobile.event.js",
+                       absFn = Math.abs,
+                       originalEventFn = $.Event.prototype.originalEvent,
+                       preventDefaultFn = $.Event.prototype.preventDefault,
+                       events = ("touchstart touchmove touchend orientationchange tap taphold " +
+                                                               "swipe swipeleft swiperight scrollstart scrollstop").split( " " );
+
+       module(libName, {
+               setup: function(){
+
+                       // ensure bindings are removed
+                       $.each(events + "vmouseup vmousedown".split(" "), function(i, name){
+                               $("#qunit-fixture").unbind();
+                       });
+
+                       //NOTE unmock
+                       Math.abs = absFn;
+                       $.Event.prototype.originalEvent = originalEventFn;
+                       $.Event.prototype.preventDefault = preventDefaultFn;
+
+                       // make sure the event objects respond to touches to simulate
+                       // the collections existence in non touch enabled test browsers
+                       $.Event.prototype.touches = [{pageX: 1, pageY: 1 }];
+
+                       $($.mobile.pageContainer).unbind( "throttledresize" );
+               }
+       });
+
+       $.testHelper.excludeFileProtocol(function(){
+               test( "new events defined on the jquery object", function(){
+                       $.each(events, function( i, name ) {
+                               delete $.fn[name];
+                               same($.fn[name], undefined);
+                       });
+
+                       $.testHelper.reloadLib(libName);
+
+                       $.each(events, function( i, name ) {
+                               ok($.fn[name] !== undefined, name + " is not undefined");
+                       });
+               });
+       });
+
+       asyncTest( "defined event functions bind a closure when passed", function(){
+               expect( 1 );
+
+               $('#qunit-fixture').bind(events[0], function(){
+                       ok(true, "event fired");
+                       start();
+               });
+
+               $('#qunit-fixture').trigger(events[0]);
+       });
+
+       asyncTest( "defined event functions trigger the event with no arguments", function(){
+               expect( 1 );
+
+               $('#qunit-fixture').bind('touchstart', function(){
+                       ok(true, "event fired");
+                       start();
+               });
+
+               $('#qunit-fixture').touchstart();
+       });
+
+       test( "defining event functions sets the attrFn to true", function(){
+               $.each(events, function(i, name){
+                       ok($.attrFn[name], "attribute function is true");
+               });
+       });
+
+       test( "scrollstart enabled defaults to true", function(){
+               $.event.special.scrollstart.enabled = false;
+               $.testHelper.reloadLib(libName);
+               ok($.event.special.scrollstart.enabled, "scrollstart enabled");
+       });
+
+       asyncTest( "scrollstart setup binds a function that returns when its disabled", function(){
+               expect( 1 );
+               $.event.special.scrollstart.enabled = false;
+
+               $( "#qunit-fixture" ).bind("scrollstart", function(){
+                       ok(false, "scrollstart fired");
+               });
+
+               $( "#qunit-fixture" ).bind("touchmove", function(){
+                       ok(true, "touchmove fired");
+                       start();
+               });
+
+               $( "#qunit-fixture" ).trigger("touchmove");
+       });
+
+       asyncTest( "scrollstart setup binds a function that triggers scroll start when enabled", function(){
+               $.event.special.scrollstart.enabled = true;
+
+               $( "#qunit-fixture" ).bind("scrollstart", function(){
+                       ok(true, "scrollstart fired");
+                       start();
+               });
+
+               $( "#qunit-fixture" ).trigger("touchmove");
+       });
+
+       asyncTest( "scrollstart setup binds a function that triggers scroll stop after 50 ms", function(){
+               var triggered = false;
+               $.event.special.scrollstart.enabled = true;
+
+               $( "#qunit-fixture" ).bind("scrollstop", function(){
+                       triggered = true;
+               });
+
+               ok(!triggered, "not triggered");
+
+               $( "#qunit-fixture" ).trigger("touchmove");
+
+               setTimeout(function(){
+                       ok(triggered, "triggered");
+                       start();
+               }, 50);
+       });
+
+       var forceTouchSupport = function(){
+               $.support.touch = true;
+               $.testHelper.reloadLib(libName);
+
+               //mock originalEvent information
+               $.Event.prototype.originalEvent = {
+                       touches: [{ 'pageX' : 0 }, { 'pageY' : 0 }]
+               };
+       };
+
+       asyncTest( "long press fires tap hold after 750 ms", function(){
+               var taphold = false,
+                       target;
+
+               forceTouchSupport();
+
+               $( "#qunit-fixture" ).bind("taphold", function( e ){
+                       taphold = true;
+                       target = e.target;
+               });
+
+               $( "#qunit-fixture" ).trigger("vmousedown");
+
+               setTimeout(function(){
+                       ok( taphold );
+                       equal( target, $( "#qunit-fixture" ).get( 0 ), "taphold target should be #qunit-fixture" );
+                       start();
+               }, 751);
+       });
+
+       //NOTE used to simulate movement when checked
+       //TODO find a better way ...
+       var mockAbs = function(value){
+               Math.abs = function(){
+                       return value;
+               };
+       };
+
+       asyncTest( "move prevents taphold", function(){
+               expect( 1 );
+               var taphold = false;
+
+               forceTouchSupport();
+               mockAbs(100);
+
+               //NOTE record taphold event
+               $( "#qunit-fixture" ).bind("taphold", function(){
+                       ok(false, "taphold fired");
+                       taphold = true;
+               });
+
+               //NOTE start the touch events
+               $( "#qunit-fixture" ).trigger("vmousedown");
+
+               //NOTE fire touchmove to push back taphold
+               setTimeout(function(){
+                       $( "#qunit-fixture" ).trigger("vmousecancel");
+               }, 100);
+
+               //NOTE verify that the taphold hasn't been fired
+               //               with the normal timing
+               setTimeout(function(){
+                       ok(!taphold, "taphold not fired");
+                       start();
+               }, 751);
+       });
+
+       asyncTest( "tap event fired without movement", function(){
+               expect( 1 );
+               var tap = false,
+                               checkTap = function(){
+                                       ok(true, "tap fired");
+                               };
+
+               forceTouchSupport();
+
+               //NOTE record the tap event
+               $( "#qunit-fixture" ).bind("tap", checkTap);
+
+               $( "#qunit-fixture" ).trigger("vmousedown");
+               $( "#qunit-fixture" ).trigger("vmouseup");
+               $( "#qunit-fixture" ).trigger("vclick");
+
+               setTimeout(function(){
+                       start();
+               }, 400);
+       });
+
+       asyncTest( "tap event not fired when there is movement", function(){
+               expect( 1 );
+               var tap = false;
+               forceTouchSupport();
+
+               //NOTE record tap event
+               $( "#qunit-fixture" ).bind("tap", function(){
+                       ok(false, "tap fired");
+                       tap = true;
+               });
+
+               //NOTE make sure movement is recorded
+               mockAbs(100);
+
+               //NOTE start and move right away
+               $( "#qunit-fixture" ).trigger("touchstart");
+               $( "#qunit-fixture" ).trigger("touchmove");
+
+               //NOTE end touch sequence after 20 ms
+               setTimeout(function(){
+                       $( "#qunit-fixture" ).trigger("touchend");
+               }, 20);
+
+               setTimeout(function(){
+                       ok(!tap, "not tapped");
+                       start();
+               }, 40);
+       });
+
+       asyncTest( "tap event propagates up DOM tree", function(){
+               var tap = 0,
+                       $qf = $( "#qunit-fixture" ),
+                       $doc = $( document ),
+                       docTapCB = function(){
+                               same(++tap, 2, "document tap callback called once after #qunit-fixture callback");
+                       };
+
+               $qf.bind( "tap", function() {
+                       same(++tap, 1, "#qunit-fixture tap callback called once");
+               });
+
+               $doc.bind( "tap", docTapCB );
+
+               $qf.trigger( "vmousedown" )
+                       .trigger( "vmouseup" )
+                       .trigger( "vclick" );
+
+               // tap binding should be triggered twice, once for
+               // #qunit-fixture, and a second time for document.
+               same( tap, 2, "final tap callback count is 2" );
+
+               $doc.unbind( "tap", docTapCB );
+
+               start();
+       });
+
+       asyncTest( "stopPropagation() prevents tap from propagating up DOM tree", function(){
+               var tap = 0,
+                       $qf = $( "#qunit-fixture" ),
+                       $doc = $( document ),
+                       docTapCB = function(){
+                               ok(false, "tap should NOT be triggered on document");
+                       };
+
+               $qf.bind( "tap", function(e) {
+                       same(++tap, 1, "tap callback 1 triggered once on #qunit-fixture");
+                       e.stopPropagation();
+               })
+               .bind( "tap", function(e) {
+                       same(++tap, 2, "tap callback 2 triggered once on #qunit-fixture");
+               });
+
+               $doc.bind( "tap", docTapCB);
+
+               $qf.trigger( "vmousedown" )
+                       .trigger( "vmouseup" )
+                       .trigger( "vclick" );
+
+               // tap binding should be triggered twice.
+               same( tap, 2, "final tap count is 2" );
+
+               $doc.unbind( "tap", docTapCB );
+
+               start();
+       });
+
+       asyncTest( "stopImmediatePropagation() prevents tap propagation and execution of 2nd handler", function(){
+               var tap = 0,
+                       $cf = $( "#qunit-fixture" );
+                       $doc = $( document ),
+                       docTapCB = function(){
+                               ok(false, "tap should NOT be triggered on document");
+                       };
+
+               // Bind 2 tap callbacks on qunit-fixture. Only the first
+               // one should ever be called.
+               $cf.bind( "tap", function(e) {
+                       same(++tap, 1, "tap callback 1 triggered once on #qunit-fixture");
+                       e.stopImmediatePropagation();
+               })
+               .bind( "tap", function(e) {
+                       ok(false, "tap callback 2 should NOT be triggered on #qunit-fixture");
+               });
+
+               $doc.bind( "tap", docTapCB);
+
+               $cf.trigger( "vmousedown" )
+                       .trigger( "vmouseup" )
+                       .trigger( "vclick" );
+
+               // tap binding should be triggered once.
+               same( tap, 1, "final tap count is 1" );
+
+               $doc.unbind( "tap", docTapCB );
+
+               start();
+       });
+
+       var swipeTimedTest = function(opts){
+               var swipe = false;
+
+               forceTouchSupport();
+
+               $( "#qunit-fixture" ).bind('swipe', function(){
+                       swipe = true;
+               });
+
+               //NOTE bypass the trigger source check
+               $.Event.prototype.originalEvent = {
+                       touches: false
+               };
+
+               $( "#qunit-fixture" ).trigger("touchstart");
+
+               //NOTE make sure the coordinates are calculated within range
+               //               to be registered as a swipe
+               mockAbs(opts.coordChange);
+
+               setTimeout(function(){
+                       $( "#qunit-fixture" ).trigger("touchmove");
+                       $( "#qunit-fixture" ).trigger("touchend");
+               }, opts.timeout + 100);
+
+               setTimeout(function(){
+                       same(swipe, opts.expected, "swipe expected");
+                       start();
+               }, opts.timeout + 200);
+
+               stop();
+       };
+
+       test( "swipe fired when coordinate change in less than a second", function(){
+               swipeTimedTest({ timeout: 10, coordChange: 35, expected: true });
+       });
+
+       test( "swipe not fired when coordinate change takes more than a second", function(){
+               swipeTimedTest({ timeout: 1000, coordChange: 35, expected: false });
+       });
+
+       test( "swipe not fired when coordinate change <= 30", function(){
+               swipeTimedTest({ timeout: 1000, coordChange: 30, expected: false });
+       });
+
+       test( "swipe not fired when coordinate change >= 75", function(){
+               swipeTimedTest({ timeout: 1000, coordChange: 75, expected: false });
+       });
+
+       asyncTest( "scrolling prevented when coordinate change > 10", function(){
+               expect( 1 );
+
+               forceTouchSupport();
+
+               // ensure the swipe custome event is setup
+               $( "#qunit-fixture" ).bind('swipe', function(){});
+
+               //NOTE bypass the trigger source check
+               $.Event.prototype.originalEvent = {
+                       touches: false
+               };
+
+               $.Event.prototype.preventDefault = function(){
+                       ok(true, "prevent default called");
+                       start();
+               };
+
+               mockAbs(11);
+
+               $( "#qunit-fixture" ).trigger("touchstart");
+               $( "#qunit-fixture" ).trigger("touchmove");
+       });
+
+       asyncTest( "move handler returns when touchstart has been fired since touchstop", function(){
+               expect( 1 );
+
+               // bypass triggered event check
+               $.Event.prototype.originalEvent = {
+                       touches: false
+               };
+
+               forceTouchSupport();
+
+               // ensure the swipe custome event is setup
+               $( "#qunit-fixture" ).bind('swipe', function(){});
+
+               $( "#qunit-fixture" ).trigger("touchstart");
+               $( "#qunit-fixture" ).trigger("touchend");
+
+               $( "#qunit-fixture" ).bind("touchmove", function(){
+                       ok(true, "touchmove bound functions are fired");
+                       start();
+               });
+
+               Math.abs = function(){
+                       ok(false, "shouldn't compare coordinates");
+               };
+
+               $( "#qunit-fixture" ).trigger("touchmove");
+       });
+
+       var nativeSupportTest = function(opts){
+               $.support.orientation = opts.orientationSupport;
+               same($.event.special.orientationchange[opts.method](), opts.returnValue);
+       };
+
+       test( "orientation change setup should do nothing when natively supported", function(){
+               nativeSupportTest({
+                       method: 'setup',
+                       orientationSupport: true,
+                       returnValue: false
+               });
+       });
+
+       test( "orientation change setup should bind resize when not supported natively", function(){
+               nativeSupportTest({
+                       method: 'setup',
+                       orientationSupport: false,
+                       returnValue: undefined //NOTE result of bind function call
+               });
+       });
+
+       test( "orientation change teardown should do nothing when natively supported", function(){
+               nativeSupportTest({
+                       method: 'teardown',
+                       orientationSupport: true,
+                       returnValue: false
+               });
+       });
+
+       test( "orientation change teardown should unbind resize when not supported natively", function(){
+               nativeSupportTest({
+                       method: 'teardown',
+                       orientationSupport: false,
+                       returnValue: undefined //NOTE result of unbind function call
+               });
+       });
+
+       /* The following 4 tests are async so that the throttled event triggers don't interfere with subsequent tests */
+
+       asyncTest( "throttledresize event proxies resize events", function(){
+               $( window ).one( "throttledresize", function(){
+                       ok( true, "throttledresize called");
+                       start();
+               });
+
+               $( window ).trigger( "resize" );
+       });
+
+       asyncTest( "throttledresize event prevents resize events from firing more frequently than 250ms", function(){
+               var called = 0;
+
+               $(window).bind( "throttledresize", function(){
+                       called++;
+               });
+
+               // NOTE 250 ms * 3 = 750ms which is plenty of time
+               // for the events to trigger before the next test, but
+               // not so much time that the second resize will be triggered
+               // before the call to same() is made
+               $.testHelper.sequence([
+                       function(){
+                               $(window).trigger( "resize" ).trigger( "resize" );
+                       },
+
+                       // verify that only one throttled resize was called after 250ms
+                       function(){ same( called, 1 ); },
+
+                       function(){
+                               start();
+                       }
+               ], 250);
+       });
+
+       asyncTest( "throttledresize event promises that a held call will execute only once after throttled timeout", function(){
+               var called = 0;
+
+               expect( 2 );
+
+               $.testHelper.eventSequence( "throttledresize", [
+                       // ignore the first call
+                       $.noop,
+
+                       function(){
+                               ok( true, "second throttled resize should run" );
+                       },
+
+                       function(timedOut){
+                               ok( timedOut, "third throttled resize should not run");
+                               start();
+                       }
+               ]);
+
+               $.mobile.pageContainer
+                       .trigger( "resize" )
+                       .trigger( "resize" )
+                       .trigger( "resize" );
+       });
+
+       asyncTest( "mousedown mouseup and click events should add a which when its not defined", function() {
+               var whichDefined = function( event ){
+                       same(event.which, 1);
+               };
+
+               $( document ).bind( "vclick", whichDefined);
+               $( document ).trigger( "click" );
+
+               $( document ).bind( "vmousedown", whichDefined);
+               $( document ).trigger( "mousedown" );
+
+               $( document ).bind( "vmouseup", function( event ){
+                       same(event.which, 1);
+                       start();
+               });
+
+               $( document ).trigger( "mouseup" );
+       });
+})(jQuery);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/event/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/event/index.html
new file mode 100644 (file)
index 0000000..b1c46a4
--- /dev/null
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile Event Test Suite</title>
+
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../../tests/jquery.testHelper.js"></script>
+       <script type="text/javascript">
+               $.testHelper.setPushState();
+       </script>
+
+       <script src="../../../js/jquery.mobile.define.js"></script>
+       <script src="../../../js/jquery.mobile.event.js"></script>
+       <script src="../../../js/"></script>
+
+
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+       <script src="../../../external/qunit.js"></script>
+
+       <script src="event_core.js"></script>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Event Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div id="qunit-fixture"></div>
+
+<div id="foo" data-nstest-role="page">
+       <a href="#bar" data-nstest-transition="flip"></a>
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/fieldContain/fieldContain_events.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/fieldContain/fieldContain_events.js
new file mode 100644 (file)
index 0000000..75066bf
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * mobile dialog unit tests
+ */
+(function($){
+       module('jquery.mobile.fieldContain.js');
+
+       test( "Field container contains appropriate css styles", function(){
+               ok($('#test-fieldcontain').hasClass('ui-field-contain ui-body ui-br'), 'A fieldcontain element must contain styles "ui-field-contain ui-body ui-br"');
+       });
+
+       test( "Field container will create when inside a container that receives a 'create' event", function(){
+               ok( !$("#enhancetest").appendTo(".ui-page-active").find(".ui-field-contain").length, "did not have enhancements applied" );
+               ok( $("#enhancetest").trigger("create").find(".ui-field-contain").length, "enhancements applied" );
+       });
+
+       test( "field containers inside ignore container should not be enhanced", function() {
+               var $ignored = $( "#ignored-fieldcontain" ), $enhanced = $( "#enhanced-fieldcontain" );
+
+               $.mobile.ignoreContentEnabled = true;
+
+               $( "#ignore-container-tests" ).trigger( "create" );
+
+               same( $ignored.attr( "class" ), undefined, "ignored div does not have field contain class" );
+               ok( $enhanced.hasClass( "ui-field-contain" ), "enhanced div has field contain class" );
+
+               $.mobile.ignoreContentEnabled = false;
+
+       });
+})(jQuery);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/fieldContain/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/fieldContain/index.html
new file mode 100644 (file)
index 0000000..1be5157
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="UTF-8" />
+       <title>jQuery Mobile FieldContain Integration Test</title>
+
+
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../../tests/jquery.testHelper.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [
+                               "jquery.mobile.fieldContain"
+                       ],
+                       [ "jquery.mobile.init" ],
+                       [
+                               "./fieldContain_events.js"
+                       ]
+               ]);
+       </script>
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile FieldContainer Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div data-nstest-role="page">
+
+       <!-- Basic fieldcontain test -->
+       <div id="test-fieldcontain" data-nstest-role="fieldcontain">
+           <label for="name">Text Input:</label>
+           <input type="text" name="name" id="name" value=""  />
+       </div>
+
+</div>
+
+<div id="enhancetest">
+  <div data-nstest-role="fieldcontain">
+  </div>
+</div>
+
+<div id="ignore-container-tests">
+  <div data-nstest-enhance="false">
+    <div data-nstest-role="fieldcontain" id="ignored-fieldcontain">
+    </div>
+  </div>
+
+  <div>
+    <div data-nstest-role="fieldcontain" id="enhanced-fieldcontain">
+    </div>
+  </div>
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/fixedToolbar/fixedToolbar.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/fixedToolbar/fixedToolbar.js
new file mode 100644 (file)
index 0000000..d03ae0a
--- /dev/null
@@ -0,0 +1,360 @@
+/*
+ * mobile Fixed Toolbar unit tests
+ */
+(function($){
+       module('jquery.mobile.fixedToolbar.js');
+
+       $( "html" ).height( screen.height * 3 );
+
+       function scrollDown(){
+               window.scrollTo(0,screen.height );
+       }
+
+       function scrollUp(){
+               window.scrollTo(0,0);
+       }
+
+       module("jquery.mobile.fixedToolbar.js", {setup: function() {
+               var startTimeout;
+
+               // swallow the inital page change
+               stop();
+               $(document).one("pagechange", function() {
+                       clearTimeout(startTimeout);
+               });
+
+               startTimeout = setTimeout(start, 1000);
+       }});
+
+
+       test( "Fixed Header Structural Classes are applied correctly", function(){
+
+               //footer
+               ok( !$('#classes-test-a').hasClass('ui-header-fixed'), 'An ordinary header should not have fixed classes');
+               ok( $('#classes-test-b').hasClass('ui-header-fixed'), 'An header with data-position=fixed should have ui-header-fixed class');
+               ok( $('#classes-test-c').hasClass('ui-header-fullscreen'), 'An header with data-position=fixed and data-fullscreen should have ui-header-fullscreen class');
+
+               //footer
+               ok( !$('#classes-test-d').hasClass('ui-footer-fixed'), 'An ordinary footer should not have fixed classes');
+               ok( $('#classes-test-e').hasClass('ui-footer-fixed'), 'A footer with data-position=fixed should have ui-footer-fixed class"');
+               ok( $('#classes-test-f').hasClass('ui-footer-fullscreen'), 'A footer with data-position=fixed and data-fullscreen should have ui-footer-fullscreen class');
+
+               //parent
+               ok( $('#classes-test-b').closest( ".ui-page" ).hasClass( "ui-page-header-fixed" ), "Parent page of a fixed header has class ui-page-header-fixed" );
+               ok( $('#classes-test-e').closest( ".ui-page" ).hasClass( "ui-page-footer-fixed" ), "Parent page of a fixed footer has class ui-page-header-fixed" );
+               ok( $('#classes-test-c').closest( ".ui-page" ).hasClass( "ui-page-header-fullscreen" ), "Parent page of a fullscreen header has class ui-page-header-fullscreen" );
+               ok( $('#classes-test-f').closest( ".ui-page" ).hasClass( "ui-page-footer-fullscreen" ), "Parent page of a fullscreen footer has class ui-page-header-fullscreen" );
+
+
+       });
+
+       asyncTest( "Fixed header and footer transition classes are applied correctly", function(){
+
+               expect( 6 );
+
+               $.testHelper.sequence([
+                       function(){
+                               $( '#classes-test-b, #classes-test-g, #classes-test-e,#classes-test-h,#classes-test-i,#classes-test-j, #classes-test-k' ).fixedtoolbar( "hide" );
+                               scrollDown();
+                       },
+
+                       function(){
+                               //show first
+                               $( '#classes-test-b, #classes-test-g, #classes-test-e,#classes-test-h,#classes-test-i,#classes-test-j, #classes-test-k' ).fixedtoolbar( "show" );
+                       },
+
+                       function() {
+
+                               ok( $( '#classes-test-g' ).hasClass('slidedown'), 'The slidedown class should be applied by default');
+                               ok( $( '#classes-test-k' ).hasClass('in'), 'The "in" class should be applied for fade transitions');
+                               ok( !$( '#classes-test-h' ).hasClass('slidedown'), 'The slidedown class should not be applied when the header has a data-transition of "none"');
+
+                               ok( !$( '#classes-test-h' ).hasClass('in'), 'The "in" class should not be applied when the header has a data-transition of "none"');
+                               ok( $( '#classes-test-i' ).hasClass('slidedown'), 'The "slidedown" class should  be applied when the header has a data-transition of "slide"');
+                               ok( $( '#classes-test-j' ).hasClass('slideup'), 'The "slideup" class should  be applied when the footer has a data-transition of "slide"');
+
+                       },
+
+                       function(){
+                               scrollUp();
+                               start();
+                               }
+               ], 1000);
+
+       });
+
+       test( "User zooming is disabled when the header is visible and disablePageZoom is true", function(){
+               $.mobile.zoom.enable();
+               var defaultZoom = $.mobile.fixedtoolbar.prototype.options.disablePageZoom;
+               $( ".ui-page-active .ui-header-fixed" ).fixedtoolbar("option", "disablePageZoom", true );
+
+               $( ".ui-page-active" ).trigger( "pagebeforeshow" );
+               ok( !$.mobile.zoom.enabled, "Viewport scaling is disabled before page show." );
+               $( ".ui-page-active .ui-header-fixed" ).fixedtoolbar("option", "disablePageZoom", defaultZoom );
+               $.mobile.zoom.enable();
+       });
+
+       test( "Meta viewport content is restored to previous state, and zooming renabled, after pagebeforehide", function(){
+               $.mobile.zoom.enable( true );
+               var defaultZoom = $.mobile.fixedtoolbar.prototype.options.disablePageZoom;
+               $( ".ui-page-active .ui-header-fixed" ).fixedtoolbar("option", "disablePageZoom", true );
+
+               $( ".ui-page-active" ).trigger( "pagebeforeshow" );
+               ok( !$.mobile.zoom.enabled, "Viewport scaling is disabled before page show." );
+               $( ".ui-page-active" ).trigger( "pagebeforehide" );
+               ok( $.mobile.zoom.enabled, "Viewport scaling is enabled." );
+               $( ".ui-page-active .ui-header-fixed" ).fixedtoolbar("option", "disablePageZoom", defaultZoom );
+               $.mobile.zoom.enable( true );
+       });
+
+       test( "User zooming is not disabled when the header is visible and disablePageZoom is false", function(){
+               $.mobile.zoom.enable( true );
+               var defaultZoom = $.mobile.fixedtoolbar.prototype.options.disablePageZoom;
+               $( ".ui-page :jqmData(position='fixed')" ).fixedtoolbar( "option", "disablePageZoom", false );
+
+               $( ".ui-page-active" ).trigger( "pagebeforeshow" );
+
+               ok( $.mobile.zoom.enabled, "Viewport scaling is not disabled before page show." );
+
+               $( ".ui-page :jqmData(position='fixed')" ).fixedtoolbar( "option", "disablePageZoom", defaultZoom );
+
+               $.mobile.zoom.enable( true );
+       });
+
+
+       asyncTest( "The hide method is working properly", function() {
+
+               expect( 2 );
+
+               $.testHelper.sequence([
+                       function(){
+                               $( '#classes-test-g' ).fixedtoolbar( "show" );
+                               scrollDown();
+                       },
+
+                       function() {
+                               $( '#classes-test-g' ).fixedtoolbar( "hide" );
+
+                               ok( $( '#classes-test-g' ).hasClass('out'), 'The out class should be applied when hide is called');
+                       },
+
+                       function() {
+                               ok( $( '#classes-test-g' ).hasClass('ui-fixed-hidden'), 'The toolbar has the ui-fixed-hidden class applied after hide');
+                               $( '#classes-test-g' ).fixedtoolbar( "show" );
+
+                       },
+
+                       function(){
+                               scrollUp();
+                               start();
+                       }
+
+               ], 500);
+       });
+
+
+
+       asyncTest( "The show method is working properly", function() {
+
+               expect( 2 );
+
+               $.testHelper.sequence([
+                       function(){
+                               scrollDown();
+                       },
+
+                       function() {
+                               $( '#classes-test-g' ).fixedtoolbar( "hide" );
+                       },
+
+                       function() {
+                               $( '#classes-test-g' ).fixedtoolbar( "show" );
+
+                               ok( $( '#classes-test-g' ).hasClass('in'), 'The in class should be applied when show is called');
+                       },
+
+                       function() {
+                               ok( !$( '#classes-test-g' ).hasClass('ui-fixed-hidden'), 'The toolbar does not have the ui-fixed-hidden class applied after show');
+
+                       },
+
+                       function(){
+                               scrollUp();
+                               start();
+                       }
+               ], 500);
+       });
+
+
+       asyncTest( "The toggle method is working properly", function() {
+
+               expect( 3 );
+
+               $.testHelper.sequence([
+                       function(){
+                               scrollDown();
+                       },
+
+                       function(){
+                               $( '#classes-test-g' ).fixedtoolbar( "show" );
+                       },
+
+                       function() {
+                               ok( !$( '#classes-test-g' ).hasClass('ui-fixed-hidden'), 'The toolbar does not have the ui-fixed-hidden class');
+                               $( '#classes-test-g' ).fixedtoolbar( "toggle" );
+                       },
+
+                       function() {
+                               ok( $( '#classes-test-g' ).hasClass('ui-fixed-hidden'), 'The toolbar does have the ui-fixed-hidden class');
+                               $( '#classes-test-g' ).fixedtoolbar( "toggle" );
+                       },
+
+                       function() {
+                               ok( !$( '#classes-test-g' ).hasClass('ui-fixed-hidden'), 'The toolbar does not have the ui-fixed-hidden class');
+
+                       },
+
+                       function(){
+                               scrollUp();
+                               start();
+                       }
+
+               ], 500);
+       });
+
+
+       asyncTest( "The persistent headers and footers are working properly", function() {
+
+               expect( 3 );
+
+               $( "#persist-test-b, #persist-test-a" ).page();
+
+               var nextpageheader =  $( "#persist-test-b .ui-header-fixed" ),
+                       nextpagefooter =  $( "#persist-test-b .ui-footer-fixed" );
+
+
+               $.testHelper.pageSequence([
+                       function(){
+                               ok( nextpageheader.length && nextpagefooter.length, "next page has fixed header and fixed footer" );
+                               $.mobile.changePage( "#persist-test-a" );
+                       },
+
+                       function(){
+                               $( "#persist-test-b" )
+                                       .one( "pagebeforeshow", function(){
+                                               ok( nextpageheader.parent( ".ui-mobile-viewport" ).length, "fixed header and footer are now a child of page container" );
+                                       });
+
+                               $.mobile.changePage( "#persist-test-b" );
+                       },
+
+                       function() {
+                               ok( nextpageheader.parent( ".ui-page" ).length, "fixed header and footer are now a child of page again" );
+                               $.mobile.changePage( "#default" );
+                       },
+
+                       start
+               ]);
+       });
+
+       asyncTest( "The persistent headers should work without a footer", function() {
+
+               expect( 3 );
+
+               $( "#persist-test-c, #persist-test-d" ).page();
+
+               var nextpageheader =  $( "#persist-test-d .ui-header-fixed" );
+
+               $.testHelper.pageSequence([
+                       function(){
+                               ok( nextpageheader.length, "next page has fixed header and fixed footer" );
+                               $.mobile.changePage( "#persist-test-c" );
+                       },
+
+                       function(){
+                               $( "#persist-test-d" )
+                                       .one( "pagebeforeshow", function(){
+                                               same( nextpageheader.parent()[0], $.mobile.pageContainer[0], "fixed header is now a child of page container" );
+                                       });
+
+                               $.mobile.changePage( "#persist-test-d" );
+                       },
+
+                       function() {
+                               same( nextpageheader.parent()[0], $.mobile.activePage[0], "fixed header is now a child of page again" );
+                               $.mobile.changePage( "#default" );
+                       },
+
+                       start
+               ]);
+       });
+
+       asyncTest( "The persistent footers should work without a header", function() {
+
+               expect( 3 );
+
+               $( "#persist-test-e, #persist-test-f" ).page();
+
+               var nextpagefooter =  $( "#persist-test-f .ui-footer-fixed" );
+
+               $.testHelper.pageSequence([
+                       function(){
+                               ok( nextpagefooter.length, "next page has fixed footer and fixed footer" );
+                               $.mobile.changePage( "#persist-test-e" );
+                       },
+
+                       function(){
+                               $( "#persist-test-f" )
+                                       .one( "pagebeforeshow", function(){
+                                               same( nextpagefooter.parent()[0], $.mobile.pageContainer[0], "fixed footer is now a child of page container" );
+                                       });
+
+                               $.mobile.changePage( "#persist-test-f" );
+                       },
+
+                       function() {
+                               same( nextpagefooter.parent()[0], $.mobile.activePage[0], "fixed footer is now a child of page again" );
+                               $.mobile.changePage( "#default" );
+                       },
+
+                       start
+               ]);
+       });
+
+
+       var asyncTestFooterAndHeader = function( pageSelector, areHidden ) {
+               $.testHelper.pageSequence([
+                       function() {
+                               $.mobile.changePage( pageSelector );
+                       },
+
+                       function() {
+                               var $footer = $.mobile.activePage.find( ".ui-footer" ),
+                                       $header = $.mobile.activePage.find( ".ui-header" ),
+                                       hidden = areHidden ? "hidden" : "visible";
+
+                               equal( $footer.length, 1, "there should be one footer" );
+                               equal( $header.length, 1, "there should be one header" );
+
+                               equal( $footer.hasClass( "ui-fixed-hidden" ), areHidden, "the footer should be " + hiddenStr );
+                               equal( $header.hasClass( "ui-fixed-hidden" ), areHidden, "the header should be " + hiddenStr );
+
+                               $.mobile.changePage( "#default" );
+                       },
+
+                       start
+               ]);
+       };
+
+       asyncTest( "data-visible-on-page-show hides toolbars when false", function() {
+               asyncTestFooterAndHeader( "#page-show-visible-false", false );
+       });
+
+       asyncTest( "data-visible-on-page-show shows toolbars when explicitly true", function() {
+               asyncTestFooterAndHeader( "#page-show-visible-true", true );
+       });
+
+       asyncTest( "data-visible-on-page-show shows toolbars when undefined", function() {
+               asyncTestFooterAndHeader( "#page-show-visible-undefined", true );
+       });
+})(jQuery);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/fixedToolbar/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/fixedToolbar/index.html
new file mode 100644 (file)
index 0000000..d65a471
--- /dev/null
@@ -0,0 +1,98 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="UTF-8" />
+       <title>jQuery Mobile Fixed Toolbar Integration Test</title>
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../../tests/jquery.testHelper.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [ "jquery.mobile.fixedToolbar" ],
+                       [ "jquery.mobile.init" ],
+                       [       "./fixedToolbar.js"     ]
+               ]);
+       </script>
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile FieldContainer Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div data-nstest-role="page" id="default">
+       <!-- structural classes -->
+       <div data-nstest-role="header" id="classes-test-a"></div>
+       <div data-nstest-role="header" data-nstest-position="fixed" id="classes-test-b"></div>
+       <div data-nstest-role="header" data-nstest-position="fixed" data-nstest-fullscreen="true" id="classes-test-c"></div>
+       <div data-nstest-role="footer" id="classes-test-d"></div>
+       <div data-nstest-role="footer" data-nstest-position="fixed" id="classes-test-e"></div>
+       <div data-nstest-role="footer" data-nstest-position="fixed" data-nstest-fullscreen="true" id="classes-test-f"></div>
+
+       <!-- transition classes -->
+       <div data-nstest-role="header" data-nstest-position="fixed" id="classes-test-g"></div>
+       <div data-nstest-role="header" data-nstest-position="fixed" data-nstest-transition="none" id="classes-test-h"></div>
+       <div data-nstest-role="header" data-nstest-position="fixed" data-nstest-transition="slide" id="classes-test-i"></div>
+       <div data-nstest-role="footer" data-nstest-position="fixed" data-nstest-transition="slide" id="classes-test-j"></div>
+       <div data-nstest-role="header" data-nstest-position="fixed" data-nstest-transition="fade" id="classes-test-k"></div>
+</div>
+
+
+
+<div data-nstest-role="page" id="persist-test-a">
+       <div data-nstest-role="header" data-nstest-position="fixed" data-nstest-id="a"></div>
+       <div data-nstest-role="footer" data-nstest-position="fixed" data-nstest-id="b"></div>
+</div>
+
+<div data-nstest-role="page" id="persist-test-b">
+       <div data-nstest-role="header" data-nstest-position="fixed" data-nstest-id="a"></div>
+       <div data-nstest-role="footer" data-nstest-position="fixed" data-nstest-id="b"></div>
+</div>
+
+<div data-nstest-role="page" id="persist-test-c">
+       <div data-nstest-role="header" data-nstest-position="fixed" data-nstest-id="c"></div>
+</div>
+
+<div data-nstest-role="page" id="persist-test-d">
+       <div data-nstest-role="header" data-nstest-position="fixed" data-nstest-id="c"></div>
+</div>
+
+<div data-nstest-role="page" id="persist-test-e">
+       <div data-nstest-role="footer" data-nstest-position="fixed" data-nstest-id="d"></div>
+</div>
+
+<div data-nstest-role="page" id="persist-test-f">
+       <div data-nstest-role="footer" data-nstest-position="fixed" data-nstest-id="d"></div>
+</div>
+
+<div data-nstest-role="page" id="page-show-visible-false">
+       <div data-nstest-role="header" data-nstest-position="fixed" data-nstest-fullscreen="true" data-nstest-visible-on-page-show="false">
+               <h1>foo</h1>
+       </div>
+       <div data-nstest-role="footer" data-nstest-position="fixed" data-nstest-fullscreen="true" data-nstest-visible-on-page-show="false">
+               <h1>foo</h1>
+       </div>
+</div>
+
+<div data-nstest-role="page" id="page-show-visible-true">
+       <div data-nstest-role="header" data-nstest-position="fixed" data-nstest-fullscreen="true" data-nstest-visible-on-page-show="true"></div>
+       <div data-nstest-role="footer" data-nstest-position="fixed" data-nstest-fullscreen="true" data-nstest-visible-on-page-show="true"></div>
+</div>
+
+<div data-nstest-role="page" id="page-show-visible-undefined">
+       <div data-nstest-role="header" data-nstest-fullscreen="true" data-nstest-position="fixed"></div>
+       <div data-nstest-role="footer" data-nstest-fullscreen="true" data-nstest-position="fixed"></div>
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/index.html
new file mode 100644 (file)
index 0000000..c53dd96
--- /dev/null
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="utf-8">
+       <link rel="stylesheet" href="../../external/qunit.css" />
+       <script src="../../js/jquery.tag.inserter.js"></script>
+       <script src="../../external/qunit.js"></script>
+       <script src="runner.js"></script>
+  <style type="text/css">
+    html, body {
+      width:100%;
+      height:100%;
+      margin:0px;
+      padding:0px;
+    }
+
+    #testFrame {
+      float: left;
+      border: 0px;
+      height: 100%;
+      width: 60%;
+    }
+
+    #results {
+      float: left;
+      width: 30%;
+    }
+  </style>
+</head>
+<body>
+  <div id="results">
+    <h1 id="qunit-header"><a href="#">jQuery Mobile Test Suite</a></h1>
+    <h2 id="qunit-banner"></h2>
+    <ol id="qunit-tests">
+    </ol>
+  </div>
+       <iframe data-src="../../tests/unit/{{testdir}}?jquery={{jquery.version}}" name="testFrame" id="testFrame" scrolling="no">
+       </iframe>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/dialog-load-test.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/dialog-load-test.html
new file mode 100644 (file)
index 0000000..716bdd6
--- /dev/null
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <meta charset="UTF-8" />
+       <title>jQuery Mobile Init Test Suite</title>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../../tests/jquery.testHelper.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script src="../../../external/requirejs/require.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [
+                               "jquery.mobile.core",
+                       ],
+                       [       "jquery.mobile.init" ],
+                       [       "init_dialog.js" ]
+               ]);
+       </script>
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+       </script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Init Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div data-nstest-role="dialog" id="foo">
+       <label for="select-choice-0" class="select">Shipping method:</label>
+       <select name="select-choice-0" id="select-choice-1">
+               <option value="standard">Standard: 7 day</option>
+               <option value="rush">Rush: 3 days</option>
+               <option value="express">Express: next day</option>
+               <option value="overnight">Overnight</option>
+       </select>
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/index.html
new file mode 100644 (file)
index 0000000..15854a6
--- /dev/null
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="UTF-8" />
+       <title>jQuery Mobile Init Test Suite</title>
+       <!-- meta viewport left out on purpose for test append -->
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../../js/"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script src="../../jquery.testHelper.js"></script>
+       <script src="init_core.js"></script>
+       <!-- added explicitly for library reloading (see testHelper )  -->
+       <script src="../../../js/jquery.mobile.core.js"></script>
+       <script src="../../../js/jquery.mobile.init.js"></script>
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css" />
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Init Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div data-nstest-role="page" id="foo">
+</div>
+
+<div data-nstest-role="page" id="bar" data-nstest-url="bak">
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/init_core.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/init_core.js
new file mode 100644 (file)
index 0000000..5c452bc
--- /dev/null
@@ -0,0 +1,271 @@
+/*
+ * mobile init tests
+ */
+(function($){
+       var mobilePage = undefined,
+                       libName = 'jquery.mobile.init.js',
+                       coreLib = 'jquery.mobile.core.js',
+                       extendFn = $.extend,
+                       originalLoadingMessage = $.mobile.loadingMessage,
+                       setGradeA = function(value) { $.mobile.gradeA = function(){ return value; }; },
+                       reloadCoreNSandInit = function(){
+                               $.testHelper.reloadLib(coreLib);
+                               $.testHelper.reloadLib("jquery.setNamespace.js");
+                               $.testHelper.reloadLib(libName);
+                       };
+
+
+       module(libName, {
+               setup: function(){
+                       // NOTE reset for gradeA tests
+                       $('html').removeClass('ui-mobile');
+
+                       // TODO add post reload callback
+                       $('.ui-loader').remove();
+               },
+               teardown: function(){
+                       $.extend = extendFn;
+
+                       // NOTE reset for showPageLoadingMsg/hidePageLoadingMsg tests
+                       $('.ui-loader').remove();
+
+                       // clear the classes added by reloading the init
+                       $("html").attr('class', '');
+
+                       $.mobile.loadingMessage = originalLoadingMessage;
+               }
+       });
+
+       // NOTE important to use $.fn.one here to make sure library reloads don't fire
+       //      the event before the test check below
+       $(document).one("mobileinit", function(){
+               mobilePage = $.mobile.page;
+       });
+
+       // NOTE for the following two tests see index html for the binding
+       test( "mobile.page is available when mobile init is fired", function(){
+               ok( mobilePage !== undefined, "$.mobile.page is defined" );
+       });
+
+       $.testHelper.excludeFileProtocol(function(){
+               asyncTest( "loading the init library triggers mobilinit on the document", function(){
+                       var initFired = false;
+                       expect( 1 );
+
+                       $(window.document).one('mobileinit', function(event){
+                               initFired = true;
+                       });
+
+                       $.testHelper.reloadLib(libName);
+
+                       setTimeout(function(){
+                               ok(initFired, "init fired");
+                               start();
+                       }, 1000);
+               });
+
+               test( "enhancments are skipped when the browser is not grade A", function(){
+                       setGradeA(false);
+                       $.testHelper.reloadLib(libName);
+
+                       //NOTE easiest way to check for enhancements, not the most obvious
+                       ok(!$("html").hasClass("ui-mobile"), "html elem doesn't have class ui-mobile");
+               });
+
+               test( "enhancments are added when the browser is grade A", function(){
+                       setGradeA(true);
+                       $.testHelper.reloadLib(libName);
+
+                       ok($("html").hasClass("ui-mobile"), "html elem has class mobile");
+               });
+
+               asyncTest( "useFastClick is configurable via mobileinit", function(){
+                       $(document).one( "mobileinit", function(){
+                               $.mobile.useFastClick = false;
+                               start();
+                       });
+
+                       $.testHelper.reloadLib(libName);
+
+                       same( $.mobile.useFastClick, false , "fast click is set to false after init" );
+                       $.mobile.useFastClick = true;
+               });
+
+
+
+               var findFirstPage = function() {
+                       return $(":jqmData(role='page')").first();
+               };
+
+               test( "active page and start page should be set to the fist page in the selected set", function(){
+                       expect( 2 );
+                       $.testHelper.reloadLib(libName);
+                       var firstPage = findFirstPage();
+
+                       same($.mobile.firstPage[0], firstPage[0]);
+                       same($.mobile.activePage[0], firstPage[0]);
+               });
+
+               test( "mobile viewport class is defined on the first page's parent", function(){
+                       expect( 1 );
+                       $.testHelper.reloadLib(libName);
+                       var firstPage = findFirstPage();
+
+                       ok(firstPage.parent().hasClass("ui-mobile-viewport"), "first page has viewport");
+               });
+
+               test( "mobile page container is the first page's parent", function(){
+                       expect( 1 );
+                       $.testHelper.reloadLib(libName);
+                       var firstPage = findFirstPage();
+
+                       same($.mobile.pageContainer[0], firstPage.parent()[0]);
+               });
+
+               asyncTest( "hashchange triggered on document ready with single argument: true", function(){
+                       $.testHelper.sequence([
+                               function(){
+                                       location.hash = "#foo";
+                               },
+
+                               // delay the bind until the first hashchange
+                               function(){
+                                       $(window).one("hashchange", function(ev, arg){
+                                               same(arg, true);
+                                               start();
+                                       });
+                               },
+
+                               function(){
+                                       $.testHelper.reloadLib(libName);
+                               }
+                       ], 1000);
+               });
+
+               test( "pages without a data-url attribute have it set to their id", function(){
+                       same($("#foo").jqmData('url'), "foo");
+               });
+
+               test( "pages with a data-url attribute are left with the original value", function(){
+                       same($("#bar").jqmData('url'), "bak");
+               });
+
+               asyncTest( "showPageLoadingMsg doesn't add the dialog to the page when loading message is false", function(){
+                       expect( 1 );
+                       $.mobile.loadingMessage = false;
+                       $.mobile.showPageLoadingMsg();
+
+                       setTimeout(function(){
+                               ok(!$(".ui-loader").length, "no ui-loader element");
+                               start();
+                       }, 500);
+               });
+
+               asyncTest( "hidePageLoadingMsg doesn't add the dialog to the page when loading message is false", function(){
+                       expect( 1 );
+                       $.mobile.loadingMessage = true;
+                       $.mobile.hidePageLoadingMsg();
+
+                       setTimeout(function(){
+                               same($(".ui-loading").length, 0, "page should not be in the loading state");
+                               start();
+                       }, 500);
+               });
+
+               asyncTest( "showPageLoadingMsg adds the dialog to the page when loadingMessage is true", function(){
+                       expect( 1 );
+                       $.mobile.loadingMessage = true;
+                       $.mobile.showPageLoadingMsg();
+
+                       setTimeout(function(){
+                               same($(".ui-loading").length, 1, "page should be in the loading state");
+                               start();
+                       }, 500);
+               });
+
+               asyncTest( "page loading should contain default loading message", function(){
+                       expect( 1 );
+                       reloadCoreNSandInit();
+                       $.mobile.showPageLoadingMsg();
+
+                       setTimeout(function(){
+                               same($(".ui-loader h1").text(), "loading");
+                               start();
+                       }, 500);
+               });
+
+               asyncTest( "page loading should contain custom loading message", function(){
+                       $.mobile.loadingMessage = "foo";
+                       $.testHelper.reloadLib(libName);
+                       $.mobile.showPageLoadingMsg();
+
+                       setTimeout(function(){
+                               same($(".ui-loader h1").text(), "foo");
+                               start();
+                       }, 500);
+               });
+
+               asyncTest( "page loading should contain custom loading message when set during runtime", function(){
+                       $.mobile.loadingMessage = "bar";
+                       $.mobile.showPageLoadingMsg();
+
+                       setTimeout(function(){
+                               same($(".ui-loader h1").text(), "bar");
+                               start();
+                       }, 500);
+               });
+
+
+
+               // NOTE: the next two tests work on timeouts that assume a page will be created within 2 seconds
+               // it'd be great to get these using a more reliable callback or event
+
+               asyncTest( "page does auto-initialize at domready when autoinitialize option is true (default) ", function(){
+
+                       $( "<div />", { "data-nstest-role": "page", "id": "autoinit-on" } ).prependTo( "body" )
+
+                       $(document).one("mobileinit", function(){
+                               $.mobile.autoInitializePage = true;
+                       });
+
+                       location.hash = "";
+
+                       reloadCoreNSandInit();
+
+                       setTimeout(function(){
+                               same( $( "#autoinit-on.ui-page" ).length, 1 );
+
+                               start();
+                       }, 2000);
+               });
+
+
+               asyncTest( "page does not initialize at domready when autoinitialize option is false ", function(){
+                       $(document).one("mobileinit", function(){
+                               $.mobile.autoInitializePage = false;
+                       });
+
+                       $( "<div />", { "data-nstest-role": "page", "id": "autoinit-off" } ).prependTo( "body" )
+
+                       location.hash = "";
+
+
+                       reloadCoreNSandInit();
+
+                       setTimeout(function(){
+                               same( $( "#autoinit-off.ui-page" ).length, 0 );
+
+                               $(document).bind("mobileinit", function(){
+                                       $.mobile.autoInitializePage = true;
+                               });
+
+                               reloadCoreNSandInit();
+
+                               start();
+                       }, 2000);
+               });
+
+
+
+       });
+})(jQuery);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/init_core_nopage.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/init_core_nopage.js
new file mode 100644 (file)
index 0000000..193af25
--- /dev/null
@@ -0,0 +1,12 @@
+/*
+ * mobile init tests
+ */
+(function($){
+
+               
+               test( "page element is generated when not present in initial markup", function(){
+                       ok( $( ".ui-page" ).length, 1 );
+               });
+
+
+})(jQuery);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/init_dialog.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/init_dialog.js
new file mode 100644 (file)
index 0000000..0479388
--- /dev/null
@@ -0,0 +1,16 @@
+/*
+ * mobile init dialog tests
+ */
+(function($){
+       module( "jquery.mobile.init dialog load tests" );
+
+       // issue #3275
+       test( "A document containing no pages and a dialog role div will enhance the div as a page", function() {
+               ok( $("#foo").hasClass( "ui-page" ), "the div has the page class" );
+
+               // NOTE this will fail when/if we decide to render it as a dialog
+               ok( !$("#foo").hasClass( "ui-dialog" ), "the div does NOT have the dialog page class" );
+       });
+
+       //NOTE the opposite case is tested everyewhere else in the suite :D
+})( jQuery );
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/nopage.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/init/nopage.html
new file mode 100644 (file)
index 0000000..4decaae
--- /dev/null
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="UTF-8" />
+       <title>jQuery Mobile Init Test Suite</title>
+       <!-- meta viewport left out on purpose for test append -->
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../../js/"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script src="../../jquery.testHelper.js"></script>
+       <script src="init_core_nopage.js"></script>
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css" />
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+       <script src="../swarminject.js"></script>
+
+       <style>
+       [data-nstest-role="page"], [data-nstest-role="dialog"] {
+       position: static !important;
+       }
+       </style>
+</head>
+
+<h1 id="qunit-header">jQuery Mobile Init Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/jquery.setNameSpace.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/jquery.setNameSpace.js
new file mode 100644 (file)
index 0000000..3e9e129
--- /dev/null
@@ -0,0 +1,4 @@
+//set namespace for unit test markp
+$( document ).bind( "mobileinit", function(){
+       $.mobile.ns = "nstest-";
+});
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/kitchensink/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/kitchensink/index.html
new file mode 100644 (file)
index 0000000..f390407
--- /dev/null
@@ -0,0 +1,421 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="UTF-8" />
+       <title>jQuery Mobile Kitchen Sink Test Suite</title>
+       <!-- meta viewport left out on purpose for test append -->
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script src="../../../js/jquery.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../jquery.testHelper.js"></script>
+       <script src="../../../js/"></script>
+
+       <script>
+               $.testHelper.asyncLoad([
+                       [ "jquery.mobile.init" ],
+                       [ "kitchensink_core.js" ]
+               ]);
+       </script>
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css" />
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Kitchen Sink Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div data-nstest-role="page" id="default">
+       <div data-nstest-role="header" data-nstest-position="fixed" data-nstest-theme="a">
+               <h1>Fixed toolbars</h1>
+               <a href="../../" data-nstest-icon="home" data-nstest-iconpos="notext" data-nstest-direction="reverse">Home</a>
+               <a href="../nav.html" data-nstest-icon="search" data-nstest-iconpos="notext" data-nstest-rel="dialog" data-nstest-transition="fade">Search</a>
+       </div>
+
+  <div data-nstest-role="content" id="control-group-content">
+
+        <h2>Form Elements in Fieldcontains</h2>
+       <div data-nstest-role="fieldcontain">
+     <label for="name">Text Input:</label>
+     <input type="text" name="name" id="name" value=""  />
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+       <label for="textarea">Textarea:</label>
+       <textarea cols="40" rows="8" name="textarea" id="textarea"></textarea>
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+     <label for="search">Search Input:</label>
+     <input type="search" name="password" id="search" value=""  />
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+               <label for="slider2">Flip switch:</label>
+               <select name="slider2" id="slider2" data-nstest-role="slider">
+                       <option value="off">Off</option>
+                       <option value="on">On</option>
+               </select>
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+               <label for="slider">Slider:</label>
+               <input type="range" name="slider" id="slider" value="50" min="0" max="100" data-nstest-highlight="true"  />
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+       <fieldset data-nstest-role="controlgroup">
+               <legend>Choose as many snacks as you'd like:</legend>
+               <input type="checkbox" name="checkbox-1a" id="checkbox-1a" class="custom" />
+               <label for="checkbox-1a">Cheetos</label>
+
+               <input type="checkbox" name="checkbox-2a" id="checkbox-2a" class="custom" />
+               <label for="checkbox-2a">Doritos</label>
+
+               <input type="checkbox" name="checkbox-3a" id="checkbox-3a" class="custom" />
+               <label for="checkbox-3a">Fritos</label>
+
+               <input type="checkbox" name="checkbox-4a" id="checkbox-4a" class="custom" />
+               <label for="checkbox-4a">Sun Chips</label>
+    </fieldset>
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+       <fieldset data-nstest-role="controlgroup" data-nstest-type="horizontal">
+       <legend>Font styling:</legend>
+       <input type="checkbox" name="checkbox-6" id="checkbox-6" class="custom" />
+               <label for="checkbox-6">b</label>
+
+               <input type="checkbox" name="checkbox-7" id="checkbox-7" class="custom" />
+               <label for="checkbox-7"><em>i</em></label>
+
+               <input type="checkbox" name="checkbox-8" id="checkbox-8" class="custom" />
+               <label for="checkbox-8">u</label>
+    </fieldset>
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+           <fieldset data-nstest-role="controlgroup" data-nstest-theme="c">
+               <legend>Choose a pet:</legend>
+                       <input type="radio" name="radio-choice-1" id="radio-choice-1" value="choice-1" checked="checked" />
+                       <label for="radio-choice-1">Cat</label>
+
+                       <input type="radio" name="radio-choice-1" id="radio-choice-2" value="choice-2"  />
+                       <label for="radio-choice-2">Dog</label>
+
+                       <input type="radio" name="radio-choice-1" id="radio-choice-3" value="choice-3"  />
+                       <label for="radio-choice-3">Hamster</label>
+
+                       <input type="radio" name="radio-choice-1" id="radio-choice-4" value="choice-4"  />
+                       <label for="radio-choice-4">Lizard</label>
+           </fieldset>
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+           <fieldset data-nstest-role="controlgroup" data-nstest-type="horizontal">
+               <legend>Layout view:</legend>
+                       <input type="radio" name="radio-choice-b" id="radio-choice-c" value="on" checked="checked" />
+                       <label for="radio-choice-c">List</label>
+                       <input type="radio" name="radio-choice-b" id="radio-choice-d" value="off" />
+                       <label for="radio-choice-d">Grid</label>
+                       <input type="radio" name="radio-choice-b" id="radio-choice-e" value="other" />
+                       <label for="radio-choice-e">Gallery</label>
+           </fieldset>
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+               <label for="select-choice-1" class="select">Choose shipping method:</label>
+               <select name="select-choice-1" id="select-choice-1">
+                       <option value="standard">Standard: 7 day</option>
+                       <option value="rush">Rush: 3 days</option>
+                       <option value="express">Express: next day</option>
+                       <option value="overnight">Overnight</option>
+               </select>
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+               <label for="select-choice-3" class="select">Your state:</label>
+               <select name="select-choice-3" id="select-choice-3">
+                       <option value="AL">Alabama</option>
+                       <option value="AK">Alaska</option>
+                       <option value="AZ">Arizona</option>
+                       <option value="AR">Arkansas</option>
+                       <option value="CA">California</option>
+               </select>
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+               <label for="select-choice-a" class="select">Choose shipping method:</label>
+               <select name="select-choice-a" id="select-choice-a" data-nstest-native-menu="false">
+                       <option>Custom menu example</option>
+                       <option value="standard">Standard: 7 day</option>
+                       <option value="rush">Rush: 3 days</option>
+                       <option value="express">Express: next day</option>
+                       <option value="overnight">Overnight</option>
+               </select>
+       </div>
+
+  </div>
+       <div data-nstest-role="footer" id="control-group-footer" class="ui-bar" data-nstest-position="inline">
+               <div data-nstest-role="controlgroup" data-nstest-type="horizontal">
+                       <a href="index.html" data-nstest-icon="delete">Remove</a>
+                       <a href="index.html" data-nstest-icon="plus">Add</a>
+                       <a href="index.html" data-nstest-icon="arrow-u">Up</a>
+                       <a href="index.html" data-nstest-icon="arrow-d">Down</a>
+               </div>
+       </div>
+
+ <h2>Mini Form Elements</h2>
+
+    <label for="name">Text Input:</label>
+    <input type="text" name="name" id="name" value="" data-nstest-mini="true" />
+
+       <label for="textarea">Textarea:</label>
+       <textarea cols="40" rows="8" name="textarea" id="textarea" data-nstest-mini="true"></textarea>
+
+    <label for="search">Search Input:</label>
+    <input type="search" name="password" id="search" value="" data-nstest-mini="true" />
+
+       <label for="slider2">Flip switch:</label>
+       <select name="slider2" id="slider2" data-nstest-role="slider" data-nstest-mini="true">
+               <option value="off">Off</option>
+               <option value="on">On</option>
+       </select>
+
+       <div data-nstest-role="fieldcontain">
+               <label for="slider">Slider:</label>
+               <input type="range" name="slider" id="slider" value="50" min="0" max="100" data-nstest-highlight="true" data-nstest-mini="true" />
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+       <fieldset data-nstest-role="controlgroup" data-nstest-mini="true">
+               <!-- Mini set on controlgroup -->
+
+               <legend>Choose as many snacks as you'd like:</legend>
+               <input type="checkbox" name="checkbox-1a" id="checkbox-1a" class="custom" />
+               <label for="checkbox-1a">Cheetos</label>
+
+               <input type="checkbox" name="checkbox-2a" id="checkbox-2a" class="custom" />
+               <label for="checkbox-2a">Doritos</label>
+
+               <input type="checkbox" name="checkbox-3a" id="checkbox-3a" class="custom" />
+               <label for="checkbox-3a">Fritos</label>
+
+               <input type="checkbox" name="checkbox-4a" id="checkbox-4a" class="custom" />
+               <label for="checkbox-4a">Sun Chips</label>
+      </fieldset>
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+       <fieldset data-nstest-role="controlgroup" data-nstest-type="horizontal" data-nstest-mini="true">
+
+       <legend>Font styling:</legend>
+       <input type="checkbox" name="checkbox-6" id="checkbox-6" class="custom" />
+               <label for="checkbox-6">b</label>
+
+               <input type="checkbox" name="checkbox-7" id="checkbox-7" class="custom" />
+               <label for="checkbox-7"><em>i</em></label>
+
+               <input type="checkbox" name="checkbox-8" id="checkbox-8" class="custom" />
+               <label for="checkbox-8">u</label>
+      </fieldset>
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+               <input type="checkbox" name="radio-gaga" id="radio-gaga" value="choice-1" data-nstest-mini="true" data-nstest-mini="true" />
+           <label for="radio-gaga">Unchecked by Default</label>
+
+               <input type="checkbox" name="radio-googoo" id="radio-googoo" value="choice-1" data-nstest-mini="true" checked="checked" data-nstest-mini="true" />
+           <label for="radio-googoo">Checked by Default</label>
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+           <fieldset data-nstest-role="controlgroup" data-nstest-theme="c" >
+                       <!-- Mini set on individual elements. -->
+
+               <legend>Choose a pet:</legend>
+                       <input type="radio" name="radio-choice-1" id="radio-choice-1" value="choice-1" checked="checked" />
+                       <label for="radio-choice-1">Cat</label>
+
+                       <input type="radio" name="radio-choice-1" id="radio-choice-2" value="choice-2" data-nstest-mini="true"/>
+                       <label for="radio-choice-2">Dog</label>
+
+                       <input type="radio" name="radio-choice-1" id="radio-choice-3" value="choice-3" />
+                       <label for="radio-choice-3">Hamster</label>
+
+                       <input type="radio" name="radio-choice-1" id="radio-choice-4" value="choice-4" />
+                       <label for="radio-choice-4">Lizard</label>
+           </fieldset>
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+           <fieldset data-nstest-role="controlgroup" data-nstest-type="horizontal">
+               <legend>Layout view:</legend>
+                       <input type="radio" name="radio-choice-b" id="radio-choice-c" value="on" checked="checked" />
+                       <label for="radio-choice-c">List</label>
+                       <input type="radio" name="radio-choice-b" id="radio-choice-d" value="off" />
+                       <label for="radio-choice-d">Grid</label>
+                       <input type="radio" name="radio-choice-b" id="radio-choice-e" value="other" />
+                       <label for="radio-choice-e">Gallery</label>
+           </fieldset>
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+               <label for="select-choice-1" class="select">Choose shipping method:</label>
+               <select name="select-choice-1" id="select-choice-1">
+                       <option value="standard">Standard: 7 day</option>
+                       <option value="rush">Rush: 3 days</option>
+                       <option value="express">Express: next day</option>
+                       <option value="overnight">Overnight</option>
+               </select>
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+               <label for="select-choice-3" class="select">Your state:</label>
+               <select name="select-choice-3" id="select-choice-3">
+                       <option value="AL">Alabama</option>
+                       <option value="AK">Alaska</option>
+                       <option value="AZ">Arizona</option>
+                       <option value="AR">Arkansas</option>
+                       <option value="CA">California</option>
+               </select>
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+               <label for="select-choice-a" class="select">Choose shipping method:</label>
+               <select name="select-choice-a" id="select-choice-a" data-nstest-native-menu="false">
+                       <option>Custom menu example</option>
+                       <option value="standard">Standard: 7 day</option>
+                       <option value="rush">Rush: 3 days</option>
+                       <option value="express">Express: next day</option>
+                       <option value="overnight">Overnight</option>
+               </select>
+       </div>
+
+       <div data-nstest-role="footer" id="control-group-footer" class="ui-bar" data-nstest-position="inline">
+               <div data-nstest-role="controlgroup" data-nstest-type="horizontal">
+                       <a href="index.html" data-nstest-icon="delete">Remove</a>
+                       <a href="index.html" data-nstest-icon="plus">Add</a>
+                       <a href="index.html" data-nstest-icon="arrow-u">Up</a>
+                       <a href="index.html" data-nstest-icon="arrow-d">Down</a>
+               </div>
+       </div>
+
+
+               <h2>Simple list</h2>
+
+               <ul data-nstest-role="listview">
+                       <li><a href="index.html">Acura</a></li>
+                       <li><a href="index.html">Audi</a></li>
+                       <li><a href="index.html">BMW</a></li>
+               </ul>
+
+               <h2>Mini list</h2>
+               <ul data-nstest-role="listview" data-nstest-mini="true">
+                       <li><a href="index.html">Cooper</a></li>
+                       <li><a href="index.html">Cooper S</a></li>
+                       <li><a href="index.html">Clubman</a></li>
+               </ul>
+
+               <h2>Individual mini item</h2>
+               <ul data-nstest-role="listview">
+                       <li><a href="index.html">Cooper</a></li>
+                       <li data-nstest-mini="true"><a href="index.html">Cooper S</a></li>
+                       <li><a href="index.html">Clubman</a></li>
+               </ul>
+
+
+
+
+       <h2>Count bubbles</h2>
+       <ul data-nstest-role="listview">
+               <li><a href="index.html">Inbox <span class="ui-li-count">12</span></a></li>
+                       <li><a href="index.html">Outbox <span class="ui-li-count">0</span></a></li>
+                       <li><a href="index.html">Drafts <span class="ui-li-count">4</span></a></li>
+                       <li><a href="index.html">Sent <span class="ui-li-count">328</span></a></li>
+                       <li><a href="index.html">Trash <span class="ui-li-count">62</span></a></li>
+       </ul>
+
+       <h2>Numbered list</h2>
+               <ol data-nstest-role="listview">
+                       <li><a href="index.html">The Godfather</a></li>
+                       <li><a href="index.html">Inception</a></li>
+                       <li><a href="index.html">The Good, the Bad and the Ugly </a></li>
+                       <li><a href="index.html">Pulp Fiction</a></li>
+                       <li><a href="index.html">Schindler's List</a></li>
+               </ol>
+
+       <h2>Divided, formatted content</h2>
+       <ul data-nstest-role="listview">
+               <li><a href="index.html">
+                       <h3>Stephen Weber</h3>
+                       <p><strong>You've been invited to a meeting at Filament Group in Boston, MA</strong></p>
+                       <p>Hey Stephen, if you're available at 10am tomorrow, we've got a meeting with the jQuery team.</p>
+                       <p class="ui-li-aside"><strong>6:24</strong>PM</p>
+               </a></li>
+               <li><a href="index.html">
+                       <h3>jQuery Team</h3>
+                       <p><strong>Boston Conference Planning</strong></p>
+                       <p>In preparation for the upcoming conference in Boston, we need to start gathering a list of sponsors and speakers.</p>
+                       <p class="ui-li-aside"><strong>9:18</strong>AM</p>
+               </a></li>
+       </ul>
+
+
+
+       <h2>Icon list</h2>
+       <ul data-nstest-role="listview" data-nstest-theme="a">
+               <li><a href="index.html"><img src="../../../docs/lists/../../../docs/lists/images/gf.png" alt="France" class="ui-li-icon">France <span class="ui-li-count">4</span></a></li>
+               <li><a href="index.html"><img src="../../../docs/lists/images/de.png" alt="Germany" class="ui-li-icon">Germany <span class="ui-li-count">4</span></a></li>
+               <li data-nstest-theme="b"><a href="index.html"><img src="../../../docs/lists/images/gb.png" alt="Great Britain" class="ui-li-icon">Great Britain <span class="ui-li-count">0</span></a></li>
+               <li><a href="index.html"><img src="../../../docs/lists/images/fi.png" alt="Finland" class="ui-li-icon">Finland <span class="ui-li-count">12</span></a></li>
+               <li><a href="index.html"><img src="../../../docs/lists/images/sj.png" alt="Norway" class="ui-li-icon">Norway <span class="ui-li-count">328</span></a></li>
+               <li><a href="index.html"><img src="../../../docs/lists/images/us.png" alt="United States" class="ui-li-icon">United States <span class="ui-li-count">62</span></a></li>
+       </ul>
+
+       <h2>Thumbnail, split button list</h2>
+
+               <ul data-nstest-role="listview">
+                       <li><a href="index.html">
+                       <img src="../../../docs/lists/images/album-bb.jpg" />
+                       <h3>Broken Bells</h3>
+                       <p>Broken Bells</p>
+                       </a><a href="lists-split-purchase.html" data-nstest-rel="dialog" data-nstest-transition="slideup">Purchase album
+               </a></li>
+               <li><a href="index.html">
+                       <img src="../../../docs/lists/images/album-hc.jpg" />
+                       <h3>Warning</h3>
+                       <p>Hot Chip</p>
+               </a><a href="lists-split-purchase.html" data-nstest-rel="dialog" data-nstest-transition="slideup">Purchase album
+               </a></li>
+               <li><a href="index.html">
+                       <img src="../../../docs/lists/images/album-p.jpg" />
+                       <h3>Wolfgang Amadeus Phoenix</h3>
+                       <p>Phoenix</p>
+                       </a><a href="lists-split-purchase.html" data-nstest-rel="dialog" data-nstest-transition="slideup">Purchase album
+               </a></li>
+               </ul>
+
+       <h2>Divided, filterable list</h2>
+               <ul data-nstest-role="listview" data-nstest-filter="true">
+                       <li data-nstest-role="list-divider">A</li>
+                       <li><a href="index.html">Adam Kinkaid</a></li>
+                       <li><a href="index.html">Alex Wickerham</a></li>
+                       <li><a href="index.html">Avery Johnson</a></li>
+                       <li data-nstest-role="list-divider">B</li>
+                       <li><a href="index.html">Bob Cabot</a></li>
+                       <li data-nstest-role="list-divider">C</li>
+                       <li><a href="index.html">Caleb Booth</a></li>
+                       <li><a href="index.html">Christopher Adams</a></li>
+               </ul>
+
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/kitchensink/kitchensink_core.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/kitchensink/kitchensink_core.js
new file mode 100644 (file)
index 0000000..8f31310
--- /dev/null
@@ -0,0 +1,13 @@
+/*
+ * Kitchen Sink Tests
+ */
+(function($){
+       module("kitchen sink class test");
+
+       test( "Nothing on the page has a class that contains `undefined`.", function(){
+               var undefClass = $(".ui-page").find("[class*='undefined']");
+
+               ok( undefClass.length == 0 );
+       });
+
+})(jQuery);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/cache-tests/cached-nested.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/cache-tests/cached-nested.html
new file mode 100644 (file)
index 0000000..c6fbcdf
--- /dev/null
@@ -0,0 +1,55 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="utf-8">
+  </head>
+  <body>
+    <div data-nstest-role="page" id='cached-nested-list' data-nstest-dom-cache="true">
+      <div data-nstest-role="header" data-nstest-position="inline">
+        <h1>Basic multiple lists view</h1>
+      </div>
+      <div data-nstest-role="content">
+        <ul data-nstest-role="listview" data-nstest-inset="true" id="topmost">
+          <li>Item 1</li>
+          <li>Item 2</li>
+          <li>Item 3
+            <ul data-nstest-role="listview">
+              <li>Item A-3-0</li>
+              <li>Item A-3-1</li>
+              <li>Item A-3-2</li>
+            </ul>
+          </li>
+        </ul>
+        <ul data-nstest-role="listview" data-nstest-inset="true">
+          <li>Item 1</li>
+          <li>Item 2</li>
+          <li>Item 3
+            <ul data-nstest-role="listview">
+              <li>Item B-3-0
+                <ul data-nstest-role="listview">
+                  <li>Item B-3-0-0</li>
+                  <li>Item B-3-0-1
+                    <ul data-nstest-role="listview">
+                      <li>Item B-3-0-1-0</li>
+                      <li>Item B-3-0-1-1</li>
+                      <li>Item B-3-0-1-2</li>
+                    </ul>
+                  </li>
+                  <li>Item B-3-0-2</li>
+                </ul>
+              </li>
+              <li>Item B-3-1
+                <ul data-nstest-role="listview">
+                  <li>Item B-3-1-0</li>
+                  <li>Item B-3-1-1</li>
+                  <li>Item B-3-1-2</li>
+                </ul>
+              </li>
+              <li>Item B-3-2</li>
+            </ul>
+          </li>
+        </ul>
+      </div>
+    </div>
+  </body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/cache-tests/clear.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/cache-tests/clear.html
new file mode 100644 (file)
index 0000000..c86bd96
--- /dev/null
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+</head>
+<body>
+  <div data-nstest-role="page" id="clear">
+    <div data-nstest-role="content">
+      cleared
+    </div>
+  </div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/cache-tests/uncached-nested.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/cache-tests/uncached-nested.html
new file mode 100644 (file)
index 0000000..4a3e8d6
--- /dev/null
@@ -0,0 +1,55 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="utf-8">
+  </head>
+  <body>
+    <div data-nstest-role="page" id='uncached-nested-list'>
+      <div data-nstest-role="header" data-nstest-position="inline">
+        <h1>Basic multiple lists view</h1>
+      </div>
+      <div data-nstest-role="content">
+        <ul data-nstest-role="listview" data-nstest-inset="true" id="topmost">
+          <li>Item 1</li>
+          <li>Item 2</li>
+          <li>Item 3
+            <ul data-nstest-role="listview">
+              <li>Item A-3-0</li>
+              <li>Item A-3-1</li>
+              <li>Item A-3-2</li>
+            </ul>
+          </li>
+        </ul>
+        <ul data-nstest-role="listview" data-nstest-inset="true">
+          <li>Item 1</li>
+          <li>Item 2</li>
+          <li>Item 3
+            <ul data-nstest-role="listview">
+              <li>Item B-3-0
+                <ul data-nstest-role="listview">
+                  <li>Item B-3-0-0</li>
+                  <li>Item B-3-0-1
+                    <ul data-nstest-role="listview">
+                      <li>Item B-3-0-1-0</li>
+                      <li>Item B-3-0-1-1</li>
+                      <li>Item B-3-0-1-2</li>
+                    </ul>
+                  </li>
+                  <li>Item B-3-0-2</li>
+                </ul>
+              </li>
+              <li>Item B-3-1
+                <ul data-nstest-role="listview">
+                  <li>Item B-3-1-0</li>
+                  <li>Item B-3-1-1</li>
+                  <li>Item B-3-1-2</li>
+                </ul>
+              </li>
+              <li>Item B-3-2</li>
+            </ul>
+          </li>
+        </ul>
+      </div>
+    </div>
+  </body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/index.html
new file mode 100644 (file)
index 0000000..0317c4a
--- /dev/null
@@ -0,0 +1,363 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile Listview Integration Test</title>
+
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../jquery.testHelper.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [
+                               "jquery.mobile.navigation",
+                               "jquery.mobile.listview",
+                               "jquery.mobile.listview.filter",
+                       ],
+                       [ "jquery.mobile.init" ],
+                       [
+                               "listview_core.js"
+                       ]
+               ]);
+       </script>
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css" />
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Listview Integration Test</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<!-- Basic Linked view test -->
+<div data-nstest-role="page" id='basic-linked-test'>
+       <div data-nstest-role="header" data-nstest-position="inline">
+               <h1>Basic List View</h1>
+       </div>
+       <div data-nstest-role="content">
+               <ul data-nstest-role="listview">
+                       <li><a href="#basic-link-results">Home</a></li>
+                       <li><a href="#basic-link-results">Back</a></li>
+                       <li><a href="#basic-link-results">Return</a></li>
+                       <li><a href="#nested-list-test" id="nested-list-test-anchor">Nested List Test</a></li>
+               </ul>
+       </div>
+  <a href="cache-tests/nested.html" id="cached-tests"></a>
+</div>
+
+<div data-nstest-role='page' id='basic-link-results'>
+       <div data-nstest-role="header" data-nstest-position="inline">
+               <h1>Results</h1>
+       </div>
+</div>
+
+<!-- Nested List -->
+<div data-nstest-role="page" id='nested-list-test'>
+       <div data-nstest-role="header" data-nstest-position="inline">
+               <h1>Basic List View</h1>
+       </div>
+       <div data-nstest-role="content">
+               <ul data-nstest-role="listview">
+                       <li>Groups of animals
+                               <ul>
+                                       <li>pod of whales</li>
+                                       <li>quiver of cobras</li>
+                                       <li>troop of baboons</li>
+                               </ul>
+                       </li>
+                       <li class="linebreaknode">
+
+                       More animals
+
+
+                               <ul>
+                                       <li>Shoal of Bass</li>
+                                       <li>Rhumba of rattlesnakes</li>
+                               </ul>
+                       </li>
+               </ul>
+       </div>
+</div>
+
+
+<div data-nstest-role="page" id='nested-lists-test'>
+       <div data-nstest-role="header" data-nstest-position="inline">
+               <h1>Basic multiple lists view</h1>
+       </div>
+    <div data-nstest-role="content">
+        <ul data-nstest-role="listview" data-nstest-inset="true">
+            <li>Item 1</li>
+            <li>Item 2</li>
+            <li>Item 3
+                <ul data-nstest-role="listview">
+                    <li>Item A-3-0</li>
+                    <li>Item A-3-1</li>
+                    <li>Item A-3-2</li>
+                </ul>
+            </li>
+        </ul>
+        <ul data-nstest-role="listview" data-nstest-inset="true">
+            <li>Item 1</li>
+            <li>Item 2</li>
+            <li>Item 3
+                <ul data-nstest-role="listview">
+                    <li>Item B-3-0
+                        <ul data-nstest-role="listview">
+                                                       <li>Item B-3-0-0</li>
+                                                       <li>Item B-3-0-1
+                                                               <ul data-nstest-role="listview">
+                                                                       <li>Item B-3-0-1-0</li>
+                                                                       <li>Item B-3-0-1-1</li>
+                                                                       <li>Item B-3-0-1-2</li>
+                                                               </ul>
+                                                       </li>
+                                                       <li>Item B-3-0-2</li>
+                                               </ul>
+                    </li>
+                    <li>Item B-3-1
+                                               <ul data-nstest-role="listview">
+                                                       <li>Item B-3-1-0</li>
+                                                       <li>Item B-3-1-1</li>
+                                                       <li>Item B-3-1-2</li>
+                                               </ul>
+                    </li>
+                    <li>Item B-3-2</li>
+                </ul>
+            </li>
+        </ul>
+    </div>
+</div>
+
+<!-- Numbered List -->
+<div data-nstest-role="page" id='numbered-list-test'>
+       <div data-nstest-role="header" data-nstest-position="inline">
+               <h1>Basic List View</h1>
+       </div>
+       <div data-nstest-role="content">
+                       <ol data-nstest-role="listview">
+                               <li><a href="#numbered-list-results">Number 1</a></li>
+                               <li><a href="#numbered-list-results">Number 2</a></li>
+                               <li><a href="#numbered-list-results">Number 3</a></li>
+                       </ol>
+       </div>
+</div>
+
+<div data-nstest-role='page' id='numbered-list-results'>
+       <div data-nstest-role="header" data-nstest-position="inline">
+               <h1>Numbered List</h1>
+       </div>
+</div>
+
+<!-- Read only List -->
+<div data-nstest-role="page" id='read-only-list-test'>
+       <div data-nstest-role="header" data-nstest-position="inline">
+               <h1>Basic List View</h1>
+       </div>
+       <div data-nstest-role="content">
+               <ul data-nstest-role="listview">
+                       <li>Read</li>
+                       <li>Only</li>
+                       <li>List</li>
+                       <li>View</li>
+               </ul>
+       </div>
+</div>
+
+<!-- Split listview -->
+<div data-nstest-role="page" id='split-list-test'>
+       <div data-nstest-role="header" data-nstest-position="inline">
+               <h1>Split List View</h1>
+       </div>
+       <div data-nstest-role="content">
+               <ul data-nstest-role="listview">
+                       <li>
+                               <a href="#split-list-link1">link one</a>
+                               <a href="#split-list-link2">link second</a>
+                       </li>
+                       <li>
+                               <a href="#split-list-link1">link one</a>
+                               <a href="#split-list-link2">link second</a>
+                       </li>
+                       <li>
+                               <a href="#split-list-link1">link one</a>
+                               <a href="#split-list-link2">link second</a>
+                       </li>
+               </ul>
+       </div>
+</div>
+
+<div data-nstest-role="page" id='split-list-link1'>
+       <div data-nstest-role="header" data-nstest-position="inline">
+               <h1>Split List view 1</h1>
+       </div>
+</div>
+
+<div data-nstest-role="page" id='split-list-link2'>
+       <div data-nstest-role="header" data-nstest-position="inline">
+               <h1>Split List view 2</h1>
+       </div>
+</div>
+
+<!-- List divider -->
+<div data-nstest-role="page" id='list-divider-test'>
+       <div data-nstest-role="header" data-nstest-position="inline">
+               <h1>List Divider Test</h1>
+       </div>
+       <div data-nstest-role="content">
+               <ul data-nstest-role="listview">
+                       <li>a is for aquaman</li>
+                       <li>b is for batman</li>
+                       <li data-nstest-role="list-divider">This is a list divider</li>
+                       <li>c is for catwoman</li>
+                       <li data-nstest-role="list-divider">This is another list divider</li>
+                       <li>d is for darkwing</li>
+               </ul>
+       </div>
+</div>
+
+<!-- Search bar filter -->
+<div data-nstest-role="page" id='search-filter-test'>
+       <div data-nstest-role="header" data-nstest-position="inline">
+               <h1>Split List View</h1>
+       </div>
+       <div data-nstest-role="content">
+               <ul data-nstest-role="listview" data-nstest-filter="true">
+                       <li>a is for aquaman</li>
+                       <li>b is for batman</li>
+                       <li>c is for catwoman</li>
+                       <li>d is for darkwing</li>
+               </ul>
+       </div>
+</div>
+
+<!-- Search bar filter with list-dividers -->
+<div data-nstest-role="page" id='search-filter-with-dividers-test'>
+       <div data-nstest-role="header" data-nstest-position="inline">
+               <h1>Split List View</h1>
+       </div>
+       <div data-nstest-role="content">
+               <ul data-nstest-role="listview" data-nstest-filter="true">
+                       <li data-nstest-role="list-divider">a</li>
+                       <li>a is for aquaman</li>
+                       <li data-nstest-role="list-divider">b</li>
+                       <li>b is for batman</li>
+                       <li data-nstest-role="list-divider">c</li>
+                       <li>c is for catwoman</li>
+                       <li data-nstest-role="list-divider">d</li>
+                       <li>d is for darkwing</li>
+               </ul>
+       </div>
+</div>
+
+<!-- Search bar filter inset -->
+<div data-nstest-role="page" id='search-filter-inset-test'>
+       <div data-nstest-role="header" data-nstest-position="inline">
+               <h1>Inset Filter List View</h1>
+       </div>
+       <div data-nstest-role="content">
+               <ul data-nstest-role="listview" data-nstest-filter="true" data-nstest-inset="true">
+                       <li>a is for aquaman</li>
+                       <li>b is for batman</li>
+                       <li>c is for catwoman</li>
+                       <li>d is for darkwing</li>
+               </ul>
+       </div>
+</div>
+
+<!-- Programmatically generated list items !-->
+<div data-nstest-role="page" id="programmatically-generated-list">
+       <ul data-nstest-role="listview" data-nstest-inset="true" id="programmatically-generated-list-items"></ul>
+</div>
+
+<!-- Removing items from list -->
+<div data-nstest-role="page" id='removing-items-from-list-test'>
+       <div data-nstest-role="header" data-nstest-position="inline">
+               <h1>Basic List View</h1>
+       </div>
+       <div data-nstest-role="content">
+               <ul data-nstest-role="listview" data-nstest-inset="true">
+                       <li>Item 1</li>
+                       <li>Item 2</li>
+                       <li>Item 3</li>
+                       <li>Item 4</li>
+               </ul>
+       </div>
+</div>
+
+<!-- Rounded corners inset list with variable items -->
+<div data-nstest-role="page" id='corner-rounded-test'>
+       <div data-nstest-role="header" data-nstest-position="inline">
+               <h1>Basic List View</h1>
+       </div>
+       <div data-nstest-role="content">
+               <ul data-nstest-role="listview" data-nstest-inset="true">
+               </ul>
+       </div>
+</div>
+
+<div data-nstest-role="page" id="enhancetest">
+       <ul data-nstest-role="listview">
+               <li><a href="#basic-link-results">Home</a></li>
+               <li><a href="#basic-link-results">Back</a></li>
+               <li><a href="#basic-link-results">Return</a></li>
+       </ul>
+</div>
+
+<div id="list-theme-inherit" data-nstest-theme="b">
+  <ul data-nstest-role="listview">
+    <li>foo</li>
+  </ul>
+</div>
+
+<div data-nstest-role="page" id="ui-li-has-test">
+  <div data-nstest-role="content">
+       <p>Right padding on item 1 is OK (75px).</p>
+       <p>Right padding on items 2 &amp; 3 should probably be around 30 or 35 (not 25).</p>
+       <p>Right padding on item 4 should be 15px to match the left side.</p>
+       <ol data-nstest-role="listview" data-nstest-inset="true">
+         <li><a href="#">Link LI with counter --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<span class="ui-li-count">123</span></a></li>
+         <li><a href="#">Link LI without counter -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</a></li>
+         <li><a href="#page1">Page1 Link LI without counter -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</a><a href="#page2"></a></li>
+         <li>Static LI with counter ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<span class="ui-li-count">123</span></li>
+         <li>Static LI without counter ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</li>
+       </ol>
+  </div>
+</div>
+
+
+<div id="list-inset-filter-prototype" data-nstest-theme="b">
+       <ul data-nstest-role="listview" data-nstest-filter="true">
+               <li>foo</li>
+               <li>bar</li>
+       </ul>
+</div>
+
+<div id="list-inset-filter-data-attr" data-nstest-theme="b">
+       <ul data-nstest-role="listview" data-nstest-filter="true" data-nstest-inset="true">
+               <li>foo</li>
+               <li>bar</li>
+       </ul>
+</div>
+
+
+<div data-nstest-role="page" id="split-list-icon">
+       <div data-nstest-role="content">
+               <ul data-nstest-role="listview" data-nstest-split-icon="delete">
+                       <li data-nstest-icon="star"><a href="#">Star</a><a href="#">Star</a></li>
+                       <li data-nstest-icon="plug"><a href="#">Plus</a><a href="#">Plus</a></li>
+                       <li><a href="#">Default</a><a href="#">Default</a></li>
+      <!-- respect the child element icon -->
+                       <li data-nstest-icon="star"><a href="#">Default</a><a data-nstest-icon="plug" href="#">Default</a></li>
+               </ul>
+       </div>
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/listview_core.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/listview_core.js
new file mode 100644 (file)
index 0000000..7652c8b
--- /dev/null
@@ -0,0 +1,857 @@
+/*
+ * mobile listview unit tests
+ */
+
+// TODO split out into seperate test files
+(function($){
+       var home = $.mobile.path.parseUrl( location.href ).pathname + location.search,
+               insetVal = $.mobile.listview.prototype.options.inset;
+
+       $.mobile.defaultTransition = "none";
+
+       module( "Basic Linked list", {
+               setup: function(){
+                       if( location.hash != "#basic-linked-test" ){
+                               stop();
+
+                               $(document).one("pagechange", function() {
+                                       start();
+                               });
+
+                               $.mobile.changePage( home );
+                       }
+               },
+
+               teardown: function() {
+                       $.mobile.listview.prototype.options.inset = insetVal;
+               }
+       });
+
+       asyncTest( "The page should enhanced correctly", function(){
+               setTimeout(function() {
+                       ok($('#basic-linked-test .ui-li').length, ".ui-li classes added to li elements");
+                       start();
+               }, 800);
+       });
+
+       asyncTest( "Slides to the listview page when the li a is clicked", function() {
+               $.testHelper.pageSequence([
+                       function(){
+                               $.mobile.changePage("#basic-linked-test");
+                       },
+
+                       function(){
+                               $('#basic-linked-test li a').first().click();
+                       },
+
+                       function(){
+                               ok($('#basic-link-results').hasClass('ui-page-active'));
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "Slides back to main page when back button is clicked", function() {
+               $.testHelper.pageSequence([
+                       function(){
+                               $.mobile.changePage("#basic-link-results");
+                       },
+
+                       function(){
+                               window.history.back();
+                       },
+
+                       function(){
+                               ok($('#basic-linked-test').hasClass('ui-page-active'));
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "Presence of ui-li-has- classes", function(){
+               $.testHelper.pageSequence( [
+                       function() {
+                               $.mobile.changePage( "#ui-li-has-test" );
+                       },
+
+                       function() {
+                               var page = $( ".ui-page-active" ),
+                                       items = page.find( "li" );
+
+                               ok(  items.eq( 0 ).hasClass( "ui-li-has-count"), "First LI should have ui-li-has-count class" );
+                               ok(  items.eq( 0 ).hasClass( "ui-li-has-arrow"), "First LI should have ui-li-has-arrow class" );
+                               ok( !items.eq( 1 ).hasClass( "ui-li-has-count"), "Second LI should NOT have ui-li-has-count class" );
+                               ok(  items.eq( 1 ).hasClass( "ui-li-has-arrow"), "Second LI should have ui-li-has-arrow class" );
+                               ok( !items.eq( 2 ).hasClass( "ui-li-has-count"), "Third LI should NOT have ui-li-has-count class" );
+                               ok( !items.eq( 2 ).hasClass( "ui-li-has-arrow"), "Third LI should NOT have ui-li-has-arrow class" );
+                               ok(  items.eq( 3 ).hasClass( "ui-li-has-count"), "Fourth LI should have ui-li-has-count class" );
+                               ok( !items.eq( 3 ).hasClass( "ui-li-has-arrow"), "Fourth LI should NOT have ui-li-has-arrow class" );
+                               ok( !items.eq( 4 ).hasClass( "ui-li-has-count"), "Fifth LI should NOT have ui-li-has-count class" );
+                               ok( !items.eq( 4 ).hasClass( "ui-li-has-arrow"), "Fifth LI should NOT have ui-li-has-arrow class" );
+                               start();
+                       }
+               ]);
+       });
+
+       module('Nested List Test');
+
+       asyncTest( "Changes page to nested list test and enhances", function() {
+               $.testHelper.pageSequence([
+                       function(){
+                               $.mobile.changePage("#nested-list-test");
+                       },
+
+                       function(){
+                               ok($('#nested-list-test').hasClass('ui-page-active'), "makes nested list test page active");
+                               ok($(':jqmData(url="nested-list-test&ui-page=0-0")').length == 1, "Adds first UL to the page");
+                               ok($(':jqmData(url="nested-list-test&ui-page=0-1")').length == 1, "Adds second nested UL to the page");
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "change to nested page when the li a is clicked", function() {
+
+               $.testHelper.pageSequence([
+                       function(){
+                               $.mobile.changePage("#nested-list-test");
+                       },
+
+                       function(){
+                               $('.ui-page-active li:eq(1) a:eq(0)').click();
+                       },
+
+                       function(){
+                               var $new_page = $(':jqmData(url="nested-list-test&ui-page=0-0")');
+
+                               ok($new_page.hasClass('ui-page-active'), 'Makes the nested page the active page.');
+                               ok($('.ui-listview', $new_page).find(":contains('Rhumba of rattlesnakes')").length == 1, "The current page should have the proper text in the list.");
+                               ok($('.ui-listview', $new_page).find(":contains('Shoal of Bass')").length == 1, "The current page should have the proper text in the list.");
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "should go back to top level when the back button is clicked", function() {
+               $.testHelper.pageSequence([
+                       function(){
+                               $.mobile.changePage("#nested-list-test&ui-page=0-0");
+                       },
+
+                       function(){
+                               window.history.back();
+                       },
+
+                       function(){
+                               ok($('#nested-list-test').hasClass('ui-page-active'), 'Transitions back to the parent nested page');
+                               start();
+                       }
+               ]);
+       });
+
+       test( "nested list title should use first text node, regardless of line breaks", function(){
+               // NOTE this is a super fragile reference to the nested page, any change to the list will break it
+               ok($(":jqmData(url='nested-list-test&ui-page=0-0') .ui-title").text() === "More animals", 'Text should be "More animals"');
+       });
+
+       asyncTest( "Multiple nested lists on a page with same labels", function() {
+               $.testHelper.pageSequence([
+                       function(){
+                               // https://github.com/jquery/jquery-mobile/issues/1617
+                               $.mobile.changePage("#nested-lists-test");
+                       },
+
+                       function(){
+                               // Click on the link of the third li element
+                               $('.ui-page-active li:eq(2) a:eq(0)').click();
+                       },
+
+                       function(){
+                               equal($('.ui-page-active .ui-content .ui-listview li').text(), "Item A-3-0Item A-3-1Item A-3-2", 'Text should be "Item A-3-0Item A-3-1Item A-3-2"');
+                               start();
+                       }
+               ]);
+       });
+
+       module('Ordered Lists');
+
+       asyncTest( "changes to the numbered list page and enhances it", function() {
+               $.testHelper.pageSequence([
+                       function(){
+                               $.mobile.changePage("#numbered-list-test");
+                       },
+
+                       function(){
+                               var $new_page = $('#numbered-list-test');
+                               ok($new_page.hasClass('ui-page-active'), "Makes the new page active when the hash is changed.");
+                               ok($('.ui-link-inherit', $new_page).first().text() == "Number 1", "The text of the first LI should be Number 1");
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "changes to number 1 page when the li a is clicked", function() {
+               $.testHelper.pageSequence([
+                       function(){
+                               $('#numbered-list-test li a').first().click();
+                       },
+
+                       function(){
+                               ok($('#numbered-list-results').hasClass('ui-page-active'), "The new numbered page was transitioned correctly.");
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "takes us back to the numbered list when the back button is clicked", function() {
+               $.testHelper.pageSequence([
+                       function(){
+                               $.mobile.changePage('#numbered-list-test');
+                       },
+
+                       function(){
+                               $.mobile.changePage('#numbered-list-results');
+                       },
+
+                       function(){
+                               window.history.back();
+                       },
+
+                       function(){
+                               ok($('#numbered-list-test').hasClass('ui-page-active'));
+                               start();
+                       }
+               ]);
+       });
+
+       module('Read only list');
+
+       asyncTest( "changes to the read only page when hash is changed", function() {
+               $.testHelper.pageSequence([
+                       function(){
+                               $.mobile.changePage("#read-only-list-test");
+                       },
+
+                       function(){
+                               var $new_page = $('#read-only-list-test');
+                               ok($new_page.hasClass('ui-page-active'), "makes the read only page the active page");
+                               ok($('li', $new_page).first().text() === "Read", "The first LI has the proper text.");
+                               start();
+                       }
+               ]);
+       });
+
+       module('Split view list');
+
+       asyncTest( "changes the page to the split view list and enhances it correctly.", function() {
+               $.testHelper.pageSequence([
+                       function(){
+                               $.mobile.changePage("#split-list-test");
+                       },
+
+                       function(){
+                               var $new_page = $('#split-list-test');
+                               ok($('.ui-li-link-alt', $new_page).length == 3);
+                               ok($('.ui-link-inherit', $new_page).length == 3);
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "change the page to the split view page 1 when the first link is clicked", function() {
+               $.testHelper.pageSequence([
+                       function(){
+                               $.mobile.changePage("#split-list-test");
+                       },
+
+                       function(){
+                               $('.ui-page-active .ui-li a:eq(0)').click();
+                       },
+
+                       function(){
+                               ok($('#split-list-link1').hasClass('ui-page-active'));
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "Slide back to the parent list view when the back button is clicked", function() {
+               $.testHelper.pageSequence([
+                       function(){
+                               $.mobile.changePage("#split-list-test");
+                       },
+
+                       function(){
+                               $('.ui-page-active .ui-listview a:eq(0)').click();
+                       },
+
+                       function(){
+                               history.back();
+                       },
+
+                       function(){
+                               ok($('#split-list-test').hasClass('ui-page-active'));
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "Clicking on the icon (the second link) should take the user to other a href of this LI", function() {
+               $.testHelper.pageSequence([
+                       function(){
+                               $.mobile.changePage("#split-list-test");
+                       },
+
+                       function(){
+                               $('.ui-page-active .ui-li-link-alt:eq(0)').click();
+                       },
+
+                       function(){
+                               ok($('#split-list-link2').hasClass('ui-page-active'));
+                               start();
+                       }
+               ]);
+       });
+
+       module( "List Dividers" );
+
+       asyncTest( "Makes the list divider page the active page and enhances it correctly.", function() {
+               $.testHelper.pageSequence([
+                       function(){
+                               $.mobile.changePage("#list-divider-test");
+                       },
+
+                       function(){
+                               var $new_page = $('#list-divider-test');
+                               ok($new_page.find('.ui-li-divider').length == 2);
+                               ok($new_page.hasClass('ui-page-active'));
+                               start();
+                       }
+               ]);
+       });
+
+       module( "Search Filter");
+
+       var searchFilterId = "#search-filter-test";
+
+
+       asyncTest( "Filter downs results when the user enters information", function() {
+               var $searchPage = $(searchFilterId);
+               $.testHelper.pageSequence([
+                       function() {
+                               $.mobile.changePage(searchFilterId);
+                       },
+
+                       function() {
+                               $searchPage.find('input').val('at');
+                               $searchPage.find('input').trigger('change');
+
+                               same($searchPage.find('li.ui-screen-hidden').length, 2);
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "Redisplay results when user removes values", function() {
+               var $searchPage = $(searchFilterId);
+               $.testHelper.pageSequence([
+                       function() {
+                               $.mobile.changePage(searchFilterId);
+                       },
+
+                       function() {
+                               $searchPage.find('input').val('a');
+                               $searchPage.find('input').trigger('change');
+
+                               same($searchPage.find("li[style^='display: none;']").length, 0);
+                               start();
+                       }
+               ]);
+       });
+
+    asyncTest( "Filter works fine with \\W- or regexp-special-characters", function() {
+        var $searchPage = $(searchFilterId);
+        $.testHelper.pageSequence([
+            function() {
+                $.mobile.changePage(searchFilterId);
+            },
+
+            function() {
+                $searchPage.find('input').val('*');
+                $searchPage.find('input').trigger('change');
+
+                same($searchPage.find('li.ui-screen-hidden').length, 4);
+                start();
+            }
+        ]);
+    });
+
+       test( "Refresh applies thumb styling", function(){
+               var ul = $('.ui-page-active ul');
+
+               ul.append("<li id='fiz'><img/></li>");
+               ok(!ul.find("#fiz img").hasClass("ui-li-thumb"));
+               ul.listview('refresh');
+               ok(ul.find("#fiz img").hasClass("ui-li-thumb"));
+       });
+
+       asyncTest( "Filter downs results and dividers when the user enters information", function() {
+               var     $searchPage = $("#search-filter-with-dividers-test");
+               $.testHelper.pageSequence([
+                       function() {
+                               $.mobile.changePage("#search-filter-with-dividers-test");
+                       },
+
+                       // wait for the page to become active/enhanced
+                       function(){
+                               $searchPage.find('input').val('at');
+                               $searchPage.find('input').trigger('change');
+                               setTimeout(function() {
+                                       //there should be four hidden list entries
+                                       same($searchPage.find('li.ui-screen-hidden').length, 4);
+
+                                       //there should be two list entries that are list dividers and hidden
+                                       same($searchPage.find('li.ui-screen-hidden:jqmData(role=list-divider)').length, 2);
+
+                                       //there should be two list entries that are not list dividers and hidden
+                                       same($searchPage.find('li.ui-screen-hidden:not(:jqmData(role=list-divider))').length, 2);
+                                       start();
+                               }, 1000);
+                       }
+               ]);
+       });
+
+       asyncTest( "Redisplay results when user removes values", function() {
+               $.testHelper.pageSequence([
+                       function() {
+                               $.mobile.changePage("#search-filter-with-dividers-test");
+                       },
+
+                       function() {
+                               $('.ui-page-active input').val('a');
+                               $('.ui-page-active input').trigger('change');
+
+                               setTimeout(function() {
+                                       same($('.ui-page-active input').val(), 'a');
+                                       same($('.ui-page-active li[style^="display: none;"]').length, 0);
+                                       start();
+                               }, 1000);
+                       }
+               ]);
+       });
+
+       asyncTest( "Dividers are hidden when preceding hidden rows and shown when preceding shown rows", function () {
+               $.testHelper.pageSequence([
+                       function() {
+                               $.mobile.changePage("#search-filter-with-dividers-test");
+                       },
+
+                       function() {
+                               var $page = $('.ui-page-active');
+
+                               $page.find('input').val('at');
+                               $page.find('input').trigger('change');
+
+                               setTimeout(function() {
+                                       same($page.find('li:jqmData(role=list-divider):hidden').length, 2);
+                                       same($page.find('li:jqmData(role=list-divider):hidden + li:not(:jqmData(role=list-divider)):hidden').length, 2);
+                                       same($page.find('li:jqmData(role=list-divider):not(:hidden) + li:not(:jqmData(role=list-divider)):not([:hidden)').length, 2);
+                                       start();
+                               }, 1000);
+                       }
+               ]);
+       });
+
+       asyncTest( "Inset List View should refresh corner classes after filtering", 4 * 2, function () {
+               var checkClasses = function() {
+                       var $page = $( ".ui-page-active" ),
+                               $li = $page.find( "li:visible" );
+                       ok($li.first().hasClass( "ui-corner-top" ), $li.length+" li elements: First visible element should have class ui-corner-top");
+                       ok($li.last().hasClass( "ui-corner-bottom" ), $li.length+" li elements: Last visible element should have class ui-corner-bottom");
+               };
+
+               $.testHelper.pageSequence([
+                       function() {
+                               $.mobile.changePage("#search-filter-inset-test");
+                       },
+
+                       function() {
+                               var $page = $('.ui-page-active');
+                               $.testHelper.sequence([
+                                       function() {
+                                               checkClasses();
+
+                                               $page.find('input').val('man');
+                                               $page.find('input').trigger('change');
+                                       },
+
+                                       function() {
+                                               checkClasses();
+
+                                               $page.find('input').val('at');
+                                               $page.find('input').trigger('change');
+                                       },
+
+                                       function() {
+                                               checkClasses();
+
+                                               $page.find('input').val('catwoman');
+                                               $page.find('input').trigger('change');
+                                       },
+
+                                       function() {
+                                               checkClasses();
+                                               start();
+                                       }
+                               ], 50);
+                       }
+               ]);
+       });
+
+       module( "Programmatically generated list items", {
+               setup: function(){
+                       var item,
+                               data = [
+                                       {
+                                               id: 1,
+                                               label: "Item 1"
+                                       },
+                                       {
+                                               id: 2,
+                                               label: "Item 2"
+                                       },
+                                       {
+                                               id: 3,
+                                               label: "Item 3"
+                                       },
+                                       {
+                                               id: 4,
+                                               label: "Item 4"
+                                       }
+                               ];
+
+                       $( "#programmatically-generated-list-items" ).html("");
+
+                       for ( var i = 0, len = data.length; i < len; i++ ) {
+                               item = $( '<li id="myItem' + data[i].id + '">' );
+                               label = $( "<strong>" + data[i].label + "</strong>").appendTo( item );
+                               $( "#programmatically-generated-list-items" ).append( item );
+                       }
+               }
+       });
+
+       asyncTest( "Corner styling on programmatically created list items", function() {
+               // https://github.com/jquery/jquery-mobile/issues/1470
+               $.testHelper.pageSequence([
+                       function() {
+                               $.mobile.changePage( "#programmatically-generated-list" );
+                       },
+                       function() {
+                               ok(!$( "#programmatically-generated-list-items li:first-child" ).hasClass( "ui-corner-bottom" ), "First list item should not have class ui-corner-bottom" );
+                               start();
+                       }
+               ]);
+       });
+
+       module("Programmatic list items manipulation");
+
+       asyncTest("Removing list items", 4, function() {
+               $.testHelper.pageSequence([
+                       function() {
+                               $.mobile.changePage("#removing-items-from-list-test");
+                       },
+
+                       function() {
+                               var ul = $('#removing-items-from-list-test ul');
+                               ul.find("li").first().remove();
+                               equal(ul.find("li").length, 3, "There should be only 3 list items left");
+
+                               ul.listview('refresh');
+                               ok(ul.find("li").first().hasClass("ui-corner-top"), "First list item should have class ui-corner-top");
+
+                               ul.find("li").last().remove();
+                               equal(ul.find("li").length, 2, "There should be only 2 list items left");
+
+                               ul.listview('refresh');
+                               ok(ul.find("li").last().hasClass("ui-corner-bottom"), "Last list item should have class ui-corner-bottom");
+                               start();
+                       }
+               ]);
+       });
+
+       module("Rounded corners");
+
+       asyncTest("Top and bottom corners rounded in inset list", 14, function() {
+               $.testHelper.pageSequence([
+                       function() {
+                               $.mobile.changePage("#corner-rounded-test");
+                       },
+
+                       function() {
+                               var ul = $('#corner-rounded-test ul');
+
+                               for( var t = 0; t<3; t++){
+                                       ul.append("<li>Item " + t + "</li>");
+                                       ul.listview('refresh');
+                                       equals(ul.find(".ui-corner-top").length, 1, "There should be only one element with class ui-corner-top");
+                                       equals(ul.find("li:visible").first()[0], ul.find(".ui-corner-top")[0], "First list item should have class ui-corner-top in list with " + ul.find("li").length + " item(s)");
+                                       equals(ul.find(".ui-corner-bottom").length, 1, "There should be only one element with class ui-corner-bottom");
+                                       equals(ul.find("li:visible").last()[0], ul.find(".ui-corner-bottom")[0], "Last list item should have class ui-corner-bottom in list with " + ul.find("li").length + " item(s)");
+                               }
+
+                               ul.find( "li" ).first().hide();
+                               ul.listview( "refresh" );
+                               equals(ul.find("li:visible").first()[0], ul.find(".ui-corner-top")[0], "First visible list item should have class ui-corner-top");
+
+                               ul.find( "li" ).last().hide();
+                               ul.listview( "refresh" );
+                               equals(ul.find("li:visible").last()[0], ul.find(".ui-corner-bottom")[0], "Last visible list item should have class ui-corner-bottom");
+
+                               start();
+                       }
+               ]);
+       });
+
+       test( "Listview will create when inside a container that receives a 'create' event", function(){
+               ok( !$("#enhancetest").appendTo(".ui-page-active").find(".ui-listview").length, "did not have enhancements applied" );
+               ok( $("#enhancetest").trigger("create").find(".ui-listview").length, "enhancements applied" );
+       });
+
+       module( "Cached Linked List" );
+
+       var findNestedPages = function(selector){
+               return $( selector + " #topmost" ).listview( 'childPages' );
+       };
+
+       asyncTest( "nested pages are removed from the dom by default", function(){
+               $.testHelper.pageSequence([
+                       function(){
+                               //reset for relative url refs
+                               $.mobile.changePage( home );
+                       },
+
+                       function(){
+                               $.mobile.changePage( "cache-tests/uncached-nested.html" );
+                       },
+
+                       function(){
+                               ok( findNestedPages( "#uncached-nested-list" ).length > 0, "verify that there are nested pages" );
+                               $.mobile.changePage( home );
+                       },
+
+                       function() {
+                               $.mobile.changePage( "cache-tests/clear.html" );
+                       },
+
+                       function(){
+                               same( findNestedPages( "#uncached-nested-list" ).length, 0 );
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "nested pages preserved when parent page is cached", function(){
+
+               $.testHelper.pageSequence([
+                       function(){
+                               //reset for relative url refs
+                               $.mobile.changePage( home );
+                       },
+
+                       function(){
+                               $.mobile.changePage( "cache-tests/cached-nested.html" );
+                       },
+
+                       function(){
+                               ok( findNestedPages( "#cached-nested-list" ).length > 0, "verify that there are nested pages" );
+                               $.mobile.changePage( home );
+                       },
+
+                       function() {
+                               $.mobile.changePage( "cache-tests/clear.html" );
+                       },
+
+                       function(){
+                               ok( findNestedPages( "#cached-nested-list" ).length > 0, "nested pages remain" );
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "parent page is not removed when visiting a sub page", function(){
+               $.testHelper.pageSequence([
+                       function(){
+                               //reset for relative url refs
+                               $.mobile.changePage( home );
+                       },
+
+                       function(){
+                               $.mobile.changePage( "cache-tests/cached-nested.html" );
+                       },
+
+                       function(){
+                               same( $("#cached-nested-list").length, 1 );
+                               $.mobile.changePage( home );
+                       },
+
+                       function() {
+                               $.mobile.changePage( "cache-tests/clear.html" );
+                       },
+
+                       function(){
+                               same( $("#cached-nested-list").length, 1 );
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "filterCallback can be altered after widget creation", function(){
+               var listPage = $( "#search-filter-test" );
+               expect( listPage.find("li").length );
+
+               $.testHelper.pageSequence( [
+                       function(){
+                               //reset for relative url refs
+                               $.mobile.changePage( home );
+                       },
+
+                       function() {
+                               $.mobile.changePage( "#search-filter-test" );
+                       },
+
+                       function() {
+                               // set the listview instance callback
+                               listPage.find( "ul" ).listview( "option", "filterCallback", function() {
+                                       ok(true, "custom callback invoked");
+                               });
+
+                               // trigger a change in the search filter
+                               listPage.find( "input" ).val( "foo" ).trigger( "change" );
+
+                               //NOTE beware a poossible issue with timing here
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "nested pages hash key is always in the hash (replaceState)", function(){
+               $.testHelper.pageSequence([
+                       function(){
+                               //reset for relative url refs
+                               $.mobile.changePage( home );
+                       },
+
+                       function(){
+                               // https://github.com/jquery/jquery-mobile/issues/1617
+                               $.mobile.changePage("#nested-lists-test");
+                       },
+
+                       function(){
+                               // Click on the link of the third li element
+                               $('.ui-page-active li:eq(2) a:eq(0)').click();
+                       },
+
+                       function(){
+                               ok( location.hash.search($.mobile.subPageUrlKey) >= 0 );
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "embedded listview page with nested pages is not removed from the dom", function() {
+               $.testHelper.pageSequence([
+                       function() {
+                               // open the nested list page
+                               same( $("div#nested-list-test").length, 1 );
+                               $( "a#nested-list-test-anchor" ).click();
+                       },
+
+                       function() {
+                               // go back to the origin page
+                               window.history.back();
+                       },
+
+                       function() {
+                               // make sure the page is still in place
+                               same( $("div#nested-list-test").length, 1 );
+                               start();
+                       }
+               ]);
+       });
+
+
+       asyncTest( "list inherits theme from parent", function() {
+               $.testHelper.pageSequence([
+                       function() {
+                               $.mobile.changePage("#list-theme-inherit");
+                       },
+
+                       function() {
+                               var theme = $.mobile.activePage.jqmData('theme');
+                               ok( $.mobile.activePage.find("ul > li").hasClass("ui-body-b"), "theme matches the parent");
+                               window.history.back();
+                       },
+
+                       start
+               ]);
+       });
+
+       asyncTest( "list filter is inset from prototype options value", function() {
+               $.mobile.listview.prototype.options.inset = true;
+               $("#list-inset-filter-prototype").page();
+
+               $.testHelper.pageSequence([
+                       function() {
+                               $.mobile.changePage("#list-inset-filter-prototype");
+                       },
+
+                       function( timedOut) {
+                               ok( !timedOut );
+                               same( $.mobile.activePage.find("form.ui-listview-filter-inset").length, 1, "form is inset");
+                               window.history.back();
+                       },
+
+                       start
+               ]);
+       });
+
+       asyncTest( "list filter is inset from data attr value", function() {
+               $.mobile.listview.prototype.options.inset = false;
+               $("#list-inset-filter-data-attr").page();
+
+               $.testHelper.pageSequence([
+                       function() {
+                               $.mobile.changePage("#list-inset-filter-data-attr");
+                       },
+
+                       function( timedOut) {
+                               ok( !timedOut );
+                               same( $.mobile.activePage.find("form.ui-listview-filter-inset").length, 1, "form is inset");
+                               window.history.back();
+                       },
+
+                       start
+               ]);
+       });
+
+       asyncTest( "split list items respect the icon", function() {
+               $.testHelper.pageSequence([
+                       function() {
+                               $.mobile.changePage("#split-list-icon");
+                       },
+
+                       function() {
+                               $.mobile.activePage.find("li").each(function(i, elem){
+                                       var $elem = $(elem),
+                                               order = [ "star", "plug", "delete", "plug" ];
+
+                                       same( $elem.find("span.ui-icon-" + order[i]).length, 1, "there should be one " + order[i] + " icon" );
+                               });
+
+                               window.history.back();
+                       },
+
+                       start
+               ]);
+       });
+})(jQuery);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/listview_pushstate.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/listview_pushstate.js
new file mode 100644 (file)
index 0000000..6af09e7
--- /dev/null
@@ -0,0 +1,15 @@
+(function($) {
+       asyncTest( "nested pages hash key is always in the hash on default page with no id (replaceState) ", function(){
+               $.testHelper.pageSequence([
+                       function(){
+                               // Click on the link of the third li element
+                               $('.ui-page-active li:eq(2) a:eq(0)').click();
+                       },
+
+                       function(){
+                               ok( location.hash.search($.mobile.subPageUrlKey) >= 0 );
+                               start();
+                       }
+               ]);
+       });
+})(jQuery);
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/pushstate-tests.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/listview/pushstate-tests.html
new file mode 100644 (file)
index 0000000..acf4234
--- /dev/null
@@ -0,0 +1,87 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile Listview Integration Test</title>
+
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../../tests/jquery.testHelper.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [
+                               "jquery.mobile.navigation",
+                               "jquery.mobile.listview",
+                               "jquery.mobile.listview.filter",
+                       ],
+                       [       "jquery.mobile.init" ],
+                       [       "listview_pushstate.js" ]
+               ]);
+       </script>
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css" />
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Listview Integration Test</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div data-nstest-role="page">
+       <div data-nstest-role="header" data-nstest-position="inline">
+               <h1>Basic multiple lists view</h1>
+       </div>
+    <div data-nstest-role="content">
+        <ul data-nstest-role="listview" data-nstest-inset="true">
+            <li>Item 1</li>
+            <li>Item 2</li>
+            <li>Item 3
+                <ul data-nstest-role="listview">
+                    <li>Item A-3-0</li>
+                    <li>Item A-3-1</li>
+                    <li>Item A-3-2</li>
+                </ul>
+            </li>
+        </ul>
+        <ul data-nstest-role="listview" data-nstest-inset="true">
+            <li>Item 1</li>
+            <li>Item 2</li>
+            <li>Item 3
+                <ul data-nstest-role="listview">
+                    <li>Item B-3-0
+                        <ul data-nstest-role="listview">
+                                                       <li>Item B-3-0-0</li>
+                                                       <li>Item B-3-0-1
+                                                               <ul data-nstest-role="listview">
+                                                                       <li>Item B-3-0-1-0</li>
+                                                                       <li>Item B-3-0-1-1</li>
+                                                                       <li>Item B-3-0-1-2</li>
+                                                               </ul>
+                                                       </li>
+                                                       <li>Item B-3-0-2</li>
+                                               </ul>
+                    </li>
+                    <li>Item B-3-1
+                                               <ul data-nstest-role="listview">
+                                                       <li>Item B-3-1-0</li>
+                                                       <li>Item B-3-1-1</li>
+                                                       <li>Item B-3-1-2</li>
+                                               </ul>
+                    </li>
+                    <li>Item B-3-2</li>
+                </ul>
+            </li>
+        </ul>
+    </div>
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/ls.php b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/ls.php
new file mode 100644 (file)
index 0000000..577bfec
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+  header("Content-Type: application/json");
+
+  $directories = array();
+
+  if ($handle = opendir(getcwd())) {
+    while (false !== ($file = readdir($handle))) {
+      if (is_dir($file) && $file[0] !== "." ) {
+        array_push($directories, $file);
+      }
+    }
+
+    closedir($handle);
+  }
+
+  $test_pages = array_merge($directories, glob("**/*-tests.html"));
+  sort($test_pages);
+
+  echo '{ "testPages":["' . implode( '","', $test_pages ) . '"]}';
+?>
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/media/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/media/index.html
new file mode 100644 (file)
index 0000000..52c39a5
--- /dev/null
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile Media Test Suite</title>
+
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../jquery.testHelper.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [
+                               "jquery.mobile.media"
+                       ],
+                       [
+                               "./media_core.js"
+                       ]
+               ]);
+       </script>
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css" />
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Media Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div id="qunit-fixture"></div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/media/media_core.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/media/media_core.js
new file mode 100644 (file)
index 0000000..68eca0c
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * mobile media unit tests
+ */
+
+(function($){
+       var cssFn = $.fn.css,
+                       widthFn = $.fn.width;
+
+       // make sure original definitions are reset
+       module('jquery.mobile.media.js', {
+               setup: function(){
+                       $(document).trigger('mobileinit.htmlclass');
+               },
+               teardown: function(){
+                       $.fn.css = cssFn;
+                       $.fn.width = widthFn;
+               }
+       });
+
+       test( "media query check returns true when the position is absolute", function(){
+               $.fn.css = function(){ return "absolute"; };
+               same($.mobile.media("screen 1"), true);
+       });
+
+       test( "media query check returns false when the position is not absolute", function(){
+               $.fn.css = function(){ return "not absolute"; };
+               same($.mobile.media("screen 2"), false);
+       });
+
+       test( "media query check is cached", function(){
+               $.fn.css = function(){ return "absolute"; };
+               same($.mobile.media("screen 3"), true);
+
+               $.fn.css = function(){ return "not absolute"; };
+               same($.mobile.media("screen 3"), true);
+       });
+
+
+})(jQuery);
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navbar/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navbar/index.html
new file mode 100644 (file)
index 0000000..9c83c95
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile Navigation Test Suite</title>
+
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../../tests/jquery.testHelper.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [
+                               "jquery.mobile.navbar"
+                       ],
+                       [ "jquery.mobile.init" ],
+                       [
+                               "./navbar_core.js"
+                       ]
+               ]);
+       </script>
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+</head>
+<body>
+<h1 id="qunit-header">jQuery Mobile Navigation Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+<div data-nstest-role="page" id="disabled-btn-click">
+       <div data-nstest-role="navbar">
+               <ul>
+                       <li><a href="#" class="ui-disabled">One</a></li>
+                       <li><a href="#">Two</a></li>
+               </ul>
+       </div>
+</div>
+
+<div id="foo">
+       <div data-nstest-role="navbar">
+               <div data-nstest-enhance="false">
+                       <ul id="ignored-grid">
+                               <li></li>
+                               <li></li>
+                       </ul>
+               </div>
+       </div>
+
+       <div data-nstest-role="navbar">
+               <div>
+                       <ul id="enhanced-grid">
+                               <li></li>
+                               <li></li>
+                       </ul>
+               </div>
+       </div>
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navbar/navbar_core.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navbar/navbar_core.js
new file mode 100644 (file)
index 0000000..f80bb5d
--- /dev/null
@@ -0,0 +1,31 @@
+/*
+ * mobile navbar unit tests
+ */
+(function($){
+       test( "navbar button gets active button class when clicked", function() {
+               var link = $("#disabled-btn-click a:not(.ui-disabled)").first();
+
+               link.click();
+               ok( link.hasClass($.mobile.activeBtnClass), "link has active button class" );
+       });
+
+       test( "disabled navbar button doesn't add active button class when clicked", function() {
+               var link = $("#disabled-btn-click a.ui-disabled").first();
+
+               link.click();
+               ok( !link.hasClass($.mobile.activeBtnClass), "link doesn't have active button class" );
+       });
+
+       test( "grids inside an ignored container do not enhance", function() {
+               var $ignored = $( "#ignored-grid" ), $enhanced = $( "#enhanced-grid" );
+
+               $.mobile.ignoreContentEnabled = true;
+
+               $("#foo").trigger( "create" );
+
+               same( $ignored.attr( "class" ), undefined, "ignored list doesn't have the grid theme" );
+               same( $enhanced.attr( "class" ).indexOf("ui-grid"), 0, "enhanced list has the grid theme" );
+
+               $.mobile.ignoreContentEnabled = false;
+       });
+})(jQuery);
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests.html
new file mode 100644 (file)
index 0000000..7d1649e
--- /dev/null
@@ -0,0 +1,72 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile Navigation Test Suite</title>
+
+    <script>
+
+       // This unit test requires a base tag to be set within the file.
+       // Most browsers require a base tag with an @href URL that is absolute.
+       // We need to dynamically inject the base tag so we can prefix it with
+       // the location of this test on the server without any server-side language
+       // requirements.
+
+       var baseUrl = location.href.replace(/[^\?\#\/]*(\?[^#]*)?(#.*)?$/, "");
+       document.write("<base href=\"" + baseUrl + "base-tests/app-base/\"/>\n");
+
+       </script>
+       <script src="../../../../../js/jquery.tag.inserter.js"></script>
+       <script src="../../../jquery.setNameSpace.js"></script>
+       <script src="../../../../../tests/jquery.testHelper.js"></script>
+       <script src="../../../../../js/"></script>
+
+
+       <link rel="stylesheet" href="../../../../../css/themes/default/jquery.mobile.css"/>
+       <link rel="stylesheet" href="../../../../../external/qunit.css"/>
+       <script src="../../../../../external/qunit.js"></script>
+       <script type="text/javascript">
+               $.testHelper.setPushState();
+       </script>
+
+       <script type="text/javascript" src="../../navigation_base.js"></script>
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Navigation Base Tag Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div id="internal-page-1" data-nstest-role="page">
+       <a href="base-page-1.html" class="bp1"></a>
+       <a href="base-page-2.html" class="bp2"></a>
+       <a href="../content/content-page-1.html" class="cp1"></a>
+       <a href="../content/content-page-2.html" class="cp2"></a>
+       <a href="#internal-page-2" class="ip2"></a>
+    <img src="images/internal-page-1.png">
+</div>
+
+<div id="internal-page-2" data-nstest-role="page">
+       <a href="base-page-1.html" class="bp1"></a>
+       <a href="base-page-2.html" class="bp2"></a>
+       <a href="../content/content-page-1.html" class="cp1"></a>
+       <a href="../content/content-page-2.html" class="cp2"></a>
+       <a href="#internal-page-1" class="ip1"></a>
+    <img src="images/internal-page-2.png">
+</div>
+
+<div data-nstest-role="page" id="internal-no-action-form-page">
+       <div data-nstest-role="content">
+               <form>
+                       <input type="hidden" name="foo" value="1">
+                       <input type="hidden" name="bar" value="2">
+               </form>
+    </div>
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests/app-base/base-page-1.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests/app-base/base-page-1.html
new file mode 100644 (file)
index 0000000..b417713
--- /dev/null
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+       <head>
+       </head>
+<body>
+       <div id="base-page-1" data-nstest-role="page">
+       <a href="base-page-2.html" class="bp2">Base Page 2</a>
+       <a href="../content/content-page-1.html" class="cp1">Content Page 1</a>
+       <a href="../../#internal-page-1" class="ip1">Internal Page 1</a>
+       <a href="../../#internal-page-2" class="ip2">Internal Page 2</a>
+        <img src="images/base-page-1.png">
+       </div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests/app-base/base-page-2.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests/app-base/base-page-2.html
new file mode 100644 (file)
index 0000000..ac84a98
--- /dev/null
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+       <head>
+       </head>
+<body>
+       <div id="base-page-2" data-nstest-role="page">
+       <a href="base-page-1.html" class="bp1">Base Page 1</a>
+       <a href="../content/content-page-1.html" class="cp1">Content Page 1</a>
+       <a href="../../#internal-page-1" class="ip1">Internal Page 1</a>
+       <a href="../../#internal-page-2" class="ip2">Internal Page 2</a>
+        <img src="images/base-page-2.png">
+       </div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests/content/content-page-1.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests/content/content-page-1.html
new file mode 100644 (file)
index 0000000..68cef02
--- /dev/null
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+       <head>
+       </head>
+<body>
+       <div id="content-page-1" data-nstest-role="page">
+       <a href="content-page-2.html" class="cp2">Content Page 2</a>
+       <a href="../app-base/base-page-1.html" class="bp1">Base Page 1</a>
+       <a href="../../#internal-page-1" class="ip1">Internal Page 1</a>
+       <a href="../../#internal-page-2" class="ip2">Internal Page 2</a>
+        <img src="images/content-page-1.png">
+
+               <form>
+                       <input type="hidden" name="foo" value="1">
+                       <input type="hidden" name="bar" value="2">
+               </form>
+       </div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests/content/content-page-2.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/base-tests/content/content-page-2.html
new file mode 100644 (file)
index 0000000..76c9bbd
--- /dev/null
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+       <head>
+       </head>
+<body>
+       <div id="content-page-2" data-nstest-role="page">
+       <a href="content-page-1.html" class="cp1">Content Page 1</a>
+       <a href="../app-base/base-page-1.html" class="bp1">Base Page 1</a>
+       <a href="../../#internal-page-1" class="ip1">Internal Page 1</a>
+       <a href="../../#internal-page-2" class="ip2">Internal Page 2</a>
+      <img src="images/content-page-2.png">
+       </div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/cached-external.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/cached-external.html
new file mode 100644 (file)
index 0000000..5ebcf06
--- /dev/null
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+</head>
+<body>
+       <div data-nstest-role="page" id="external-test-cached" data-nstest-dom-cache="true">
+  </div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/data-url.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/data-url.html
new file mode 100644 (file)
index 0000000..bece3f8
--- /dev/null
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+       <head>
+       </head>
+<body>
+       <div data-nstest-role="page" data-nstest-url="foo/" data-other="for testing">
+               This text intentionally left blank
+       </div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/nested.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/nested.html
new file mode 100644 (file)
index 0000000..da75dbc
--- /dev/null
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<html>
+       <head>
+       </head>
+<body>
+       <div  data-nstest-role="page" data-nstest-url="foo/bar.html"></div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/non-data-url.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/non-data-url.html
new file mode 100644 (file)
index 0000000..e0a299f
--- /dev/null
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+       <head>
+       </head>
+<body>
+       <div data-nstest-role="page">
+               <a href="?foo=bar" id="query-param-anchor">query param</a>
+       </div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/reverse-attr.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/reverse-attr.html
new file mode 100644 (file)
index 0000000..379577f
--- /dev/null
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<html>
+       <head>
+       </head>
+<body>
+       <div data-nstest-url="foo/bar/reverse.html"  data-nstest-role="page"></div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/single-quotes.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/data-url-tests/single-quotes.html
new file mode 100644 (file)
index 0000000..74afd7f
--- /dev/null
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<html>
+       <head>
+       </head>
+<body>
+       <div  data-nstest-role='page' data-nstest-url='foo/bar/single.html'></div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/dialog-param-test/dialog-param.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/dialog-param-test/dialog-param.html
new file mode 100644 (file)
index 0000000..5c13d5f
--- /dev/null
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Navigation Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div id="dialog-param-link-page" data-nstest-role="page">
+       <a href="?foo=bar" data-nstest-rel="dialog">foo</a>
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/external.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/external.html
new file mode 100644 (file)
index 0000000..c9a011d
--- /dev/null
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+</head>
+<body>
+       <div data-nstest-role="page" id="external-test"></div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/file.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/file.html
new file mode 100644 (file)
index 0000000..5109dee
--- /dev/null
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+</head>
+<body>
+       <div data-nstest-role="page">
+               <div class="test-value">doc rel test one</div>
+       </div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/form-tests/changepage-data.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/form-tests/changepage-data.html
new file mode 100644 (file)
index 0000000..2305c20
--- /dev/null
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<html>
+       <head>
+       </head>
+<body>
+       <div id="changepage-data" data-nstest-role="page"> </div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/form-tests/form-no-action.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/form-tests/form-no-action.html
new file mode 100644 (file)
index 0000000..1b4ff7c
--- /dev/null
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+       <head>
+       </head>
+<body>
+<div id="external-form-no-action-page" data-nstest-role="page">
+       <div data-nstest-role="content">
+               <form>
+                       <input type="hidden" name="foo" value="1">
+                       <input type="hidden" name="bar" value="2">
+               </form>
+       </div>
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/index.html
new file mode 100644 (file)
index 0000000..ce2fcbc
--- /dev/null
@@ -0,0 +1,302 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile Navigation Test Suite</title>
+
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../../tests/jquery.testHelper.js"></script>
+       <script type="text/javascript">
+               $.testHelper.setPushState();
+       </script>
+
+       <script src="../../../js/"></script>
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+       <script src="../../../external/qunit.js"></script>
+
+       <script type="text/javascript" src="navigation_helpers.js"></script>
+       <script type="text/javascript" src="navigation_core.js"></script>
+       <script type="text/javascript" src="navigation_paths.js"></script>
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Navigation Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div id="harmless-default-page"         data-nstest-role="page" class="first-page">
+</div>
+
+<div id="foo" data-nstest-role="page" class="foo-class">
+       <a href="#bar" data-nstest-transition="flip"></a>
+       <a id="bad-internal-page-link" href="#non-existent-page"></a>
+</div>
+
+<div id="prefetch" data-nstest-role="page">
+       <a href="prefetched.html" data-nstest-prefetch>Prefetch test</a>
+</div>
+
+<div id="foozball" data-nstest-role="page">
+</div>
+
+<div id="bar"   data-nstest-role="page">
+       <a href="#baz"></a>
+</div>
+
+<div id="baz"   data-nstest-role="page">
+       <a href="#foo"></a>
+</div>
+
+<div id="fade-trans" data-nstest-role="page">
+       <a href="#flip-trans" data-nstest-transition="fade"></a>
+</div>
+
+<div id="flip-trans" data-nstest-role="page">
+       <a href="#fade-trans" data-nstest-transition="flip"></a>
+</div>
+
+<div id="no-trans" data-nstest-role="page">
+       <a href="#pop-trans"></a>
+</div>
+
+<div id="pop-trans"     data-nstest-role="page">
+       <a href="#no-trans" data-nstest-transition="pop"></a>
+</div>
+
+<div id="default-trans"         data-nstest-role="page">
+       <a href="#no-trans"></a>
+</div>
+
+<div id="data-url" data-nstest-role="page">
+       <a href="data-url-tests/data-url.html"></a>
+</div>
+
+<div id="non-data-url" data-nstest-role="page">
+       <a href="data-url-tests/non-data-url.html"></a>
+</div>
+
+<div id="nested-data-url"       data-nstest-role="page">
+       <a href="data-url-tests/nested.html"></a>
+</div>
+
+<div id="single-quotes-data-url" data-nstest-role="page">
+       <a href="data-url-tests/single-quotes.html"></a>
+</div>
+
+<div id="reverse-attr-data-url"         data-nstest-role="page">
+       <a href="data-url-tests/reverse-attr.html"></a>
+</div>
+
+<div id="ajax-disabled-form" data-nstest-role="page">
+       <form method="POST" id="non-ajax-form" action="/ajax-disabled-form" data-nstest-ajax="false">
+       </form>
+
+       <form method="POST" id="ajax-form" action="/ajax-disabled-form">
+       </form>
+
+       <form method="POST" id="rand-ajax-form" action="/ajax-disabled-form" data-nstest-ajax="foo">
+       </form>
+</div>
+
+<div id="default-trans-dialog" data-nstest-role="page">
+       <a href="#no-trans-dialog" data-nstest-rel="dialog"></a>
+</div>
+
+<div id="no-trans-dialog" data-nstest-role="page">
+</div>
+
+<div id="dup-history-first" data-nstest-role="page">
+       <a href="#dup-history-second" data-nstest-transition="slideup" data-nstest-role="button" >
+               Page 2
+       </a>
+</div>
+
+<div id="dup-history-second" data-nstest-role="page">
+       <a href="#dup-history-first" data-nstest-transition="slideup" data-nstest-role="button">
+               Page 1
+       </a>
+       <a href="#dup-history-dialog" data-nstest-role="button" data-nstest-transition="pop" data-nstest-rel="dialog">Dialog</a>
+</div>
+
+<div id="dup-history-dialog" data-nstest-role="dialog">
+        <div data-nstest-role="header" data-nstest-position="inline">
+                <h1>Dialog</h1>
+        </div>
+</div>
+
+<div id="skip-dialog-first" data-nstest-role="page">
+       <div data-nstest-role="content">
+               <a href="#skip-dialog" data-nstest-role="button" data-nstest-transition="pop" data-nstest-rel="dialog">Dialog</a>
+       </div>
+</div>
+
+<div id="skip-dialog" data-nstest-role="dialog">
+       <div data-nstest-role="content">
+               <a href="#skip-dialog-second">Page 2</a>
+       </div>
+</div>
+
+<div id="skip-dialog-second" data-nstest-role="page">
+       <a href="#" data-nstest-rel="back">Go Back</a>
+</div>
+
+
+<div id="nested-dialog-page" data-nstest-role="page">
+       <div data-nstest-role="content">
+               <a href="#nested-dialog-first">Dialog</a>
+       </div>
+</div>
+
+<div id="nested-dialog-first" data-nstest-role="dialog">
+       <div data-nstest-role="content">
+               <a href="#nested-dialog-second">Dialog 2</a>
+       </div>
+</div>
+
+<div id="nested-dialog-second" data-nstest-role="dialog">
+</div>
+
+<div id="relative-after-embeded-page-first" data-nstest-role="page">
+       <div data-nstest-role="content">
+               <a href="#relative-after-embeded-page-second">second page</a>
+       </div>
+</div>
+
+<div id="relative-after-embeded-page-second" data-nstest-role="page">
+       <div data-nstest-role="content">
+               <a href="data-url-tests/data-url.html">file path page</a>
+       </div>
+</div>
+
+<div id="ajax-title-page" data-nstest-title="Title Attr 1" data-nstest-role="page">
+       <a href="title1.html" id="titletest1" data-nstest-transition="none">test</a>
+       <a href="title2.html" id="titletest2" data-nstest-transition="none">test</a>
+       <a href="title3.html" id="titletest3" data-nstest-transition="none">test</a>
+</div>
+
+<div data-nstest-role="page" id="titletest4" data-nstest-title="Title Attr 2">
+       <div data-nstest-role="header"><h1>Title Heading</h1></div>
+</div>
+
+<div data-nstest-role="page" id="titletest5" data-nstest-title="Title Attr">
+       <div data-nstest-role="header"><h1>Title Heading</h1></div>
+</div>
+
+<div data-nstest-role="page" id="self-link">
+       <a href="#self-link">self!</a>
+</div>
+
+<div data-nstest-role="page" id="dialog-param-link">
+       <a href="dialog-param-test/dialog-param.html">go</a>
+</div>
+
+<div data-nstest-role="page" id="pathing-tests">
+       <!-- doc rel links -->
+       <a href="file.html" id="doc-rel-test-one">go</a>
+       <a href="path-tests/file.html" id="doc-rel-test-two">go</a>
+       <a href="path-tests/sub-dir/file.html" id="doc-rel-test-three">go</a>
+       <a href="path-tests/sub-dir/" id="doc-rel-test-four">go</a>
+       <a href="../../unit/navigation/path-tests/parent-ref.html" id="doc-rel-test-five">go</a>
+       <a href="../../unit/navigation/path-tests/parent/" id="doc-rel-test-six">go</a>
+
+       <!-- site rel links -->
+       <!-- these will be altered before the test suite runs to use the current path -->
+       <a href="file.html" id="site-rel-test-one" class="site-rel">go</a>
+       <a href="path-tests/file.html" id="site-rel-test-two" class="site-rel">go</a>
+       <a href="path-tests/sub-dir/file.html" id="site-rel-test-three" class="site-rel">go</a>
+       <a href="path-tests/sub-dir/" id="site-rel-test-four" class="site-rel">go</a>
+       <a href="../../unit/navigation/path-tests/parent-ref.html" id="site-rel-test-five" class="site-rel">go</a>
+       <a href="../../unit/navigation/path-tests/parent/" id="site-rel-test-six" class="site-rel">go</a>
+
+       <!-- protocol rel links -->
+       <!-- these will be altered before the test suite runs to use the
+                        current domain and path -->
+       <a href="file.html" id="protocol-rel-test-one" class="protocol-rel">go</a>
+       <a href="path-tests/file.html" id="protocol-rel-test-two" class="protocol-rel">go</a>
+       <a href="path-tests/sub-dir/file.html" id="protocol-rel-test-three" class="protocol-rel">go</a>
+       <a href="path-tests/sub-dir/" id="protocol-rel-test-four" class="protocol-rel">go</a>
+       <a href="../../unit/navigation/path-tests/parent-ref.html" id="protocol-rel-test-five" class="protocol-rel">go</a>
+       <a href="../../unit/navigation/path-tests/parent/" id="protocol-rel-test-six" class="protocol-rel">go</a>
+
+       <!-- absolute links -->
+       <!-- these will be altered before the test suite runs to use the
+                        current protocol, domain and path -->
+       <a href="file.html" id="absolute-test-one" class="absolute">go</a>
+       <a href="path-tests/file.html" id="absolute-test-two" class="absolute">go</a>
+       <a href="path-tests/sub-dir/file.html" id="absolute-test-three" class="absolute">go</a>
+       <a href="path-tests/sub-dir/" id="absolute-test-four" class="absolute">go</a>
+       <a href="../../unit/navigation/path-tests/parent-ref.html" id="absolute-test-five" class="absolute">go</a>
+       <a href="../../unit/navigation/path-tests/parent/" id="absolute-test-six" class="absolute">go</a>
+
+</div>
+
+<div data-nstest-role="page" id="pathing-tests-reset">
+       <div class="reset-value">page didn't change!</div>
+</div>
+
+<div data-nstest-role="page" id="internal-no-action-form-page">
+       <div data-nstest-role="content">
+               <form>
+                       <input type="hidden" name="foo" value="1">
+                       <input type="hidden" name="bar" value="2">
+               </form>
+                               <a href="form-tests/form-no-action.html">External page containing form with no action.</a>
+               </div>
+</div>
+
+<div id="active-state-page1" data-nstest-role="page">
+       <div data-nstest-role="content">
+               <a href="#active-state-page2" data-nstest-role="button">page2</a>
+       </div>
+</div>
+
+<div id="active-state-page2" data-nstest-role="page">
+       <div data-nstest-role="content">
+               <a href="#active-state-page1" data-nstest-role="button">href button</a>
+               <a href="#active-state-page1" data-nstest-rel="back" data-nstest-role="button">back button</a>
+       </div>
+</div>
+
+
+
+<div id="odd-clicks-page" data-nstest-role="page">
+  <a href="#odd-clicks-page-dest" id="right-or-middle-click">foo</a>
+</div>
+
+<div id="odd-clicks-page-dest" data-nstest-role="page"></div>
+
+<div id="inject-links-page" data-nstest-role="page">
+  <a href="#injected-test-page" id="static-injected-test-page-link">static link</a>
+</div>
+
+<div id="prefetched-dialog-page" data-nstest-role="page">
+  <a href="prefetched-dialog.html"
+     id="prefetched-dialog-link"
+     data-nstest-role="prefetch"
+     data-nstest-rel="dialog">
+    static link
+  </a>
+</div>
+
+<div id="link-hijacking-test" data-nstest-role="page">
+       <div id="hijackable">
+               <a href="#link-hijacking-destination" id="hijacked-link"></a>
+               <a href="#link-hijacking-destination" id="unhijacked-link-by-attr" data-nstest-ajax="false"></a>
+       </div>
+
+       <div id="not-hijackable" data-nstest-ajax="false">
+               <a href="#link-hijacking-destination" id="unhijacked-link-by-parent"></a>
+       </div>
+</div>
+
+<div id="link-hijacking-destination" data-nstest-role="page">
+       hello!
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_base.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_base.js
new file mode 100644 (file)
index 0000000..544691b
--- /dev/null
@@ -0,0 +1,206 @@
+/*
+ * mobile navigation base tag unit tests
+ */
+(function($){
+       var baseDir = $.mobile.path.parseUrl($("base").attr("href")).directory,
+               contentDir = $.mobile.path.makePathAbsolute("../content/", baseDir),
+               home = location.pathname + location.search;
+
+       module('jquery.mobile.navigation.js - base tag', {
+               setup: function(){
+                       if ( location.hash ) {
+                               stop();
+                               $(document).one("pagechange", function() {
+                                       start();
+                               } );
+                               location.hash = "";
+                       }
+               }
+       });
+
+       asyncTest( "can navigate between internal and external pages", function(){
+               $.testHelper.pageSequence([
+                       function(){
+                               // Navigate from default internal page to another internal page.
+                               $.testHelper.openPage( "#internal-page-2" );
+                       },
+
+                       function(){
+                               // Verify that we are on the 2nd internal page.
+                               $.testHelper.assertUrlLocation({
+                                       push: home + "#internal-page-2",
+                                       hash: "internal-page-2",
+                                       report: "navigate to internal page"
+                               });
+
+                               // Navigate to a page that is in the base directory. Note that the application
+                               // document and this new page are *NOT* in the same directory.
+                               $("#internal-page-2 .bp1").click();
+                       },
+
+                       function(){
+                               // Verify that we are on the expected page.
+                               $.testHelper.assertUrlLocation({
+                                       hashOrPush: baseDir + "base-page-1.html",
+                                       report: "navigate from internal page to page in base directory"
+                               });
+
+                               // Navigate to another page in the same directory as the current page.
+                               $("#base-page-1 .bp2").click();
+                       },
+
+                       function(){
+                               // Verify that we are on the expected page.
+                               $.testHelper.assertUrlLocation({
+                                       hashOrPush: baseDir + "base-page-2.html",
+                                       report: "navigate from base directory page to another base directory page"
+                               });
+
+                               // Navigate to another page in a directory that is the sibling of the base.
+                               $("#base-page-2 .cp1").click();
+                       },
+
+                       function(){
+                               // Verify that we are on the expected page.
+                               $.testHelper.assertUrlLocation({
+                                       hashOrPush: contentDir + "content-page-1.html",
+                                       report: "navigate from base directory page to a page in a different directory hierarchy"
+                               });
+
+                               // Navigate to another page in a directory that is the sibling of the base.
+                               $("#content-page-1 .cp2").click();
+                       },
+
+                       function(){
+                               // Verify that we are on the expected page.
+                               $.testHelper.assertUrlLocation({
+                                       hashOrPush: contentDir + "content-page-2.html",
+                                       report: "navigate to another page within the same non-base directory hierarchy"
+                               });
+
+                               // Navigate to an internal page.
+                               $("#content-page-2 .ip1").click();
+                       },
+
+                       function(){
+                               // Verify that we are on the expected page.
+                               // the hash based nav result (hash:) is dictate by the fact that #internal-page-1
+                               // is the original root page element
+                               $.testHelper.assertUrlLocation({
+                                       hashOrPush: home,
+                                       report: "navigate from a page in a non-base directory to an internal page"
+                               });
+
+                               // Try calling changePage() directly with a relative path.
+                               $.mobile.changePage("base-page-1.html");
+                       },
+
+                       function(){
+                               // Verify that we are on the expected page.
+                               $.testHelper.assertUrlLocation({
+                                       hashOrPush: baseDir + "base-page-1.html",
+                                       report: "call changePage() with a filename (no path)"
+                               });
+
+                               // Try calling changePage() directly with a relative path.
+                               $.mobile.changePage("../content/content-page-1.html");
+                       },
+
+                       function(){
+                               // Verify that we are on the expected page.
+                               $.testHelper.assertUrlLocation({
+                                       hashOrPush: contentDir + "content-page-1.html",
+                                       report: "call changePage() with a relative path containing up-level references"
+                               });
+
+                               // Try calling changePage() with an id
+                               $.mobile.changePage("content-page-2.html");
+                       },
+
+                       function(){
+                               // Verify that we are on the expected page.
+                               $.testHelper.assertUrlLocation({
+                                       hashOrPush: contentDir + "content-page-2.html",
+                                       report: "call changePage() with a relative path should resolve relative to current page"
+                               });
+
+                               // test that an internal page works
+                               $("a.ip2").click();
+                       },
+
+                       function(){
+                               // Verify that we are on the expected page.
+                               $.testHelper.assertUrlLocation({
+                                       hash:  "internal-page-2",
+                                       push: home + "#internal-page-2",
+                                       report: "call changePage() with a page id"
+                               });
+
+                               // Try calling changePage() with an id
+                               $.mobile.changePage("internal-page-1");
+                       },
+
+                       function(){
+                               // Verify that we are on the expected page.
+                               $.testHelper.assertUrlLocation({
+                                       hash:  "internal-page-2",
+                                       push: home + "#internal-page-2",
+                                       report: "calling changePage() with a page id that is not prefixed with '#' should not change page"
+                               });
+
+                               // Previous load should have failed and left us on internal-page-2.
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "internal form with no action submits to document URL", function(){
+               $.testHelper.pageSequence([
+                       // open our test page
+                       function(){
+                               $.testHelper.openPage( "#internal-no-action-form-page" );
+                       },
+
+                       function(){
+                               $( "#internal-no-action-form-page form" ).eq( 0 ).submit();
+                       },
+
+                       function(){
+                               $.testHelper.assertUrlLocation({
+                                       hashOrPush: location.pathname + "?foo=1&bar=2",
+                                       report: "hash should match document url and not base url"
+                               });
+
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "external page form with no action submits to external page URL", function(){
+               $.testHelper.pageSequence([
+                       function(){
+                               // Go to an external page that has a form.
+                               $("#internal-page-1 .cp1").click();
+                       },
+
+                       function(){
+                               // Make sure we actually navigated to the external page.
+                               $.testHelper.assertUrlLocation({
+                                       hashOrPush: contentDir + "content-page-1.html",
+                                       report: "should be on content-page-1.html"
+                               });
+
+                               // Now submit the form in the external page.
+                               $("#content-page-1 form").eq(0).submit();
+                       },
+
+                       function(){
+                               $.testHelper.assertUrlLocation({
+                                       hashOrPush: contentDir + "content-page-1.html?foo=1&bar=2",
+                                       report: "hash should match page url and not document url"
+                               });
+
+                               start();
+                       }]);
+       });
+})(jQuery);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_core.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_core.js
new file mode 100644 (file)
index 0000000..f62c3d1
--- /dev/null
@@ -0,0 +1,1216 @@
+/*
+ * mobile navigation unit tests
+ */
+(function($){
+       // TODO move siteDirectory over to the nav path helper
+       var changePageFn = $.mobile.changePage,
+               originalTitle = document.title,
+               originalLinkBinding = $.mobile.linkBindingEnabled,
+               siteDirectory = location.pathname.replace( /[^/]+$/, "" ),
+               home = $.mobile.path.parseUrl(location.pathname).directory,
+               homeWithSearch = home + location.search,
+               navigateTestRoot = function(){
+                       $.testHelper.openPage( "#" + location.pathname + location.search );
+               };
+
+       module('jquery.mobile.navigation.js', {
+               setup: function(){
+                       $.mobile.changePage = changePageFn;
+                       document.title = originalTitle;
+
+                       var pageReset = function( hash ) {
+                               hash = hash || "";
+
+                               stop();
+
+                               $(document).one( "pagechange", function() {
+                                       start();
+                               });
+
+                               location.hash = "#" + hash;
+                       };
+
+                       // force the page reset for hash based tests
+                       if ( location.hash && !$.support.pushState ) {
+                               pageReset();
+                       }
+
+                       // force the page reset for all pushstate tests
+                       if ( $.support.pushState ) {
+                               pageReset( homeWithSearch );
+                       }
+
+
+                       $.mobile.urlHistory.stack = [];
+                       $.mobile.urlHistory.activeIndex = 0;
+                       $.Event.prototype.which = undefined;
+                       $.mobile.linkBindingEnabled = originalLinkBinding;
+               }
+       });
+
+       asyncTest( "window.history.back() from external to internal page", function(){
+
+               $.testHelper.pageSequence([
+
+                       // open our test page
+                       function(){
+                               $.testHelper.openPage("#active-state-page1");
+                       },
+
+                       function(){
+                               ok( $.mobile.activePage[0] === $( "#active-state-page1" )[ 0 ], "successful navigation to internal page." );
+
+                               //location.hash = siteDirectory + "external.html";
+                               $.mobile.changePage("external.html");
+                       },
+
+                       function(){
+                               ok( $.mobile.activePage[0] !== $( "#active-state-page1" )[ 0 ], "successful navigation to external page." );
+
+                               window.history.back();
+                       },
+
+                       function(){
+                               ok( $.mobile.activePage[0] === $( "#active-state-page1" )[ 0 ], "successful navigation back to internal page." );
+
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "external page is removed from the DOM after pagehide", function(){
+               $.testHelper.pageSequence([
+                       navigateTestRoot,
+
+                       function(){
+                               $.mobile.changePage( "external.html" );
+                       },
+
+                       // page is pulled and displayed in the dom
+                       function(){
+                               same( $( "#external-test" ).length, 1 );
+                               window.history.back();
+                       },
+
+                       // external-test is *NOT* cached in the dom after transitioning away
+                       function(){
+                               same( $( "#external-test" ).length, 0 );
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "preventDefault on pageremove event can prevent external page from being removed from the DOM", function(){
+               var preventRemoval = true,
+                       removeCallback = function( e ) {
+                               if ( preventRemoval ) {
+                                       e.preventDefault();
+                               }
+                       };
+
+               $( document ).bind( "pageremove", removeCallback );
+
+               $.testHelper.pageSequence([
+                       navigateTestRoot,
+
+                       function(){
+                               $.mobile.changePage( "external.html" );
+                       },
+
+                       // page is pulled and displayed in the dom
+                       function(){
+                               same( $( "#external-test" ).length, 1 );
+                               window.history.back();
+                       },
+
+                       // external-test *IS* cached in the dom after transitioning away
+                       function(){
+                               same( $( "#external-test" ).length, 1 );
+
+                               // Switch back to the page again!
+                               $.mobile.changePage( "external.html" );
+                       },
+
+                       // page is still present and displayed in the dom
+                       function(){
+                               same( $( "#external-test" ).length, 1 );
+
+                               // Now turn off our removal prevention.
+                               preventRemoval = false;
+
+                               window.history.back();
+                       },
+
+                       // external-test is *NOT* cached in the dom after transitioning away
+                       function(){
+                               same( $( "#external-test" ).length, 0 );
+                               $( document ).unbind( "pageremove", removeCallback );
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "external page is cached in the DOM after pagehide", function(){
+               $.testHelper.pageSequence([
+                       navigateTestRoot,
+
+                       function(){
+                               $.mobile.changePage( "cached-external.html" );
+                       },
+
+                       // page is pulled and displayed in the dom
+                       function(){
+                               same( $( "#external-test-cached" ).length, 1 );
+                               window.history.back();
+                       },
+
+                       // external test page is cached in the dom after transitioning away
+                       function(){
+                               same( $( "#external-test-cached" ).length, 1 );
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "external page is cached in the DOM after pagehide when option is set globally", function(){
+               $.testHelper.pageSequence([
+                       navigateTestRoot,
+
+                       function(){
+                               $.mobile.page.prototype.options.domCache = true;
+                               $.mobile.changePage( "external.html" );
+                       },
+
+                       // page is pulled and displayed in the dom
+                       function(){
+                               same( $( "#external-test" ).length, 1 );
+                               window.history.back();
+                       },
+
+                       // external test page is cached in the dom after transitioning away
+                       function(){
+                               same( $( "#external-test" ).length, 1 );
+                               $.mobile.page.prototype.options.domCache = false;
+                               $( "#external-test" ).remove();
+                               start();
+                       }]);
+       });
+
+       asyncTest( "page last scroll distance is remembered while navigating to and from pages", function(){
+               $.testHelper.pageSequence([
+                       function(){
+                               $( "body" ).height( $( window ).height() + 500 );
+                               $.mobile.changePage( "external.html" );
+                       },
+
+                       function(){
+                               // wait for the initial scroll to 0
+                               setTimeout( function() {
+                                       window.scrollTo( 0, 300 );
+                                       same( $(window).scrollTop(), 300, "scrollTop is 300 after setting it" );
+                               }, 300);
+
+                               // wait for the scrollstop to fire and for the scroll to be
+                               // recorded 100 ms afterward (see changes made to handle hash
+                               // scrolling in some browsers)
+                               setTimeout( navigateTestRoot, 500 );
+                       },
+
+                       function(){
+                               history.back();
+                       },
+
+                       function(){
+                               // Give the silentScroll function some time to kick in.
+                               setTimeout(function() {
+                                       same( $(window).scrollTop(), 300, "scrollTop is 300 after returning to the page" );
+                                       $( "body" ).height( "" );
+                                       start();
+                               }, 300 );
+                       }
+               ]);
+       });
+
+       asyncTest( "forms with data attribute ajax set to false will not call changePage", function(){
+               var called = false;
+               var newChangePage = function(){
+                       called = true;
+               };
+
+               $.testHelper.sequence([
+                       // avoid initial page load triggering changePage early
+                       function(){
+                               $.mobile.changePage = newChangePage;
+
+                               $('#non-ajax-form').one('submit', function(event){
+                                       ok(true, 'submit callbacks are fired');
+                                       event.preventDefault();
+                               }).submit();
+                       },
+
+                       function(){
+                               ok(!called, "change page should not be called");
+                               start();
+                       }], 1000);
+       });
+
+       asyncTest( "forms with data attribute ajax not set or set to anything but false will call changePage", function(){
+               var called = 0,
+                               newChangePage = function(){
+                                       called++;
+                               };
+
+               $.testHelper.sequence([
+                       // avoid initial page load triggering changePage early
+                       function(){
+                               $.mobile.changePage = newChangePage;
+                               $('#ajax-form, #rand-ajax-form').submit();
+                       },
+
+                       function(){
+                               ok(called >= 2, "change page should be called at least twice");
+                               start();
+                       }], 300);
+       });
+
+
+       asyncTest( "anchors with no href attribute will do nothing when clicked", function(){
+               var fired = false;
+
+               $(window).bind("hashchange.temp", function(){
+                       fired = true;
+               });
+
+               $( "<a>test</a>" ).appendTo( $.mobile.firstPage ).click();
+
+               setTimeout(function(){
+                       same(fired, false, "hash shouldn't change after click");
+                       $(window).unbind("hashchange.temp");
+                       start();
+               }, 500);
+       });
+
+       test( "urlHistory is working properly", function(){
+
+               //urlHistory
+               same( $.type( $.mobile.urlHistory.stack ), "array", "urlHistory.stack is an array" );
+
+               //preload the stack
+               $.mobile.urlHistory.stack[0] = { url: "foo", transition: "bar" };
+               $.mobile.urlHistory.stack[1] = { url: "baz", transition: "shizam" };
+               $.mobile.urlHistory.stack[2] = { url: "shizoo", transition: "shizaah" };
+
+               //active index
+               same( $.mobile.urlHistory.activeIndex , 0, "urlHistory.activeIndex is 0" );
+
+               //getActive
+               same( $.type( $.mobile.urlHistory.getActive() ) , "object", "active item is an object" );
+               same( $.mobile.urlHistory.getActive().url , "foo", "active item has url foo" );
+               same( $.mobile.urlHistory.getActive().transition , "bar", "active item has transition bar" );
+
+               //get prev / next
+               same( $.mobile.urlHistory.getPrev(), undefined, "urlHistory.getPrev() is undefined when active index is 0" );
+               $.mobile.urlHistory.activeIndex = 1;
+               same( $.mobile.urlHistory.getPrev().url, "foo", "urlHistory.getPrev() has url foo when active index is 1" );
+               $.mobile.urlHistory.activeIndex = 0;
+               same( $.mobile.urlHistory.getNext().url, "baz", "urlHistory.getNext() has url baz when active index is 0" );
+
+               //add new
+               $.mobile.urlHistory.activeIndex = 2;
+               $.mobile.urlHistory.addNew("test");
+               same( $.mobile.urlHistory.stack.length, 4, "urlHistory.addNew() adds an item after the active index" );
+               same( $.mobile.urlHistory.activeIndex, 3, "urlHistory.addNew() moves the activeIndex to the newly added item" );
+
+               //clearForward
+               $.mobile.urlHistory.activeIndex = 0;
+               $.mobile.urlHistory.clearForward();
+               same( $.mobile.urlHistory.stack.length, 1, "urlHistory.clearForward() clears the url stack after the active index" );
+       });
+
+       //url listening
+       function testListening( prop ){
+               var stillListening = false;
+               $(document).bind("pagebeforehide", function(){
+                       stillListening = true;
+               });
+               location.hash = "foozball";
+               setTimeout(function(){
+                       ok( prop == stillListening, prop + " = false disables default hashchange event handler");
+                       location.hash = "";
+                       prop = true;
+                       start();
+               }, 1000);
+       }
+
+       asyncTest( "ability to disable our hash change event listening internally", function(){
+               testListening( ! $.mobile.urlHistory.ignoreNextHashChange );
+       });
+
+       asyncTest( "ability to disable our hash change event listening globally", function(){
+               testListening( $.mobile.hashListeningEnabled );
+       });
+
+       var testDataUrlHash = function( linkSelector, matches ) {
+               $.testHelper.pageSequence([
+                       function(){ window.location.hash = ""; },
+                       function(){ $(linkSelector).click(); },
+                       function(){
+                               $.testHelper.assertUrlLocation(
+                                       $.extend(matches, {
+                                               report: "url or hash should match"
+                                       })
+                               );
+
+                               start();
+                       }
+               ]);
+
+               stop();
+       };
+
+       test( "when loading a page where data-url is not defined on a sub element hash defaults to the url", function(){
+               testDataUrlHash( "#non-data-url a", {hashOrPush: siteDirectory + "data-url-tests/non-data-url.html"} );
+       });
+
+       test( "data url works for nested paths", function(){
+               var url = "foo/bar.html";
+               testDataUrlHash( "#nested-data-url a", {hash: url, push: home + url} );
+       });
+
+       test( "data url works for single quoted paths and roles", function(){
+               var url = "foo/bar/single.html";
+               testDataUrlHash( "#single-quotes-data-url a", {hash: url, push: home + url} );
+       });
+
+       test( "data url works when role and url are reversed on the page element", function(){
+               var url = "foo/bar/reverse.html";
+               testDataUrlHash( "#reverse-attr-data-url a", {hash: url, push: home + url} );
+       });
+
+       asyncTest( "last entry choosen amongst multiple identical url history stack entries on hash change", function(){
+               // make sure the stack is clear after initial page load an any other delayed page loads
+               // TODO better browser state management
+               $.mobile.urlHistory.stack = [];
+               $.mobile.urlHistory.activeIndex = 0;
+
+               $.testHelper.pageSequence([
+                       function(){ $.testHelper.openPage("#dup-history-first"); },
+                       function(){ $("#dup-history-first a").click(); },
+                       function(){ $("#dup-history-second a:first").click(); },
+                       function(){ $("#dup-history-first a").click(); },
+                       function(){ $("#dup-history-second a:last").click(); },
+                       function(){ $("#dup-history-dialog a:contains('Close')").click(); },
+                       function(){
+
+                               // fourth page (third index) in the stack to account for first page being hash manipulation,
+                               // the third page is dup-history-second which has two entries in history
+                               // the test is to make sure the index isn't 1 in this case, or the first entry for dup-history-second
+                               same($.mobile.urlHistory.activeIndex, 3, "should be the fourth page in the stack");
+                               start();
+                       }]);
+       });
+
+       asyncTest( "going back from a page entered from a dialog skips the dialog and goes to the previous page", function(){
+               $.testHelper.pageSequence([
+                       // setup
+                       function(){ $.testHelper.openPage("#skip-dialog-first"); },
+
+                       // transition to the dialog
+                       function(){ $("#skip-dialog-first a").click(); },
+
+                       // transition to the second page
+                       function(){ $("#skip-dialog a").click(); },
+
+                       // transition past the dialog via data-rel=back link on the second page
+                       function(){ $("#skip-dialog-second a").click(); },
+
+                       // make sure we're at the first page and not the dialog
+                       function(){
+                               $.testHelper.assertUrlLocation({
+                                       hash: "skip-dialog-first",
+                                       push: homeWithSearch + "#skip-dialog-first",
+                                       report: "should be the first page in the sequence"
+                               });
+
+                               start();
+                       }]);
+       });
+
+       asyncTest( "going forward from a page entered from a dialog skips the dialog and goes to the next page", function(){
+               $.testHelper.pageSequence([
+                       // setup
+                       function(){ $.testHelper.openPage("#skip-dialog-first"); },
+
+                       // transition to the dialog
+                       function(){ $("#skip-dialog-first a").click(); },
+
+                       // transition to the second page
+                       function(){ $("#skip-dialog a").click(); },
+
+                       // transition to back past the dialog
+                       function(){ window.history.back(); },
+
+                       // transition to the second page past the dialog through history
+                       function(){ window.history.forward(); },
+
+                       // make sure we're on the second page and not the dialog
+                       function(){
+                               $.testHelper.assertUrlLocation({
+                                       hash: "skip-dialog-second",
+                                       push: homeWithSearch + "#skip-dialog-second",
+                                       report: "should be the second page after the dialog"
+                               });
+
+                               start();
+                       }]);
+       });
+
+       asyncTest( "going back from a dialog triggered from a dialog should result in the first dialog ", function(){
+               $.testHelper.pageSequence([
+                       // setup
+                       function(){ $.testHelper.openPage("#nested-dialog-page"); },
+
+                       // transition to the dialog
+                       function(){ $("#nested-dialog-page a").click(); },
+
+                       // transition to the second dialog
+                       function(){ $("#nested-dialog-first a").click(); },
+
+                       // transition to back to the first dialog
+                       function(){ window.history.back(); },
+
+                       // make sure we're on first dialog
+                       function(){
+                               same($(".ui-page-active")[0], $("#nested-dialog-first")[0], "should be the first dialog");
+                               start();
+                       }]);
+       });
+
+       asyncTest( "loading a relative file path after an embeded page works", function(){
+               $.testHelper.pageSequence([
+                       // transition second page
+                       function(){ $.testHelper.openPage("#relative-after-embeded-page-first"); },
+
+                       // transition second page
+                       function(){ $("#relative-after-embeded-page-first a").click(); },
+
+                       // transition to the relative ajax loaded page
+                       function(){ $("#relative-after-embeded-page-second a").click(); },
+
+                       // make sure the page was loaded properly via ajax
+                       function(){
+                               // data attribute intentionally left without namespace
+                               same($(".ui-page-active").data("other"), "for testing", "should be relative ajax loaded page");
+                               start();
+                       }]);
+       });
+
+       asyncTest( "Page title updates properly when clicking back to previous page", function(){
+               $.testHelper.pageSequence([
+                       function(){
+                               $.testHelper.openPage("#relative-after-embeded-page-first");
+                       },
+
+                       function(){
+                               window.history.back();
+                       },
+
+                       function(){
+                               same(document.title, "jQuery Mobile Navigation Test Suite");
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "Page title updates properly when clicking a link back to first page", function(){
+               var title = document.title;
+
+               $.testHelper.pageSequence([
+                       function(){
+                               $.testHelper.openPage("#ajax-title-page");
+                       },
+
+                       function(){
+                               $("#titletest1").click();
+                       },
+
+                       function(){
+                               same(document.title, "Title Tag");
+                               $.mobile.activePage.find("#title-check-link").click();
+                       },
+
+                       function(){
+                               same(document.title, title);
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "Page title updates properly from title tag when loading an external page", function(){
+               $.testHelper.pageSequence([
+                       function(){
+                               $.testHelper.openPage("#ajax-title-page");
+                       },
+
+                       function(){
+                               $("#titletest1").click();
+                       },
+
+                       function(){
+                               same(document.title, "Title Tag");
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "Page title updates properly from data-title attr  when loading an external page", function(){
+               $.testHelper.pageSequence([
+                       function(){
+                               $.testHelper.openPage("#ajax-title-page");
+                       },
+
+                       function(){
+                               $("#titletest2").click();
+                       },
+
+                       function(){
+                               same(document.title, "Title Attr");
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "Page title updates properly from heading text in header when loading an external page", function(){
+               $.testHelper.pageSequence([
+                       function(){
+                               $.testHelper.openPage("#ajax-title-page");
+                       },
+
+                       function(){
+                               $("#titletest3").click();
+                       },
+
+                       function(){
+                               same(document.title, "Title Heading");
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "Page links to the current active page result in the same active page", function(){
+               $.testHelper.pageSequence([
+                       function(){
+                               $.testHelper.openPage("#self-link");
+                       },
+
+                       function(){
+                               $("a[href='#self-link']").click();
+                       },
+
+                       function(){
+                               same($.mobile.activePage[0], $("#self-link")[0], "self-link page is still the active page" );
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "links on subdirectory pages with query params append the params and load the page", function(){
+               $.testHelper.pageSequence([
+                       function(){
+                               $.testHelper.openPage("#data-url-tests/non-data-url.html");
+                       },
+
+                       function(){
+                               $("#query-param-anchor").click();
+                       },
+
+                       function(){
+                               $.testHelper.assertUrlLocation({
+                                       hashOrPush: home + "data-url-tests/non-data-url.html?foo=bar",
+                                       report: "the hash or url has query params"
+                               });
+
+                               ok($(".ui-page-active").jqmData("url").indexOf("?foo=bar") > -1, "the query params are in the data url");
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "identical query param link doesn't add additional set of query params", function(){
+               $.testHelper.pageSequence([
+                       function(){
+                               $.testHelper.openPage("#data-url-tests/non-data-url.html");
+                       },
+
+                       function(){
+                               $("#query-param-anchor").click();
+                       },
+
+                       function(){
+                               $.testHelper.assertUrlLocation({
+                                       hashOrPush: home + "data-url-tests/non-data-url.html?foo=bar",
+                                       report: "the hash or url has query params"
+                               });
+
+                               $("#query-param-anchor").click();
+                       },
+
+                       function(){
+                               $.testHelper.assertUrlLocation({
+                                       hashOrPush: home + "data-url-tests/non-data-url.html?foo=bar",
+                                       report: "the hash or url still has query params"
+                               });
+
+                               start();
+                       }
+               ]);
+       });
+
+       // Special handling inside navigation because query params must be applied to the hash
+       // or absolute reference and dialogs apply extra information int the hash that must be removed
+       asyncTest( "query param link from a dialog to itself should be a not add another dialog", function(){
+               var firstDialogLoc;
+
+               $.testHelper.pageSequence([
+                       // open our test page
+                       function(){
+                               $.testHelper.openPage("#dialog-param-link");
+                       },
+
+                       // navigate to the subdirectory page with the query link
+                       function(){
+                               $("#dialog-param-link a").click();
+                       },
+
+                       // navigate to the query param self reference link
+                       function(){
+                               $("#dialog-param-link-page a").click();
+                       },
+
+                       // attempt to navigate to the same link
+                       function(){
+                               // store the current hash for comparison (with one dialog hash key)
+                               firstDialogLoc = location.hash || location.href;
+                               $("#dialog-param-link-page a").click();
+                       },
+
+                       function(){
+                               same(location.hash || location.href, firstDialogLoc, "additional dialog hash key not added");
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "query data passed as string to changePage is appended to URL", function(){
+               $.testHelper.pageSequence([
+                       // open our test page
+                       function(){
+                               $.mobile.changePage( "form-tests/changepage-data.html", {
+                                       data: "foo=1&bar=2"
+                               } );
+                       },
+
+                       function(){
+                               $.testHelper.assertUrlLocation({
+                                       hashOrPush: home + "form-tests/changepage-data.html?foo=1&bar=2",
+                                       report: "the hash or url still has query params"
+                               });
+
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "query data passed as object to changePage is appended to URL", function(){
+               $.testHelper.pageSequence([
+                       // open our test page
+                       function(){
+                               $.mobile.changePage( "form-tests/changepage-data.html", {
+                                       data: {
+                                               foo: 3,
+                                               bar: 4
+                                       }
+                               } );
+                       },
+
+                       function(){
+                               $.testHelper.assertUrlLocation({
+                                       hashOrPush: home + "form-tests/changepage-data.html?foo=3&bar=4",
+                                       report: "the hash or url still has query params"
+                               });
+
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "refresh of a dialog url should not duplicate page", function(){
+               $.testHelper.pageSequence([
+                       // open our test page
+                       function(){
+                               same($(".foo-class").length, 1, "should only have one instance of foo-class in the document");
+                               location.hash = "#foo&ui-state=dialog";
+                       },
+
+                       function(){
+                               $.testHelper.assertUrlLocation({
+                                       hash: "foo&ui-state=dialog",
+                                       push: homeWithSearch + "#foo&ui-state=dialog",
+                                       report: "hash should match what was loaded"
+                               });
+
+                               same( $(".foo-class").length, 1, "should only have one instance of foo-class in the document" );
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "internal form with no action submits to document URL", function(){
+               $.testHelper.pageSequence([
+                       // open our test page
+                       function(){
+                               $.testHelper.openPage("#internal-no-action-form-page");
+                       },
+
+                       function(){
+                               $("#internal-no-action-form-page form").eq(0).submit();
+                       },
+
+                       function(){
+                               $.testHelper.assertUrlLocation({
+                                       hashOrPush: home + "?foo=1&bar=2",
+                                       report: "hash should match what was loaded"
+                               });
+
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "external page containing form with no action submits to page URL", function(){
+               $.testHelper.pageSequence([
+                       // open our test page
+                       function(){
+                               $.testHelper.openPage("#internal-no-action-form-page");
+                       },
+
+                       function(){
+                               $("#internal-no-action-form-page a").eq(0).click();
+                       },
+
+                       function(){
+                               $("#external-form-no-action-page form").eq(0).submit();
+                       },
+
+                       function(){
+                               $.testHelper.assertUrlLocation({
+                                       hashOrPush: home + "form-tests/form-no-action.html?foo=1&bar=2",
+                                       report: "hash should match page url and not document url"
+                               });
+
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "handling of active button state when navigating", 1, function(){
+
+               $.testHelper.pageSequence([
+                       // open our test page
+                       function(){
+                               $.testHelper.openPage("#active-state-page1");
+                       },
+
+                       function(){
+                               $("#active-state-page1 a").eq(0).click();
+                       },
+
+                       function(){
+                               $("#active-state-page2 a").eq(0).click();
+                       },
+
+                       function(){
+                               ok(!$("#active-state-page1 a").hasClass( $.mobile.activeBtnClass ), "No button should not have class " + $.mobile.activeBtnClass );
+                               start();
+                       }
+               ]);
+       });
+
+       // issue 2444 https://github.com/jquery/jquery-mobile/issues/2444
+       // results from preventing spurious hash changes
+       asyncTest( "dialog should return to its parent page when open and closed multiple times", function() {
+               $.testHelper.pageSequence([
+                       // open our test page
+                       function(){
+                               $.testHelper.openPage("#default-trans-dialog");
+                       },
+
+                       function(){
+                               $.mobile.activePage.find( "a" ).click();
+                       },
+
+                       function(){
+                               window.history.back();
+                       },
+
+                       function(){
+                               same( $.mobile.activePage[0], $( "#default-trans-dialog" )[0] );
+                               $.mobile.activePage.find( "a" ).click();
+                       },
+
+                       function(){
+                               window.history.back();
+                       },
+
+                       function(){
+                               same( $.mobile.activePage[0], $( "#default-trans-dialog" )[0] );
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "clicks with middle mouse button are ignored", function() {
+               $.testHelper.pageSequence([
+                       function() {
+                               $.testHelper.openPage( "#odd-clicks-page" );
+                       },
+
+                       function() {
+                               $( "#right-or-middle-click" ).click();
+                       },
+
+                       // make sure the page is opening first without the mocked button click value
+                       // only necessary to prevent issues with test specific fixtures
+                       function() {
+                               same($.mobile.activePage[0], $("#odd-clicks-page-dest")[0]);
+                               $.testHelper.openPage( "#odd-clicks-page" );
+
+                               // mock the which value to simulate a middle click
+                               $.Event.prototype.which = 2;
+                       },
+
+                       function() {
+                               $( "#right-or-middle-click" ).click();
+                       },
+
+                       function( timeout ) {
+                               ok( timeout, "page event handler timed out due to ignored click" );
+                               ok($.mobile.activePage[0] !== $("#odd-clicks-page-dest")[0], "pages are not the same");
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "disabling link binding disables navigation via links and highlighting", function() {
+               $.mobile.linkBindingEnabled = false;
+
+               $.testHelper.pageSequence([
+                       function() {
+                               $.testHelper.openPage("#bar");
+                       },
+
+                       function() {
+                               $.mobile.activePage.find( "a" ).click();
+                       },
+
+                       function( timeout ) {
+                               ok( !$.mobile.activePage.find( "a" ).hasClass( $.mobile.activeBtnClass ), "vlick handler doesn't add the activebtn class" );
+                               ok( timeout, "no page change was fired" );
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "handling of button active state when navigating by clicking back button", 1, function(){
+               $.testHelper.pageSequence([
+                       // open our test page
+                       function(){
+                               $.testHelper.openPage("#active-state-page1");
+                       },
+
+                       function(){
+                               $("#active-state-page1 a").eq(0).click();
+                       },
+
+                       function(){
+                               $("#active-state-page2 a").eq(1).click();
+                       },
+
+                       function(){
+                               $("#active-state-page1 a").eq(0).click();
+                       },
+
+                       function(){
+                               ok(!$("#active-state-page2 a").hasClass( $.mobile.activeBtnClass ), "No button should not have class " + $.mobile.activeBtnClass );
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "can navigate to dynamically injected page with dynamically injected link", function(){
+               $.testHelper.pageSequence([
+                       // open our test page
+                       function(){
+                               $.testHelper.openPage("#inject-links-page");
+                       },
+
+                       function(){
+                               var $ilpage = $( "#inject-links-page" ),
+                                       $link = $( "<a href='#injected-test-page'>injected-test-page link</a>" );
+
+                               // Make sure we actually navigated to the expected page.
+                               ok( $.mobile.activePage[ 0 ] == $ilpage[ 0 ], "navigated successfully to #inject-links-page" );
+
+                               // Now dynamically insert a page.
+                               $ilpage.parent().append( "<div data-role='page' id='injected-test-page'>testing...</div>" );
+
+                               // Now inject a link to this page dynamically and attempt to navigate
+                               // to the page we just inserted.
+                               $link.appendTo( $ilpage ).click();
+                       },
+
+                       function(){
+                               // Make sure we actually navigated to the expected page.
+                               ok( $.mobile.activePage[ 0 ] == $( "#injected-test-page" )[ 0 ], "navigated successfully to #injected-test-page" );
+
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "application url with dialogHashKey loads application's first page", function(){
+               $.testHelper.pageSequence([
+                       // open our test page
+                       function(){
+                               // Navigate to any page except the first page of the application.
+                               $.testHelper.openPage("#foo");
+                       },
+
+                       function(){
+                               ok( $.mobile.activePage[ 0 ] === $( "#foo" )[ 0 ], "navigated successfully to #foo" );
+
+                               // Now navigate to an hash that contains just a dialogHashKey.
+                               $.mobile.changePage("#" + $.mobile.dialogHashKey);
+                       },
+
+                       function(){
+                               // Make sure we actually navigated to the first page.
+                               ok( $.mobile.activePage[ 0 ] === $.mobile.firstPage[ 0 ], "navigated successfully to first-page" );
+
+                               // Now make sure opening the page didn't result in page duplication.
+                               ok( $.mobile.firstPage.hasClass( "first-page" ), "first page has expected class" );
+                               same( $( ".first-page" ).length, 1, "first page was not duplicated" );
+
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "navigate to non-existent internal page throws pagechangefailed", function(){
+               var pagechangefailed = false,
+                       pageChangeFailedCB = function( e ) {
+                       pagechangefailed = true;
+               }
+
+               $( document ).bind( "pagechangefailed", pageChangeFailedCB );
+
+               $.testHelper.pageSequence([
+                       // open our test page
+                       function(){
+                               // Make sure there's only one copy of the first-page in the DOM to begin with.
+                               ok( $.mobile.firstPage.hasClass( "first-page" ), "first page has expected class" );
+                               same( $( ".first-page" ).length, 1, "first page was not duplicated" );
+
+                               // Navigate to any page except the first page of the application.
+                               $.testHelper.openPage("#foo");
+                       },
+
+                       function(){
+                               var $foo = $( "#foo" );
+                               ok( $.mobile.activePage[ 0 ] === $foo[ 0 ], "navigated successfully to #foo" );
+                               same( pagechangefailed, false, "no page change failures" );
+
+                               // Now navigate to a non-existent page.
+                               $foo.find( "#bad-internal-page-link" ).click();
+                       },
+
+                       function(){
+                               // Make sure a pagechangefailed event was triggered.
+                               same( pagechangefailed, true, "pagechangefailed dispatched" );
+
+                               // Make sure we didn't navigate away from #foo.
+                               ok( $.mobile.activePage[ 0 ] === $( "#foo" )[ 0 ], "did not navigate away from #foo" );
+
+                               // Now make sure opening the page didn't result in page duplication.
+                               same( $( ".first-page" ).length, 1, "first page was not duplicated" );
+
+                               $( document ).unbind( "pagechangefailed", pageChangeFailedCB );
+
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "prefetched links with data rel dialog result in a dialog", function() {
+               $.testHelper.pageSequence([
+                       // open our test page
+                       function(){
+                               // Navigate to any page except the first page of the application.
+                               $.testHelper.openPage("#prefetched-dialog-page");
+                       },
+
+                       function() {
+                               $("#prefetched-dialog-link").click();
+                       },
+
+                       function() {
+                               ok( $.mobile.activePage.is(".ui-dialog"), "prefetched page is rendered as a dialog" );
+        start();
+                       }
+               ]);
+       });
+
+       asyncTest( "first page gets reloaded if pruned from the DOM", function(){
+               var hideCallbackTriggered = false;
+
+               function hideCallback( e, data )
+               {
+                       var page = e.target;
+                       ok( ( page === $.mobile.firstPage[ 0 ] ), "hide called with prevPage set to firstPage");
+                       if ( page === $.mobile.firstPage[ 0 ] ) {
+                                $( page ).remove();
+                       }
+                       hideCallbackTriggered = true;
+               }
+
+               $(document).bind('pagehide', hideCallback);
+
+               $.testHelper.pageSequence([
+                       function(){
+                               // Make sure the first page is actually in the DOM.
+                               ok( $.mobile.firstPage.parent().length !== 0, "first page is currently in the DOM" );
+
+                               // Make sure the first page is the active page.
+                               ok( $.mobile.activePage[ 0 ] === $.mobile.firstPage[ 0 ], "first page is the active page" );
+
+                               // Now make sure the first page has an id that we can use to reload it.
+                               ok( $.mobile.firstPage[ 0 ].id, "first page has an id" );
+
+                               // Make sure there is only one first page in the DOM.
+                               same( $( ".first-page" ).length, 1, "only one instance of the first page in the DOM" );
+
+                               // Navigate to any page except the first page of the application.
+                               $.testHelper.openPage("#foo");
+                       },
+
+                       function(){
+                               // Make sure the active page is #foo.
+                               ok( $.mobile.activePage[ 0 ] === $( "#foo" )[ 0 ], "navigated successfully to #foo" );
+
+                               // Make sure our hide callback was triggered.
+                               ok( hideCallbackTriggered, "hide callback was triggered" );
+
+                               // Make sure the first page was actually pruned from the document.
+                               ok( $.mobile.firstPage.parent().length === 0, "first page was pruned from the DOM" );
+                               same( $( ".first-page" ).length, 0, "no instance of the first page in the DOM" );
+
+                               // Remove our hideCallback.
+                               $(document).unbind('pagehide', hideCallback);
+
+                               // Navigate back to the first page!
+                               $.testHelper.openPage( "#" + $.mobile.firstPage[0].id );
+                       },
+
+                       function(){
+                               var firstPage = $( ".first-page" );
+
+                               // We should only have one first page in the document at any time!
+                               same( firstPage.length, 1, "single instance of first page recreated in the DOM" );
+
+                               // Make sure the first page in the DOM is actually a different DOM element than the original
+                               // one we started with.
+                               ok( $.mobile.firstPage[ 0 ] !== firstPage[ 0 ], "first page is a new DOM element");
+
+                               // Make sure we actually navigated to the new first page.
+                               ok( $.mobile.activePage[ 0 ] === firstPage[ 0 ], "navigated successfully to new first-page");
+
+                               // Reset the $.mobile.firstPage for subsequent tests.
+                               // XXX: Should we just get rid of the new one and restore the old?
+                               $.mobile.firstPage = $.mobile.activePage;
+
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "test that clicks are ignored where data-ajax='false' parents exist", function() {
+               var $disabledByParent = $( "#unhijacked-link-by-parent" ),
+                       $disabledByAttr = $( "#unhijacked-link-by-attr" );
+
+               $.mobile.ignoreContentEnabled = true;
+
+               $.testHelper.pageSequence([
+                       function() {
+                               $.mobile.changePage( "#link-hijacking-test" );
+                       },
+
+                       function() {
+                               $( "#hijacked-link" ).trigger( 'click' );
+                       },
+
+                       function() {
+                               ok( $.mobile.activePage.is("#link-hijacking-destination"), "nav works for links to hijacking destination" );
+                               window.history.back();
+                       },
+
+                       function() {
+                               $disabledByParent.trigger( 'click' );
+                       },
+
+                       function() {
+                               ok( $.mobile.activePage.is("#link-hijacking-test"), "click should be ignored keeping the active mobile page the same as before" );
+                       },
+
+                       function() {
+                               $disabledByAttr.trigger( 'click' );
+                       },
+
+                       function() {
+                               ok( $.mobile.activePage.is("#link-hijacking-test"), "click should be ignored keeping the active mobile page the same as before" );
+
+                               $.mobile.ignoreContentEnabled = false;
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "test that *vclicks* are ignored where data-ajax='false' parents exist", function() {
+               var $disabledByParent = $( "#unhijacked-link-by-parent" ),
+                       $disabledByAttr = $( "#unhijacked-link-by-attr" ),
+                       $hijacked = $( "#hijacked-link" );
+
+               $.mobile.ignoreContentEnabled = true;
+
+               $.testHelper.pageSequence([
+                       function() {
+                               $.mobile.changePage( "#link-hijacking-test" );
+                       },
+
+                       function() {
+                               // force the active button class
+                               $hijacked.addClass( $.mobile.activeBtnClass );
+                               $hijacked.trigger( 'vclick' );
+                               ok( $hijacked.hasClass( $.mobile.activeBtnClass ), "active btn class is added to the link per normal" );
+
+                               $disabledByParent.trigger( 'vclick' );
+                               ok( !$disabledByParent.hasClass( $.mobile.activeBtnClass ), "active button class is never added to the link" );
+
+                               $disabledByAttr.trigger( 'vclick' );
+                               ok( !$disabledByAttr.hasClass( $.mobile.activeBtnClass ), "active button class is never added to the link" );
+
+                               $.mobile.ignoreContentEnabled = false;
+                               start();
+                       }
+               ]);
+       });
+})(jQuery);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_dialog_pushstate.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_dialog_pushstate.js
new file mode 100644 (file)
index 0000000..a056f64
--- /dev/null
@@ -0,0 +1,16 @@
+(function($) {
+       asyncTest( "dialog ui-state should be part of the hash", function(){
+               $.testHelper.sequence([
+                       function() {
+                               // open the test page
+                               $.mobile.activePage.find( "a" ).click();
+                       },
+
+                       function() {
+                               // verify that the hash contains the dialogHashKey
+                               ok( location.hash.search($.mobile.dialogHashKey) >= 0 );
+                               start();
+                       }
+               ]);
+       });
+})(jQuery);
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_helpers.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_helpers.js
new file mode 100644 (file)
index 0000000..88533b7
--- /dev/null
@@ -0,0 +1,218 @@
+/*
+ * mobile navigation unit tests
+ */
+(function($){
+       var siteDirectory = location.pathname.replace(/[^/]+$/, "");
+
+       module('jquery.mobile.navigation.js', {
+               setup: function(){
+                       if ( location.hash ) {
+                               stop();
+                               $(document).one("pagechange", function() {
+                                       start();
+                               } );
+                               location.hash = "";
+                       }
+               }
+       });
+
+       test( "path.get method is working properly", function(){
+               window.location.hash = "foo";
+               same($.mobile.path.get(), "foo", "get method returns location.hash minus hash character");
+               same($.mobile.path.get( "#foo/bar/baz.html" ), "foo/bar/", "get method with hash arg returns path with no filename or hash prefix");
+               same($.mobile.path.get( "#foo/bar/baz.html/" ), "foo/bar/baz.html/", "last segment of hash is retained if followed by a trailing slash");
+       });
+
+       test( "path.isPath method is working properly", function(){
+               ok(!$.mobile.path.isPath('bar'), "anything without a slash is not a path");
+               ok($.mobile.path.isPath('bar/'), "anything with a slash is a path");
+               ok($.mobile.path.isPath('/bar'), "anything with a slash is a path");
+               ok($.mobile.path.isPath('a/r'), "anything with a slash is a path");
+               ok($.mobile.path.isPath('/'), "anything with a slash is a path");
+       });
+
+       test( "path.getFilePath method is working properly", function(){
+               same($.mobile.path.getFilePath("foo.html" + "&" + $.mobile.subPageUrlKey ), "foo.html", "returns path without sub page key");
+       });
+
+       test( "path.set method is working properly", function(){
+               $.mobile.urlHistory.ignoreNextHashChange = false;
+               $.mobile.path.set("foo");
+               same("foo", window.location.hash.replace(/^#/,""), "sets location.hash properly");
+       });
+
+       test( "path.makeUrlAbsolute is working properly", function(){
+               var mua = $.mobile.path.makeUrlAbsolute,
+                       p1 = "http://jqm.com/",
+                       p2 = "http://jqm.com/?foo=1&bar=2",
+                       p3 = "http://jqm.com/#spaz",
+                       p4 = "http://jqm.com/?foo=1&bar=2#spaz",
+
+                       p5 = "http://jqm.com/test.php",
+                       p6 = "http://jqm.com/test.php?foo=1&bar=2",
+                       p7 = "http://jqm.com/test.php#spaz",
+                       p8 = "http://jqm.com/test.php?foo=1&bar=2#spaz",
+
+                       p9 = "http://jqm.com/dir1/dir2/",
+                       p10 = "http://jqm.com/dir1/dir2/?foo=1&bar=2",
+                       p11 = "http://jqm.com/dir1/dir2/#spaz",
+                       p12 = "http://jqm.com/dir1/dir2/?foo=1&bar=2#spaz",
+
+                       p13 = "http://jqm.com/dir1/dir2/test.php",
+                       p14 = "http://jqm.com/dir1/dir2/test.php?foo=1&bar=2",
+                       p15 = "http://jqm.com/dir1/dir2/test.php#spaz",
+                       p16 = "http://jqm.com/dir1/dir2/test.php?foo=1&bar=2#spaz";
+
+               // Test URL conversion against an absolute URL to the site root.
+               // directory tests
+               same( mua( "http://jqm.com/",                            p1 ), "http://jqm.com/", "absolute root - absolute root" );
+               same( mua( "//jqm.com/",                                 p1 ), "http://jqm.com/", "protocol relative root - absolute root" );
+               same( mua( "/",                                          p1 ), "http://jqm.com/", "site relative root - absolute root" );
+
+               same( mua( "http://jqm.com/?foo=1&bar=2",                p1 ), "http://jqm.com/?foo=1&bar=2", "absolute root with query - absolute root" );
+               same( mua( "//jqm.com/?foo=1&bar=2",                     p1 ), "http://jqm.com/?foo=1&bar=2", "protocol relative root with query - absolute root" );
+               same( mua( "/?foo=1&bar=2",                              p1 ), "http://jqm.com/?foo=1&bar=2", "site relative root with query - absolute root" );
+               same( mua( "?foo=1&bar=2",                               p1 ), "http://jqm.com/?foo=1&bar=2", "query relative - absolute root" );
+
+               same( mua( "http://jqm.com/#spaz",                       p1 ), "http://jqm.com/#spaz", "absolute root with fragment - absolute root" );
+               same( mua( "//jqm.com/#spaz",                            p1 ), "http://jqm.com/#spaz", "protocol relative root with fragment - absolute root" );
+               same( mua( "/#spaz",                                     p1 ), "http://jqm.com/#spaz", "site relative root with fragment - absolute root" );
+               same( mua( "#spaz",                                      p1 ), "http://jqm.com/#spaz", "fragment relative - absolute root" );
+
+               same( mua( "http://jqm.com/?foo=1&bar=2#spaz",           p1 ), "http://jqm.com/?foo=1&bar=2#spaz", "absolute root with query and fragment - absolute root" );
+               same( mua( "//jqm.com/?foo=1&bar=2#spaz",                p1 ), "http://jqm.com/?foo=1&bar=2#spaz", "protocol relative root with query and fragment - absolute root" );
+               same( mua( "/?foo=1&bar=2#spaz",                         p1 ), "http://jqm.com/?foo=1&bar=2#spaz", "site relative root with query and fragment - absolute root" );
+               same( mua( "?foo=1&bar=2#spaz",                          p1 ), "http://jqm.com/?foo=1&bar=2#spaz", "query relative and fragment - absolute root" );
+
+               // file tests
+               same( mua( "http://jqm.com/test.php",                    p1 ), "http://jqm.com/test.php", "absolute file at root - absolute root" );
+               same( mua( "//jqm.com/test.php",                         p1 ), "http://jqm.com/test.php", "protocol relative file at root - absolute root" );
+               same( mua( "/test.php",                                  p1 ), "http://jqm.com/test.php", "site relative file at root - absolute root" );
+               same( mua( "test.php",                                   p1 ), "http://jqm.com/test.php", "document relative file at root - absolute root" );
+
+               same( mua( "http://jqm.com/test.php?foo=1&bar=2",        p1 ), "http://jqm.com/test.php?foo=1&bar=2", "absolute file at root with query - absolute root" );
+               same( mua( "//jqm.com/test.php?foo=1&bar=2",             p1 ), "http://jqm.com/test.php?foo=1&bar=2", "protocol relative file at root with query - absolute root" );
+               same( mua( "/test.php?foo=1&bar=2",                      p1 ), "http://jqm.com/test.php?foo=1&bar=2", "site relative file at root with query - absolute root" );
+               same( mua( "test.php?foo=1&bar=2",                       p1 ), "http://jqm.com/test.php?foo=1&bar=2", "document relative file at root with query - absolute root" );
+
+               same( mua( "http://jqm.com/test.php#spaz",               p1 ), "http://jqm.com/test.php#spaz", "absolute file at root with fragment - absolute root" );
+               same( mua( "//jqm.com/test.php#spaz",                    p1 ), "http://jqm.com/test.php#spaz", "protocol relative file at root with fragment - absolute root" );
+               same( mua( "/test.php#spaz",                             p1 ), "http://jqm.com/test.php#spaz", "site relative file at root with fragment - absolute root" );
+               same( mua( "test.php#spaz",                              p1 ), "http://jqm.com/test.php#spaz", "file at root with fragment - absolute root" );
+
+               same( mua( "http://jqm.com/test.php?foo=1&bar=2#spaz",   p1 ), "http://jqm.com/test.php?foo=1&bar=2#spaz", "absolute file at root with query and fragment - absolute root" );
+               same( mua( "//jqm.com/test.php?foo=1&bar=2#spaz",        p1 ), "http://jqm.com/test.php?foo=1&bar=2#spaz", "protocol relative file at root with query and fragment - absolute root" );
+               same( mua( "/test.php?foo=1&bar=2#spaz",                 p1 ), "http://jqm.com/test.php?foo=1&bar=2#spaz", "site relative file at root with query and fragment - absolute root" );
+               same( mua( "test.php?foo=1&bar=2#spaz",                  p1 ), "http://jqm.com/test.php?foo=1&bar=2#spaz", "query relative file at root fragment - absolute root" );
+
+               // Test URL conversion against an absolute URL to a file at the site root.
+
+               same( mua( "http://jqm.com/",                            p5 ), "http://jqm.com/", "absolute root - absolute root" );
+               same( mua( "//jqm.com/",                                 p5 ), "http://jqm.com/", "protocol relative root - absolute root" );
+               same( mua( "/",                                          p5 ), "http://jqm.com/", "site relative root - absolute root" );
+
+               same( mua( "http://jqm.com/?foo=1&bar=2",                p5 ), "http://jqm.com/?foo=1&bar=2", "absolute root with query - absolute root" );
+               same( mua( "//jqm.com/?foo=1&bar=2",                     p5 ), "http://jqm.com/?foo=1&bar=2", "protocol relative root with query - absolute root" );
+               same( mua( "/?foo=1&bar=2",                              p5 ), "http://jqm.com/?foo=1&bar=2", "site relative root with query - absolute root" );
+               same( mua( "?foo=1&bar=2",                               p5 ), "http://jqm.com/test.php?foo=1&bar=2", "query relative - absolute root" );
+
+               same( mua( "http://jqm.com/#spaz",                       p5 ), "http://jqm.com/#spaz", "absolute root with fragment - absolute root" );
+               same( mua( "//jqm.com/#spaz",                            p5 ), "http://jqm.com/#spaz", "protocol relative root with fragment - absolute root" );
+               same( mua( "/#spaz",                                     p5 ), "http://jqm.com/#spaz", "site relative root with fragment - absolute root" );
+               same( mua( "#spaz",                                      p5 ), "http://jqm.com/test.php#spaz", "fragment relative - absolute root" );
+
+               same( mua( "http://jqm.com/?foo=1&bar=2#spaz",           p5 ), "http://jqm.com/?foo=1&bar=2#spaz", "absolute root with query and fragment - absolute root" );
+               same( mua( "//jqm.com/?foo=1&bar=2#spaz",                p5 ), "http://jqm.com/?foo=1&bar=2#spaz", "protocol relative root with query and fragment - absolute root" );
+               same( mua( "/?foo=1&bar=2#spaz",                         p5 ), "http://jqm.com/?foo=1&bar=2#spaz", "site relative root with query and fragment - absolute root" );
+               same( mua( "?foo=1&bar=2#spaz",                          p5 ), "http://jqm.com/test.php?foo=1&bar=2#spaz", "query relative and fragment - absolute root" );
+       });
+
+       // https://github.com/jquery/jquery-mobile/issues/2362
+       test( "ipv6 host support", function(){
+               // http://www.ietf.org/rfc/rfc2732.txt ipv6 examples for tests
+               // most definitely not comprehensive
+               var     ipv6_1 = "http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html",
+                       ipv6_2 = "http://[1080:0:0:0:8:800:200C:417A]/index.html",
+                       ipv6_3 = "http://[3ffe:2a00:100:7031::1]",
+                       ipv6_4 = "http://[1080::8:800:200C:417A]/foo",
+                       ipv6_5 = "http://[::192.9.5.5]/ipng",
+                       ipv6_6 = "http://[::FFFF:129.144.52.38]:80/index.html",
+                       ipv6_7 = "http://[2010:836B:4179::836B:4179]",
+                 fromIssue = "http://[3fff:cafe:babe::]:443/foo";
+
+               same( $.mobile.path.parseUrl(ipv6_1).host, "[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80");
+               same( $.mobile.path.parseUrl(ipv6_1).hostname, "[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]");
+               same( $.mobile.path.parseUrl(ipv6_2).host, "[1080:0:0:0:8:800:200C:417A]");
+               same( $.mobile.path.parseUrl(ipv6_3).host, "[3ffe:2a00:100:7031::1]");
+               same( $.mobile.path.parseUrl(ipv6_4).host, "[1080::8:800:200C:417A]");
+               same( $.mobile.path.parseUrl(ipv6_5).host, "[::192.9.5.5]");
+               same( $.mobile.path.parseUrl(ipv6_6).host, "[::FFFF:129.144.52.38]:80");
+               same( $.mobile.path.parseUrl(ipv6_6).hostname, "[::FFFF:129.144.52.38]");
+               same( $.mobile.path.parseUrl(ipv6_7).host, "[2010:836B:4179::836B:4179]");
+               same( $.mobile.path.parseUrl(fromIssue).host, "[3fff:cafe:babe::]:443");
+               same( $.mobile.path.parseUrl(fromIssue).hostname, "[3fff:cafe:babe::]");
+       });
+
+       test( "path.clean is working properly", function(){
+               var localroot = location.protocol + "//" + location.host + location.pathname,
+                       remoteroot = "http://google.com/",
+                       fakepath = "#foo/bar/baz.html",
+                       pathWithParam = localroot + "bar?baz=" + localroot,
+                       localpath = localroot + fakepath,
+                       remotepath = remoteroot + fakepath;
+
+               same( $.mobile.path.clean( localpath ), location.pathname + fakepath, "removes location protocol, host, and portfrom same-domain path");
+               same( $.mobile.path.clean( remotepath ), remotepath, "does nothing to an external domain path");
+               same( $.mobile.path.clean( pathWithParam ), location.pathname + "bar?baz=" + localroot, "doesn't remove params with localroot value");
+       });
+
+       test( "path.stripHash is working properly", function(){
+               same( $.mobile.path.stripHash( "#bar" ), "bar", "returns a hash without the # prefix");
+       });
+
+       test( "path.hasProtocol is working properly", function(){
+               same( $.mobile.path.hasProtocol( "tel:5559999" ), true, "value in tel protocol format has protocol" );
+               same( $.mobile.path.hasProtocol( location.href ), true, "location href has protocol" );
+               same( $.mobile.path.hasProtocol( "foo/bar/baz.html" ), false, "simple directory path has no protocol" );
+               same( $.mobile.path.hasProtocol( "file://foo/bar/baz.html" ), true, "simple directory path with file:// has protocol" );
+       });
+
+       test( "path.isRelativeUrl is working properly", function(){
+               same( $.mobile.path.isRelativeUrl("http://company.com/"), false, "absolute url is not relative" );
+               same( $.mobile.path.isRelativeUrl("//company.com/"), true, "protocol relative url is relative" );
+               same( $.mobile.path.isRelativeUrl("/"), true, "site relative url is relative" );
+
+               same( $.mobile.path.isRelativeUrl("http://company.com/test.php"), false, "absolute url is not relative" );
+               same( $.mobile.path.isRelativeUrl("//company.com/test.php"), true, "protocol relative url is relative" );
+               same( $.mobile.path.isRelativeUrl("/test.php"), true, "site relative url is relative" );
+               same( $.mobile.path.isRelativeUrl("test.php"), true, "document relative url is relative" );
+
+               same( $.mobile.path.isRelativeUrl("http://company.com/dir1/dir2/test.php?foo=1&bar=2#frag"), false, "absolute url is not relative" );
+               same( $.mobile.path.isRelativeUrl("//company.com/dir1/dir2/test.php?foo=1&bar=2#frag"), true, "protocol relative url is relative" );
+               same( $.mobile.path.isRelativeUrl("/dir1/dir2/test.php?foo=1&bar=2#frag"), true, "site relative url is relative" );
+               same( $.mobile.path.isRelativeUrl("dir1/dir2/test.php?foo=1&bar=2#frag"), true, "document relative path url is relative" );
+               same( $.mobile.path.isRelativeUrl("test.php?foo=1&bar=2#frag"), true, "document relative file url is relative" );
+               same( $.mobile.path.isRelativeUrl("?foo=1&bar=2#frag"), true, "query relative url is relative" );
+               same( $.mobile.path.isRelativeUrl("#frag"), true, "fragments are relative" );
+       });
+
+       test( "path.isExternal is working properly", function(){
+               same( $.mobile.path.isExternal( location.href ), false, "same domain is not external" );
+               same( $.mobile.path.isExternal( "http://example.com" ), true, "example.com is external" );
+               same($.mobile.path.isExternal("mailto:"), true, "mailto protocol");
+               same($.mobile.path.isExternal("http://foo.com"), true, "http protocol");
+               same($.mobile.path.isExternal("http://www.foo.com"), true, "http protocol with www");
+               same($.mobile.path.isExternal("tel:16178675309"), true, "tel protocol");
+               same($.mobile.path.isExternal("foo.html"), false, "filename");
+               same($.mobile.path.isExternal("foo/foo/foo.html"), false, "file path");
+               same($.mobile.path.isExternal("../../index.html"), false, "relative parent path");
+               same($.mobile.path.isExternal("/foo"), false, "root-relative path");
+               same($.mobile.path.isExternal("foo"), false, "simple string");
+               same($.mobile.path.isExternal("#foo"), false, "local id reference");
+       });
+
+       test( "path.cleanHash", function(){
+               same( $.mobile.path.cleanHash( "#anything/atall?akjfdjjf" ), "anything/atall", "removes query param");
+               same( $.mobile.path.cleanHash( "#nothing/atall" ), "nothing/atall", "removes query param");
+       });
+})(jQuery);
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_paths.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_paths.js
new file mode 100644 (file)
index 0000000..017a943
--- /dev/null
@@ -0,0 +1,178 @@
+/*
+ * mobile navigation path unit tests
+ */
+(function($){
+       var url = $.mobile.path.parseUrl( location.href ),
+               home = location.href.replace( url.domain, "" );
+
+       var testPageLoad = function(testPageAnchorSelector, expectedTextValue){
+               expect( 2 );
+
+               $.testHelper.pageSequence([
+                       function(){
+                               // reset before each test, all tests expect original page
+                               // for relative urls
+                               $.testHelper.openPage( "#" + home);
+                       },
+
+                       // open our test page
+                       function(){
+                               $.testHelper.openPage("#pathing-tests");
+                       },
+
+                       // navigate to the linked page
+                       function(){
+                               var page = $.mobile.activePage;
+
+                               // check that the reset page isn't still open
+                               equal("", page.find(".reset-value").text());
+
+                               //click he test page link to execute the path
+                               page.find("a" + testPageAnchorSelector).click();
+                       },
+
+                       // verify that the page has changed and the expected text value is present
+                       function(){
+                               same($.mobile.activePage.find(".test-value").text(), expectedTextValue);
+                               start();
+                       }
+               ]);
+       };
+
+       // all of these alterations assume location.pathname will be a directory
+       // this is required to prevent the tests breaking in a subdirectory
+       // TODO could potentially be fragile since the tests could be running while
+       //      the urls are being updated
+       $(function(){
+               $("a.site-rel").each(function(i, elem){
+                       var $elem = $(elem);
+                       $elem.attr("href", location.pathname + $(elem).attr("href"));
+               });
+
+               $('a.protocol-rel').each(function(i, elem){
+                       var $elem = $(elem);
+                       $elem.attr("href", "//" + location.host + location.pathname + $(elem).attr("href"));
+               });
+
+               $('a.absolute').each(function(i, elem){
+                       var $elem = $(elem);
+                       $elem.attr("href",
+                                                                       location.protocol + "//" + location.host +
+                                                                       location.pathname + $(elem).attr("href"));
+               });
+       });
+
+
+       //Doc relative tests
+       module("document relative paths");
+
+       asyncTest( "file reference no nesting", function(){
+               testPageLoad("#doc-rel-test-one", "doc rel test one");
+       });
+
+       asyncTest( "file reference with nesting", function(){
+               testPageLoad("#doc-rel-test-two", "doc rel test two");
+       });
+
+       asyncTest( "file reference with double nesting", function(){
+               testPageLoad("#doc-rel-test-three", "doc rel test three");
+       });
+
+       asyncTest( "dir refrence with nesting", function(){
+               testPageLoad("#doc-rel-test-four", "doc rel test four");
+       });
+
+       asyncTest( "file refrence with parent dir", function(){
+               testPageLoad("#doc-rel-test-five", "doc rel test five");
+       });
+
+       asyncTest( "dir refrence with parent dir", function(){
+               testPageLoad("#doc-rel-test-six", "doc rel test six");
+       });
+
+
+       // Site relative tests
+       // NOTE does not test root path or non nested references
+       module("site relative paths");
+
+       asyncTest( "file reference no nesting", function(){
+               testPageLoad("#site-rel-test-one", "doc rel test one");
+       });
+
+       asyncTest( "file reference with nesting", function(){
+               testPageLoad("#site-rel-test-two", "doc rel test two");
+       });
+
+       asyncTest( "file reference with double nesting", function(){
+               testPageLoad("#site-rel-test-three", "doc rel test three");
+       });
+
+       asyncTest( "dir refrence with nesting", function(){
+               testPageLoad("#site-rel-test-four", "doc rel test four");
+       });
+
+       asyncTest( "file refrence with parent dir", function(){
+               testPageLoad("#site-rel-test-five", "doc rel test five");
+       });
+
+       asyncTest( "dir refrence with parent dir", function(){
+               testPageLoad("#site-rel-test-six", "doc rel test six");
+       });
+
+
+       // Protocol relative tests
+       // NOTE does not test root path or non nested references
+       module("protocol relative paths");
+
+       asyncTest( "file reference no nesting", function(){
+               testPageLoad("#protocol-rel-test-one", "doc rel test one");
+       });
+
+       asyncTest( "file reference with nesting", function(){
+               testPageLoad("#protocol-rel-test-two", "doc rel test two");
+       });
+
+       asyncTest( "file reference with double nesting", function(){
+               testPageLoad("#protocol-rel-test-three", "doc rel test three");
+       });
+
+       asyncTest( "dir refrence with nesting", function(){
+               testPageLoad("#protocol-rel-test-four", "doc rel test four");
+       });
+
+       asyncTest( "file refrence with parent dir", function(){
+               testPageLoad("#protocol-rel-test-five", "doc rel test five");
+       });
+
+       asyncTest( "dir refrence with parent dir", function(){
+               testPageLoad("#protocol-rel-test-six", "doc rel test six");
+       });
+
+       // absolute tests
+       // NOTE does not test root path or non nested references
+       module("abolute paths");
+
+       asyncTest( "file reference no nesting", function(){
+               testPageLoad("#absolute-test-one", "doc rel test one");
+       });
+
+       asyncTest( "file reference with nesting", function(){
+               testPageLoad("#absolute-test-two", "doc rel test two");
+       });
+
+       asyncTest( "file reference with double nesting", function(){
+               testPageLoad("#absolute-test-three", "doc rel test three");
+       });
+
+       asyncTest( "dir refrence with nesting", function(){
+               testPageLoad("#absolute-test-four", "doc rel test four");
+       });
+
+       asyncTest( "file refrence with parent dir", function(){
+               testPageLoad("#absolute-test-five", "doc rel test five");
+       });
+
+       asyncTest( "dir refrence with parent dir", function(){
+               testPageLoad("#absolute-test-six", "doc rel test six");
+       });
+})(jQuery);
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_transitions.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/navigation_transitions.js
new file mode 100644 (file)
index 0000000..9b16f0a
--- /dev/null
@@ -0,0 +1,243 @@
+/*
+ * mobile navigation unit tests
+ */
+(function($){
+       var perspective,
+                       transitioning = "ui-mobile-viewport-transitioning",
+                       animationCompleteFn = $.fn.animationComplete,
+                       defaultMaxTrans = $.mobile.maxTransitionWidth,
+
+                       //TODO centralize class names?
+                       transitionTypes = "in out fade slide flip reverse pop",
+
+                       isTransitioning = function(page){
+                               return $.grep(transitionTypes.split(" "), function(className, i){
+                                       return page.hasClass(className);
+                               }).length > 0;
+                       },
+
+                       isTransitioningIn = function(page){
+                               return page.hasClass("in") && isTransitioning(page);
+                       },
+
+                       disableMaxTransWidth = function(){
+                               $.mobile.maxTransitionWidth = false;
+                       },
+
+                       enableMaxTransWidth = function(){
+                               $.mobile.maxTransitionWidth = defaultMaxTrans;
+                       },
+
+                       //animationComplete callback queue
+                       fromQueue = [],
+                       toQueue = [],
+
+                       resetQueues = function(){
+                               fromQueue = [];
+                               toQueue = [];
+                       },
+
+                       onFromComplete = function( f ){
+                               fromQueue.push( f );
+                       },
+
+                       onToComplete = function( f ){
+                               toQueue.push( f );
+                       },
+
+
+                       //wipe all urls
+                       clearUrlHistory = function(){
+                               $.mobile.urlHistory.stack = [];
+                               $.mobile.urlHistory.activeIndex = 0;
+                       };
+
+
+       if( !$.support.cssTransform3d  ) {
+               perspective = "viewport-fade";
+  } else {
+    perspective = "viewport-flip";
+  }
+
+       module('jquery.mobile.navigation.js', {
+               setup: function(){
+
+
+                       // disable this option so we can test transitions regardless of window width
+                       disableMaxTransWidth();
+
+                       //stub to allow callback before function is returned to transition handler
+                       $.fn.animationComplete = function( callback ){
+                               animationCompleteFn.call( this, function(){
+                                       var queue = $(this).is(".out") ? fromQueue : toQueue;
+                                       for( var i = 0, il = queue.length; i < il; i++ ){
+                                               queue.pop()( this );
+                                       }
+                                       callback();
+                               });
+
+                               return this;
+                       };
+
+                       resetQueues();
+                       clearUrlHistory();
+
+      if ( location.hash !== "#harmless-default-page" ) {
+                               stop();
+
+                               $(document).one("pagechange", function() {
+                                       start();
+                               } );
+
+                               location.hash = "#harmless-default-page";
+                       }
+               },
+
+               teardown: function(){
+                       // unmock animation complete
+                       $.fn.animationComplete = animationCompleteFn;
+                       enableMaxTransWidth();
+               }
+       });
+
+       /*
+       NOTES:
+       Our default transition handler now has either one or two animationComplete calls - two if there are two pages in play (from and to)
+       To is required, so each async function must call start() onToComplete, not onFromComplete.
+       */
+       asyncTest( "changePage applies perspective class to mobile viewport for flip", function(){
+               expect(1);
+
+               $.testHelper.pageSequence([
+                       function() {
+                               $.mobile.changePage("#foo");
+                       },
+
+                       function() {
+                               onToComplete( function( el ) {
+                                       console.log( $("body").attr("class") );
+                                       ok($("body").hasClass(perspective), "has viewport-flip or viewport-fade based on 3d transform");
+                                       start();
+                               });
+
+                               $("#foo > a").first().click();
+                       }
+               ]);
+       });
+
+       asyncTest( "changePage applies transition class to mobile viewport for default transition", function(){
+               expect(1);
+               $.testHelper.pageSequence([
+                       function() {
+                               $.mobile.changePage("#baz");
+                       },
+
+                       function() {
+                               onToComplete( function( el ){
+                                       ok($("body").hasClass(transitioning), "has transitioning class");
+                                       start();
+                               });
+
+                               $("#baz > a").click();
+                       }
+               ]);
+       });
+
+       asyncTest( "explicit transition preferred for page navigation reversal (ie back)", function(){
+               expect( 1 );
+
+               onToComplete(function(){
+                       $("#flip-trans > a").click();
+                       onToComplete(function(){
+                               $("#fade-trans > a").click();
+                               onToComplete(function(){
+                                       ok($("#flip-trans").hasClass("fade"), "has fade class");
+                                       start();
+                               });
+                       });
+               });
+
+               $("#fade-trans > a").click();
+       });
+
+       asyncTest( "default transition is fade", function(){
+               onToComplete(function(){
+                       ok($("#no-trans").hasClass("fade"), "has fade class");
+                       start();
+               })
+
+               $("#default-trans > a").click();
+       });
+
+       asyncTest( "changePage queues requests", function(){
+               expect(4)
+               var firstPage = $("#foo"),
+                       secondPage = $("#bar");
+
+               $.mobile.changePage(firstPage);
+               $.mobile.changePage(secondPage);
+
+               onToComplete(function(){
+                       ok(isTransitioningIn(firstPage), "first page begins transition");
+                       ok(!isTransitioningIn(secondPage), "second page doesn't transition yet");
+                       onToComplete(function(){
+                               ok(!isTransitioningIn(firstPage), "first page transition should be complete");
+                               ok(isTransitioningIn(secondPage), "second page should begin transitioning");
+                               start();
+
+                       });
+               });
+       });
+
+       asyncTest( "default transition is pop for a dialog", function(){
+               var defaultTransition = "pop";
+
+               if( !$.support.cssTransform3d ){
+                       defaultTransition = "fade";
+               }
+
+               expect( 1 );
+               onToComplete(function(){
+                       ok( $("#no-trans-dialog").hasClass(defaultTransition), "has pop class" );
+                       start();
+               });
+
+               $("#default-trans-dialog > a").click();
+       });
+
+       test( "animationComplete return value", function(){
+               $.fn.animationComplete = animationCompleteFn;
+               equals($("#foo").animationComplete(function(){})[0], $("#foo")[0]);
+       });
+
+
+       // reusable function for a few tests below
+       function testTransitionMaxWidth( val, expected ){
+               expect( 1 );
+
+               $.mobile.maxTransitionWidth = val;
+
+               var transitionOccurred = false;
+
+               onToComplete(function(){
+                       transitionOccurred = true;
+               });
+
+
+               return setTimeout(function(){
+                       ok( transitionOccurred === expected, (expected ? "" : "no ") + "transition occurred" );
+                       start();
+               }, 5000);
+
+               $.mobile.changePage( $(".ui-page:not(.ui-page-active)").first() );
+
+       }
+
+       asyncTest( "maxTransitionWidth property disables transitions when value is less than browser width", function(){
+               testTransitionMaxWidth( $( window ).width() - 1, false );
+       });
+
+       asyncTest( "maxTransitionWidth property disables transitions when value is false", function(){
+               testTransitionMaxWidth( false, false );
+       });
+})(jQuery);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/file.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/file.html
new file mode 100644 (file)
index 0000000..98e20d5
--- /dev/null
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+</head>
+<body>
+       <div data-nstest-role="page">
+               <div class="test-value">doc rel test two</div>
+       </div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/parent-ref.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/parent-ref.html
new file mode 100644 (file)
index 0000000..d4b6242
--- /dev/null
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+</head>
+<body>
+       <div data-nstest-role="page">
+               <div class="test-value">doc rel test five</div>
+       </div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/parent/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/parent/index.html
new file mode 100644 (file)
index 0000000..3fc4f33
--- /dev/null
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+</head>
+<body>
+       <div data-nstest-role="page">
+               <div class="test-value">doc rel test six</div>
+       </div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/sub-dir/file.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/sub-dir/file.html
new file mode 100644 (file)
index 0000000..93aad52
--- /dev/null
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+</head>
+<body>
+       <div data-nstest-role="page">
+               <div class="test-value">doc rel test three</div>
+       </div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/sub-dir/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/path-tests/sub-dir/index.html
new file mode 100644 (file)
index 0000000..8ef666a
--- /dev/null
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+</head>
+<body>
+       <div data-nstest-role="page">
+               <div class="test-value">doc rel test four</div>
+       </div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/prefetched-dialog.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/prefetched-dialog.html
new file mode 100644 (file)
index 0000000..bea1799
--- /dev/null
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <title>Title Tag</title>
+</head>
+<body>
+  <div data-nstest-role="page" id="prefetched-dialog"></div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/prefetched.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/prefetched.html
new file mode 100644 (file)
index 0000000..de66a40
--- /dev/null
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <title>Title Tag</title>
+</head>
+<body>
+
+<div data-nstest-role="page" id="prefetched"></div>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/push-state-dialog-tests.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/push-state-dialog-tests.html
new file mode 100644 (file)
index 0000000..8fcfabd
--- /dev/null
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile Navigation Test Suite</title>
+
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../../js/"></script>
+       <script src="../../../tests/jquery.testHelper.js"></script>
+
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+       <script src="../../../external/qunit.js"></script>
+
+       <script type="text/javascript" src="navigation_dialog_pushstate.js"></script>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Navigation Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div data-nstest-role="page">
+  <a href="#dialog">open the dialog</a>
+</div>
+
+<div id="dialog" data-nstest-role="dialog">
+        <div data-nstest-role="header" data-nstest-position="inline">
+                <h1>Dialog</h1>
+        </div>
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/push-state-disabled-base-tests.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/push-state-disabled-base-tests.html
new file mode 100644 (file)
index 0000000..b2b499e
--- /dev/null
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <!-- forces the base-tests into a push state disabled run and allows for
+       the test suite runner to pick it up as a seperate test set. See test/unit/ls.php,
+       test/unit/runner.js, base-tests.html, and tests/jquery.testHelper.js for more. -->
+  <meta http-equiv="refresh" content="0; url='base-tests.html?push-state=false'"></meta>
+</head>
+<body>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/push-state-disabled-tests.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/push-state-disabled-tests.html
new file mode 100644 (file)
index 0000000..27b6eb5
--- /dev/null
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <!-- forces the base-tests into a push state disabled run and allows for
+       the test suite runner to pick it up as a seperate test set. See test/unit/ls.php,
+       test/unit/runner.js, base-tests.html, and tests/jquery.testHelper.js for more. -->
+  <meta http-equiv="refresh" content="0; url='./?push-state=false'"></meta>
+</head>
+<body>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/title1.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/title1.html
new file mode 100644 (file)
index 0000000..eb83eae
--- /dev/null
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <title>Title Tag</title>
+</head>
+<body>
+
+<div data-nstest-role="page">
+  <a href="./" id="title-check-link">back to the parent page</a>
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/title2.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/title2.html
new file mode 100644 (file)
index 0000000..9545c53
--- /dev/null
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+
+</head>
+<body>
+
+<div data-nstest-role="page" data-nstest-title="Title Attr"></div>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/title3.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/title3.html
new file mode 100644 (file)
index 0000000..714df82
--- /dev/null
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+</head>
+<body>
+
+<div data-nstest-role="page" >
+       <div data-nstest-role="header"><h1>Title Heading</h1></div>
+</div>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/transition-tests.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/navigation/transition-tests.html
new file mode 100644 (file)
index 0000000..8444dad
--- /dev/null
@@ -0,0 +1,285 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile Navigation Test Suite</title>
+
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../../tests/jquery.testHelper.js"></script>
+       <script type="text/javascript">
+               $.testHelper.setPushState();
+       </script>
+
+       <script src="../../../js/"></script>
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+       <script src="../../../external/qunit.js"></script>
+
+       <script type="text/javascript" src="navigation_transitions.js"></script>
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Navigation Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div id="harmless-default-page"         data-nstest-role="page" class="first-page">
+</div>
+
+<div id="foo" data-nstest-role="page" class="foo-class">
+       <a href="#bar" data-nstest-transition="flip"></a>
+       <a id="bad-internal-page-link" href="#non-existent-page"></a>
+</div>
+
+<div id="prefetch" data-nstest-role="page">
+       <a href="prefetched.html" data-nstest-prefetch>Prefetch test</a>
+</div>
+
+<div id="foozball" data-nstest-role="page">
+</div>
+
+<div id="bar"   data-nstest-role="page">
+       <a href="#baz"></a>
+</div>
+
+<div id="baz"   data-nstest-role="page">
+       <a href="#foo"></a>
+</div>
+
+<div id="fade-trans" data-nstest-role="page">
+       <a href="#flip-trans" data-nstest-transition="fade"></a>
+</div>
+
+<div id="flip-trans" data-nstest-role="page">
+       <a href="#fade-trans" data-nstest-transition="flip"></a>
+</div>
+
+<div id="no-trans" data-nstest-role="page">
+       <a href="#pop-trans"></a>
+</div>
+
+<div id="pop-trans"     data-nstest-role="page">
+       <a href="#no-trans" data-nstest-transition="pop"></a>
+</div>
+
+<div id="default-trans"         data-nstest-role="page">
+       <a href="#no-trans"></a>
+</div>
+
+<div id="data-url" data-nstest-role="page">
+       <a href="data-url-tests/data-url.html"></a>
+</div>
+
+<div id="non-data-url" data-nstest-role="page">
+       <a href="data-url-tests/non-data-url.html"></a>
+</div>
+
+<div id="nested-data-url"       data-nstest-role="page">
+       <a href="data-url-tests/nested.html"></a>
+</div>
+
+<div id="single-quotes-data-url" data-nstest-role="page">
+       <a href="data-url-tests/single-quotes.html"></a>
+</div>
+
+<div id="reverse-attr-data-url"         data-nstest-role="page">
+       <a href="data-url-tests/reverse-attr.html"></a>
+</div>
+
+<div id="ajax-disabled-form" data-nstest-role="page">
+       <form method="POST" id="non-ajax-form" action="/ajax-disabled-form" data-nstest-ajax="false">
+       </form>
+
+       <form method="POST" id="ajax-form" action="/ajax-disabled-form">
+       </form>
+
+       <form method="POST" id="rand-ajax-form" action="/ajax-disabled-form" data-nstest-ajax="foo">
+       </form>
+</div>
+
+<div id="default-trans-dialog" data-nstest-role="page">
+       <a href="#no-trans-dialog" data-nstest-rel="dialog"></a>
+</div>
+
+<div id="no-trans-dialog" data-nstest-role="page">
+</div>
+
+<div id="dup-history-first" data-nstest-role="page">
+       <a href="#dup-history-second" data-nstest-transition="slideup" data-nstest-role="button" >
+               Page 2
+       </a>
+</div>
+
+<div id="dup-history-second" data-nstest-role="page">
+       <a href="#dup-history-first" data-nstest-transition="slideup" data-nstest-role="button">
+               Page 1
+       </a>
+       <a href="#dup-history-dialog" data-nstest-role="button" data-nstest-transition="pop" data-nstest-rel="dialog">Dialog</a>
+</div>
+
+<div id="dup-history-dialog" data-nstest-role="dialog">
+        <div data-nstest-role="header" data-nstest-position="inline">
+                <h1>Dialog</h1>
+        </div>
+</div>
+
+<div id="skip-dialog-first" data-nstest-role="page">
+       <div data-nstest-role="content">
+               <a href="#skip-dialog" data-nstest-role="button" data-nstest-transition="pop" data-nstest-rel="dialog">Dialog</a>
+       </div>
+</div>
+
+<div id="skip-dialog" data-nstest-role="dialog">
+       <div data-nstest-role="content">
+               <a href="#skip-dialog-second">Page 2</a>
+       </div>
+</div>
+
+<div id="skip-dialog-second" data-nstest-role="page">
+       <a href="#" data-nstest-rel="back">Go Back</a>
+</div>
+
+
+<div id="nested-dialog-page" data-nstest-role="page">
+       <div data-nstest-role="content">
+               <a href="#nested-dialog-first">Dialog</a>
+       </div>
+</div>
+
+<div id="nested-dialog-first" data-nstest-role="dialog">
+       <div data-nstest-role="content">
+               <a href="#nested-dialog-second">Dialog 2</a>
+       </div>
+</div>
+
+<div id="nested-dialog-second" data-nstest-role="dialog">
+</div>
+
+<div id="relative-after-embeded-page-first" data-nstest-role="page">
+       <div data-nstest-role="content">
+               <a href="#relative-after-embeded-page-second">second page</a>
+       </div>
+</div>
+
+<div id="relative-after-embeded-page-second" data-nstest-role="page">
+       <div data-nstest-role="content">
+               <a href="data-url-tests/data-url.html">file path page</a>
+       </div>
+</div>
+
+<div id="ajax-title-page" data-nstest-title="Title Attr 1" data-nstest-role="page">
+       <a href="title1.html" id="titletest1" data-nstest-transition="none">test</a>
+       <a href="title2.html" id="titletest2" data-nstest-transition="none">test</a>
+       <a href="title3.html" id="titletest3" data-nstest-transition="none">test</a>
+</div>
+
+<div data-nstest-role="page" id="titletest4" data-nstest-title="Title Attr 2">
+       <div data-nstest-role="header"><h1>Title Heading</h1></div>
+</div>
+
+<div data-nstest-role="page" id="titletest5" data-nstest-title="Title Attr">
+       <div data-nstest-role="header"><h1>Title Heading</h1></div>
+</div>
+
+<div data-nstest-role="page" id="self-link">
+       <a href="#self-link">self!</a>
+</div>
+
+<div data-nstest-role="page" id="dialog-param-link">
+       <a href="dialog-param-test/dialog-param.html">go</a>
+</div>
+
+<div data-nstest-role="page" id="pathing-tests">
+       <!-- doc rel links -->
+       <a href="file.html" id="doc-rel-test-one">go</a>
+       <a href="path-tests/file.html" id="doc-rel-test-two">go</a>
+       <a href="path-tests/sub-dir/file.html" id="doc-rel-test-three">go</a>
+       <a href="path-tests/sub-dir/" id="doc-rel-test-four">go</a>
+       <a href="../../unit/navigation/path-tests/parent-ref.html" id="doc-rel-test-five">go</a>
+       <a href="../../unit/navigation/path-tests/parent/" id="doc-rel-test-six">go</a>
+
+       <!-- site rel links -->
+       <!-- these will be altered before the test suite runs to use the current path -->
+       <a href="file.html" id="site-rel-test-one" class="site-rel">go</a>
+       <a href="path-tests/file.html" id="site-rel-test-two" class="site-rel">go</a>
+       <a href="path-tests/sub-dir/file.html" id="site-rel-test-three" class="site-rel">go</a>
+       <a href="path-tests/sub-dir/" id="site-rel-test-four" class="site-rel">go</a>
+       <a href="../../unit/navigation/path-tests/parent-ref.html" id="site-rel-test-five" class="site-rel">go</a>
+       <a href="../../unit/navigation/path-tests/parent/" id="site-rel-test-six" class="site-rel">go</a>
+
+       <!-- protocol rel links -->
+       <!-- these will be altered before the test suite runs to use the
+                        current domain and path -->
+       <a href="file.html" id="protocol-rel-test-one" class="protocol-rel">go</a>
+       <a href="path-tests/file.html" id="protocol-rel-test-two" class="protocol-rel">go</a>
+       <a href="path-tests/sub-dir/file.html" id="protocol-rel-test-three" class="protocol-rel">go</a>
+       <a href="path-tests/sub-dir/" id="protocol-rel-test-four" class="protocol-rel">go</a>
+       <a href="../../unit/navigation/path-tests/parent-ref.html" id="protocol-rel-test-five" class="protocol-rel">go</a>
+       <a href="../../unit/navigation/path-tests/parent/" id="protocol-rel-test-six" class="protocol-rel">go</a>
+
+       <!-- absolute links -->
+       <!-- these will be altered before the test suite runs to use the
+                        current protocol, domain and path -->
+       <a href="file.html" id="absolute-test-one" class="absolute">go</a>
+       <a href="path-tests/file.html" id="absolute-test-two" class="absolute">go</a>
+       <a href="path-tests/sub-dir/file.html" id="absolute-test-three" class="absolute">go</a>
+       <a href="path-tests/sub-dir/" id="absolute-test-four" class="absolute">go</a>
+       <a href="../../unit/navigation/path-tests/parent-ref.html" id="absolute-test-five" class="absolute">go</a>
+       <a href="../../unit/navigation/path-tests/parent/" id="absolute-test-six" class="absolute">go</a>
+
+</div>
+
+<div data-nstest-role="page" id="pathing-tests-reset">
+       <div class="reset-value">page didn't change!</div>
+</div>
+
+<div data-nstest-role="page" id="internal-no-action-form-page">
+       <div data-nstest-role="content">
+               <form>
+                       <input type="hidden" name="foo" value="1">
+                       <input type="hidden" name="bar" value="2">
+               </form>
+                               <a href="form-tests/form-no-action.html">External page containing form with no action.</a>
+               </div>
+</div>
+
+<div id="active-state-page1" data-nstest-role="page">
+       <div data-nstest-role="content">
+               <a href="#active-state-page2" data-nstest-role="button">page2</a>
+       </div>
+</div>
+
+<div id="active-state-page2" data-nstest-role="page">
+       <div data-nstest-role="content">
+               <a href="#active-state-page1" data-nstest-role="button">href button</a>
+               <a href="#active-state-page1" data-nstest-rel="back" data-nstest-role="button">back button</a>
+       </div>
+</div>
+
+
+
+<div id="odd-clicks-page" data-nstest-role="page">
+  <a href="#odd-clicks-page-dest" id="right-or-middle-click">foo</a>
+</div>
+
+<div id="odd-clicks-page-dest" data-nstest-role="page"></div>
+
+<div id="inject-links-page" data-nstest-role="page">
+  <a href="#injected-test-page" id="static-injected-test-page-link">static link</a>
+</div>
+
+<div id="prefetched-dialog-page" data-nstest-role="page">
+  <a href="prefetched-dialog.html"
+     id="prefetched-dialog-link"
+     data-nstest-role="prefetch"
+     data-nstest-rel="dialog">
+    static link
+  </a>
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/page-sections/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/page-sections/index.html
new file mode 100644 (file)
index 0000000..c413111
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile Page Test Suite</title>
+
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../../tests/jquery.testHelper.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [
+                               "jquery.mobile.page",
+                               "jquery.mobile.page.sections"
+                       ],
+                       [ "page_core.js" ],
+                       [ "jquery.mobile.init" ]
+               ]);
+       </script>
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Page Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div id="qunit-fixture">
+       <div data-nstest-role="page">
+               <div data-nstest-role="header">
+                       <div>
+                               <a href="foo">foo</a>
+                       </div>
+                       <a href="foo">foo</a>
+               </div><!-- /header -->
+
+               <div  data-nstest-role="footer">
+                       <div>
+                               <a href="foo">foo</a>
+                       </div>
+
+                       <a href="foo">foo</a>
+               </div><!-- /header -->
+
+               <div class="ui-bar">
+                       <div>
+                               <a href="foo">foo</a>
+                       </div>
+
+                       <a href="foo">foo</a>
+               </div>
+       </div>
+</div>
+
+<div data-nstest-enhance="false">
+       <div data-nstest-role="header" id="ignored-header">
+               <div>
+                       <a href="foo">foo</a>
+               </div>
+               <a href="foo">foo</a>
+       </div><!-- /header -->
+</div>
+
+<div>
+       <div data-nstest-role="header" id="enhanced-header">
+               <div>
+                       <a href="foo">foo</a>
+               </div>
+               <a href="foo">foo</a>
+       </div><!-- /header -->
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/page-sections/page_core.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/page-sections/page_core.js
new file mode 100644 (file)
index 0000000..75f0765
--- /dev/null
@@ -0,0 +1,54 @@
+/*
+ * mobile page unit tests
+ */
+(function($){
+       var libName = 'jquery.mobile.page.sections';
+
+       module(libName);
+
+       test( "nested header anchors aren't altered", function(){
+               ok(!$('.ui-header > div > a').hasClass('ui-btn'));
+       });
+
+       test( "nested footer anchors aren't altered", function(){
+               ok(!$('.ui-footer > div > a').hasClass('ui-btn'));
+       });
+
+       test( "nested bar anchors aren't styled", function(){
+               ok(!$('.ui-bar > div > a').hasClass('ui-btn'));
+       });
+
+       test( "unnested footer anchors are styled", function(){
+               ok($('.ui-footer > a').hasClass('ui-btn'));
+       });
+
+       test( "unnested bar anchors are styled", function(){
+               ok($('.ui-bar > a').hasClass('ui-btn'));
+       });
+
+       test( "no auto-generated back button exists on first page", function(){
+               ok( !$(".ui-header > :jqmData(rel='back')").length );
+       });
+
+       test( "sections inside an ignored container do not enhance", function() {
+               var $ignored = $( "#ignored-header" ),  $enhanced = $( "#enhanced-header" );
+
+               $.mobile.ignoreContentEnabled = true;
+
+               $ignored
+                       .parent()
+                       .attr( "data-" + $.mobile.ns + "role", "page" )
+                       .page()
+                       .trigger( "pagecreate" );
+               same( $ignored.attr( "class" ), undefined, "ignored header has no class" );
+
+               $enhanced
+                       .parent()
+                       .attr( "data-" + $.mobile.ns + "role", "page" )
+                       .page()
+                       .trigger( "pagecreate" );
+               same( $enhanced.attr( "class" ).indexOf("ui-header"), 0, "enhanced header has classes" );
+
+               $.mobile.ignoreContentEnabled = false;
+       });
+})(jQuery);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/page/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/page/index.html
new file mode 100644 (file)
index 0000000..b6cc81d
--- /dev/null
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile Page Test Suite</title>
+
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../../tests/jquery.testHelper.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [
+                               "jquery.mobile.page",
+                               "jquery.mobile.links",
+                       ],
+                       [ "page_core.js" ],
+                       [ "jquery.mobile.init" ]
+               ]);
+       </script>
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css" />
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Page Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div id="a" data-nstest-role="page"></div>
+<div id="b" data-nstest-role="page" data-nstest-theme="e"></div>
+<div id="c" data-nstest-role="page"></div>
+
+<div>
+  <a href="#" id="enhanced-link"></a>
+</div>
+
+<div data-nstest-enhance="false">
+  <a href="#" id="ignored-link"></a>
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/page/page_core.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/page/page_core.js
new file mode 100644 (file)
index 0000000..234df61
--- /dev/null
@@ -0,0 +1,157 @@
+/*
+ * mobile page unit tests
+ */
+(function($){
+       var libName = 'jquery.mobile.page',
+               themedefault = $.mobile.page.prototype.options.theme,
+               keepNative = $.mobile.page.prototype.options.keepNative;
+
+       module(libName, {
+               setup: function() {
+                       $.mobile.page.prototype.options.keepNative = keepNative;
+               }
+       });
+
+       var eventStack = [],
+               etargets = [],
+               cEvents=[],
+               cTargets=[];
+
+       $( document ).bind( "pagebeforecreate pagecreate", function( e ){
+               eventStack.push( e.type );
+               etargets.push( e.target );
+       });
+
+       $( "#c" ).live( "pagebeforecreate", function( e ){
+               cEvents.push( e.type );
+               cTargets.push( e.target );
+               return false;
+       });
+
+       test( "pagecreate event fires when page is created", function(){
+               ok( eventStack[0] === "pagecreate" || eventStack[1] === "pagecreate" );
+       });
+
+       test( "pagebeforecreate event fires when page is created", function(){
+               ok( eventStack[0] === "pagebeforecreate" || eventStack[1] === "pagebeforecreate" );
+       });
+
+       test( "pagebeforecreate fires before pagecreate", function(){
+               ok( eventStack[0] === "pagebeforecreate" );
+       });
+
+       test( "target of pagebeforecreate event was div #a", function(){
+               ok( $( etargets[0] ).is("#a") );
+       });
+
+       test( "target of pagecreate event was div #a" , function(){
+               ok( $( etargets[0] ).is("#a") );
+       });
+
+       test( "page element has ui-page class" , function(){
+               ok( $( "#a" ).hasClass( "ui-page" ) );
+       });
+
+       test( "page element has default body theme when not overidden" , function(){
+               ok( $( "#a" ).hasClass( "ui-body-" + themedefault ) );
+       });
+
+       test( "B page has non-default theme matching its data-theme attr" , function(){
+               $( "#b" ).page();
+               var btheme = $( "#b" ).jqmData( "theme" );
+               ok( $( "#b" ).hasClass( "ui-body-" + btheme ) );
+       });
+
+       test( "Binding to pagebeforecreate and returning false prevents pagecreate event from firing" , function(){
+               $( "#c" ).page();
+
+               ok( cEvents[0] === "pagebeforecreate" );
+               ok( !cTargets[1] );
+       });
+
+       test( "Binding to pagebeforecreate and returning false prevents classes from being applied to page" , function(){
+               $( "#c" ).page();
+
+               ok( !$( "#c" ).hasClass( "ui-body-" + themedefault ) );
+               ok( !$( "#c" ).hasClass( "ui-page" ) );
+       });
+
+       test( "keepNativeSelector returns the default where keepNative is not different", function() {
+               var pageProto = $.mobile.page.prototype;
+               pageProto.options.keepNative = pageProto.options.keepNativeDefault;
+
+               same(pageProto.keepNativeSelector(), pageProto.options.keepNativeDefault);
+       });
+
+       test( "keepNativeSelector returns the default where keepNative is empty, undefined, whitespace", function() {
+               var pageProto = $.mobile.page.prototype;
+
+               pageProto.options.keepNative = "";
+               same(pageProto.keepNativeSelector(), pageProto.options.keepNativeDefault);
+
+               pageProto.options.keepNative = undefined;
+               same(pageProto.keepNativeSelector(), pageProto.options.keepNativeDefault);
+
+               pageProto.options.keepNative = "  ";
+               same(pageProto.keepNativeSelector(), pageProto.options.keepNativeDefault);
+       });
+
+       test( "keepNativeSelector returns a selector joined with the default", function() {
+               var pageProto = $.mobile.page.prototype;
+
+               pageProto.options.keepNative = "foo, bar";
+               same(pageProto.keepNativeSelector(), "foo, bar, " + pageProto.options.keepNativeDefault);
+       });
+
+       test( "links inside an ignored container do not enhance", function() {
+               var $ignored = $( "#ignored-link" ), $enhanced = $( "#enhanced-link" );
+
+               $.mobile.ignoreContentEnabled = true;
+
+               $ignored.parent().trigger( "create" );
+               same( $ignored.attr( "class" ), undefined, "ignored link doesn't have link class" );
+
+               $enhanced.parent().trigger( "create" );
+               same( $enhanced.attr( "class" ).indexOf("ui-link"), 0, "enhanced link has link class" );
+
+               $.mobile.ignoreContentEnabled = false;
+       });
+       
+       
+       asyncTest( "page container is updated to page theme at pagebeforeshow", function(){
+               
+               expect( 1 );
+               
+               var pageTheme = "ui-overlay-" + $.mobile.activePage.page( "option", "theme" );
+
+               $.mobile.pageContainer.removeClass( pageTheme );
+               
+               $.mobile.activePage
+                       .bind( "pagebeforeshow", function(){
+                               ok( $.mobile.pageContainer.hasClass( pageTheme ), "Page container has the same theme as the page on pagebeforeshow" );
+                               start();
+                       })
+                       .trigger( "pagebeforeshow" );
+
+       } );
+       
+       asyncTest( "page container is updated to page theme at pagebeforeshow", function(){
+               
+               expect( 1 );
+               
+               var pageTheme = "ui-overlay-" + $.mobile.activePage.page( "option", "theme" );
+
+               $.mobile.pageContainer.addClass( pageTheme );
+               
+               $.mobile.activePage
+                       .bind( "pagebeforehide", function(){
+                               ok( !$.mobile.pageContainer.hasClass( pageTheme ), "Page container does not have the same theme as the page on pagebeforeshow" );
+                               start();
+                       })
+                       .trigger( "pagebeforehide" );
+
+       } );
+       
+       
+       
+})(jQuery);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/runner.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/runner.js
new file mode 100644 (file)
index 0000000..4505996
--- /dev/null
@@ -0,0 +1,89 @@
+$(function() {
+       var Runner = function( ) {
+               var self = this;
+
+               $.extend( self, {
+                       frame: window.frames[ "testFrame" ],
+
+                       testTimeout: 3 * 60 * 1000,
+
+                       $frameElem: $( "#testFrame" ),
+
+                       assertionResultPrefix: "assertion result for test:",
+
+                       onTimeout: QUnit.start,
+
+                       onFrameLoad: function() {
+                               // establish a timeout for a given suite in case of async tests hanging
+                               self.testTimer = setTimeout( self.onTimeout, self.testTimeout );
+
+                               // it might be a redirect with query params for push state
+                               // tests skip this call and expect another
+                               if( !self.frame.QUnit ) {
+                                       self.$frameElem.one( "load", self.onFrameLoad );
+                                       return;
+                               }
+
+                               // when the QUnit object reports done in the iframe
+                               // run the onFrameDone method
+                               self.frame.QUnit.done = self.onFrameDone;
+                               self.frame.QUnit.testDone = self.onTestDone;
+                       },
+
+                       onTestDone: function( result ) {
+                               QUnit.ok( !(result.failed > 0), result.name );
+                               self.recordAssertions( result.total - result.failed, result.name );
+                       },
+
+                       onFrameDone: function( results ) {
+                               // make sure we don't time out the tests
+                               clearTimeout( self.testTimer );
+
+                               // TODO decipher actual cause of multiple test results firing twice
+                               // clear the done call to prevent early completion of other test cases
+                               self.frame.QUnit.done = $.noop;
+                               self.frame.QUnit.testDone = $.noop;
+
+                               // hide the extra assertions made to propogate the count
+                               // to the suite level test
+                               self.hideAssertionResults();
+
+                               // continue on to the next suite
+                               QUnit.start();
+                       },
+
+                       recordAssertions: function( count, parentTest ) {
+                               for( var i = 0; i < count; i++ ) {
+                                       ok( true, self.assertionResultPrefix + parentTest );
+                               }
+                       },
+
+                       hideAssertionResults: function() {
+                               $( "li:not([id]):contains('" + self.assertionResultPrefix + "')" ).hide();
+                       },
+
+                       exec: function( data ) {
+                               var template = self.$frameElem.attr( "data-src" );
+
+                               $.each( data.testPages, function(i, dir) {
+                                       QUnit.asyncTest( dir, function() {
+                                               self.dir = dir;
+                                               self.$frameElem.one( "load", self.onFrameLoad );
+                                               self.$frameElem.attr( "src", template.replace("{{testdir}}", dir).replace( "{{jquery.version}}", $.fn.jquery ) );
+                                       });
+                               });
+
+                               // having defined all suite level tests let QUnit run
+                               QUnit.start();
+                       }
+               });
+       };
+
+       // prevent qunit from starting the test suite until all tests are defined
+       QUnit.begin = function(  ) {
+               this.config.autostart = false;
+       };
+
+       // get the test directories
+       $.get( "ls.php", (new Runner()).exec );
+});
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/cached-dom-cache-true.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/cached-dom-cache-true.html
new file mode 100644 (file)
index 0000000..b5e719d
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE HTML>
+<html lang="en">
+  <head>
+    <meta charset="utf-8">
+  </head>
+  <body>
+    <div id="dialog-select-parent-domcache-test" data-nstest-role="page" data-nstest-dom-cache="true">
+           <div data-nstest-role="fieldcontain" id="domcache-page-select-container">
+                   <label for="domcache-page-select" class="select">Your state:</label>
+                   <select name="domcache-page-select" id="domcache-page-select" data-nstest-native-menu="false">
+                           <option value="AL">Alabama</option>
+                           <option value="AK">Alaska</option>
+                           <option value="AZ">Arizona</option>
+                           <option value="AR">Arkansas</option>
+                           <option value="CA">California</option>
+                           <option value="CO">Colorado</option>
+                           <option value="CT">Connecticut</option>
+                           <option value="DE">Delaware</option>
+                           <option value="FL">Florida</option>
+                           <option value="GA">Georgia</option>
+                           <option value="HI">Hawaii</option>
+                           <option value="ID">Idaho</option>
+                           <option value="IL">Illinois</option>
+                           <option value="IN">Indiana</option>
+                           <option value="IA">Iowa</option>
+                           <option value="KS">Kansas</option>
+                           <option value="KY">Kentucky</option>
+                           <option value="LA">Louisiana</option>
+                           <option value="ME">Maine</option>
+                           <option value="MD">Maryland</option>
+                           <option value="MA">Massachusetts</option>
+                           <option value="MI">Michigan</option>
+                           <option value="MN">Minnesota</option>
+                           <option value="MS">Mississippi</option>
+                           <option value="MO">Missouri</option>
+                           <option value="MT">Montana</option>
+                           <option value="NE">Nebraska</option>
+                           <option value="NV">Nevada</option>
+                           <option value="NH">New Hampshire</option>
+                           <option value="NJ">New Jersey</option>
+                           <option value="NM">New Mexico</option>
+                           <option value="NY">New York</option>
+                           <option value="NC">North Carolina</option>
+                           <option value="ND">North Dakota</option>
+                           <option value="OH">Ohio</option>
+                           <option value="OK">Oklahoma</option>
+                           <option value="OR">Oregon</option>
+                           <option value="PA">Pennsylvania</option>
+                           <option value="RI">Rhode Island</option>
+                           <option value="SC">South Carolina</option>
+                           <option value="SD">South Dakota</option>
+                           <option value="TN">Tennessee</option>
+                           <option value="TX">Texas</option>
+                           <option value="UT">Utah</option>
+                           <option value="VT">Vermont</option>
+                           <option value="VA">Virginia</option>
+                           <option value="WA">Washington</option>
+                           <option value="WV">West Virginia</option>
+                           <option value="WI">Wisconsin</option>
+                           <option value="WY">Wyoming</option>
+                   </select>
+           </div>
+    </div>
+  </body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/cached-tests.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/cached-tests.html
new file mode 100644 (file)
index 0000000..627bc3d
--- /dev/null
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile Select Events Test Suite</title>
+
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../../tests/jquery.testHelper.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [
+                               "jquery.mobile.forms.select",
+                               "jquery.mobile.forms.select.custom"
+                       ],
+                       [ "jquery.mobile.init" ],
+                       [       "select_cached.js" ]
+               ]);
+       </script>
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Select Event Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+<div id="default"  data-nstest-role="page"></div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/cached.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/cached.html
new file mode 100644 (file)
index 0000000..0ca8691
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE HTML>
+<html lang="en">
+  <head>
+    <meta charset="utf-8">
+  </head>
+  <body>
+    <div id="dialog-select-parent-cache-test" data-nstest-role="page">
+           <div data-nstest-role="fieldcontain" id="cached-page-select-container">
+                   <label for="cached-page-select" class="select">Your state:</label>
+                   <select name="cached-page-select" id="cached-page-select" data-nstest-native-menu="false">
+                           <option value="AL">Alabama</option>
+                           <option value="AK">Alaska</option>
+                           <option value="AZ">Arizona</option>
+                           <option value="AR">Arkansas</option>
+                           <option value="CA">California</option>
+                           <option value="CO">Colorado</option>
+                           <option value="CT">Connecticut</option>
+                           <option value="DE">Delaware</option>
+                           <option value="FL">Florida</option>
+                           <option value="GA">Georgia</option>
+                           <option value="HI">Hawaii</option>
+                           <option value="ID">Idaho</option>
+                           <option value="IL">Illinois</option>
+                           <option value="IN">Indiana</option>
+                           <option value="IA">Iowa</option>
+                           <option value="KS">Kansas</option>
+                           <option value="KY">Kentucky</option>
+                           <option value="LA">Louisiana</option>
+                           <option value="ME">Maine</option>
+                           <option value="MD">Maryland</option>
+                           <option value="MA">Massachusetts</option>
+                           <option value="MI">Michigan</option>
+                           <option value="MN">Minnesota</option>
+                           <option value="MS">Mississippi</option>
+                           <option value="MO">Missouri</option>
+                           <option value="MT">Montana</option>
+                           <option value="NE">Nebraska</option>
+                           <option value="NV">Nevada</option>
+                           <option value="NH">New Hampshire</option>
+                           <option value="NJ">New Jersey</option>
+                           <option value="NM">New Mexico</option>
+                           <option value="NY">New York</option>
+                           <option value="NC">North Carolina</option>
+                           <option value="ND">North Dakota</option>
+                           <option value="OH">Ohio</option>
+                           <option value="OK">Oklahoma</option>
+                           <option value="OR">Oregon</option>
+                           <option value="PA">Pennsylvania</option>
+                           <option value="RI">Rhode Island</option>
+                           <option value="SC">South Carolina</option>
+                           <option value="SD">South Dakota</option>
+                           <option value="TN">Tennessee</option>
+                           <option value="TX">Texas</option>
+                           <option value="UT">Utah</option>
+                           <option value="VT">Vermont</option>
+                           <option value="VA">Virginia</option>
+                           <option value="WA">Washington</option>
+                           <option value="WV">West Virginia</option>
+                           <option value="WI">Wisconsin</option>
+                           <option value="WY">Wyoming</option>
+                   </select>
+           </div>
+    </div>
+  </body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/defineKeepNative.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/defineKeepNative.js
new file mode 100644 (file)
index 0000000..ed60f68
--- /dev/null
@@ -0,0 +1,4 @@
+$(document).bind("mobileinit", function() {
+       $.mobile.page.prototype.options.keepNative = "select.should-be-native";
+});
+
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/index.html
new file mode 100644 (file)
index 0000000..f7fb780
--- /dev/null
@@ -0,0 +1,405 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile Select Events Test Suite</title>
+
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script src="../../../tests/jquery.testHelper.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [
+                               "jquery.mobile.forms.select",
+                               "jquery.mobile.forms.select.custom",
+                               "defineKeepNative.js"
+                       ],
+                       [ "jquery.mobile.init" ],
+                       [
+                               "select_events.js",
+                               "select_native.js",
+                               "select_core.js"
+                       ]
+               ]);
+       </script>
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Select Event Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div id="default"  data-nstest-role="page" data-nstest-theme="c">
+       <div  data-nstest-role="fieldcontain" id="select-choice-few-container">
+               <select name="select-choice-few" id="select-choice-few" data-nstest-native-menu="false">
+                       <option value="standard">Standard: 7 day</option>
+                       <option value="rush">Rush: 3 days</option>
+                       <option value="express">Express: next day</option>
+                       <option value="overnight">Overnight</option>
+               </select>
+       </div>
+
+       <div  data-nstest-role="fieldcontain" id="native-select-choice-few-container">
+         <label for="native-select-choice-few" class="select">Choose shipping method:</label>
+               <select name="native-select-choice-few" id="native-select-choice-few" data-nstest-native-menu="true">
+                       <option value="standard">Standard: 7 day</option>
+                       <option value="rush">Rush: 3 days</option>
+                       <option value="express">Express: next day</option>
+                       <option value="overnight">Overnight</option>
+               </select>
+       </div>
+
+       <div  data-nstest-role="fieldcontain" id="select-choice-native-container">
+               <select name="select-choice-native" id="select-choice-native" data-nstest-native-menu="true">
+                       <option value="standard">Standard: 7 day</option>
+                       <option value="rush">Rush: 3 days</option>
+                       <option value="express">Express: next day</option>
+                       <option value="overnight">Overnight</option>
+               </select>
+       </div>
+
+       <div  data-nstest-role="fieldcontain" id="select-choice-global-native-container">
+               <select name="select-choice-global-native" id="select-choice-global-native"  data-nstest-native-menu="false">
+                       <option value="standard">Standard: 7 day</option>
+                       <option value="rush">Rush: 3 days</option>
+                       <option value="express">Express: next day</option>
+                       <option value="overnight">Overnight</option>
+               </select>
+       </div>
+
+       <div data-nstest-role="fieldcontain" id="select-choice-focus-test">
+               <select name="select-choice-focus-test" id="select-choice-focus-test"  data-nstest-native-menu="false">
+                       <option value="standard">Standard: 7 day</option>
+                       <option value="rush">Rush: 3 days</option>
+                       <option value="express">Express: next day</option>
+                       <option value="overnight">Overnight</option>
+               </select>
+       </div>
+
+       <div  data-nstest-role="fieldcontain" id="select-choice-many-container-1">
+               <label for="select-choice-many-1" class="select">Your state:</label>
+               <select name="select-choice-many-1" id="select-choice-many-1" data-nstest-native-menu="false">
+                       <option value="AL">Alabama</option>
+                       <option value="AK">Alaska</option>
+                       <option value="AZ">Arizona</option>
+                       <option value="AR">Arkansas</option>
+                       <option value="CA">California</option>
+                       <option value="CO">Colorado</option>
+                       <option value="CT">Connecticut</option>
+                       <option value="DE">Delaware</option>
+                       <option value="FL">Florida</option>
+                       <option value="GA">Georgia</option>
+                       <option value="HI">Hawaii</option>
+                       <option value="ID">Idaho</option>
+                       <option value="IL">Illinois</option>
+                       <option value="IN">Indiana</option>
+                       <option value="IA">Iowa</option>
+                       <option value="KS">Kansas</option>
+                       <option value="KY">Kentucky</option>
+                       <option value="LA">Louisiana</option>
+                       <option value="ME">Maine</option>
+                       <option value="MD">Maryland</option>
+                       <option value="MA">Massachusetts</option>
+                       <option value="MI">Michigan</option>
+                       <option value="MN">Minnesota</option>
+                       <option value="MS">Mississippi</option>
+                       <option value="MO">Missouri</option>
+                       <option value="MT">Montana</option>
+                       <option value="NE">Nebraska</option>
+                       <option value="NV">Nevada</option>
+                       <option value="NH">New Hampshire</option>
+                       <option value="NJ">New Jersey</option>
+                       <option value="NM">New Mexico</option>
+                       <option value="NY">New York</option>
+                       <option value="NC">North Carolina</option>
+                       <option value="ND">North Dakota</option>
+                       <option value="OH">Ohio</option>
+                       <option value="OK">Oklahoma</option>
+                       <option value="OR">Oregon</option>
+                       <option value="PA">Pennsylvania</option>
+                       <option value="RI">Rhode Island</option>
+                       <option value="SC">South Carolina</option>
+                       <option value="SD">South Dakota</option>
+                       <option value="TN">Tennessee</option>
+                       <option value="TX">Texas</option>
+                       <option value="UT">Utah</option>
+                       <option value="VT">Vermont</option>
+                       <option value="VA">Virginia</option>
+                       <option value="WA">Washington</option>
+                       <option value="WV">West Virginia</option>
+                       <option value="WI">Wisconsin</option>
+                       <option value="WY">Wyoming</option>
+               </select>
+       </div>
+
+       <div  data-nstest-role="fieldcontain" id="select-choice-many-container">
+               <label for="select-choice-many" class="select">Your state:</label>
+               <select name="select-choice-many" id="select-choice-many" data-nstest-native-menu="false">
+                       <option value="AL">Alabama</option>
+                       <option value="AK">Alaska</option>
+                       <option value="AZ">Arizona</option>
+                       <option value="AR">Arkansas</option>
+                       <option value="CA">California</option>
+                       <option value="CO">Colorado</option>
+                       <option value="CT">Connecticut</option>
+                       <option value="DE">Delaware</option>
+                       <option value="FL">Florida</option>
+                       <option value="GA">Georgia</option>
+                       <option value="HI">Hawaii</option>
+                       <option value="ID">Idaho</option>
+                       <option value="IL">Illinois</option>
+                       <option value="IN">Indiana</option>
+                       <option value="IA">Iowa</option>
+                       <option value="KS">Kansas</option>
+                       <option value="KY">Kentucky</option>
+                       <option value="LA">Louisiana</option>
+                       <option value="ME">Maine</option>
+                       <option value="MD">Maryland</option>
+                       <option value="MA">Massachusetts</option>
+                       <option value="MI">Michigan</option>
+                       <option value="MN">Minnesota</option>
+                       <option value="MS">Mississippi</option>
+                       <option value="MO">Missouri</option>
+                       <option value="MT">Montana</option>
+                       <option value="NE">Nebraska</option>
+                       <option value="NV">Nevada</option>
+                       <option value="NH">New Hampshire</option>
+                       <option value="NJ">New Jersey</option>
+                       <option value="NM">New Mexico</option>
+                       <option value="NY">New York</option>
+                       <option value="NC">North Carolina</option>
+                       <option value="ND">North Dakota</option>
+                       <option value="OH">Ohio</option>
+                       <option value="OK">Oklahoma</option>
+                       <option value="OR">Oregon</option>
+                       <option value="PA">Pennsylvania</option>
+                       <option value="RI">Rhode Island</option>
+                       <option value="SC">South Carolina</option>
+                       <option value="SD">South Dakota</option>
+                       <option value="TN">Tennessee</option>
+                       <option value="TX">Texas</option>
+                       <option value="UT">Utah</option>
+                       <option value="VT">Vermont</option>
+                       <option value="VA">Virginia</option>
+                       <option value="WA">Washington</option>
+                       <option value="WV">West Virginia</option>
+                       <option value="WI">Wisconsin</option>
+                       <option value="WY">Wyoming</option>
+               </select>
+       </div>
+
+       <div  data-nstest-role="fieldcontain" id="select-choice-many-container-hash-check">
+               <label for="select-choice-many-hash-check" class="select">Your state:</label>
+               <select name="select-choice-many-hash-check" id="select-choice-many-hash-check"  data-nstest-native-menu="false">
+                       <option value="AL">Alabama</option>
+                       <option value="AK">Alaska</option>
+                       <option value="AZ">Arizona</option>
+                       <option value="AR">Arkansas</option>
+                       <option value="CA">California</option>
+                       <option value="CO">Colorado</option>
+                       <option value="CT">Connecticut</option>
+                       <option value="DE">Delaware</option>
+                       <option value="FL">Florida</option>
+                       <option value="GA">Georgia</option>
+                       <option value="HI">Hawaii</option>
+                       <option value="ID">Idaho</option>
+                       <option value="IL">Illinois</option>
+                       <option value="IN">Indiana</option>
+                       <option value="IA">Iowa</option>
+                       <option value="KS">Kansas</option>
+                       <option value="KY">Kentucky</option>
+                       <option value="LA">Louisiana</option>
+                       <option value="ME">Maine</option>
+                       <option value="MD">Maryland</option>
+                       <option value="MA">Massachusetts</option>
+                       <option value="MI">Michigan</option>
+                       <option value="MN">Minnesota</option>
+                       <option value="MS">Mississippi</option>
+                       <option value="MO">Missouri</option>
+                       <option value="MT">Montana</option>
+                       <option value="NE">Nebraska</option>
+                       <option value="NV">Nevada</option>
+                       <option value="NH">New Hampshire</option>
+                       <option value="NJ">New Jersey</option>
+                       <option value="NM">New Mexico</option>
+                       <option value="NY">New York</option>
+                       <option value="NC">North Carolina</option>
+                       <option value="ND">North Dakota</option>
+                       <option value="OH">Ohio</option>
+                       <option value="OK">Oklahoma</option>
+                       <option value="OR">Oregon</option>
+                       <option value="PA">Pennsylvania</option>
+                       <option value="RI">Rhode Island</option>
+                       <option value="SC">South Carolina</option>
+                       <option value="SD">South Dakota</option>
+                       <option value="TN">Tennessee</option>
+                       <option value="TX">Texas</option>
+                       <option value="UT">Utah</option>
+                       <option value="VT">Vermont</option>
+                       <option value="VA">Virginia</option>
+                       <option value="WA">Washington</option>
+                       <option value="WV">West Virginia</option>
+                       <option value="WI">Wisconsin</option>
+                       <option value="WY">Wyoming</option>
+               </select>
+       </div>
+
+       <div data-nstest-role="fieldcontain" id="select-choice-many-container-many-clicks">
+               <label for="select-choice-many-many-clicks" class="select">Your state:</label>
+               <select name="select-choice-many-many-clicks" id="select-choice-many-many-clicks"  data-nstest-native-menu="false">
+                       <option value="AL">Alabama</option>
+                       <option value="AK">Alaska</option>
+                       <option value="AZ">Arizona</option>
+                       <option value="AR">Arkansas</option>
+                       <option value="CA">California</option>
+                       <option value="CO">Colorado</option>
+                       <option value="CT">Connecticut</option>
+                       <option value="DE">Delaware</option>
+                       <option value="FL">Florida</option>
+                       <option value="GA">Georgia</option>
+                       <option value="HI">Hawaii</option>
+                       <option value="ID">Idaho</option>
+                       <option value="IL">Illinois</option>
+                       <option value="IN">Indiana</option>
+                       <option value="IA">Iowa</option>
+                       <option value="KS">Kansas</option>
+                       <option value="KY">Kentucky</option>
+                       <option value="LA">Louisiana</option>
+                       <option value="ME">Maine</option>
+                       <option value="MD">Maryland</option>
+                       <option value="MA">Massachusetts</option>
+                       <option value="MI">Michigan</option>
+                       <option value="MN">Minnesota</option>
+                       <option value="MS">Mississippi</option>
+                       <option value="MO">Missouri</option>
+                       <option value="MT">Montana</option>
+                       <option value="NE">Nebraska</option>
+                       <option value="NV">Nevada</option>
+                       <option value="NH">New Hampshire</option>
+                       <option value="NJ">New Jersey</option>
+                       <option value="NM">New Mexico</option>
+                       <option value="NY">New York</option>
+                       <option value="NC">North Carolina</option>
+                       <option value="ND">North Dakota</option>
+                       <option value="OH">Ohio</option>
+                       <option value="OK">Oklahoma</option>
+                       <option value="OR">Oregon</option>
+                       <option value="PA">Pennsylvania</option>
+                       <option value="RI">Rhode Island</option>
+                       <option value="SC">South Carolina</option>
+                       <option value="SD">South Dakota</option>
+                       <option value="TN">Tennessee</option>
+                       <option value="TX">Texas</option>
+                       <option value="UT">Utah</option>
+                       <option value="VT">Vermont</option>
+                       <option value="VA">Virginia</option>
+                       <option value="WA">Washington</option>
+                       <option value="WV">West Virginia</option>
+                       <option value="WI">Wisconsin</option>
+                       <option value="WY">Wyoming</option>
+               </select>
+       </div>
+
+       <div data-nstest-role="fieldcontain" id="select-offscreen-container">
+               <style>
+                       /* keep the select small and close to the screen border to test rendering */
+                       #select-offscreen-container {
+                       width: 100px;
+                       position: absolute;
+                       left: 0px;
+                       top: 0px;
+                       }
+               </style>
+
+               <select name="select-choice-few" id="select-offscreen" data-nstest-native-menu="false">
+                       <option value="standard">Standard: 7 day</option>
+                       <option value="rush">Rush: 3 days</option>
+                       <option value="express">Express: next day</option>
+                       <option value="overnight">Overnight</option>
+               </select>
+       </div>
+
+       <div data-nstest-role="fieldcontain" id="select-long-option-label-container">
+               <select name="select-long-option-label" id="select-long-option-label" data-nstest-native-menu="false">
+                       <option value="short">Choice 1</option>
+                       <option value="long">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</option>
+           </select>
+       </div>
+
+  <select name="native-refresh" id="native-refresh">
+    <option value="-1">default</option>
+    <option value="-1">other</option>
+  </select>
+
+  <select name="custom-refresh" id="custom-refresh" data-nstest-native-menu="false">
+    <option value="-1">default</option>
+  </select>
+
+  <select name="custom-refresh-opts-list" id="custom-refresh-opts-list" data-nstest-native-menu="false">
+    <option value="-1">default</option>
+  </select>
+
+  <select name="non-parent-themed" id="non-parent-themed" data-nstest-native-menu="false" data-nstest-theme="a">
+    <option value="-1">default</option>
+  </select>
+
+  <select name="parent-themed" id="parent-themed" data-nstest-native-menu="false">
+    <option value="-1">default</option>
+  </select>
+
+  <select name="encoded-option" id="encoded-option" data-nstest-native-menu="false">
+    <option>&lt;script&gt;window.encodedValueIsDefined = true;&lt;/script&gt;</option>
+  </select>
+
+  <select name="keep-native" id="keep-native" class="should-be-native">
+    <option></option>
+  </select>
+
+       <div data-nstest-role="fieldcontain" id="optgroup-and-placeholder-container">
+               <select name="optgroup-and-placeholder" id="optgroup-and-placeholder" data-nstest-native-menu="false">
+                       <option>Choose shipping method</option>
+                       <optgroup label="USPS">
+                               <option value="standard" selected>Standard: 7 day</option>
+                               <option value="rush">Rush: 3 days</option>
+                               <option value="express">Express: next day</option>
+                               <option value="overnight">Overnight</option>
+                       </optgroup>
+                       <optgroup label="FedEx">
+                               <option value="firstOvernight">First Overnight</option>
+                               <option value="expressSaver">Express Saver</option>
+                               <option value="ground">Ground</option>
+                       </optgroup>
+               </select>
+       </div>
+
+       <select name="select-disabled-enhancetest" id="select-disabled-enhancetest" disabled="disabled" data-nstest-native-menu="false">
+               <option value="standard">Standard: 7 day</option>
+               <option value="rush">Rush: 3 days</option>
+               <option value="express">Express: next day</option>
+               <option value="overnight">Overnight</option>
+               <option value="overnight">disabled enhance test</option>
+       </select>
+</div>
+
+
+<div id="enhancetest">
+       <select name="select-enhancetest" id="select-enhancetest">
+               <option value="standard">Standard: 7 day</option>
+               <option value="rush">Rush: 3 days</option>
+               <option value="express">Express: next day</option>
+               <option value="overnight">Overnight</option>
+       </select>
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/select_cached.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/select_cached.js
new file mode 100644 (file)
index 0000000..1493dff
--- /dev/null
@@ -0,0 +1,137 @@
+/*
+ * mobile select unit tests
+ */
+
+(function($){
+       var resetHash;
+
+       resetHash = function(timeout){
+               $.testHelper.openPage( location.hash.indexOf("#default") >= 0 ? "#" : "#default" );
+       };
+
+       // https://github.com/jquery/jquery-mobile/issues/2181
+       asyncTest( "dialog sized select should alter the value of its parent select", function(){
+               var selectButton, value;
+
+               $.testHelper.pageSequence([
+                       resetHash,
+
+                       function(){
+                               $.mobile.changePage( "cached.html" );
+                       },
+
+                       function(){
+                               ok( $.mobile.activePage.is("#dialog-select-parent-cache-test"), "cached page appears" );
+                               selectButton = $( "#cached-page-select" ).siblings( 'a' );
+                               selectButton.click();
+                       },
+
+                       function(){
+                               ok( $.mobile.activePage.hasClass('ui-dialog'), "the dialog came up" );
+                               var option = $.mobile.activePage.find( "li a" ).not(":contains('" + selectButton.text() + "')").last();
+                               value = $.trim(option.text());
+                               option.click();
+                       },
+
+                       function(){
+                               same( value, $.trim(selectButton.text()), "the selected value is propogated back to the button text" );
+                               start();
+                       }
+               ]);
+       });
+
+       // https://github.com/jquery/jquery-mobile/issues/2181
+       asyncTest( "dialog sized select should prevent the removal of its parent page from the dom", function(){
+               var selectButton, parentPageId;
+
+               expect( 2 );
+
+               $.testHelper.pageSequence([
+                       resetHash,
+
+                       function(){
+                               $.mobile.changePage( "cached.html" );
+                       },
+
+                       function(){
+                               selectButton = $.mobile.activePage.find( "#cached-page-select" ).siblings( 'a' );
+                               parentPageId = $.mobile.activePage.attr( 'id' );
+                               same( $("#" + parentPageId).length, 1, "establish the parent page exists" );
+                               selectButton.click();
+                       },
+
+                       function(){
+                               same( $( "#" + parentPageId).length, 1, "make sure parent page is still there after opening the dialog" );
+                               $.mobile.activePage.find( "li a" ).last().click();
+                       },
+
+                       start
+               ]);
+       });
+
+       asyncTest( "dialog sized select shouldn't rebind its parent page remove handler when closing, if the parent page domCache option is true", function(){
+               expect( 3 );
+
+               $.testHelper.pageSequence([
+                       resetHash,
+
+                       function(){
+                               $.mobile.changePage( "cached-dom-cache-true.html" );
+                       },
+
+                       function(){
+                               $.mobile.activePage.find( "#domcache-page-select" ).siblings( 'a' ).click();
+                       },
+
+                       function(){
+                               ok( $.mobile.activePage.hasClass('ui-dialog'), "the dialog came up" );
+                               $.mobile.activePage.find( "li a" ).last().click();
+                       },
+
+                       function(){
+                               ok( $.mobile.activePage.is( "#dialog-select-parent-domcache-test" ), "the dialog closed" );
+                               $.mobile.changePage( $( "#default" ) );
+                       },
+
+                       function(){
+                               same( $("#dialog-select-parent-domcache-test").length, 1, "make sure the select parent page is still cached in the dom after changing page" );
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "menupage is removed when the parent page is removed", function(){
+               var dialogCount = $(":jqmData(role='dialog')").length;
+               $.testHelper.pageSequence([
+                       resetHash,
+
+                       function(){
+                               $.mobile.changePage( "uncached-dom-cached-false.html" );
+                       },
+
+                       function(){
+                               // for performance reason we don't initially create the menu dialog now
+                               same( $(":jqmData(role='dialog')").length, dialogCount);
+
+                               // manually trigger dialog opening
+                               $( "#domcache-uncached-page-select" ).data( 'selectmenu' ).open();
+                       },
+
+                       function(){
+                               // check if dialog was successfully  created
+                               same( $(":jqmData(role='dialog')").length, dialogCount + 1 );
+                               $( "#domcache-uncached-page-select" ).data( 'selectmenu' ).close();
+                       },
+
+                       function(){
+                               // navigate to parent(initial) page
+                               window.history.back();
+                       },
+
+                       function() {
+                               same( $(":jqmData(role='dialog')").length, dialogCount );
+                               start();
+                       }
+               ]);
+       });
+})(jQuery);
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/select_core.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/select_core.js
new file mode 100644 (file)
index 0000000..8f1ed6d
--- /dev/null
@@ -0,0 +1,387 @@
+/*
+ * mobile select unit tests
+ */
+
+(function($){
+       var libName = "jquery.mobile.forms.select",
+               originalDefaultDialogTrans = $.mobile.defaultDialogTransition,
+               originalDefTransitionHandler = $.mobile.defaultTransitionHandler,
+               originalGetEncodedText = $.fn.getEncodedText,
+               resetHash, closeDialog;
+
+       resetHash = function(timeout){
+               $.testHelper.openPage( location.hash.indexOf("#default") >= 0 ? "#" : "#default" );
+       };
+
+       closeDialog = function(timeout){
+               $.mobile.activePage.find("li a").first().click();
+       };
+
+       module(libName, {
+               teardown: function(){
+                       $.mobile.defaultDialogTransition = originalDefaultDialogTrans;
+                       $.mobile.defaultTransitionHandler = originalDefTransitionHandler;
+
+                       $.fn.getEncodedText = originalGetEncodedText;
+                       window.encodedValueIsDefined = undefined;
+               }
+       });
+
+       asyncTest( "placeholder correctly gets ui-selectmenu-placeholder class after rebuilding", function(){
+               $.testHelper.sequence([
+                       function(){
+                               // bring up the optgroup menu
+                               ok($("#optgroup-and-placeholder-container a").length > 0, "there is in fact a button in the page");
+                               $("#optgroup-and-placeholder-container a").trigger("click");
+                       },
+
+                       function(){
+                               //select the first menu item
+                               $("#optgroup-and-placeholder-menu a:first").click();
+                       },
+
+                       function(){
+                               ok($("#optgroup-and-placeholder-menu li:first").hasClass("ui-selectmenu-placeholder"), "the placeholder item has the ui-selectmenu-placeholder class");
+                               start();
+                       }
+               ], 1000);
+       });
+
+       asyncTest( "firing a click at least 400 ms later on the select screen overlay does close it", function(){
+               $.testHelper.sequence([
+                       function(){
+                               // bring up the smaller choice menu
+                               ok($("#select-choice-few-container a").length > 0, "there is in fact a button in the page");
+                               $("#select-choice-few-container a").trigger("click");
+                       },
+
+                       function(){
+                               //select the first menu item
+                               $("#select-choice-few-menu a:first").click();
+                       },
+
+                       function(){
+                               same($("#select-choice-few-menu").parent(".ui-selectmenu-hidden").length, 1);
+                               start();
+                       }
+               ], 1000);
+       });
+
+       asyncTest( "a large select menu should use the default dialog transition", function(){
+               var select;
+
+               $.testHelper.pageSequence([
+                       resetHash,
+
+                       function(timeout){
+                               select = $("#select-choice-many-container-1 a");
+
+                               //set to something else
+                               $.mobile.defaultTransitionHandler = $.testHelper.decorate({
+                                       fn: $.mobile.defaultTransitionHandler,
+
+                                       before: function(name){
+                                               same(name, $.mobile.defaultDialogTransition);
+                                       }
+                               });
+
+                               // bring up the dialog
+                               select.trigger("click");
+                       },
+
+                       closeDialog,
+
+                       start
+               ]);
+       });
+
+       asyncTest( "custom select menu always renders screen from the left", function(){
+               var select;
+
+               expect( 1 );
+
+               $.testHelper.sequence([
+                       resetHash,
+
+                       function(){
+                               select = $("ul#select-offscreen-menu");
+                               $("#select-offscreen-container a").trigger("click");
+                       },
+
+                       function(){
+                               ok(select.offset().left >= 30, "offset from the left is greater than or equal to 30px" );
+                               start();
+                       }
+               ], 1000);
+       });
+
+       asyncTest( "selecting an item from a dialog sized custom select menu leaves no dialog hash key", function(){
+               var dialogHashKey = "ui-state=dialog";
+
+               $.testHelper.pageSequence([
+                       resetHash,
+
+                       function(timeout){
+                               $("#select-choice-many-container-hash-check a").click();
+                       },
+
+                       function(){
+                               ok(location.hash.indexOf(dialogHashKey) > -1);
+                               closeDialog();
+                       },
+
+                       function(){
+                               same(location.hash.indexOf(dialogHashKey), -1);
+                               start();
+                       }
+               ]);
+       });
+
+       asyncTest( "dialog sized select menu opened many times remains a dialog", function(){
+               var dialogHashKey = "ui-state=dialog",
+
+                               openDialogSequence = [
+                                       resetHash,
+
+                                       function(){
+                                               $("#select-choice-many-container-many-clicks a").click();
+                                       },
+
+                                       function(){
+                                               ok(location.hash.indexOf(dialogHashKey) > -1, "hash should have the dialog hash key");
+                                               closeDialog();
+                                       }
+                               ],
+
+                               sequence = openDialogSequence.concat(openDialogSequence).concat([start]);
+
+               $.testHelper.sequence(sequence, 1000);
+       });
+
+       test( "make sure the label for the select gets the ui-select class", function(){
+               ok( $( "#native-select-choice-few-container label" ).hasClass( "ui-select" ), "created label has ui-select class" );
+       });
+
+       module("Non native menus", {
+               setup: function() {
+                       $.mobile.selectmenu.prototype.options.nativeMenu = false;
+               },
+               teardown: function() {
+                       $.mobile.selectmenu.prototype.options.nativeMenu = true;
+               }
+       });
+
+       asyncTest( "a large select option should not overflow", function(){
+               // https://github.com/jquery/jquery-mobile/issues/1338
+               var menu, select;
+
+               $.testHelper.sequence([
+                       resetHash,
+
+                       function(){
+                               select = $("#select-long-option-label");
+                               // bring up the dialog
+                               select.trigger("click");
+                       },
+
+                       function() {
+                               menu = $(".ui-selectmenu-list");
+
+                               equal(menu.width(), menu.find("li:nth-child(2) .ui-btn-text").width(), "ui-btn-text element should not overflow");
+                               start();
+                       }
+               ], 500);
+       });
+
+       asyncTest( "using custom refocuses the button after close", function() {
+               var select, button, triggered = false;
+
+               expect( 1 );
+
+               $.testHelper.sequence([
+                       resetHash,
+
+                       function() {
+                               select = $("#select-choice-focus-test");
+                               button = select.find( "a" );
+                               button.trigger( "click" );
+                       },
+
+                       function() {
+                               // NOTE this is called twice per triggered click
+                               button.focus(function() {
+                                       triggered = true;
+                               });
+
+                               $(".ui-selectmenu-screen:not(.ui-screen-hidden)").trigger("click");
+                       },
+
+                       function(){
+                               ok(triggered, "focus is triggered");
+                               start();
+                       }
+               ], 5000);
+       });
+
+       asyncTest( "selected items are highlighted", function(){
+               $.testHelper.sequence([
+                       resetHash,
+
+                       function(){
+                               // bring up the smaller choice menu
+                               ok($("#select-choice-few-container a").length > 0, "there is in fact a button in the page");
+                               $("#select-choice-few-container a").trigger("click");
+                       },
+
+                       function(){
+                               var firstMenuChoice = $("#select-choice-few-menu li:first");
+                               ok( firstMenuChoice.hasClass( $.mobile.activeBtnClass ),
+                                               "default menu choice has the active button class" );
+
+                               $("#select-choice-few-menu a:last").click();
+                       },
+
+                       function(){
+                               // bring up the menu again
+                               $("#select-choice-few-container a").trigger("click");
+                       },
+
+                       function(){
+                               var lastMenuChoice = $("#select-choice-few-menu li:last");
+                               ok( lastMenuChoice.hasClass( $.mobile.activeBtnClass ),
+                                               "previously slected item has the active button class" );
+
+                               // close the dialog
+                               lastMenuChoice.find( "a" ).click();
+                       },
+
+                       start
+               ], 1000);
+       });
+
+       test( "enabling and disabling", function(){
+               var select = $( "select" ).first(), button;
+
+               button = select.siblings( "a" ).first();
+
+               select.selectmenu( 'disable' );
+               same( select.attr('disabled'), "disabled", "select is disabled" );
+               ok( button.hasClass("ui-disabled"), "disabled class added" );
+               same( button.attr('aria-disabled'), "true", "select is disabled" );
+               same( select.selectmenu( 'option', 'disabled' ), true, "disbaled option set" );
+
+               select.selectmenu( 'enable' );
+               same( select.attr('disabled'), undefined, "select is disabled" );
+               ok( !button.hasClass("ui-disabled"), "disabled class added" );
+               same( button.attr('aria-disabled'), "false", "select is disabled" );
+               same( select.selectmenu( 'option', 'disabled' ), false, "disbaled option set" );
+       });
+
+       asyncTest( "adding options and refreshing a custom select changes the options list", function(){
+               var select = $( "#custom-refresh-opts-list" ),
+      button = select.siblings( "a" ).find( ".ui-btn-inner" ),
+      text = "foo";
+
+               $.testHelper.sequence([
+                       // bring up the dialog
+                       function() {
+                               button.click();
+                       },
+
+                       function() {
+                               same( $( ".ui-selectmenu.in ul" ).text(), "default" );
+                               $( ".ui-selectmenu-screen" ).click();
+                       },
+
+                       function() {
+                               select.find( "option" ).remove(); //remove the loading message
+                               select.append('<option value="1">' + text + '</option>');
+                               select.selectmenu( 'refresh' );
+                       },
+
+                       function() {
+                               button.click();
+                       },
+
+                       function() {
+                               same( $( ".ui-selectmenu.in ul" ).text(), text );
+                               $( ".ui-selectmenu-screen" ).click();
+                       },
+
+                       start
+               ], 500);
+       });
+
+       test( "theme defined on select is used", function(){
+               var select = $("select#non-parent-themed");
+
+               ok( select.siblings( "a" ).hasClass("ui-btn-up-" + select.jqmData('theme')));
+       });
+
+       test( "select without theme defined inherits theme from parent", function() {
+               var select = $("select#parent-themed");
+
+               ok( select
+                       .siblings( "a" )
+                       .hasClass("ui-btn-up-" + select.parents(":jqmData(role='page')").jqmData('theme')));
+       });
+
+       // issue #2547
+       test( "custom select list item links have encoded option text values", function() {
+               $( "#encoded-option" ).data( 'selectmenu' )._buildList();
+               same(window.encodedValueIsDefined, undefined);
+       });
+
+       // not testing the positive case here since's it's obviously tested elsewhere
+       test( "select elements in the keepNative set shouldn't be enhanced", function() {
+               ok( !$("#keep-native").parent().is("div.ui-btn") );
+       });
+
+       asyncTest( "dialog size select title should match the label", function() {
+               var $select = $( "#select-choice-many-1" ),
+                       $label = $select.parent().siblings( "label" ),
+                       $button = $select.siblings( "a" );
+
+               $.testHelper.pageSequence([
+                       function() {
+                               $button.click();
+                       },
+
+                       function() {
+                               same($.mobile.activePage.find( ".ui-title" ).text(), $label.text());
+                               window.history.back();
+                       },
+
+                       start
+               ]);
+       });
+
+       asyncTest( "dialog size select title should match the label when changed after the dialog markup is added to the DOM", function() {
+               var $select = $( "#select-choice-many-1" ),
+                       $label = $select.parent().siblings( "label" ),
+                       $button = $select.siblings( "a" );
+
+               $label.text( "foo" );
+
+               $.testHelper.pageSequence([
+                       function() {
+                               $label.text( "foo" );
+                               $button.click();
+                       },
+
+                       function() {
+                               same($.mobile.activePage.find( ".ui-title" ).text(), $label.text());
+                               window.history.back();
+                       },
+
+                       start
+               ]);
+       });
+
+       test( "a disabled custom select should still be enhanced as custom", function() {
+               $("#select-disabled-enhancetest").selectmenu("enable").siblings("a").click();
+
+               var menu = $(".ui-selectmenu").not( ".ui-selectmenu-hidden" );
+               ok( menu.text().indexOf("disabled enhance test") > -1, "the right select is showing" );
+       });
+})(jQuery);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/select_events.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/select_events.js
new file mode 100644 (file)
index 0000000..355a142
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+ * mobile select unit tests
+ */
+
+(function($){
+       var libName = "jquery.mobile.forms.select";
+
+       $(document).bind('mobileinit', function(){
+               $.mobile.selectmenu.prototype.options.nativeMenu = false;
+       });
+
+       module(libName,{
+               setup: function(){
+                       $.testHelper.openPage( location.hash.indexOf("#default") >= 0 ? "#" : "#default" );
+               }
+       });
+
+       test( "selects marked with data-native-menu=true should use a div as their button", function(){
+               same($("#select-choice-native-container div.ui-btn").length, 1);
+       });
+
+       test( "selects marked with data-native-menu=true should not have a custom menu", function(){
+               same($("#select-choice-native-container ul").length, 0);
+       });
+
+       test( "selects marked with data-native-menu=true should sit inside the button", function(){
+               same($("#select-choice-native-container div.ui-btn select").length, 1);
+       });
+
+       test( "select controls will create when inside a container that receives a 'create' event", function(){
+               ok( !$("#enhancetest").appendTo(".ui-page-active").find(".ui-select").length, "did not have enhancements applied" );
+               ok( $("#enhancetest").trigger("create").find(".ui-select").length, "enhancements applied" );
+       });
+})(jQuery);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/select_native.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/select_native.js
new file mode 100644 (file)
index 0000000..fdabe85
--- /dev/null
@@ -0,0 +1,122 @@
+/*
+ * mobile select unit tests
+ */
+
+(function($){
+       module("jquery.mobile.forms.select native");
+
+       test( "native menu selections alter the button text", function(){
+               var select = $( "#native-select-choice-few" ), setAndCheck;
+
+               setAndCheck = function(key){
+                       var text;
+
+                       select.val( key ).selectmenu( 'refresh' );
+                       text = select.find( "option[value='" + key + "']" ).text();
+                       same( select.parent().find(".ui-btn-text").text(), text );
+               };
+
+               setAndCheck( 'rush' );
+               setAndCheck( 'standard' );
+       });
+
+       asyncTest( "selecting a value removes the related buttons down state", function(){
+               var select = $( "#native-select-choice-few" );
+
+               $.testHelper.sequence([
+                       function() {
+                               // click the native menu parent button
+                               select.parent().trigger( 'vmousedown' );
+                       },
+
+                       function() {
+                               ok( select.parent().hasClass("ui-btn-down-c"), "button down class added" );
+                       },
+
+                       function() {
+                               // trigger a change on the select
+                               select.trigger( "change" );
+                       },
+
+                       function() {
+                               ok( !select.parent().hasClass("ui-btn-down-c"), "button down class removed" );
+                               start();
+                       }
+               ], 300);
+       });
+
+       // issue https://github.com/jquery/jquery-mobile/issues/2410
+       test( "adding options and refreshing a custom select defaults the text", function() {
+               var select = $( "#custom-refresh" ),
+                       button = select.siblings( "a" ).find( ".ui-btn-inner" ),
+                       text = "foo";
+
+               same($.trim(button.text()), "default");
+               select.find( "option" ).remove(); //remove the loading message
+               select.append('<option value="1">' + text + '</option>');
+               select.selectmenu( 'refresh' );
+               same($.trim(button.text()), text);
+       });
+
+       // issue 2424
+       test( "native selects should provide open and close as a no-op", function() {
+               // exception will prevent test success if undef
+               $( "#native-refresh" ).selectmenu( 'open' );
+               $( "#native-refresh" ).selectmenu( 'close' );
+               ok( true );
+       });
+
+       asyncTest( "The preventFocusZoom option is working as expected", function() {
+
+               var zoomoptiondefault = $.mobile.selectmenu.prototype.options.preventFocusZoom;
+               $.mobile.selectmenu.prototype.options.preventFocusZoom = true;
+
+               $(document)
+                       .one("vmousedown.test", function(){
+                               ok( $.mobile.zoom.enabled === false, "zoom is disabled on vmousedown" );
+                       })
+                       .one("mouseup.test", function(){
+                               ok( $.mobile.zoom.enabled === true, "zoom is enabled on mouseup" );
+                               $.mobile.selectmenu.prototype.options.preventFocusZoom = zoomoptiondefault;
+                               $(document).unbind(".test");
+                               $( "#select-choice-native" ).selectmenu( "option", "preventFocusZoom", zoomoptiondefault )
+                               start();
+               });
+
+               $( "#select-choice-native" )
+                       .selectmenu( "option", "preventFocusZoom", true )
+                       .parent()
+                       .trigger( "vmousedown" )
+                       .trigger( "mouseup" );
+
+
+
+
+       });
+
+       asyncTest( "The preventFocusZoom option does not manipulate zoom when it is false", function() {
+
+               var zoomstate = $.mobile.zoom.enabled,
+                       zoomoptiondefault = $.mobile.selectmenu.prototype.options.preventFocusZoom;
+
+
+               $(document)
+                       .one("vmousedown.test", function(){
+                               ok( $.mobile.zoom.enabled === zoomstate, "zoom is unaffected on vmousedown" );
+                       })
+                       .one("mouseup.test", function(){
+                               ok( $.mobile.zoom.enabled === zoomstate, "zoom is unaffected on mouseup" );
+                               $(document).unbind(".test");
+                               $( "#select-choice-native" ).selectmenu( "option", "preventFocusZoom", zoomoptiondefault );
+                               start();
+
+               });
+
+               $( "#select-choice-native" )
+                       .selectmenu( "option", "preventFocusZoom", false )
+                       .parent()
+                       .trigger( "vmousedown" )
+                       .trigger( "mouseup" );
+
+       });
+})(jQuery);
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/suite.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/suite.html
new file mode 100644 (file)
index 0000000..9545af3
--- /dev/null
@@ -0,0 +1,297 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+</head>
+<body>
+<div id="first" data-nstest-role="page">
+       <div  data-nstest-role="fieldcontain" id="select-choice-few-container">
+               <select name="select-choice-few" id="select-choice-few" data-nstest-native-menu="false">
+                       <option value="standard">Standard: 7 day</option>
+                       <option value="rush">Rush: 3 days</option>
+                       <option value="express">Express: next day</option>
+                       <option value="overnight">Overnight</option>
+               </select>
+       </div>
+
+       <div  data-nstest-role="fieldcontain" id="select-choice-native-container">
+               <select name="select-choice-native" id="select-choice-native" data-nstest-native-menu="true">
+                       <option value="standard">Standard: 7 day</option>
+                       <option value="rush">Rush: 3 days</option>
+                       <option value="express">Express: next day</option>
+                       <option value="overnight">Overnight</option>
+               </select>
+       </div>
+
+       <div  data-nstest-role="fieldcontain" id="select-choice-global-native-container">
+               <select name="select-choice-global-native" id="select-choice-global-native"  data-nstest-native-menu="false">
+                       <option value="standard">Standard: 7 day</option>
+                       <option value="rush">Rush: 3 days</option>
+                       <option value="express">Express: next day</option>
+                       <option value="overnight">Overnight</option>
+               </select>
+       </div>
+
+       <div  data-nstest-role="fieldcontain" id="select-choice-many-container-1">
+               <label for="select-choice-many-1" class="select">Your state:</label>
+               <select name="select-choice-many-1" id="select-choice-many-1" data-nstest-native-menu="false">
+                       <option value="AL">Alabama</option>
+                       <option value="AK">Alaska</option>
+                       <option value="AZ">Arizona</option>
+                       <option value="AR">Arkansas</option>
+                       <option value="CA">California</option>
+                       <option value="CO">Colorado</option>
+                       <option value="CT">Connecticut</option>
+                       <option value="DE">Delaware</option>
+                       <option value="FL">Florida</option>
+                       <option value="GA">Georgia</option>
+                       <option value="HI">Hawaii</option>
+                       <option value="ID">Idaho</option>
+                       <option value="IL">Illinois</option>
+                       <option value="IN">Indiana</option>
+                       <option value="IA">Iowa</option>
+                       <option value="KS">Kansas</option>
+                       <option value="KY">Kentucky</option>
+                       <option value="LA">Louisiana</option>
+                       <option value="ME">Maine</option>
+                       <option value="MD">Maryland</option>
+                       <option value="MA">Massachusetts</option>
+                       <option value="MI">Michigan</option>
+                       <option value="MN">Minnesota</option>
+                       <option value="MS">Mississippi</option>
+                       <option value="MO">Missouri</option>
+                       <option value="MT">Montana</option>
+                       <option value="NE">Nebraska</option>
+                       <option value="NV">Nevada</option>
+                       <option value="NH">New Hampshire</option>
+                       <option value="NJ">New Jersey</option>
+                       <option value="NM">New Mexico</option>
+                       <option value="NY">New York</option>
+                       <option value="NC">North Carolina</option>
+                       <option value="ND">North Dakota</option>
+                       <option value="OH">Ohio</option>
+                       <option value="OK">Oklahoma</option>
+                       <option value="OR">Oregon</option>
+                       <option value="PA">Pennsylvania</option>
+                       <option value="RI">Rhode Island</option>
+                       <option value="SC">South Carolina</option>
+                       <option value="SD">South Dakota</option>
+                       <option value="TN">Tennessee</option>
+                       <option value="TX">Texas</option>
+                       <option value="UT">Utah</option>
+                       <option value="VT">Vermont</option>
+                       <option value="VA">Virginia</option>
+                       <option value="WA">Washington</option>
+                       <option value="WV">West Virginia</option>
+                       <option value="WI">Wisconsin</option>
+                       <option value="WY">Wyoming</option>
+               </select>
+       </div>
+
+       <div  data-nstest-role="fieldcontain" id="select-choice-many-container">
+               <label for="select-choice-many" class="select">Your state:</label>
+               <select name="select-choice-many" id="select-choice-many" data-nstest-native-menu="false">
+                       <option value="AL">Alabama</option>
+                       <option value="AK">Alaska</option>
+                       <option value="AZ">Arizona</option>
+                       <option value="AR">Arkansas</option>
+                       <option value="CA">California</option>
+                       <option value="CO">Colorado</option>
+                       <option value="CT">Connecticut</option>
+                       <option value="DE">Delaware</option>
+                       <option value="FL">Florida</option>
+                       <option value="GA">Georgia</option>
+                       <option value="HI">Hawaii</option>
+                       <option value="ID">Idaho</option>
+                       <option value="IL">Illinois</option>
+                       <option value="IN">Indiana</option>
+                       <option value="IA">Iowa</option>
+                       <option value="KS">Kansas</option>
+                       <option value="KY">Kentucky</option>
+                       <option value="LA">Louisiana</option>
+                       <option value="ME">Maine</option>
+                       <option value="MD">Maryland</option>
+                       <option value="MA">Massachusetts</option>
+                       <option value="MI">Michigan</option>
+                       <option value="MN">Minnesota</option>
+                       <option value="MS">Mississippi</option>
+                       <option value="MO">Missouri</option>
+                       <option value="MT">Montana</option>
+                       <option value="NE">Nebraska</option>
+                       <option value="NV">Nevada</option>
+                       <option value="NH">New Hampshire</option>
+                       <option value="NJ">New Jersey</option>
+                       <option value="NM">New Mexico</option>
+                       <option value="NY">New York</option>
+                       <option value="NC">North Carolina</option>
+                       <option value="ND">North Dakota</option>
+                       <option value="OH">Ohio</option>
+                       <option value="OK">Oklahoma</option>
+                       <option value="OR">Oregon</option>
+                       <option value="PA">Pennsylvania</option>
+                       <option value="RI">Rhode Island</option>
+                       <option value="SC">South Carolina</option>
+                       <option value="SD">South Dakota</option>
+                       <option value="TN">Tennessee</option>
+                       <option value="TX">Texas</option>
+                       <option value="UT">Utah</option>
+                       <option value="VT">Vermont</option>
+                       <option value="VA">Virginia</option>
+                       <option value="WA">Washington</option>
+                       <option value="WV">West Virginia</option>
+                       <option value="WI">Wisconsin</option>
+                       <option value="WY">Wyoming</option>
+               </select>
+       </div>
+
+       <div  data-nstest-role="fieldcontain" id="select-choice-many-container-hash-check">
+               <label for="select-choice-many-hash-check" class="select">Your state:</label>
+               <select name="select-choice-many-hash-check" id="select-choice-many-hash-check"  data-nstest-native-menu="false">
+                       <option value="AL">Alabama</option>
+                       <option value="AK">Alaska</option>
+                       <option value="AZ">Arizona</option>
+                       <option value="AR">Arkansas</option>
+                       <option value="CA">California</option>
+                       <option value="CO">Colorado</option>
+                       <option value="CT">Connecticut</option>
+                       <option value="DE">Delaware</option>
+                       <option value="FL">Florida</option>
+                       <option value="GA">Georgia</option>
+                       <option value="HI">Hawaii</option>
+                       <option value="ID">Idaho</option>
+                       <option value="IL">Illinois</option>
+                       <option value="IN">Indiana</option>
+                       <option value="IA">Iowa</option>
+                       <option value="KS">Kansas</option>
+                       <option value="KY">Kentucky</option>
+                       <option value="LA">Louisiana</option>
+                       <option value="ME">Maine</option>
+                       <option value="MD">Maryland</option>
+                       <option value="MA">Massachusetts</option>
+                       <option value="MI">Michigan</option>
+                       <option value="MN">Minnesota</option>
+                       <option value="MS">Mississippi</option>
+                       <option value="MO">Missouri</option>
+                       <option value="MT">Montana</option>
+                       <option value="NE">Nebraska</option>
+                       <option value="NV">Nevada</option>
+                       <option value="NH">New Hampshire</option>
+                       <option value="NJ">New Jersey</option>
+                       <option value="NM">New Mexico</option>
+                       <option value="NY">New York</option>
+                       <option value="NC">North Carolina</option>
+                       <option value="ND">North Dakota</option>
+                       <option value="OH">Ohio</option>
+                       <option value="OK">Oklahoma</option>
+                       <option value="OR">Oregon</option>
+                       <option value="PA">Pennsylvania</option>
+                       <option value="RI">Rhode Island</option>
+                       <option value="SC">South Carolina</option>
+                       <option value="SD">South Dakota</option>
+                       <option value="TN">Tennessee</option>
+                       <option value="TX">Texas</option>
+                       <option value="UT">Utah</option>
+                       <option value="VT">Vermont</option>
+                       <option value="VA">Virginia</option>
+                       <option value="WA">Washington</option>
+                       <option value="WV">West Virginia</option>
+                       <option value="WI">Wisconsin</option>
+                       <option value="WY">Wyoming</option>
+               </select>
+       </div>
+
+       <div data-nstest-role="fieldcontain" id="select-choice-many-container-many-clicks">
+               <label for="select-choice-many-many-clicks" class="select">Your state:</label>
+               <select name="select-choice-many-many-clicks" id="select-choice-many-many-clicks"  data-nstest-native-menu="false">
+                       <option value="AL">Alabama</option>
+                       <option value="AK">Alaska</option>
+                       <option value="AZ">Arizona</option>
+                       <option value="AR">Arkansas</option>
+                       <option value="CA">California</option>
+                       <option value="CO">Colorado</option>
+                       <option value="CT">Connecticut</option>
+                       <option value="DE">Delaware</option>
+                       <option value="FL">Florida</option>
+                       <option value="GA">Georgia</option>
+                       <option value="HI">Hawaii</option>
+                       <option value="ID">Idaho</option>
+                       <option value="IL">Illinois</option>
+                       <option value="IN">Indiana</option>
+                       <option value="IA">Iowa</option>
+                       <option value="KS">Kansas</option>
+                       <option value="KY">Kentucky</option>
+                       <option value="LA">Louisiana</option>
+                       <option value="ME">Maine</option>
+                       <option value="MD">Maryland</option>
+                       <option value="MA">Massachusetts</option>
+                       <option value="MI">Michigan</option>
+                       <option value="MN">Minnesota</option>
+                       <option value="MS">Mississippi</option>
+                       <option value="MO">Missouri</option>
+                       <option value="MT">Montana</option>
+                       <option value="NE">Nebraska</option>
+                       <option value="NV">Nevada</option>
+                       <option value="NH">New Hampshire</option>
+                       <option value="NJ">New Jersey</option>
+                       <option value="NM">New Mexico</option>
+                       <option value="NY">New York</option>
+                       <option value="NC">North Carolina</option>
+                       <option value="ND">North Dakota</option>
+                       <option value="OH">Ohio</option>
+                       <option value="OK">Oklahoma</option>
+                       <option value="OR">Oregon</option>
+                       <option value="PA">Pennsylvania</option>
+                       <option value="RI">Rhode Island</option>
+                       <option value="SC">South Carolina</option>
+                       <option value="SD">South Dakota</option>
+                       <option value="TN">Tennessee</option>
+                       <option value="TX">Texas</option>
+                       <option value="UT">Utah</option>
+                       <option value="VT">Vermont</option>
+                       <option value="VA">Virginia</option>
+                       <option value="WA">Washington</option>
+                       <option value="WV">West Virginia</option>
+                       <option value="WI">Wisconsin</option>
+                       <option value="WY">Wyoming</option>
+               </select>
+       </div>
+
+       <div data-nstest-role="fieldcontain" id="select-offscreen-container">
+               <style>
+                       /* keep the select small and close to the screen border to test rendering */
+                       #select-offscreen-container {
+                       width: 100px;
+                       position: absolute;
+                       left: 0px;
+                       top: 0px;
+                       }
+               </style>
+
+               <select name="select-choice-few" id="select-offscreen" data-nstest-native-menu="false">
+                       <option value="standard">Standard: 7 day</option>
+                       <option value="rush">Rush: 3 days</option>
+                       <option value="express">Express: next day</option>
+                       <option value="overnight">Overnight</option>
+               </select>
+       </div>
+
+       <div data-nstest-role="fieldcontain" id="select-long-option-label-container">
+               <select name="select-long-option-label" id="select-long-option-label" data-nstest-native-menu="false">
+                       <option value="short">Choice 1</option>
+                       <option value="long">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</option>
+           </select>
+       </div>
+</div>
+
+
+
+<div id="enhancetest">
+       <select name="select-enhancetest" id="select-enhancetest">
+               <option value="standard">Standard: 7 day</option>
+               <option value="rush">Rush: 3 days</option>
+               <option value="express">Express: next day</option>
+               <option value="overnight">Overnight</option>
+       </select>
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/uncached-dom-cached-false.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/select/uncached-dom-cached-false.html
new file mode 100644 (file)
index 0000000..2977c2a
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE HTML>
+<html lang="en">
+  <head>
+    <meta charset="utf-8">
+  </head>
+  <body>
+    <div id="dialog-select-parent-domcache-test" data-nstest-role="page">
+           <div data-nstest-role="fieldcontain" id="domcache-page-select-container">
+                   <label for="domcache-page-select" class="select">Your state:</label>
+                   <select name="domcache-uncached-page-select" id="domcache-uncached-page-select" data-nstest-native-menu="false">
+                           <option value="AL">Alabama</option>
+                           <option value="AK">Alaska</option>
+                           <option value="AZ">Arizona</option>
+                           <option value="AR">Arkansas</option>
+                           <option value="CA">California</option>
+                           <option value="CO">Colorado</option>
+                           <option value="CT">Connecticut</option>
+                           <option value="DE">Delaware</option>
+                           <option value="FL">Florida</option>
+                           <option value="GA">Georgia</option>
+                           <option value="HI">Hawaii</option>
+                           <option value="ID">Idaho</option>
+                           <option value="IL">Illinois</option>
+                           <option value="IN">Indiana</option>
+                           <option value="IA">Iowa</option>
+                           <option value="KS">Kansas</option>
+                           <option value="KY">Kentucky</option>
+                           <option value="LA">Louisiana</option>
+                           <option value="ME">Maine</option>
+                           <option value="MD">Maryland</option>
+                           <option value="MA">Massachusetts</option>
+                           <option value="MI">Michigan</option>
+                           <option value="MN">Minnesota</option>
+                           <option value="MS">Mississippi</option>
+                           <option value="MO">Missouri</option>
+                           <option value="MT">Montana</option>
+                           <option value="NE">Nebraska</option>
+                           <option value="NV">Nevada</option>
+                           <option value="NH">New Hampshire</option>
+                           <option value="NJ">New Jersey</option>
+                           <option value="NM">New Mexico</option>
+                           <option value="NY">New York</option>
+                           <option value="NC">North Carolina</option>
+                           <option value="ND">North Dakota</option>
+                           <option value="OH">Ohio</option>
+                           <option value="OK">Oklahoma</option>
+                           <option value="OR">Oregon</option>
+                           <option value="PA">Pennsylvania</option>
+                           <option value="RI">Rhode Island</option>
+                           <option value="SC">South Carolina</option>
+                           <option value="SD">South Dakota</option>
+                           <option value="TN">Tennessee</option>
+                           <option value="TX">Texas</option>
+                           <option value="UT">Utah</option>
+                           <option value="VT">Vermont</option>
+                           <option value="VA">Virginia</option>
+                           <option value="WA">Washington</option>
+                           <option value="WV">West Virginia</option>
+                           <option value="WI">Wisconsin</option>
+                           <option value="WY">Wyoming</option>
+                   </select>
+           </div>
+    </div>
+  </body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/slider/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/slider/index.html
new file mode 100644 (file)
index 0000000..f251711
--- /dev/null
@@ -0,0 +1,99 @@
+ <!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile Slider Test Suite</title>
+
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script src="../../../tests/jquery.testHelper.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [
+                               "jquery.mobile.forms.slider"
+                       ],
+                       [
+                               "slider_events.js",
+                               "slider_core.js"
+                       ],
+                       [ "jquery.mobile.init" ]
+               ]);
+       </script>
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Slider Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div id="foo"  data-nstest-role="page">
+       <div data-nstest-role="fieldcontain">
+               <input type="range" name="slider-1" id="range-slider-up" value="0" min="0" max="100"  data-nstest-theme="b" data-nstest-track-theme="a" />
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+               <input type="range" name="slider-1" id="range-slider-down" value="10" min="0" max="100"  data-nstest-theme="b" data-nstest-track-theme="a" />
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+               <input type="range" name="background-slider" id="background-slider" value="10" min="0" max="100"        data-nstest-theme="b" data-nstest-track-theme="a" data-nstest-highlight="true"/>
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+               <input type="range" name="no-background-slider" id="no-background-slider" value="10" min="0" max="100"  data-nstest-theme="b" data-nstest-track-theme="a"/>
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+               <input type="range" name="slider-1" id="range-slider-home" value="75" min="0" max="100"  data-nstest-theme="b" data-nstest-track-theme="a" />
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+               <label for="slider-1">Input slider:</label>
+               <input type="range" name="slider-1" id="range-slider-end" value="15" min="0" max="100"  data-nstest-theme="b" data-nstest-track-theme="a" />
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+               <input type="range" name="stepped" id="stepped" value="15" min="0" max="100" step="10"  data-nstest-theme="b" data-nstest-track-theme="a" />
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+               <select name="slider" id="slider-switch"  data-nstest-role="slider">
+                       <option value="off">Off</option>
+                       <option value="on">On</option>
+               </select>
+       </div>
+
+       <div data-nstest-role="fieldcontain">
+               <input type="range" name="onchange" id="onchange" value="25" min="0" max="100" step="10" onchange="onChangeCounter()" data-nstest-theme="b" data-nstest-track-theme="a" />
+       </div>
+
+       <div data-role="fieldcontain">
+               <label for="slider">Input slider:</label>
+               <input type="range" name="slider" id="slider" value="25" min="0" max="100" class="should-be-native"/>
+       </div>
+
+       <div data-role="fieldcontain">
+               <label for="step-slider">Input slider:</label>
+               <input type="range" name="step-slider" id="step-slider" value="25" min="0" max="100" step="20"/>
+       </div>
+
+       <div data-role="fieldcontain">
+               <label for="empty-string-val-slider">Input slider:</label>
+               <input type="range" name="empty-string-val-slider" id="empty-string-val-slider" value="25" min="10" max="100" step="20"/>
+       </div>
+</div>
+
+<div id="enhancetest">
+       <input type="range" name="slider-enhancetest" id="range-slider-enhancetest" value="75" min="0" max="100"  data-nstest-theme="b" data-nstest-track-theme="a" />
+</div>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/slider/slider_core.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/slider/slider_core.js
new file mode 100644 (file)
index 0000000..d19e9a3
--- /dev/null
@@ -0,0 +1,47 @@
+/*
+ * mobile slider unit tests
+ */
+(function($){
+       $.mobile.page.prototype.options.keepNative = "input.should-be-native";
+
+       // not testing the positive case here since's it's obviously tested elsewhere
+       test( "slider elements in the keepNative set shouldn't be enhanced", function() {
+               same( $("input.should-be-native").siblings("div.ui-slider").length, 0 );
+       });
+
+       test( "refresh should force val to nearest step", function() {
+               var slider = $( "#step-slider" ),
+                       step = parseInt(slider.attr( "step" ), 10);
+
+               slider.val( step + 1 );
+
+               slider.slider( 'refresh' );
+
+               ok( step > 1, "the step is greater than one" );
+               ok( slider.val() > 0, "the value has been altered" );
+               same( slider.val() % step, 0, "value has 'snapped' to a step" );
+       });
+
+       test( "empty string value results defaults to slider min value", function() {
+               var slider = $( "#empty-string-val-slider" );
+               same( slider.attr('min'), "10", "slider min is greater than 0" );
+               same( slider.val( '' ).slider( 'refresh' ).val(), slider.attr('min'), "val is equal to min attr");
+       });
+
+       test( "flip toggle switch title should be current selected value attr", function() {
+               var slider = $( "#slider-switch" );
+
+               same(slider.siblings(".ui-slider").find("a").attr('title'),
+                                $(slider.find("option")[slider[0].selectedIndex]).text(),
+                                "verify that the link title is set to the selected option text");
+       });
+
+       test( "data-highlight works properly", function() {
+               var $highlighted = $("#background-slider"), $unhighlighted = $("#no-background-slider");
+
+               same( $highlighted.siblings( ".ui-slider" ).find( ".ui-slider-bg" ).length, 1,
+                                       "highlighted slider should have a div for the track bg" );
+               same( $unhighlighted.siblings( ".ui-slider" ).find( ".ui-slider-bg" ).length, 0,
+                                       "unhighlighted slider _not_ should have a div for the track bg" );
+       });
+})( jQuery );
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/slider/slider_events.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/slider/slider_events.js
new file mode 100644 (file)
index 0000000..cc54566
--- /dev/null
@@ -0,0 +1,376 @@
+/*
+ * mobile slider unit tests
+ */
+
+(function($){
+       var onChangeCnt = 0;
+       window.onChangeCounter = function() {
+               onChangeCnt++;
+       };
+
+       module('jquery.mobile.slider.js', {
+               setup: function() {
+                       // force the value to be an increment of 10 when we aren't testing the rounding
+                       $("#stepped").val( 20 );
+               }
+       });
+
+       var keypressTest = function(opts){
+               var slider = $(opts.selector),
+                   val = window.parseFloat(slider.val()),
+                               handle = slider.siblings('.ui-slider').find('.ui-slider-handle');
+
+               expect( opts.keyCodes.length );
+
+               $.each(opts.keyCodes, function(i, elem){
+
+                       // stub the keycode value and trigger the keypress
+                       $.Event.prototype.keyCode = $.mobile.keyCode[elem];
+                       handle.trigger('keydown');
+
+                       val += opts.increment;
+                       same(val, window.parseFloat(slider.val(), 10), "new value is " + opts.increment + " different");
+               });
+       };
+
+       test( "slider should move right with up, right, and page up keypress", function(){
+               keypressTest({
+                       selector: '#range-slider-up',
+                       keyCodes: ['UP', 'RIGHT', 'PAGE_UP'],
+                       increment: 1
+               });
+       });
+
+       test( "slider should move left with down, left, and page down keypress", function(){
+               keypressTest({
+                       selector: '#range-slider-down',
+                       keyCodes: ['DOWN', 'LEFT', 'PAGE_DOWN'],
+                       increment: -1
+               });
+       });
+
+       test( "slider should move to range minimum on end keypress", function(){
+               var selector = "#range-slider-end",
+                               initialVal = window.parseFloat($(selector).val(), 10),
+                   max = window.parseFloat($(selector).attr('max'), 10);
+
+               keypressTest({
+                       selector: selector,
+                       keyCodes: ['END'],
+                       increment: max - initialVal
+               });
+       });
+
+       test( "slider should move to range minimum on end keypress", function(){
+               var selector = "#range-slider-home",
+                               initialVal = window.parseFloat($(selector).val(), 10);
+
+               keypressTest({
+                       selector: selector,
+                       keyCodes: ['HOME'],
+                       increment: 0 - initialVal
+               });
+       });
+
+       test( "slider should move positive by steps on keypress", function(){
+               keypressTest({
+                       selector: "#stepped",
+                       keyCodes: ['RIGHT'],
+                       increment: 10
+               });
+       });
+
+       test( "slider should move negative by steps on keypress", function(){
+               keypressTest({
+                       selector: "#stepped",
+                       keyCodes: ['LEFT'],
+                       increment: -10
+               });
+       });
+
+       test( "slider should validate input value on blur", function(){
+               var slider = $("#range-slider-up");
+               slider.focus();
+               slider.val(200);
+               same(slider.val(), "200");
+               slider.blur();
+               same(slider.val(), slider.attr('max'));
+       });
+
+       test( "slider should not validate input on keyup", function(){
+               var slider = $("#range-slider-up");
+               slider.focus();
+               slider.val(200);
+               same(slider.val(), "200");
+               slider.keyup();
+               same(slider.val(), "200");
+       });
+
+       test( "input type should degrade to number when slider is created", function(){
+               same($("#range-slider-up").attr( "type" ), "number");
+       });
+
+       // generic switch test function
+       var sliderSwitchTest = function(opts){
+               var slider = $("#slider-switch"),
+                         handle = slider.siblings('.ui-slider').find('a'),
+                   switchValues = {
+                                       'off' : 0,
+                                       'on' : 1
+                               };
+
+               // One for the select and one for the aria-valuenow
+               expect( opts.keyCodes.length * 2 );
+
+               $.each(opts.keyCodes, function(i, elem){
+                       // reset the values
+                       slider[0].selectedIndex = switchValues[opts.start];
+                       handle.attr({'aria-valuenow' : opts.start });
+
+                       // stub the keycode and trigger the event
+                       $.Event.prototype.keyCode = $.mobile.keyCode[elem];
+                       handle.trigger('keydown');
+
+                       same(handle.attr('aria-valuenow'), opts.finish, "handle value is " + opts.finish);
+                       same(slider[0].selectedIndex, switchValues[opts.finish], "select input has correct index");
+               });
+       };
+
+       test( "switch should select on with up, right, page up and end", function(){
+               sliderSwitchTest({
+                       start: 'off',
+                       finish: 'on',
+                       keyCodes: ['UP', 'RIGHT', 'PAGE_UP', 'END']
+               });
+       });
+
+       test( "switch should select off with down, left, page down and home", function(){
+               sliderSwitchTest({
+                       start: 'on',
+                       finish: 'off',
+                 keyCodes: ['DOWN', 'LEFT', 'PAGE_DOWN', 'HOME']
+               });
+       });
+
+       test( "onchange should not be called on create", function(){
+               equals(onChangeCnt, 0, "onChange should not have been called");
+       });
+
+       test( "onchange should be called onchange", function(){
+               onChangeCnt = 0;
+               $( "#onchange" ).slider( "refresh", 50 );
+               equals(onChangeCnt, 1, "onChange should have been called once");
+       });
+
+       test( "slider controls will create when inside a container that receives a 'create' event", function(){
+               ok( !$("#enhancetest").appendTo(".ui-page-active").find(".ui-slider").length, "did not have enhancements applied" );
+               ok( $("#enhancetest").trigger("create").find(".ui-slider").length, "enhancements applied" );
+       });
+
+       var createEvent = function( name, target, x, y ) {
+               var event = $.Event( name );
+               event.target = target;
+               event.pageX = x;
+               event.pageY = y;
+               return event;
+       };
+
+       test( "toggle switch should fire one change event when clicked", function(){
+               var control = $( "#slider-switch" ),
+                       widget = control.data( "slider" ),
+                       slider = widget.slider,
+                       handle = widget.handle,
+                       changeCount = 0,
+                       changeFunc = function( e ) {
+                               ok( control[0].selectedIndex !== currentValue, "change event should only be triggered if the value changes");
+                               ++changeCount;
+                       },
+                       event = null,
+                       offset = handle.offset(),
+                       currentValue = control[0].selectedIndex;
+
+               control.bind( "change", changeFunc );
+
+               // The toggle switch actually updates on mousedown and mouseup events, so we go through
+               // the motions of generating all the events that happen during a click to make sure that
+               // during all of those events, the value only changes once.
+
+               slider.trigger( createEvent( "mousedown", handle[ 0 ], offset.left + 10, offset.top + 10 ) );
+               slider.trigger( createEvent( "mouseup", handle[ 0 ], offset.left + 10, offset.top + 10 ) );
+               slider.trigger( createEvent( "click", handle[ 0 ], offset.left + 10, offset.top + 10 ) );
+
+               control.unbind( "change", changeFunc );
+
+               ok( control[0].selectedIndex !== currentValue, "value did change");
+               same( changeCount, 1, "change event should be fired once during a click" );
+       });
+
+       var assertLeftCSS = function( obj, opts ) {
+               var integerLeft, compare, css, threshold;
+
+               css = obj.css('left');
+               threshold = opts.pxThreshold || 0;
+
+               if( css.indexOf( "px" ) > -1 ) {
+                       // parse the actual pixel value returned by the left css value
+                       // and the pixels passed in for comparison
+                       integerLeft = Math.round( parseFloat( css.replace("px", "") ) ),
+                       compare = parseInt( opts.pixels.replace( "px", "" ), 10 );
+
+                       // check that the pixel value provided is within a given threshold; default is 0px
+                       ok( compare >= integerLeft - threshold && compare <= integerLeft + threshold, opts.message );
+               } else {
+                       equal( css, opts.percent, opts.message );
+               }
+       };
+
+       asyncTest( "toggle switch handle should snap in the old position if dragged less than half of the slider width, in the new position if dragged more than half of the slider width", function() {
+               var control = $( "#slider-switch" ),
+                       widget = control.data( "slider" ),
+                       slider = widget.slider,
+                       handle = widget.handle,
+                       width = handle.width(),
+                       offset = null;
+
+               $.testHelper.sequence([
+                       function() {
+                               // initialize the switch
+                               control.val('on').slider('refresh');
+                       },
+
+                       function() {
+                               assertLeftCSS(handle, {
+                                       percent: '100%',
+                                       pixels: handle.parent().css('width'),
+                                       message: 'handle starts on the right side'
+                               });
+
+                               // simulate dragging less than a half
+                               offset = handle.offset();
+                               slider.trigger( createEvent( "mousedown", handle[ 0 ], offset.left + width - 10, offset.top + 10 ) );
+                               slider.trigger( createEvent( "mousemove", handle[ 0 ], offset.left + width - 20, offset.top + 10 ) );
+                               slider.trigger( createEvent( "mouseup", handle[ 0 ], offset.left + width - 20, offset.top + 10 ) );
+                       },
+
+                       function() {
+                               assertLeftCSS(handle, {
+                                       percent: '100%',
+                                       pixels: handle.parent().css('width'),
+                                       message: 'handle ends on the right side'
+                               });
+
+                               // initialize the switch
+                               control.val('on').slider('refresh');
+                       },
+
+                       function() {
+                               assertLeftCSS(handle, {
+                                       percent: '100%',
+                                       pixels: handle.parent().css('width'),
+                                       message: 'handle starts on the right side'
+                               });
+
+                               // simulate dragging more than a half
+                               offset = handle.offset();
+                               slider.trigger( createEvent( "mousedown", handle[ 0 ], offset.left + 10, offset.top + 10 ) );
+                               slider.trigger( createEvent( "mousemove", handle[ 0 ], offset.left - ( width / 2 + 10 ), offset.top + 10 ) );
+                               slider.trigger( createEvent( "mouseup", handle[ 0 ], offset.left - ( width / 2 + 10 ), offset.top + 10 ) );
+                       },
+
+                       function() {
+                               assertLeftCSS(handle, {
+                                       percent: '0%',
+                                       pixels: '0px',
+                                       message: 'handle ends on the left side'
+                               });
+
+                               start();
+                       }
+               ], 500);
+       });
+
+       asyncTest( "toggle switch handle should not move if user is dragging and value is changed", function() {
+               var control = $( "#slider-switch" ),
+                       widget = control.data( "slider" ),
+                       slider = widget.slider,
+                       handle = widget.handle,
+                       width = handle.width(),
+                       offset = null;
+
+               $.testHelper.sequence([
+                       function() {
+                               // initialize the switch
+                               control.val('on').slider('refresh');
+                       },
+
+                       function() {
+                               assertLeftCSS(handle, {
+                                       percent: '100%',
+                                       pixels: handle.parent().css('width'),
+                                       message: 'handle starts on the right side'
+                               });
+
+                               // simulate dragging more than a half
+                               offset = handle.offset();
+                               slider.trigger( createEvent( "mousedown", handle[ 0 ], offset.left + 10, offset.top + 10 ) );
+                               slider.trigger( createEvent( "mousemove", handle[ 0 ], offset.left - ( width / 2 ), offset.top + 10 ) );
+                       },
+
+                       function() {
+                               var min, max;
+                               if( handle.css('left').indexOf("%") > -1 ){
+                                       min = "0%";
+                                       max = "100%";
+                               } else {
+                                       min = "0px";
+                                       max = handle.parent().css( 'width' );
+                               }
+
+                               notEqual(handle.css('left'), min, 'handle is not on the left side');
+                               notEqual(handle.css('left'), max, 'handle is not on the right side');
+
+                               // reset slider state so it is ready for other tests
+                               slider.trigger( createEvent( "mouseup", handle[ 0 ], offset.left - ( width / 2 ), offset.top + 10 ) );
+
+                               start();
+                       }
+               ], 500);
+       });
+
+       asyncTest( "toggle switch should refresh when disabled", function() {
+               var control = $( "#slider-switch" ),
+                       handle = control.data( "slider" ).handle;
+
+               $.testHelper.sequence([
+                       function() {
+                               // set the initial value
+                               control.val('off').slider('refresh');
+                       },
+
+                       function() {
+                               assertLeftCSS(handle, {
+                                       percent: '0%',
+                                       pixels: '0px',
+                                       message: 'handle starts on the left side'
+                               });
+
+                               // disable and change value
+                               control.slider('disable');
+                               control.val('on').slider('refresh');
+                       },
+
+                       function() {
+                               assertLeftCSS(handle, {
+                                       percent: '100%',
+                                       pixels: handle.parent().css( 'width' ),
+                                       message: 'handle ends on the right side'
+                               });
+
+                               // reset slider state so it is ready for other tests
+                               control.slider('enable');
+
+                               start();
+                       }
+               ], 500);
+       });
+})(jQuery);
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/support/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/support/index.html
new file mode 100644 (file)
index 0000000..dac7fb2
--- /dev/null
@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile Support Test Suite</title>
+
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script src="../../../tests/jquery.testHelper.js"></script>
+
+       <script>
+               $.testHelper.asyncLoad([
+                       [
+                               "jquery.mobile.support"
+                       ],
+                       [
+                               "support_core.js"
+                       ]
+               ]);
+       </script>
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Support Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div id="qunit-fixture"></div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/support/support_core.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/support/support_core.js
new file mode 100644 (file)
index 0000000..27b3e7c
--- /dev/null
@@ -0,0 +1,116 @@
+/*
+ * mobile support unit tests
+ */
+
+$.testHelper.excludeFileProtocol(function(){
+       var     prependToFn = $.fn.prependTo,
+               moduleName = "jquery.mobile.support";
+
+       module(moduleName, {
+               teardown: function(){
+                       //NOTE undo any mocking
+                       $.fn.prependTo = prependToFn;
+               }
+       });
+
+       // NOTE following two tests have debatable value as they only
+       //      prevent property name changes and improper attribute checks
+       asyncTest( "detects functionality from basic affirmative properties and attributes", function(){
+               // TODO expose properties for less brittle tests
+               $.extend(window, {
+                       WebKitTransitionEvent: true,
+               });
+
+               window.history.pushState = function(){};
+               window.history.replaceState = function(){};
+
+               $.mobile.media = function(){ return true; };
+
+               $.testHelper.reloadModule( moduleName ).done( function() {
+                       ok($.support.cssTransitions, "css transitions are supported" );
+                       ok($.support.pushState, "push state is supported" );
+                       ok($.support.mediaquery, "media queries are supported" );
+                       start();
+               });
+       });
+
+       asyncTest( "detects orientation change", function() {
+               $.extend(window, {
+                       orientation: true,
+                       onorientationchange: true
+               });
+
+               $.testHelper.reloadModule( "jquery.mobile.support.orientation" ).done( function() {
+                       ok($.support.orientation, "orientation is supported" );
+                       start();
+               });
+       });
+
+       asyncTest( "detects touch", function() {
+               document.ontouchend = true;
+
+               $.testHelper.reloadModule( "jquery.mobile.support.touch" ).done( function() {
+                       ok( $.mobile.support.touch, "touch is supported" );
+                       ok( $.support.touch, "touch is supported" );
+                       start();
+               });
+       });
+
+       asyncTest( "detects functionality from basic negative properties and attributes (where possible)", function(){
+               delete window["orientation"];
+
+               $.testHelper.reloadModule( "jquery.mobile.support.orientation" ).done( function() {
+                       ok(!$.support.orientation, "orientation is not supported" );
+                       start();
+               });
+       });
+
+       // NOTE mocks prependTo to simulate base href updates or lack thereof
+       var mockBaseCheck = function( url ){
+               var prependToFn = $.fn.prependTo;
+
+               $.fn.prependTo = function( selector ){
+                       var result = prependToFn.call(this, selector);
+                       if(this[0].href && this[0].href.indexOf("testurl") != -1)
+                               result = [{href: url}];
+                       return result;
+               };
+       };
+
+       asyncTest( "detects dynamic base tag when new base element added and base href updates", function(){
+               mockBaseCheck(location.protocol + '//' + location.host + location.pathname + "ui-dir/");
+               $.testHelper.reloadModule( moduleName ).done( function() {
+                       ok($.support.dynamicBaseTag);
+                       start();
+               });
+       });
+
+       asyncTest( "detects no dynamic base tag when new base element added and base href unchanged", function(){
+               mockBaseCheck('testurl');
+               $.testHelper.reloadModule( moduleName ).done( function() {
+                       ok(!$.support.dynamicBaseTag);
+                       start();
+               });
+       });
+
+       asyncTest( "jQM's IE browser check properly detects IE versions", function(){
+               $.testHelper.reloadModule( moduleName ).done( function() {
+               //here we're just comparing our version to what the conditional compilation finds
+                var ie                         = !!$.browser.msie, //get a boolean
+                        version                = parseInt( $.browser.version, 10),
+                        jqmdetectedver = $.mobile.browser.ie;
+
+                       if( ie ){
+                               deepEqual(version, jqmdetectedver, "It's IE and the version is correct");
+                       }
+                       else{
+                               deepEqual(ie, jqmdetectedver, "It's not IE");
+                       }
+                       start();
+               });
+       });
+
+
+       //TODO propExists testing, refactor propExists into mockable method
+       //TODO scrollTop testing, refactor scrollTop logic into mockable method
+});
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/swarminject.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/swarminject.js
new file mode 100644 (file)
index 0000000..db69326
--- /dev/null
@@ -0,0 +1,9 @@
+// load testswarm agent
+(function() {
+    var url = window.location.search;
+       url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) );
+       if ( !url || url.indexOf("http") !== 0 ) {
+               return;
+       }
+    document.write("<scr" + "ipt src='http://swarm.jquery.org/js/inject.js?" + (new Date).getTime() + "'></scr" + "ipt>");
+})();
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/textinput/external.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/textinput/external.html
new file mode 100644 (file)
index 0000000..2d10dd6
--- /dev/null
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+</head>
+<body>
+<div  data-nstest-role="page" id="foo">
+  <textarea id="page-load-autogrow">
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+  </textarea>
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/textinput/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/textinput/index.html
new file mode 100644 (file)
index 0000000..7b21eb1
--- /dev/null
@@ -0,0 +1,60 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile Textinput Test Suite</title>
+
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script src="../../../tests/jquery.testHelper.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [ "jquery.mobile.forms.textinput" ],
+                       [ "settings.js" ],
+                       [ "jquery.mobile.init" ],
+                       [ "textinput_core.js" ]
+               ]);
+       </script>
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Textinput Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div  data-nstest-role="page">
+  <input name="" id="typeless-input" />
+  <textarea class="should-be-native"></textarea>
+
+  <textarea id="reference-autogrow">
+  </textarea>
+
+  <textarea id="init-autogrow">
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+    Place holder text
+  </textarea>
+
+  <textarea id="keyup-autogrow">
+  </textarea>
+  <a href="external.html" id="external">external</a>
+
+  <input type="search" id="search-input">
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/textinput/settings.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/textinput/settings.js
new file mode 100644 (file)
index 0000000..0e68422
--- /dev/null
@@ -0,0 +1,3 @@
+$( document ).bind("mobileinit", function(){
+  $.mobile.textinput.prototype.options.clearSearchButtonText = "custom value";
+});
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/textinput/textinput_core.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/textinput/textinput_core.js
new file mode 100644 (file)
index 0000000..78c1e3e
--- /dev/null
@@ -0,0 +1,66 @@
+/*
+ * mobile textinput unit tests
+ */
+(function($){
+       module( "jquery.mobile.forms.textinput.js" );
+
+       test( "inputs without type specified are enhanced", function(){
+               ok( $( "#typeless-input" ).hasClass( "ui-input-text" ) );
+       });
+
+       $.mobile.page.prototype.options.keepNative = "textarea.should-be-native";
+
+       // not testing the positive case here since's it's obviously tested elsewhere
+       test( "textarea in the keepNative set shouldn't be enhanced", function() {
+               ok( !$("textarea.should-be-native").is("ui-input-text") );
+       });
+
+       asyncTest( "textarea should autogrow on document ready", function() {
+               var test = $( "#init-autogrow" );
+
+               setTimeout(function() {
+                       ok( $( "#reference-autogrow" )[0].clientHeight < test[0].clientHeight, "the height is greater than the reference text area with no content" );
+                       ok( test[0].clientHeight > 100, "autogrow text area's height is greater than any style padding");
+                       start();
+               }, 400);
+       });
+
+       asyncTest( "textarea should autogrow when text is added via the keyboard", function() {
+               var test = $( "#keyup-autogrow" ),
+                       originalHeight = test[0].clientHeight;
+
+               test.keyup(function() {
+                       setTimeout(function() {
+                               ok( test[0].clientHeight > originalHeight, "the height is greater than original with no content" );
+                               ok( test[0].clientHeight > 100, "autogrow text area's height is greater any style/padding");
+                               start();
+                       }, 400);
+               });
+
+               test.val("foo\n\n\n\n\n\n\n\n\n\n\n\n\n\n").trigger("keyup");
+       });
+
+       asyncTest( "text area should auto grow when the parent page is loaded via ajax", function() {
+               $.testHelper.pageSequence([
+                       function() {
+                               $("#external").click();
+                       },
+
+                       function() {
+                               setTimeout(function() {
+                                       ok($.mobile.activePage.find( "textarea" )[0].clientHeight > 100, "text area's height has grown");
+                                       window.history.back();
+                               }, 1000);
+                       },
+
+                       function() {
+                               start();
+                       }
+               ]);
+       });
+
+       // NOTE init binding to alter the setting is in settings.js
+       test( "'clear text' button for search inputs should use configured text", function(){
+               strictEqual( $( "#search-input" ).closest( ".ui-input-search" ).find( ".ui-input-clear" ).attr( "title" ), "custom value" );
+       });
+})(jQuery);
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/widget/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/widget/index.html
new file mode 100644 (file)
index 0000000..f42080e
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>jQuery Mobile Widget Test Suite</title>
+
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.tag.inserter.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script src="../../../tests/jquery.testHelper.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [ "widget_init.js" ],
+                       [
+                               "jquery.mobile.forms.slider",
+                               "jquery.mobile.collapsible",
+                               "jquery.mobile.widget"
+                       ],
+                       [ "jquery.mobile.init" ],
+                       [
+                               "widget_core.js"
+                       ]
+               ]);
+       </script>
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Widget Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div id="qunit-fixture">
+
+<div id="widget-wrapper">
+       <div id="widget">
+               <div>...</div>
+       </div>
+</div>
+
+</div>
+
+<div id="foo" data-nstest-role="page">
+       <input type="range" id="foo-slider" name="foo-slider" value="" />
+       <div id="enhance-prevented">
+       </div>
+       <div id="enhance-allowed">
+       </div>
+</div>
+
+<div id="ignored" data-nstest-enhance="false" style="display: none">
+       <div id="ignored-collapsible" data-nstest-role="collapsible">
+       </div>
+</div>
+
+<div id="many-ignored" style="display: none">
+       <div>
+               <div id="many-enhanced-collapsible" data-nstest-role="collapsible">
+               </div>
+       </div>
+       <div data-nstest-enhance="false">
+               <div id="many-ignored-collapsible" data-nstest-role="collapsible">
+               </div>
+       </div>
+</div>
+
+<div id="not-ignored" style="display: none">
+       <div id="collapsible" data-nstest-role="collapsible">
+       </div>
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/widget/widget_core.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/widget/widget_core.js
new file mode 100644 (file)
index 0000000..520bccd
--- /dev/null
@@ -0,0 +1,52 @@
+/*
+ * mobile widget unit tests
+ */
+(function($){
+       module('jquery.mobile.widget.js');
+
+       test( "getting data from creation options", function(){
+               var expected = "bizzle";
+
+               $.mobile.widget.prototype.options = { "fooBar" : true };
+               $.mobile.widget.prototype.element = $("<div data-"+$.mobile.ns+"foo-bar=" + expected + ">");
+               same($.mobile.widget.prototype._getCreateOptions()["fooBar"],
+                                expected);
+       });
+
+       test( "getting no data when the options are empty", function(){
+                               var expected = {};
+
+               $.mobile.widget.prototype.options = {};
+               $.mobile.widget.prototype.element = $("<div data-"+$.mobile.ns+"foo-bar=" + expected + ">");
+               same($.mobile.widget.prototype._getCreateOptions(),
+                                expected);
+       });
+
+       test( "getting no data when the element has none", function(){
+               var expected = {};
+
+               $.mobile.widget.prototype.options = { "fooBar" : true };
+               $.mobile.widget.prototype.element = $("<div>");
+               same($.mobile.widget.prototype._getCreateOptions(),
+                                expected);
+       });
+
+       test( "elements embedded in sub page elements are excluded on create when they match the keep native selector", function() {
+               // uses default keep native of data-role=none
+               $("#enhance-prevented")
+                               .append('<label for="unenhanced">Text Input:</label><input type="text" name="name" id="unenhanced" value="" data-'+$.mobile.ns+'role="none" />')
+                               .trigger("create");
+
+               ok( !$("#unenhanced").hasClass( "ui-input-text" ), "doesn't have the ui input text class (unenhanced)");
+       });
+
+       test( "elements embedded in sub page elements are included on create when they don't match the keep native selector", function() {
+
+               // uses default keep native of data-role=none
+               $("#enhance-allowed")
+                               .append('<label for="enhanced">Text Input:</label><input type="text" name="name" id="enhanced" value=""/>')
+                               .trigger("create");
+
+               ok( $("#enhanced").hasClass( "ui-input-text" ), "has the ui input text class (unenhanced)");
+       });
+})(jQuery);
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/widget/widget_init.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/widget/widget_init.js
new file mode 100644 (file)
index 0000000..6f14626
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+ * mobile widget unit tests
+ */
+(function($){
+       var widgetInitialized = false;
+
+       module( 'jquery.mobile.widget.js' );
+
+       $( "#foo" ).live( 'pageinit', function(){
+               // ordering sensitive here, the value has to be set after the call
+               // so that if the widget factory says that its not yet initialized,
+               // which is an exception, the value won't be set
+               $( "#foo-slider" ).slider( 'refresh' );
+               widgetInitialized = true;
+       });
+
+       test( "page is enhanced before init is fired", function() {
+               ok( widgetInitialized );
+       });
+
+       test( "elements within an ignore container are not enhanced when ignoreContentEnabled is true ", function() {
+               $.mobile.ignoreContentEnabled = true;
+
+               $.mobile.collapsible.prototype.enhanceWithin( $("#ignored") );
+
+               ok( !$( "#ignored-collapsible" ).hasClass( "ui-collapsible" ), "ignored element doesn't have ui-collapsible" );
+
+               $.mobile.collapsible.prototype.enhanceWithin( $("#not-ignored") );
+
+               ok( $( "#collapsible" ).hasClass( "ui-collapsible" ), "identical unignored elements are enahanced" );
+
+               $.mobile.ignoreContentEnabled = false;
+       });
+
+       test( "siblings without ignore parent are enhanced", function() {
+               $.mobile.ignoreContentEnabled = true;
+
+               $.mobile.collapsible.prototype.enhanceWithin( $("#many-ignored") );
+
+               ok( !$( "#many-ignored-collapsible" ).hasClass( "ui-collapsible" ), "sibling ignored element doesn't have ui-collapsible" );
+               ok( $( "#many-enhanced-collapsible" ).hasClass( "ui-collapsible" ), "sibling unignored elements are enahanced" );
+
+               $.mobile.ignoreContentEnabled = false;
+       });
+})( jQuery );
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/zoom/index.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/zoom/index.html
new file mode 100644 (file)
index 0000000..84eb44a
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="UTF-8" />
+       <title>jQuery Mobile Zoom Maniplation Integration Test</title>
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../../tests/jquery.testHelper.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [
+                               "jquery.mobile.zoom"
+                       ],
+                       [ "jquery.mobile.init" ],
+                       [
+                               "./zoom.js"
+                       ]
+               ]);
+       </script>
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile FieldContainer Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div data-nstest-role="page">
+
+
+</div>
+
+
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/zoom/initial-disable.html b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/zoom/initial-disable.html
new file mode 100644 (file)
index 0000000..0b9eaab
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="UTF-8" />
+       <title>jQuery Mobile Zoom Maniplation Integration Test</title>
+       <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
+
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../js/jquery.js"></script>
+       <script src="../jquery.setNameSpace.js"></script>
+       <script src="../../../tests/jquery.testHelper.js"></script>
+       <script src="../../../external/qunit.js"></script>
+       <script>
+               $.testHelper.asyncLoad([
+                       [
+                               "jquery.mobile.zoom"
+                       ],
+                       [ "jquery.mobile.init" ],
+                       [
+                               "./zoom-initial-disable.js"
+                       ]
+               ]);
+       </script>
+
+       <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
+       <link rel="stylesheet" href="../../../external/qunit.css"/>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile FieldContainer Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div data-nstest-role="page">
+
+
+</div>
+
+
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/zoom/zoom-initial-disable.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/zoom/zoom-initial-disable.js
new file mode 100644 (file)
index 0000000..5dcb239
--- /dev/null
@@ -0,0 +1,9 @@
+/*
+ * mobile zoom
+ */
+(function($){
+       test( "User zooming will not enable when calling enable() method if zooming was disabled in page source", function(){
+               $.mobile.zoom.enable();
+               ok( !$.mobile.zoom.enabled );           
+       });
+})(jQuery);
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/zoom/zoom.js b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/tests/unit/zoom/zoom.js
new file mode 100644 (file)
index 0000000..0f7a8f7
--- /dev/null
@@ -0,0 +1,99 @@
+/*
+ * mobile Fixed Toolbar unit tests
+ */
+(function($){
+       module('jquery.mobile.fixedToolbar.js');
+       
+       var defaultMeta = $( "meta[name=viewport]" ).attr("content");
+       
+       
+       test( "User zooming is enabled by default", function(){
+               ok( $.mobile.zoom.enabled === true, "property is true" );               
+       });
+       
+       test( "The zoom lock is disabled by default", function(){
+               ok( $.mobile.zoom.locked === false, "property is false" );              
+       });
+       
+       
+       test( "Meta viewport content is manipulated with maximum-scale", function(){
+               $.mobile.zoom.disable();
+               ok( $( "meta[name=viewport]" ).attr( "content" ).match( /,maximum-scale=1, user-scalable=no/ ), "The meta viewport tag's content contains maximum-scale=1, user-scalable=yes after enable is called" );
+               
+               $.mobile.zoom.enable();
+               ok( $( "meta[name=viewport]" ).attr( "content" ).match( /,maximum-scale=10, user-scalable=yes/ ), "The meta viewport tag's content contains maximum-scale=1, user-scalable=yes0, user-scalable=no after enable is called" );
+               
+       });
+       
+       test( "Meta viewport content restore method restores it back to original value", function(){
+               $.mobile.zoom.disable();
+               ok( $( "meta[name=viewport]" ).attr( "content" ).match( /,maximum-scale=1, user-scalable=no/ ), "The meta viewport tag's content contains maximum-scale=1, user-scalable=yes after enable is called" );
+               
+               $.mobile.zoom.restore();
+               ok( $( "meta[name=viewport]" ).attr( "content" ) === defaultMeta, "The meta viewport tag's content matches its default state" );
+               
+       });
+       
+       
+       
+       test( "When locked, the enable method does nothing", function(){
+               //enabled it first
+               $.mobile.zoom.locked = false;
+               $.mobile.zoom.disable();
+               $.mobile.zoom.locked = true;
+               $.mobile.zoom.enable();
+               
+               ok( $( "meta[name=viewport]" ).attr( "content" ).match( /,maximum-scale=1, user-scalable=no/ ), "The meta viewport tag's content contains maximum-scale=1, user-scalable=yes after enable is called" );
+               $.mobile.zoom.locked = false;
+               $.mobile.zoom.enable();
+               
+       });
+       
+       test( "When locked, the disable method does nothing", function(){
+               //enabled it first
+               $.mobile.zoom.locked = false;
+               $.mobile.zoom.enable();
+               $.mobile.zoom.locked = true;
+               $.mobile.zoom.disable();
+               
+               ok( $( "meta[name=viewport]" ).attr( "content" ).match( /,maximum-scale=10, user-scalable=yes/ ), "The meta viewport tag's content contains maximum-scale=1, user-scalable=yes0, user-scalable=no after disable is called" );
+               
+               $.mobile.zoom.locked = false;
+               $.mobile.zoom.enable();
+               
+       });
+       
+       test( "When locked, the enable method with a true 'unlock' argument works", function(){
+               //enabled it first
+               $.mobile.zoom.locked = false;
+               $.mobile.zoom.disable();
+               $.mobile.zoom.locked = true;
+               $.mobile.zoom.enable( true );
+               
+               ok( $( "meta[name=viewport]" ).attr( "content" ).match( /,maximum-scale=10, user-scalable=yes/ ), "The meta viewport tag's content contains maximum-scale=1, user-scalable=yes0, user-scalable=no after enable is called" );
+               ok( $.mobile.zoom.locked === false, "The locked property is false again" );
+               
+               $.mobile.zoom.locked = false;
+               $.mobile.zoom.enable();
+               
+       });
+       
+       
+       test( "When locked, the disable method with a true 'lock' argument works", function(){
+               //enabled it first
+               $.mobile.zoom.locked = false;
+               $.mobile.zoom.enable();
+
+               $.mobile.zoom.disable( true );
+               
+               ok( $( "meta[name=viewport]" ).attr( "content" ).match( /,maximum-scale=1, user-scalable=no/ ), "The meta viewport tag's content contains maximum-scale=1, user-scalable=yes after disable is called" );
+               ok( $.mobile.zoom.locked === true, "The locked property is true" );
+               
+               $.mobile.zoom.locked = false;
+               $.mobile.zoom.enable();
+               
+       });
+       
+       
+       
+})(jQuery);
diff --git a/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/version.txt b/tct-webuifw-tests/libs/js/jquery-mobile-1.1.0/version.txt
new file mode 100644 (file)
index 0000000..9084fa2
--- /dev/null
@@ -0,0 +1 @@
+1.1.0
diff --git a/tct-webuifw-tests/libs/js/jquery.easing.1.3.js b/tct-webuifw-tests/libs/js/jquery.easing.1.3.js
new file mode 100644 (file)
index 0000000..ef74321
--- /dev/null
@@ -0,0 +1,205 @@
+/*
+ * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
+ *
+ * Uses the built in easing capabilities added In jQuery 1.1
+ * to offer multiple easing options
+ *
+ * TERMS OF USE - jQuery Easing
+ * 
+ * Open source under the BSD License. 
+ * 
+ * Copyright © 2008 George McGinley Smith
+ * 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. 
+ *
+*/
+
+// t: current time, b: begInnIng value, c: change In value, d: duration
+jQuery.easing['jswing'] = jQuery.easing['swing'];
+
+jQuery.extend( jQuery.easing,
+{
+       def: 'easeOutQuad',
+       swing: function (x, t, b, c, d) {
+               //alert(jQuery.easing.default);
+               return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
+       },
+       easeInQuad: function (x, t, b, c, d) {
+               return c*(t/=d)*t + b;
+       },
+       easeOutQuad: function (x, t, b, c, d) {
+               return -c *(t/=d)*(t-2) + b;
+       },
+       easeInOutQuad: function (x, t, b, c, d) {
+               if ((t/=d/2) < 1) return c/2*t*t + b;
+               return -c/2 * ((--t)*(t-2) - 1) + b;
+       },
+       easeInCubic: function (x, t, b, c, d) {
+               return c*(t/=d)*t*t + b;
+       },
+       easeOutCubic: function (x, t, b, c, d) {
+               return c*((t=t/d-1)*t*t + 1) + b;
+       },
+       easeInOutCubic: function (x, t, b, c, d) {
+               if ((t/=d/2) < 1) return c/2*t*t*t + b;
+               return c/2*((t-=2)*t*t + 2) + b;
+       },
+       easeInQuart: function (x, t, b, c, d) {
+               return c*(t/=d)*t*t*t + b;
+       },
+       easeOutQuart: function (x, t, b, c, d) {
+               return -c * ((t=t/d-1)*t*t*t - 1) + b;
+       },
+       easeInOutQuart: function (x, 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;
+       },
+       easeInQuint: function (x, t, b, c, d) {
+               return c*(t/=d)*t*t*t*t + b;
+       },
+       easeOutQuint: function (x, t, b, c, d) {
+               return c*((t=t/d-1)*t*t*t*t + 1) + b;
+       },
+       easeInOutQuint: function (x, t, b, c, d) {
+               if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
+               return c/2*((t-=2)*t*t*t*t + 2) + b;
+       },
+       easeInSine: function (x, t, b, c, d) {
+               return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
+       },
+       easeOutSine: function (x, t, b, c, d) {
+               return c * Math.sin(t/d * (Math.PI/2)) + b;
+       },
+       easeInOutSine: function (x, t, b, c, d) {
+               return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
+       },
+       easeInExpo: function (x, t, b, c, d) {
+               return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
+       },
+       easeOutExpo: function (x, t, b, c, d) {
+               return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
+       },
+       easeInOutExpo: function (x, t, b, c, d) {
+               if (t==0) return b;
+               if (t==d) return b+c;
+               if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
+               return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
+       },
+       easeInCirc: function (x, t, b, c, d) {
+               return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
+       },
+       easeOutCirc: function (x, t, b, c, d) {
+               return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
+       },
+       easeInOutCirc: function (x, t, b, c, d) {
+               if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
+               return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
+       },
+       easeInElastic: function (x, t, b, c, d) {
+               var s=1.70158;var p=0;var a=c;
+               if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
+               if (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;
+       },
+       easeOutElastic: function (x, t, b, c, d) {
+               var s=1.70158;var p=0;var a=c;
+               if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
+               if (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;
+       },
+       easeInOutElastic: function (x, t, b, c, d) {
+               var s=1.70158;var p=0;var a=c;
+               if (t==0) return b;  if ((t/=d/2)==2) return b+c;  if (!p) p=d*(.3*1.5);
+               if (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;
+       },
+       easeInBack: function (x, t, b, c, d, s) {
+               if (s == undefined) s = 1.70158;
+               return c*(t/=d)*t*((s+1)*t - s) + b;
+       },
+       easeOutBack: function (x, t, b, c, d, s) {
+               if (s == undefined) s = 1.70158;
+               return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
+       },
+       easeInOutBack: function (x, t, b, c, d, s) {
+               if (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;
+       },
+       easeInBounce: function (x, t, b, c, d) {
+               return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
+       },
+       easeOutBounce: function (x, 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;
+               } else {
+                       return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
+               }
+       },
+       easeInOutBounce: function (x, t, b, c, d) {
+               if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
+               return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
+       }
+});
+
+/*
+ *
+ * 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. 
+ *
+ */
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/jquery.mobile.loadstructure.js b/tct-webuifw-tests/libs/js/jquery.mobile.loadstructure.js
new file mode 100644 (file)
index 0000000..55457b4
--- /dev/null
@@ -0,0 +1,22 @@
+jQuery.extend( jQuery.mobile,
+{
+  loadStructure: function(widgetname) {
+    var ret = undefined,
+        theScriptTag = $("script[data-framework-version][data-framework-root][data-framework-theme]"),
+        frameworkRootPath = theScriptTag.attr("data-framework-root")    + "/" +
+                            theScriptTag.attr("data-framework-version") + "/",
+        protoPath = frameworkRootPath + "proto-html" + "/" +
+                    theScriptTag.attr("data-framework-theme");
+
+    $.ajax({
+      url: protoPath + "/" + widgetname + ".prototype.html",
+      async: false,
+      dataType: "html"
+    })
+      .success(function(data, textStatus, jqXHR) {
+        ret = $("<div>").html(data.replace(/\$\{FRAMEWORK_ROOT\}/g, frameworkRootPath));
+      });
+
+    return ret;
+  }
+});
diff --git a/tct-webuifw-tests/libs/js/jquery.tmpl.js b/tct-webuifw-tests/libs/js/jquery.tmpl.js
new file mode 100644 (file)
index 0000000..7e850f9
--- /dev/null
@@ -0,0 +1,484 @@
+/*!
+ * jQuery Templates Plugin 1.0.0pre
+ * http://github.com/jquery/jquery-tmpl
+ * Requires jQuery 1.4.2
+ *
+ * Copyright Software Freedom Conservancy, Inc.
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ */
+(function( jQuery, undefined ){
+       var oldManip = jQuery.fn.domManip, tmplItmAtt = "_tmplitem", htmlExpr = /^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,
+               newTmplItems = {}, wrappedItems = {}, appendToTmplItems, topTmplItem = { key: 0, data: {} }, itemKey = 0, cloneIndex = 0, stack = [];
+
+       function newTmplItem( options, parentItem, fn, data ) {
+               // Returns a template item data structure for a new rendered instance of a template (a 'template item').
+               // The content field is a hierarchical array of strings and nested items (to be
+               // removed and replaced by nodes field of dom elements, once inserted in DOM).
+               var newItem = {
+                       data: data || (data === 0 || data === false) ? data : (parentItem ? parentItem.data : {}),
+                       _wrap: parentItem ? parentItem._wrap : null,
+                       tmpl: null,
+                       parent: parentItem || null,
+                       nodes: [],
+                       calls: tiCalls,
+                       nest: tiNest,
+                       wrap: tiWrap,
+                       html: tiHtml,
+                       update: tiUpdate
+               };
+               if ( options ) {
+                       jQuery.extend( newItem, options, { nodes: [], parent: parentItem });
+               }
+               if ( fn ) {
+                       // Build the hierarchical content to be used during insertion into DOM
+                       newItem.tmpl = fn;
+                       newItem._ctnt = newItem._ctnt || newItem.tmpl( jQuery, newItem );
+                       newItem.key = ++itemKey;
+                       // Keep track of new template item, until it is stored as jQuery Data on DOM element
+                       (stack.length ? wrappedItems : newTmplItems)[itemKey] = newItem;
+               }
+               return newItem;
+       }
+
+       // Override appendTo etc., in order to provide support for targeting multiple elements. (This code would disappear if integrated in jquery core).
+       jQuery.each({
+               appendTo: "append",
+               prependTo: "prepend",
+               insertBefore: "before",
+               insertAfter: "after",
+               replaceAll: "replaceWith"
+       }, function( name, original ) {
+               jQuery.fn[ name ] = function( selector ) {
+                       var ret = [], insert = jQuery( selector ), elems, i, l, tmplItems,
+                               parent = this.length === 1 && this[0].parentNode;
+
+                       appendToTmplItems = newTmplItems || {};
+                       if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {
+                               insert[ original ]( this[0] );
+                               ret = this;
+                       } else {
+                               for ( i = 0, l = insert.length; i < l; i++ ) {
+                                       cloneIndex = i;
+                                       elems = (i > 0 ? this.clone(true) : this).get();
+                                       jQuery( insert[i] )[ original ]( elems );
+                                       ret = ret.concat( elems );
+                               }
+                               cloneIndex = 0;
+                               ret = this.pushStack( ret, name, insert.selector );
+                       }
+                       tmplItems = appendToTmplItems;
+                       appendToTmplItems = null;
+                       jQuery.tmpl.complete( tmplItems );
+                       return ret;
+               };
+       });
+
+       jQuery.fn.extend({
+               // Use first wrapped element as template markup.
+               // Return wrapped set of template items, obtained by rendering template against data.
+               tmpl: function( data, options, parentItem ) {
+                       return jQuery.tmpl( this[0], data, options, parentItem );
+               },
+
+               // Find which rendered template item the first wrapped DOM element belongs to
+               tmplItem: function() {
+                       return jQuery.tmplItem( this[0] );
+               },
+
+               // Consider the first wrapped element as a template declaration, and get the compiled template or store it as a named template.
+               template: function( name ) {
+                       return jQuery.template( name, this[0] );
+               },
+
+               domManip: function( args, table, callback, options ) {
+                       if ( args[0] && jQuery.isArray( args[0] )) {
+                               var dmArgs = jQuery.makeArray( arguments ), elems = args[0], elemsLength = elems.length, i = 0, tmplItem;
+                               while ( i < elemsLength && !(tmplItem = jQuery.data( elems[i++], "tmplItem" ))) {}
+                               if ( tmplItem && cloneIndex ) {
+                                       dmArgs[2] = function( fragClone ) {
+                                               // Handler called by oldManip when rendered template has been inserted into DOM.
+                                               jQuery.tmpl.afterManip( this, fragClone, callback );
+                                       };
+                               }
+                               oldManip.apply( this, dmArgs );
+                       } else {
+                               oldManip.apply( this, arguments );
+                       }
+                       cloneIndex = 0;
+                       if ( !appendToTmplItems ) {
+                               jQuery.tmpl.complete( newTmplItems );
+                       }
+                       return this;
+               }
+       });
+
+       jQuery.extend({
+               // Return wrapped set of template items, obtained by rendering template against data.
+               tmpl: function( tmpl, data, options, parentItem ) {
+                       var ret, topLevel = !parentItem;
+                       if ( topLevel ) {
+                               // This is a top-level tmpl call (not from a nested template using {{tmpl}})
+                               parentItem = topTmplItem;
+                               tmpl = jQuery.template[tmpl] || jQuery.template( null, tmpl );
+                               wrappedItems = {}; // Any wrapped items will be rebuilt, since this is top level
+                       } else if ( !tmpl ) {
+                               // The template item is already associated with DOM - this is a refresh.
+                               // Re-evaluate rendered template for the parentItem
+                               tmpl = parentItem.tmpl;
+                               newTmplItems[parentItem.key] = parentItem;
+                               parentItem.nodes = [];
+                               if ( parentItem.wrapped ) {
+                                       updateWrapped( parentItem, parentItem.wrapped );
+                               }
+                               // Rebuild, without creating a new template item
+                               return jQuery( build( parentItem, null, parentItem.tmpl( jQuery, parentItem ) ));
+                       }
+                       if ( !tmpl ) {
+                               return []; // Could throw...
+                       }
+                       if ( typeof data === "function" ) {
+                               data = data.call( parentItem || {} );
+                       }
+                       if ( options && options.wrapped ) {
+                               updateWrapped( options, options.wrapped );
+                       }
+                       ret = jQuery.isArray( data ) ?
+                               jQuery.map( data, function( dataItem ) {
+                                       return dataItem ? newTmplItem( options, parentItem, tmpl, dataItem ) : null;
+                               }) :
+                               [ newTmplItem( options, parentItem, tmpl, data ) ];
+                       return topLevel ? jQuery( build( parentItem, null, ret ) ) : ret;
+               },
+
+               // Return rendered template item for an element.
+               tmplItem: function( elem ) {
+                       var tmplItem;
+                       if ( elem instanceof jQuery ) {
+                               elem = elem[0];
+                       }
+                       while ( elem && elem.nodeType === 1 && !(tmplItem = jQuery.data( elem, "tmplItem" )) && (elem = elem.parentNode) ) {}
+                       return tmplItem || topTmplItem;
+               },
+
+               // Set:
+               // Use $.template( name, tmpl ) to cache a named template,
+               // where tmpl is a template string, a script element or a jQuery instance wrapping a script element, etc.
+               // Use $( "selector" ).template( name ) to provide access by name to a script block template declaration.
+
+               // Get:
+               // Use $.template( name ) to access a cached template.
+               // Also $( selectorToScriptBlock ).template(), or $.template( null, templateString )
+               // will return the compiled template, without adding a name reference.
+               // If templateString includes at least one HTML tag, $.template( templateString ) is equivalent
+               // to $.template( null, templateString )
+               template: function( name, tmpl ) {
+                       if (tmpl) {
+                               // Compile template and associate with name
+                               if ( typeof tmpl === "string" ) {
+                                       // This is an HTML string being passed directly in.
+                                       tmpl = buildTmplFn( tmpl );
+                               } else if ( tmpl instanceof jQuery ) {
+                                       tmpl = tmpl[0] || {};
+                               }
+                               if ( tmpl.nodeType ) {
+                                       // If this is a template block, use cached copy, or generate tmpl function and cache.
+                                       tmpl = jQuery.data( tmpl, "tmpl" ) || jQuery.data( tmpl, "tmpl", buildTmplFn( tmpl.innerHTML ));
+                                       // Issue: In IE, if the container element is not a script block, the innerHTML will remove quotes from attribute values whenever the value does not include white space.
+                                       // This means that foo="${x}" will not work if the value of x includes white space: foo="${x}" -> foo=value of x.
+                                       // To correct this, include space in tag: foo="${ x }" -> foo="value of x"
+                               }
+                               return typeof name === "string" ? (jQuery.template[name] = tmpl) : tmpl;
+                       }
+                       // Return named compiled template
+                       return name ? (typeof name !== "string" ? jQuery.template( null, name ):
+                               (jQuery.template[name] ||
+                                       // If not in map, and not containing at least on HTML tag, treat as a selector.
+                                       // (If integrated with core, use quickExpr.exec)
+                                       jQuery.template( null, htmlExpr.test( name ) ? name : jQuery( name )))) : null;
+               },
+
+               encode: function( text ) {
+                       // Do HTML encoding replacing < > & and ' and " by corresponding entities.
+                       return ("" + text).split("<").join("&lt;").split(">").join("&gt;").split('"').join("&#34;").split("'").join("&#39;");
+               }
+       });
+
+       jQuery.extend( jQuery.tmpl, {
+               tag: {
+                       "tmpl": {
+                               _default: { $2: "null" },
+                               open: "if($notnull_1){__=__.concat($item.nest($1,$2));}"
+                               // tmpl target parameter can be of type function, so use $1, not $1a (so not auto detection of functions)
+                               // This means that {{tmpl foo}} treats foo as a template (which IS a function).
+                               // Explicit parens can be used if foo is a function that returns a template: {{tmpl foo()}}.
+                       },
+                       "wrap": {
+                               _default: { $2: "null" },
+                               open: "$item.calls(__,$1,$2);__=[];",
+                               close: "call=$item.calls();__=call._.concat($item.wrap(call,__));"
+                       },
+                       "each": {
+                               _default: { $2: "$index, $value" },
+                               open: "if($notnull_1){$.each($1a,function($2){with(this){",
+                               close: "}});}"
+                       },
+                       "if": {
+                               open: "if(($notnull_1) && $1a){",
+                               close: "}"
+                       },
+                       "else": {
+                               _default: { $1: "true" },
+                               open: "}else if(($notnull_1) && $1a){"
+                       },
+                       "html": {
+                               // Unecoded expression evaluation.
+                               open: "if($notnull_1){__.push($1a);}"
+                       },
+                       "=": {
+                               // Encoded expression evaluation. Abbreviated form is ${}.
+                               _default: { $1: "$data" },
+                               open: "if($notnull_1){__.push($.encode($1a));}"
+                       },
+                       "!": {
+                               // Comment tag. Skipped by parser
+                               open: ""
+                       }
+               },
+
+               // This stub can be overridden, e.g. in jquery.tmplPlus for providing rendered events
+               complete: function( items ) {
+                       newTmplItems = {};
+               },
+
+               // Call this from code which overrides domManip, or equivalent
+               // Manage cloning/storing template items etc.
+               afterManip: function afterManip( elem, fragClone, callback ) {
+                       // Provides cloned fragment ready for fixup prior to and after insertion into DOM
+                       var content = fragClone.nodeType === 11 ?
+                               jQuery.makeArray(fragClone.childNodes) :
+                               fragClone.nodeType === 1 ? [fragClone] : [];
+
+                       // Return fragment to original caller (e.g. append) for DOM insertion
+                       callback.call( elem, fragClone );
+
+                       // Fragment has been inserted:- Add inserted nodes to tmplItem data structure. Replace inserted element annotations by jQuery.data.
+                       storeTmplItems( content );
+                       cloneIndex++;
+               }
+       });
+
+       //========================== Private helper functions, used by code above ==========================
+
+       function build( tmplItem, nested, content ) {
+               // Convert hierarchical content into flat string array
+               // and finally return array of fragments ready for DOM insertion
+               var frag, ret = content ? jQuery.map( content, function( item ) {
+                       return (typeof item === "string") ?
+                               // Insert template item annotations, to be converted to jQuery.data( "tmplItem" ) when elems are inserted into DOM.
+                               (tmplItem.key ? item.replace( /(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g, "$1 " + tmplItmAtt + "=\"" + tmplItem.key + "\" $2" ) : item) :
+                               // This is a child template item. Build nested template.
+                               build( item, tmplItem, item._ctnt );
+               }) :
+               // If content is not defined, insert tmplItem directly. Not a template item. May be a string, or a string array, e.g. from {{html $item.html()}}.
+               tmplItem;
+               if ( nested ) {
+                       return ret;
+               }
+
+               // top-level template
+               ret = ret.join("");
+
+               // Support templates which have initial or final text nodes, or consist only of text
+               // Also support HTML entities within the HTML markup.
+               ret.replace( /^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/, function( all, before, middle, after) {
+                       frag = jQuery( middle ).get();
+
+                       storeTmplItems( frag );
+                       if ( before ) {
+                               frag = unencode( before ).concat(frag);
+                       }
+                       if ( after ) {
+                               frag = frag.concat(unencode( after ));
+                       }
+               });
+               return frag ? frag : unencode( ret );
+       }
+
+       function unencode( text ) {
+               // Use createElement, since createTextNode will not render HTML entities correctly
+               var el = document.createElement( "div" );
+               el.innerHTML = text;
+               return jQuery.makeArray(el.childNodes);
+       }
+
+       // Generate a reusable function that will serve to render a template against data
+       function buildTmplFn( markup ) {
+               return new Function("jQuery","$item",
+                       // Use the variable __ to hold a string array while building the compiled template. (See https://github.com/jquery/jquery-tmpl/issues#issue/10).
+                       "var $=jQuery,call,__=[],$data=$item.data;" +
+
+                       // Introduce the data as local variables using with(){}
+                       "with($data){__.push('" +
+
+                       // Convert the template into pure JavaScript
+                       jQuery.trim(markup)
+                               .replace( /([\\'])/g, "\\$1" )
+                               .replace( /[\r\t\n]/g, " " )
+                               .replace( /\$\{([^\}]*)\}/g, "{{= $1}}" )
+                               .replace( /\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,
+                               function( all, slash, type, fnargs, target, parens, args ) {
+                                       var tag = jQuery.tmpl.tag[ type ], def, expr, exprAutoFnDetect;
+                                       if ( !tag ) {
+                                               throw "Unknown template tag: " + type;
+                                       }
+                                       def = tag._default || [];
+                                       if ( parens && !/\w$/.test(target)) {
+                                               target += parens;
+                                               parens = "";
+                                       }
+                                       if ( target ) {
+                                               target = unescape( target );
+                                               args = args ? ("," + unescape( args ) + ")") : (parens ? ")" : "");
+                                               // Support for target being things like a.toLowerCase();
+                                               // In that case don't call with template item as 'this' pointer. Just evaluate...
+                                               expr = parens ? (target.indexOf(".") > -1 ? target + unescape( parens ) : ("(" + target + ").call($item" + args)) : target;
+                                               exprAutoFnDetect = parens ? expr : "(typeof(" + target + ")==='function'?(" + target + ").call($item):(" + target + "))";
+                                       } else {
+                                               exprAutoFnDetect = expr = def.$1 || "null";
+                                       }
+                                       fnargs = unescape( fnargs );
+                                       return "');" +
+                                               tag[ slash ? "close" : "open" ]
+                                                       .split( "$notnull_1" ).join( target ? "typeof(" + target + ")!=='undefined' && (" + target + ")!=null" : "true" )
+                                                       .split( "$1a" ).join( exprAutoFnDetect )
+                                                       .split( "$1" ).join( expr )
+                                                       .split( "$2" ).join( fnargs || def.$2 || "" ) +
+                                               "__.push('";
+                               }) +
+                       "');}return __;"
+               );
+       }
+       function updateWrapped( options, wrapped ) {
+               // Build the wrapped content.
+               options._wrap = build( options, true,
+                       // Suport imperative scenario in which options.wrapped can be set to a selector or an HTML string.
+                       jQuery.isArray( wrapped ) ? wrapped : [htmlExpr.test( wrapped ) ? wrapped : jQuery( wrapped ).html()]
+               ).join("");
+       }
+
+       function unescape( args ) {
+               return args ? args.replace( /\\'/g, "'").replace(/\\\\/g, "\\" ) : null;
+       }
+       function outerHtml( elem ) {
+               var div = document.createElement("div");
+               div.appendChild( elem.cloneNode(true) );
+               return div.innerHTML;
+       }
+
+       // Store template items in jQuery.data(), ensuring a unique tmplItem data data structure for each rendered template instance.
+       function storeTmplItems( content ) {
+               var keySuffix = "_" + cloneIndex, elem, elems, newClonedItems = {}, i, l, m;
+               for ( i = 0, l = content.length; i < l; i++ ) {
+                       if ( (elem = content[i]).nodeType !== 1 ) {
+                               continue;
+                       }
+                       elems = elem.getElementsByTagName("*");
+                       for ( m = elems.length - 1; m >= 0; m-- ) {
+                               processItemKey( elems[m] );
+                       }
+                       processItemKey( elem );
+               }
+               function processItemKey( el ) {
+                       var pntKey, pntNode = el, pntItem, tmplItem, key;
+                       // Ensure that each rendered template inserted into the DOM has its own template item,
+                       if ( (key = el.getAttribute( tmplItmAtt ))) {
+                               while ( pntNode.parentNode && (pntNode = pntNode.parentNode).nodeType === 1 && !(pntKey = pntNode.getAttribute( tmplItmAtt ))) { }
+                               if ( pntKey !== key ) {
+                                       // The next ancestor with a _tmplitem expando is on a different key than this one.
+                                       // So this is a top-level element within this template item
+                                       // Set pntNode to the key of the parentNode, or to 0 if pntNode.parentNode is null, or pntNode is a fragment.
+                                       pntNode = pntNode.parentNode ? (pntNode.nodeType === 11 ? 0 : (pntNode.getAttribute( tmplItmAtt ) || 0)) : 0;
+                                       if ( !(tmplItem = newTmplItems[key]) ) {
+                                               // The item is for wrapped content, and was copied from the temporary parent wrappedItem.
+                                               tmplItem = wrappedItems[key];
+                                               tmplItem = newTmplItem( tmplItem, newTmplItems[pntNode]||wrappedItems[pntNode] );
+                                               tmplItem.key = ++itemKey;
+                                               newTmplItems[itemKey] = tmplItem;
+                                       }
+                                       if ( cloneIndex ) {
+                                               cloneTmplItem( key );
+                                       }
+                               }
+                               el.removeAttribute( tmplItmAtt );
+                       } else if ( cloneIndex && (tmplItem = jQuery.data( el, "tmplItem" )) ) {
+                               // This was a rendered element, cloned during append or appendTo etc.
+                               // TmplItem stored in jQuery data has already been cloned in cloneCopyEvent. We must replace it with a fresh cloned tmplItem.
+                               cloneTmplItem( tmplItem.key );
+                               newTmplItems[tmplItem.key] = tmplItem;
+                               pntNode = jQuery.data( el.parentNode, "tmplItem" );
+                               pntNode = pntNode ? pntNode.key : 0;
+                       }
+                       if ( tmplItem ) {
+                               pntItem = tmplItem;
+                               // Find the template item of the parent element.
+                               // (Using !=, not !==, since pntItem.key is number, and pntNode may be a string)
+                               while ( pntItem && pntItem.key != pntNode ) {
+                                       // Add this element as a top-level node for this rendered template item, as well as for any
+                                       // ancestor items between this item and the item of its parent element
+                                       pntItem.nodes.push( el );
+                                       pntItem = pntItem.parent;
+                               }
+                               // Delete content built during rendering - reduce API surface area and memory use, and avoid exposing of stale data after rendering...
+                               delete tmplItem._ctnt;
+                               delete tmplItem._wrap;
+                               // Store template item as jQuery data on the element
+                               jQuery.data( el, "tmplItem", tmplItem );
+                       }
+                       function cloneTmplItem( key ) {
+                               key = key + keySuffix;
+                               tmplItem = newClonedItems[key] =
+                                       (newClonedItems[key] || newTmplItem( tmplItem, newTmplItems[tmplItem.parent.key + keySuffix] || tmplItem.parent ));
+                       }
+               }
+       }
+
+       //---- Helper functions for template item ----
+
+       function tiCalls( content, tmpl, data, options ) {
+               if ( !content ) {
+                       return stack.pop();
+               }
+               stack.push({ _: content, tmpl: tmpl, item:this, data: data, options: options });
+       }
+
+       function tiNest( tmpl, data, options ) {
+               // nested template, using {{tmpl}} tag
+               return jQuery.tmpl( jQuery.template( tmpl ), data, options, this );
+       }
+
+       function tiWrap( call, wrapped ) {
+               // nested template, using {{wrap}} tag
+               var options = call.options || {};
+               options.wrapped = wrapped;
+               // Apply the template, which may incorporate wrapped content,
+               return jQuery.tmpl( jQuery.template( call.tmpl ), call.data, options, call.item );
+       }
+
+       function tiHtml( filter, textOnly ) {
+               var wrapped = this._wrap;
+               return jQuery.map(
+                       jQuery( jQuery.isArray( wrapped ) ? wrapped.join("") : wrapped ).filter( filter || "*" ),
+                       function(e) {
+                               return textOnly ?
+                                       e.innerText || e.textContent :
+                                       e.outerHTML || outerHtml(e);
+                       });
+       }
+
+       function tiUpdate() {
+               var coll = this.nodes;
+               jQuery.tmpl( null, null, null, this).insertBefore( coll[0] );
+               jQuery( coll ).remove();
+       }
+})( jQuery );
diff --git a/tct-webuifw-tests/libs/js/qunit/qunit.css b/tct-webuifw-tests/libs/js/qunit/qunit.css
new file mode 100644 (file)
index 0000000..fcb435f
--- /dev/null
@@ -0,0 +1,236 @@
+/**
+ * QUnit v1.9.0 - A JavaScript Unit Testing Framework
+ *
+ * http://docs.jquery.com/QUnit
+ *
+ * Copyright (c) 2012 John Resig, Jörn Zaefferer
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * or GPL (GPL-LICENSE.txt) licenses.
+ */
+
+/** Font Family and Sizes */
+
+#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult {
+       font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
+}
+
+#qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
+#qunit-tests { font-size: smaller; }
+
+
+/** Resets */
+
+#qunit-tests, #qunit-tests ol, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult {
+       margin: 0;
+       padding: 0;
+}
+
+
+/** Header */
+
+#qunit-header {
+       padding: 0.5em 0 0.5em 1em;
+
+       color: #8699a4;
+       background-color: #0d3349;
+
+       font-size: 1.5em;
+       line-height: 1em;
+       font-weight: normal;
+
+       border-radius: 5px 5px 0 0;
+       -moz-border-radius: 5px 5px 0 0;
+       -webkit-border-top-right-radius: 5px;
+       -webkit-border-top-left-radius: 5px;
+}
+
+#qunit-header a {
+       text-decoration: none;
+       color: #c2ccd1;
+}
+
+#qunit-header a:hover,
+#qunit-header a:focus {
+       color: #fff;
+}
+
+#qunit-testrunner-toolbar label {
+       display: inline-block;
+       padding: 0 .5em 0 .1em;
+}
+
+#qunit-banner {
+       height: 5px;
+}
+
+#qunit-testrunner-toolbar {
+       padding: 0.5em 0 0.5em 2em;
+       color: #5E740B;
+       background-color: #eee;
+}
+
+#qunit-userAgent {
+       padding: 0.5em 0 0.5em 2.5em;
+       background-color: #2b81af;
+       color: #fff;
+       text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
+}
+
+
+/** Tests: Pass/Fail */
+
+#qunit-tests {
+       list-style-position: inside;
+}
+
+#qunit-tests li {
+       padding: 0.4em 0.5em 0.4em 2.5em;
+       border-bottom: 1px solid #fff;
+       list-style-position: inside;
+}
+
+#qunit-tests.hidepass li.pass, #qunit-tests.hidepass li.running  {
+       display: none;
+}
+
+#qunit-tests li strong {
+       cursor: pointer;
+}
+
+#qunit-tests li a {
+       padding: 0.5em;
+       color: #c2ccd1;
+       text-decoration: none;
+}
+#qunit-tests li a:hover,
+#qunit-tests li a:focus {
+       color: #000;
+}
+
+#qunit-tests ol {
+       margin-top: 0.5em;
+       padding: 0.5em;
+
+       background-color: #fff;
+
+       border-radius: 5px;
+       -moz-border-radius: 5px;
+       -webkit-border-radius: 5px;
+}
+
+#qunit-tests table {
+       border-collapse: collapse;
+       margin-top: .2em;
+}
+
+#qunit-tests th {
+       text-align: right;
+       vertical-align: top;
+       padding: 0 .5em 0 0;
+}
+
+#qunit-tests td {
+       vertical-align: top;
+}
+
+#qunit-tests pre {
+       margin: 0;
+       white-space: pre-wrap;
+       word-wrap: break-word;
+}
+
+#qunit-tests del {
+       background-color: #e0f2be;
+       color: #374e0c;
+       text-decoration: none;
+}
+
+#qunit-tests ins {
+       background-color: #ffcaca;
+       color: #500;
+       text-decoration: none;
+}
+
+/*** Test Counts */
+
+#qunit-tests b.counts                       { color: black; }
+#qunit-tests b.passed                       { color: #5E740B; }
+#qunit-tests b.failed                       { color: #710909; }
+
+#qunit-tests li li {
+       padding: 5px;
+       background-color: #fff;
+       border-bottom: none;
+       list-style-position: inside;
+}
+
+/*** Passing Styles */
+
+#qunit-tests li li.pass {
+       color: #3c510c;
+       background-color: #fff;
+       border-left: 10px solid #C6E746;
+}
+
+#qunit-tests .pass                          { color: #528CE0; background-color: #D2E0E6; }
+#qunit-tests .pass .test-name               { color: #366097; }
+
+#qunit-tests .pass .test-actual,
+#qunit-tests .pass .test-expected           { color: #999999; }
+
+#qunit-banner.qunit-pass                    { background-color: #C6E746; }
+
+/*** Failing Styles */
+
+#qunit-tests li li.fail {
+       color: #710909;
+       background-color: #fff;
+       border-left: 10px solid #EE5757;
+       white-space: pre;
+}
+
+#qunit-tests > li:last-child {
+       border-radius: 0 0 5px 5px;
+       -moz-border-radius: 0 0 5px 5px;
+       -webkit-border-bottom-right-radius: 5px;
+       -webkit-border-bottom-left-radius: 5px;
+}
+
+#qunit-tests .fail                          { color: #000000; background-color: #EE5757; }
+#qunit-tests .fail .test-name,
+#qunit-tests .fail .module-name             { color: #000000; }
+
+#qunit-tests .fail .test-actual             { color: #EE5757; }
+#qunit-tests .fail .test-expected           { color: green;   }
+
+#qunit-banner.qunit-fail                    { background-color: #EE5757; }
+
+
+/** Result */
+
+#qunit-testresult {
+       padding: 0.5em 0.5em 0.5em 2.5em;
+
+       color: #2b81af;
+       background-color: #D2E0E6;
+
+       border-bottom: 1px solid white;
+}
+#qunit-testresult .module-name {
+       font-weight: bold;
+}
+
+/** Fixture */
+
+#qunit-fixture {
+       position: absolute;
+       top: -10000px;
+       left: -10000px;
+       width: 1000px;
+       height: 1000px;
+}
+
+[data-nstest-role='page'], [data-nstest-role='dialog'] {
+  position: absolute !important;
+  top: -10000px !important;
+}
\ No newline at end of file
diff --git a/tct-webuifw-tests/libs/js/qunit/qunit.js b/tct-webuifw-tests/libs/js/qunit/qunit.js
new file mode 100644 (file)
index 0000000..c63b0e4
--- /dev/null
@@ -0,0 +1,1935 @@
+/**
+ * QUnit v1.9.0 - A JavaScript Unit Testing Framework
+ *
+ * http://docs.jquery.com/QUnit
+ *
+ * Copyright (c) 2012 John Resig, Jörn Zaefferer
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * or GPL (GPL-LICENSE.txt) licenses.
+ */
+
+(function( window ) {
+
+var QUnit,
+       config,
+       onErrorFnPrev,
+       testId = 0,
+       fileName = (sourceFromStacktrace( 0 ) || "" ).replace(/(:\d+)+\)?/, "").replace(/.+\//, ""),
+       toString = Object.prototype.toString,
+       hasOwn = Object.prototype.hasOwnProperty,
+       defined = {
+       setTimeout: typeof window.setTimeout !== "undefined",
+       sessionStorage: (function() {
+               var x = "qunit-test-string";
+               try {
+                       sessionStorage.setItem( x, x );
+                       sessionStorage.removeItem( x );
+                       return true;
+               } catch( e ) {
+                       return false;
+               }
+       }())
+};
+
+function Test( settings ) {
+       extend( this, settings );
+       this.assertions = [];
+       this.testNumber = ++Test.count;
+}
+
+Test.count = 0;
+
+Test.prototype = {
+       init: function() {
+               var a, b, li,
+        tests = id( "qunit-tests" );
+
+               if ( tests ) {
+                       b = document.createElement( "strong" );
+                       b.innerHTML = this.name;
+
+                       // `a` initialized at top of scope
+                       a = document.createElement( "a" );
+                       a.innerHTML = "Rerun";
+                       a.href = QUnit.url({ testNumber: this.testNumber });
+
+                       li = document.createElement( "li" );
+                       li.appendChild( b );
+                       li.appendChild( a );
+                       li.className = "running";
+                       li.id = this.id = "qunit-test-output" + testId++;
+
+                       tests.appendChild( li );
+               }
+       },
+       setup: function() {
+               if ( this.module !== config.previousModule ) {
+                       if ( config.previousModule ) {
+                               runLoggingCallbacks( "moduleDone", QUnit, {
+                                       name: config.previousModule,
+                                       failed: config.moduleStats.bad,
+                                       passed: config.moduleStats.all - config.moduleStats.bad,
+                                       total: config.moduleStats.all
+                               });
+                       }
+                       config.previousModule = this.module;
+                       config.moduleStats = { all: 0, bad: 0 };
+                       runLoggingCallbacks( "moduleStart", QUnit, {
+                               name: this.module
+                       });
+               } else if ( config.autorun ) {
+                       runLoggingCallbacks( "moduleStart", QUnit, {
+                               name: this.module
+                       });
+               }
+
+               config.current = this;
+
+               this.testEnvironment = extend({
+                       setup: function() {},
+                       teardown: function() {}
+               }, this.moduleTestEnvironment );
+
+               runLoggingCallbacks( "testStart", QUnit, {
+                       name: this.testName,
+                       module: this.module
+               });
+
+               // allow utility functions to access the current test environment
+               // TODO why??
+               QUnit.current_testEnvironment = this.testEnvironment;
+
+               if ( !config.pollution ) {
+                       saveGlobal();
+               }
+               if ( config.notrycatch ) {
+                       this.testEnvironment.setup.call( this.testEnvironment );
+                       return;
+               }
+               try {
+                       this.testEnvironment.setup.call( this.testEnvironment );
+               } catch( e ) {
+                       QUnit.pushFailure( "Setup failed on " + this.testName + ": " + e.message, extractStacktrace( e, 1 ) );
+               }
+       },
+       run: function() {
+               config.current = this;
+
+               var running = id( "qunit-testresult" );
+
+               if ( running ) {
+                       running.innerHTML = "Running: <br/>" + this.name;
+               }
+
+               if ( this.async ) {
+                       QUnit.stop();
+               }
+
+               if ( config.notrycatch ) {
+                       this.callback.call( this.testEnvironment, QUnit.assert );
+                       return;
+               }
+
+               try {
+                       this.callback.call( this.testEnvironment, QUnit.assert );
+               } catch( e ) {
+                       QUnit.pushFailure( "Died on test #" + (this.assertions.length + 1) + " " + this.stack + ": " + e.message, extractStacktrace( e, 0 ) );
+                       // else next test will carry the responsibility
+                       saveGlobal();
+
+                       // Restart the tests if they're blocking
+                       if ( config.blocking ) {
+                               QUnit.start();
+                       }
+               }
+       },
+       teardown: function() {
+               config.current = this;
+               if ( config.notrycatch ) {
+                       this.testEnvironment.teardown.call( this.testEnvironment );
+                       return;
+               } else {
+                       try {
+                               this.testEnvironment.teardown.call( this.testEnvironment );
+                       } catch( e ) {
+                               QUnit.pushFailure( "Teardown failed on " + this.testName + ": " + e.message, extractStacktrace( e, 1 ) );
+                       }
+               }
+               checkPollution();
+       },
+       finish: function() {
+               config.current = this;
+               if ( config.requireExpects && this.expected == null ) {
+                       QUnit.pushFailure( "Expected number of assertions to be defined, but expect() was not called.", this.stack );
+               } else if ( this.expected != null && this.expected != this.assertions.length ) {
+                       QUnit.pushFailure( "Expected " + this.expected + " assertions, but " + this.assertions.length + " were run", this.stack );
+               } else if ( this.expected == null && !this.assertions.length ) {
+                       QUnit.pushFailure( "Expected at least one assertion, but none were run - call expect(0) to accept zero assertions.", this.stack );
+               }
+
+               var assertion, a, b, i, li, ol,
+                       test = this,
+                       good = 0,
+                       bad = 0,
+                       tests = id( "qunit-tests" );
+
+               config.stats.all += this.assertions.length;
+               config.moduleStats.all += this.assertions.length;
+
+               if ( tests ) {
+                       ol = document.createElement( "ol" );
+
+                       for ( i = 0; i < this.assertions.length; i++ ) {
+                               assertion = this.assertions[i];
+
+                               li = document.createElement( "li" );
+                               li.className = assertion.result ? "pass" : "fail";
+                               li.innerHTML = assertion.message || ( assertion.result ? "okay" : "failed" );
+                               ol.appendChild( li );
+
+                               if ( assertion.result ) {
+                                       good++;
+                               } else {
+                                       bad++;
+                                       config.stats.bad++;
+                                       config.moduleStats.bad++;
+                               }
+                       }
+
+                       // store result when possible
+                       if ( QUnit.config.reorder && defined.sessionStorage ) {
+                               if ( bad ) {
+                                       sessionStorage.setItem( "qunit-test-" + this.module + "-" + this.testName, bad );
+                               } else {
+                                       sessionStorage.removeItem( "qunit-test-" + this.module + "-" + this.testName );
+                               }
+                       }
+
+                       if ( bad === 0 ) {
+                               ol.style.display = "none";
+                       }
+
+                       // `b` initialized at top of scope
+                       b = document.createElement( "strong" );
+                       b.innerHTML = this.name + " <b class='counts'>(<b class='failed'>" + bad + "</b>, <b class='passed'>" + good + "</b>, " + this.assertions.length + ")</b>";
+
+                       addEvent(b, "click", function() {
+                               var next = b.nextSibling.nextSibling,
+                                       display = next.style.display;
+                               next.style.display = display === "none" ? "block" : "none";
+                       });
+
+                       addEvent(b, "dblclick", function( e ) {
+                               var target = e && e.target ? e.target : window.event.srcElement;
+                               if ( target.nodeName.toLowerCase() == "span" || target.nodeName.toLowerCase() == "b" ) {
+                                       target = target.parentNode;
+                               }
+                               if ( window.location && target.nodeName.toLowerCase() === "strong" ) {
+                                       window.location = QUnit.url({ testNumber: test.testNumber });
+                               }
+                       });
+
+                       // `li` initialized at top of scope
+                       li = id( this.id );
+                       li.className = bad ? "fail" : "pass";
+                       li.removeChild( li.firstChild );
+                       a = li.firstChild;
+                       li.appendChild( b );
+                       li.appendChild ( a );
+                       li.appendChild( ol );
+
+               } else {
+                       for ( i = 0; i < this.assertions.length; i++ ) {
+                               if ( !this.assertions[i].result ) {
+                                       bad++;
+                                       config.stats.bad++;
+                                       config.moduleStats.bad++;
+                               }
+                       }
+               }
+
+               runLoggingCallbacks( "testDone", QUnit, {
+                       name: this.testName,
+                       module: this.module,
+                       failed: bad,
+                       passed: this.assertions.length - bad,
+                       total: this.assertions.length
+               });
+
+               QUnit.reset();
+
+               config.current = undefined;
+       },
+
+       queue: function() {
+               var bad,
+                       test = this;
+
+               synchronize(function() {
+                       test.init();
+               });
+               function run() {
+                       // each of these can by async
+                       synchronize(function() {
+                               test.setup();
+                       });
+                       synchronize(function() {
+                               test.run();
+                       });
+                       synchronize(function() {
+                               test.teardown();
+                       });
+                       synchronize(function() {
+                               test.finish();
+                       });
+               }
+
+               // `bad` initialized at top of scope
+               // defer when previous test run passed, if storage is available
+               bad = QUnit.config.reorder && defined.sessionStorage &&
+                                               +sessionStorage.getItem( "qunit-test-" + this.module + "-" + this.testName );
+
+               if ( bad ) {
+                       run();
+               } else {
+                       synchronize( run, true );
+               }
+       }
+};
+
+// Root QUnit object.
+// `QUnit` initialized at top of scope
+QUnit = {
+
+       // call on start of module test to prepend name to all tests
+       module: function( name, testEnvironment ) {
+               config.currentModule = name;
+               config.currentModuleTestEnviroment = testEnvironment;
+       },
+
+       asyncTest: function( testName, expected, callback ) {
+               if ( arguments.length === 2 ) {
+                       callback = expected;
+                       expected = null;
+               }
+
+               QUnit.test( testName, expected, callback, true );
+       },
+
+       test: function( testName, expected, callback, async ) {
+               var test,
+                       name = "<span class='test-name'>" + escapeInnerText( testName ) + "</span>";
+
+               if ( arguments.length === 2 ) {
+                       callback = expected;
+                       expected = null;
+               }
+
+               if ( config.currentModule ) {
+                       name = "<span class='module-name'>" + config.currentModule + "</span>: " + name;
+               }
+
+               test = new Test({
+                       name: name,
+                       testName: testName,
+                       expected: expected,
+                       async: async,
+                       callback: callback,
+                       module: config.currentModule,
+                       moduleTestEnvironment: config.currentModuleTestEnviroment,
+                       stack: sourceFromStacktrace( 2 )
+               });
+
+               if ( !validTest( test ) ) {
+                       return;
+               }
+
+               test.queue();
+       },
+
+       // Specify the number of expected assertions to gurantee that failed test (no assertions are run at all) don't slip through.
+       expect: function( asserts ) {
+               config.current.expected = asserts;
+       },
+
+       start: function( count ) {
+               config.semaphore -= count || 1;
+               // don't start until equal number of stop-calls
+               if ( config.semaphore > 0 ) {
+                       return;
+               }
+               // ignore if start is called more often then stop
+               if ( config.semaphore < 0 ) {
+                       config.semaphore = 0;
+               }
+               // A slight delay, to avoid any current callbacks
+               if ( defined.setTimeout ) {
+                       window.setTimeout(function() {
+                               if ( config.semaphore > 0 ) {
+                                       return;
+                               }
+                               if ( config.timeout ) {
+                                       clearTimeout( config.timeout );
+                               }
+
+                               config.blocking = false;
+                               process( true );
+                       }, 13);
+               } else {
+                       config.blocking = false;
+                       process( true );
+               }
+       },
+
+       stop: function( count ) {
+               config.semaphore += count || 1;
+               config.blocking = true;
+
+               if ( config.testTimeout && defined.setTimeout ) {
+                       clearTimeout( config.timeout );
+                       config.timeout = window.setTimeout(function() {
+                               QUnit.ok( false, "Test timed out" );
+                               config.semaphore = 1;
+                               QUnit.start();
+                       }, config.testTimeout );
+               }
+       }
+};
+
+// Asssert helpers
+// All of these must call either QUnit.push() or manually do:
+// - runLoggingCallbacks( "log", .. );
+// - config.current.assertions.push({ .. });
+QUnit.assert = {
+       /**
+        * Asserts rough true-ish result.
+        * @name ok
+        * @function
+        * @example ok( "asdfasdf".length > 5, "There must be at least 5 chars" );
+        */
+       ok: function( result, msg, priority ) {
+               if ( !config.current ) {
+                       throw new Error( "ok() assertion outside test context, was " + sourceFromStacktrace(2) );
+               }
+               result = !!result;
+
+               var source,
+                       details = {
+                               result: result,
+                               message: msg,
+                               checktype : "ok"
+                       };
+
+               msg = escapeInnerText( msg || (result ? "okay" : "failed" ) );
+               msg = "<span class='test-message'>" + msg + "</span>";
+
+               if ( !result ) {
+                       source = sourceFromStacktrace( 2 );
+                       if ( source ) {
+                               details.source = source;
+                               msg += "<table><tr class='test-source'><th>Source: </th><td><pre>" + escapeInnerText( source ) + "</pre></td></tr></table>";
+                       }
+               }
+               runLoggingCallbacks( "log", QUnit, details );
+               config.current.assertions.push({
+                       result: result,
+                       message: msg,
+                       priority: priority
+               });
+       },
+
+       /**
+        * Assert that the first two arguments are equal, with an optional message.
+        * Prints out both actual and expected values.
+        * @name equal
+        * @function
+        * @example equal( format( "Received {0} bytes.", 2), "Received 2 bytes.", "format() replaces {0} with next argument" );
+        */
+       equal: function( actual, expected, message, priority ) {
+               QUnit.push( expected == actual, actual, expected, message , "equal" , priority );
+       },
+
+       /**
+        * @name notEqual
+        * @function
+        */
+       notEqual: function( actual, expected, message, priority ) {
+               QUnit.push( expected != actual, actual, expected, message , "not equal" , priority );
+       },
+
+       /**
+        * @name deepEqual
+        * @function
+        */
+       deepEqual: function( actual, expected, message, priority ) {
+               QUnit.push( QUnit.equiv(actual, expected), actual, expected, message, "deepEqual" , priority );
+       },
+
+       /**
+        * @name notDeepEqual
+        * @function
+        */
+       notDeepEqual: function( actual, expected, message, priority ) {
+               QUnit.push( !QUnit.equiv(actual, expected), actual, expected, message , "notDeepEqual" , priority );
+       },
+
+       /**
+        * @name strictEqual
+        * @function
+        */
+       strictEqual: function( actual, expected, message, priority ) {
+               QUnit.push( expected === actual, actual, expected, message , "strictEqual" , priority );
+       },
+
+       /**
+        * @name notStrictEqual
+        * @function
+        */
+       notStrictEqual: function( actual, expected, message, priority ) {
+               QUnit.push( expected !== actual, actual, expected, message , "notStrictEqual" , priority );
+       },
+
+       throws: function( block, expected, message ) {
+               var actual,
+                       ok = false;
+
+               // 'expected' is optional
+               if ( typeof expected === "string" ) {
+                       message = expected;
+                       expected = null;
+               }
+
+               config.current.ignoreGlobalErrors = true;
+               try {
+                       block.call( config.current.testEnvironment );
+               } catch (e) {
+                       actual = e;
+               }
+               config.current.ignoreGlobalErrors = false;
+
+               if ( actual ) {
+                       // we don't want to validate thrown error
+                       if ( !expected ) {
+                               ok = true;
+                       // expected is a regexp
+                       } else if ( QUnit.objectType( expected ) === "regexp" ) {
+                               ok = expected.test( actual );
+                       // expected is a constructor
+                       } else if ( actual instanceof expected ) {
+                               ok = true;
+                       // expected is a validation function which returns true is validation passed
+                       } else if ( expected.call( {}, actual ) === true ) {
+                               ok = true;
+                       }
+
+                       QUnit.push( ok, actual, null, message );
+               } else {
+                       QUnit.pushFailure( message, null, 'No exception was thrown.' );
+               }
+       }
+};
+
+/**
+ * @deprecate since 1.8.0
+ * Kept assertion helpers in root for backwards compatibility
+ */
+extend( QUnit, QUnit.assert );
+
+/**
+ * @deprecated since 1.9.0
+ * Kept global "raises()" for backwards compatibility
+ */
+QUnit.raises = QUnit.assert.throws;
+
+/**
+ * @deprecated since 1.0.0, replaced with error pushes since 1.3.0
+ * Kept to avoid TypeErrors for undefined methods.
+ */
+QUnit.equals = function() {
+       QUnit.push( false, false, false, "QUnit.equals has been deprecated since 2009 (e88049a0), use QUnit.equal instead" );
+};
+QUnit.same = function() {
+       QUnit.push( false, false, false, "QUnit.same has been deprecated since 2009 (e88049a0), use QUnit.deepEqual instead" );
+};
+
+// We want access to the constructor's prototype
+(function() {
+       function F() {}
+       F.prototype = QUnit;
+       QUnit = new F();
+       // Make F QUnit's constructor so that we can add to the prototype later
+       QUnit.constructor = F;
+}());
+
+/**
+ * Config object: Maintain internal state
+ * Later exposed as QUnit.config
+ * `config` initialized at top of scope
+ */
+config = {
+       // The queue of tests to run
+       queue: [],
+
+       // block until document ready
+       blocking: true,
+
+       // when enabled, show only failing tests
+       // gets persisted through sessionStorage and can be changed in UI via checkbox
+       hidepassed: false,
+
+       // by default, run previously failed tests first
+       // very useful in combination with "Hide passed tests" checked
+       reorder: true,
+
+       // by default, modify document.title when suite is done
+       altertitle: true,
+
+       // when enabled, all tests must call expect()
+       requireExpects: false,
+
+       // add checkboxes that are persisted in the query-string
+       // when enabled, the id is set to `true` as a `QUnit.config` property
+       urlConfig: [
+               {
+                       id: "noglobals",
+                       label: "Check for Globals",
+                       tooltip: "Enabling this will test if any test introduces new properties on the `window` object. Stored as query-strings."
+               },
+               {
+                       id: "notrycatch",
+                       label: "No try-catch",
+                       tooltip: "Enabling this will run tests outside of a try-catch block. Makes debugging exceptions in IE reasonable. Stored as query-strings."
+               }
+       ],
+
+       // logging callback queues
+       begin: [],
+       done: [],
+       log: [],
+       testStart: [],
+       testDone: [],
+       moduleStart: [],
+       moduleDone: []
+};
+
+// Initialize more QUnit.config and QUnit.urlParams
+(function() {
+       var i,
+               location = window.location || { search: "", protocol: "file:" },
+               params = location.search.slice( 1 ).split( "&" ),
+               length = params.length,
+               urlParams = {},
+               current;
+
+       if ( params[ 0 ] ) {
+               for ( i = 0; i < length; i++ ) {
+                       current = params[ i ].split( "=" );
+                       current[ 0 ] = decodeURIComponent( current[ 0 ] );
+                       // allow just a key to turn on a flag, e.g., test.html?noglobals
+                       current[ 1 ] = current[ 1 ] ? decodeURIComponent( current[ 1 ] ) : true;
+                       urlParams[ current[ 0 ] ] = current[ 1 ];
+               }
+       }
+
+       QUnit.urlParams = urlParams;
+
+       // String search anywhere in moduleName+testName
+       config.filter = urlParams.filter;
+
+       // Exact match of the module name
+       config.module = urlParams.module;
+
+       config.testNumber = parseInt( urlParams.testNumber, 10 ) || null;
+
+       // Figure out if we're running the tests from a server or not
+       QUnit.isLocal = location.protocol === "file:";
+}());
+
+// Export global variables, unless an 'exports' object exists,
+// in that case we assume we're in CommonJS (dealt with on the bottom of the script)
+if ( typeof exports === "undefined" ) {
+       extend( window, QUnit );
+
+       // Expose QUnit object
+       window.QUnit = QUnit;
+}
+
+// Extend QUnit object,
+// these after set here because they should not be exposed as global functions
+extend( QUnit, {
+       config: config,
+
+       // Initialize the configuration options
+       init: function() {
+               extend( config, {
+                       stats: { all: 0, bad: 0 },
+                       moduleStats: { all: 0, bad: 0 },
+                       started: +new Date(),
+                       updateRate: 1000,
+                       blocking: false,
+                       autostart: true,
+                       autorun: false,
+                       filter: "",
+                       queue: [],
+                       semaphore: 0
+               });
+
+               var tests, banner, result,
+                       qunit = id( "qunit" );
+
+               if ( qunit ) {
+                       qunit.innerHTML =
+                               "<h1 id='qunit-header'>" + escapeInnerText( document.title ) + "</h1>" +
+                               "<h2 id='qunit-banner'></h2>" +
+                               "<div id='qunit-testrunner-toolbar'></div>" +
+                               "<h2 id='qunit-userAgent'></h2>" +
+                               "<ol id='qunit-tests'></ol>";
+               }
+
+               tests = id( "qunit-tests" );
+               banner = id( "qunit-banner" );
+               result = id( "qunit-testresult" );
+
+               if ( tests ) {
+                       tests.innerHTML = "";
+               }
+
+               if ( banner ) {
+                       banner.className = "";
+               }
+
+               if ( result ) {
+                       result.parentNode.removeChild( result );
+               }
+
+               if ( tests ) {
+                       result = document.createElement( "p" );
+                       result.id = "qunit-testresult";
+                       result.className = "result";
+                       tests.parentNode.insertBefore( result, tests );
+                       result.innerHTML = "Running...<br/>&nbsp;";
+               }
+       },
+
+       // Resets the test setup. Useful for tests that modify the DOM.
+       // If jQuery is available, uses jQuery's html(), otherwise just innerHTML.
+       reset: function() {
+               var fixture;
+
+               if ( window.jQuery ) {
+                       jQuery( "#qunit-fixture" ).html( config.fixture );
+               } else {
+                       fixture = id( "qunit-fixture" );
+                       if ( fixture ) {
+                               fixture.innerHTML = config.fixture;
+                       }
+               }
+       },
+
+       // Trigger an event on an element.
+       // @example triggerEvent( document.body, "click" );
+       triggerEvent: function( elem, type, event ) {
+               if ( document.createEvent ) {
+                       event = document.createEvent( "MouseEvents" );
+                       event.initMouseEvent(type, true, true, elem.ownerDocument.defaultView,
+                               0, 0, 0, 0, 0, false, false, false, false, 0, null);
+
+                       elem.dispatchEvent( event );
+               } else if ( elem.fireEvent ) {
+                       elem.fireEvent( "on" + type );
+               }
+       },
+
+       // Safe object type checking
+       is: function( type, obj ) {
+               return QUnit.objectType( obj ) == type;
+       },
+
+       objectType: function( obj ) {
+               if ( typeof obj === "undefined" ) {
+                               return "undefined";
+               // consider: typeof null === object
+               }
+               if ( obj === null ) {
+                               return "null";
+               }
+
+               var type = toString.call( obj ).match(/^\[object\s(.*)\]$/)[1] || "";
+
+               switch ( type ) {
+                       case "Number":
+                               if ( isNaN(obj) ) {
+                                       return "nan";
+                               }
+                               return "number";
+                       case "String":
+                       case "Boolean":
+                       case "Array":
+                       case "Date":
+                       case "RegExp":
+                       case "Function":
+                               return type.toLowerCase();
+               }
+               if ( typeof obj === "object" ) {
+                       return "object";
+               }
+               return undefined;
+       },
+
+       push: function( result, actual, expected, message, checktype, priority ) {
+               if ( !config.current ) {
+                       throw new Error( "assertion outside test context, was " + sourceFromStacktrace() );
+               }
+
+               var output, source,
+                       details = {
+                               result: result,
+                               message: message,
+                               actual: actual,
+                               expected: expected,
+                               checktype: checktype,
+                               priority: priority
+                       };
+
+               message = escapeInnerText( message ) || ( result ? "okay" : "failed" );
+               message = "<span class='test-message'>" + message + "</span>";
+               output = message;
+
+               if ( !result ) {
+                       expected = escapeInnerText( QUnit.jsDump.parse(expected) );
+                       actual = escapeInnerText( QUnit.jsDump.parse(actual) );
+                       output += "<table><tr class='test-expected'><th>Expected: </th><td><pre>" + expected + "</pre></td></tr>";
+
+                       if ( actual != expected ) {
+                               output += "<tr class='test-actual'><th>Result: </th><td><pre>" + actual + "</pre></td></tr>";
+                               output += "<tr class='test-diff'><th>Diff: </th><td><pre>" + QUnit.diff( expected, actual ) + "</pre></td></tr>";
+                       }
+
+                       source = sourceFromStacktrace();
+
+                       if ( source ) {
+                               details.source = source;
+                               output += "<tr class='test-source'><th>Source: </th><td><pre>" + escapeInnerText( source ) + "</pre></td></tr>";
+                       }
+
+                       output += "</table>";
+               }
+
+               runLoggingCallbacks( "log", QUnit, details );
+
+               config.current.assertions.push({
+                       result: !!result,
+                       message: output
+               });
+       },
+
+       pushFailure: function( message, source, actual ) {
+               if ( !config.current ) {
+                       throw new Error( "pushFailure() assertion outside test context, was " + sourceFromStacktrace(2) );
+               }
+
+               var output,
+                       details = {
+                               result: false,
+                               message: message
+                       };
+
+               message = escapeInnerText( message ) || "error";
+               message = "<span class='test-message'>" + message + "</span>";
+               output = message;
+
+               output += "<table>";
+
+               if ( actual ) {
+                       output += "<tr class='test-actual'><th>Result: </th><td><pre>" + escapeInnerText( actual ) + "</pre></td></tr>";
+               }
+
+               if ( source ) {
+                       details.source = source;
+                       output += "<tr class='test-source'><th>Source: </th><td><pre>" + escapeInnerText( source ) + "</pre></td></tr>";
+               }
+
+               output += "</table>";
+
+               runLoggingCallbacks( "log", QUnit, details );
+
+               config.current.assertions.push({
+                       result: false,
+                       message: output
+               });
+       },
+
+       url: function( params ) {
+               params = extend( extend( {}, QUnit.urlParams ), params );
+               var key,
+                       querystring = "?";
+
+               for ( key in params ) {
+                       if ( !hasOwn.call( params, key ) ) {
+                               continue;
+                       }
+                       querystring += encodeURIComponent( key ) + "=" +
+                               encodeURIComponent( params[ key ] ) + "&";
+               }
+               return window.location.pathname + querystring.slice( 0, -1 );
+       },
+
+       extend: extend,
+       id: id,
+       addEvent: addEvent
+       // load, equiv, jsDump, diff: Attached later
+});
+
+/**
+ * @deprecated: Created for backwards compatibility with test runner that set the hook function
+ * into QUnit.{hook}, instead of invoking it and passing the hook function.
+ * QUnit.constructor is set to the empty F() above so that we can add to it's prototype here.
+ * Doing this allows us to tell if the following methods have been overwritten on the actual
+ * QUnit object.
+ */
+extend( QUnit.constructor.prototype, {
+
+       // Logging callbacks; all receive a single argument with the listed properties
+       // run test/logs.html for any related changes
+       begin: registerLoggingCallback( "begin" ),
+
+       // done: { failed, passed, total, runtime }
+       done: registerLoggingCallback( "done" ),
+
+       // log: { result, actual, expected, message }
+       log: registerLoggingCallback( "log" ),
+
+       // testStart: { name }
+       testStart: registerLoggingCallback( "testStart" ),
+
+       // testDone: { name, failed, passed, total }
+       testDone: registerLoggingCallback( "testDone" ),
+
+       // moduleStart: { name }
+       moduleStart: registerLoggingCallback( "moduleStart" ),
+
+       // moduleDone: { name, failed, passed, total }
+       moduleDone: registerLoggingCallback( "moduleDone" )
+});
+
+if ( typeof document === "undefined" || document.readyState === "complete" ) {
+       config.autorun = true;
+}
+
+QUnit.load = function() {
+       runLoggingCallbacks( "begin", QUnit, {} );
+
+       // Initialize the config, saving the execution queue
+       var banner, filter, i, label, len, main, ol, toolbar, userAgent, val, urlConfigCheckboxes,
+               urlConfigHtml = "",
+               oldconfig = extend( {}, config );
+
+       QUnit.init();
+       extend(config, oldconfig);
+
+       config.blocking = false;
+
+       len = config.urlConfig.length;
+
+       for ( i = 0; i < len; i++ ) {
+               val = config.urlConfig[i];
+               if ( typeof val === "string" ) {
+                       val = {
+                               id: val,
+                               label: val,
+                               tooltip: "[no tooltip available]"
+                       };
+               }
+               config[ val.id ] = QUnit.urlParams[ val.id ];
+               urlConfigHtml += "<input id='qunit-urlconfig-" + val.id + "' name='" + val.id + "' type='checkbox'" + ( config[ val.id ] ? " checked='checked'" : "" ) + " title='" + val.tooltip + "'><label for='qunit-urlconfig-" + val.id + "' title='" + val.tooltip + "'>" + val.label + "</label>";
+       }
+
+       // `userAgent` initialized at top of scope
+       userAgent = id( "qunit-userAgent" );
+       if ( userAgent ) {
+               userAgent.innerHTML = navigator.userAgent;
+       }
+
+       // `banner` initialized at top of scope
+       banner = id( "qunit-header" );
+       if ( banner ) {
+               banner.innerHTML = "<a href='" + QUnit.url({ filter: undefined, module: undefined, testNumber: undefined }) + "'>" + banner.innerHTML + "</a> ";
+       }
+
+       // `toolbar` initialized at top of scope
+       toolbar = id( "qunit-testrunner-toolbar" );
+       if ( toolbar ) {
+               // `filter` initialized at top of scope
+               filter = document.createElement( "input" );
+               filter.type = "checkbox";
+               filter.id = "qunit-filter-pass";
+
+               addEvent( filter, "click", function() {
+                       var tmp,
+                               ol = document.getElementById( "qunit-tests" );
+
+                       if ( filter.checked ) {
+                               ol.className = ol.className + " hidepass";
+                       } else {
+                               tmp = " " + ol.className.replace( /[\n\t\r]/g, " " ) + " ";
+                               ol.className = tmp.replace( / hidepass /, " " );
+                       }
+                       if ( defined.sessionStorage ) {
+                               if (filter.checked) {
+                                       sessionStorage.setItem( "qunit-filter-passed-tests", "true" );
+                               } else {
+                                       sessionStorage.removeItem( "qunit-filter-passed-tests" );
+                               }
+                       }
+               });
+
+               if ( config.hidepassed || defined.sessionStorage && sessionStorage.getItem( "qunit-filter-passed-tests" ) ) {
+                       filter.checked = true;
+                       // `ol` initialized at top of scope
+                       ol = document.getElementById( "qunit-tests" );
+                       ol.className = ol.className + " hidepass";
+               }
+               toolbar.appendChild( filter );
+
+               // `label` initialized at top of scope
+               label = document.createElement( "label" );
+               label.setAttribute( "for", "qunit-filter-pass" );
+               label.setAttribute( "title", "Only show tests and assertons that fail. Stored in sessionStorage." );
+               label.innerHTML = "Hide passed tests";
+               toolbar.appendChild( label );
+
+               urlConfigCheckboxes = document.createElement( 'span' );
+               urlConfigCheckboxes.innerHTML = urlConfigHtml;
+               addEvent( urlConfigCheckboxes, "change", function( event ) {
+                       var params = {};
+                       params[ event.target.name ] = event.target.checked ? true : undefined;
+                       window.location = QUnit.url( params );
+               });
+               toolbar.appendChild( urlConfigCheckboxes );
+       }
+
+       // `main` initialized at top of scope
+       main = id( "qunit-fixture" );
+       if ( main ) {
+               config.fixture = main.innerHTML;
+       }
+
+       if ( config.autostart ) {
+               QUnit.start();
+       }
+};
+
+addEvent( window, "load", QUnit.load );
+
+// `onErrorFnPrev` initialized at top of scope
+// Preserve other handlers
+onErrorFnPrev = window.onerror;
+
+// Cover uncaught exceptions
+// Returning true will surpress the default browser handler,
+// returning false will let it run.
+window.onerror = function ( error, filePath, linerNr ) {
+       var ret = false;
+       if ( onErrorFnPrev ) {
+               ret = onErrorFnPrev( error, filePath, linerNr );
+       }
+
+       // Treat return value as window.onerror itself does,
+       // Only do our handling if not surpressed.
+       if ( ret !== true ) {
+               if ( QUnit.config.current ) {
+                       if ( QUnit.config.current.ignoreGlobalErrors ) {
+                               return true;
+                       }
+                       QUnit.pushFailure( error, filePath + ":" + linerNr );
+               } else {
+                       QUnit.test( "global failure", function() {
+                               QUnit.pushFailure( error, filePath + ":" + linerNr );
+                       });
+               }
+               return false;
+       }
+
+       return ret;
+};
+
+function done() {
+       config.autorun = true;
+
+       // Log the last module results
+       if ( config.currentModule ) {
+               runLoggingCallbacks( "moduleDone", QUnit, {
+                       name: config.currentModule,
+                       failed: config.moduleStats.bad,
+                       passed: config.moduleStats.all - config.moduleStats.bad,
+                       total: config.moduleStats.all
+               });
+       }
+
+       var i, key,
+               banner = id( "qunit-banner" ),
+               tests = id( "qunit-tests" ),
+               runtime = +new Date() - config.started,
+               passed = config.stats.all - config.stats.bad,
+               html = [
+                       "Tests completed in ",
+                       runtime,
+                       " milliseconds.<br/>",
+                       "<span class='passed'>",
+                       passed,
+                       "</span> tests of <span class='total'>",
+                       config.stats.all,
+                       "</span> passed, <span class='failed'>",
+                       config.stats.bad,
+                       "</span> failed."
+               ].join( "" );
+
+       if ( banner ) {
+               banner.className = ( config.stats.bad ? "qunit-fail" : "qunit-pass" );
+       }
+
+       if ( tests ) {
+               id( "qunit-testresult" ).innerHTML = html;
+       }
+
+       if ( config.altertitle && typeof document !== "undefined" && document.title ) {
+               // show ✖ for good, ✔ for bad suite result in title
+               // use escape sequences in case file gets loaded with non-utf-8-charset
+               document.title = [
+                       ( config.stats.bad ? "\u2716" : "\u2714" ),
+                       document.title.replace( /^[\u2714\u2716] /i, "" )
+               ].join( " " );
+       }
+
+       // clear own sessionStorage items if all tests passed
+       if ( config.reorder && defined.sessionStorage && config.stats.bad === 0 ) {
+               // `key` & `i` initialized at top of scope
+               for ( i = 0; i < sessionStorage.length; i++ ) {
+                       key = sessionStorage.key( i++ );
+                       if ( key.indexOf( "qunit-test-" ) === 0 ) {
+                               sessionStorage.removeItem( key );
+                       }
+               }
+       }
+
+       runLoggingCallbacks( "done", QUnit, {
+               failed: config.stats.bad,
+               passed: passed,
+               total: config.stats.all,
+               runtime: runtime
+       });
+}
+
+/** @return Boolean: true if this test should be ran */
+function validTest( test ) {
+       var include,
+               filter = config.filter && config.filter.toLowerCase(),
+               module = config.module && config.module.toLowerCase(),
+               fullName = (test.module + ": " + test.testName).toLowerCase();
+
+       if ( config.testNumber ) {
+               return test.testNumber === config.testNumber;
+       }
+
+       if ( module && ( !test.module || test.module.toLowerCase() !== module ) ) {
+               return false;
+       }
+
+       if ( !filter ) {
+               return true;
+       }
+
+       include = filter.charAt( 0 ) !== "!";
+       if ( !include ) {
+               filter = filter.slice( 1 );
+       }
+
+       // If the filter matches, we need to honour include
+       if ( fullName.indexOf( filter ) !== -1 ) {
+               return include;
+       }
+
+       // Otherwise, do the opposite
+       return !include;
+}
+
+// so far supports only Firefox, Chrome and Opera (buggy), Safari (for real exceptions)
+// Later Safari and IE10 are supposed to support error.stack as well
+// See also https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/Stack
+function extractStacktrace( e, offset ) {
+       offset = offset === undefined ? 3 : offset;
+
+       var stack, include, i, regex;
+
+       if ( e.stacktrace ) {
+               // Opera
+               return e.stacktrace.split( "\n" )[ offset + 3 ];
+       } else if ( e.stack ) {
+               // Firefox, Chrome
+               stack = e.stack.split( "\n" );
+               if (/^error$/i.test( stack[0] ) ) {
+                       stack.shift();
+               }
+               if ( fileName ) {
+                       include = [];
+                       for ( i = offset; i < stack.length; i++ ) {
+                               if ( stack[ i ].indexOf( fileName ) != -1 ) {
+                                       break;
+                               }
+                               include.push( stack[ i ] );
+                       }
+                       if ( include.length ) {
+                               return include.join( "\n" );
+                       }
+               }
+               return stack[ offset ];
+       } else if ( e.sourceURL ) {
+               // Safari, PhantomJS
+               // hopefully one day Safari provides actual stacktraces
+               // exclude useless self-reference for generated Error objects
+               if ( /qunit.js$/.test( e.sourceURL ) ) {
+                       return;
+               }
+               // for actual exceptions, this is useful
+               return e.sourceURL + ":" + e.line;
+       }
+}
+function sourceFromStacktrace( offset ) {
+       try {
+               throw new Error();
+       } catch ( e ) {
+               return extractStacktrace( e, offset );
+       }
+}
+
+function escapeInnerText( s ) {
+       if ( !s ) {
+               return "";
+       }
+       s = s + "";
+       return s.replace( /[\&<>]/g, function( s ) {
+               switch( s ) {
+                       case "&": return "&amp;";
+                       case "<": return "&lt;";
+                       case ">": return "&gt;";
+                       default: return s;
+               }
+       });
+}
+
+function synchronize( callback, last ) {
+       config.queue.push( callback );
+
+       if ( config.autorun && !config.blocking ) {
+               process( last );
+       }
+}
+
+function process( last ) {
+       function next() {
+               process( last );
+       }
+       var start = new Date().getTime();
+       config.depth = config.depth ? config.depth + 1 : 1;
+
+       while ( config.queue.length && !config.blocking ) {
+               if ( !defined.setTimeout || config.updateRate <= 0 || ( ( new Date().getTime() - start ) < config.updateRate ) ) {
+                       config.queue.shift()();
+               } else {
+                       window.setTimeout( next, 13 );
+                       break;
+               }
+       }
+       config.depth--;
+       if ( last && !config.blocking && !config.queue.length && config.depth === 0 ) {
+               done();
+       }
+}
+
+function saveGlobal() {
+       config.pollution = [];
+
+       if ( config.noglobals ) {
+               for ( var key in window ) {
+                       // in Opera sometimes DOM element ids show up here, ignore them
+                       if ( !hasOwn.call( window, key ) || /^qunit-test-output/.test( key ) ) {
+                               continue;
+                       }
+                       config.pollution.push( key );
+               }
+       }
+}
+
+function checkPollution( name ) {
+       var newGlobals,
+               deletedGlobals,
+               old = config.pollution;
+
+       saveGlobal();
+
+       newGlobals = diff( config.pollution, old );
+       if ( newGlobals.length > 0 ) {
+               QUnit.pushFailure( "Introduced global variable(s): " + newGlobals.join(", ") );
+       }
+
+       deletedGlobals = diff( old, config.pollution );
+       if ( deletedGlobals.length > 0 ) {
+               QUnit.pushFailure( "Deleted global variable(s): " + deletedGlobals.join(", ") );
+       }
+}
+
+// returns a new Array with the elements that are in a but not in b
+function diff( a, b ) {
+       var i, j,
+               result = a.slice();
+
+       for ( i = 0; i < result.length; i++ ) {
+               for ( j = 0; j < b.length; j++ ) {
+                       if ( result[i] === b[j] ) {
+                               result.splice( i, 1 );
+                               i--;
+                               break;
+                       }
+               }
+       }
+       return result;
+}
+
+function extend( a, b ) {
+       for ( var prop in b ) {
+               if ( b[ prop ] === undefined ) {
+                       delete a[ prop ];
+
+               // Avoid "Member not found" error in IE8 caused by setting window.constructor
+               } else if ( prop !== "constructor" || a !== window ) {
+                       a[ prop ] = b[ prop ];
+               }
+       }
+
+       return a;
+}
+
+function addEvent( elem, type, fn ) {
+       if ( elem.addEventListener ) {
+               elem.addEventListener( type, fn, false );
+       } else if ( elem.attachEvent ) {
+               elem.attachEvent( "on" + type, fn );
+       } else {
+               fn();
+       }
+}
+
+function id( name ) {
+       return !!( typeof document !== "undefined" && document && document.getElementById ) &&
+               document.getElementById( name );
+}
+
+function registerLoggingCallback( key ) {
+       return function( callback ) {
+               config[key].push( callback );
+       };
+}
+
+// Supports deprecated method of completely overwriting logging callbacks
+function runLoggingCallbacks( key, scope, args ) {
+       var i, callbacks;
+       if ( QUnit.hasOwnProperty( key ) ) {
+               QUnit[ key ].call(scope, args );
+       } else {
+               callbacks = config[ key ];
+               for ( i = 0; i < callbacks.length; i++ ) {
+                       callbacks[ i ].call( scope, args );
+               }
+       }
+}
+
+// Test for equality any JavaScript type.
+// Author: Philippe Rathé <prathe@gmail.com>
+QUnit.equiv = (function() {
+
+       // Call the o related callback with the given arguments.
+       function bindCallbacks( o, callbacks, args ) {
+               var prop = QUnit.objectType( o );
+               if ( prop ) {
+                       if ( QUnit.objectType( callbacks[ prop ] ) === "function" ) {
+                               return callbacks[ prop ].apply( callbacks, args );
+                       } else {
+                               return callbacks[ prop ]; // or undefined
+                       }
+               }
+       }
+
+       // the real equiv function
+       var innerEquiv,
+               // stack to decide between skip/abort functions
+               callers = [],
+               // stack to avoiding loops from circular referencing
+               parents = [],
+
+               getProto = Object.getPrototypeOf || function ( obj ) {
+                       return obj.__proto__;
+               },
+               callbacks = (function () {
+
+                       // for string, boolean, number and null
+                       function useStrictEquality( b, a ) {
+                               if ( b instanceof a.constructor || a instanceof b.constructor ) {
+                                       // to catch short annotaion VS 'new' annotation of a
+                                       // declaration
+                                       // e.g. var i = 1;
+                                       // var j = new Number(1);
+                                       return a == b;
+                               } else {
+                                       return a === b;
+                               }
+                       }
+
+                       return {
+                               "string": useStrictEquality,
+                               "boolean": useStrictEquality,
+                               "number": useStrictEquality,
+                               "null": useStrictEquality,
+                               "undefined": useStrictEquality,
+
+                               "nan": function( b ) {
+                                       return isNaN( b );
+                               },
+
+                               "date": function( b, a ) {
+                                       return QUnit.objectType( b ) === "date" && a.valueOf() === b.valueOf();
+                               },
+
+                               "regexp": function( b, a ) {
+                                       return QUnit.objectType( b ) === "regexp" &&
+                                               // the regex itself
+                                               a.source === b.source &&
+                                               // and its modifers
+                                               a.global === b.global &&
+                                               // (gmi) ...
+                                               a.ignoreCase === b.ignoreCase &&
+                                               a.multiline === b.multiline;
+                               },
+
+                               // - skip when the property is a method of an instance (OOP)
+                               // - abort otherwise,
+                               // initial === would have catch identical references anyway
+                               "function": function() {
+                                       var caller = callers[callers.length - 1];
+                                       return caller !== Object && typeof caller !== "undefined";
+                               },
+
+                               "array": function( b, a ) {
+                                       var i, j, len, loop;
+
+                                       // b could be an object literal here
+                                       if ( QUnit.objectType( b ) !== "array" ) {
+                                               return false;
+                                       }
+
+                                       len = a.length;
+                                       if ( len !== b.length ) {
+                                               // safe and faster
+                                               return false;
+                                       }
+
+                                       // track reference to avoid circular references
+                                       parents.push( a );
+                                       for ( i = 0; i < len; i++ ) {
+                                               loop = false;
+                                               for ( j = 0; j < parents.length; j++ ) {
+                                                       if ( parents[j] === a[i] ) {
+                                                               loop = true;// dont rewalk array
+                                                       }
+                                               }
+                                               if ( !loop && !innerEquiv(a[i], b[i]) ) {
+                                                       parents.pop();
+                                                       return false;
+                                               }
+                                       }
+                                       parents.pop();
+                                       return true;
+                               },
+
+                               "object": function( b, a ) {
+                                       var i, j, loop,
+                                               // Default to true
+                                               eq = true,
+                                               aProperties = [],
+                                               bProperties = [];
+
+                                       // comparing constructors is more strict than using
+                                       // instanceof
+                                       if ( a.constructor !== b.constructor ) {
+                                               // Allow objects with no prototype to be equivalent to
+                                               // objects with Object as their constructor.
+                                               if ( !(( getProto(a) === null && getProto(b) === Object.prototype ) ||
+                                                       ( getProto(b) === null && getProto(a) === Object.prototype ) ) ) {
+                                                               return false;
+                                               }
+                                       }
+
+                                       // stack constructor before traversing properties
+                                       callers.push( a.constructor );
+                                       // track reference to avoid circular references
+                                       parents.push( a );
+
+                                       for ( i in a ) { // be strict: don't ensures hasOwnProperty
+                                                                       // and go deep
+                                               loop = false;
+                                               for ( j = 0; j < parents.length; j++ ) {
+                                                       if ( parents[j] === a[i] ) {
+                                                               // don't go down the same path twice
+                                                               loop = true;
+                                                       }
+                                               }
+                                               aProperties.push(i); // collect a's properties
+
+                                               if (!loop && !innerEquiv( a[i], b[i] ) ) {
+                                                       eq = false;
+                                                       break;
+                                               }
+                                       }
+
+                                       callers.pop(); // unstack, we are done
+                                       parents.pop();
+
+                                       for ( i in b ) {
+                                               bProperties.push( i ); // collect b's properties
+                                       }
+
+                                       // Ensures identical properties name
+                                       return eq && innerEquiv( aProperties.sort(), bProperties.sort() );
+                               }
+                       };
+               }());
+
+       innerEquiv = function() { // can take multiple arguments
+               var args = [].slice.apply( arguments );
+               if ( args.length < 2 ) {
+                       return true; // end transition
+               }
+
+               return (function( a, b ) {
+                       if ( a === b ) {
+                               return true; // catch the most you can
+                       } else if ( a === null || b === null || typeof a === "undefined" ||
+                                       typeof b === "undefined" ||
+                                       QUnit.objectType(a) !== QUnit.objectType(b) ) {
+                               return false; // don't lose time with error prone cases
+                       } else {
+                               return bindCallbacks(a, callbacks, [ b, a ]);
+                       }
+
+                       // apply transition with (1..n) arguments
+               }( args[0], args[1] ) && arguments.callee.apply( this, args.splice(1, args.length - 1 )) );
+       };
+
+       return innerEquiv;
+}());
+
+/**
+ * jsDump Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com |
+ * http://flesler.blogspot.com Licensed under BSD
+ * (http://www.opensource.org/licenses/bsd-license.php) Date: 5/15/2008
+ *
+ * @projectDescription Advanced and extensible data dumping for Javascript.
+ * @version 1.0.0
+ * @author Ariel Flesler
+ * @link {http://flesler.blogspot.com/2008/05/jsdump-pretty-dump-of-any-javascript.html}
+ */
+QUnit.jsDump = (function() {
+       function quote( str ) {
+               return '"' + str.toString().replace( /"/g, '\\"' ) + '"';
+       }
+       function literal( o ) {
+               return o + "";
+       }
+       function join( pre, arr, post ) {
+               var s = jsDump.separator(),
+                       base = jsDump.indent(),
+                       inner = jsDump.indent(1);
+               if ( arr.join ) {
+                       arr = arr.join( "," + s + inner );
+               }
+               if ( !arr ) {
+                       return pre + post;
+               }
+               return [ pre, inner + arr, base + post ].join(s);
+       }
+       function array( arr, stack ) {
+               var i = arr.length, ret = new Array(i);
+               this.up();
+               while ( i-- ) {
+                       ret[i] = this.parse( arr[i] , undefined , stack);
+               }
+               this.down();
+               return join( "[", ret, "]" );
+       }
+
+       var reName = /^function (\w+)/,
+               jsDump = {
+                       parse: function( obj, type, stack ) { //type is used mostly internally, you can fix a (custom)type in advance
+                               stack = stack || [ ];
+                               var inStack, res,
+                                       parser = this.parsers[ type || this.typeOf(obj) ];
+
+                               type = typeof parser;
+                               inStack = inArray( obj, stack );
+
+                               if ( inStack != -1 ) {
+                                       return "recursion(" + (inStack - stack.length) + ")";
+                               }
+                               //else
+                               if ( type == "function" )  {
+                                       stack.push( obj );
+                                       res = parser.call( this, obj, stack );
+                                       stack.pop();
+                                       return res;
+                               }
+                               // else
+                               return ( type == "string" ) ? parser : this.parsers.error;
+                       },
+                       typeOf: function( obj ) {
+                               var type;
+                               if ( obj === null ) {
+                                       type = "null";
+                               } else if ( typeof obj === "undefined" ) {
+                                       type = "undefined";
+                               } else if ( QUnit.is( "regexp", obj) ) {
+                                       type = "regexp";
+                               } else if ( QUnit.is( "date", obj) ) {
+                                       type = "date";
+                               } else if ( QUnit.is( "function", obj) ) {
+                                       type = "function";
+                               } else if ( typeof obj.setInterval !== undefined && typeof obj.document !== "undefined" && typeof obj.nodeType === "undefined" ) {
+                                       type = "window";
+                               } else if ( obj.nodeType === 9 ) {
+                                       type = "document";
+                               } else if ( obj.nodeType ) {
+                                       type = "node";
+                               } else if (
+                                       // native arrays
+                                       toString.call( obj ) === "[object Array]" ||
+                                       // NodeList objects
+                                       ( typeof obj.length === "number" && typeof obj.item !== "undefined" && ( obj.length ? obj.item(0) === obj[0] : ( obj.item( 0 ) === null && typeof obj[0] === "undefined" ) ) )
+                               ) {
+                                       type = "array";
+                               } else {
+                                       type = typeof obj;
+                               }
+                               return type;
+                       },
+                       separator: function() {
+                               return this.multiline ? this.HTML ? "<br />" : "\n" : this.HTML ? "&nbsp;" : " ";
+                       },
+                       indent: function( extra ) {// extra can be a number, shortcut for increasing-calling-decreasing
+                               if ( !this.multiline ) {
+                                       return "";
+                               }
+                               var chr = this.indentChar;
+                               if ( this.HTML ) {
+                                       chr = chr.replace( /\t/g, "   " ).replace( / /g, "&nbsp;" );
+                               }
+                               return new Array( this._depth_ + (extra||0) ).join(chr);
+                       },
+                       up: function( a ) {
+                               this._depth_ += a || 1;
+                       },
+                       down: function( a ) {
+                               this._depth_ -= a || 1;
+                       },
+                       setParser: function( name, parser ) {
+                               this.parsers[name] = parser;
+                       },
+                       // The next 3 are exposed so you can use them
+                       quote: quote,
+                       literal: literal,
+                       join: join,
+                       //
+                       _depth_: 1,
+                       // This is the list of parsers, to modify them, use jsDump.setParser
+                       parsers: {
+                               window: "[Window]",
+                               document: "[Document]",
+                               error: "[ERROR]", //when no parser is found, shouldn"t happen
+                               unknown: "[Unknown]",
+                               "null": "null",
+                               "undefined": "undefined",
+                               "function": function( fn ) {
+                                       var ret = "function",
+                                               name = "name" in fn ? fn.name : (reName.exec(fn) || [])[1];//functions never have name in IE
+
+                                       if ( name ) {
+                                               ret += " " + name;
+                                       }
+                                       ret += "( ";
+
+                                       ret = [ ret, QUnit.jsDump.parse( fn, "functionArgs" ), "){" ].join( "" );
+                                       return join( ret, QUnit.jsDump.parse(fn,"functionCode" ), "}" );
+                               },
+                               array: array,
+                               nodelist: array,
+                               "arguments": array,
+                               object: function( map, stack ) {
+                                       var ret = [ ], keys, key, val, i;
+                                       QUnit.jsDump.up();
+                                       if ( Object.keys ) {
+                                               keys = Object.keys( map );
+                                       } else {
+                                               keys = [];
+                                               for ( key in map ) {
+                                                       keys.push( key );
+                                               }
+                                       }
+                                       keys.sort();
+                                       for ( i = 0; i < keys.length; i++ ) {
+                                               key = keys[ i ];
+                                               val = map[ key ];
+                                               ret.push( QUnit.jsDump.parse( key, "key" ) + ": " + QUnit.jsDump.parse( val, undefined, stack ) );
+                                       }
+                                       QUnit.jsDump.down();
+                                       return join( "{", ret, "}" );
+                               },
+                               node: function( node ) {
+                                       var a, val,
+                                               open = QUnit.jsDump.HTML ? "&lt;" : "<",
+                                               close = QUnit.jsDump.HTML ? "&gt;" : ">",
+                                               tag = node.nodeName.toLowerCase(),
+                                               ret = open + tag;
+
+                                       for ( a in QUnit.jsDump.DOMAttrs ) {
+                                               val = node[ QUnit.jsDump.DOMAttrs[a] ];
+                                               if ( val ) {
+                                                       ret += " " + a + "=" + QUnit.jsDump.parse( val, "attribute" );
+                                               }
+                                       }
+                                       return ret + close + open + "/" + tag + close;
+                               },
+                               functionArgs: function( fn ) {//function calls it internally, it's the arguments part of the function
+                                       var args,
+                                               l = fn.length;
+
+                                       if ( !l ) {
+                                               return "";
+                                       }
+
+                                       args = new Array(l);
+                                       while ( l-- ) {
+                                               args[l] = String.fromCharCode(97+l);//97 is 'a'
+                                       }
+                                       return " " + args.join( ", " ) + " ";
+                               },
+                               key: quote, //object calls it internally, the key part of an item in a map
+                               functionCode: "[code]", //function calls it internally, it's the content of the function
+                               attribute: quote, //node calls it internally, it's an html attribute value
+                               string: quote,
+                               date: quote,
+                               regexp: literal, //regex
+                               number: literal,
+                               "boolean": literal
+                       },
+                       DOMAttrs: {
+                               //attributes to dump from nodes, name=>realName
+                               id: "id",
+                               name: "name",
+                               "class": "className"
+                       },
+                       HTML: false,//if true, entities are escaped ( <, >, \t, space and \n )
+                       indentChar: "  ",//indentation unit
+                       multiline: true //if true, items in a collection, are separated by a \n, else just a space.
+               };
+
+       return jsDump;
+}());
+
+// from Sizzle.js
+function getText( elems ) {
+       var i, elem,
+               ret = "";
+
+       for ( i = 0; elems[i]; i++ ) {
+               elem = elems[i];
+
+               // Get the text from text nodes and CDATA nodes
+               if ( elem.nodeType === 3 || elem.nodeType === 4 ) {
+                       ret += elem.nodeValue;
+
+               // Traverse everything else, except comment nodes
+               } else if ( elem.nodeType !== 8 ) {
+                       ret += getText( elem.childNodes );
+               }
+       }
+
+       return ret;
+}
+
+// from jquery.js
+function inArray( elem, array ) {
+       if ( array.indexOf ) {
+               return array.indexOf( elem );
+       }
+
+       for ( var i = 0, length = array.length; i < length; i++ ) {
+               if ( array[ i ] === elem ) {
+                       return i;
+               }
+       }
+
+       return -1;
+}
+
+/*
+ * Javascript Diff Algorithm
+ *  By John Resig (http://ejohn.org/)
+ *  Modified by Chu Alan "sprite"
+ *
+ * Released under the MIT license.
+ *
+ * More Info:
+ *  http://ejohn.org/projects/javascript-diff-algorithm/
+ *
+ * Usage: QUnit.diff(expected, actual)
+ *
+ * QUnit.diff( "the quick brown fox jumped over", "the quick fox jumps over" ) == "the  quick <del>brown </del> fox <del>jumped </del><ins>jumps </ins> over"
+ */
+QUnit.diff = (function() {
+       function diff( o, n ) {
+               var i,
+                       ns = {},
+                       os = {};
+
+               for ( i = 0; i < n.length; i++ ) {
+                       if ( ns[ n[i] ] == null ) {
+                               ns[ n[i] ] = {
+                                       rows: [],
+                                       o: null
+                               };
+                       }
+                       ns[ n[i] ].rows.push( i );
+               }
+
+               for ( i = 0; i < o.length; i++ ) {
+                       if ( os[ o[i] ] == null ) {
+                               os[ o[i] ] = {
+                                       rows: [],
+                                       n: null
+                               };
+                       }
+                       os[ o[i] ].rows.push( i );
+               }
+
+               for ( i in ns ) {
+                       if ( !hasOwn.call( ns, i ) ) {
+                               continue;
+                       }
+                       if ( ns[i].rows.length == 1 && typeof os[i] != "undefined" && os[i].rows.length == 1 ) {
+                               n[ ns[i].rows[0] ] = {
+                                       text: n[ ns[i].rows[0] ],
+                                       row: os[i].rows[0]
+                               };
+                               o[ os[i].rows[0] ] = {
+                                       text: o[ os[i].rows[0] ],
+                                       row: ns[i].rows[0]
+                               };
+                       }
+               }
+
+               for ( i = 0; i < n.length - 1; i++ ) {
+                       if ( n[i].text != null && n[ i + 1 ].text == null && n[i].row + 1 < o.length && o[ n[i].row + 1 ].text == null &&
+                                               n[ i + 1 ] == o[ n[i].row + 1 ] ) {
+
+                               n[ i + 1 ] = {
+                                       text: n[ i + 1 ],
+                                       row: n[i].row + 1
+                               };
+                               o[ n[i].row + 1 ] = {
+                                       text: o[ n[i].row + 1 ],
+                                       row: i + 1
+                               };
+                       }
+               }
+
+               for ( i = n.length - 1; i > 0; i-- ) {
+                       if ( n[i].text != null && n[ i - 1 ].text == null && n[i].row > 0 && o[ n[i].row - 1 ].text == null &&
+                                               n[ i - 1 ] == o[ n[i].row - 1 ]) {
+
+                               n[ i - 1 ] = {
+                                       text: n[ i - 1 ],
+                                       row: n[i].row - 1
+                               };
+                               o[ n[i].row - 1 ] = {
+                                       text: o[ n[i].row - 1 ],
+                                       row: i - 1
+                               };
+                       }
+               }
+
+               return {
+                       o: o,
+                       n: n
+               };
+       }
+
+       return function( o, n ) {
+               o = o.replace( /\s+$/, "" );
+               n = n.replace( /\s+$/, "" );
+
+               var i, pre,
+                       str = "",
+                       out = diff( o === "" ? [] : o.split(/\s+/), n === "" ? [] : n.split(/\s+/) ),
+                       oSpace = o.match(/\s+/g),
+                       nSpace = n.match(/\s+/g);
+
+               if ( oSpace == null ) {
+                       oSpace = [ " " ];
+               }
+               else {
+                       oSpace.push( " " );
+               }
+
+               if ( nSpace == null ) {
+                       nSpace = [ " " ];
+               }
+               else {
+                       nSpace.push( " " );
+               }
+
+               if ( out.n.length === 0 ) {
+                       for ( i = 0; i < out.o.length; i++ ) {
+                               str += "<del>" + out.o[i] + oSpace[i] + "</del>";
+                       }
+               }
+               else {
+                       if ( out.n[0].text == null ) {
+                               for ( n = 0; n < out.o.length && out.o[n].text == null; n++ ) {
+                                       str += "<del>" + out.o[n] + oSpace[n] + "</del>";
+                               }
+                       }
+
+                       for ( i = 0; i < out.n.length; i++ ) {
+                               if (out.n[i].text == null) {
+                                       str += "<ins>" + out.n[i] + nSpace[i] + "</ins>";
+                               }
+                               else {
+                                       // `pre` initialized at top of scope
+                                       pre = "";
+
+                                       for ( n = out.n[i].row + 1; n < out.o.length && out.o[n].text == null; n++ ) {
+                                               pre += "<del>" + out.o[n] + oSpace[n] + "</del>";
+                                       }
+                                       str += " " + out.n[i].text + nSpace[i] + pre;
+                               }
+                       }
+               }
+
+               return str;
+       };
+}());
+
+// for CommonJS enviroments, export everything
+if ( typeof exports !== "undefined" ) {
+       extend(exports, QUnit);
+}
+
+// get at whatever the global object is, like window in browsers
+}( (function() {return this;}.call()) ));
diff --git a/tct-webuifw-tests/pack.sh b/tct-webuifw-tests/pack.sh
new file mode 100755 (executable)
index 0000000..6a9f77c
--- /dev/null
@@ -0,0 +1,162 @@
+#!/bin/bash
+#
+# Authors:
+#         Jing Wang <jing.j.wang@intel.com>
+#         Huajun Li <huajun.li@intel.com>
+#         Yugang Fan <yugang.fan@intel.com>
+#
+# script create rpm package
+
+#parse params
+USAGE="Usage: ./pack.sh [-t <package type: all | crx | wgt | zip>]"
+
+platforms=""
+blacklists=""
+if [ -d "resources" ]; then
+    blacklists=`ls resources/blacklist.* | sed 's/resources\/blacklist.//g'`
+fi
+if [[ "$blacklists" != "" ]]; then
+    platforms=`echo $blacklists | sed 's/ / \| /g' | sed 's/\ | default//g'`
+fi
+
+if [[ $1 == "-h" || $1 == "--help" ]]; then
+    if [[ $platforms != "" ]]; then
+        echo $USAGE "[-p "$platforms"]"
+    else
+        echo $USAGE
+    fi
+    echo "Create package with wgt and raw source by default"
+    exit 1
+fi
+
+type="wgt"
+platform="default"
+while getopts t:p: o
+do
+    case "$o" in
+    t) type=$OPTARG;;
+    p) platform=$OPTARG;;
+    *) echo $USAGE "[-p "$platforms"]"
+       echo "Create package with wgt and raw source by default"
+       exit 1;;
+    esac
+done
+
+if [ -f "resources/blacklist.$platform" ]; then
+    cp -f resources/blacklist.$platform  resources/blacklist.js
+elif [[ $platform != "default" ]]; then
+    echo "No such platform: $platform"
+    exit 1
+fi
+
+echo "Create package with $type and raw source"
+sleep 3
+
+# parse spec required name
+NAME=`grep "Name:" *.spec | awk '{print $2}'`
+if [ -z "$NAME" ];then
+       echo "Name not specified in spec file"
+       exit 1
+fi
+
+
+# parse spec required version
+VERSION=`grep "Version:" ${NAME}.spec | awk '{print $2}'`
+if [ -z "$VERSION" ];then
+       echo "Version not specified in spec file"
+       exit 1
+fi
+
+SRC_ROOT=${PWD}
+RPM_ROOT=/tmp/${NAME}_pack
+ARCHIVE_TYPE=tar.gz    #tar.gz2
+ARCHIVE_OPTION=czvf    #cjvf
+
+# check precondition
+check_precondition()
+{
+    which $1 > /dev/null 2>&1
+    if [ $? -ne 0 ]; then
+        echo "Error: no tool: $1"
+        exit 1
+    fi
+}
+check_precondition rpmbuild
+check_precondition gcc
+check_precondition make
+
+
+# clean
+echo "cleaning rpm workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+rm -rf $RPM_ROOT
+
+# create workspace
+echo "create rpm workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+mkdir -p $RPM_ROOT/RPMS $RPM_ROOT/SRPMS $RPM_ROOT/SPECS $RPM_ROOT/SOURCES $RPM_ROOT/BUILD $RPM_ROOT/src_tmp/$NAME-$VERSION
+
+# prepare
+echo "prepare workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+rm -rf *.rpm *.tar.bz2 *.tar.gz *.zip
+cp -a $SRC_ROOT/* $RPM_ROOT/src_tmp/$NAME-$VERSION
+# create Makefile in top src folder
+#cp $SRC_ROOT/top_Makefile $RPM_ROOT/src_tmp/$NAME-$VERSION/Makefile
+cp $PWD/${NAME}.spec $RPM_ROOT/SPECS
+cd $RPM_ROOT/src_tmp
+tar $ARCHIVE_OPTION $RPM_ROOT/SOURCES/$NAME-$VERSION.$ARCHIVE_TYPE $NAME-$VERSION
+cd -
+
+# build
+echo "build from workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+cd  $RPM_ROOT/SPECS
+rpmbuild -ba ${NAME}.spec --clean --define "_topdir $RPM_ROOT" --define="TYPE $type" --target=noarch
+cd -
+
+# copy packages
+echo "copy from workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+echo "get packages......"
+if [ $type == 'all' ]; then
+       find $RPM_ROOT -name "$NAME*.zip" | grep -v debuginfo | xargs -n1 -I {} mv -f {} $PWD
+       find $RPM_ROOT -name "$NAME*.rpm" | grep -v debuginfo | xargs -n1 -I {} mv -f {} $PWD
+elif [ $type == 'zip' ]; then
+       find $RPM_ROOT -name "$NAME*.zip" | grep -v debuginfo | xargs -n1 -I {} mv -f {} $PWD
+       find $RPM_ROOT -name "$NAME*.src.rpm" | grep -v debuginfo | xargs -n1 -I {} mv -f {} $PWD
+else
+       find $RPM_ROOT -name "$NAME*.rpm" | grep -v debuginfo | xargs -n1 -I {} mv -f {} $PWD
+fi
+
+if [[ $platform != "" && $platform != "default" ]]; then
+       cd $PWD
+       for file in `ls *.zip`; do
+               new_name=`echo $file | sed "s/\.zip/\.$platform\.zip/g"`
+                mv $file $new_name
+        done
+       for file in `ls *.rpm`; do
+               new_name=`echo $file | sed "s/\.rpm/\.$platform\.rpm/g"`
+                mv $file $new_name
+        done
+        cd -
+fi
+
+echo "get $NAME-$VERSION.$ARCHIVE_TYPE......"
+mv -f $RPM_ROOT/SOURCES/$NAME-$VERSION.$ARCHIVE_TYPE $PWD
+
+# clean
+echo "cleaning workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+rm -rf $RPM_ROOT
+
+# validate
+echo "checking result... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+if [ $type == 'all' ] || [ $type == 'zip' ]; then
+       if [ -z "`ls | grep "\.rpm"`" ] || [ -z "`ls | grep "\.$ARCHIVE_TYPE"`" ] || [ -z "`ls | grep "\.zip"`" ];then
+               echo "------------------------------ FAILED to build $NAME packages --------------------------"
+               exit 1
+       fi              
+else
+       if [ -z "`ls | grep "\.rpm"`" ] || [ -z "`ls | grep "\.$ARCHIVE_TYPE"`" ];then
+               echo "------------------------------ FAILED to build $NAME packages --------------------------"
+               exit 1
+       fi
+fi
+
+echo "------------------------------ Done to build $NAME packages --------------------------"
+ls *.rpm *.$ARCHIVE_TYPE *.zip 2>/dev/null
diff --git a/tct-webuifw-tests/tct-webuifw-tests.spec b/tct-webuifw-tests/tct-webuifw-tests.spec
new file mode 100644 (file)
index 0000000..2d11352
--- /dev/null
@@ -0,0 +1,90 @@
+%define _unpackaged_files_terminate_build 0 
+
+Summary: Tizen Web UI FW test suite 
+Name: tct-webuifw-tests
+Version: 1.2.2
+Release: 1
+License: BSD
+Group: System/Libraries
+Source: %name-%version.tar.gz
+
+%description
+This is Tizen Web UI FW test suite package
+
+
+%prep
+%setup -q
+
+%build
+./autogen
+./configure --prefix=/usr
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+cp -a $RPM_BUILD_ROOT  $RPM_BUILD_DIR/%name
+pre_dir=`pwd`
+cd $RPM_BUILD_DIR/%name
+cp -f $pre_dir/config.xml ./
+cp -f $pre_dir/custom.png ./
+cp -f $pre_dir/index.html ./
+cp -f $pre_dir/demos ./ -a
+cp -f $pre_dir/tests ./ -a
+cp -f $pre_dir/libs ./ -a
+
+zip -rq $RPM_BUILD_ROOT/opt/%name/%name.wgt *
+
+cd $pre_dir
+rm -rf $RPM_BUILD_DIR/%name
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+/opt/%name
+
+%changelog
+
+%post
+wgt_installer="wrt-installer"
+which $wgt_installer > /dev/null 2>&1
+if [ $? -eq 0 ]; then
+    [ -e /opt/%name/%name.wgt ] && $wgt_installer -i /opt/%name/%name.wgt
+    if [ $? -eq 0 ]; then
+        echo "Install /opt/%name/%name.wgt to /opt/apps/`wrt-launcher -l 2> /dev/null | grep %name | tail -n 1 | awk '{ print $NF }'` done"
+    else
+        echo "Install /opt/%name/%name.wgt fail ..."
+    fi
+    sync
+fi
+
+
+%postun
+wgt_installer="wrt-installer"
+which $wgt_installer > /dev/null 2>&1
+if [ $? -eq 0 ]; then
+    package_id=`wrt-launcher -l 2> /dev/null | grep %name | tail -n 1 | awk '{ print $NF }'`
+    if [ -n "$(ps -ef | grep $package_id | grep -v grep | awk '{print $2}')" ]; then
+        for i in $(ps -ef | grep $package_id | grep -v grep | awk '{print $2}')
+        do
+            kill -9 $i
+            if [ "$?" -ne 0 ]; then
+                echo "Kill the processes of %name fail ..."
+            else
+                echo "Kill the processes of %name done"
+            fi
+        done
+    fi
+
+    if [ -n "$package_id" ]; then
+        $wgt_installer -un $package_id
+        if [ "$?" -ne 0 ]; then
+            echo "Uninstall %name fail ..."
+        else
+            echo "Uninstall %name done"
+        fi
+        sync
+    fi
+fi
diff --git a/tct-webuifw-tests/testcase.xsl b/tct-webuifw-tests/testcase.xsl
new file mode 100644 (file)
index 0000000..8623c28
--- /dev/null
@@ -0,0 +1,181 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+       xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+       <xsl:output method="html" version="1.0" encoding="UTF-8"
+               indent="yes" />
+       <xsl:template match="/">
+               <html>
+                       <STYLE type="text/css">
+                               @import "tests.css";
+                       </STYLE>
+
+                       <body>
+                               <div id="testcasepage">
+                                       <div id="title">
+                                               <table>
+                                                       <tr>
+                                                               <td>
+                                                                       <h1>Test Cases</h1>
+                                                               </td>
+                                                       </tr>
+                                               </table>
+                                       </div>
+                                       <div id="suites">
+                                               <table>
+                                                       <tr>
+                                                               <th>Test Suite</th>
+                                                               <th>Total</th>
+                                                               <th>Auto</th>
+                                                               <th>Manual</th>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>
+                                                                       Total
+                                                               </td>
+                                                               <td>
+                                                                       <xsl:value-of select="count(test_definition/suite/set//testcase)" />
+                                                               </td>
+                                                               <td>
+                                                                       <xsl:value-of
+                                                                               select="count(test_definition/suite/set//testcase[@execution_type = 'auto'])" />
+                                                               </td>
+                                                               <td>
+                                                                       <xsl:value-of
+                                                                               select="count(test_definition/suite/set//testcase[@execution_type != 'auto'])" />
+                                                               </td>
+                                                       </tr>
+                                                       <xsl:for-each select="test_definition/suite">
+                                                               <tr>
+                                                                       <td>
+                                                                               <xsl:value-of select="@name" />
+                                                                       </td>
+                                                                       <td>
+                                                                               <xsl:value-of select="count(set//testcase)" />
+                                                                       </td>
+                                                                       <td>
+                                                                               <xsl:value-of select="count(set/testcase[@execution_type = 'auto'])" />
+                                                                       </td>
+                                                                       <td>
+                                                                               <xsl:value-of select="count(set/testcase[@execution_type != 'auto'])" />
+                                                                       </td>
+                                                               </tr>
+                                                       </xsl:for-each>
+                                               </table>
+                                       </div>
+                                       <div id="title">
+                                               <table>
+                                                       <tr>
+                                                               <td class="title">
+                                                                       <h1>Detailed Test Cases</h1>
+                                                               </td>
+                                                       </tr>
+                                               </table>
+                                       </div>
+                                       <div id="cases">
+                                               <xsl:for-each select="test_definition/suite">
+                                                       <xsl:sort select="@name" />
+                                                       <p>
+                                                               Test Suite:
+                                                               <xsl:value-of select="@name" />
+                                                       </p>
+                                                       <table>
+                                                               <tr>
+                                                                       <th>Case_ID</th>
+                                                                       <th>Purpose</th>
+                                                                       <th>Type</th>
+                                                                       <th>Component</th>
+                                                                       <th>Execution Type</th>
+                                                                       <th>Description</th>
+                                                                       <th>Specification</th>
+                                                               </tr>
+                                                               <xsl:for-each select=".//set">
+                                                                       <xsl:sort select="@name" />
+                                                                       <tr>
+                                                                               <td colspan="7">
+                                                                                       Test Set:
+                                                                                       <xsl:value-of select="@name" />
+                                                                               </td>
+                                                                       </tr>
+                                                                       <xsl:for-each select=".//testcase">
+                                                                               <xsl:sort select="@id" />
+                                                                               <tr>
+                                                                                       <td>
+                                                                                               <xsl:value-of select="@id" />
+                                                                                       </td>
+                                                                                       <td>
+                                                                                               <xsl:value-of select="@purpose" />
+                                                                                       </td>
+                                                                                       <td>
+                                                                                               <xsl:value-of select="@type" />
+                                                                                       </td>
+                                                                                       <td>
+                                                                                               <xsl:value-of select="@component" />
+                                                                                       </td>
+                                                                                       <td>
+                                                                                               <xsl:value-of select="@execution_type" />
+                                                                                       </td>
+                                                                                       <td>
+                                                                                               <p>
+                                                                                                       Pre_condition:
+                                                                                                       <xsl:value-of select=".//description/pre_condition" />
+                                                                                               </p>
+                                                                                               <p>
+                                                                                                       Post_condition:
+                                                                                                       <xsl:value-of select=".//description/post_condition" />
+                                                                                               </p>
+                                                                                               <p>
+                                                                                                       Test Script Entry:
+                                                                                                       <xsl:value-of select=".//description/test_script_entry" />
+                                                                                               </p>
+                                                                                               <p>
+                                                                                                       Steps:
+                                                                                                       <p />
+                                                                                                       <xsl:for-each select=".//description/steps/step">
+                                                                                                               <xsl:sort select="@order" />
+                                                                                                               Step
+                                                                                                               <xsl:value-of select="@order" />
+                                                                                                               :
+                                                                                                               <xsl:value-of select="./step_desc" />
+                                                                                                               ;
+                                                                                                               <p />
+                                                                                                               Expected Result:
+                                                                                                               <xsl:value-of select="./expected" />
+                                                                                                               <p />
+                                                                                                       </xsl:for-each>
+                                                                                               </p>
+                                                                                       </td>
+                                                                                       <td>
+                                                                                               <xsl:call-template name="br-replace">
+                                                                                                       <xsl:with-param name="word" select=".//spec" />
+                                                                                               </xsl:call-template>
+                                                                                       </td>
+                                                                               </tr>
+                                                                       </xsl:for-each>
+                                                               </xsl:for-each>
+                                                       </table>
+                                               </xsl:for-each>
+                                       </div>
+                               </div>
+                       </body>
+               </html>
+       </xsl:template>
+       <xsl:template name="br-replace">
+               <xsl:param name="word" />
+               <xsl:variable name="cr">
+                       <xsl:text>
+</xsl:text>
+               </xsl:variable>
+               <xsl:choose>
+                       <xsl:when test="contains($word,$cr)">
+                               <xsl:value-of select="substring-before($word,$cr)" />
+                               <br />
+                               <xsl:call-template name="br-replace">
+                                       <xsl:with-param name="word" select="substring-after($word,$cr)" />
+                               </xsl:call-template>
+                       </xsl:when>
+                       <xsl:otherwise>
+                               <xsl:value-of select="$word" />
+                       </xsl:otherwise>
+               </xsl:choose>
+       </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file
diff --git a/tct-webuifw-tests/testresult.xsl b/tct-webuifw-tests/testresult.xsl
new file mode 100644 (file)
index 0000000..d1ad1b9
--- /dev/null
@@ -0,0 +1,273 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+       xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+       <xsl:output method="html" version="1.0" encoding="UTF-8"
+               indent="yes" />
+       <xsl:template match="/">
+               <html>
+                       <STYLE type="text/css">
+                               @import "tests.css";
+                       </STYLE>
+
+                       <body>
+                               <div id="testcasepage">
+                                       <div id="title">
+                                               <table>
+                                                       <tr>
+                                                               <td>
+                                                                       <h1>Test Report</h1>
+                                                               </td>
+                                                       </tr>
+                                               </table>
+                                       </div>
+                                       <div id="device">
+                                               <table>
+                                                       <tr>
+                                                               <th colspan="2">Device Information</th>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Device Name</td>
+                                                               <td>
+                                                                       <xsl:value-of select="test_definition/environment/@device_name" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Device Model</td>
+                                                               <td>
+                                                                       <xsl:value-of select="test_definition/environment/@device_model" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>OS Version</td>
+                                                               <td>
+                                                                       <xsl:value-of select="test_definition/environment/@os_version" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Device ID</td>
+                                                               <td>
+                                                                       <xsl:value-of select="test_definition/environment/@device_id" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Firmware Version</td>
+                                                               <td>
+                                                                       <xsl:value-of select="test_definition/environment/@firmware_version" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Screen Size</td>
+                                                               <td>
+                                                                       <xsl:value-of select="test_definition/environment/@screen_size" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Resolution</td>
+                                                               <td>
+                                                                       <xsl:value-of select="test_definition/environment/@resolution" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Host Info</td>
+                                                               <td>
+                                                                       <xsl:value-of select="test_definition/environment/@host" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Others</td>
+                                                               <td>
+                                                                       <xsl:value-of select="test_definition/environment/other" />
+                                                               </td>
+                                                       </tr>
+                                               </table>
+                                       </div>
+
+                                       <div id="summary">
+                                               <table>
+                                                       <tr>
+                                                               <th colspan="2">Test Summary</th>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Test Plan Name</td>
+                                                               <td>
+                                                                       <xsl:value-of select="test_definition/summary/@test_plan_name" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Tests Total</td>
+                                                               <td>
+                                                                       <xsl:value-of select="count(test_definition//suite/set/testcase)" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Test Passed</td>
+                                                               <td>
+                                                                       <xsl:value-of
+                                                                               select="count(test_definition//suite/set/testcase[@result = 'PASS'])" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Test Failed</td>
+                                                               <td>
+                                                                       <xsl:value-of
+                                                                               select="count(test_definition//suite/set/testcase[@result = 'FAIL'])" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Test N/A</td>
+                                                               <td>
+                                                                       <xsl:value-of
+                                                                               select="count(test_definition//suite/set/testcase[@result = 'BLOCK'])" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Test Not Run</td>
+                                                               <td>
+                                                                       <xsl:value-of
+                                                                               select="count(test_definition//suite/set/testcase) - count(test_definition//suite/set/testcase[@result = 'PASS']) - count(test_definition//suite/set/testcase[@result = 'FAIL']) - count(test_definition//suite/set/testcase[@result = 'BLOCK'])" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Start time</td>
+                                                               <td>
+                                                                       <xsl:value-of select="test_definition/summary/start_at" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>End time</td>
+                                                               <td>
+                                                                       <xsl:value-of select="test_definition/summary/end_at" />
+                                                               </td>
+                                                       </tr>
+                                               </table>
+                                       </div>
+
+
+                                       <div id="suite_summary">
+                                               <div id="title">
+                                                       <table>
+                                                               <tr>
+                                                                       <td class="title">
+                                                                               <h1>Test Summary by Suite</h1>
+                                                                       </td>
+                                                               </tr>
+                                                       </table>
+                                               </div>
+                                               <table>
+                                                       <tr>
+                                                               <th>Suite</th>
+                                                               <th>Passed</th>
+                                                               <th>Failed</th>
+                                                               <th>N/A</th>
+                                                               <th>Not Run</th>
+                                                               <th>Total</th>
+                                                       </tr>
+                                                       <xsl:for-each select="test_definition/suite">
+                                                               <xsl:sort select="@name" />
+                                                               <tr>
+                                                                       <td>
+                                                                               <xsl:value-of select="@name" />
+                                                                       </td>
+                                                                       <td>
+                                                                               <xsl:value-of select="count(set//testcase[@result = 'PASS'])" />
+                                                                       </td>
+                                                                       <td>
+                                                                               <xsl:value-of select="count(set//testcase[@result = 'FAIL'])" />
+                                                                       </td>
+                                                                       <td>
+                                                                               <xsl:value-of select="count(set//testcase[@result = 'BLOCK'])" />
+                                                                       </td>
+                                                                       <td>
+                                                                               <xsl:value-of
+                                                                                       select="count(set//testcase) - count(set//testcase[@result = 'PASS']) - count(set//testcase[@result = 'FAIL']) - count(set//testcase[@result = 'BLOCK'])" />
+                                                                       </td>
+                                                                       <td>
+                                                                               <xsl:value-of select="count(set//testcase)" />
+                                                                       </td>
+                                                               </tr>
+                                                       </xsl:for-each>
+                                               </table>
+                                       </div>
+
+                                       <div id="cases">
+                                               <div id="title">
+                                                       <table>
+                                                               <tr>
+                                                                       <td class="title">
+                                                                               <h1 align="center">Detailed Test Results</h1>
+                                                                       </td>
+                                                               </tr>
+                                                       </table>
+                                               </div>
+                                               <xsl:for-each select="test_definition/suite">
+                                                       <xsl:sort select="@name" />
+                                                       <p>
+                                                               Test Suite:
+                                                               <xsl:value-of select="@name" />
+                                                       </p>
+                                                       <table>
+                                                               <tr>
+                                                                       <th>Case_ID</th>
+                                                                       <th>Purpose</th>
+                                                                       <th>Result</th>
+                                                                       <th>Stdout</th>
+                                                               </tr>
+                                                               <xsl:for-each select=".//set">
+                                                                       <xsl:sort select="@name" />
+                                                                       <tr>
+                                                                               <td colspan="4">
+                                                                                       Test Set:
+                                                                                       <xsl:value-of select="@name" />
+                                                                               </td>
+                                                                       </tr>
+                                                                       <xsl:for-each select=".//testcase">
+                                                                               <xsl:sort select="@id" />
+                                                                               <tr>
+                                                                                       <td>
+                                                                                               <xsl:value-of select="@id" />
+                                                                                       </td>
+                                                                                       <td>
+                                                                                               <xsl:value-of select="@purpose" />
+                                                                                       </td>
+
+                                                                                       <xsl:choose>
+                                                                                               <xsl:when test="@result">
+                                                                                                       <xsl:if test="@result = 'FAIL'">
+                                                                                                               <td class="red_rate">
+                                                                                                                       <xsl:value-of select="@result" />
+                                                                                                               </td>
+                                                                                                       </xsl:if>
+                                                                                                       <xsl:if test="@result = 'PASS'">
+                                                                                                               <td class="green_rate">
+                                                                                                                       <xsl:value-of select="@result" />
+                                                                                                               </td>
+                                                                                                       </xsl:if>
+                                                                                                       <xsl:if test="@result = 'BLOCK' ">
+                                                                                                               <td>
+                                                                                                                       BLOCK
+                                                                                                               </td>
+                                                                                                       </xsl:if>
+                                                                                               </xsl:when>
+                                                                                               <xsl:otherwise>
+                                                                                                       <td>
+
+                                                                                                       </td>
+                                                                                               </xsl:otherwise>
+                                                                                       </xsl:choose>
+                                                                                       <td>
+                                                                                               <xsl:value-of select=".//result_info/stdout" />
+                                                                                               <xsl:if test=".//result_info/stdout = ''">
+                                                                                                       N/A
+                                                                                               </xsl:if>
+                                                                                       </td>
+                                                                               </tr>
+                                                                       </xsl:for-each>
+                                                               </xsl:for-each>
+                                                       </table>
+                                               </xsl:for-each>
+                                       </div>
+                               </div>
+                       </body>
+               </html>
+       </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file
diff --git a/tct-webuifw-tests/tests.css b/tct-webuifw-tests/tests.css
new file mode 100644 (file)
index 0000000..b5be58d
--- /dev/null
@@ -0,0 +1,102 @@
+@charset "UTF-8";
+/* CSS Document */
+#testcasepage div,#testcasepage h1,#testcasepage p,#testcasepage table,#testcasepage tr,#testcasepage th,#testcasepage td {
+    border: 0;
+    font-family: arial;
+    font-size: 0.96em;
+    font-style: inherit;
+    font-weight: inherit;
+    padding: 0;
+    margin: 0;
+    vertical-align: baseline;
+}
+
+#testcasepage p {
+    text-align: left;
+}
+
+#testcasepage table {
+    border-collapse: separate;
+    border-spacing: 0;
+    margin-bottom: 1.4em;
+    vertical-align: middle;
+}
+
+#testcasepage th,#testcasepage td {
+    font-weight: normal;
+    padding: 4px 10px 4px 5px;
+    text-align: left;
+    vertical-align: middle;
+}
+
+#cases table {
+    width: 101%;
+}
+
+#title table {
+    width: 101%;
+}
+
+#device table {
+    width: 50%;
+}
+
+#summary table {
+    width: 50%;
+}
+
+#testcasepage th {
+    background-color: #AAAAAA;
+    border-bottom: 1px solid #000;
+    border-left: 1px solid #000;
+    border-top: 1px solid #000;
+    color: #000;
+    font-weight: bold;
+    vertical-align: bottom;
+}
+
+#testcasepage th:last-child, #testcasepage td:last-child {
+    border-right: 1px solid #000;
+}
+
+#testcasepage td {
+    border-bottom: 1px solid;
+    border-left: 1px solid;
+    font-weight: normal;
+}
+
+#testcasepage td.yellow_rate {
+    background-color: #ffcc00;
+}
+
+#testcasepage td.green_rate {
+    background-color: #33cc33;
+}
+
+#testcasepage td.dgreen_rate {
+    background-color: #339933;
+}
+
+#testcasepage td.red_rate {
+    background-color: #FF3333;
+}
+
+#title table, #title tr, #title td {
+    border-bottom: none;
+    border-left: none;
+    text-align: center;
+}
+
+#title td:last-child {
+    border-right: none;
+}
+
+#testcasepage h1 {
+    color: #000;
+    font-family: Arial, sans-serif;
+    font-size: 2em;
+    font-weight: bold;
+    line-height: 1;
+    margin-bottom: 0.75em;
+    padding-top: 0.25em;
+}
diff --git a/tct-webuifw-tests/tests/unit-tests/autodivider/autodivider-tests.js b/tct-webuifw-tests/tests/unit-tests/autodivider/autodivider-tests.js
new file mode 100755 (executable)
index 0000000..11b8d50
--- /dev/null
@@ -0,0 +1,83 @@
+/*
+ * Unit Test : autodivider
+ *
+ *
+ */
+/*jslint browser: true*/
+/*global $,  jQuery,  test,  equal,  ok*/
+
+$ ( document ).ready ( function ( ) {
+       module ("Autodivider") ;
+
+       var unit_listdividers_test = function ( widget ) {
+               var li ;
+               /*markup*/
+               equal ( widget.hasClass ("ui-listview") ,  true, "Markup check") ;
+               equal ( widget.find ( ' li.ui-li ' ).length,  24, "Markup check") ;
+               equal ( widget.find (":jqmData(role=list-divider)").length,  8, "Markup check : list dividers count") ;
+               equal ( widget.find ( ' li.ui-li-divider ' ).length,  8, "Markup check : list dividers count") ;
+
+               /*adding element which fits in last divisiov*/
+               li = "<li>Harry</li>";
+               $ ( li ).appendTo ( widget ) ;
+               $ ( widget ).listview ("refresh") ;
+               equal ( widget.find ( ' li.ui-li ' ).length,  25, "API : refresh check") ;
+
+               /*adding element which need new divisiov*/
+               li = "<li>Jack</li>";
+               $ ( li ).appendTo ( widget ) ;
+               $ ( widget ).listview ("refresh") ;
+               equal ( widget.find ( ' li.ui-li ' ).length,  27, "API : refresh check") ;
+       } ;
+
+       test ("Autodivider",  function ( ) {
+               // trigger pagecreate
+               $ ("#autodivider-unit-test").page ( ) ;
+               /* Initialize */
+               $ ( ' #autodividersample ' ).listview ( ) ;
+               unit_listdividers_test ( $ ( ' #autodividersample ' ) ,  {button : ' call ' ,  cancel : true} ) ;
+
+       } ) ;
+
+       test ("autodivider- dynamic",  function ( ) {
+
+               var createEvent = false ,
+                       listHTMML = ' <ul data-role="listview"id="autodividersample1"data-autodividers="alpha"> ' +
+                                                                                        ' <li><a href="#">Adam Kinkaid</a></li> ' +
+                                                                                        ' <li><a href="#">Alex Wickerham</a></li> ' +
+                                                                                        ' <li><a href="#">Avery Johnson</a></li> ' +
+                                                                                        ' <li><a href="#">Bob Cabot</a></li> ' +
+                                                                                        ' <li><a href="#">Caleb Booth</a></li> ' +
+                                                                                        ' <li><a href="#">Christopher Adams</a></li> ' +
+                                                                                        ' <li><a href="#">Culver James</a></li> ' +
+                                                                                        ' <li><a href="#">David Walsh</a></li> ' +
+                                                                                        ' <li><a href="#">Drake Alfred</a></li> ' +
+                                                                                        ' <li><a href="#">Elizabeth Bacon</a></li> ' +
+                                                                                        ' <li><a href="#">Emery Parker</a></li> ' +
+                                                                                        ' <li><a href="#">Enid Voldon</a></li> ' +
+                                                                                        ' <li><a href="#">Francis Wall</a></li> ' +
+                                                                                        ' <li><a href="#">Graham Smith</a></li> ' +
+                                                                                        ' <li><a href="#">Greta Peete</a></li> ' +
+                                                                                        ' <li><a href="#">Harvey Walls</a></li> ' +
+                                                                ' </ul> ' ;
+
+               // trigger pagecreate
+               $ ("#autodivider-unit-test-dynamic").page ( ) ;
+
+               /* Initialize */
+               $ ("#autodivider-unit-test-dynamic").find (":jqmData(role=contents)").append ( listHTMML ) ;
+               equal ( $ ("#autodivider-unit-test-dynamic").find ( ' li ' ).length,  16, "Markup check before autodividers created") ;
+               $ ( ' #autodividersample1 ' ).listview ( {create : function ( ) {
+                       createEvent = true ;
+               }} ) ;
+
+               $ ("#autodivider-unit-test-dynamic").find (":jqmData(role=contents)").trigger ( ' create ' ) ;
+               $ ( ' #autodividersample1 ' ).listview ( ) ;
+
+               equal ( createEvent,  true, "Create Event") ;
+               equal ( $ ("#autodivider-unit-test-dynamic").find ( ' li.ui-li ' ).length,  24, "Markup check after autodividers created") ;
+               unit_listdividers_test ( $ ( ' #autodividersample1 ' ) ) ;
+
+       } ) ;
+
+} ) ;
diff --git a/tct-webuifw-tests/tests/unit-tests/autodivider/index.html b/tct-webuifw-tests/tests/unit-tests/autodivider/index.html
new file mode 100755 (executable)
index 0000000..9130da0
--- /dev/null
@@ -0,0 +1,76 @@
+<!DOCTYPE html>
+<html>
+       <head>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+                       data-framework-theme="tizen-white"
+                       data-framework-viewport-scale=false>
+               </script>
+
+               <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+               <script src="../../../libs/js/qunit/qunit.js"></script>
+               <script src="autodivider-tests.js"></script>
+               <title>Autodividers</title>
+       </head>
+
+       <body>
+               <h1 id="qunit-header">Autodividers</h1>
+               <h2 id="qunit-banner"></h2>
+               <div id="qunit-testrunner-toolbar"></div>
+               <h2 id="qunit-userAgent"></h2>
+               <ol id="qunit-tests"></ol>
+
+               <div id="qunit-fixture">
+                       <div data-role="page" id="dummy-page">
+                               <div data-role="header" data-position="fixed">
+                                       <h1>Dummy</h1>
+                               </div>
+                               <div data-role="contents">
+                               </div>
+                       </div>
+
+                       <div data-role="page" id="autodivider-unit-test" data-add-back-btn="true">
+                               <div data-role="header" data-position="fixed">
+                                       <h1>Autodividers</h1>
+                                       <input type="search" data-cancel-btn='true' name="search" data-icon="call" id="searchInput" value=""/>
+                               </div>
+                               <div data-role="content" id="autodivider-content">
+                                                               <ul data-role="listview" id='autodividersample' data-autodividers="alpha">
+                                                       
+                                                               <li><a href="#">Adam Kinkaid</a></li>
+                                                               <li><a href="#">Alex Wickerham</a></li>
+                                                               <li><a href="#">Avery Johnson</a></li>
+                                                               
+                                                               <li><a href="#">Bob Cabot</a></li>
+                                                               
+                                                               <li><a href="#">Caleb Booth</a></li>
+                                                               <li><a href="#">Christopher Adams</a></li>
+                                                               <li><a href="#">Culver James</a></li>
+                                                               
+                                                               <li><a href="#">David Walsh</a></li>
+                                                               <li><a href="#">Drake Alfred</a></li>
+                                                               
+                                                               <li><a href="#">Elizabeth Bacon</a></li>
+                                                               <li><a href="#">Emery Parker</a></li>
+                                                               <li><a href="#">Enid Voldon</a></li>
+                                                       
+                                                               <li><a href="#">Francis Wall</a></li>
+                                                               
+                                                               <li><a href="#">Graham Smith</a></li>
+                                                               <li><a href="#">Greta Peete</a></li>
+                                                               
+                                                               <li><a href="#">Harvey Walls</a></li>
+                                                       </ul>
+                               </div>
+                       </div>
+               </div>
+               <div data-role="page" id="autodivider-unit-test-dynamic">
+                               <div data-role="header" data-position="fixed">
+                                       <h1>Dummy</h1>
+                               </div>
+                               <div data-role="contents">
+                               </div>
+                       </div>
+       </body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/button/button-tests.js b/tct-webuifw-tests/tests/unit-tests/button/button-tests.js
new file mode 100644 (file)
index 0000000..9f4c02e
--- /dev/null
@@ -0,0 +1,228 @@
+/*
+ * Unit Test: Button
+ *
+ * Hyunjung Kim <hjnim.kim@samsung.com>
+ *
+ */
+/*jslint browser: true*/
+/*global $, jQuery, test, equal, ok*/
+$("#checkboxpage").live ("pageinit", function ( event ) {
+
+       module ("button") ;
+
+       var unit_button = function ( widget, type, text ) {
+               var buttonClassPrefix = "ui-btn",
+                       buttonText = type,
+                       icon,
+                       position,
+                       buttonStyle,
+                       hasClass;
+
+               ok ( widget.hasClass ( buttonClassPrefix ) , "Create - Button") ;
+
+               if ( widget.jqmData ("inline") ) {
+                       ok ( widget.hasClass ( buttonClassPrefix + "-inline") , "Style - Inline") ;
+               } else {
+                       ok ( !widget.hasClass ( buttonClassPrefix + "-inline") , "Style - Non Inline") ;
+               }
+
+               if ( !widget.children ( ).first ( ).hasClass ( buttonClassPrefix + "-hastxt") ) {
+                       buttonText = "";
+               }
+
+               // Text Trim, CausejQueryMobile ( JQM ) 1.1 forced to add -"\u00a0"in buttonIcon ( ButtonMarkup )
+               // JQM 1.1 buttonMarkup code :
+               // - if ( buttonIcon ) buttonIcon.appendChild ( document.createTextNode ("\u00a0") ) ;
+               if ( buttonText == "") {
+                       equal ( widget.text ( ).trim ( ) , text , "Button Text icon only") ;
+               } else {
+                       equal ( widget.text ( ).trim ( ) , buttonText , "Button Text");
+               }
+               icon = widget.jqmData ("icon") ;
+               if ( icon !== undefined ) {
+                       ok ( widget.children ( ).children ( ).hasClass ("ui-icon-" + icon ) , "Style - Button Icon") ;
+               }
+               if ( icon !== undefined && buttonText != "") {
+                       position = widget.jqmData ("iconpos") ;
+                       if ( position === undefined ) {
+                               position = "left";
+                       }
+                       ok ( widget.children ( ).children ( ).first ( ).hasClass ( buttonClassPrefix + "-text-padding-" + position ) , "Style - Button Icon, Text Position") ;
+               }
+
+               buttonStyle = widget.jqmData ("style") ;
+               if ( buttonStyle !== undefined ) {
+                       switch ( buttonStyle ) {
+                       case "circle":
+                               hasClass = ".ui-btn-corner-circle, .ui-btn-icon_only";
+                               break;
+                       case "edit":
+                               hasClass = ".ui-btn-edit";
+                               break;
+                       case "nobg":
+                               hasClass = ".ui-btn-icon-nobg, .ui-btn-icon_only";
+                               break;
+                       }
+                       ok ( widget.children ( ).is ( hasClass ) ) ;
+               }
+
+               // Check APIs
+               widget.button ( ).button ("disable") ;
+               equal ( widget.attr ("disabled") , "disabled", "button disable test") ;
+
+               widget.button ( ).button ("enable") ;
+               equal ( widget.attr ("disable") , undefined, "button enable test") ;
+       },
+
+               unit_button_events = function ( ) {
+
+                       var createEvent = false,
+                               clickEvent = false,
+                               buttonClassPrefix = "ui-btn",
+                               widget,
+                               markup ;
+
+                       //remove all controls form content
+                       $('#checkboxpage').find(":jqmData(role=contents)").empty( ) ;
+                       markup = '<div data-role="button"id="button-0">Text Button Dynamic</div>';
+                       $('#checkboxpage').find(":jqmData(role=contents)").append( markup ) ;
+                       widget = $("#button-0") ;
+
+                       /*Bind Event*/
+                       widget.button( {create: function ( ) {
+                               createEvent = true ;
+                       }} ) ;
+
+                       widget.bind("click", function ( ) {
+                               clickEvent = true ;
+                       } ) ;
+
+                       $('#checkboxpage').find(":jqmData(role=contents)").trigger('create') ;
+                       widget.button ( ) ;
+
+                       /*Check Event*/
+                       $('#checkboxpage').find(":jqmData(role=contents)").trigger('create') ;
+                       ok( widget.hasClass ( buttonClassPrefix ) , "Create - Button") ;
+                       ok( createEvent , "Button Create Event") ;
+                       widget.trigger ('click') ;
+                       ok( clickEvent , "Button Click Event") ;
+               };
+
+       test ("Button", function ( ) {
+               unit_button ( $("#button-0") , "Text Button") ;
+       } ) ;
+
+       test ("Button - Inline", function ( ) {
+               unit_button ( $("#button-1") , "Text Button Inline") ;
+       } ) ;
+
+       test ("Button - Inline, Icon", function ( ) {
+               unit_button ( $("#button-2") , "Call Icon") ;
+       } ) ;
+
+       test ("Button - Inline, Call Icon, Icon Position ( Right )", function ( ) {
+               unit_button ( $("#button-3") , "Icon Text") ;
+       } ) ;
+
+       test ("Button - Inline, Only Icon ( Reveal )", function ( ) {
+               unit_button ( $("#button-4") , "Non Text Button", "reveal") ;
+       } ) ;
+
+       test ("Button - Inline, Only Icon ( Send ) , circle", function ( ) {
+               unit_button ( $("#button-5") , "Non Text Button", "send") ;
+       } ) ;
+
+       test ("Button - Inline, Only Icon ( Favorite ) , nobackground", function ( ) {
+               unit_button ( $("#button-6") , "Non Text Button", "favorite") ;
+       } ) ;
+
+       test ("Button", function ( ) {
+               var markup;
+               //remove all controls form content
+               $('#checkboxpage').find (":jqmData(role=contents)").empty ( ) ;
+
+               markup = '<div data-role = "button" id = "button-0">Text Button Dynamic</div>';
+               $('#checkboxpage').find (":jqmData(role=contents)").append ( markup ) ;
+               $('#checkboxpage').find (":jqmData(role=contents)").trigger ( 'create' ) ;
+               unit_button ( $("#button-0") , "Text Button Dynamic") ;
+       } ) ;
+
+       test ("Button - Inline", function ( ) {
+               var markup ;
+               //remove all controls form content
+               $('#checkboxpage').find (":jqmData(role=contents)").empty ( ) ;
+
+               markup = '<div data-role = "button" id = "button-1">Text Button Inline Dynamic</div>';
+               $('#checkboxpage').find (":jqmData(role=contents)").append ( markup ) ;
+               $('#checkboxpage').find (":jqmData(role=contents)").trigger ('create') ;
+               unit_button ( $("#button-1") , "Text Button Inline Dynamic") ;
+
+       } ) ;
+
+       test ("Button - Inline, Icon", function ( ) {
+               var markup;
+               //remove all controls form content
+               $('#checkboxpage').find (":jqmData(role=contents)").empty ( ) ;
+
+               markup = '<div data-role = "button" id = "button-2">Call Icon Dynamic</div>';
+               $('#checkboxpage').find (":jqmData(role=contents)").append ( markup ) ;
+               $('#checkboxpage').find (":jqmData(role=contents)").trigger ('create') ;
+               unit_button ( $("#button-2") , "Call Icon Dynamic") ;
+
+       } ) ;
+
+       test ("Button - Inline, Call Icon, Icon Position ( Right )", function ( ) {
+               var markup;
+               //remove all controls form content
+               $('#checkboxpage').find (":jqmData(role=contents)").empty ( ) ;
+
+               markup = '<div data-role = "button" id = "button-3">Icon Text Dynamic</div>';
+               $('#checkboxpage').find (":jqmData(role=contents)").append ( markup ) ;
+               $('#checkboxpage').find (":jqmData(role=contents)").trigger ('create') ;
+               unit_button ( $("#button-3") , "Icon Text Dynamic") ;
+
+       } ) ;
+
+       test ("Button - Inline, Only Icon ( Reveal )", function ( ) {
+               var markup;
+               //remove all controls form content
+               $('#checkboxpage').find (":jqmData(role=contents)").empty ( ) ;
+
+               markup = '<div data-role = "button" id = "button-4">Non Text Button Dynamic</div>';
+               $('#checkboxpage').find (":jqmData(role=contents)").append ( markup ) ;
+               $('#checkboxpage').find (":jqmData(role=contents)").trigger ('create') ;
+               unit_button ( $("#button-4") , "Non Text Button Dynamic", "reveal") ;
+
+       } ) ;
+
+       test ("Button - Inline, Only Icon ( Send ) , circle", function ( ) {
+               var markup;
+               //remove all controls form content
+               $('#checkboxpage').find (":jqmData(role=contents)").empty ( ) ;
+
+               markup = '<div data-role = "button" id = "button-5">Non Text Button Dynamic</div>';
+               $('#checkboxpage').find (":jqmData(role=contents)").append ( markup ) ;
+               $('#checkboxpage').find (":jqmData(role=contents)").trigger ('create') ;
+               unit_button ( $("#button-5") , "Non Text Button Dynamic", "send") ;
+
+       } ) ;
+
+       test ("Button - Inline, Only Icon ( Favorite ) , nobackground", function ( ) {
+               var markup;
+               //remove all controls form content
+               $('#checkboxpage').find (":jqmData(role=contents)").empty ( ) ;
+
+               markup = '<div data-role = "button" id = "button-6">Non Text Button Dynamic</div>';
+               $('#checkboxpage').find (":jqmData(role=contents)").append ( markup ) ;
+               $('#checkboxpage').find (":jqmData(role=contents)").trigger ('create') ;
+               unit_button ( $("#button-6") , "Non Text Button Dynamic", "favorite") ;
+
+       } ) ;
+
+       test ("Button", function ( ) {
+               //remove all controls form content
+               $('#checkboxpage').find (":jqmData(role=contents)").empty ( ) ;
+               unit_button_events ( ) ;
+       } ) ;
+
+} ) ;
diff --git a/tct-webuifw-tests/tests/unit-tests/button/index.html b/tct-webuifw-tests/tests/unit-tests/button/index.html
new file mode 100644 (file)
index 0000000..cc26ad5
--- /dev/null
@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+       <script src="button-tests.js"></script>
+       <title>Button</title>
+</head>
+
+<body>
+
+<h1 id="qunit-header">Button</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests"></ol>
+
+<div id="qunit-fixture">
+       <div data-role="page" id="checkboxpage">
+               <div data-role="contents">
+                       <div data-role="button" id="button-0">Text Button</div>
+                       <div data-role="button" data-inline="true" id="button-1">Text Button Inline</div>
+                       <div data-role="button" data-inline="true" data-icon="reveal" id="button-2">Call Icon</div>
+                       <div data-role="button" data-inline="true" data-icon="call" data-iconpos="right" id="button-3">Icon Text</div>
+                       <div data-role="button" data-inline="true" data-icon="reveal" id="button-4"></div>
+                       <div data-role="button" data-inline="true" data-icon="send" data-style="circle" id="button-5"></div>
+                       <div data-role="button" data-inline="true" data-icon="favorite" data-style="nobg" id="button-6"></div>
+               </div>
+       </div>
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/check/check-tests.js b/tct-webuifw-tests/tests/unit-tests/check/check-tests.js
new file mode 100644 (file)
index 0000000..de49661
--- /dev/null
@@ -0,0 +1,185 @@
+/*
+ * Unit Test: Checkbox
+ *
+ * Hyunjung Kim <hjnim.kim@samsung.com>
+ */
+/*jslint browser: true*/
+/*global $, jQuery, test, equal, ok*/
+$("#checkpage").live("pageinit", function ( event ) {
+
+       module("checkbox");
+
+       var unit_check = function ( widget, type ) {
+               var checkbox,
+                       label,
+                       checkClass,
+                       classPrefix = "ui-checkbox";
+
+               widget.checkboxradio( );
+               checkbox = widget.parent( );
+               ok( checkbox.hasClass( classPrefix ) , "Create - Checkbox");
+
+               checkClass = classPrefix + "-on";
+               if ( !widget.is(":checked") ) {
+                       checkClass = classPrefix + "-off";
+               }
+               if ( widget.hasClass("favorite") ) {
+                       ok( checkbox.hasClass("favorite"), "Style - Favorite");
+               }
+
+               // Text Trim, Cause jQueryMobile( JQM ) 1.1 forced to add -"\u00a0"in buttonIcon( ButtonMarkup )
+               // JQM 1.1 buttonMarkup code :
+               // - if ( buttonIcon ) buttonIcon.appendChild( document.createTextNode("\u00a0") );
+               label = checkbox.children( ).last( );
+               equal ( label.text( ).trim( ), type, "label, type string must be same");
+
+               label.trigger("vclick");
+               if ( !widget.is(":disabled") ) {
+                       checkClass = classPrefix + "-on";
+                       ok( label.hasClass( checkClass ) , "Click - Normal Checkbox On");
+
+                       checkClass = classPrefix + "-off";
+                       label.trigger("vclick");
+                       ok( label.hasClass( checkClass ) , "Click - Normal Checkbox Off");
+               } else {
+                       ok( label.hasClass( checkClass ) , "Click - Disable Checkbox");
+                       label.trigger("vclick");
+                       ok( label.hasClass( checkClass ) , "Click - click event doesn't have effect");
+               }
+
+               /*markup check */
+               ok( label.find('.ui-btn-hastxt'), "Markup check for text");
+               ok( label.find('.ui-btn-text') , "Markup check for text");
+               equal( label.find('.ui-btn-hastxt span.ui-btn-text').last( ).html( ), type , "Markup check for text value");
+
+
+               /*API check*/
+               widget.checkboxradio('disable') ;
+               equal( widget.is(":disabled") , true, "API check disable") ;
+               ok( checkbox.hasClass("ui-disabled") , "API disable - Disable Checkbox");
+
+               widget.checkboxradio('enable') ;
+               equal( widget.is(":disabled") , false, "API check enable") ;
+               equal( checkbox.hasClass("ui-disabled") , false, "API enable - Disable Checkbox");
+
+
+       },
+
+               unit_check_events = function ( widget, type ) {
+                       var createEvent = false,
+                               changeEvent = false,
+                               checkbox,
+                               label;
+
+                       widget.checkboxradio({create: function ( ) {
+                               createEvent = true ;
+                       }}  ) ;
+                       checkbox = widget.parent( );
+                       label = checkbox.children( ).last( );
+
+                       widget.bind("change", function ( ) {
+                               changeEvent = true ;
+                       } ) ;
+
+                       $('#checkpage').find(":jqmData(role=controlgroup)").trigger('create') ;
+                       ok( createEvent , "Checkbox Create Event");
+
+                       widget.trigger("click");
+                       ok( changeEvent , "Checkbox Change Event");
+               };
+
+       test("checkbox - Normal", function ( ) {
+               unit_check( $("#checkbox-1"), "Normal");
+       } );
+
+       test("checkbox - Checked, Disabled", function ( ) {
+               unit_check( $("#checkbox-2"), "Checked, Disabled");
+       } );
+
+       test("checkbox - Disabled", function ( ) {
+               unit_check( $("#checkbox-3"), "Disabled");
+       } );
+
+       test("Favorite - Favorite", function ( ) {
+               unit_check( $("#checkbox-4"), "Favorite");
+       } );
+
+       test("Favorite - Favorite Checked, Disabled", function ( ) {
+               unit_check( $("#checkbox-5"), "Favorite Checked, Disabled");
+       } );
+
+       test("Favorite - Favorite, Disabled", function ( ) {
+               unit_check( $("#checkbox-6"), "Favorite, Disabled");
+       } );
+
+       test("checkbox - Normal Dynamic", function ( ) {
+
+               var markup;
+               //remove all controls form content
+               $('#checkpage').find(":jqmData(role=controlgroup)").empty( );
+
+               markup = '<input type= "checkbox"name= "checkbox-1"id= "checkbox-1"/><label for= "checkbox-1">Normal Dynamic</label>';
+               $('#checkpage').find(":jqmData(role=controlgroup)").append( markup ) ;
+               $('#checkpage').find(":jqmData(role=controlgroup)").trigger('create') ;
+
+               unit_check( $("#checkbox-1"), "Normal Dynamic");
+       } );
+
+
+       test("checkbox - Checked, Disabled Dynamic", function ( ) {
+
+               var markup;
+               //remove all controls form content
+               $('#checkpage').find(":jqmData(role=controlgroup)").empty( );
+
+               markup = '<input type= "checkbox"name= "checkbox-2"id= "checkbox-2"checked= "checked"disabled= "true"/><label for= "checkbox-2">Checked, Disabled Dymanic</label>';
+               $('#checkpage').find(":jqmData(role=controlgroup)").append( markup ) ;
+               $('#checkpage').find(":jqmData(role=controlgroup)").trigger('create') ;
+               unit_check( $("#checkbox-2"), "Checked, Disabled Dymanic");
+       } );
+
+       test("checkbox - Disabled Dynamic", function ( ) {
+               var markup;
+               //remove all controls form content
+               $('#checkpage').find(":jqmData(role=controlgroup)").empty( );
+
+               markup = '<input type= "checkbox"name= "checkbox-3"id= "checkbox-3"disabled= "true"/><label for= "checkbox-3">Disabled Dynamic</label>';
+               $('#checkpage').find(":jqmData(role=controlgroup)").append( markup ) ;
+               $('#checkpage').find(":jqmData(role=controlgroup)").trigger('create') ;
+               unit_check( $("#checkbox-3"), "Disabled Dynamic");
+       } );
+
+       test("Favorite - Favorite Dynamic", function ( ) {
+               var markup;
+               //remove all controls form content
+               $('#checkpage').find(":jqmData(role=controlgroup)").empty( );
+
+               markup = '<input type= "checkbox"name= "checkbox-4"id= "checkbox-4"class= "favorite"/><label for= "checkbox-4">Favorite Dynamic</label>';
+               $('#checkpage').find(":jqmData(role=controlgroup)").append( markup ) ;
+               $('#checkpage').find(":jqmData(role=controlgroup)").trigger('create') ;
+               unit_check( $("#checkbox-4"), "Favorite Dynamic");
+       } );
+
+       test("Favorite - Favorite Checked, Disabled Dynamic", function ( ) {
+               var markup;
+               //remove all controls form content
+               $('#checkpage').find(":jqmData(role=controlgroup)").empty( );
+
+               markup = '<input type= "checkbox"name= "checkbox-5"id= "checkbox-5"checked= "checked"disabled= "true"class= "favorite"/><label for= "checkbox-5">Favorite Checked, Disabled Dynamic</label>';
+               $('#checkpage').find(":jqmData(role=controlgroup)").append( markup ) ;
+               $('#checkpage').find(":jqmData(role=controlgroup)").trigger('create') ;
+               unit_check( $("#checkbox-5"), "Favorite Checked, Disabled Dynamic");
+       } );
+
+       test("Favorite - Favorite, Disabled Dynamic", function ( ) {
+               var markup;
+               //remove all controls form content
+               $('#checkpage').find(":jqmData(role=controlgroup)").empty( );
+
+               markup = '<input type= "checkbox"name= "checkbox-6"id= "checkbox-6"disabled= "disabled"class= "favorite"/><label for= "checkbox-6">Favorite, Disabled Dynamic</label>';
+               $('#checkpage').find(":jqmData(role=controlgroup)").append( markup ) ;
+               $('#checkpage').find(":jqmData(role=controlgroup)").trigger('create') ;
+               unit_check( $("#checkbox-6"), "Favorite, Disabled Dynamic");
+       } );
+
+} );
diff --git a/tct-webuifw-tests/tests/unit-tests/check/index.html b/tct-webuifw-tests/tests/unit-tests/check/index.html
new file mode 100644 (file)
index 0000000..68f3e5d
--- /dev/null
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+       <script src="check-tests.js"></script>
+
+       <title>Check</title>
+</head>
+
+<body>
+
+<h1 id="qunit-header">Check</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests"></ol>
+
+<div id="qunit-fixture">
+       <div data-role="page" id="checkpage">
+               <div data-role="header" data-position="fixed">
+                       <h1>Checkbox</h1>
+               </div>
+               <div data-role="contents">
+                       <fieldset data-role="controlgroup">
+                       <input type="checkbox" name="checkbox-1" id="checkbox-1"/>
+                       <label for="checkbox-1">Normal</label>
+                       <input type="checkbox" name="checkbox-2" id="checkbox-2" checked="checked" disabled="true"/>
+                       <label for="checkbox-2">Checked, Disabled</label>
+                       <input type="checkbox" name="checkbox-3" id="checkbox-3" disabled="true"/>
+                       <label for="checkbox-3">Disabled</label>
+
+                       <input type="checkbox" name="checkbox-4" id="checkbox-4" class="favorite"/>
+                       <label for="checkbox-4">Favorite</label>
+                       <input type="checkbox" name="checkbox-5" id="checkbox-5" checked="checked" disabled="true" class="favorite"/>
+                       <label for="checkbox-5">Favorite Checked, Disabled</label>
+                       <input type="checkbox" name="checkbox-6" id="checkbox-6" disabled="disabled" class="favorite"/>
+                       <label for="checkbox-6">Favorite, Disabled</label>
+                       </fieldset>
+               </div>
+       </div>
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/collapsible/collapsible-tests.js b/tct-webuifw-tests/tests/unit-tests/collapsible/collapsible-tests.js
new file mode 100644 (file)
index 0000000..f2e9ca0
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * collapse unit tests
+ */
+
+(function ($) {
+       module( "collapse test" );
+
+       var unit_collapse = function ( widget ) {
+               var created_collapse = widget.collapsible(),
+                       obj_collapse = created_collapse.data( "collapsible" );
+
+               ok( created_collapse, "Create" );
+
+               /* Check Option */
+               equal( obj_collapse.options.expandCueText, " Expandable list, tap to open list", "Collapsed test -> expandCueText" );
+               equal( obj_collapse.options.collapseCueText, " Expandable list, tap to close list", "Collapsed test -> collapseCueText" );
+               equal( obj_collapse.options.collapsed, true, "Collapsed test -> collapsed" );
+               equal( obj_collapse.options.heading, "h1,h2,h3,h4,h5,h6,legend,li", "Collapsed test -> heading" );
+               equal( obj_collapse.options.theme, 's', "Collapsed test -> theme" );
+               equal( obj_collapse.options.contentTheme, null, "Collapsed test -> contentTheme" );
+
+               /* Check event */
+               created_collapse.trigger("collpase");
+               equal( created_collapse.hasClass("ui-collapsible-collapsed") , true, "API test -> collapse" );
+
+               created_collapse.trigger("expand");
+               equal( created_collapse.hasClass("ui-collapsible-collapsed") , false, "API test -> expand" );
+       };
+
+       test( "collapse test", function () {
+               unit_collapse( $("#collapsedContent") );
+       });
+})(jQuery);
diff --git a/tct-webuifw-tests/tests/unit-tests/collapsible/index.html b/tct-webuifw-tests/tests/unit-tests/collapsible/index.html
new file mode 100644 (file)
index 0000000..4699627
--- /dev/null
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+
+  <script src="collapsible-tests.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Collapsible Tests</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div data-nstest-role="page" data-add-back-btn="true">
+       <div data-nstest-role="header" data-nstest-position="fixed">
+               <h1>Collapsible test</h1>
+       </div>
+       <div data-nstest-role="content">
+               <div data-role="collapsible" id="collapsedContent">
+                        <h3>I'm a header</h3>
+                       <a>test</a>
+                       <p>Some content would be here</p>
+               </div>
+       </div>
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/core/core-tests.js b/tct-webuifw-tests/tests/unit-tests/core/core-tests.js
new file mode 100644 (file)
index 0000000..4d10169
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * Unit Test: Core
+ *
+ * Przemyslaw Ciezkowski <p.ciezkowski@samsung.com>
+ */
+
+$( "#corepage" ).live( "pageinit", function ( event ) {
+       module("Core");
+
+       test( "Disable text selection", function () {
+               var all = $( event.target ).find("*"),
+                       haveDisabled = all.not( "input, [type='text'], textarea" ),
+                       haveEnabled = all.filter( "input, [type='text'], textarea" );
+               $.mobile.tizen.disableSelection( $( event.target ) );
+
+               haveDisabled.each( function () {
+                       strictEqual( $(this).css( "user-select" ), "none" , "text disable selection test - none" );
+               } );
+
+               haveEnabled.each( function () {
+                       strictEqual( $(this).css( "user-select" ), "text"  , "text disable selection test - text");
+               } );
+       } );
+
+} );
\ No newline at end of file
diff --git a/tct-webuifw-tests/tests/unit-tests/core/index.html b/tct-webuifw-tests/tests/unit-tests/core/index.html
new file mode 100644 (file)
index 0000000..66340c8
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+       <script src="core-tests.js"></script>
+       <title>Core</title>
+</head>
+
+<body>
+
+<h1 id="qunit-header">Core</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests"></ol>
+
+<div id="qunit-fixture">
+       <div data-role="page" id="corepage">
+               <div data-role="header" data-position="fixed">
+                       <h1>Single-Page Application </h1>
+               </div><!-- /header -->
+
+               <div data-role="content">
+                       <p>This is a single page boilerplate template that you can copy to build your first Tizen Web UI Framework page.</p>
+                       <input type="text" />
+                       <input type="button" value="Test" />
+                       <button>Test</button>
+                       <textarea></textarea>
+               </div><!-- /content -->
+
+               <div data-role="footer" data-position="fixed">
+                       <h4>Footer content</h4>
+               </div><!-- /footer -->
+       </div><!-- /page -->
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/datetimepicker/datetimepicker-tests.js b/tct-webuifw-tests/tests/unit-tests/datetimepicker/datetimepicker-tests.js
new file mode 100644 (file)
index 0000000..45326a4
--- /dev/null
@@ -0,0 +1,497 @@
+/*jslint browser: true*/
+/*global $, jQuery, test, equal, ok, asyncTest, Globalize, start, stop, deepEqual, range*/
+$(document).ready( function () {
+
+       module( "Date Time Picker" );
+
+       var datetime,
+               date,
+               time,
+               custom,
+               make2digit,
+               isLeapYear,
+               getDay,
+               getCurDate,
+               objDatetime,
+               objDate,
+               objTime,
+               objCustom,
+               markup,
+               datetime2 ,
+               date2,
+               time2 ,
+               custom2 ,
+               objDatetime2,
+               objDate2 ,
+               objTime2,
+               objCustom2;
+
+       // trigger pagecreate
+       $( "#page-1" ).page();
+
+       datetime = $( "#datetime" )[0];
+       date = $( "#date" )[0];
+       time = $( "#time" )[0];
+       custom = $( "#custom" )[0];
+
+       make2digit = function (arr) {
+               var i, ret;
+               for ( i = 0;  i < arr.length;  i++ ) {
+                       arr[i] = arr[i].toString();
+                       ret = arr[i].toString(10);
+                       if ( arr[i] < 10 ) {
+                               arr[i] = "0" + arr[i];
+                       }
+               }
+               return arr;
+       } ;
+
+       isLeapYear = function ( year ) {
+               return year % 4 ? 0 : ( year % 100 ? 1 : ( year % 400 ? 0 : 1 ) );
+       } ;
+
+       getDay = function () {
+               var date = new Date( "May 2 18:30:00 2012" ),
+                       daysInMonth = [ 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ],
+                       day = daysInMonth[ date.getMonth() ];
+               if ( day == 28 ) {
+                       day += isLeapYear( date.getFullYear() );
+               }
+               return day;
+       } ;
+
+       getCurDate = function () {
+               var date = new Date( "May 2 18:30:00 2012" );
+               return date.getDate();
+       } ;
+
+       //Dymanically creating datetimepicker
+       objDatetime = $(datetime).data( "datetimepicker" );
+       objDate = $(date).data( "datetimepicker" );
+       objTime = $(time).data( "datetimepicker" );
+       objCustom = $(custom).data( "datetimepicker" );
+       markup = '<ul data-role="listview" id="datetimeList2">' +
+                                               '<li class="ui-li-2line-sub-main">' +
+                                                       '<span class="ui-li-text-main">' +
+                                                               '<input type="datetime" id="datetime2" />' +
+                                                       '</span>' +
+                                                       '<span class="ui-li-text-sub">DateTimePicker</span>' +
+                                               '</li>' +
+                                               '<li class="ui-li-2line-sub-main">' +
+                                                       '<span class="ui-li-text-main">' +
+                                                               '<input type="date" id="date2"/>' +
+                                                       '</span>' +
+                                                       '<span class="ui-li-text-sub">DatePicker</span>' +
+                                               '</li>' +
+                                               '<li class="ui-li-2line-sub-main">' +
+                                                       '<span class="ui-li-text-main">' +
+                                                               '<input type="time" id="time2"/>' +
+                                                       '</span>' +
+                                                       '<span class="ui-li-text-sub">TimePicker</span>' +
+                                               '</li>' +
+                                               '<li class="ui-li-2line-sub-main">' +
+                                                       '<span class="ui-li-text-main">' +
+                                                               '<input type="datetime" id="custom2" data-format="MMM dd yyyy hh:mm tt" value="2012-06-30T00:00:00+00:00" />' +
+                                                       '</span>' +
+                                                       '<span class="ui-li-text-sub">DateTimePicker</span>' +
+                                               '</li>' +
+                                       '</ul>';
+
+       // trigger pagecreate
+       $( "#page-1" ).page();
+       $('#page-1').find( ":jqmData(role=content)" ).append(markup);
+       $('#page-1').find( ":jqmData(role=content)" ).trigger('create');
+
+       datetime2 = $( "#datetime2" )[0];
+       date2 = $( "#date2" )[0];
+       time2 = $( "#time2" )[0];
+       custom2 = $( "#custom2" )[0];
+
+       objDatetime2 = $(datetime2).data( "datetimepicker" );
+       objDate2 = $(date2).data( "datetimepicker" );
+       objTime2 = $(time2).data( "datetimepicker" );
+       objCustom2 = $(custom2).data( "datetimepicker" );
+       /* End of dynamic creation*/
+
+       asyncTest( "Auto-initialization", function () {
+               ok( objDatetime, "should Date/Time instace created" );
+               ok( objDate, "should Date instance created" );
+               ok( objTime, "should Time instance created" );
+               ok( objCustom, "should Custom format instance created" );
+               start();
+       });
+
+       asyncTest( "Options", function () {
+               equal( objDatetime.options.type, "datetime", "should 'datetime' type created." );
+               equal( objDate.options.type, "date", "should 'date' type created." );
+               equal( objTime.options.type, "time", "should 'time' type created." );
+               equal( objCustom.options.type, "datetime", "should custom format created as 'datetime' type." );
+               equal( objCustom.options.format, "MMM dd yyyy hh:mm tt", "should accept custom format string." );
+               equal( objCustom.options.date.toString(), new Date( "Jun 30 00:00:00 UTC+0000 2012" ).toString(), "should accept preset date." );
+               start();
+       });
+
+       asyncTest( "Private Methods", function () {
+               var months, updateFieldTest ;
+               ok( ( function () {
+                       var year = 0,
+                               expect = false,
+                               actual = false;
+
+                       try {
+                               for ( year = 1;  year < 2100;  year++ ) {
+                                       expect = new Date( year, 1, 29 ).getDate() == 29;
+                                       actual = objDatetime._isLeapYear( year );
+                                       if ( expect != actual ) {
+                                               throw year + " is wrong";
+                                       }
+                               }
+                       } catch ( exception ) {
+                               console.log( exception );
+                               return false;
+                       }
+                       return true;
+               }()), "should be able to check leap year" );
+
+               updateFieldTest = function ( format, value, obj, expect ) {
+                       var target = $('<div data-pat=' + format + '></div>');
+                       obj._updateField( target, value );
+
+                       return target.text();
+               } ;
+
+               deepEqual(
+                       [
+                               updateFieldTest( "h", 0, objTime2 ),
+                               updateFieldTest( "hh", 1, objTime2 ),
+                               updateFieldTest( "H", 13 , objTime2),
+                               updateFieldTest( "HH", 9, objTime2 ),
+                               updateFieldTest( "m", 9, objTime2 ),
+                               updateFieldTest( "mm", 9 , objTime2),
+                               updateFieldTest( "s", 1, objTime2 ),
+                               updateFieldTest( "ss", 10 , objTime2),
+                               updateFieldTest( "MMM", 3 , objTime2),
+                               updateFieldTest( "MMMM", 3, objTime2 ),
+                               updateFieldTest( "yy", 95, objTime2 ),
+                               updateFieldTest( "yyyy", 95, objTime2 )
+                       ],
+                       [
+                               "12", "01", "13", "09", "9", "09", "1" , "10", Globalize.culture().calendar.months.namesAbbr[2], Globalize.culture().calendar.months.names[2], "95", "0095"
+                       ],
+                       "should update field to given value with format"
+               );
+
+               deepEqual(
+                       [
+                               updateFieldTest( "h", 0, objDate2),
+                               updateFieldTest( "hh", 1, objDate2 ),
+                               updateFieldTest( "H", 13 , objDate2),
+                               updateFieldTest( "HH", 9, objDate2 ),
+                               updateFieldTest( "m", 9, objDate2 ),
+                               updateFieldTest( "mm", 9, objDate2 ),
+                               updateFieldTest( "s", 1, objDate2 ),
+                               updateFieldTest( "ss", 10 , objDate2),
+                               updateFieldTest( "MMM", 3 , objDate2),
+                               updateFieldTest( "MMMM", 3 , objDate2),
+                               updateFieldTest( "yy", 9, objDate2 ),
+                               updateFieldTest( "yyyy", 9, objDate2 )
+                       ],
+                       [
+                               "12", "01", "13", "09", "9", "09", "1" , "10", Globalize.culture().calendar.months.namesAbbr[2], Globalize.culture().calendar.months.names[2], "09", "0009"
+                       ],
+                       "should update field to given value with format"
+               );
+
+               ok( ( function () {
+                       var beforeNoon = objTime.options.date.getHours() < 12;
+                       objTime._switchAmPm();
+                       return beforeNoon != objTime.options.date.getHours() < 12;
+               }()), "should change AM/PM by AMPM button" );
+
+               deepEqual( [ "MMMM", " ", "dd", " ", "yyyy", " ", "hh", ":", "mm", " ", "dummy space" ],
+                       objTime._parsePattern( "MMMM dd yyyy hh:mm 'dummy space'" ), "should parse DTF string as array" );
+
+               objDatetime.options.date = new Date( "May 2 18:30:00 2012" );
+
+               months = Globalize.culture().calendar.months.namesAbbr.slice();
+               if ( months.length > 12 ) {
+                       months.length = 12;
+               }
+
+
+               deepEqual(
+                       [
+                               {
+                                       values : make2digit( range( 1, getDay() )),
+                                       data : range( 1, getDay() ),
+                                       current : getCurDate() - 1,
+                                       numItems : getDay()
+                               },
+                               {
+                                       values : make2digit (range( 0, 59 )),
+                                       data : range(0, 59),
+                                       numItems : 60,
+                                       current : 0
+                               },
+                               {
+                                       values : range( 1900, 2100 ),
+                                       data : range( 1900, 2100 ),
+                                       numItems : 201,
+                                       current : 112
+                               },
+                               { // hour h 6
+                                       values : [ "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12" ],
+                                       data : [ 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 12 ],
+                                       numItems : 12,
+                                       current : 5
+                               },
+                               { // hour H 6
+                                       values : range( 0, 23 ),
+                                       data : range( 0, 23 ),
+                                       numItems : 24,
+                                       current : 18
+                               },
+                               {
+                                       values : months,
+                                       data : range( 1, 12 ),
+                                       numItems : 12,
+                                       current : 4
+                               },
+
+                       ],
+                       [
+                               objDatetime._populateDataSelector( "day", "dd", objDatetime ),
+                               objDatetime._populateDataSelector( "sec", "ss", objDatetime ),
+                               objDatetime._populateDataSelector( "year", "YYYY", objDatetime ),
+                               objDatetime._populateDataSelector( "hour", "hh", objDatetime ),
+                               objDatetime._populateDataSelector( "hour", "H", objDatetime ),
+                               objDatetime._populateDataSelector( "month", "MMM", objDatetime ),
+
+                       ],
+                       "should populate data selector by given field and pattern"
+               );
+
+               /*date Value Api*/
+               objDate.value( "Jan 1 09:00:00 2012" );
+               equal(objDate.value( ) , "2012-01-01" , "Set and get value for date" );
+
+               /*date Value Api*/
+               objTime.value( "Jan 1 09:00:00 2012" );
+               equal(objTime.value( ) , "09:00:00" , "Set and get value for time" );
+               start();
+       });
+
+       asyncTest( "Public Methods", function () {
+               objDatetime.value.call( objDatetime, "Jan 1 09:00:00 2012" );
+               equal( "2012-01-01T09:00:00", objDatetime.value(), "should set and get value by API" );
+               var format = "yyyy MM dd hh mm";
+               objDatetime._setFormat( format );
+               equal( objDatetime.option( "format" ), format, "should set type and format" );
+               start();
+       });
+
+       asyncTest( "Events", function () {
+               var str = "May 2 18:00:00 2012";
+
+               $(datetime).bind( "date-changed", function (e, date) {
+                       equal( objDatetime.value(), "2012-05-02T18:00:00", "Should invoke event when date changed" );
+                       start();
+               });
+
+               objDatetime.value( str );
+       });
+
+
+       asyncTest( "Auto-initialization Dynamic", function () {
+               ok( objDatetime2, "should Date/Time instace created" );
+               ok( objDate2, "should Date instance created" );
+               ok( objTime2, "should Time instance created" );
+               ok( objCustom2, "should Custom format instance created" );
+               start();
+       });
+
+       asyncTest( "Options Dynamic", function () {
+               equal( objDatetime2.options.type, "datetime", "should 'datetime' type created." );
+               equal( objDate2.options.type, "date", "should 'date' type created." );
+               equal( objTime2.options.type, "time", "should 'time' type created." );
+               equal( objCustom2.options.type, "datetime", "should custom format created as 'datetime' type." );
+               equal( objCustom2.options.format, "MMM dd yyyy hh:mm tt", "should accept custom format string." );
+               equal( objCustom2.options.date.toString(), new Date( "Jun 30 00:00:00 UTC+0000 2012" ).toString(), "should accept preset date." );
+
+               start();
+       });
+
+       asyncTest( "Private Methods Dynamic", function () {
+               var months, updateFieldTest ;
+               ok( ( function () {
+                       var year = 0,
+                               expect = false,
+                               actual = false;
+
+                       try {
+                               for ( year = 1;  year < 2100;  year++ ) {
+                                       expect = new Date( year, 1, 29 ).getDate() == 29;
+                                       actual = objDatetime2._isLeapYear( year );
+                                       if ( expect != actual ) {
+                                               throw year + " is wrong";
+                                       }
+                               }
+                       } catch ( exception ) {
+                               console.log( exception );
+                               return false;
+                       }
+                       return true;
+               }()), "should be able to check leap year" );
+
+               updateFieldTest = function ( format, value, obj, expect ) {
+                       var target = $('<div data-pat=' + format + '></div>');
+                       obj._updateField( target, value );
+
+                       return target.text();
+               } ;
+
+               deepEqual(
+                       [
+                               updateFieldTest( "h", 0, objTime2 ),
+                               updateFieldTest( "hh", 1, objTime2 ),
+                               updateFieldTest( "H", 13 , objTime2),
+                               updateFieldTest( "HH", 9, objTime2 ),
+                               updateFieldTest( "m", 9, objTime2 ),
+                               updateFieldTest( "mm", 9 , objTime2),
+                               updateFieldTest( "s", 1, objTime2 ),
+                               updateFieldTest( "ss", 10 , objTime2),
+                               updateFieldTest( "MMM", 3 , objTime2),
+                               updateFieldTest( "MMMM", 3, objTime2 ),
+                               updateFieldTest( "yy", 95, objTime2 ),
+                               updateFieldTest( "yyyy", 95, objTime2 )
+                       ],
+                       [
+                               "12", "01", "13", "09", "9", "09", "1" , "10", Globalize.culture().calendar.months.namesAbbr[2], Globalize.culture().calendar.months.names[2], "95", "0095"
+                       ],
+                       "should update field to given value with format"
+               );
+
+               deepEqual(
+                       [
+                               updateFieldTest( "h", 0, objDate2),
+                               updateFieldTest( "hh", 1, objDate2 ),
+                               updateFieldTest( "H", 13 , objDate2),
+                               updateFieldTest( "HH", 9, objDate2 ),
+                               updateFieldTest( "m", 9, objDate2 ),
+                               updateFieldTest( "mm", 9, objDate2 ),
+                               updateFieldTest( "s", 1, objDate2 ),
+                               updateFieldTest( "ss", 10 , objDate2),
+                               updateFieldTest( "MMM", 3 , objDate2),
+                               updateFieldTest( "MMMM", 3 , objDate2),
+                               updateFieldTest( "yy", 9, objDate2 ),
+                               updateFieldTest( "yyyy", 9, objDate2 )
+                       ],
+                       [
+                               "12", "01", "13", "09", "9", "09", "1" , "10", Globalize.culture().calendar.months.namesAbbr[2], Globalize.culture().calendar.months.names[2], "09", "0009"
+                       ],
+                       "should update field to given value with format"
+               );
+
+               ok( ( function () {
+                       var beforeNoon = objTime2.options.date.getHours() < 12;
+                       objTime2._switchAmPm();
+                       return beforeNoon != objTime2.options.date.getHours() < 12;
+               }()), "should change AM/PM by AMPM button" );
+
+               deepEqual(
+                       [ "MMMM", " ", "dd", " ", "yyyy", " ", "hh", ":", "mm", " ", "dummy space" ],
+                       objTime2._parsePattern( "MMMM dd yyyy hh:mm 'dummy space'" ),
+                       "should parse DTF string as array"
+               );
+
+               objDatetime2.options.date = new Date( "May 2 18:30:00 2012" );
+
+               months = Globalize.culture().calendar.months.namesAbbr.slice();
+               if ( months.length > 12 ) {
+                       months.length = 12;
+               }
+
+               deepEqual(
+                       [
+                               {
+                                       values : make2digit( range( 1, getDay() )),
+                                       data : range( 1, getDay() ),
+                                       current : getCurDate() - 1,
+                                       numItems : getDay()
+                               },
+                               {
+                                       values : make2digit (range( 0, 59 )),
+                                       data : range(0, 59),
+                                       numItems : 60,
+                                       current : 0
+                               },
+                               {
+                                       values : range( 1900, 2100 ),
+                                       data : range( 1900, 2100 ),
+                                       numItems : 201,
+                                       current : 112
+                               },
+                               { // hour h 6
+                                       values : [ "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12" ],
+                                       data : [ 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 12 ],
+                                       numItems : 12,
+                                       current : 5
+                               },
+                               { // hour H 6
+                                       values : range( 0, 23 ),
+                                       data : range( 0, 23 ),
+                                       numItems : 24,
+                                       current : 18
+                               },
+                               {
+                                       values : months,
+                                       data : range( 1, 12 ),
+                                       numItems : 12,
+                                       current : 4
+                               },
+
+                       ],
+                       [
+                               objDatetime2._populateDataSelector( "day", "dd", objDatetime2 ),
+                               objDatetime2._populateDataSelector( "sec", "ss", objDatetime2 ),
+                               objDatetime2._populateDataSelector( "year", "YYYY", objDatetime2 ),
+                               objDatetime2._populateDataSelector( "hour", "hh", objDatetime2 ),
+                               objDatetime2._populateDataSelector( "hour", "H", objDatetime2 ),
+                               objDatetime2._populateDataSelector( "month", "MMM", objDatetime2 ),
+
+                       ],
+                       "should populate data selector by given field and pattern"
+               );
+
+               /*date Value Api*/
+               objDate2.value( "Jan 1 09:00:00 2012" );
+               equal(objDate2.value( ) , "2012-01-01" , "Set and get value for date" );
+
+               /*date Value Api*/
+               objTime2.value( "Jan 1 09:00:00 2012" );
+               equal(objTime2.value( ) , "09:00:00" , "Set and get value for time" );
+
+               start();
+       });
+
+       asyncTest( "Public Methods Dynamic", function () {
+               objDatetime2.value.call( objDatetime2, "Jan 1 09:00:00 2012" );
+               equal( "2012-01-01T09:00:00", objDatetime2.value(), "should set and get value by API" );
+               var format = "yyyy MM dd hh mm";
+               objDatetime2._setFormat( format );
+               equal( objDatetime2.option( "format" ), format, "should set type and format" );
+               start();
+       });
+
+       asyncTest( "Events Dynamic", function () {
+               var str = "May 2 18:00:00 2012";
+               $(datetime2).bind( "date-changed", function (e, date) {
+                       equal( objDatetime2.value(), "2012-05-02T18:00:00", "Should invoke event when date changed" );
+                       start();
+               });
+
+               objDatetime2.value( str );
+       });
+
+
+});
diff --git a/tct-webuifw-tests/tests/unit-tests/datetimepicker/index.html b/tct-webuifw-tests/tests/unit-tests/datetimepicker/index.html
new file mode 100644 (file)
index 0000000..18b2108
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+       <script src="datetimepicker-tests.js"></script>
+
+       <title>Date Time Picker</title>
+</head>
+
+<body>
+
+<h1 id="qunit-header">Date Time Picker</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests"></ol>
+
+<div id="qunit-fixture">
+       <div data-role="page" id="dummy-page">
+               <div data-role="header" data-position="fixed">
+                       <h1>Dummy</h1>
+               </div>
+               <div data-role="contents">
+               </div>
+       </div>
+       <div data-role="page" id="page-1">
+               <div data-role="header" data-position="fixed">
+                       <h1>Date Time Picker</h1>
+               </div>
+               <div data-role="content">
+                       <ul data-role="listview">
+                               <li class="ui-li-2line-sub-main">
+                                       <span class="ui-li-text-main">
+                                               <input type="datetime" id="datetime" />
+                                       </span>
+                                       <span class="ui-li-text-sub">DateTimePicker</span>
+                               </li>
+                               <li class="ui-li-2line-sub-main">
+                                       <span class="ui-li-text-main">
+                                               <input type="date" id="date"/>
+                                       </span>
+                                       <span class="ui-li-text-sub">DatePicker</span>
+                               </li>
+                               <li class="ui-li-2line-sub-main">
+                                       <span class="ui-li-text-main">
+                                               <input type="time" id="time"/>
+                                       </span>
+                                       <span class="ui-li-text-sub">TimePicker</span>
+                               </li>
+                               <li class="ui-li-2line-sub-main">
+                                       <span class="ui-li-text-main">
+                                               <input type="datetime" id="custom" data-format="MMM dd yyyy hh:mm tt" value="2012-06-30T00:00:00+00:00" />
+                                       </span>
+                                       <span class="ui-li-text-sub">DateTimePicker</span>
+                               </li>
+                       </ul>
+               </div>
+       </div>
+
+</div>
+
+</body>
+</html>
+
diff --git a/tct-webuifw-tests/tests/unit-tests/dayselector/dayselector-tests.js b/tct-webuifw-tests/tests/unit-tests/dayselector/dayselector-tests.js
new file mode 100644 (file)
index 0000000..853bf13
--- /dev/null
@@ -0,0 +1,158 @@
+/*
+ * Unit Test: Dayselector
+ * modified by : Koeun Choi <koeun.choi@samsung.com>
+ */
+
+(function ($) {
+
+       module( "Day selector" );
+
+       var unit_dayselector = function (elt, expectedType, expectedTheme) {
+               var days = 7,
+                       checkbox,
+                       label,
+                       expectedId,
+                       i;
+
+               elt.dayselector();
+
+               ok( elt.hasClass('ui-dayselector'), "day-selector has 'ui-dayselector' class.");
+               // main element should be a controlgroup
+               ok( elt.hasClass('ui-controlgroup'), "day-selector has 'ui-controlgroup' class." );
+
+               equal( elt.attr('data-' + $.mobile.ns + 'type'), expectedType, "should have '" + expectedType + "' type" );
+
+               for ( i = 0; i < days ; i++ ) {
+                       expectedId = elt.attr( 'id' ) + '_' + i;
+                       checkbox = elt.find( '.ui-checkbox :checkbox[value=' + i + '][id=' + expectedId + ']' );
+                       equal( checkbox.length, 1, "should be one checkbox per day" );
+                       equal( checkbox.prop('value'), String(i), "should have correct day value" );
+
+                       label = checkbox.siblings().first();
+                       equal( label.length, 1, "should be one label per day" );
+                       equal( label.attr('for'), expectedId, "should associate correctly with checkbox" );
+                       ok( label.hasClass('ui-dayselector-label-' + i), "should have the right label class" );
+                       equal( label.jqmData('theme'), expectedTheme, "should have '" + expectedTheme + "' theme" );
+               }
+       };
+
+       /* Test 1. Default Configuration Check */
+       asyncTest( "Default Configuration Check", function () {
+
+               $.testHelper.pageSequence( [
+                       function () {
+                               $.testHelper.openPage( '#dayselector-test-configuration' );
+                       },
+
+                       function () {
+                               var expectedType = 'horizontal',
+                                       testPage = $( '#dayselector-test-configuration' ),
+                                       expectedTheme = 's',
+                                       daySelector;
+
+                               // test default values are applied correctly
+                               daySelector = testPage.find( '#dayselector-test-configuration-default' );
+                               unit_dayselector( daySelector, expectedType, expectedTheme );
+
+                               start();
+                       }
+               ]);
+       });
+
+       /* Test 2. Theme Configuration Check */
+       asyncTest( "Theme Configuration Check", function () {
+
+               $.testHelper.pageSequence( [
+                       function () {
+                               $.testHelper.openPage( '#dayselector-test-configuration' );
+                       },
+
+                       function () {
+                               var expectedType = 'horizontal',
+                                       testPage = $( '#dayselector-test-configuration' ),
+                                       expectedTheme,
+                                       daySelector;
+
+                               // test user theme is applied to dayselector winset correctly
+                               daySelector = testPage.find( '#dayselector-test-configuration-theme' );
+                               daySelector.dayselector();
+                               expectedTheme = daySelector.jqmData( 'theme' );
+                               equal( expectedTheme, 'a', "dayselector fieldset theme is 'a'" );
+                               unit_dayselector( daySelector, expectedType, expectedTheme );
+
+                               start();
+                       }
+
+               ]);
+       });
+
+       /* Test 3. Custom Configuration Check */
+       asyncTest( "Custom Configuration Check", function () {
+
+               $.testHelper.pageSequence( [
+                       function () {
+                               $.testHelper.openPage( '#dayselector-test-configuration' );
+                       },
+
+                       function () {
+                               var expectedType = 'vertical',
+                                       testPage = $( '#dayselector-test-configuration' ),
+                                       expectedTheme = 'a',
+                                       daySelector;
+
+                               // test custom config is applied correctly
+                               daySelector = testPage.find( '#dayselector-test-configuration-custom' );
+
+                               daySelector.dayselector({ type: expectedType, theme: expectedTheme });
+                               unit_dayselector(daySelector, expectedType, expectedTheme );
+
+                               start();
+                       }
+
+               ]);
+       });
+
+       /* Test 4. Check Event and APIs */
+       asyncTest( "Check Event and APIs", function () {
+
+               $.testHelper.pageSequence([
+                       function () {
+                               $.testHelper.openPage( '#dayselector-test-select' );
+                       },
+
+                       function () {
+                               var testPage,
+                                       daySelectorElem,
+                                       wednesday,
+                                       friday;
+                               testPage = $( '#dayselector-test-select' );
+                               ok( testPage.hasClass('ui-page-active') );
+
+                               // test defaults are applied correctly
+                               daySelectorElem = testPage.find( '#dayselector-test-select-1' );
+
+                               // nothing should be selected yet
+                               deepEqual( daySelectorElem.dayselector('value'), [] );
+
+                               // click on Wednesday and Friday to switch them on
+                               wednesday = daySelectorElem.find( '.ui-checkbox' )[3];
+                               $( wednesday ).find( 'label' ).trigger( 'click' );
+
+                               friday = daySelectorElem.find( '.ui-checkbox' )[5];
+                               $( friday ).find( 'label' ).trigger( 'click' );
+                               deepEqual( daySelectorElem.dayselector('value'), ['3', '5'] );
+
+                               // turn off Wednesday and Friday
+                               $( wednesday ).find( 'label' ).trigger( 'click' );
+                               $( friday ).find( 'label' ).trigger( 'click' );
+                               deepEqual( daySelectorElem.dayselector('value'), [] );
+
+                               // test the selectAll() method
+                               daySelectorElem.dayselector( 'selectAll' );
+                               deepEqual( daySelectorElem.dayselector('value'), ['0', '1', '2', '3', '4', '5', '6'] );
+
+                               start();
+                       }
+               ]);
+       });
+})(jQuery);
diff --git a/tct-webuifw-tests/tests/unit-tests/dayselector/index.html b/tct-webuifw-tests/tests/unit-tests/dayselector/index.html
new file mode 100644 (file)
index 0000000..c84e516
--- /dev/null
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <title>jQuery Mobile Day Selector Tests</title>
+
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="../../../libs/js/jquery-mobile-1.1.0/tests/unit/jquery.setNameSpace.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+       <script src="dayselector-tests.js"></script>
+       </head>
+       <body>
+
+       <h1 id="qunit-header">jQuery Mobile Day Selector Tests</h1>
+       <h2 id="qunit-banner"></h2>
+       <h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div data-nstest-role="page" id="dayselector-test-configuration">
+       <div data-nstest-role="header" data-nstest-position="inline">
+               <h1>Day Selector Tests - configuration</h1>
+       </div>
+       <div data-nstest-role="content">
+         <fieldset id="dayselector-test-configuration-default" data-nstest-role="dayselector"> </fieldset>
+         <fieldset id="dayselector-test-configuration-theme" data-nstest-theme="a" data-nstest-role="dayselector"></fieldset>
+         <fieldset id="dayselector-test-configuration-custom"></fieldset>
+       </div>
+</div>
+
+<div data-nstest-role="page" id="dayselector-test-select">
+       <div data-nstest-role="header" data-nstest-position="inline">
+               <h1>Day Selector Tests - selection</h1>
+       </div>
+       <div data-nstest-role="content">
+         <fieldset id="dayselector-test-select-1" data-nstest-role="dayselector"></fieldset>
+       </div>
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/ensurens/ensurens-tests.js b/tct-webuifw-tests/tests/unit-tests/ensurens/ensurens-tests.js
new file mode 100644 (file)
index 0000000..d539e7c
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+ * Unit Test: EnsureNS
+ *
+ * Krzysztof Antoszek <k.antoszek@samsung.com>
+ */
+
+
+$(document).ready(function () {
+       module("ensureNS");
+       test("ensureNS test", function () {
+               var obj = {
+                               "prop1": true,
+                               "prop2": 1
+                       };
+
+               // # TEST 1
+               equal(!!(window.ensure && window.ensure.tests && window.ensure.tests.leaf1), false , " window ensure property test" );
+
+               ensureNS('window.ensure.tests.leaf1');
+
+               // # TEST 2
+               equal(!!(window.ensure && window.ensure.tests && window.ensure.tests.leaf1), true , " window ensure property test" );
+
+               window.ensure.tests.leaf1 = obj;
+
+               ensureNS('window.ensure.tests.leaf1.leaf2');
+
+               // # TEST 3
+               equal(typeof window.ensure.tests.leaf1.leaf2, "object" , "window ensure equal test" );
+
+               // # TEST 4
+               deepEqual(window.ensure.tests.leaf1, obj, "window ensure deep equal test" );
+       });
+});
\ No newline at end of file
diff --git a/tct-webuifw-tests/tests/unit-tests/ensurens/index.html b/tct-webuifw-tests/tests/unit-tests/ensurens/index.html
new file mode 100644 (file)
index 0000000..d87a67d
--- /dev/null
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+       <head>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+                       data-framework-theme="tizen-white">
+               </script>
+               <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+               <script src="../../../libs/js/qunit/qunit.js"></script>
+               <script src="../../../demos/tizen-winsets/widgets/list/virtuallist-db-demo.js"></script>
+               <script src="ensurens-tests.js"></script>
+               <title>ensureNS</title>
+       </head>
+
+       <body>
+               <h1 id="qunit-header">Extendablelist</h1>
+               <h2 id="qunit-banner"></h2>
+               <div id="qunit-testrunner-toolbar"></div>
+               <h2 id="qunit-userAgent"></h2>
+               <ol id="qunit-tests"></ol>
+
+               <div id="qunit-fixture"></div>
+       </body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/extendablelist/extendablelist-tests.js b/tct-webuifw-tests/tests/unit-tests/extendablelist/extendablelist-tests.js
new file mode 100755 (executable)
index 0000000..208399d
--- /dev/null
@@ -0,0 +1,116 @@
+/*
+ * Unit Test: Extendable list
+ *
+ * Wongi Lee <wongi11.lee@samsung.com>
+ */
+
+$( document ).ready( function () {
+
+       module( "Extendable List");
+
+       function startExtendableListTest(){
+               var $elContainer = $( "ul#extendable_list_main" ),
+                       $elElements = $( "ul#extendable_list_main li" ),
+                       elOptions = $( "ul#extendable_list_main" ).extendablelist( "option" );
+               console.dir( elOptions );
+
+               test( "Extendable list test", function () {
+                       /* Initialize and create method */
+                       ok( $elContainer );
+                       equal( $elElements.length, 51 );        /* 50 <li> items + one button. */
+
+                       /* Options */
+                       equal( elOptions.id, "#extendable_list_main" );
+                       equal( elOptions.childSelector, " li" );
+                       equal( elOptions.template, "tmp-1line" );
+                       equal( elOptions.extenditems, 50 );
+                       equal( elOptions.scrollview, true );
+
+                       /* Click Load more button */
+                       /*
+                       ok ( ( function () {
+                               $( "#load_more_message" ).click();
+
+                               $elElements = $( "ul#extendable_list_main li" );
+                               console.log( $elElements.length );
+
+                               try {
+                                       equal ( $elElements.length, 101 );
+                               } catch ( exception ) {
+                                       console.log( "click load more button  : " + exception );
+                                       return false;
+                               }
+                               return true;
+                       }() ), "Click Load More button()" );
+                       */
+                       ok ( ( function () {
+                               var i = 0,
+                                       newJSON = new Array(),
+                                       newItem,
+                                       firstLI,
+                                       result = true;
+
+                               /* make short JSON array */
+                               for ( i = 0; i < 200; i++ ) {
+                                       newJSON.push( window.JSON_DATA[ ( i + 100 ) ] );
+                               }
+
+                               /* Call recreate */
+                               $( "ul#extendable_list_main" ).extendablelist( "recreate", newJSON );
+
+                               $elContainer = $( "ul#extendable_list_main" );
+                               $elElements = $( "ul#extendable_list_main li" );
+
+                               /* Check new List */
+                               ok( $elContainer );
+                               equal( $elElements.length, 51 );        /* 50 <li> items + one button. */
+
+                               newItem = window.JSON_DATA[ 100 ];
+
+                               firstLI = $( "ul#extendable_list_main li:first" );
+
+                               try {
+                                       equal( newItem.NAME, $( firstLI ).find( "span.ui-li-text-main" ).text() );
+                               } catch ( exception ) {
+                                       console.log( exception );
+                                       return false;
+                               }
+
+                               return true;
+                       }() ), "recreate()" );
+
+                       /* Destroy method */
+                       ok ( ( function () {
+                               /* Call destroy */
+                               $( "ul#extendable_list_main" ).extendablelist( "destroy" );
+
+                               var destoyedelElements = $( "ul#extendable_list_main li" );
+                               console.log( destoyedelElements.length );
+
+                               try {
+                                       equal ( destoyedelElements.length, 0 );
+                               } catch ( exception ) {
+                                       console.log( "destroy : " + exception );
+                                       return false;
+                               }
+                               return true;
+                       }() ), "destroy()" );
+               } );
+       }
+
+       /* Load Dummy Data and Init Extendable List widget*/
+       if ( window.JSON_DATA ) {
+               $( "ul" ).filter( function () {
+                       return $( this ).data( "role" ) == "extendablelist";
+               } ).addClass( "elLoadSuccess" );
+
+               // trigger pagecreate
+               $( "#extendablelist-unit-test" ).page();
+
+               $( "ul#extendable_list_main" ).extendablelist( "create" );
+
+               startExtendableListTest();
+       } else {
+               console.log ( "Extendable List Init Fail." );
+       }
+} );
diff --git a/tct-webuifw-tests/tests/unit-tests/extendablelist/index.html b/tct-webuifw-tests/tests/unit-tests/extendablelist/index.html
new file mode 100755 (executable)
index 0000000..f04c6ed
--- /dev/null
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html>
+       <head>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+                       data-framework-theme="tizen-white">
+               </script>
+               <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+               <script src="../../../libs/js/qunit/qunit.js"></script>
+               <script src="../../../demos/tizen-winsets/widgets/list/virtuallist-db-demo.js"></script>
+               <script src="extendablelist-tests.js"></script>
+               <title>Extendable</title>
+       </head>
+
+       <body>
+               <h1 id="qunit-header">Extendablelist</h1>
+               <h2 id="qunit-banner"></h2>
+               <div id="qunit-testrunner-toolbar"></div>
+               <h2 id="qunit-userAgent"></h2>
+               <ol id="qunit-tests"></ol>
+
+               <div id="qunit-fixture">
+                       <div data-role="page" id="dummy-page">
+                               <div data-role="header" data-position="fixed">
+                                       <h1>Dummy</h1>
+                               </div>
+                               <div data-role="contents">
+                               </div>
+                       </div>
+                       <div data-role="page" id="extendablelist-unit-test" data-add-back-btn="true">
+                               <script id="tmp-1line" type="text/x-jquery-tmpl">
+                                       <li class="ui-li-1line"><span class="ui-li-text-main">${NAME}</span></li>
+                               </script>
+                               <script id="tmp_load_more" type="text/x-jquery-tmpl">
+                                       <li class="ui-li-1line" style="text-align:center; margin:0 auto">
+                                               <div data-role="button">Load ${NUM_MORE_ITEMS} more items</div>
+                                       </li>
+                               </script>
+                               <div data-role="header" data-position="fixed">
+                                       <h1>extendable list</h1>
+                               </div>
+                               <div data-role="content">
+                                       <ul id = "extendable_list_main" data-role="extendablelist" data-extenditems="50" data-template="tmp-1line" data-dbtable="JSON_DATA">
+                                       </ul>
+                               </div>
+                       </div>
+               </div>
+       </body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/fastscroll/fastscroll-tests.js b/tct-webuifw-tests/tests/unit-tests/fastscroll/fastscroll-tests.js
new file mode 100644 (file)
index 0000000..987fc66
--- /dev/null
@@ -0,0 +1,38 @@
+/*
+ * Unit Test: FastScroll
+ *
+ * Minkyu Kang <mk7.kang@samsung.com>
+ */
+
+(function ($) {
+       module("FastScroll");
+
+       var unit_fastscroll = function ( list ) {
+               var widget,
+                       shortcut,
+                       divider,
+                       indexString = "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z:ㄱ,ㄴ,ㄷ,ㄹ,ㅁ,ㅂ,ㅅ,ㅇ,ㅈ,ㅊ,ㅋ,ㅌ,ㅍ,ㅎ" ;
+
+               widget = list.parentsUntil(".ui-content").parent().find(".ui-fastscroll");
+
+               /* Create */
+               ok( widget.hasClass("ui-fastscroll"), "Create" );
+
+               shortcut = widget.find("li");
+               divider = list.find(".ui-li-divider");
+
+               /* Shortcuts */
+               for ( i = 0; i < divider.length; i++ ) {
+                       equal( $( divider[i] ).text(), $( shortcut[i] ).text(), "Opertaition test Shortcut");
+               }
+
+               /* indexString */
+               list.fastscroll( "indexString", indexString );
+               equal( list.fastscroll( "indexString" ), indexString, "API : indexString" );
+       };
+
+       test( "shortcut", function () {
+               unit_fastscroll( $("#shortcut") );
+       });
+
+}( jQuery ));
diff --git a/tct-webuifw-tests/tests/unit-tests/fastscroll/index.html b/tct-webuifw-tests/tests/unit-tests/fastscroll/index.html
new file mode 100755 (executable)
index 0000000..0d36a3a
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+       <script src="fastscroll-tests.js"></script>
+
+       <title>Shortcut Scroll</title>
+</head>
+
+<body>
+
+<h1 id="qunit-header">Shortcut Scroll</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests"></ol>
+
+<div id="qunit-fixture">
+
+       <div data-role="page" id="fastscroll">
+               <div data-role="header" data-position="fixed">
+                       <h1>Shortcut Scroll</h1>
+               </div>
+               <div data-role="content">
+                       <ul id="shortcut" data-role="listview" data-fastscroll="true">
+                               <li data-role="list-divider">A</li>
+                               <li>Anton</li>
+                               <li>Arabella</li>
+                               <li>Art</li>
+                               <li data-role="list-divider">B</li>
+                               <li>Barry</li>
+                               <li>Bibi</li>
+                               <li>Billy</li>
+                               <li>Bob</li>
+                               <li data-role="list-divider">D</li>
+                               <li>Daisy</li>
+                               <li>Derek</li>
+                               <li>Desmond</li>
+                               <li data-role="list-divider">E</li>
+                               <li>Eric</li>
+                               <li>Ernie</li>
+                               <li>Esme</li>
+                               <li data-role="list-divider">F</li>
+                               <li>Fay</li>
+                               <li>Felicity</li>
+                               <li>Francis</li>
+                               <li>Frank</li>
+                               <li data-role="list-divider">H</li>
+                               <li>Harry</li>
+                               <li>Herman</li>
+                               <li>Horace</li>
+                               <li data-role="list-divider">J</li>
+                               <li>Jack</li>
+                               <li>Jane</li>
+                               <li>Jill</li>
+                               <li data-role="list-divider">K</li>
+                               <li>Katherine</li>
+                               <li>Katy</li>
+                               <li>Keith</li>
+                               <li data-role="list-divider">L</li>
+                               <li>Larry</li>
+                               <li>Lee</li>
+                               <li>Lola</li>
+                               <li data-role="list-divider">M</li>
+                               <li>Mark</li>
+                               <li>Milly</li>
+                               <li>Mort</li>
+                               <li data-role="list-divider">N</li>
+                               <li>Nigel</li>
+                               <li>Norman</li>
+                               <li data-role="list-divider">O</li>
+                               <li>Organza</li>
+                               <li>Orlando</li>
+                       </ul>
+               </div>
+       </div>
+
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/fliptoggleswitch/index.html b/tct-webuifw-tests/tests/unit-tests/fliptoggleswitch/index.html
new file mode 100755 (executable)
index 0000000..942b0e0
--- /dev/null
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+       <script src="toggleswitch-tests.js"></script>
+
+       <title>Toggleswitch</title>
+</head>
+
+<body>
+
+<h1 id="qunit-header">Toggleswitch</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests"></ol>
+
+<div id="qunit-fixture">
+
+       <div data-role="page" id="toggleswitch1">
+               <div data-role="header" data-position="fixed">
+                       <h1>Toggleswitch</h1>
+               </div>
+               <div data-role="content">
+                       <select data-role='slider' name='slider' id='newslider' >
+                               <option value='on'>On</option>
+                               <option value='off'>Off</option>
+                       </select>
+               </div>
+       </div>
+       
+       <div data-role="page" id="toggleswitch2">
+               <div data-role="header" data-position="fixed">
+                       <h1>Toggleswitch</h1>
+               </div>
+               <div data-role="content">               
+                       
+               </div>
+       </div>  
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/fliptoggleswitch/toggleswitch-tests.js b/tct-webuifw-tests/tests/unit-tests/fliptoggleswitch/toggleswitch-tests.js
new file mode 100755 (executable)
index 0000000..199b01f
--- /dev/null
@@ -0,0 +1,86 @@
+/*
+ * Unit Test : Toggle Switch
+ *
+ *
+ */
+/*jslint browser: true*/
+/*global $, jQuery, test, equal, ok*/
+$( document ).ready( function ( ) {
+       module("fliptoggleswitch" );
+
+       var unit_toggleswitch = function ( widget ) {
+               var toggleswitch ;
+
+               /* Create */
+               widget.slider( );
+               toggleswitch = widget.parent( ).find('.ui-slider-switch') ;
+               ok( toggleswitch, "Create" );
+
+               /* Class Check*/
+               equal( toggleswitch.hasClass('ui-slider'), true , "Class check" );
+
+               /*Markup check*/
+               equal( toggleswitch.find('span.ui-slider-label').length, 2 , "makrup check : 2 options present" );
+               equal( toggleswitch.find('span.ui-slider-label')[1].innerHTML, "On" , "makrup check : correct text in option" );
+               equal( toggleswitch.find('span.ui-slider-label')[0].innerHTML , "Off" , "makrup check : correct text in option" );
+               ok( toggleswitch.find('a.ui-slider-handle') , "makrup check : toggle handle present" );
+               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'On', "makrup check : handle present" );
+               equal( toggleswitch.find('span.ui-slider-label')[1].style.width, '100%', "makrup check : 2 options present" );
+
+               /*check control after firing events*/
+               toggleswitch.trigger('vmousedown') ;
+               toggleswitch.trigger('vmouseup') ;
+               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'Off', "Markup check after firing click event first time" );
+               equal( toggleswitch.find('span.ui-slider-label')[0].style.width, '100%', "Markup check after firing click event first time" );
+               equal( toggleswitch.find('span.ui-slider-label')[1].style.width, '0%', "Markup check after firing click event first time" );
+               toggleswitch.trigger('vmousedown') ;
+               toggleswitch.trigger('vmouseup') ;
+               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'On', "Markup check after firing click event second time" );
+               equal( toggleswitch.find('span.ui-slider-label')[0].style.width, '0%', "Markup check after firing click event second time" );
+               equal( toggleswitch.find('span.ui-slider-label')[1].style.width, '100%', "Markup check after firing click event second time" );
+
+               /* Check Enable , Disbale */
+               widget.slider("disable" );
+               toggleswitch.trigger('vmousedown') ;
+               toggleswitch.trigger('vmouseup') ;
+               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'On', "Markup check after firing click event after switch was disabled" );
+               equal( toggleswitch.find('span.ui-slider-label')[1].style.width, '100%', "Markup check after firing click event after switch was disabled" );
+               equal( toggleswitch.find('span.ui-slider-label')[0].style.width, '0%', "Markup check after firing click event after switch was disabled" );
+
+               widget.slider("enable" );
+               toggleswitch.trigger('vmousedown') ;
+               toggleswitch.trigger('vmouseup') ;
+               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'Off', "Markup check after firing click event after switch was re enabled" );
+               equal( toggleswitch.find('span.ui-slider-label')[0].style.width, '100%', "Markup check after firing click event after switch was re enabled" );
+               equal( toggleswitch.find('span.ui-slider-label')[1].style.width, '0%', "Markup check after firing click event after switch was re enabled" );
+
+               /*refresh */
+               widget.find('option')[1].innerHTML = "False" ;
+               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'Off', "API Refresh : Stoggleswitch is not modified before refresh is called" );
+               widget.slider('refresh') ;
+               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'False', "API Refresh : Stoggleswitch is modified after refresh is called" );
+
+       };
+
+       test( "normal toggleswitch", function ( ) {
+               $('#toggleswitch1').page( ) ;
+               unit_toggleswitch( $("#newslider" ) );
+       } );
+
+       test( "normal toggleswitch -dynamic", function ( ) {
+               var createEvent = false ,
+                       toggleHTML = "<select data-role='slider'name='slider'id='dynamicslider'data-texton='true'>" +
+                                                                               "<option value='on'>On</option>" +
+                                                                               "<option value='off'>Off</option>" +
+                                                                       "</select>;";
+
+               $('#toggleswitch2').page( ) ;
+               $('#toggleswitch2').find(":jqmData(role=content)" ).append( toggleHTML );
+               $('#dynamicslider').slider( {create : function ( ) {
+                       createEvent = true ;
+               }} ) ;
+               $('#toggleswitch2').find(":jqmData(role=content)" ).trigger("create" );
+               equal( createEvent, true, "Create Event" );
+               unit_toggleswitch( $("#dynamicslider" ) );
+       } );
+} );
diff --git a/tct-webuifw-tests/tests/unit-tests/gallery/gallery-tests.js b/tct-webuifw-tests/tests/unit-tests/gallery/gallery-tests.js
new file mode 100644 (file)
index 0000000..2865460
--- /dev/null
@@ -0,0 +1,52 @@
+/*
+ * Unit Test: gallery 
+ *
+ * Minkyu Kang <mk7.kang@samsung.com>
+ */
+
+(function ($) {
+       module("gallery");
+
+       var unit_gallery = function ( widget, count ) {
+               var imagesldier,
+                       refresh = function ( widget ) {
+                               widget.gallery("refresh", "1");
+                               return widget.find(".ui-gallery-bg");
+                       };
+
+               /* Create */
+               widget.gallery();
+
+               gallery = widget.find(".ui-gallery-bg");
+               ok( gallery, "Create" );
+
+               /* Initialize */
+               equal( gallery.length, count, "Initialize" );
+
+               /* API: length */
+               equal( widget.gallery("length"), count, "API: length" );
+
+               /* API: del */
+               widget.gallery("remove");
+               gallery = refresh( widget );
+               equal( gallery.length, count - 1, "API: del" );
+
+               /* API: add */
+               widget.gallery("add", "05.jpg");
+               widget.gallery("add", "06.jpg");
+               gallery = refresh( widget );
+               equal( gallery.length, count + 1, "API: add" );
+
+               /* API: length */
+               equal( widget.gallery("value"), 1, "API: value" );
+
+               /* API: empty */
+               widget.gallery("empty");
+               gallery = refresh( widget );
+               equal( gallery.length, 0, "API: empty" );
+       };
+
+       test( "gallery", function () {
+               unit_gallery( $("#gallery"), 4 );
+       });
+}( jQuery ));
diff --git a/tct-webuifw-tests/tests/unit-tests/gallery/index.html b/tct-webuifw-tests/tests/unit-tests/gallery/index.html
new file mode 100755 (executable)
index 0000000..05fb86e
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+       <script src="gallery-tests.js"></script>
+
+       <title>Gallery</title>
+</head>
+
+<body>
+
+<h1 id="qunit-header">Gallery</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests"></ol>
+
+<div id="qunit-fixture">
+
+       <div data-role="page">
+               <div data-role="header" data-position="fixed">
+                       <h1>Gallery</h1>
+               </div>
+               <div data-role="content" data-scroll="none">
+                       <div data-role="gallery" id="gallery" data-index="2" data-vertical-align="middle">
+                               <img src="01.jpg">
+                               <img src="02.jpg">
+                               <img src="03.jpg">
+                               <img src="04.jpg">
+                       </div>
+               </div>
+       </div>
+
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/gallery3d/gallery3d-tests.js b/tct-webuifw-tests/tests/unit-tests/gallery3d/gallery3d-tests.js
new file mode 100644 (file)
index 0000000..190cd45
--- /dev/null
@@ -0,0 +1,62 @@
+/*
+ * Unit Test: Gallery3d
+ *
+ * Wonseop Kim <wonseop.kim@samsung.com>
+ */
+
+( function ( $ ) {
+       $.mobile.defaultTransition = "none";
+
+       module( "Galley3d" );
+
+       asyncTest( "galley3d", function () {
+               var widget = $( "#galley3dTest" ),
+                       imageList = [
+                               { src: "../../../demos/tizen-winsets/widgets/test/01.jpg" },
+                               { src: "../../../demos/tizen-winsets/widgets/test/02.jpg" }
+                       ],
+                       elem = "ui-gallery3d",
+                       currentItem,
+                       image = { "src" : "../../../demos/tizen-winsets/widgets/test/05.jpg" };
+
+               /* Create */
+               widget.gallery3d();
+               ok( widget.hasClass( elem ), "Create" );
+
+               /* API */
+               widget.gallery3d( "add", image );
+               currentItem = widget.gallery3d( "select" );
+               equal( currentItem.src, image.src, "API : add (by object)" );
+
+               widget.gallery3d( "add", "../../../demos/tizen-winsets/widgets/test/04.jpg" );
+               currentItem = widget.gallery3d( "select" );
+               equal( currentItem.src, "../../../demos/tizen-winsets/widgets/test/04.jpg", "API : add (by image's path')" );
+
+               equal( widget.gallery3d( "length" ), 2, "API : length" );
+
+               widget.gallery3d( "remove" );
+               notEqual( widget.gallery3d( "select" ), currentItem, "API : remove" );
+
+               widget.gallery3d( "empty" );
+               equal( widget.gallery3d( "length" ), 0, "API : empty" );
+
+               widget.gallery3d( "add", imageList[1] )
+                       .gallery3d( "add", imageList[0] );
+
+               widget.gallery3d( "select", 1 );
+               setTimeout( function () {
+                       equal( widget.gallery3d( "select" ), imageList[0], "API : select" );
+                       widget.gallery3d( "next" );
+               }, 600 );
+
+               setTimeout( function () {
+                       //equal( widget.gallery3d( "select" ), imageList[1], "API : next" );
+                       widget.gallery3d( "prev" );
+               }, 1200 );
+
+               setTimeout( function () {
+                       //equal( widget.gallery3d( "select" ), imageList[0], "API : prev" );
+                       start();
+               }, 1800 );
+       });
+}( jQuery ));
diff --git a/tct-webuifw-tests/tests/unit-tests/gallery3d/index.html b/tct-webuifw-tests/tests/unit-tests/gallery3d/index.html
new file mode 100644 (file)
index 0000000..dc8a4f9
--- /dev/null
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+       <script src="../../../libs/js/jquery-mobile-1.1.0/tests/jquery.testHelper.js"></script>
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+       <script src="gallery3d-tests.js"></script>
+       <title>Galley3d</title>
+</head>
+
+<body>
+
+<h1 id="qunit-header">Galley3d</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests"></ol>
+
+<div id="qunit-fixture">
+
+       <div data-role="page">
+               <div data-role="header" data-position="fixed">
+                       <h1>Galley3d</h1>
+               </div>
+               <div data-role="content">
+                       <div id="galley3dTest" data-role="galley3d" style="width: 100%;"></div>
+               </div>
+       </div>
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/handler/handler-tests.js b/tct-webuifw-tests/tests/unit-tests/handler/handler-tests.js
new file mode 100755 (executable)
index 0000000..b4d45c8
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Unit Test: Handler
+ *
+ * Wonseop Kim <wonseop.kim@samsung.com>
+ */
+
+(function ($) {
+       module("Handler");
+
+       var unit_handler = function ( widget ) {
+               var elem = ".ui-handler",
+                       handler;
+
+               /* Create */
+               widget.scrollview();
+               handler = widget.find( elem );
+               ok( ( handler.length > 0 ), "Create" );
+
+               /* API */
+               widget.scrollview( "enableHandler", false );
+               ok( handler.is( ":hidden" ), "API: enableHandler(false)" );
+               widget.scrollview( "enableHandler", true );
+               ok( handler.is( ":visible" ), "API: enableHandler(true)" );
+       };
+
+       test( "handler", function () {
+               unit_handler( $("#handlerY") );
+       });
+}( jQuery ));
diff --git a/tct-webuifw-tests/tests/unit-tests/handler/index.html b/tct-webuifw-tests/tests/unit-tests/handler/index.html
new file mode 100755 (executable)
index 0000000..cb5116c
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+       <script src="handler-tests.js"></script>
+
+       <title>Handler</title>
+</head>
+
+<body>
+
+<h1 id="qunit-header">Handler</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests"></ol>
+
+<div id="qunit-fixture">
+
+       <div data-role="page" id="handler0">
+               <div data-role="header" data-position="fixed">
+                       <h1>Handler</h1>
+               </div>
+               <div id="handlerY" data-role="content" data-scroll="y" data-handler="true">
+                       <ul data-role="listview">
+                               <li data-role="list-divider">A</li>
+                               <li><a href="#">Adam Kinkaid</a></li>
+                               <li><a href="#">Alex Wickerham</a></li>
+                               <li><a href="#">Avery Johnson</a></li>
+                               <li data-role="list-divider">B</li>
+                               <li><a href="#">Bob Cabot</a></li>
+                               <li data-role="list-divider">C</li>
+                               <li><a href="#">Caleb Booth</a></li>
+                               <li><a href="#">Christopher Adams</a></li>
+                               <li><a href="#">Culver James</a></li>
+                               <li data-role="list-divider">D</li>
+                               <li><a href="#">David Walsh</a></li>
+                               <li><a href="#">Drake Alfred</a></li>
+                               <li data-role="list-divider">E</li>
+                               <li><a href="#">Elizabeth Bacon</a></li>
+                               <li><a href="#">Emery Parker</a></li>
+                               <li><a href="#">Enid Voldon</a></li>
+                               <li data-role="list-divider">F</li>
+                               <li><a href="#">Francis Wall</a></li>
+                               <li data-role="list-divider">G</li>
+                               <li><a href="#">Graham Smith</a></li>
+                               <li><a href="#">Greta Peete</a></li>
+                               <li data-role="list-divider">H</li>
+                               <li><a href="#">Harvey Walls</a></li>
+                       </ul>
+               </div>
+       </div>
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/imageloader/imageloader-tests.js b/tct-webuifw-tests/tests/unit-tests/imageloader/imageloader-tests.js
new file mode 100644 (file)
index 0000000..3fb5a92
--- /dev/null
@@ -0,0 +1,28 @@
+$( document ).ready( function () {
+       var url = "test.png?" + Date.now();
+       module("Imageloader");
+
+
+       asyncTest( "Thumbnail is not in storage", 1, function () {
+               $.imageloader.getThumbnail(url, function ( result ) {
+                       strictEqual(result, "NOT_FOUND_ERR", "Thumbnail is not found, correct error.");
+                       start();
+               });
+       });
+
+       asyncTest( "Set thumbnail", 2, function () {
+               $.imageloader.setThumbnail( url, function ( result ) {
+                       strictEqual( typeof result, "string", "Result is returned" );
+                       strictEqual( result.substr(0, 22), "data:image/png;base64,", "Returned result is png data string" );
+                       start();
+               });
+       });
+
+       asyncTest( "Remove thumbnail", 1, function () {
+               $.imageloader.removeThumbnail( url );
+               $.imageloader.getThumbnail(url, function ( result ) {
+                       strictEqual(result, "NOT_FOUND_ERR", "Thumbnail is not found, correct error.");
+                       start();
+               });
+       });
+});
\ No newline at end of file
diff --git a/tct-webuifw-tests/tests/unit-tests/imageloader/index.html b/tct-webuifw-tests/tests/unit-tests/imageloader/index.html
new file mode 100644 (file)
index 0000000..9964d59
--- /dev/null
@@ -0,0 +1,30 @@
+
+<!DOCTYPE html>
+<html>
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+       <script src="imageloader-tests.js"></script>
+       <title>ImageLoader</title>
+</head>
+
+<body>
+
+<h1 id="qunit-header">Core</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests"></ol>
+
+<div id="qunit-fixture"></div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/imageloader/test.png b/tct-webuifw-tests/tests/unit-tests/imageloader/test.png
new file mode 100644 (file)
index 0000000..b63d902
Binary files /dev/null and b/tct-webuifw-tests/tests/unit-tests/imageloader/test.png differ
diff --git a/tct-webuifw-tests/tests/unit-tests/index.html b/tct-webuifw-tests/tests/unit-tests/index.html
new file mode 100644 (file)
index 0000000..861c720
--- /dev/null
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="utf-8">
+
+  <link rel="stylesheet" href="../../libs/js/qunit/qunit.css"/>
+  <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+  <script src="../../libs/js/qunit/qunit.js"></script>
+  <script src="tests.js"></script>
+  <script src="runner.js"></script>
+  <style type="text/css">
+    html, body {
+      width:100%;
+      height:100%;
+      margin:0px;
+      padding:0px;
+    }
+
+    #testFrame {
+      float: left;
+      border: 0px;
+      height: 100%;
+      width: 60%;
+    }
+
+    #results {
+      float: left;
+      width: 30%;
+    }
+  </style>
+</head>
+<body>
+  <div id="results">
+    <h1 id="qunit-header"><a href="#">jQuery Mobile Test Suite</a></h1>
+    <h2 id="qunit-banner"></h2>
+    <ol id="qunit-tests">
+    </ol>
+  </div>
+       <iframe data-src="{{testfile}}" name="testFrame" id="testFrame" scrolling="no">
+       </iframe>
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/list/index.html b/tct-webuifw-tests/tests/unit-tests/list/index.html
new file mode 100755 (executable)
index 0000000..a4c08ac
--- /dev/null
@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<html>
+       <head>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+                       data-framework-theme="tizen-white"
+                       data-framework-viewport-scale=false>
+               </script>
+
+               <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+               <script src="../../../libs/js/qunit/qunit.js"></script>
+               <script src="list-tests.js"></script>
+               <title>List</title>
+       </head>
+
+       <body>
+               <h1 id="qunit-header">List</h1>
+               <h2 id="qunit-banner"></h2>
+               <div id="qunit-testrunner-toolbar"></div>
+               <h2 id="qunit-userAgent"></h2>
+               <ol id="qunit-tests"></ol>
+
+               <div id="qunit-fixture">
+                       <div data-role="page" id="dummy-page">
+                               <div data-role="header" data-position="fixed">
+                                       <h1>Dummy</h1>
+                               </div>
+                               <div data-role="contents">
+                               </div>
+                       </div>
+
+                       <div data-role="page" id="list-unit-test" data-add-back-btn="true">
+                               <div data-role="header" data-position="fixed">
+                                       <h1>List</h1>
+                                       <input type="search" data-cancel-btn='true' name="search" data-icon="call" id="searchInput" value=""/>
+                               </div>
+                               <div data-role="content" id="list-content">
+                                       <ul id="listsample" data-role="listview" data-fastscroll="true">
+                                               <li>Anton</li>
+                                               <li class='ui-li-multiline'>    Arabella        <span class='ui-li-text-sub'>Subtext</span></li>
+                                               <li>Art<a href='#dummy-page'>1line-sub with anchor<span class='ui-li-text-sub'>Subtext</span></a>       </li>
+                                               <li>Barry<img src='thumbnail.jpg' class='ui-li-bigicon'/>1line-bigicon1</li></li>
+                                               <li>Bibi</li>
+                                               <li>Billy</li>
+                                               <li>Bob</li>
+                                       </ul>
+                               </div>
+                       </div>
+               </div>
+               <div data-role="page" id="list-unit-test-dynamic">
+                               <div data-role="header" data-position="fixed">
+                                       <h1>Dummy</h1>
+                               </div>
+                               <div data-role="contents">
+                               </div>
+                       </div>
+       </body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/list/list-tests.js b/tct-webuifw-tests/tests/unit-tests/list/list-tests.js
new file mode 100755 (executable)
index 0000000..f71cdd1
--- /dev/null
@@ -0,0 +1,67 @@
+/*
+ * Unit Test: list
+ *
+ *
+ */
+/*jslint browser: true*/
+/*global $, jQuery, test, equal, ok*/
+$( document ).ready( function ( ) {
+
+       module("List");
+
+       var unit_list_test = function ( widget ) {
+               var li ;
+
+               /*markup*/
+               equal( widget.hasClass("ui-listview"), true, "Markup check") ;
+               equal( widget.find('li.ui-li').length, 7, "Markup check") ;
+               equal( widget.find('li.ui-li-multiline').length, 1, "Markup check: multiline text") ;
+               equal( widget.find('li.ui-li-multiline span.ui-li-text-sub').length, 1, "Markup check: multiline text") ;
+               equal( widget.find('li.ui-li a.ui-link-inherit').length, 1, "Markup check:item with anchor") ;
+               equal( widget.find('li.ui-li-has-thumb img.ui-li-bigicon').length, 1, "Markup check: item with icon") ;
+
+               li = "<li>1line</li>";
+               $( li ).appendTo( widget );
+               $( widget ).listview("refresh");
+               equal( widget.find('li.ui-li').length, 8, "Markup check") ;
+       } ;
+
+       test("List", function ( ) {
+               // trigger pagecreate
+               $("#list-unit-test").page( );
+               /* Initialize */
+               $('#listsample').listview( );
+               unit_list_test( $('#listsample'), {button : 'call', cancel : true} ) ;
+
+       } );
+
+       test("List- dynamic", function ( ) {
+
+               var createEvent = false,
+                       listHTMML = '<ul id= "listsample1"data-role= "listview"data-fastscroll= "true">' +
+                                                                       '<li>Anton</li>' +
+                                                                       '<li class= "ui-li-multiline"> Arabella <span class= "ui-li-text-sub">Subtext</span></li>' +
+                                                                       '<li>Art<a href= "#dummy-page">1line-sub with anchor<span class= "ui-li-text-sub">Subtext</span></a> </li>' +
+                                                                       '<li>Barry<img src= "thumbnail.jpg"class= "ui-li-bigicon"/>1line-bigicon1</li></li>' +
+                                                                       '<li>Bibi</li>' +
+                                                                       '<li>Billy</li>' +
+                                                                       '<li>Bob</li>' +
+                                                               '</ul>';
+
+               // trigger pagecreate
+               $("#list-unit-test-dynamic").page( );
+               /* Initialize */
+               $("#list-unit-test-dynamic").find(":jqmData(role=contents)").append( listHTMML ) ;
+               $('#listsample1').listview( {create : function ( ) {
+                       createEvent = true ;
+               }} );
+
+               $("#list-unit-test-dynamic").find(":jqmData(role=contents)").trigger('create') ;
+               $('#listsample1').listview( ) ;
+
+               equal( createEvent, true, "Create Event") ;
+               unit_list_test( $('#listsample1') ) ;
+
+       } );
+
+} );
diff --git a/tct-webuifw-tests/tests/unit-tests/listdivider/index.html b/tct-webuifw-tests/tests/unit-tests/listdivider/index.html
new file mode 100755 (executable)
index 0000000..b443ad7
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+       <script src="listdivider-tests.js"></script>
+
+       <title>Listdivider</title>
+</head>
+
+<body>
+
+<h1 id="qunit-header">List divider</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests"></ol>
+
+<div id="qunit-fixture">
+
+       <div data-role="page">
+               <div data-role="header" data-position="fixed">
+                       <h1>List divider</h1>
+               </div>
+               <div class="content" data-role="content" data-scroll="y">
+                       <ul id="listview1" data-role="listview">
+                               <li data-role="list-divider">Item styles</li>
+                               <li><a href="#">Normal lists</a></li>
+                               <li><a href="#">Normal lists</a></li>
+                               <li><a href="#">Normal lists</a></li>
+                               <li data-role="list-divider">Item styles</li>
+                               <li><a href="#">Normal lists</a></li>
+                               <li><a href="#">Normal lists</a></li>
+                               <li><a href="#">Normal lists</a></li>
+                               <li data-role="list-divider">Item styles</li>
+                               <li><a href="#">Normal lists</a></li>
+                               <li><a href="#">Normal lists</a></li>
+                               <li><a href="#">Normal lists</a></li>
+                       </ul>
+               </div>
+       </div>
+
+       <div id="listdivdier_group" data-role="page">
+               <div data-role="header" data-position="fixed">
+                       <h1>Groupped Divider </h1>
+               </div>
+               <div class="content" data-role="content" data-scroll="y">
+                       <ul id="listview2" data-role="listview">
+                               <li data-role="list-divider" data-style="check"><form><input type="checkbox"  name="c2line-check1" /></form>Item styles</li>
+                               <li><a href="#" >Normal lists</a></li>
+                               <li><a href="#" >Normal lists</a></li>
+                               <li><a href="#" >Normal lists</a></li>
+                               <li data-role="list-divider" data-style="check"><form><input type="checkbox"  name="c2line-check1" /></form>Item styles</li>
+                               <li><a href="#" >Normal lists</a></li>
+                               <li><a href="#" >Normal lists</a></li>
+                               <li><a href="#" >Normal lists</a></li>
+                               <li data-role="list-divider" data-style="check"><form><input type="checkbox"  name="c2line-check1" /></form>Item styles</li>
+                               <li><a href="#" >Normal lists</a></li>
+                               <li><a href="#" >Normal lists</a></li>
+                               <li><a href="#" >Normal lists</a></li>
+                       </ul>
+               </div>
+               <div data-role="footer">
+               </div>
+       </div>
+
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/listdivider/listdivider-tests.js b/tct-webuifw-tests/tests/unit-tests/listdivider/listdivider-tests.js
new file mode 100644 (file)
index 0000000..82a34f3
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * Unit Test: listdivider
+ *
+ * Hyunjung Kim <hjnim.kim@samsung.com>
+ */
+
+(function ($) {
+       module("Listdivider");
+
+       var unit_listdivider = function ( widget ) {
+               var listdivdierDynamic = '<li data-role= "list-divider">Item styles</li>';
+               equal( widget.find(":jqmData(role=list-divider)").length, 3, "List dividers count");
+               widget.find(":jqmData(role=list-divider)").each( function( ) {
+                       equal( $(this).text().trim(), "Item styles", "List divider text check" )
+               } );
+               equal( widget.find('li.ui-li-divider').length, 3, "CSS check : list dividers count");
+
+               $( listdivdierDynamic ).appendTo( widget );
+               $( widget ).listview("refresh");
+
+               equal( widget.find(":jqmData(role=list-divider)").length, 4, "List dividers count");
+               widget.find(":jqmData(role=list-divider)").each( function( ) {
+                       equal( $(this).text().trim(), "Item styles", "List divider text check" )
+               } );
+       };
+
+       var unit_listcheckdivider = function ( widget ) {
+               unit_listdivider( widget );
+               equal(  widget.find('li.ui-li-has-checkbox').length, widget.find('li.ui-li-divider').length - 1, "List checkbox divider count check");
+       };
+
+       test( "Listdivider", function () {
+               $("#listview1").listview();
+               unit_listdivider( $("#listview1") );
+       });
+
+       test( "listdivdier_group", function() {
+               $("#listdivdier_group").page( );
+               $("#listview2").listview();
+               unit_listcheckdivider( $("#listview2") );
+       });
+}( jQuery ));
diff --git a/tct-webuifw-tests/tests/unit-tests/listdividers/index.html b/tct-webuifw-tests/tests/unit-tests/listdividers/index.html
new file mode 100755 (executable)
index 0000000..12803da
--- /dev/null
@@ -0,0 +1,76 @@
+<!DOCTYPE html>
+<html>
+       <head>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+                       data-framework-theme="tizen-white"
+                       data-framework-viewport-scale=false>
+               </script>
+
+               <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+               <script src="../../../libs/js/qunit/qunit.js"></script>
+               <script src="listdividers-tests.js"></script>
+               <title>List Dividers</title>
+       </head>
+
+       <body>
+               <h1 id="qunit-header">List Divider</h1>
+               <h2 id="qunit-banner"></h2>
+               <div id="qunit-testrunner-toolbar"></div>
+               <h2 id="qunit-userAgent"></h2>
+               <ol id="qunit-tests"></ol>
+
+               <div id="qunit-fixture">
+                       <div data-role="page" id="dummy-page">
+                               <div data-role="header" data-position="fixed">
+                                       <h1>Dummy</h1>
+                               </div>
+                               <div data-role="contents">
+                               </div>
+                       </div>
+
+                       <div data-role="page" id="listdividers-unit-test" data-add-back-btn="true">
+                               <div data-role="header" data-position="fixed">
+                                       <h1>List Divider</h1>
+                                       <input type="search" data-cancel-btn='true' name="search" data-icon="call" id="searchInput" value=""/>
+                               </div>
+                               <div data-role="content" id="listdividers-content">
+                                                               <ul data-role="listview" id='listdividerssample'>
+                                                               <li data-role="list-divider">A</li>
+                                                               <li><a href="#">Adam Kinkaid</a></li>
+                                                               <li><a href="#">Alex Wickerham</a></li>
+                                                               <li><a href="#">Avery Johnson</a></li>
+                                                               <li data-role="list-divider" data-style='dialogue'>B</li>
+                                                               <li><a href="#">Bob Cabot</a></li>
+                                                               <li data-role="list-divider" data-style='check'>C</li>
+                                                               <li><a href="#">Caleb Booth</a></li>
+                                                               <li><a href="#">Christopher Adams</a></li>
+                                                               <li><a href="#">Culver James</a></li>
+                                                               <li data-role="list-divider" data-style='expandable'>D</li>
+                                                               <li><a href="#">David Walsh</a></li>
+                                                               <li><a href="#">Drake Alfred</a></li>
+                                                               <li data-role="list-divider" data-style='checkexpandable'>E</li>
+                                                               <li><a href="#">Elizabeth Bacon</a></li>
+                                                               <li><a href="#">Emery Parker</a></li>
+                                                               <li><a href="#">Enid Voldon</a></li>
+                                                               <li data-role="list-divider">F</li>
+                                                               <li><a href="#">Francis Wall</a></li>
+                                                               <li data-role="list-divider">G</li>
+                                                               <li><a href="#">Graham Smith</a></li>
+                                                               <li><a href="#">Greta Peete</a></li>
+                                                               <li data-role="list-divider">H</li>
+                                                               <li><a href="#">Harvey Walls</a></li>
+                                                       </ul>
+                               </div>
+                       </div>
+               </div>
+               <div data-role="page" id="listdividers-unit-test-dynamic">
+                               <div data-role="header" data-position="fixed">
+                                       <h1>Dummy</h1>
+                               </div>
+                               <div data-role="contents">
+                               </div>
+                       </div>
+       </body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/listdividers/listdividers-tests.js b/tct-webuifw-tests/tests/unit-tests/listdividers/listdividers-tests.js
new file mode 100755 (executable)
index 0000000..a9393b4
--- /dev/null
@@ -0,0 +1,82 @@
+/*
+ * Unit Test: listdividers
+ *
+ *
+ */
+/*jslint browser: true*/
+/*global $, jQuery, test, equal, ok*/
+$( document ).ready( function ( ) {
+
+       module("List dividers");
+
+       var unit_listdividers_test = function ( widget ) {
+               var li ;
+
+               /*markup*/
+               equal( widget.hasClass("ui-listview"), true, "Markup check") ;
+               equal( widget.find('li.ui-li').length, 24, "Markup check") ;
+               equal( widget.find(":jqmData(role=list-divider)").length, 8, "List dividers count");
+               equal( widget.find('li.ui-li-divider').length, 8, "Markup check : list dividers count") ;
+
+               li = "<li>1line</li>";
+               $( li ).appendTo( widget );
+               $( widget ).listview("refresh");
+               equal( widget.find('li.ui-li').length, 25, "Markup check") ;
+       } ;
+
+       test("Listdividers", function ( ) {
+               // trigger pagecreate
+               $("#listdividers-unit-test").page( );
+               /* Initialize */
+               $('#listdividerssample').listview( );
+               unit_listdividers_test( $('#listdividerssample'), {button : 'call', cancel : true} ) ;
+
+       } );
+
+       test("Listdividers- dynamic", function ( ) {
+               var createEvent = false,
+                       listHTMML = '<ul data-role= "listview"id= "listdividerssample1">' +
+                                                                                       '<li data-role= "list-divider">A</li>' +
+                                                                                       '<li><a href= "#">Adam Kinkaid</a></li>' +
+                                                                                       '<li><a href= "#">Alex Wickerham</a></li>' +
+                                                                                       '<li><a href= "#">Avery Johnson</a></li>' +
+                                                                                       '<li data-role= "list-divider"data-style= "dialogue">B</li>' +
+                                                                                       '<li><a href= "#">Bob Cabot</a></li>' +
+                                                                                       '<li data-role= "list-divider"data-style= "check">C</li>' +
+                                                                                       '<li><a href= "#">Caleb Booth</a></li>' +
+                                                                                       '<li><a href= "#">Christopher Adams</a></li>' +
+                                                                                       '<li><a href= "#">Culver James</a></li>' +
+                                                                                       '<li data-role= "list-divider"data-style= "expandable">D</li>' +
+                                                                                       '<li><a href= "#">David Walsh</a></li>' +
+                                                                                       '<li><a href= "#">Drake Alfred</a></li>' +
+                                                                                       '<li data-role= "list-divider"data-style= "checkexpandable">E</li>' +
+                                                                                       '<li><a href= "#">Elizabeth Bacon</a></li>' +
+                                                                                       '<li><a href= "#">Emery Parker</a></li>' +
+                                                                                       '<li><a href= "#">Enid Voldon</a></li>' +
+                                                                                       '<li data-role= "list-divider">F</li>' +
+                                                                                       '<li><a href= "#">Francis Wall</a></li>' +
+                                                                                       '<li data-role= "list-divider">G</li>' +
+                                                                                       '<li><a href= "#">Graham Smith</a></li>' +
+                                                                                       '<li><a href= "#">Greta Peete</a></li>' +
+                                                                                       '<li data-role= "list-divider">H</li>' +
+                                                                                       '<li><a href= "#">Harvey Walls</a></li>' +
+                                                                               '</ul>';
+
+               // trigger pagecreate
+               $("#listdividers-unit-test-dynamic").page( );
+               /* Initialize */
+               $("#listdividers-unit-test-dynamic").find(":jqmData(role=contents)").append( listHTMML ) ;
+
+               $('#listdividerssample1').listview( {create : function ( ) {
+                       createEvent = true ;
+               }} );
+
+               $("#listdividers-unit-test-dynamic").find(":jqmData(role=contents)").trigger('create') ;
+               $('#listdividerssample1').listview( ) ;
+
+               equal( createEvent, true, "Create Event") ;
+               unit_listdividers_test( $('#listdividerssample1') ) ;
+
+       } );
+
+} );
diff --git a/tct-webuifw-tests/tests/unit-tests/loader/index.html b/tct-webuifw-tests/tests/unit-tests/loader/index.html
new file mode 100644 (file)
index 0000000..c26c5b4
--- /dev/null
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1">
+       <title>loader test</title>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+
+       <link rel="stylesheet" href="../../../libs/js/jquery-mobile-1.1.0/external/qunit.css"/>
+
+       <script src="loader-tests.js"></script>
+</head>
+<body>
+       <!-- QUnit template -->
+       <h1 id="qunit-header">Test : loader</h1>
+       <h2 id="qunit-banner"></h2>
+       <h2 id="qunit-userAgent"></h2>
+       <ol id="qunit-tests"></ol>
+
+       <div id="qunit-fixture">
+
+       </div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/loader/loader-tests.js b/tct-webuifw-tests/tests/unit-tests/loader/loader-tests.js
new file mode 100644 (file)
index 0000000..a2ebd80
--- /dev/null
@@ -0,0 +1,54 @@
+/**
+ * Loader test
+ *
+ * Youmin Ha <youmin.ha@samsung.com>
+ *
+ */
+( function ( $ ) {
+       $.mobile.defaultTransition = "none";
+
+       module( "Loader" );
+
+       var tizen = $.tizen.__tizen__;
+
+       test( "util.getScaleFactor()", function ( ) {
+               var util = tizen.util,
+                       expected = 1,
+                       defaultWidth = 720;
+
+               if( window.scale ) {
+                       expected = window.scale;
+               } else {
+                       expected = screen.width / defaultWidth;
+                       if( expected > 1 ) {    // Don't allow expansion
+                               expected = 1;
+                       }
+               }
+
+               // Test value
+               equal( util.getScaleFactor( ), expected, "Scale factor value should calculated properly." );
+       } );
+
+       test( "util.isMobileBrowser()", function ( ) {
+               var appVersion = window.navigator.appVersion,
+                       mobile = appVersion.match( "Mobile" ),
+                       isMobile = mobile ? true : false;
+
+               equal( tizen.util.isMobileBrowser(), isMobile, "Mobile browser must be detected." );
+
+               /* NOTE:
+                * Is this test OK? How are both cases(mobile/non-mobile) tested?
+                */
+       } );
+
+       test( "css.addElementToHead()", function ( ) {
+               var css = tizen.css,
+                       scarecrow = $( '<meta name="scarecrow" />' ),
+                       selected;
+
+               css.addElementToHead( scarecrow );
+               selected = $('head').children('meta[name=scarecrow]');
+               ok( selected.length > 0, 'Object must be added to header.' );
+       } );
+} ) ( jQuery );
+
diff --git a/tct-webuifw-tests/tests/unit-tests/multimediaview/index.html b/tct-webuifw-tests/tests/unit-tests/multimediaview/index.html
new file mode 100755 (executable)
index 0000000..79e545c
--- /dev/null
@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+       <script src="multimediaview-tests.js"></script>
+
+       <title>MultiMediaView</title>
+</head>
+
+<body>
+
+<h1 id="qunit-header">MultiMediaView</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests"></ol>
+
+<div id="qunit-fixture">
+
+       <div data-role="page" id="multimediaview0">
+               <div data-role="header" data-position="fixed">
+                       <h1>MultiMediaView (video)</h1>
+               </div>
+               <div data-role="content">
+                       <video data-controls="true" style="width:100%;" id="video">
+                               <source src="http://www.w3schools.com/html5/mov_bbb.mp4" type="video/mp4" />
+                               <source src="http://www.w3schools.com/html5/mov_bbb.ogg" type="video/ogg" />
+                               <source src="http://www.w3schools.com/html5/mov_bbb.webm" type="video/webm" />
+                               <p>Your browser does not support the video tag.</p>
+                       </video>
+               </div>
+       </div>
+
+       <div data-role="page" id="multimediaview1">
+               <div data-role="header" data-position="fixed">
+                       <h1>MultiMediaView (audio)</h1>
+               </div>
+               <div data-role="content">
+                       <audio data-controls="true" style="width:100%;" id="audio">
+                               <source src="http://www.w3schools.com/html5/mov_bbb.mp4" type="audio/mp4" />
+                               <source src="http://www.w3schools.com/html5/mov_bbb.ogg" type="audio/ogg" />
+                               <p>Your browser does not support the audio tag.</p>
+                       </audio>
+               </div>
+       </div>
+
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/multimediaview/multimediaview-tests.js b/tct-webuifw-tests/tests/unit-tests/multimediaview/multimediaview-tests.js
new file mode 100755 (executable)
index 0000000..f3394d4
--- /dev/null
@@ -0,0 +1,54 @@
+/*
+ * Unit Test: MultiMediaView
+ *
+ * Wonseop Kim <wonseop.kim@samsung.com>
+ */
+
+(function ($) {
+       module("MultiMediaView");
+
+       var unit_multimediaview = function ( widget, type ) {
+               var control,
+                       fullscreenButton,
+                       width,
+                       height,
+                       played,
+                       timeupdated,
+                       ended,
+                       param;
+
+               /* Create */
+               widget.multimediaview();
+               ok( widget.hasClass( "ui-multimediaview" ) , "Create" );
+
+               if ( type === "video" ) {
+                       /* width */
+                       width = 100;
+                       widget.multimediaview( "width", width );
+                       equal( width, widget.width(), "API: width" );
+
+                       /* height */
+                       height = 200;
+                       widget.multimediaview( "height", height );
+                       equal( height, widget.height(), "API: height" );
+
+                       /* fullscreen */
+                       fullscreenButton = widget.parent().find( ".ui-fullscreenbutton" );
+
+                       widget.multimediaview( "fullScreen", true );
+                       ok( fullscreenButton.hasClass( "ui-fullscreen-off" ), "API: fullScreen (on)" );
+
+                       widget.multimediaview( "fullScreen", false );
+                       ok( fullscreenButton.hasClass( "ui-fullscreen-on" ), "API: fullScreen (off)" );
+               }
+       };
+
+       test( "video", function () {
+               unit_multimediaview( $( "#video" ), "video" );
+       });
+
+       test( "audio", function () {
+               unit_multimediaview( $( "#audio" ), "audio" );
+       });
+
+}( jQuery ));
diff --git a/tct-webuifw-tests/tests/unit-tests/navigationbar/index.html b/tct-webuifw-tests/tests/unit-tests/navigationbar/index.html
new file mode 100755 (executable)
index 0000000..e814ed8
--- /dev/null
@@ -0,0 +1,127 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+
+       <script src="navigationbar-tests.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Navigationbar Tests</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+
+<div data-nstest-role="page">
+       <div data-nstest-role="header" id="normalnavigation1">
+               <h1>Navigationbar Test - markup</h1>
+       </div>
+       <div data-nstest-role="content">
+       </div>
+       <div data-nstest-role="footer">
+       </div>
+</div>
+
+<div data-nstest-role="page">
+       <div data-nstest-role="header" id="normalnavigation2">
+               <h1>Navigationbar Test - markup</h1>
+               <a>Button</a>
+       </div>
+       <div data-nstest-role="content">
+       </div>
+       <div data-nstest-role="footer">
+       </div>
+</div>
+
+<div data-nstest-role="page">
+       <div data-nstest-role="header" id="normalnavigation3">
+               <a>Button</a>
+               <h1>Navigationbar Test - markup</h1>
+               <a>Button</a>
+       </div>
+<div data-nstest-role="content">
+       </div>
+       <div data-nstest-role="footer">
+       </div>
+</div>
+
+<div data-nstest-role="page">
+       <div data-nstest-role="header" id="normalnavigation4">
+               <a>Button</a>
+               <h1>Navigationbar Test - markup</h1>
+               <a>Button2</a>
+               <a>Button3</a>
+       </div>
+       <div data-nstest-role="content">
+       </div>
+       <div data-nstest-role="footer">
+       </div>
+</div>
+
+<div data-nstest-role="page">
+       <div data-nstest-role="header" data-position="fixed" id="extendedstyle2btn">
+               <h1>Extended Title 2 Button </h1>
+               <div data-role="fieldcontain">
+                       <fieldset data-role="controlgroup" data-type="horizontal">
+                               <input type="radio" name="radio-view-8" data-icon="segment-titlestyle-segonly" id="segment1" value="on" checked="checked" />
+                               <label for="segment1">All</label>
+                               <input type="radio" name="radio-view-8" data-icon="segment-titlestyle-segonly" id="segment2" value="off" />
+                               <label for="segment2">Call</label>
+                       </fieldset>
+               </div>
+       </div>
+       <div data-nstest-role="content">
+       </div>
+</div>
+
+<div data-nstest-role="page">
+       <div data-nstest-role="header" data-position="fixed" id="extendedstyle3btn">
+               <h1>Extended Title 3 Button </h1>
+               <div data-role="fieldcontain">
+                       <fieldset data-role="controlgroup" data-type="horizontal">
+                               <input type="radio" name="radio-view-8" data-icon="segment-titlestyle-segonly" id="segment1" value="on" checked="checked" />
+                               <label for="segment1">All</label>
+                               <input type="radio" name="radio-view-8" data-icon="segment-titlestyle-segonly" id="segment2" value="off" />
+                               <label for="segment2">Call</label>
+                               <input type="radio" name="radio-view-8" data-icon="segment-titlestyle-segonly" id="segment3" value="off" />
+                               <label for="segment3">Save</label>
+                       </fieldset>
+               </div>
+       </div>
+       <div data-nstest-role="content">
+       </div>
+</div>
+
+<div data-nstest-role="page">
+       <div data-nstest-role="header" data-position="fixed" id="extendedstyle4btn">
+               <h1>Extended Title 4 Button </h1>
+               <div data-role="fieldcontain">
+                       <fieldset data-role="controlgroup" data-type="horizontal">
+                               <input type="radio" name="radio-view-8" data-icon="segment-titlestyle-segonly" id="segment1" value="on" checked="checked" />
+                               <label for="segment1">All</label>
+                               <input type="radio" name="radio-view-8" data-icon="segment-titlestyle-segonly" id="segment2" value="off" />
+                               <label for="segment2">Call</label>
+                               <input type="radio" name="radio-view-8" data-icon="segment-titlestyle-segonly" id="segment3" value="off" />
+                               <label for="segment3">Save</label>
+                               <input type="radio" name="radio-view-8" data-icon="segment-titlestyle-segonly" id="segment4" value="off" />
+                               <label for="segment4">Back</label>
+                       </fieldset>
+               </div>
+       </div>
+       <div data-nstest-role="content">
+       </div>
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/navigationbar/navigationbar-tests.js b/tct-webuifw-tests/tests/unit-tests/navigationbar/navigationbar-tests.js
new file mode 100755 (executable)
index 0000000..2ad2b09
--- /dev/null
@@ -0,0 +1,54 @@
+/*
+ * navigationbar unit tests
+*/
+
+(function ($) {
+       module( "Navigationbar" );
+
+       var unit_navigationbar = function ( widget, anchorCount, extendedValue ) {
+               /* Create */
+               var created_navigationbar = $( widget );
+
+               ok( created_navigationbar, "Create" );
+
+               /* Check Parameters */
+               equal( created_navigationbar.jqmData( "nstest-role" ), "header", "Basic test" );
+
+
+               if ( extendedValue ) {
+                       equal( created_navigationbar.find( "input" ).length, anchorCount, "Groupcontrol button test" );
+               } else {
+                       equal( created_navigationbar.children( "a" ).length, anchorCount, "button test" );
+               }
+
+               /* Check APIs */
+       };
+
+       test( "navigationbar no button test", function () {
+               unit_navigationbar( $("#normalnavigation1"), 0 );
+       });
+
+       test( "navigationbar one button test", function () {
+               unit_navigationbar( $("#normalnavigation2"), 1 );
+       });
+
+       test( "navigationbar two button test", function () {
+               unit_navigationbar( $("#normalnavigation3"), 2 );
+       });
+
+       test( "navigationbar three button test", function () {
+               unit_navigationbar( $("#normalnavigation4"), 3 );
+       });
+
+       test( "navigationbar extended two button test", function () {
+               unit_navigationbar( $("#extendedstyle2btn"), 2, true );
+       });
+
+       test( "navigationbar extended three button test", function () {
+               unit_navigationbar( $("#extendedstyle3btn"), 3, true );
+       });
+
+       test( "navigationbar extended four button test", function () {
+               unit_navigationbar( $("#extendedstyle4btn"), 4, true );
+       });
+})(jQuery);
diff --git a/tct-webuifw-tests/tests/unit-tests/notification/index.html b/tct-webuifw-tests/tests/unit-tests/notification/index.html
new file mode 100755 (executable)
index 0000000..bdef33e
--- /dev/null
@@ -0,0 +1,70 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+       <script src="notification-tests.js"></script>
+
+       <title>Notification</title>
+</head>
+
+<body>
+
+<h1 id="qunit-header">Notification</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests"></ol>
+
+<div id="qunit-fixture">
+
+       <div data-role="page" id="notifiaction0">
+               <div data-role="notification" id="smallpopup" data-type="popup" data-interval='1000'>
+                       <p>text1</p>
+               </div>
+               <div data-role="notification" id="smallpopup2" data-type="popup" data-interval='1000'>
+                       <p>text1</p>
+                       <p>text2</p>
+               </div>
+               <div data-role="notification" id="smallpopup3" data-type="popup" data-interval='1000'>                  
+               </div>
+               <div data-role="header" data-position="fixed">
+                       <h1>Notification</h1>
+               </div>
+               <div data-role="content">
+               </div>
+       </div>
+
+       <div data-role="page" id="notification1">
+               <div data-role="notification" id="tickernoti" data-type="ticker"  data-icon="02_icon.png" data-interval='5'>
+                       <p>text1</p>
+                       <p>text2</p>
+               </div>
+               <div data-role="notification" id="tickernoti2" data-type="ticker"  data-icon="02_icon.png" data-interval='5'>
+                       <p>text1</p>
+                       <p>text2</p>
+                       <p>text3</p>
+                       <p>text4</p>
+               </div>
+               <div data-role="notification" id="tickernoti3" data-type="ticker"  data-icon="02_icon.png" data-interval='5'>                   
+               </div>
+               <div data-role="header" data-position="fixed">
+                       <h1>Notification</h1>
+               </div>
+               <div data-role="content">
+               </div>
+       </div>
+       
+
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/notification/notification-tests.js b/tct-webuifw-tests/tests/unit-tests/notification/notification-tests.js
new file mode 100644 (file)
index 0000000..434ee6a
--- /dev/null
@@ -0,0 +1,107 @@
+/*
+ * Unit Test : Notification
+ *
+ * Minkyu Kang <mk7.kang@samsung.com>
+ */
+/*jslint browser: true*/
+/*global $, jQuery, test, equal, ok*/
+(function ($) {
+       module("Notification");
+
+       var unit_notification = function ( widget, type ) {
+               var notification,
+                       elem = ".ui-" + type,
+                       text,
+                       closebutton;
+
+               /* Create */
+               widget.notification();
+
+               notification = widget.children( elem );
+               ok( notification, "Create");
+
+               /*markup check*/
+               if (type == ' ticker') {
+                       ok(notification.find('.ui-ticker-btn'), "makrup Check : Close button") ;
+                       ok(notification.find('.ui-ticker-btn').find(":jqmData(role=button)"), "makrup Check : Close button present") ;
+                       equal(notification.find('.ui-ticker-btn').find(":jqmData(role=button)").text(), 'Close', "makrup Check : Close button text") ;
+                       ok(notification.find('.ui-ticker').find(".ui.ticker-text1-bg"), "makrup Check : ticker text present") ;
+                       ok(notification.find('.ui-ticker').find(".ui.ticker-text2-bg"), "makrup Check : ticker text present") ;
+                       ok(notification.find('.ui-ticker').find("img.ui-ticker-icon").length > 0, "makrup Check : ticker icon present") ;
+               } else {
+                       ok(notification.find('.ui-smallpopup'), "makrup Check : smapll popup") ;
+                       ok(notification.find('.ui-smallpopup').find(".ui.smallpopup-text-bg"), "makrup Check : popup text present") ;
+               }
+
+               /* Open */
+               widget.notification("open");
+               notification = widget.children( elem );
+               ok( notification.hasClass("show"), "API : open");
+
+               /* Close */
+               widget.notification("close");
+               notification = widget.children( elem );
+               ok( notification.hasClass("hide"), "API : close");
+
+               /* hide when click */
+               widget.notification("open");
+               notification = widget.children( elem );
+
+               /*for coverage open notification when it is already open*/
+               widget.notification("open");
+               notification.trigger("vmouseup");
+               notification = widget.children( elem );
+               ok( notification.hasClass("hide"), "Hide when click the notification");
+
+               if ( type == ' ticker') {
+                       widget.notification("open");
+                       closebutton = widget.find(':jqmData(role=button)');
+                       closebutton.trigger("vmouseup");
+                       notification = widget.children( elem );
+                       ok( notification.hasClass("hide"), "Hide when click on the close button");
+               }
+
+               text = notification.children("p");
+               if ( type === "smallpopup") {
+                       ok( $( text[0] ).hasClass("ui-smallpopup-text-bg"), "Text");
+                       widget.notification('text', 'Text21');
+                       ok( $( text[0] ).hasClass("ui-smallpopup-text-bg"), "Text21");
+                       equal( widget.notification('text')[0], "Text21", "API : text - smallpopup");
+                       equal( text[0].innerHTML, "Text21", "API : text - smallpopup");
+               } else {
+                       ok( $( text[0] ).hasClass("ui-ticker-text1-bg"), "Top Text");
+                       ok( $( text[1] ).hasClass("ui-ticker-text2-bg"), "Bottom Text");
+
+                       widget.notification('text', 'Text31', 'Text32');
+                       ok( $( text[0] ).hasClass("ui-ticker-text1-bg"), "Text31", "API : text- ticker");
+                       ok( $( text[1] ).hasClass("ui-ticker-text2-bg"), "Text32", "API : text- ticker");
+                       equal( text[0].innerHTML, "Text31", "API : text - ticker");
+                       equal( text[1].innerHTML, "Text32", "API : text - ticker");
+                       equal( widget.notification('text')[0], "Text31", "API : text - ticker");
+                       equal( widget.notification('text')[1], "Text32", "API : text - ticker");
+
+                       /*icon*/
+                       equal(widget.jqmData('icon'), '02_icon.png', "API : icon , initial check") ;
+                       widget.notification('icon', '03_icon.png');
+                       equal(widget.find('img').attr("src"), '03_icon.png', "API : icon , new icon is set") ;
+               }
+               /*destroy*/
+               widget.notification("destroy");
+               notification = widget.children( elem );
+               ok( !notification.hasClass("show") || !notification.hasClass("hide"), "destroy check");
+       };
+
+       test("smallpopup", function () {
+               $('#notifiaction0').page();
+               unit_notification( $("#smallpopup"), "smallpopup");
+               unit_notification( $("#smallpopup2"), "smallpopup");
+               unit_notification( $("#smallpopup3"), "smallpopup");
+       });
+
+       test("tickernoti", function () {
+               $('#notifiaction1').page();
+               unit_notification( $("#tickernoti"), "ticker");
+               unit_notification( $("#tickernoti2"), "ticker");
+               unit_notification( $("#tickernoti3"), "ticker");
+       });
+}( jQuery ));
diff --git a/tct-webuifw-tests/tests/unit-tests/page/index.html b/tct-webuifw-tests/tests/unit-tests/page/index.html
new file mode 100755 (executable)
index 0000000..75005ed
--- /dev/null
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+
+  <script src="page-tests.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Page Tests</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div id="main_page" data-nstest-role="page">
+       <div data-role="header" data-nstest-position="inline">
+               <h1>Page Test - markup</h1>
+       </div>
+       <div data-role="content">
+       </div>
+       <div data-role="footer">
+       </div>
+</div>
+
+<div id="main_page_back" data-nstest-role="page" data-add-back-btn="true">
+       <div data-role="header" data-nstest-position="inline">
+               <h1>Page Test - markup</h1>
+       </div>
+       <div data-role="content">
+       </div>
+       <div data-role="footer">
+       </div>
+</div>
+
+<div id="main_page_back_header" data-nstest-role="page" data-add-back-btn="header">
+       <div data-role="header" data-nstest-position="inline">
+               <h1>Page Test - markup</h1>
+       </div>
+       <div data-role="content">
+       </div>
+       <div data-role="footer">
+       </div>
+</div>
+
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/page/page-tests.js b/tct-webuifw-tests/tests/unit-tests/page/page-tests.js
new file mode 100755 (executable)
index 0000000..b98f199
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+ * page unit tests
+ */
+
+(function ($) {
+       $.mobile.defaultTransition = "none";
+
+       module( "Page" );
+
+       var unit_page = function ( widget, backoption ) {
+               var created_page = widget.page();
+
+               /* Create */
+               ok( created_page, "Create" );
+
+               equal( created_page.children(".ui-footer" ).length, 1, "check if fixed bar exist" );
+
+               if ( backoption  ) {
+                       equal( created_page.children(".ui-" + backoption ).find( "a" ).hasClass( "ui-btn-back" ), true );
+               }
+       };
+
+       test( "Basic page create test", function () {
+               unit_page( $("#main_page") );
+       });
+
+       test( "Back button page create test", function () {
+               unit_page( $("#main_page_back"), "footer" );
+       });
+
+       test( "Back button page create test - header", function () {
+               unit_page( $("#main_page_back_header"), "header" );
+       });
+})(jQuery);
diff --git a/tct-webuifw-tests/tests/unit-tests/popupwindow/index.html b/tct-webuifw-tests/tests/unit-tests/popupwindow/index.html
new file mode 100755 (executable)
index 0000000..79237da
--- /dev/null
@@ -0,0 +1,253 @@
+<!DOCTYPE html>
+<html>
+<head>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+       <script src="popup-tests.js"></script>
+
+       <title>Popup Window</title>
+</head>
+
+<body>
+
+<h1 id="qunit-header">Popup Window</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests"></ol>
+
+<div id="qunit-fixture">
+
+       <div data-role="page" id="popupwindow">
+               <div data-role="header" data-position="fixed">
+                       <h1>Popup Window</h1>
+               </div>
+               <div data-role="content">
+               
+                   <div data-role="button" id="popupbutton">Text Button</div>
+                       
+                       <div id="center_info" data-role="popup"  data-position-to='window' class="center_info" data-style='center_info' >
+                               <p class="ui-popup-title">title</p>
+                               <p  class="ui-popup-text">text</p>
+                       </div>
+
+                       <div id="center_title" data-role="popup"  data-position-to='window' class="center_title">
+                               <p class="ui-popup-title">title</p>
+                               <p class="ui-popup-text">text</p>
+                       </div>
+
+                       <div id="center_basic_1btn" data-role="popup"  data-position-to='window' class ="center_basic_1btn">
+                       <p class="ui-popup-title">title</p>
+                               <p  class="ui-popup-text">text</p>
+                               <div class="ui-popup-button-bg">
+                                       <input data-role="button" value="button" />
+                               </div>
+                       </div>
+
+                       <div id="center_title_1btn" data-role="popup"  data-position-to='window' class="center_title_1btn">
+                               <p class="ui-popup-title">title</p>
+                               <p  class="ui-popup-text">text</p>
+                               <div class="ui-popup-button-bg">
+                                       <input data-role="button" value="button" />
+                               </div>
+                       </div>
+                       
+                       
+                       <!-- Social Magazine font popup -->
+               <div id="center_social_style1" data-role="popup"  data-position-to='window' class="center_liststyle_2btn">
+                       <p class="ui-popup-title">title</p>
+                               <p  class="ui-popup-text">text</p>
+                                       <div class="ui-popup-scroller-bg" data-scroll="y"  style="height:auto">
+                                               <ul data-role="listview">
+                                                       <li class="ui-li-has-radio" id="text_fontSmall">
+                                                               <a href="#">
+                                                               <input type="radio" name="radio-choice-1" id="fontSmall" value="choice-1"/>
+                                                               text_Small</a>
+                                                       </li>
+                                                       <li class="ui-li-has-radio" id="text_fontMedium">
+                                                               <a href="#">
+                                                               <input type="radio" name="radio-choice-1" id="fontMedium" value="choice-2"/>
+                                                               text_Medium</a>
+                                                       </li>
+                                                       <li class="ui-li-has-radio" id="text_fontLarge">
+                                                               <a href="#">
+                                                               <input type="radio" name="radio-choice-1" id="fontLarge" value="choice-3"/>
+                                                               text_Large</a>
+                                                       </li>
+                                               </ul>
+                                       </div>
+                                       <div class="ui-popup-button-bg">
+                                               <div data-role="button"  data-inline="true">OK</div>
+                                               <div data-role="button"  data-inline="true">Cancel</div>
+                                       </div>
+               </div>
+
+               <!-- Social Magazine ime popup -->
+               <div id="center_social_style2" data-role="popup"  data-position-to='window' class="center_title_2btn">
+                       <p class="ui-popup-title">title</p>
+                               <p  class="ui-popup-text">text</p>
+                       <div class="ui-popup-text">
+                                               <input type="text" id="newCategoryPopupInput" name="newCategoryName" size="30" />
+                       </div>
+                                       <div class="ui-popup-button-bg">
+                                               <div data-role="button"  data-inline="true">OK</div>
+                                               <div data-role="button"  data-inline="true">Cancel</div>
+                                       </div>
+               </div>
+
+               
+
+
+
+               <!-- Center basic 2 button popup -->
+               <div id="center_basic_2btn" data-role="popup"  data-position-to='window' class="center_basic_2btn">
+                       <p class="ui-popup-title">title</p>
+                               <p  class="ui-popup-text">text</p>
+                       <div class="ui-popup-button-bg">
+                               <div data-role="button"  data-inline="true">Button1</div>
+                               <div data-role="button"  data-inline="true">Button2</div>
+                       </div>
+               </div>
+
+               <!-- Center basic 3 button popup -->
+               <div id="center_basic_3btn" data-role="popup"  data-position-to='window' class="center_basic_3btn">
+                       <p class="ui-popup-title">title</p>
+                               <p  class="ui-popup-text">text</p>
+                       <div class="ui-popup-button-bg">
+                                       <div data-role="button"  data-inline="true">Button1</div>
+                                       <div data-role="button"  data-inline="true">Button2</div>
+                                       <div data-role="button"  data-inline="true">Button3</div>
+                       </div>
+               </div>
+
+
+               <!-- Center title 2 button popup -->
+               <div id="center_title_2btn" data-role="popup"  data-position-to='window' class="center_title_2btn">
+                       <div class="ui-popup-title">title</div>
+                       <div class="ui-popup-text">text</div>
+                       <div class="ui-popup-button-bg">
+                               <div data-role="button"  data-inline="true">Button1</div>
+                               <div data-role="button"  data-inline="true">Button2</div>
+                       </div>
+               </div>
+
+               <!-- Center title 3 button popup -->
+               <div id="center_title_3btn" data-role="popup"  data-position-to='window' class="center_title_3btn">
+                       <div class="ui-popup-title">title</div>
+                       <div class="ui-popup-text">text</div>
+                       <div class="ui-popup-button-bg">
+                               <div data-role="button"  data-inline="true">Button1</div>
+                               <div data-role="button"  data-inline="true">Button2</div>
+                               <div data-role="button"  data-inline="true">Button3</div>
+                       </div>
+               </div>
+
+               <!-- Center button vertical -->
+               <div id="center_button_vertical" data-role="popup"  data-position-to='window' class="center_button_vertical">
+                       <p class="ui-popup-title">title</p>
+                               <p  class="ui-popup-text">text</p>
+                       <div class="ui-popup-button-bg">
+                               <div data-role="button"  data-inline="true">Rename</div>
+                               <div data-role="button"  data-inline="true">Replace</div>
+                               <div data-role="button"  data-inline="true">Cancel</div>
+                       </div>
+               </div>
+
+               <!-- popup checkbox  -->
+               <div id="center_checkbox" data-role="popup"  data-position-to='window' class="center_checkbox">
+                       <p class="ui-popup-title">title</p>
+                               <p  class="ui-popup-text">text</p>
+                       <div class="ui-popup-check-bg">
+                               <input type="checkbox" name="checkbox-1" id="checkbox-1" class="custom" />
+                               <label for="checkbox-1">Don't ask again</label>
+                       </div>
+                       <div class="ui-popup-button-bg">
+                               <div data-role="button"  data-inline="true">Rename</div>
+                               <div data-role="button"  data-inline="true">Replace</div>
+                       </div>
+               </div>
+
+               <!-- popup liststyle 1 button -->
+               <div id="center_liststyle_1btn" data-role="popup"  data-position-to='window' class="center_liststyle_1btn">
+                       <p class="ui-popup-title">title</p>
+                               <p  class="ui-popup-text">text</p>
+                       <div class="ui-popup-scroller-bg" data-scroll="y">
+                               <ul data-role="listview" data-icon="1line-textonly">
+                                       <li><a href="#">List item 1</a></li>
+                                       <li><a href="#">List item 2</a></li>
+                                       <li><a href="#">List item 3</a></li>
+                                       <li><a href="#">List item 4</a></li>
+                                       <li><a href="#">List item 5</a></li>
+                                       <li><a href="#">List item 6</a></li>
+                                       <li><a href="#">List item 7</a></li>
+                                       <li><a href="#">List item 8</a></li>
+                                       <li><a href="#">List item 9</a></li>
+                               </ul>
+                       </div>
+                       <div class="ui-popup-button-bg">
+                               <div data-role="button"  data-inline="true">Cancel</div>
+                       </div>
+               </div>
+
+               <!-- popup liststyle 2 button -->
+               <div id="center_liststyle_2btn" data-role="popup"  data-position-to='window' class="center_liststyle_2btn">
+                       <p class="ui-popup-title">title</p>
+                               <p  class="ui-popup-text">text</p>
+                       <div class="ui-popup-scroller-bg" data-scroll="y">
+                               <ul data-role="listview" data-icon="1line-textonly">
+                                       <li><a href="#">List item 1</a></li>
+                                       <li><a href="#">List item 2</a></li>
+                                       <li><a href="#">List item 3</a></li>
+                                       <li><a href="#">List item 4</a></li>
+                                       <li><a href="#">List item 5</a></li>
+                                       <li><a href="#">List item 6</a></li>
+                                       <li><a href="#">List item 7</a></li>
+                                       <li><a href="#">List item 8</a></li>
+                                       <li><a href="#">List item 9</a></li>
+                               </ul>
+                       </div>
+                       <div class="ui-popup-button-bg">
+                               <div data-role="button"  data-inline="true">Ok</div>
+                               <div data-role="button"  data-inline="true">Cancel</div>
+                       </div>
+               </div>
+
+               <!-- popup liststyle 3 button -->
+               <div id="center_liststyle_3btn" data-role="popup"  data-position-to='window' class="center_liststyle_3btn">
+               <p class="ui-popup-title">title</p>
+                               <p  class="ui-popup-text">text</p>
+                       <div class="ui-popup-scroller-bg" data-scroll="y">
+                               <ul data-role="listview" data-icon="1line-textonly">
+                                       <li><a href="#">List item 1</a></li>
+                                       <li><a href="#">List item 2</a></li>
+                                       <li><a href="#">List item 3</a></li>
+                                       <li><a href="#">List item 4</a></li>
+                                       <li><a href="#">List item 5</a></li>
+                                       <li><a href="#">List item 6</a></li>
+                                       <li><a href="#">List item 7</a></li>
+                                       <li><a href="#">List item 8</a></li>
+                                       <li><a href="#">List item 9</a></li>
+                               </ul>
+                       </div>
+                       <div class="ui-popup-button-bg">
+                               <div data-role="button"  data-inline="true">Rename</div>
+                               <div data-role="button"  data-inline="true">Replace</div>
+                               <div data-role="button"  data-inline="true">Cancel</div>
+                       </div>
+               </div>
+
+               </div>
+       </div>
+
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/popupwindow/popup-tests.js b/tct-webuifw-tests/tests/unit-tests/popupwindow/popup-tests.js
new file mode 100644 (file)
index 0000000..3a3f2db
--- /dev/null
@@ -0,0 +1,112 @@
+/*
+ * Unit Test : Popup window
+ *
+ * Minkyu Kang <mk7.kang@samsung.com>
+ */
+/*jslint browser: true*/
+/*global $, jQuery, test, equal, ok*/
+$( document ).bind( "pageshow", function ( ) {
+
+       module("Popup Window" );
+       var unit_popup = function ( widget, type, buttoncount ) {
+
+               var popupbeforepositionEvent = 0,
+                       popupafteropenEvent = 0,
+                       popupaftercloseEvent = 0,
+                       buttonList,
+                       popupwindow = function ( widget ) {
+                               return widget.parent('.ui-popup-container') ;
+                       },
+                       check_text = function ( widget, selector, type ) {
+                               if ( !widget.find( selector ).length ) {
+                                       return;
+                               }
+                               equal( widget.find( selector ).text( ), type, type );
+                       };
+
+               $('#popupbutton').unbind('vclick') ;
+               $('#popupbutton').bind('vclick', function ( ) {
+                       widget.popup("open", {positionTo : 'window', transition : 'none', x : '0', y : '0', link : widget } );
+               } ) ;
+
+               /* Create */
+               widget.popup( );
+               ok( popupwindow( widget ), "Create" );
+
+               /* Open */
+               $('#popupbutton').trigger('vclick') ;
+               ok( parseInt( popupwindow( widget ).css("top" ), 10 ) > 0, "API : open" );
+
+               /* Close */
+               widget.popup("close" );
+               ok( popupwindow( widget ).hasClass("ui-selectmenu-hidden" ) ||
+                               popupwindow( widget ).hasClass("reverse out" ),
+                               "API : close" );
+
+               /* Close the popup by click the screen */
+               $('#popupbutton').trigger('vlick') ;
+               $(".ui-selectmenu-screen" ).trigger("vclick" );
+               ok( popupwindow( widget ).hasClass("ui-selectmenu-hidden" ) || popupwindow( widget ).hasClass("reverse out" ), "Close the popup by click the screen" );
+
+               /* Check Texts */
+               if ( widget.find(".ui-popup-text" ) != undefined ) {
+                       equal( widget.find(".ui-popup-text" ).html( ), "text" );
+               }
+               if ( widget.find(".ui-popup-title" ) != undefined ) {
+                       equal( widget.find(".ui-popup-title" ).html( ), "title" );
+               }
+
+               buttonList = widget.find(":jqmData(role=button )" ) ;
+               equal( buttonList.length, buttoncount, "Button count correct" );
+
+       };
+
+       $("#popupwindow" ).page( );
+
+       test( "Center Title", function ( ) {
+               unit_popup( $("#center_title" ), "center_title" , 0 );
+       } );
+       test( "Center Info", function ( ) {
+               unit_popup( $("#center_info" ), "center_info", 0 );
+       } );
+       test( "Center Basic 1 Button", function ( ) {
+               unit_popup( $("#center_basic_1btn" ), "center_basic_1btn" , 1 );
+       } );
+       test( "Center Title 1 Button", function ( ) {
+               unit_popup( $("#center_title_1btn" ), "center_title_1btn" , 1 );
+       } );
+       test( "Center social style", function ( ) {
+               unit_popup( $("#center_social_style1" ), "center_liststyle_2btn" , 2 );
+       } );
+       test( "center_social_style2", function ( ) {
+               unit_popup( $("#center_social_style2" ), "center_title_2btn" , 2 );
+       } );
+       test( "center_basic_2btn", function ( ) {
+               unit_popup( $("#center_basic_2btn" ), "center_basic_2btn" , 2 );
+       } );
+       test( "center_basic_3btn", function ( ) {
+               unit_popup( $("#center_basic_3btn" ), "center_basic_3btn" , 3 );
+       } );
+       test( "center_title_2btn", function ( ) {
+               unit_popup( $("#center_title_2btn" ), "center_title_2btn" , 2 );
+       } );
+       test( "Center_title_3btn", function ( ) {
+               unit_popup( $("#center_title_3btn" ), "center_title_3btn" , 3 );
+       } );
+       test( "center_button_vertical", function ( ) {
+               unit_popup( $("#center_button_vertical" ), "center_button_vertical" , 3 );
+       } );
+       test( "Center_checkbox", function ( ) {
+               unit_popup( $("#center_checkbox" ), "center_checkbox" , 2 );
+       } );
+       test( "center_liststyle_1btn", function ( ) {
+               unit_popup( $("#center_liststyle_1btn" ), "center_liststyle_1btn" , 1 );
+       } );
+       test( "center_liststyle_2btn", function ( ) {
+               unit_popup( $("#center_liststyle_2btn" ), "center_liststyle_2btn" , 2 );
+       } );
+       test( "center_liststyle_3btn", function ( ) {
+               unit_popup( $("#center_liststyle_3btn" ), "center_liststyle_3btn" , 3 );
+       } );
+
+} );
diff --git a/tct-webuifw-tests/tests/unit-tests/popupwindow_ctxpopup/ctxpopup-tests.js b/tct-webuifw-tests/tests/unit-tests/popupwindow_ctxpopup/ctxpopup-tests.js
new file mode 100644 (file)
index 0000000..8fce173
--- /dev/null
@@ -0,0 +1,105 @@
+$(document).ready( function () {
+
+       module( "CtxPopup" );
+       asyncTest( "Auto-initialization", function () {
+               $.testHelper.pageSequence( [
+                       function () {
+                               var plain = $("#pop_plain"),
+                                       plainBtn = $("#btn_plain"),
+                                       horizontal = $("#pop_horizontal"),
+                                       horizontalBtn = $("#btn_horizontal"),
+                                       buttons = $("#pop_buttons"),
+                                       buttonsBtn = $("#btn_buttons"),
+                                       notCtxpopup  = $("#pop_not"),
+                                       notCtxpopupBtn = $("#btn_not");
+
+                               ok( plain.data( "ctxpopup" ), "should Normal type ctxpopup created" );
+                               ok( horizontal.data( "ctxpopup" ), "should Horizontal type ctxpopup created" );
+                               ok( buttons.data( "ctxpopup" ), "should Button type ctxpopup created" );
+                               ok( !notCtxpopup.data( "ctxpopup" ), "should wihthout arrow ctxpopup not created" );
+                       },
+
+                       function () {
+                               expect( 4 );
+                               start();
+                       }
+               ]);
+       });
+
+       // ctxpopup shares code with popupwindow so only tests ctxpopup specific codes
+       asyncTest( "Open and Placements", function () {
+               $.testHelper.pageSequence( [
+                       function () {
+                               var plain = $("#pop_plain").ctxpopup(),
+                                       horizontal = $("#pop_horizontal").ctxpopup(),
+                                       buttons = $("#pop_buttons").ctxpopup();
+
+                               function placementsTest( popup ) {
+                                       var width = $(window).width(),
+                                               height = $(window).height(),
+                                               x = 0,
+                                               y = 0,
+                                               parents = popup.parents(".ui-popupwindow"),
+                                               popDim,
+                                               popPosX = 0,
+                                               popPosY = 0,
+                                               segment = 5,
+                                               closed = 0,
+                                               open = 0;
+
+                                       popup.bind( "popupafterclose", function () {
+                                               // tests event trigger
+                                               closed++;
+                                               if ( closed == open ) {
+                                                       equal( closed, open, "should 'popupafterclose' triggered." );
+                                                       start();
+                                               }
+                                       });
+
+                                       while ( y <= height ) {
+                                               while ( x <= width ) {
+                                                       popup.popupwindow( "open", x, y );
+                                                       open++;
+                                                       popPosX = parseInt( parents.css("left") );
+                                                       popPosY = parseInt( parents.css("top") );
+                                                       popDim = {
+                                                               width: parents.width(),
+                                                               height: parents.height()
+                                                       };
+
+                                                       if ( popPosX < 0 || popPosY < 0 || popPosX > (width - popDim.width) || popPosY > (height - popDim.height) ) {
+                                                               throw "Pop up occured at wrong position: (" + popPosX + "," + popPosY + "," + popDim.width + "," + popDim.height + ")";
+                                                       }
+
+                                                       popup.popupwindow( "close" );
+                                                       x += width / segment;
+                                               }
+                                               y += height / segment;
+                                               x = 0;
+                                       }
+                                       setTimeout( function() {
+                                               if ( closed != open )
+                                                       throw "  Error, popupafterclose event was not triggering ";
+                                       }, 1000 * 10 );
+                                       stop();
+                                       return true;
+                               }
+
+                               var testee = [
+                                       { name: "Plain", popup: plain },
+                                       { name: "Horizontal", popup: horizontal },
+                                       { name: "Buttons", popup: buttons }
+                               ];
+
+                               for ( var i = 0; i < testee.length; i++ ) {
+                                       ok( placementsTest( testee[i].popup ), "should " + testee[i].name + " pop up within window area" );
+                               }
+                       },
+
+                       function () {
+                               expect( 6 );
+                               start();
+                       }
+               ]);
+       });
+});
diff --git a/tct-webuifw-tests/tests/unit-tests/popupwindow_ctxpopup/index.html b/tct-webuifw-tests/tests/unit-tests/popupwindow_ctxpopup/index.html
new file mode 100644 (file)
index 0000000..aac0f71
--- /dev/null
@@ -0,0 +1,98 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+       <script src="../../../libs/js/jquery-mobile-1.1.0/tests/jquery.testHelper.js"></script>
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+       <script src="ctxpopup-tests.js"></script>
+
+       <title>Contextual Popup</title>
+</head>
+
+<body>
+
+<h1 id="qunit-header">Contextual Popup</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests"></ol>
+
+<div id="qunit-fixture">
+       <div data-role="page" id="page-1">
+               <div data-role="header" data-position="fixed">
+                       <h1>Contextual Popup</h1>
+               </div>
+               <div data-role="content">
+                       <a href="#pop_plain" id="btn_plain" data-role="button" data-inline="true" data-rel="popupwindow">Pop_1</a>
+                       <div id="pop_plain" data-role="popupwindow" data-show-arrow="true">
+                               <ul data-role="listview">
+                                       <li class="ui-li-1line-bigicon">
+                                               <span class="ui-li-text-main">Dummy 1</span>
+                                       </li>
+                                       <li class="ui-li-1line-bigicon">
+                                               <span class="ui-li-text-main">Dummy 2</span>
+                                       </li>
+                               </ul>
+                       </div>
+                       <a href="#pop_horizontal" id="btn_horizontal" data-role="button" data-inline="true" data-rel="popupwindow">Pop 2</a>
+                       <div id="pop_horizontal" class="horizontal" data-role="popupwindow" data-show-arrow="true">
+                               <ul>
+                                       <li class="icon">
+                                               <a href="#" data-role="button" data-icon="call"></a>
+                                       </li>
+                                       <li class="icon">
+                                               <a href="#" data-role="button" data-icon="favorite"></a>
+                                       </li>
+                                       <li class="text">
+                                               <a href="#">Function</a>
+                                       </li>
+                               </ul>
+                       </div>
+                       <a href="#pop_buttons" id="btn_buttons" data-role="button" data-inline="true" data-rel="popupwindow">Pop 3</a>
+                       <div id="pop_buttons" class="button" data-role="popupwindow" data-show-arrow="true">
+                               <table>
+                                       <tr>
+                                               <td>
+                                                       <a href="#" data-role="button">A</a>
+                                               </td>
+                                               <td>
+                                                       <a href="#" data-role="button">B</a>
+                                               </td>
+                                               <td>
+                                                       <a href="#" data-role="button">C</a>
+                                               </td>
+                                       </tr>
+                                       <tr>
+                                               <td>
+                                                       <a href="#" data-role="button">D</a>
+                                               </td>
+                                               <td>
+                                                       <a href="#" data-role="button">E</a>
+                                               </td>
+                                               <td>
+                                                       <a href="#" data-role="button">F</a>
+                                               </td>
+                                       </tr>
+                               </table>
+                       </div>
+                       <a href="#pop_not" id="btn_not" data-role="button" data-inline="true" data-rel="popupwindow">Pop 4</a>
+                       <div id="pop_not" data-role="popupwindow">
+                               <div>
+                                       <span>Dummy</span>
+                               </div>
+                       </div>
+               </div>
+       </div>
+
+</div>
+
+</body>
+</html>
+
diff --git a/tct-webuifw-tests/tests/unit-tests/progress/index.html b/tct-webuifw-tests/tests/unit-tests/progress/index.html
new file mode 100755 (executable)
index 0000000..ac6cf2a
--- /dev/null
@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+       <script src="progress-tests.js"></script>
+
+       <title>Progress</title>
+</head>
+
+<body>
+
+<h1 id="qunit-header">Progressbar</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests"></ol>
+
+<div id="qunit-fixture">
+
+       <div data-role="page" id="progress_demo">
+               <div data-role="header" data-position="fixed">
+                       <h1>Progressbar</h1>
+               </div>
+               <div data-role="content">
+                       <ul data-role="listview">
+                               <li><div data-role="progressing" data-style="pending" id="pending"></div></li>
+                               <li><div data-role="progressing" data-style="circle" id="progressing"></div></li>
+                       </ul>
+               </div>
+       </div>
+
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/progress/progress-tests.js b/tct-webuifw-tests/tests/unit-tests/progress/progress-tests.js
new file mode 100644 (file)
index 0000000..8ffe234
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * Unit Test: Progress
+ *
+ * Minkyu Kang <mk7.kang@samsung.com>
+ */
+
+(function ($) {
+       module("Progress");
+
+       var unit_progress = function ( widget, type ) {
+               var progress,
+                       elem = ".ui-progress-" + type,
+                       _class = "ui-progress-" + type + "-running";
+
+               widget.progress();
+
+               /* Create */
+               progress = widget.find( elem );
+               ok( progress, "Create" );
+
+               /* Option */
+               equal( widget.progress( "option", "style" ), type, "Option: style" );
+
+               /* Running */
+               widget.progress( "running", true );
+               progress = widget.find( elem );
+               equal( progress.hasClass( _class ), true, "API: running" );
+
+               /* Stop */
+               widget.progress( "running", false );
+               progress = widget.find( elem );
+               equal( progress.hasClass( _class ), false, "API: stop" );
+       };
+
+       test( "pending bar", function () {
+               unit_progress( $("#pending"), "pending" );
+       });
+
+       test( "processing circle", function () {
+               unit_progress( $("#progressing"), "circle" );
+       });
+}( jQuery ));
diff --git a/tct-webuifw-tests/tests/unit-tests/progressbar/index.html b/tct-webuifw-tests/tests/unit-tests/progressbar/index.html
new file mode 100755 (executable)
index 0000000..6340982
--- /dev/null
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+       <script src="progressbar-tests.js"></script>
+
+       <title>Progressbar</title>
+</head>
+
+<body>
+
+<h1 id="qunit-header">Progressbar</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests"></ol>
+
+<div id="qunit-fixture">
+
+       <div data-role="page" id="progressbar_demo">
+               <div data-role="header" data-position="fixed">
+                       <h1>Progressbar</h1>
+               </div>
+               <div data-role="content">
+                       <ul data-role="listview">
+                               <li><div data-role="progressbar" id="progressbar"></div></li>
+                       </ul>
+               </div>
+       </div>
+
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/progressbar/progressbar-tests.js b/tct-webuifw-tests/tests/unit-tests/progressbar/progressbar-tests.js
new file mode 100644 (file)
index 0000000..1b75bc2
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+ * Unit Test: Progressbar
+ *
+ * Minkyu Kang <mk7.kang@samsung.com>
+ */
+
+(function ($) {
+       module("Progressbar");
+
+       var unit_progressbar = function ( widget ) {
+               var progress,
+                       i,
+                       value,
+                       get_width = function ( widget ) {
+                               return widget.progressbar( "option", "value" );
+                       };
+
+               widget.progressbar();
+
+               /* Create */
+               equal( widget.hasClass("ui-progressbar"), true, "Create" );
+
+               /* Value */
+               for (i = 0; i < 5; i++) {
+                       value = Math.floor( Math.random() * 100 );
+                       widget.progressbar( "value", value );
+                       equal( get_width( widget ), value, "API: value" );
+               }
+       };
+
+       test( "progressbar", function () {
+               unit_progressbar( $("#progressbar") );
+       });
+}( jQuery ));
diff --git a/tct-webuifw-tests/tests/unit-tests/radio/index.html b/tct-webuifw-tests/tests/unit-tests/radio/index.html
new file mode 100644 (file)
index 0000000..9488116
--- /dev/null
@@ -0,0 +1,69 @@
+<!DOCTYPE html>
+<html>
+<head>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+
+       <script src="radio-tests.js"></script>
+       <title>Radio</title>
+</head>
+
+<body>
+
+<h1 id="qunit-header">Radio</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests"></ol>
+
+<div id="qunit-fixture">
+       <div data-role="page" id="radiopage">
+               <div>
+                       <input type="radio" name="radio-single" id="radio-single-1" value="Normal" />
+                       <label for="radio-single-1">Normal</label>
+                       <input type="radio" name="radio-2" id="radio-single-2" checked="checked" disabled="disabled" value="Checked, Disabled" />
+                       <label for="radio-single-2">Checked, Disabled</label>
+                       <input type="radio" name="radio-3" id="radio-single-3" disabled="disabled" value="Disabled" />
+                       <label for="radio-single-3">Disabled</label>
+
+                       <fieldset id="controlgroup" data-role="controlgroup">
+                               <input type="radio" name="radio-choice" id="radio-choice-1" value="Cat"  />
+                               <label for="radio-choice-1">Cat</label>
+
+                               <input type="radio" name="radio-choice" id="radio-choice-2" value="Dog" />
+                               <label for="radio-choice-2">Dog</label>
+
+                               <input type="radio" name="radio-choice" id="radio-choice-3" value="Hamster" />
+                               <label for="radio-choice-3">Hamster</label>
+
+                               <input type="radio" name="radio-choice" id="radio-choice-4" value="Lizard" />
+                               <label for="radio-choice-4">Lizard</label>
+                       </fieldset>
+
+                       <fieldset id="controlgroup2" data-type="horizontal" data-role="controlgroup">
+                               <input type="radio" name="radio-choice2" id="radio-choiceh-1" value="Cat"  />
+                               <label for="radio-choiceh-1">Cat</label>
+
+                               <input type="radio" name="radio-choice2" id="radio-choiceh-2" value="Dog" />
+                               <label for="radio-choiceh-2">Dog</label>
+
+                               <input type="radio" name="radio-choice2" id="radio-choiceh-3" value="Hamster" />
+                               <label for="radio-choiceh-3">Hamster</label>
+
+                               <input type="radio" name="radio-choice2" id="radio-choiceh-4" value="Lizard" />
+                               <label for="radio-choiceh-4">Lizard</label>
+                       </fieldset>
+               </div>
+       </div>
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/radio/radio-tests.js b/tct-webuifw-tests/tests/unit-tests/radio/radio-tests.js
new file mode 100644 (file)
index 0000000..17cc054
--- /dev/null
@@ -0,0 +1,109 @@
+/*
+ * Unit Test: Radio
+ *
+ * Hyunjung Kim <hjnim.kim@samsung.com>
+ *
+ */
+$( "#radiopage" ).live( "pageinit", function(event) {
+
+       module("Radio");
+
+       /* Single Radio */
+       var unit_radio = function ( input , type ) {
+               var radio,
+                       label,
+                       checkClass,
+                       labelSpan,
+                       radioClassPrefix = "ui-radio";
+
+               radio = input.parent();
+               ok( radio.hasClass( radioClassPrefix ) , "Create - Single Radio Button" );
+
+               label = radio.find( "label" );
+               label.trigger( "vclick" );
+               checkClass = radioClassPrefix + "-on";
+               if( !input.is( ":checked" ) ) {
+                       checkClass = radioClassPrefix + "-off";
+               }
+               ok( label.hasClass( checkClass ), "Click - Radio button" );
+
+               labelSpan = label.children().children();
+               ok( labelSpan.first().is( ".ui-btn-text, .ui-btn-text-padding-left" ), "Okay - Label Padding" );
+
+               if ( !input.is( ":disabled" ) ) {
+                       label.trigger( "vclick" );
+               }
+
+               // Text Trim, Cause jQueryMobile(JQM) 1.1 forced to add - "\u00a0" in buttonIcon(ButtonMarkup)
+               // JQM 1.1 buttonMarkup code :
+               // - if( buttonIcon ) buttonIcon.appendChild( document.createTextNode( "\u00a0" ) );
+               equal( labelSpan.text().trim(), input.val(), "Label Text" );
+       };
+
+       /* Group Radio */
+       var unit_radio_group = function ( fieldset , type ) {
+               var type,
+                       radios,
+                       label,
+                       labels;
+
+               type = fieldset.jqmData( "type" );
+               if( type === undefined ) {
+                       type = "vertical";
+               }
+               ok( fieldset.is( ".ui-corner-all, .ui-controlgroup, .ui-controlgroup-" + type ) , "Create - ControlGroup" );
+
+               if( type == "horizontal" ) {
+                       labels = fieldset.find( "span.ui-btn-text" ).each( function () {
+                               ok( ( $( this ).siblings().length == 0 && $( this ).hasClass( "ui-btn-text" ) ) ? true : false, "Alignment - ControlGroup(Horizontal, Single Radio)" );
+                       });
+               }
+
+               radios = fieldset.find( "input[type='radio']" );
+               radios.each( function() {
+                       unit_radio( $( this ) , "Normal" );
+               });
+
+               ok( function() {
+                               try{
+                                       for ( i = 0 ; i < raidos.lenght ; i++ ) {
+                                               label = radios[i].find( "label" );
+                                               label.trigger( "vclick" );
+                                               if( !label.hasClass( "ui-radio-on" ) ){
+                                                       throw "error - other button activate";
+                                               }
+                                               for ( j = 0 ; j < radios.lenght ; j++) {
+                                                       if( i == j) continue;
+                                                       label = radios[j].find( "label" );
+                                                       if( label.hasClass( "ui-radio-on" ) ) {
+                                                               throw "error - other button activate";
+                                                       }
+                                               }
+                                       }
+                               } catch ( Exception ) {
+                                       return false;
+                               }
+                               return true;
+               }, "Click - Radio Button( Group )" );
+       };
+
+       test( "radiobutton - Single" , function () {
+               unit_radio( $("#radio-single-1") , "Normal" );
+       });
+
+       test( "radiobutton - Single, Checked, Disabled" , function () {
+               unit_radio( $("#radio-single-2") , "Checked, Disabled" );
+       });
+
+       test( "radiobutton - Single, Disabled" , function () {
+               unit_radio( $("#radio-single-3") , "Disabled" );
+       });
+
+       test( "radiobutton - Group" , function() {
+               unit_radio_group( $("#controlgroup") , "Group" );
+       });
+
+       test( "radiobutton - Group, Horizontal" , function() {
+               unit_radio_group( $("#controlgroup2") , "Group - horizontal" );
+       });
+});
diff --git a/tct-webuifw-tests/tests/unit-tests/runner.js b/tct-webuifw-tests/tests/unit-tests/runner.js
new file mode 100644 (file)
index 0000000..3efa3c5
--- /dev/null
@@ -0,0 +1,499 @@
+$(document).ready(function() {
+       var Runner = function( ) {
+               var self = this,
+                                       currentModule,
+                                       currentTest,
+                                       assertCount,
+                                       currentRun = {
+                                               modules: [],
+                                               total: 0,
+                                               passed: 0,
+                                               failed: 0,
+                                               start: new Date(),
+                                               time: 0
+                                       };
+               $.extend( self, {
+                       frame: window.frames[ "testFrame" ],
+
+                       testTimeout: 3 * 60 * 1000,
+
+                       $frameElem: $( "#testFrame" ),
+
+                       assertionResultPrefix: "assertion result for test:",
+
+                       onTimeout: QUnit.start,
+
+                       onFrameLoad: function() {
+                               // establish a timeout for a given suite in case of async tests hanging
+                               self.testTimer = setTimeout( self.onTimeout, self.testTimeout );
+
+                               // it might be a redirect with query params for push state
+                               // tests skip this call and expect another
+                               if( !self.frame.QUnit ) {
+                                       self.$frameElem.one( "load", self.onFrameLoad );
+                                       return;
+                               }
+
+                               // when the QUnit object reports done in the iframe
+                               // run the onFrameDone method
+                               self.frame.QUnit.done = self.onFrameDone;
+                               self.frame.QUnit.testDone = self.onTestDone;
+                               self.frame.QUnit.log = self.onLog;
+                               self.frame.QUnit.begin = self.onBegin;
+                               self.frame.QUnit.moduleStart = self.onModuleStart;
+                               self.frame.QUnit.moduleDone = self.onModuleDone;
+                               self.frame.QUnit.testStart = self.onTestStart;
+                       },
+                       onBegin: function() {
+                               currentRun = {
+                                       modules: [],
+                                       total: 0,
+                                       passed: 0,
+                                       failed: 0,
+                                       start: new Date(),
+                                       time: 0
+                               };
+                       },
+                       onModuleStart: function( data ) {
+                               currentModule = {
+                                       name: data.name,
+                                       tests: [],
+                                       total: 0,
+                                       passed: 0,
+                                       failed: 0,
+                                       start: new Date(),
+                                       time: 0,
+                                       stdout: [],
+                                       stderr: []
+                               };
+                               currentRun.modules.push(currentModule);
+                       },
+                       onTestStart : function( data ) {
+                               if (!currentModule) {
+                                       currentModule = {
+                                               name: data.module || 'default',
+                                               tests: [],
+                                               total: 0,
+                                               passed: 0,
+                                               failed: 0,
+                                               start: new Date(),
+
+                                               time: 0,
+                                               stdout: [],
+                                               stderr: []
+                                       };
+                                       currentRun.modules.push(currentModule);
+                               }
+
+                               assertCount = 0;
+
+                               currentTest = {
+                                       name: data.name,
+                                       failedAssertions: [],
+                                       total: 0,
+                                       passed: 0,
+                                       failed: 0,
+                                       start: new Date(),
+                                       time: 0
+                               };
+
+                               currentModule.tests.push(currentTest);
+                       },
+                       onLog: function( data ){
+                               assertCount++;
+                               //if (!data.result) {
+                                       currentTest.failedAssertions.push(data);
+                                       currentModule.stdout.push('[' + currentModule.name + ', ' + currentTest.name + ', ' + assertCount + '] ' + data.message);
+                               //}
+                       },
+                       onTestDone: function( result ) {
+
+                               currentTest.time = (new Date()).getTime() - currentTest.start.getTime();  // ms
+                               currentTest.total = result.total;
+                               currentTest.passed = result.passed;
+                               currentTest.failed = result.failed;
+
+                               currentTest = null;
+
+                               QUnit.ok( !(result.failed > 0), result.name );
+                               self.recordAssertions( result.total - result.failed, result.name );
+                       },
+
+                       onModuleDone: function( result ) {
+                               currentModule.time = (new Date()).getTime() - currentModule.start.getTime();  // ms
+                               currentModule.total = result.total;
+                               currentModule.passed = result.passed;
+                               currentModule.failed = result.failed;
+
+                               currentModule = null;
+                       },
+
+                       onFrameDone: function( failed, passed, total, runtime ){
+                               // make sure we don't time out the tests
+                               clearTimeout( self.testTimer );
+
+                               // TODO decipher actual cause of multiple test results firing twice
+                               // clear the done call to prevent early completion of other test cases
+                               self.frame.QUnit.done = $.noop;
+                               self.frame.QUnit.testDone = $.noop;
+
+                               // hide the extra assertions made to propogate the count
+                               // to the suite level test
+                               self.hideAssertionResults();
+                               // continue on to the next suite
+                               QUnit.start();
+                       },
+
+                       getTestResult: function() {
+                               return currentRun;
+                       },
+
+                       recordAssertions: function( count, parentTest ) {
+                               for( var i = 0; i < count; i++ ) {
+                                       ok( true, self.assertionResultPrefix + parentTest );
+                               }
+                       },
+
+                       hideAssertionResults: function() {
+                               $( "li:not([id]):contains('" + self.assertionResultPrefix + "')" ).hide();
+                       },
+
+                       exec: function( data ) {
+                               var template = self.$frameElem.attr( "data-src" );
+
+                               $.each( data.testPages, function(i, dir) {
+                                       QUnit.asyncTest( dir, function() {
+                                               console.log('Test start: ' + dir);
+                                               self.dir = dir;
+                                               self.$frameElem.one( "load", self.onFrameLoad );
+                                               self.$frameElem.attr( "src", template.replace("{{testfile}}", dir + '/index.html') );
+                                       });
+                               });
+
+                               // having defined all suite level tests let QUnit run
+                               QUnit.start();
+                       }
+               });
+       };
+       var generateXML = function() {
+               var xmlData = [];
+               var xmlEncode = function(text) {
+                       var baseEntities = {
+                               '"' : '&quot;',
+                               '\'': '&apos;',
+                               '<' : '&lt;',
+                               '>' : '&gt;',
+                               '&' : '&amp;'
+                       };
+                       return ('' + text).replace(/[<>&\"\']/g, function(chr) {
+                               return baseEntities[chr] || chr;
+                       });
+               };
+               var Writer = function(en, run) {
+                       this.setHead = function() {
+                               xmlData.push('<?' + 'xml version="1.0" encoding="UTF-8"' + '?>\n');
+                               xmlData.push('<?xml-stylesheet type="text/xsl"  href="testresult.xsl"?>');
+                       };
+                       this.start = function() {
+                               xmlData.push('<test_definition name="http://tempuri.org" type="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="test_definition.xsd">');
+                       };
+                       this.end = function() {
+                               xmlData.push('</test_definition>');
+                       };
+                       this.elementStart = function( name , attribute ) {
+                               var elementString = '<' + name ;
+                               if( !attribute ) {
+                                       elementString += '>';
+                               } else {
+                                       for (var aname in attribute ) {
+                                               elementString + ' ' + xmlEncode(aname) + '="' + xmlEncode(attribute[aname]) + '"' ;
+                                       }
+                               }
+                               xmlData.push( elementString );
+                       };
+                       this.elementEnd = function( name ) {
+                               xmlData.push( '</' + name + '>' );
+                       };
+                       this.setenvironment = function( en ) {
+                               this.elementStart( 'environment', {
+                                       device_id: "",
+                                       device_model: "SDK, Target",
+                                       device_name: "Tizen",
+                                       host: navigator.userAgent,
+                                       os_version:"2.1", 
+                                       resolution: "", 
+                                       screen_size: $(window).height() + " x " + $(window).width()
+                               } );
+                               this.elementEnd( 'environment' );
+                       };
+                       this.setHead();
+                       this.start();
+                       this.end();
+               };
+       };
+       //Generate XML
+       var generateReport = function(results, run) {
+               var pad = function(n) {
+                       return n < 10 ? '0' + n : n;
+               };
+
+               var toISODateString = function(d) {
+                       return d.getUTCFullYear() + '-' +
+                               pad(d.getUTCMonth() + 1)+'-' +
+                               pad(d.getUTCDate()) + 'T' +
+                               pad(d.getUTCHours()) + ':' +
+                               pad(d.getUTCMinutes()) + ':' +
+                               pad(d.getUTCSeconds()) + 'Z';
+               };
+
+               var convertMillisToSeconds = function(ms) {
+                       return Math.round(ms * 1000) / 1000000;
+               };
+
+               var xmlEncode = function(text) {
+                       var baseEntities = {
+                               '"' : '&quot;',
+                               '\'': '&apos;',
+                               '<' : '&lt;',
+                               '>' : '&gt;',
+                               '&' : '&amp;'
+                       };
+                       return ('' + text).replace(/[<>&\"\']/g, function(chr) {
+                               return baseEntities[chr] || chr;
+                       });
+               };
+
+               var XmlWriter = function(settings) {
+                       settings = settings || {};
+
+                       var data = [], stack = [], lineBreakAt;
+
+                       var addLineBreak = function(name) {
+                               if (lineBreakAt[name] && data[data.length - 1] !== '\n') {
+                                       data.push('\n');
+                               }
+                       };
+
+                       lineBreakAt = (function(items) {
+                               var i, map = {};
+                               items = items || [];
+
+                               i = items.length;
+                               while (i--) {
+                                       map[items[i]] = {};
+                               }
+                               return map;
+                       })(settings.linebreak_at);
+
+                       this.start = function(name, attrs, empty) {
+                               if (!empty) {
+                                       stack.push(name);
+                               }
+
+                               data.push('<' + name);
+
+                               for (var aname in attrs) {
+                                       data.push(' ' + xmlEncode(aname) + '="' + xmlEncode(attrs[aname]) + '"');
+                               }
+
+                               data.push(empty ? ' />' : '>');
+                               addLineBreak(name);
+                       };
+
+                       this.end = function() {
+                               var name = stack.pop();
+                               addLineBreak(name);
+                               data.push('</' + name + '>');
+                               addLineBreak(name);
+                       };
+
+                       this.text = function(text) {
+                               data.push(xmlEncode(text));
+                       };
+
+                       this.cdata = function(text) {
+                               data.push('<![CDATA[' + text + ']]>');
+                       };
+
+                       this.comment = function(text) {
+                               data.push('<!--' + text + '-->');
+                       };
+                       this.pi = function(name, text) {
+                               data.push('<?' + name + (text ? ' ' + text : '') + '?>\n');
+                       };
+
+                       this.doctype = function(text) {
+                               data.push('<!DOCTYPE' + text + '>\n');
+                       };
+
+                       this.getString = function() {
+                               while (stack.length) {
+                                       this.end();  // internally calls `stack.pop();`
+                               }
+                               return data.join('').replace(/\n$/, '');
+                       };
+
+                       this.reset = function() {
+                               data.length = 0;
+                               stack.length = 0;
+                       };
+
+                       // Start by writing the XML declaration
+                       this.pi(settings.xmldecl || 'xml version="1.0" encoding="UTF-8"');
+               };
+
+               // Generate JUnit XML report!
+               var m, mLen, module, t, tLen, test, a, aLen, assertion, isEmptyElement,
+                       xmlWriter = new XmlWriter({
+                               linebreak_at: ['testsuites', 'testsuite', 'testcase', 'failure', 'system-out', 'system-err']
+                       });
+               xmlWriter.pi ( 'xml-stylesheet type="text/xsl"  href="testresult.xsl"' );
+               xmlWriter.start('test_definition', {
+                       name: "http://tempuri.org",
+                       type: "",
+                       'xmlns:xsi': "http://www.w3.org/2001/XMLSchema-instance",
+                       'xsi:noNamespaceSchemaLocation' : "test_definition.xsd"
+               });
+               xmlWriter.start('environment', {
+                                       device_id: "",
+                                       device_model: "SDK & Target",
+                                       device_name: "Tizen",
+                                       host: navigator.userAgent,
+                                       os_version:"2.1", 
+                                       resolution: "", 
+                                       screen_size: $(window).height() + " x " + $(window).width()
+                               } );
+                       xmlWriter.start('other');
+                       xmlWriter.cdata('Tizen Web UI FW UnitTest');
+                       xmlWriter.end();
+               xmlWriter.end(); //environment
+       
+               xmlWriter.start('summary' ,{
+                               test_plan_name : 'Tizen Web UI FW Unit TC' 
+                       } );
+                       xmlWriter.start( 'start_at' );
+                       xmlWriter.cdata( run.start );
+                       xmlWriter.end(); //start_at
+                       xmlWriter.start( 'end_at' );
+                       xmlWriter.cdata( new Date() );
+                       xmlWriter.end(); //start_at
+               xmlWriter.end(); // summary
+
+               for (m = 0, mLen = run.modules.length; m < mLen; m++) {
+                       module = run.modules[m];
+
+                       xmlWriter.start('suite', {
+                               id: m,
+                               name: module.name,
+                               hostname: 'localhost',
+                               tests: module.total,
+                               failures: module.failed,
+                               errors: 0,
+                               time: convertMillisToSeconds(module.time),  // ms → sec
+                               timestamp: toISODateString(module.start)
+                       });
+                       xmlWriter.start( 'set', {
+                               name: module.name
+                       });
+                       for (t = 0, tLen = module.tests.length; t < tLen; t++) {
+                               test = module.tests[t];
+                               for (a = 0, aLen = test.failedAssertions.length; a < aLen; a++) {
+                                       assertion = test.failedAssertions[a];
+                                       message = assertion.message;
+                                       if ( assertion.message === undefined || !assertion.message) {
+                                       }
+                                       xmlWriter.start('testcase', {
+                                               component: module.name,
+                                               execution_type: "auto",
+                                               id: module.name,
+                                               priority: (assertion.priority) ? assertion.priority : 'P1',
+                                               purpose:  assertion.checktype + ' ' + (assertion.message) ? '-' + assertion.message : '',
+                                               status: (assertion.result) ? 'PASS' : 'FAIL',
+                                               result: (assertion.result) ? 'PASS' : 'FAIL',
+                                               type: 'compliance'
+                                       });
+                                               xmlWriter.start( 'description' );
+                                                       xmlWriter.start( 'pre_condition' ); xmlWriter.end();
+                                                       xmlWriter.start( 'post_condition' ); xmlWriter.end();
+                                                       xmlWriter.start( 'steps' );
+                                                               xmlWriter.start( 'step', {
+                                                                       order: '1'
+                                                               });
+                                                                       xmlWriter.start( 'step_desc' );
+                                                                       xmlWriter.cdata( assertion.checktype + ' ' + (assertion.message) ? ' ' + assertion.message : '' );
+                                                                       xmlWriter.end();
+                                                                       xmlWriter.start( 'expected' );
+                                                                       xmlWriter.cdata( assertion.expected );
+                                                                       xmlWriter.end();
+                                                               xmlWriter.end();// step
+                                                       xmlWriter.end(); //steps
+
+                                                       xmlWriter.start( 'test_script_entry', {
+                                                               test_script_expected_result : ''
+                                                       });
+                                                       xmlWriter.end();
+                                               xmlWriter.end(); // description
+                                               xmlWriter.start( 'result_info' );
+                                                       xmlWriter.start( 'actual_result' );
+                                                       xmlWriter.cdata( assertion.actual );
+                                                       xmlWriter.end();
+                                               xmlWriter.end();
+                                       xmlWriter.end();
+                               }
+                       }
+
+                       xmlWriter.end();
+                       xmlWriter.end();  //'testsuite'
+               }
+               
+               xmlWriter.end(); //test_definition
+               // Invoke the user-defined callback
+               QUnit.jUnitReport({
+                       results: results,
+                       xml: xmlWriter.getString()
+               });
+       };
+
+       QUnit.jUnitReport = function(data) {
+               var console = window.console;
+               if (console) {
+                       console.log(data.xml);
+               }
+               if( tizen ) {
+                       tizen.filesystem.resolve('documents',
+                                       function(dir){ 
+                                               var tempFile;
+                                               try{
+                                                       tempFile = dir.createFile("tcresult.xml");
+                                               }catch(err){
+                                                       tempFile = dir.resolve("tcresult.xml");
+                                               }
+                                               if( tempFile != null){
+                                                       tempFile.openStream("w", 
+                                                               function(fs){
+                                                                       fs.write(data.xml);
+                                                                       fs.close();
+                                                       }, function(e){console.log("Error");}, "UTF-8");
+                                       }
+                               
+                               },
+                               function(e){
+                                       console.log(e);
+                       });
+               }
+               //document.write( data.xml );
+       };
+       // prevent qunit from starting the test suite until all tests are defined
+       QUnit.begin = function( ){
+               this.config.autostart = false;
+       };
+
+       QUnit.done = function( details ) {
+               // All Test is done
+               console.log( "QUnit.done" );
+               generateReport( details, UnitTCRunner.getTestResult());
+       }
+       // get the test directories
+       var UnitTCRunner = new Runner();
+       UnitTCRunner.exec(TESTS);
+});
diff --git a/tct-webuifw-tests/tests/unit-tests/searchbar/index.html b/tct-webuifw-tests/tests/unit-tests/searchbar/index.html
new file mode 100755 (executable)
index 0000000..03c4273
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>
+<html>
+       <head>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+                       data-framework-theme="tizen-white"
+                       data-framework-viewport-scale=false>
+               </script>
+
+               <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+               <script src="../../../libs/js/qunit/qunit.js"></script>
+               <script src="searchbar-tests.js"></script>
+               <title>Searchbar</title>
+       </head>
+
+       <body>
+               <h1 id="qunit-header">Searchbar</h1>
+               <h2 id="qunit-banner"></h2>
+               <div id="qunit-testrunner-toolbar"></div>
+               <h2 id="qunit-userAgent"></h2>
+               <ol id="qunit-tests"></ol>
+
+               <div id="qunit-fixture">
+                       <div data-role="page" id="dummy-page">
+                               <div data-role="header" data-position="fixed">
+                                       <h1>Dummy</h1>
+                               </div>
+                               <div data-role="contents">
+                               </div>
+                       </div>
+
+                       <div data-role="page" id="searchbar-unit-test" data-add-back-btn="true">
+                               <div data-role="header" data-position="fixed">
+                                       <h1>Searchbar</h1>
+                                       <input type="search" data-cancel-btn=true name="search" data-icon="call" id="searchInput" value=""/>
+                               </div>
+                               <div data-role="content" id="searchbar-content">
+                                       <p>Hairston</p>
+                                       <p>Hansbrough</p>
+                                       <p>Allred</p>
+                                       <p>Hanrahan</p>
+                                       <p>Egan</p>
+                                       <p>Dare</p>
+                                       <p>Edmonson</p>
+                                       <p>Calip</p>
+                                       <p>Baker</p>
+                                       <p>Fazekas</p>
+                                       <p>Garrity</p>
+                                       <p>Hansen</p>
+                                       <p>Feigenbaum</p>
+                                       <p>Fillmore</p>
+                                       <p>Darden</p>
+                                       <p>Davis</p>
+                                       <p>Fitzgerald</p>
+                                       <p>Carr</p>
+                                       <p>Danilovic</p>
+                                       <p>Dark</p>
+                                       <p>Alexander</p>
+                                       <p>Allen</p>
+                                       <p>Edwards</p>
+                                       <p>Garrett</p>
+                                       <p>Gardner</p>
+                                       <p>Carroll</p>
+                                       <p>Garner</p>
+                                       <p>Finn</p>
+                                       <p>Edelin</p>
+                                       <p>Gay</p>
+                               </div>
+                       </div>
+               </div>
+               <script>
+                       $( "#searchInput" ).live( "input change", function(){
+                               var regEx = "";
+
+                               regEx = ".*" + $( "#searchInput" ).val();
+
+                               $( "#searchbar-content p" ).each( function(){
+                                       if ( $( this ).text().search( new RegExp( regEx ) ) != -1) {
+                                               $( this ).show();
+                                       }
+                                       else {
+                                               $( this ).hide();
+                                       }
+                               });
+                       } );
+               </script>
+       </body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/searchbar/searchbar-tests.js b/tct-webuifw-tests/tests/unit-tests/searchbar/searchbar-tests.js
new file mode 100755 (executable)
index 0000000..b4aa830
--- /dev/null
@@ -0,0 +1,77 @@
+/*
+ * Unit Test: Searchbar list
+ *
+ * Wongi Lee <wongi11.lee@samsung.com>
+ */
+
+$( document ).ready( function () {
+
+       module( "Searchbar" );
+
+       // trigger pagecreate
+       $( "#searchbar-unit-test" ).page();
+
+       asyncTest( "Searchbar", function () {
+               /* Initialize */
+               var $divSearchbar = $( "#searchbar-unit-test div.input-search-bar" ),
+                       $input = $( "input" );
+
+               equal( $divSearchbar.length, 1, "initialized" );
+               equal( $divSearchbar.find( "div.ui-input-search" ).length, 1 , "Searchbar css" );
+               equal( $divSearchbar.find( "div.ui-input-search input.ui-input-text" ).length, 1 ,  "Searchbar text"  );
+               equal( $divSearchbar.find( "div.ui-input-search a.ui-input-clear" ).hasClass( "ui-input-clear-hidden" ), true , "Searchbar hidden style" );
+               equal( $divSearchbar.find( "div.ui-input-search div.ui-image-search" ).length, 1 ,  "Searchbar search text");
+
+               equal( $("#searchbar-content p").filter( function ( index ) {
+                       return $( this ).css( "display" ) != "none";
+               } ).length, 30 );
+
+               /* Public Method */
+               /* disable */
+               $( "#searchInput" ).searchbar( "disable" );
+               equal( $( "#searchbar-unit-test div.ui-input-search" ).hasClass( "ui-disabled" ), true, "disable" , "Method : disable");
+               equal( $( "#searchInput" ).attr( "disabled" ), "disabled" );
+
+               /* enable */
+               $( "#searchInput" ).searchbar( "enable" );
+               equal( $( "#searchbar-unit-test div.ui-input-search" ).hasClass( "ui-disabled" ), false, "enable" , "Method : enable" );
+               equal( $( "#searchInput" ).attr( "disabled" ), undefined );
+
+               /* Event */
+               /* Search : Input and trigger change */
+               $input.focus();
+               equal( $( "div.ui-image-search" ).css( "display" ), "block", "Input and trigger change" , "Event : change" );
+
+               $input.val( "a" ).trigger( "change" );
+
+               $input.val( "are" ).trigger( "change" );
+               equal( $("#searchbar-content p").filter( function ( index ) {
+                       return $( this ).css( "display" ) != "none";
+               } ).length, 1 );
+
+               /* Clear button pressed. */
+               $( "a.ui-input-clear" ).trigger( "click" );
+               equal( $("#searchbar-content p").filter( function ( index ) {
+                       return $( this ).css( "display" ) != "none";
+               } ).length, 30 );
+
+               equal( $divSearchbar.find( "div.ui-input-search a.ui-input-clear" ).hasClass( "ui-input-clear-hidden" ), true, "Clear button pressed" );
+
+               /* Button test */
+               equal( $( ".ui-btn" ).hasClass( "ui-btn" ), true );
+               equal( $divSearchbar.find( "> .ui-btn" ).jqmData("icon"), "call" , "Search button test");
+
+               /* Cancel test*/
+               equal( $( ".ui-input-cancel" ).hasClass( "ui-btn" ), true );
+               equal( $( ".ui-input-cancel" ).hasClass( "ui-btn-icon-cancel" ), true , "Search button test(cancel)");
+
+               equal( $( ".ui-input-cancel" ).hasClass( "ui-btn" ), true );
+               equal( $( ".ui-input-cancel" ).hasClass( "ui-btn-icon-cancel" ), true , "Search button test(cancel)");
+
+               /* Cancel button pressed. */
+               $( "a.ui-btn-icon-cancel" ).trigger( "click" );
+               notEqual( $( "div.ui-image-search" ).css( "display" ), "none" , "Search button test(pressed)");
+
+               start();
+       } );
+} );
diff --git a/tct-webuifw-tests/tests/unit-tests/searchfilterbar/index.html b/tct-webuifw-tests/tests/unit-tests/searchfilterbar/index.html
new file mode 100755 (executable)
index 0000000..03c4273
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>
+<html>
+       <head>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+                       data-framework-theme="tizen-white"
+                       data-framework-viewport-scale=false>
+               </script>
+
+               <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+               <script src="../../../libs/js/qunit/qunit.js"></script>
+               <script src="searchbar-tests.js"></script>
+               <title>Searchbar</title>
+       </head>
+
+       <body>
+               <h1 id="qunit-header">Searchbar</h1>
+               <h2 id="qunit-banner"></h2>
+               <div id="qunit-testrunner-toolbar"></div>
+               <h2 id="qunit-userAgent"></h2>
+               <ol id="qunit-tests"></ol>
+
+               <div id="qunit-fixture">
+                       <div data-role="page" id="dummy-page">
+                               <div data-role="header" data-position="fixed">
+                                       <h1>Dummy</h1>
+                               </div>
+                               <div data-role="contents">
+                               </div>
+                       </div>
+
+                       <div data-role="page" id="searchbar-unit-test" data-add-back-btn="true">
+                               <div data-role="header" data-position="fixed">
+                                       <h1>Searchbar</h1>
+                                       <input type="search" data-cancel-btn=true name="search" data-icon="call" id="searchInput" value=""/>
+                               </div>
+                               <div data-role="content" id="searchbar-content">
+                                       <p>Hairston</p>
+                                       <p>Hansbrough</p>
+                                       <p>Allred</p>
+                                       <p>Hanrahan</p>
+                                       <p>Egan</p>
+                                       <p>Dare</p>
+                                       <p>Edmonson</p>
+                                       <p>Calip</p>
+                                       <p>Baker</p>
+                                       <p>Fazekas</p>
+                                       <p>Garrity</p>
+                                       <p>Hansen</p>
+                                       <p>Feigenbaum</p>
+                                       <p>Fillmore</p>
+                                       <p>Darden</p>
+                                       <p>Davis</p>
+                                       <p>Fitzgerald</p>
+                                       <p>Carr</p>
+                                       <p>Danilovic</p>
+                                       <p>Dark</p>
+                                       <p>Alexander</p>
+                                       <p>Allen</p>
+                                       <p>Edwards</p>
+                                       <p>Garrett</p>
+                                       <p>Gardner</p>
+                                       <p>Carroll</p>
+                                       <p>Garner</p>
+                                       <p>Finn</p>
+                                       <p>Edelin</p>
+                                       <p>Gay</p>
+                               </div>
+                       </div>
+               </div>
+               <script>
+                       $( "#searchInput" ).live( "input change", function(){
+                               var regEx = "";
+
+                               regEx = ".*" + $( "#searchInput" ).val();
+
+                               $( "#searchbar-content p" ).each( function(){
+                                       if ( $( this ).text().search( new RegExp( regEx ) ) != -1) {
+                                               $( this ).show();
+                                       }
+                                       else {
+                                               $( this ).hide();
+                                       }
+                               });
+                       } );
+               </script>
+       </body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/searchfilterbar/searchbar-tests.js b/tct-webuifw-tests/tests/unit-tests/searchfilterbar/searchbar-tests.js
new file mode 100755 (executable)
index 0000000..b4aa830
--- /dev/null
@@ -0,0 +1,77 @@
+/*
+ * Unit Test: Searchbar list
+ *
+ * Wongi Lee <wongi11.lee@samsung.com>
+ */
+
+$( document ).ready( function () {
+
+       module( "Searchbar" );
+
+       // trigger pagecreate
+       $( "#searchbar-unit-test" ).page();
+
+       asyncTest( "Searchbar", function () {
+               /* Initialize */
+               var $divSearchbar = $( "#searchbar-unit-test div.input-search-bar" ),
+                       $input = $( "input" );
+
+               equal( $divSearchbar.length, 1, "initialized" );
+               equal( $divSearchbar.find( "div.ui-input-search" ).length, 1 , "Searchbar css" );
+               equal( $divSearchbar.find( "div.ui-input-search input.ui-input-text" ).length, 1 ,  "Searchbar text"  );
+               equal( $divSearchbar.find( "div.ui-input-search a.ui-input-clear" ).hasClass( "ui-input-clear-hidden" ), true , "Searchbar hidden style" );
+               equal( $divSearchbar.find( "div.ui-input-search div.ui-image-search" ).length, 1 ,  "Searchbar search text");
+
+               equal( $("#searchbar-content p").filter( function ( index ) {
+                       return $( this ).css( "display" ) != "none";
+               } ).length, 30 );
+
+               /* Public Method */
+               /* disable */
+               $( "#searchInput" ).searchbar( "disable" );
+               equal( $( "#searchbar-unit-test div.ui-input-search" ).hasClass( "ui-disabled" ), true, "disable" , "Method : disable");
+               equal( $( "#searchInput" ).attr( "disabled" ), "disabled" );
+
+               /* enable */
+               $( "#searchInput" ).searchbar( "enable" );
+               equal( $( "#searchbar-unit-test div.ui-input-search" ).hasClass( "ui-disabled" ), false, "enable" , "Method : enable" );
+               equal( $( "#searchInput" ).attr( "disabled" ), undefined );
+
+               /* Event */
+               /* Search : Input and trigger change */
+               $input.focus();
+               equal( $( "div.ui-image-search" ).css( "display" ), "block", "Input and trigger change" , "Event : change" );
+
+               $input.val( "a" ).trigger( "change" );
+
+               $input.val( "are" ).trigger( "change" );
+               equal( $("#searchbar-content p").filter( function ( index ) {
+                       return $( this ).css( "display" ) != "none";
+               } ).length, 1 );
+
+               /* Clear button pressed. */
+               $( "a.ui-input-clear" ).trigger( "click" );
+               equal( $("#searchbar-content p").filter( function ( index ) {
+                       return $( this ).css( "display" ) != "none";
+               } ).length, 30 );
+
+               equal( $divSearchbar.find( "div.ui-input-search a.ui-input-clear" ).hasClass( "ui-input-clear-hidden" ), true, "Clear button pressed" );
+
+               /* Button test */
+               equal( $( ".ui-btn" ).hasClass( "ui-btn" ), true );
+               equal( $divSearchbar.find( "> .ui-btn" ).jqmData("icon"), "call" , "Search button test");
+
+               /* Cancel test*/
+               equal( $( ".ui-input-cancel" ).hasClass( "ui-btn" ), true );
+               equal( $( ".ui-input-cancel" ).hasClass( "ui-btn-icon-cancel" ), true , "Search button test(cancel)");
+
+               equal( $( ".ui-input-cancel" ).hasClass( "ui-btn" ), true );
+               equal( $( ".ui-input-cancel" ).hasClass( "ui-btn-icon-cancel" ), true , "Search button test(cancel)");
+
+               /* Cancel button pressed. */
+               $( "a.ui-btn-icon-cancel" ).trigger( "click" );
+               notEqual( $( "div.ui-image-search" ).css( "display" ), "none" , "Search button test(pressed)");
+
+               start();
+       } );
+} );
diff --git a/tct-webuifw-tests/tests/unit-tests/segmentcontrol/index.html b/tct-webuifw-tests/tests/unit-tests/segmentcontrol/index.html
new file mode 100755 (executable)
index 0000000..2ffed24
--- /dev/null
@@ -0,0 +1,70 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+
+  <script src="segmentcontrol-tests.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Controlbar Tests</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+
+<div data-nstest-role="page">
+  <div data-nstest-role="header" data-position="inline">
+    <h1>SegmentControl Test - markup</h1>
+  </div>
+  <div data-nstest-role="content">
+               <div data-role="fieldcontain" id="segmentcontrol-2btn">
+                       <fieldset data-role="controlgroup" data-type="horizontal">
+                               <input type="radio" name="radio-view-1" data-icon="segment-titlestyle-segonly" id="segment1" value="on" checked="checked" />
+                               <label for="segment1">List</label>
+                               <input type="radio" name="radio-view-1" data-icon="segment-titlestyle-segonly" id="segment2" value="off" />
+                               <label for="segment2">Grid</label>
+                       </fieldset>
+               </div>
+
+               <div data-role="fieldcontain" id="segmentcontrol-3btn">
+                       <fieldset data-role="controlgroup" data-type="horizontal">
+                               <input type="radio" name="radio-view-2" data-icon="segment-titlestyle-segonly" id="segment3" value="on" checked="checked" />
+                               <label for="segment3">List</label>
+                               <input type="radio" name="radio-view-2" data-icon="segment-titlestyle-segonly" id="segment4" value="off" />
+                               <label for="segment4">Grid</label>
+                               <input type="radio" name="radio-view-2" data-icon="segment-titlestyle-segonly" id="segment5" value="off" />
+                               <label for="segment5">Grid</label>
+                       </fieldset>
+               </div>
+
+               <div data-role="fieldcontain" id="segmentcontrol-4btn">
+                       <fieldset data-role="controlgroup" data-type="horizontal">
+                               <input type="radio" name="radio-view-9" data-icon="segment-titlestyle-segonly" id="segment6" value="on" checked="checked" />
+                               <label for="segment6">List</label>
+                               <input type="radio" name="radio-view-9" data-icon="segment-titlestyle-segonly" id="segment7" value="off" />
+                               <label for="segment7">Grid</label>
+                               <input type="radio" name="radio-view-9" data-icon="segment-titlestyle-segonly" id="segment8" value="off" />
+                               <label for="segment8">Grid</label>
+                               <input type="radio" name="radio-view-9" data-icon="segment-titlestyle-segonly" id="segment9" value="off" />
+                               <label for="segment9">Grid</label>
+                       </fieldset>
+               </div>
+       </div>
+       <div data-nstest-role="footer">
+       </div>
+</div>
+
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/segmentcontrol/segmentcontrol-tests.js b/tct-webuifw-tests/tests/unit-tests/segmentcontrol/segmentcontrol-tests.js
new file mode 100755 (executable)
index 0000000..7a8ef4d
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * segmentcontrol unit tests
+ */
+
+(function ($) {
+       module( "SegmentControl" );
+
+       var unit_segmentcontrol = function ( widget, inputCount ) {
+               var segmentGroup = widget;
+
+               /* Create */
+               ok( segmentGroup, "Create" );
+
+               equal( "fieldcontain", segmentGroup.jqmData("role"), "segment control generate" );
+
+               equal( segmentGroup.find( "input" ).length, inputCount, "segment control listitem count test" );
+
+               equal( segmentGroup.find( "input" ).is( ":jqmData(icon='segment-titlestyle-segonly')" ), true, "segment control style test" );
+       };
+
+       test( "segmentcontrol 2btn test", function () {
+               unit_segmentcontrol( $("#segmentcontrol-2btn"), 2 );
+       });
+
+       test( "segmentcontrol 3btn test", function () {
+               unit_segmentcontrol( $("#segmentcontrol-3btn"), 3 );
+       });
+
+       test( "segmentcontrol 4btn test", function () {
+               unit_segmentcontrol( $("#segmentcontrol-4btn"), 4 );
+       });
+
+})(jQuery);
diff --git a/tct-webuifw-tests/tests/unit-tests/slider/index.html b/tct-webuifw-tests/tests/unit-tests/slider/index.html
new file mode 100755 (executable)
index 0000000..a074ba4
--- /dev/null
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+       <script src="slider-tests.js"></script>
+
+       <title>Slider</title>
+</head>
+
+<body>
+
+<h1 id="qunit-header">Slider</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests"></ol>
+
+<div id="qunit-fixture">
+
+       <div data-role="page" id="slider">
+               <div data-role="header" data-position="fixed">
+                       <h1>Slider</h1>
+               </div>
+               <div data-role="content">
+                       <input id="slider0" data-popupenabled="false" type="range" name="slider" value="50" min="0" max="100">
+                       <input id="slider1" data-popupenabled="false" type="range" name="slider" value="5" min="0" max="10" data-icon="volume">
+               </div>
+       </div>
+
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/slider/slider-tests.js b/tct-webuifw-tests/tests/unit-tests/slider/slider-tests.js
new file mode 100644 (file)
index 0000000..392bd8c
--- /dev/null
@@ -0,0 +1,52 @@
+/*
+ * Unit Test: Slider 
+ *
+ * Minkyu Kang <mk7.kang@samsung.com>
+ */
+
+(function ($) {
+       module("Slider");
+
+       var unit_slider = function ( widget ) {
+               var slider,
+                       handle,
+                       handle_left = function ( widget, slider ) {
+                               var left = widget.val() * slider.width() /
+                                       ( widget.attr("max") - widget.attr("min") );
+                               return Math.floor( left );
+                       },
+                       random_move = function ( min, max) {
+                               return Math.floor( (Math.random() * (max - min + 1)) + min );
+                       };
+
+               /* Create */
+               widget.tizenslider();
+               slider = widget.next().children(".ui-slider");
+               ok( slider, "Create" );
+
+               /* Check Background */
+               equal( slider.parent().attr("class"), "ui-slider-container", "Background" );
+
+               /* Check Parameters */
+               handle = slider.find(".ui-slider-handle");
+
+               equal( handle.attr("aria-valuenow"), widget.val(), "Paramter: value" );
+               equal( handle.attr("aria-valuemin"), widget.attr("min"), "Paramter: min" );
+               equal( handle.attr("aria-valuemax"), widget.attr("max"), "Paramter: max" );
+
+               ok( Math.abs(parseInt( handle.css("left") ) - handle_left( widget, slider ) ) <= 1, "Handle Location: Default" );
+
+               /* Check APIs */
+               widget.val( random_move(widget.attr("min"), widget.attr("max")) );
+               widget.trigger("change");
+               ok( Math.abs(parseInt( handle.css("left") ) - handle_left( widget, slider ) ) <= 1, "Handle Location: Moved" );
+       };
+
+       test( "normal slider", function () {
+               unit_slider( $("#slider0") );
+       });
+
+       test( "icon slider", function () {
+               unit_slider( $("#slider1") );
+       });
+}( jQuery ));
diff --git a/tct-webuifw-tests/tests/unit-tests/splitview/index.html b/tct-webuifw-tests/tests/unit-tests/splitview/index.html
new file mode 100644 (file)
index 0000000..8275899
--- /dev/null
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+       <script src="splitview-tests.js"></script>
+
+       <title>Splitview</title>
+</head>
+
+<body>
+
+<h1 id="qunit-header">Splitview</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests"></ol>
+
+<div id="qunit-fixture">
+
+       <div data-role="page" id="notifiaction0">
+               <div data-role="notification" id="smallpopup" data-type="popup" data-text1="text1" data-param="param"></div>
+               <div data-role="header" data-position="fixed">
+                       <h1>Splitview</h1>
+               </div>
+               <div data-role="content">
+               </div>
+       </div>
+
+       <div data-role="page" id="notification1">
+               <div data-role="splitview" id="splitview-test">
+                       <div id="pane0" class="ui-pane">
+                       </div>
+                       <div id="pane1" class="ui-pane">
+                       </div>
+                       <div class="ui-pane">
+                       </div>
+               </div>
+               <div data-role="header" data-position="fixed">
+                       <h1>Splitview</h1>
+               </div>
+               <div data-role="content">
+               </div>
+       </div>
+
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/splitview/splitview-tests.js b/tct-webuifw-tests/tests/unit-tests/splitview/splitview-tests.js
new file mode 100644 (file)
index 0000000..046b775
--- /dev/null
@@ -0,0 +1,57 @@
+/*
+ * Unit Test: splitview
+ *
+ * Sanghee Lee <sang-hee.lee@samsung.com>
+ */
+
+(function ( $ ) {
+       module( "Splitview" );
+
+       var unit_splitview = function ( widget, type ) {
+               var splitview,
+                       $pane0,
+                       $pane1,
+                       $contents,
+                       $button,
+                       ratio = [];
+
+               /* Create */
+               splitview = widget.splitview();
+               ok( splitview.length > 0, "Create" );
+
+               equal( widget.children( ".ui-pane" ).length, 2, "Create: Removing panes after 2nd pane" );
+
+               /* Options : fixed */
+               splitview.splitview( "option", "fixed", true );
+               equal( splitview.splitview( "option", "fixed" ), true, "Option : fixed" );
+
+               /* Options : dividerVertical */
+               splitview.splitview( "option", "dividerVertical", false );
+               equal( splitview.splitview( "option", "dividerVertical" ), false, "Option : dividerVertical" );
+
+               /* Options : ratio */
+               splitview.splitview( "option", "ratio", [ 0.3, 0.7 ] );
+               ratio = splitview.splitview( "option", "ratio" );
+               ok( Math.abs( ratio[ 0 ] - 0.3 ) < 0.1 && Math.abs( ratio[ 1 ] - 0.7 ) < 0.1, "Option : ratio" );
+
+               /* Methods : pane */
+               splitview.splitview( "pane", "#pane0", $( "<a data-role='button' id='test'>button</a>" ) );
+               $button = splitview.splitview( "pane", "#pane0" );
+               equal( $button.attr( "id" ), "test", "Method : pane" );
+
+               /* Methods : maximize */
+               splitview.splitview( "maximize", "#pane0" );
+               ratio = splitview.splitview( "option", "ratio" );
+               ok( ratio[ 0 ] === 1 && ratio[ 1 ] === 0, "Method : maximize" );
+
+               /* Methods : restore */
+               splitview.splitview( "restore" );
+               ratio = splitview.splitview( "option", "ratio" );
+               ok( Math.abs( ratio[ 0 ] - 0.3 ) < 0.1 && Math.abs( ratio[ 1 ] - 0.7 ) < 0.1, "Method : restore" );
+       };
+
+       test( "Splitview", function () {
+               unit_splitview( $( "#splitview-test" ), "splitview" );
+       });
+
+}( jQuery ));
diff --git a/tct-webuifw-tests/tests/unit-tests/swipe/index.html b/tct-webuifw-tests/tests/unit-tests/swipe/index.html
new file mode 100644 (file)
index 0000000..8742d0a
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+       <script src="swipe-tests.js"></script>
+
+       <title>Swipe</title>
+</head>
+<body>
+
+<h1 id="qunit-header">Swipe Tests</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<div id="qunit-fixture" style="top:0px;left:0px;">
+       <div data-role="page" id="swipelistpage">
+                       <ul data-role="listview">
+                               <li id="swipewidget" data-role="swipe">
+                                       <div data-role="swipe-item">
+                                               <div data-role="button" data-inline="true">Twitter</div>
+                                               <div data-role="button" data-inline="true">Twitter</div>
+                                               <div data-role="button" data-inline="true">Facebook</div>
+                                               <div data-role="button" data-inline="true">Facebook</div>
+                                       </div>
+                                       <div data-role="swipe-item-cover">
+                                               Swipe2
+                                       </div>
+                               </li>
+                               <li data-role="swipe">
+                                       <div data-role="swipe-item">
+                                               <div data-role="button" data-inline="true">Twitter</div>
+                                               <div data-role="button" data-inline="true">Twitter</div>
+                                               <div data-role="button" data-inline="true">Facebook</div>
+                                               <div data-role="button" data-inline="true">Facebook</div>
+                                       </div>
+                                       <div data-role="swipe-item-cover">
+                                               Swipe1
+                                       </div>
+                               </li>
+                       </ul>
+       </div>
+       <div data-role="page" id="swipedestorypage">
+                       <ul data-role="listview" >
+                               <li id="swipedestroy" data-role="swipe">
+                                       <div data-role="swipe-item">
+                                               <div data-role="button" data-inline="true">Twitter</div>
+                                               <div data-role="button" data-inline="true">Twitter</div>
+                                               <div data-role="button" data-inline="true">Facebook</div>
+                                               <div data-role="button" data-inline="true">Facebook</div>
+                                       </div>
+                                       <div data-role="swipe-item-cover">
+                                               <div style="display: inline-block;" class="ui-li-text-sub-left">subtext</div>
+                                               <div style="display: inline-block;" class="ui-li-text-main-right">2line-leftsub2</div>
+                                       </div>
+                               </li>
+                               <li data-role="swipe">
+                                       <div data-role="swipe-item">
+                                               <div data-role="button" data-inline="true">Twitter</div>
+                                               <div data-role="button" data-inline="true">Twitter</div>
+                                               <div data-role="button" data-inline="true">Facebook</div>
+                                               <div data-role="button" data-inline="true">Facebook</div>
+                                       </div>
+                                       <div data-role="swipe-item-cover">
+                                               <div style="display: inline-block;" class="ui-li-text-sub-left">subtext</div>
+                                               <div style="display: inline-block;" class="ui-li-text-main-right">1line-leftsub1</div>
+                                       </div>
+                               </li>
+                       </ul>
+       </div>
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/swipe/swipe-tests.js b/tct-webuifw-tests/tests/unit-tests/swipe/swipe-tests.js
new file mode 100644 (file)
index 0000000..861164a
--- /dev/null
@@ -0,0 +1,86 @@
+/*
+ * swipe unit tests
+ *
+ * Hyunjung Kim <hjnim.kim@samsung.com>
+ *
+ */
+
+( function ( $ ) {
+
+       module("swipe");
+
+       var unit_swipe = function( swipe, type ) {
+               var     covers,
+                       cover,
+                       coverStart,
+                       item,
+                       slideLeftDone = function () {
+                               ok(true, "Animation end - sliding left");
+                               cover.unbind("animationend");
+                               equal(cover.position().left, coverStart, "Position - Cover");
+                               start();
+                       },
+                       slideRightDone = function () {
+                               ok(true, "Animation end - sliding right");
+                               setTimeout(function () {
+                                       cover.unbind("animationend");
+                                       cover.bind("animationend", slideLeftDone);
+                                       item.trigger("swipeleft");
+                               }, 0);
+                       };
+
+               $("#swipepage").page();
+               swipe.swipe();
+               ok(swipe.hasClass("ui-swipe"), "Create - Swipe");
+
+               covers = swipe.find("div.ui-swipe-item-cover");
+               cover = covers.first();
+
+               coverStart = cover.position().left;
+               item = swipe.find("div.ui-swipe-item").first();
+
+               cover.bind("animationend", slideRightDone);
+               cover.trigger("swiperight");
+               stop();
+
+               equal( swipe.find("div.ui-swipe-item").length , 1, "Count - Swipeable li");
+               equal( covers.length , 1, "Count - cover");
+
+               equal( covers.get(0).innerText,
+                               "Swipe2",
+                               "Check - Cover string value");
+       };
+
+       var unit_swipe_destroy = function(swipe, type) {
+               var covers,
+                       new_page = $("#swipedestorypage");
+
+               new_page.page();
+               swipe.swipe();
+               ok(swipe.hasClass("ui-swipe"),"Create - Swipe");
+               covers = swipe.find("div.ui-swipe-item-cover");
+               equal( swipe.find("div.ui-swipe-item").length , 1, "Count - Swipeable ui-swipe-item");
+
+               equal( covers.length , 1, "Count - cover");
+
+               swipe.swipe("destroy");
+
+               equal(swipe.has('.ui-swipe').length, 0, "Destroy - swipe");
+               equal(swipe.has('.ui-swipe-item').length, 0 , "Destroy - item" );
+               equal(swipe.has('.ui-swipe-item-cover').length, 0, "Destroy - cover");
+
+       };
+
+       asyncTest( " swipe ", function() {
+               expect(7);
+               unit_swipe( $("#swipewidget"), "swipe" );
+               start();
+       });
+
+       asyncTest( " swipe - destory", function() {
+               expect(6),
+               unit_swipe_destroy( $("#swipedestroy"), "swipedestroy"),
+               start()
+       });
+
+} ) ( jQuery );
diff --git a/tct-webuifw-tests/tests/unit-tests/tabbar/index.html b/tct-webuifw-tests/tests/unit-tests/tabbar/index.html
new file mode 100755 (executable)
index 0000000..dcf0dd1
--- /dev/null
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+
+  <script src="tabbar-tests.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery Mobile Controlbar Tests</h1>
+<h2 id="qunit-banner"></h2>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+</div>
+
+<div data-nstest-role="page">
+       <div data-nstest-role="header" data-nstest-position="inline">
+               <h1>Controlbar Test - markup</h1>
+       </div>
+       <div data-nstest-role="content">
+       </div>
+       <div data-nstest-role="footer">
+               <div id="tabbar-test-text-only" data-role="tabbar">
+                       <ul>
+                               <li><a href="#" >Menu</a></li>
+                               <li><a href="#" class="ui-btn-active">Save</a></li>
+                               <li><a href="#" >Share</a></li>
+                               <li><a href="#" >Timeline</a></li>
+                               <li><a href="#" >WorldClock</a></li>
+                       </ul>
+               </div>
+       </div>
+</div>
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/tabbar/tabbar-tests.js b/tct-webuifw-tests/tests/unit-tests/tabbar/tabbar-tests.js
new file mode 100755 (executable)
index 0000000..790b9c7
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+ * tabbar unit tests
+ */
+
+(function ($) {
+       $.mobile.defaultTransition = "none";
+
+       module( "Tabbar" );
+
+       var unit_tabbar = function ( widget, drayStyle ) {
+               var tabbar,
+                       tabbar_style,
+                       item_count,
+                       activeIndex,
+                       deactiveReturn,
+                       activeReturn,
+                       created_tabbar = widget.tabbar();
+
+               /* Create */
+               ok( created_tabbar, "Create" );
+
+               if ( drayStyle ) {
+                       if ( drayStyle == "icon" ) {
+                               equal( created_tabbar.find( "a" ).is(".ui-btn-icon_only" ), true, "Icon only style test");
+                       } else if ( drayStyle == "text" ) {
+                               equal( created_tabbar.is(".ui-tabbar-noicons" ), true, "Text only style test");
+                       }
+               }
+
+               /* Check APIs */
+               activeIndex = created_tabbar.find(".ui-btn-active").index();
+               created_tabbar.tabbar( "disable", activeIndex );
+               deactiveReturn = created_tabbar.find("li:eq(" + activeIndex + ")").is(".ui-disabled");
+
+               equal( deactiveReturn, true, "List Deactive test" );
+
+               created_tabbar.tabbar("enable", activeIndex);
+               activeReturn = created_tabbar.find("li:eq(" + activeIndex + ")").is(".ui-disabled");
+               equal( activeReturn, false, "List Active test" );
+       };
+
+       test( "tabbar text style test", function () {
+               unit_tabbar( $("#tabbar-test-text-only"), "text" );
+       });
+})(jQuery);
diff --git a/tct-webuifw-tests/tests/unit-tests/tests.js b/tct-webuifw-tests/tests/unit-tests/tests.js
new file mode 100644 (file)
index 0000000..ac89e12
--- /dev/null
@@ -0,0 +1,39 @@
+var TESTS = {
+       "testPages":[
+               // Put your test here
+               "ensurens",
+               "button",
+               "core",
+               "check",
+               "tabbar",
+               "datetimepicker",
+               "extendablelist",
+               "handler",
+               "gallery",
+               "gallery3d",
+               "imageloader",
+               "multimediaview",
+               "navigationbar",
+               "notification",
+               "popupwindow",
+               "popupwindow_ctxpopup",
+               "progressbar",
+               "progress",
+               "radio",
+               "searchfilterbar",
+               "segmentcontrol",
+               "fastscroll",
+               "slider",
+               "swipe",
+               "tokentextarea",
+               "virtuallist",
+               "virtualgrid",
+               "collapsible",
+               "page",
+               "splitview",
+               "fliptoggleswitch",
+               "autodivider",
+               "list",
+               "listdivider"
+       ]
+};
diff --git a/tct-webuifw-tests/tests/unit-tests/toggleswitch/index.html b/tct-webuifw-tests/tests/unit-tests/toggleswitch/index.html
new file mode 100755 (executable)
index 0000000..942b0e0
--- /dev/null
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+       <script src="toggleswitch-tests.js"></script>
+
+       <title>Toggleswitch</title>
+</head>
+
+<body>
+
+<h1 id="qunit-header">Toggleswitch</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests"></ol>
+
+<div id="qunit-fixture">
+
+       <div data-role="page" id="toggleswitch1">
+               <div data-role="header" data-position="fixed">
+                       <h1>Toggleswitch</h1>
+               </div>
+               <div data-role="content">
+                       <select data-role='slider' name='slider' id='newslider' >
+                               <option value='on'>On</option>
+                               <option value='off'>Off</option>
+                       </select>
+               </div>
+       </div>
+       
+       <div data-role="page" id="toggleswitch2">
+               <div data-role="header" data-position="fixed">
+                       <h1>Toggleswitch</h1>
+               </div>
+               <div data-role="content">               
+                       
+               </div>
+       </div>  
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/toggleswitch/toggleswitch-tests.js b/tct-webuifw-tests/tests/unit-tests/toggleswitch/toggleswitch-tests.js
new file mode 100755 (executable)
index 0000000..a01f414
--- /dev/null
@@ -0,0 +1,86 @@
+/*
+ * Unit Test : Toggle Switch
+ *
+ *
+ */
+/*jslint browser: true*/
+/*global $, jQuery, test, equal, ok*/
+$( document ).ready( function ( ) {
+       module("toggleswitch" );
+
+       var unit_toggleswitch = function ( widget ) {
+               var toggleswitch ;
+
+               /* Create */
+               widget.slider( );
+               toggleswitch = widget.parent( ).find('.ui-slider-switch') ;
+               ok( toggleswitch, "Create" );
+
+               /* Class Check*/
+               equal( toggleswitch.hasClass('ui-slider'), true , "Class check" );
+
+               /*Markup check*/
+               equal( toggleswitch.find('span.ui-slider-label').length, 2 , "makrup check : 2 options present" );
+               equal( toggleswitch.find('span.ui-slider-label')[1].innerHTML, "On" , "makrup check : correct text in option" );
+               equal( toggleswitch.find('span.ui-slider-label')[0].innerHTML , "Off" , "makrup check : correct text in option" );
+               ok( toggleswitch.find('a.ui-slider-handle') , "makrup check : toggle handle present" );
+               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'On', "makrup check : handle present" );
+               equal( toggleswitch.find('span.ui-slider-label')[1].style.width, '100%', "makrup check : 2 options present" );
+
+               /*check control after firing events*/
+               toggleswitch.trigger('vmousedown') ;
+               toggleswitch.trigger('vmouseup') ;
+               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'Off', "Markup check after firing click event first time" );
+               equal( toggleswitch.find('span.ui-slider-label')[0].style.width, '100%', "Markup check after firing click event first time" );
+               equal( toggleswitch.find('span.ui-slider-label')[1].style.width, '0%', "Markup check after firing click event first time" );
+               toggleswitch.trigger('vmousedown') ;
+               toggleswitch.trigger('vmouseup') ;
+               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'On', "Markup check after firing click event second time" );
+               equal( toggleswitch.find('span.ui-slider-label')[0].style.width, '0%', "Markup check after firing click event second time" );
+               equal( toggleswitch.find('span.ui-slider-label')[1].style.width, '100%', "Markup check after firing click event second time" );
+
+               /* Check Enable , Disbale */
+               widget.slider("disable" );
+               toggleswitch.trigger('vmousedown') ;
+               toggleswitch.trigger('vmouseup') ;
+               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'On', "Markup check after firing click event after switch was disabled" );
+               equal( toggleswitch.find('span.ui-slider-label')[1].style.width, '100%', "Markup check after firing click event after switch was disabled" );
+               equal( toggleswitch.find('span.ui-slider-label')[0].style.width, '0%', "Markup check after firing click event after switch was disabled" );
+
+               widget.slider("enable" );
+               toggleswitch.trigger('vmousedown') ;
+               toggleswitch.trigger('vmouseup') ;
+               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'Off', "Markup check after firing click event after switch was re enabled" );
+               equal( toggleswitch.find('span.ui-slider-label')[0].style.width, '100%', "Markup check after firing click event after switch was re enabled" );
+               equal( toggleswitch.find('span.ui-slider-label')[1].style.width, '0%', "Markup check after firing click event after switch was re enabled" );
+
+               /*refresh */
+               widget.find('option')[1].innerHTML = "False" ;
+               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'Off', "API Refresh : Stoggleswitch is not modified before refresh is called" );
+               widget.slider('refresh') ;
+               equal( toggleswitch.find('a.ui-slider-handle').attr('title'), 'False', "API Refresh : Stoggleswitch is modified after refresh is called" );
+
+       };
+
+       test( "normal toggleswitch", function ( ) {
+               $('#toggleswitch1').page( ) ;
+               unit_toggleswitch( $("#newslider" ) );
+       } );
+
+       test( "normal toggleswitch -dynamic", function ( ) {
+               var createEvent = false ,
+                       toggleHTML = "<select data-role='slider'name='slider'id='dynamicslider'data-texton='true'>" +
+                                                                               "<option value='on'>On</option>" +
+                                                                               "<option value='off'>Off</option>" +
+                                                                       "</select>;";
+
+               $('#toggleswitch2').page( ) ;
+               $('#toggleswitch2').find(":jqmData(role=content)" ).append( toggleHTML );
+               $('#dynamicslider').slider( {create : function ( ) {
+                       createEvent = true ;
+               }} ) ;
+               $('#toggleswitch2').find(":jqmData(role=content)" ).trigger("create" );
+               equal( createEvent, true, "Create Event" );
+               unit_toggleswitch( $("#dynamicslider" ) );
+       } );
+} );
diff --git a/tct-webuifw-tests/tests/unit-tests/tokentextarea/index.html b/tct-webuifw-tests/tests/unit-tests/tokentextarea/index.html
new file mode 100755 (executable)
index 0000000..411f43a
--- /dev/null
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+       <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+               data-framework-theme="tizen-white"
+               data-framework-viewport-scale=false>
+       </script>
+
+       <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+       <script src="../../../libs/js/qunit/qunit.js"></script>
+       <script src="tokentextarea-tests.js"></script>
+
+       <title>Tokentextarea</title>
+</head>
+
+<body>
+
+<h1 id="qunit-header">Tokentextarea</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests"></ol>
+
+<div id="qunit-fixture">
+
+       <div data-role="page" id="notifiaction0">
+               <div data-role="notification" id="smallpopup" data-type="popup" data-text1="text1" data-param="param"></div>
+               <div data-role="header" data-position="fixed">
+                       <h1>Tokentextarea</h1>
+               </div>
+               <div data-role="content">
+               </div>
+       </div>
+
+       <div data-role="page" id="notification1">
+               <div data-role="tokentextarea" id="tokentextarea-test" ></div>
+               <div data-role="header" data-position="fixed">
+                       <h1>Tokentextarea</h1>
+               </div>
+               <div data-role="content">
+               </div>
+       </div>
+
+</div>
+
+</body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/tokentextarea/tokentextarea-tests.js b/tct-webuifw-tests/tests/unit-tests/tokentextarea/tokentextarea-tests.js
new file mode 100755 (executable)
index 0000000..3417c23
--- /dev/null
@@ -0,0 +1,81 @@
+/*
+ * Unit Test: tokentextarea
+ *
+ * Kangsik Kim <kangsik81.kim@samsung.com>
+ * Minkyeong Kim <minkyeong.kim@samsung.com>
+ */
+
+(function ( $ ) {
+       module( "Tokentextarea" );
+
+       var unit_tokentextarea = function ( widget, type ) {
+               var tokentextarea,
+                       inputText,
+                       outputText,
+                       status;
+
+               /* Create */
+               tokentextarea = widget.tokentextarea();
+               ok( tokentextarea.length > 0, "Create" );
+
+               /* length */
+               equal( tokentextarea.tokentextarea( "length" ), 0, "API : length" );
+
+               /* Add */
+               tokentextarea.tokentextarea( "add", "string1" );
+               equal( tokentextarea.tokentextarea( "length" ), 1, "API : add( 'string1' )" );
+               tokentextarea.tokentextarea( "add", "string2" );
+               equal( tokentextarea.tokentextarea( "length" ), 2, "API : add( 'string2' )" );
+               tokentextarea.tokentextarea( "add", "string3" );
+               equal( tokentextarea.tokentextarea( "length" ), 3, "API : add( 'string3' )" );
+
+               /* Select */
+               tokentextarea.tokentextarea( "select", 1 );
+               outputText = tokentextarea.tokentextarea( "select" );
+               equal( outputText, "string2", "API : select( 1 )" );
+
+               /* Focus Out */
+               tokentextarea.tokentextarea( "focusOut" );
+               status = tokentextarea.hasClass( "ui-tokentextarea-focusout" );
+               equal( status, true, "API : focusOut" );
+
+               /* Focus In */
+               tokentextarea.tokentextarea( "focusIn" );
+               status = tokentextarea.hasClass( "ui-tokentextarea-focusin" );
+               equal( status, true, "API : focusIn" );
+
+               /* input */
+               inputText = "tokentextarea";
+               tokentextarea.tokentextarea( "inputText", inputText );
+               outputText = tokentextarea.tokentextarea( "inputText" );
+               equal( outputText, inputText, "API : input( '" + outputText + "' )" );
+
+               asyncTest("asyncTest", function () {
+                       var $widget = $( "<div data-role='tokentextarea'></div>" ).tokentextarea();
+                       $( ".ui-page" ).append( $widget );
+
+                       $widget.tokentextarea( "add", "string1" );
+                       $widget.tokentextarea( "add", "string2" );
+                       $widget.tokentextarea( "add", "string3" );
+                       $widget.tokentextarea( "remove", 0 );
+
+                       setTimeout( function () {
+                               /* Remove */
+                               equal( $widget.tokentextarea( "length" ), 2,  "API : remove( 0 )" );
+                               $widget.tokentextarea( "remove" );
+                       }, 1000 );
+
+                       setTimeout( function () {
+                               /* Reamove all */
+                               equal( $widget.tokentextarea( "length" ), 0,  "API : remove()" );
+                               start();
+                               $widget.remove();
+                       }, 2000 );
+               });
+       };
+
+       test( "Tokentextarea", function () {
+               unit_tokentextarea( $( "#tokentextarea-test" ), "tokentextarea" );
+       });
+
+}( jQuery ));
diff --git a/tct-webuifw-tests/tests/unit-tests/virtualgrid/index.html b/tct-webuifw-tests/tests/unit-tests/virtualgrid/index.html
new file mode 100644 (file)
index 0000000..84cf595
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<html>
+       <head>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+                       data-framework-theme="tizen-white"
+                       data-framework-viewport-scale=false>
+               </script>
+
+               <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+               <script src="../../../libs/js/jquery-mobile-1.1.0/tests/jquery.testHelper.js"></script>
+               <script src="../../../libs/js/qunit/qunit.js"></script>
+               <script src = "../../../demos/tizen-winsets/widgets/grid/virtualgrid-db-demo.js"></script>
+               <script src="virtualgrid-tests.js"></script>
+               <title>Virtualgrid</title>
+       </head>
+
+       <body>
+               <h1 id="qunit-header">Virtualgrid</h1>
+               <h2 id="qunit-banner"></h2>
+               <div id="qunit-testrunner-toolbar"></div>
+               <h2 id="qunit-userAgent"></h2>
+               <ol id="qunit-tests"></ol>
+
+               <div id="qunit-fixture">
+                       <div data-role="page" id="virtualgrid_demo_page" class="virtualgrid_demo_page">
+                               <div data-role="header" data-position="fixed">
+                                       <h1>Virtualgrid</h1>
+                               </div>
+                               <div data-role="content">
+                                       <script id="tizen-demo-namecard" type="text/x-jquery-tmpl">
+                                               <div class="ui-demo-namecard ${ID}" style="width:50px">
+                                                       <div class="ui-demo-namecard-pic">
+                                                       </div>
+                                                       <div class="ui-demo-namecard-contents">
+                                                               <span class="name ui-li-text-main">${NAME}</span>
+                                                       </div>
+                                               </div>
+                                       </script>
+                                       <div id="virtualgrid-test" data-direction="y" data-role="virtualgrid" data-rotation="true" data-template="tizen-demo-namecard" data-dbtable="JSON_DATA" style="width:600px; height:500px;"></div>
+                               </div>
+                       </div>
+               </div>
+       </body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/virtualgrid/virtualgrid-tests.js b/tct-webuifw-tests/tests/unit-tests/virtualgrid/virtualgrid-tests.js
new file mode 100755 (executable)
index 0000000..1227d80
--- /dev/null
@@ -0,0 +1,90 @@
+/*
+ * Unit Test: virtual grid
+ *
+ * Kangsik Kim <kangsik81.kim@samsung.com>
+ * Woosung Sohn <woosungim.sohn@samsung.com>
+ */
+
+$( document ).ready( function () {
+       var virtualGrid, startVirtualGridTest;
+
+       module( "Virtualgrid" );
+
+       startVirtualGridTest = function ( virtualGrid ) {
+               var $vgView,
+                       $vgScrollView,
+                       $vgWrapBlocks,
+                       $vgTmplElement,
+                       vgOptions = $( "#virtualgrid-test" ).virtualgrid( "option" ),
+                       vgHeight,
+                       idx,
+                       index = -1,
+                       $item,
+                       prevColCnt = 0;
+
+               $vgView = $( ".ui-virtualgrid-view" );
+               $vgScrollView = $vgView.find( ".ui-scrollview-view" );
+               $vgWrapBlocks = $vgView.find( ".ui-virtualgrid-wrapblock-y" );
+               $vgTmplElement = $vgWrapBlocks.find( ".ui-demo-namecard-pic" );
+               vgHeight = $vgView.css( "height" ),
+
+               test( "Virtualgrid", function () {
+                       $vgView.on( "select", function ( event ) {
+                               ok( true, "Event : select" );
+                       });
+
+                       ok( $vgView, "Markup : View element" );
+                       ok( parseInt( vgHeight, 10 ) > 100, "Markup : The height of a view element");
+                       ok( $vgScrollView.length, "Markup : A Scrollview inside VirtualGrid" );
+                       ok( $vgWrapBlocks.length > 10, "Markup : Wrap block" );
+                       ok( $vgWrapBlocks.first().children().length > 1, "Markup : Children nodes of a wrap block");
+                       ok( $vgTmplElement.length, "Markup : A div element created via template");
+
+                       equal( vgOptions.template, "tizen-demo-namecard", "Option : template" );
+                       equal( vgOptions.direction, "y", "Option : direction" );
+                       equal( vgOptions.rotation, true, "Option : rotation" );
+
+                       $( "#virtualgrid-test" ).virtualgrid( "centerTo", "card_0009" );
+                       for ( idx = 0 ; idx < $vgWrapBlocks.length ; ++idx ) {
+                               if ( $( $vgWrapBlocks[idx] ).hasClass( "card_0000" ) ) {
+                                       index = idx;
+                                       break;
+                               }
+                       }
+
+                       ok( virtualGrid, "Method : create" );
+                       notEqual( index, 0, "Method : centerTo" );
+
+                       $item = $vgWrapBlocks.first();
+                       prevColCnt = $item.children().length;
+                       $( "#virtualgrid-test" ).width( 250 );
+                       $( "#virtualgrid-test" ).virtualgrid( "resize" );
+                       console.log( "resize : " + $item.children().length + ", " + prevColCnt );
+                       notEqual( $item.children().length, prevColCnt, "Method : resize" );
+
+                       $item = $( $vgWrapBlocks.first().children()[0] );
+                       try {
+                               $item.trigger( "click" );
+                       } catch ( exception ) {
+                               console.log( "click event exception : " + exception );
+                       }
+               });
+       };
+
+       /* Load Dummy Data and Init Virtual Grid widget*/
+       if ( window.JSON_DATA ) {
+               // trigger pagecreate
+               $( "#virtualgrid_demo_page" ).page();
+
+               virtualGrid = $( "#virtualgrid-test" ).virtualgrid( "create", {
+                       itemData: function ( idx ) {
+                               return JSON_DATA[ idx ];
+                       },
+                       numItemData: JSON_DATA.length,
+                       cacheItemData: function ( minIdx, maxIdx ) { }
+               });
+               startVirtualGridTest( virtualGrid );
+       } else {
+               console.log ( "Virtual Grid Init Fail." );
+       }
+} );
diff --git a/tct-webuifw-tests/tests/unit-tests/virtuallist/index.html b/tct-webuifw-tests/tests/unit-tests/virtuallist/index.html
new file mode 100755 (executable)
index 0000000..af520a3
--- /dev/null
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<html>
+       <head>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/jquery.js"></script>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+               <script src="/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
+                       data-framework-theme="tizen-white"
+                       data-framework-viewport-scale=false>
+               </script>
+
+               <link rel="stylesheet" href="../../../libs/js/qunit/qunit.css" />
+
+               <script src="../../../libs/js/qunit/qunit.js"></script>
+               <script src = "../../../demos/tizen-winsets/widgets/list/virtuallist-db-demo.js"></script>
+               <script src="virtuallist-tests.js"></script>
+               <title>Virtuallist</title>
+       </head>
+
+       <body>
+               <h1 id="qunit-header">Virtuallist</h1>
+               <h2 id="qunit-banner"></h2>
+               <div id="qunit-testrunner-toolbar"></div>
+               <h2 id="qunit-userAgent"></h2>
+               <ol id="qunit-tests"></ol>
+
+               <div id="qunit-fixture">
+                       <div data-role="page" id="dummy-page">
+                               <div data-role="header" data-position="fixed">
+                                       <h1>Dummy</h1>
+                               </div>
+                               <div data-role="contents">
+                               </div>
+                       </div>
+                       <div data-role="page" id="virtuallist-unit-test" data-add-back-btn="true">
+                               <div data-role="header" data-position="fixed">
+                                       <h1>Virtual List - Normal Style 1line</h1>
+                               </div>
+                               <div data-role="content">
+                                       <script id="tmp-1line" type="text/x-jquery-tmpl">
+                                               <li class="ui-li-1line"><span class="ui-li-text-main">${NAME}</span></li>
+                                       </script>
+                                       <ul id="virtuallist-normal_1line_ul" data-role="virtuallistview" data-template="tmp-1line" data-dbtable="JSON_DATA" data-row="100">
+                                       </ul>
+                               </div>
+                       </div>
+               </div>
+       </body>
+</html>
diff --git a/tct-webuifw-tests/tests/unit-tests/virtuallist/virtuallist-tests.js b/tct-webuifw-tests/tests/unit-tests/virtuallist/virtuallist-tests.js
new file mode 100755 (executable)
index 0000000..e844dcd
--- /dev/null
@@ -0,0 +1,67 @@
+/*
+ * Unit Test: Virtual list
+ *
+ * Wongi Lee <wongi11.lee@samsung.com>
+ */
+
+$( document ).ready( function () {
+
+       module( "Virtual List");
+
+       function startVirtualListTest(){
+               var $vlContainer = $( "ul.ui-virtual-list-container" ),
+                       $vlElements = $( "ul.ui-virtual-list-container li" ),
+                       vlHeight = $vlContainer.css( "height" ),
+                       vlOptions = $( "#virtuallist-normal_1line_ul" ).virtuallistview( "option" );
+
+               test( "Virtual list test", function () {
+                       /* Initialize and create method */
+                       ok( $vlContainer , "Create" );
+                       equal( $vlElements.length, 100 ,"Data load test" );
+                       ok( parseInt( vlHeight, 10 ) > 3000 , "Check Scroll");
+
+                       /* Options */
+                       equal( vlOptions.id, "#virtuallist-normal_1line_ul" , "Option test");
+                       equal( vlOptions.childSelector, " li" , "Child control");
+                       equal( vlOptions.dbtable, "JSON_DATA" , "dbtable test");
+                       equal( vlOptions.template, "tmp-1line", "Template check");
+                       equal( vlOptions.row, 100 , "Row check");
+                       equal( vlOptions.dbkey, false ,"DB Key");
+                       equal( vlOptions.scrollview, true , "Scrollview" );
+
+
+                       /* Destroy method */
+                       ok ( ( function () {
+                               /* Call destroy */
+                               $( "#virtuallist-normal_1line_ul" ).virtuallistview( "destroy" );
+
+                               destoyedVlElements = $( "ul.ui-virtual-list-container li" );
+                               console.log( destoyedVlElements.length );
+
+                               try {
+                                       equal ( destoyedVlElements.length, 0 , "DIV Element test");
+                               } catch ( exception ) {
+                                       console.log( "destroy : " + exception );
+                                       return false;
+                               }
+                               return true;
+                       }() ), "destroy()" );
+               } );
+       }
+
+       /* Load Dummy Data and Init Virtual List widget*/
+       if ( window.JSON_DATA ) {
+               $( "ul" ).filter( function () {
+                       return $( this ).data( "role" ) == "virtuallistview";
+               } ).addClass( "vlLoadSuccess" );
+
+               // trigger pagecreate
+               $( "#virtuallist-unit-test" ).page();
+
+               $( "ul.ui-virtual-list-container" ).virtuallistview( "create" );
+
+               startVirtualListTest();
+       } else {
+               console.log ( "Virtual List Init Fail." );
+       }
+} );